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

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

No files matched your search

@@ -0,0 +1,8 @@
"use client";
import {
textarea_default
} from "./chunk-YBZ5IULK.mjs";
import "./chunk-MSLIMGMJ.mjs";
export {
textarea_default as default
};
@@ -0,0 +1,4 @@
<svg viewbox="0 0 18 18">
<polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"></polygon>
<polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"></polygon>
</svg>

After

Width:  |  Height:  |  Size: 168 B

@@ -0,0 +1,37 @@
import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from "./useEffectEvent.module.js";
import {useEffect as $ceQd6$useEffect} from "react";
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
let handleEvent = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(handler);
let isDisabled = handler == null;
(0, $ceQd6$useEffect)(()=>{
if (isDisabled || !ref.current) return;
let element = ref.current;
element.addEventListener(event, handleEvent, options);
return ()=>{
element.removeEventListener(event, handleEvent, options);
};
}, [
ref,
event,
options,
isDisabled,
handleEvent
]);
}
export {$e9faafb641e167db$export$90fc3a17d93f704c as useEvent};
//# sourceMappingURL=useEvent.module.js.map
@@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
@@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
@@ -0,0 +1 @@
{"name":"postcss-nested","version":"6.2.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532104794,"integrity":"sha512-kf+pcSZyfzjtIrnfaqAbJfufb+i2wOV1P6N9+FEtyg9K1irHt7cMFB7znasCe03NozhQ7A82LvtW8Y3lkVjujA==","mode":420,"size":1095},"index.js":{"checkedAt":1794532104795,"integrity":"sha512-TcU8uNkTLr8DBh5Z1/clL2Huf0x92zoFruYPdtzUEmGl8z/bwYo9S509lj4b3gRbqSQMwgBV02zVlG8lRp6iLA==","mode":420,"size":9058},"package.json":{"checkedAt":1794532104795,"integrity":"sha512-sa/uLlxVcWZ9svHYtPw7Z4RdkBWy20C3Ugh6uvHqRriPZA29kXNKqc4fHa7/nxYZG0Pzctd/OZXIFAggc8TLew==","mode":420,"size":695},"README.md":{"checkedAt":1794532104795,"integrity":"sha512-4cqD4QEOh0b8EeG+skOi2CNvr4yJdH7A7+UmRN6w3fWjbordT7iIvY0a0jSalwAe7kUaEJTLW4vS7DmV4jZyGA==","mode":420,"size":1953},"index.d.ts":{"checkedAt":1794532104795,"integrity":"sha512-ELlVU16c188tS1FokvTF6prmdnVtJb2xnlzGCmlMM8gkIF3fyoFHoPTlCdeBPzoCgNyV3u9K9BqzdVf00jVdHQ==","mode":420,"size":1161}}}
@@ -0,0 +1,43 @@
{
"name": "negotiator",
"description": "HTTP content negotiation",
"version": "1.0.0",
"contributors": [
"Douglas Christopher Wilson <doug@somethingdoug.com>",
"Federico Romero <federico.romero@outboxlabs.com>",
"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)"
],
"license": "MIT",
"keywords": [
"http",
"content negotiation",
"accept",
"accept-language",
"accept-encoding",
"accept-charset"
],
"repository": "jshttp/negotiator",
"devDependencies": {
"eslint": "7.32.0",
"eslint-plugin-markdown": "2.2.1",
"mocha": "9.1.3",
"nyc": "15.1.0"
},
"files": [
"lib/",
"HISTORY.md",
"LICENSE",
"index.js",
"README.md"
],
"engines": {
"node": ">= 0.6"
},
"scripts": {
"lint": "eslint .",
"test": "mocha --reporter spec --check-leaks --bail test/",
"test:debug": "mocha --reporter spec --check-leaks --inspect --inspect-brk test/",
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
"test-cov": "nyc --reporter=html --reporter=text npm test"
}
}
@@ -0,0 +1,28 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
export declare const SendLikePayloadSchema: import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
times: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
export type SendLikePayload = Static<typeof SendLikePayloadSchema>;
export default class SendLike extends OneBotAction<SendLikePayload, void> {
actionName: "send_like";
payloadSchema: import("@sinclair/typebox").TObject<{
user_id: import("@sinclair/typebox").TString;
times: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
returnSchema: import("@sinclair/typebox").TNull;
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {
user_id: string;
times: number;
};
returnExample: {};
errorExamples: {
code: number;
description: string;
}[];
_handle(payload: SendLikePayload): Promise<void>;
}
@@ -0,0 +1,58 @@
import { ChildProcessByStdio, SpawnOptions, ChildProcess } from 'child_process';
/**
* The signature for the cleanup method.
*
* Arguments indicate the exit status of the child process.
*
* If a Promise is returned, then the process is not terminated
* until it resolves, and the resolution value is treated as the
* exit status (if a number) or signal exit (if a signal string).
*
* If `undefined` is returned, then no change is made, and the parent
* exits in the same way that the child exited.
*
* If boolean `false` is returned, then the parent's exit is canceled.
*
* If a number is returned, then the parent process exits with the number
* as its exitCode.
*
* If a signal string is returned, then the parent process is killed with
* the same signal that caused the child to exit.
*/
export type Cleanup = (code: number | null, signal: null | NodeJS.Signals, processInfo: {
watchdogPid?: ChildProcess['pid'];
}) => void | undefined | number | NodeJS.Signals | false | Promise<void | undefined | number | NodeJS.Signals | false>;
export type FgArgs = [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup] | [
program: [cmd: string, ...args: string[]],
opts?: SpawnOptions,
cleanup?: Cleanup
] | [program: string, cleanup?: Cleanup] | [program: string, opts?: SpawnOptions, cleanup?: Cleanup] | [program: string, args?: string[], cleanup?: Cleanup] | [
program: string,
args?: string[],
opts?: SpawnOptions,
cleanup?: Cleanup
];
/**
* Normalizes the arguments passed to `foregroundChild`.
*
* Exposed for testing.
*
* @internal
*/
export declare const normalizeFgArgs: (fgArgs: FgArgs) => [program: string, args: string[], spawnOpts: SpawnOptions, cleanup: Cleanup];
/**
* Spawn the specified program as a "foreground" process, or at least as
* close as is possible given node's lack of exec-without-fork.
*
* Cleanup method may be used to modify or ignore the result of the child's
* exit code or signal. If cleanup returns undefined (or a Promise that
* resolves to undefined), then the parent will exit in the same way that
* the child did.
*
* Return boolean `false` to prevent the parent's exit entirely.
*/
export declare function foregroundChild(cmd: string | [cmd: string, ...args: string[]], cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
export declare function foregroundChild(program: string, args?: string[], cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
export declare function foregroundChild(program: string, spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
export declare function foregroundChild(program: string, args?: string[], spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio<null, null, null>;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,319 @@
/**
* @fileoverview Enforce consistent usage of destructuring assignment of props, state, and context.
*/
'use strict';
const Components = require('../util/Components');
const docsUrl = require('../util/docsUrl');
const eslintUtil = require('../util/eslint');
const isAssignmentLHS = require('../util/ast').isAssignmentLHS;
const report = require('../util/report');
const getScope = eslintUtil.getScope;
const getText = eslintUtil.getText;
const DEFAULT_OPTION = 'always';
function createSFCParams() {
const queue = [];
return {
push(params) {
queue.unshift(params);
},
pop() {
queue.shift();
},
propsName() {
const found = queue.find((params) => {
const props = params[0];
return props && !props.destructuring && props.name;
});
return found && found[0] && found[0].name;
},
contextName() {
const found = queue.find((params) => {
const context = params[1];
return context && !context.destructuring && context.name;
});
return found && found[1] && found[1].name;
},
};
}
function evalParams(params) {
return params.map((param) => ({
destructuring: param.type === 'ObjectPattern',
name: param.type === 'Identifier' && param.name,
}));
}
const messages = {
noDestructPropsInSFCArg: 'Must never use destructuring props assignment in SFC argument',
noDestructContextInSFCArg: 'Must never use destructuring context assignment in SFC argument',
noDestructAssignment: 'Must never use destructuring {{type}} assignment',
useDestructAssignment: 'Must use destructuring {{type}} assignment',
destructureInSignature: 'Must destructure props in the function signature.',
};
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
docs: {
description: 'Enforce consistent usage of destructuring assignment of props, state, and context',
category: 'Stylistic Issues',
recommended: false,
url: docsUrl('destructuring-assignment'),
},
fixable: 'code',
messages,
schema: [{
type: 'string',
enum: [
'always',
'never',
],
}, {
type: 'object',
properties: {
ignoreClassFields: {
type: 'boolean',
},
destructureInSignature: {
type: 'string',
enum: [
'always',
'ignore',
],
},
},
additionalProperties: false,
}],
},
create: Components.detect((context, components, utils) => {
const configuration = context.options[0] || DEFAULT_OPTION;
const ignoreClassFields = (context.options[1] && (context.options[1].ignoreClassFields === true)) || false;
const destructureInSignature = (context.options[1] && context.options[1].destructureInSignature) || 'ignore';
const sfcParams = createSFCParams();
/**
* @param {ASTNode} node We expect either an ArrowFunctionExpression,
* FunctionDeclaration, or FunctionExpression
*/
function handleStatelessComponent(node) {
const params = evalParams(node.params);
const SFCComponent = components.get(getScope(context, node).block);
if (!SFCComponent) {
return;
}
sfcParams.push(params);
if (params[0] && params[0].destructuring && components.get(node) && configuration === 'never') {
report(context, messages.noDestructPropsInSFCArg, 'noDestructPropsInSFCArg', {
node,
});
} else if (params[1] && params[1].destructuring && components.get(node) && configuration === 'never') {
report(context, messages.noDestructContextInSFCArg, 'noDestructContextInSFCArg', {
node,
});
}
}
function handleStatelessComponentExit(node) {
const SFCComponent = components.get(getScope(context, node).block);
if (SFCComponent) {
sfcParams.pop();
}
}
function handleSFCUsage(node) {
const propsName = sfcParams.propsName();
const contextName = sfcParams.contextName();
// props.aProp || context.aProp
const isPropUsed = (
(propsName && node.object.name === propsName)
|| (contextName && node.object.name === contextName)
)
&& !isAssignmentLHS(node);
if (isPropUsed && configuration === 'always' && !node.optional) {
report(context, messages.useDestructAssignment, 'useDestructAssignment', {
node,
data: {
type: node.object.name,
},
});
}
}
function isInClassProperty(node) {
let curNode = node.parent;
while (curNode) {
if (curNode.type === 'ClassProperty' || curNode.type === 'PropertyDefinition') {
return true;
}
curNode = curNode.parent;
}
return false;
}
function handleClassUsage(node) {
// this.props.Aprop || this.context.aProp || this.state.aState
const isPropUsed = (
node.object.type === 'MemberExpression' && node.object.object.type === 'ThisExpression'
&& (node.object.property.name === 'props' || node.object.property.name === 'context' || node.object.property.name === 'state')
&& !isAssignmentLHS(node)
);
if (
isPropUsed && configuration === 'always'
&& !(ignoreClassFields && isInClassProperty(node))
) {
report(context, messages.useDestructAssignment, 'useDestructAssignment', {
node,
data: {
type: node.object.property.name,
},
});
}
}
// valid-jsdoc cannot read function types
// eslint-disable-next-line valid-jsdoc
/**
* Find a parent that satisfy the given predicate
* @param {ASTNode} node
* @param {(node: ASTNode) => boolean} predicate
* @returns {ASTNode | undefined}
*/
function findParent(node, predicate) {
let n = node;
while (n) {
if (predicate(n)) {
return n;
}
n = n.parent;
}
return undefined;
}
return {
FunctionDeclaration: handleStatelessComponent,
ArrowFunctionExpression: handleStatelessComponent,
FunctionExpression: handleStatelessComponent,
'FunctionDeclaration:exit': handleStatelessComponentExit,
'ArrowFunctionExpression:exit': handleStatelessComponentExit,
'FunctionExpression:exit': handleStatelessComponentExit,
MemberExpression(node) {
const SFCComponent = utils.getParentStatelessComponent(node);
if (SFCComponent) {
handleSFCUsage(node);
}
const classComponent = utils.getParentComponent(node);
if (classComponent) {
handleClassUsage(node);
}
},
TSQualifiedName(node) {
if (configuration !== 'always') {
return;
}
// handle `typeof props.a.b`
if (node.left.type === 'Identifier'
&& node.left.name === sfcParams.propsName()
&& findParent(node, (n) => n.type === 'TSTypeQuery')
&& utils.getParentStatelessComponent(node)
) {
report(context, messages.useDestructAssignment, 'useDestructAssignment', {
node,
data: {
type: 'props',
},
});
}
},
VariableDeclarator(node) {
const classComponent = utils.getParentComponent(node);
const SFCComponent = components.get(getScope(context, node).block);
const destructuring = (node.init && node.id && node.id.type === 'ObjectPattern');
// let {foo} = props;
const destructuringSFC = destructuring && (node.init.name === 'props' || node.init.name === 'context');
// let {foo} = this.props;
const destructuringClass = destructuring && node.init.object && node.init.object.type === 'ThisExpression' && (
node.init.property.name === 'props' || node.init.property.name === 'context' || node.init.property.name === 'state'
);
if (SFCComponent && destructuringSFC && configuration === 'never') {
report(context, messages.noDestructAssignment, 'noDestructAssignment', {
node,
data: {
type: node.init.name,
},
});
}
if (
classComponent && destructuringClass && configuration === 'never'
&& !(ignoreClassFields && (node.parent.type === 'ClassProperty' || node.parent.type === 'PropertyDefinition'))
) {
report(context, messages.noDestructAssignment, 'noDestructAssignment', {
node,
data: {
type: node.init.property.name,
},
});
}
if (
SFCComponent
&& destructuringSFC
&& configuration === 'always'
&& destructureInSignature === 'always'
&& node.init.name === 'props'
) {
const scopeSetProps = getScope(context, node).set.get('props');
const propsRefs = scopeSetProps && scopeSetProps.references;
if (!propsRefs) {
return;
}
// Skip if props is used elsewhere
if (propsRefs.length > 1) {
return;
}
report(context, messages.destructureInSignature, 'destructureInSignature', {
node,
fix(fixer) {
const param = SFCComponent.node.params[0];
if (!param) {
return;
}
const replaceRange = [
param.range[0],
param.typeAnnotation ? param.typeAnnotation.range[0] : param.range[1],
];
return [
fixer.replaceTextRange(replaceRange, getText(context, node.id)),
fixer.remove(node.parent),
];
},
});
}
},
};
}),
};
@@ -0,0 +1,60 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/bulk/edit-document.tsx
var edit_document_exports = {};
__export(edit_document_exports, {
EditDocumentBulkIcon: () => EditDocumentBulkIcon
});
module.exports = __toCommonJS(edit_document_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var EditDocumentBulkIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
"svg",
{
"aria-hidden": "true",
fill: "none",
focusable: "false",
height: "1em",
role: "presentation",
viewBox: "0 0 24 24",
width: "1em",
...props,
children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M15.48 3H7.52C4.07 3 2 5.06 2 8.52v7.95C2 19.94 4.07 22 7.52 22h7.95c3.46 0 5.52-2.06 5.52-5.52V8.52C21 5.06 18.93 3 15.48 3Z",
fill: "currentColor",
opacity: 0.4
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M21.02 2.98c-1.79-1.8-3.54-1.84-5.38 0L14.51 4.1c-.1.1-.13.24-.09.37.7 2.45 2.66 4.41 5.11 5.11.03.01.08.01.11.01.1 0 .2-.04.27-.11l1.11-1.12c.91-.91 1.36-1.78 1.36-2.67 0-.9-.45-1.79-1.36-2.71ZM17.86 10.42c-.27-.13-.53-.26-.77-.41-.2-.12-.4-.25-.59-.39-.16-.1-.34-.25-.52-.4-.02-.01-.08-.06-.16-.14-.31-.25-.64-.59-.95-.96-.02-.02-.08-.08-.13-.17-.1-.11-.25-.3-.38-.51-.11-.14-.24-.34-.36-.55-.15-.25-.28-.5-.4-.76-.13-.28-.23-.54-.32-.79L7.9 10.72c-.35.35-.69 1.01-.76 1.5l-.43 2.98c-.09.63.08 1.22.47 1.61.33.33.78.5 1.28.5.11 0 .22-.01.33-.02l2.97-.42c.49-.07 1.15-.4 1.5-.76l5.38-5.38c-.25-.08-.5-.19-.78-.31Z",
fill: "currentColor"
}
)
]
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
EditDocumentBulkIcon
});
@@ -0,0 +1,20 @@
import { PluginFunc, ConfigType } from 'dayjs/esm'
declare const plugin: PluginFunc
export = plugin
declare module 'dayjs/esm' {
interface Dayjs {
tz(timezone?: string, keepLocalTime?: boolean): Dayjs
offsetName(type?: 'short' | 'long'): string | undefined
}
interface DayjsTimezone {
(date?: ConfigType, timezone?: string): Dayjs
(date: ConfigType, format: string, timezone?: string): Dayjs
guess(): string
setDefault(timezone?: string): void
}
const tz: DayjsTimezone
}
@@ -0,0 +1,16 @@
{
"versions": [
{
"version": "*",
"target": {
"node": "supported"
},
"response": {
"type": "time-permitting"
},
"backing": {
"npm-funding": true
}
}
]
}
@@ -0,0 +1,8 @@
module.exports = {
fs: require('./fs'),
dns: require('./dns'),
zlib: require('./zlib'),
crypto: require('./crypto'),
readline: require('./readline'),
child_process: require('./child_process')
}
@@ -0,0 +1 @@
{"version":3,"names":["_getBindingIdentifiers","require","_index","_index2","_productions","_cloneNode","gatherSequenceExpressions","nodes","declars","exprs","ensureLastUndefined","node","isEmptyStatement","isExpression","push","isExpressionStatement","expression","isVariableDeclaration","kind","declar","declarations","bindings","getBindingIdentifiers","key","Object","keys","id","cloneNode","init","assignmentExpression","isIfStatement","consequent","buildUndefinedNode","alternate","conditionalExpression","test","isBlockStatement","body","indexOf","length","sequenceExpression"],"sources":["../../src/converters/gatherSequenceExpressions.ts"],"sourcesContent":["// TODO(Babel 8) Remove this file\nif (process.env.BABEL_8_BREAKING && process.env.IS_PUBLISH) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n\nimport getBindingIdentifiers from \"../retrievers/getBindingIdentifiers.ts\";\nimport {\n isExpression,\n isExpressionStatement,\n isVariableDeclaration,\n isIfStatement,\n isBlockStatement,\n isEmptyStatement,\n} from \"../validators/generated/index.ts\";\nimport {\n sequenceExpression,\n assignmentExpression,\n conditionalExpression,\n} from \"../builders/generated/index.ts\";\nimport { buildUndefinedNode } from \"../builders/productions.ts\";\nimport cloneNode from \"../clone/cloneNode.ts\";\nimport type * as t from \"../index.ts\";\n\nexport type DeclarationInfo = {\n kind: t.VariableDeclaration[\"kind\"];\n id: t.Identifier;\n};\n\nexport default function gatherSequenceExpressions(\n nodes: ReadonlyArray<t.Node>,\n declars: Array<DeclarationInfo>,\n) {\n const exprs: t.Expression[] = [];\n let ensureLastUndefined = true;\n\n for (const node of nodes) {\n // if we encounter emptyStatement before a non-emptyStatement\n // we want to disregard that\n if (!isEmptyStatement(node)) {\n ensureLastUndefined = false;\n }\n\n if (isExpression(node)) {\n exprs.push(node);\n } else if (isExpressionStatement(node)) {\n exprs.push(node.expression);\n } else if (isVariableDeclaration(node)) {\n if (node.kind !== \"var\") return; // bailed\n\n for (const declar of node.declarations) {\n const bindings = getBindingIdentifiers(declar);\n for (const key of Object.keys(bindings)) {\n declars.push({\n kind: node.kind,\n id: cloneNode(bindings[key]),\n });\n }\n\n if (declar.init) {\n exprs.push(\n assignmentExpression(\n \"=\",\n // var declarator must not be a void pattern\n declar.id as Exclude<t.VariableDeclarator[\"id\"], t.VoidPattern>,\n declar.init,\n ),\n );\n }\n }\n\n ensureLastUndefined = true;\n } else if (isIfStatement(node)) {\n const consequent = node.consequent\n ? gatherSequenceExpressions([node.consequent], declars)\n : buildUndefinedNode();\n const alternate = node.alternate\n ? gatherSequenceExpressions([node.alternate], declars)\n : buildUndefinedNode();\n if (!consequent || !alternate) return; // bailed\n\n exprs.push(conditionalExpression(node.test, consequent, alternate));\n } else if (isBlockStatement(node)) {\n const body = gatherSequenceExpressions(node.body, declars);\n if (!body) return; // bailed\n\n exprs.push(body);\n } else if (isEmptyStatement(node)) {\n // empty statement so ensure the last item is undefined if we're last\n // checks if emptyStatement is first\n if (nodes.indexOf(node) === 0) {\n ensureLastUndefined = true;\n }\n } else {\n // bailed, we can't turn this statement into an expression\n return;\n }\n }\n\n if (ensureLastUndefined) {\n exprs.push(buildUndefinedNode());\n }\n\n if (exprs.length === 1) {\n return exprs[0];\n } else {\n return sequenceExpression(exprs);\n }\n}\n"],"mappings":";;;;;;AAOA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAQA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA8C;AAQ/B,SAASK,yBAAyBA,CAC/CC,KAA4B,EAC5BC,OAA+B,EAC/B;EACA,MAAMC,KAAqB,GAAG,EAAE;EAChC,IAAIC,mBAAmB,GAAG,IAAI;EAE9B,KAAK,MAAMC,IAAI,IAAIJ,KAAK,EAAE;IAGxB,IAAI,CAAC,IAAAK,uBAAgB,EAACD,IAAI,CAAC,EAAE;MAC3BD,mBAAmB,GAAG,KAAK;IAC7B;IAEA,IAAI,IAAAG,mBAAY,EAACF,IAAI,CAAC,EAAE;MACtBF,KAAK,CAACK,IAAI,CAACH,IAAI,CAAC;IAClB,CAAC,MAAM,IAAI,IAAAI,4BAAqB,EAACJ,IAAI,CAAC,EAAE;MACtCF,KAAK,CAACK,IAAI,CAACH,IAAI,CAACK,UAAU,CAAC;IAC7B,CAAC,MAAM,IAAI,IAAAC,4BAAqB,EAACN,IAAI,CAAC,EAAE;MACtC,IAAIA,IAAI,CAACO,IAAI,KAAK,KAAK,EAAE;MAEzB,KAAK,MAAMC,MAAM,IAAIR,IAAI,CAACS,YAAY,EAAE;QACtC,MAAMC,QAAQ,GAAG,IAAAC,8BAAqB,EAACH,MAAM,CAAC;QAC9C,KAAK,MAAMI,GAAG,IAAIC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,EAAE;UACvCb,OAAO,CAACM,IAAI,CAAC;YACXI,IAAI,EAAEP,IAAI,CAACO,IAAI;YACfQ,EAAE,EAAE,IAAAC,kBAAS,EAACN,QAAQ,CAACE,GAAG,CAAC;UAC7B,CAAC,CAAC;QACJ;QAEA,IAAIJ,MAAM,CAACS,IAAI,Line truncated
@@ -0,0 +1 @@
{"version":3,"file":"parse-proxy-response.js","sourceRoot":"","sources":["../src/parse-proxy-response.ts"],"names":[],"mappings":";;;;;AAAA,kDAAgC;AAGhC,MAAM,KAAK,GAAG,eAAW,CAAC,wCAAwC,CAAC,CAAC;AAOpE,SAAwB,kBAAkB,CACzC,MAAgB;IAEhB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,+EAA+E;QAC/E,gFAAgF;QAChF,8EAA8E;QAC9E,8BAA8B;QAC9B,IAAI,aAAa,GAAG,CAAC,CAAC;QACtB,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,SAAS,IAAI;YACZ,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC;gBAAE,MAAM,CAAC,CAAC,CAAC,CAAC;;gBACZ,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACpC,CAAC;QAED,SAAS,OAAO;YACf,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACpC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxC,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;QAED,SAAS,OAAO,CAAC,GAAW;YAC3B,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;QAED,SAAS,KAAK;YACb,KAAK,CAAC,OAAO,CAAC,CAAC;QAChB,CAAC;QAED,SAAS,OAAO,CAAC,GAAU;YAC1B,OAAO,EAAE,CAAC;YACV,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;YACzB,MAAM,CAAC,GAAG,CAAC,CAAC;QACb,CAAC;QAED,SAAS,MAAM,CAAC,CAAS;YACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,aAAa,IAAI,CAAC,CAAC,MAAM,CAAC;YAE1B,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;YACvD,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAElD,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE;gBACxB,iBAAiB;gBACjB,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBACtD,IAAI,EAAE,CAAC;gBACP,OAAO;aACP;YAED,MAAM,SAAS,GAAG,QAAQ,CAAC,QAAQ,CAClC,OAAO,EACP,CAAC,EACD,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CACxB,CAAC;YACF,MAAM,UAAU,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5C,KAAK,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC;YAClD,OAAO,CAAC;gBACP,UAAU;gBACV,QAAQ;aACR,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAExB,IAAI,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;AACJ,CAAC;AAvED,qCAuEC"}
@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDecoratorInfo = getDecoratorInfo;
const InversifyCoreError_1 = require("../../error/models/InversifyCoreError");
const InversifyCoreErrorKind_1 = require("../../error/models/InversifyCoreErrorKind");
const DecoratorInfoKind_1 = require("../models/DecoratorInfoKind");
function getDecoratorInfo(target, propertyKey, parameterIndexOrDescriptor) {
if (parameterIndexOrDescriptor === undefined) {
if (propertyKey === undefined) {
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.unknown, 'Unexpected undefined property and index values');
}
return {
kind: DecoratorInfoKind_1.DecoratorInfoKind.property,
property: propertyKey,
targetClass: target.constructor,
};
}
if (typeof parameterIndexOrDescriptor === 'number') {
return {
index: parameterIndexOrDescriptor,
kind: DecoratorInfoKind_1.DecoratorInfoKind.parameter,
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
targetClass: target,
};
}
return {
kind: DecoratorInfoKind_1.DecoratorInfoKind.method,
method: propertyKey,
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
targetClass: target,
};
}
//# sourceMappingURL=getDecoratorInfo.js.map
@@ -0,0 +1,518 @@
flf2a$ 5 5 11 -1 7 0 0 0
Font Author: ?
More Info:
https://web.archive.org/web/20120819044459/http://www.roysac.com/thedrawfonts-tdf.asp
FIGFont created with: http://patorjk.com/figfont-editor
$ $@
$ $@
$ $@
$ $@
$ $@@
▄▄ @
██▌@
▐█·@
.▀ @
▀ @@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
▀ @@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
▄▄▄· @
▐█ ▀█ @
▄█▀▀█ @
▐█ ▪▐▌@
▀ ▀ @@
▄▄▄▄· @
▐█ ▀█▪@
▐█▀▀█▄@
██▄▪▐█@
·▀▀▀▀ @@
▄▄· @
▐█ ▌▪@
██ ▄▄@
▐███▌@
·▀▀▀ @@
·▄▄▄▄ @
██▪ ██ @
▐█· ▐█▌@
██. ██ @
▀▀▀▀▀• @@
▄▄▄ .@
▀▄.▀·@
▐▀▀▪▄@
▐█▄▄▌@
▀▀▀ @@
·▄▄▄@
▐▄▄·@
██▪ @
██▌.@
▀▀▀ @@
▄▄ • @
▐█ ▀ ▪@
▄█ ▀█▄@
▐█▄▪▐█@
·▀▀▀▀ @@
▄ .▄@
██▪▐█@
██▀▐█@
██▌▐▀@
▀▀▀ ·@@
▪ @
██ @
▐█·@
▐█▌@
▀▀▀@@
▐▄▄▄@
·██@
▪▄ ██@
▐▌▐█▌@
▀▀▀•@@
▄ •▄ @
█▌▄▌▪@
▐▀▀▄·@
▐█.█▌@
·▀ ▀@@
▄▄▌ @
██• @
██▪ @
▐█▌▐▌@
.▀▀▀ @@
• ▌ ▄ ·. @
·██ ▐███▪@
▐█ ▌▐▌▐█·@
██ ██▌▐█▌@
▀▀ █▪▀▀▀@@
▐ ▄ @
•█▌▐█@
▐█▐▐▌@
██▐█▌@
▀▀ █▪@@
@
▪ @
▄█▀▄ @
▐█▌.▐▌@
▀█▄▀▪@@
▄▄▄·@
▐█ ▄█@
██▀·@
▐█▪·•@
.▀ @@
.▄▄▄ @
▐▀•▀█ @
█▌·.█▌@
▐█▪▄█·@
·▀▀█. @@
▄▄▄ @
▀▄ █·@
▐▀▀▄ @
▐█•█▌@
.▀ ▀@@
.▄▄ · @
▐█ ▀. @
▄▀▀▀█▄@
▐█▄▪▐█@
▀▀▀▀ @@
▄▄▄▄▄@
•██ @
▐█.▪@
▐█▌·@
▀▀▀ @@
▄• ▄▌@
█▪██▌@
█▌▐█▌@
▐█▄█▌@
▀▀▀ @@
▌ ▐·@
▪█·█▌@
▐█▐█•@
███ @
. ▀ @@
▄▄▌ ▐ ▄▌@
██· █▌▐█@
██▪▐█▐▐▌@
▐█▌██▐█▌@
▀▀▀▀ ▀▪@@
▐▄• ▄ @
█▌█▌▪@
·██· @
▪▐█·█▌@
•▀▀ ▀▀@@
▄· ▄▌@
▐█▪██▌@
▐█▌▐█▪@
▐█▀·.@
▀ • @@
·▄▄▄▄•@
▪▀·.█▌@
▄█▀▀▀•@
█▌▪▄█▀@
·▀▀▀ •@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
▄▄▄· @
▐█ ▀█ @
▄█▀▀█ @
▐█ ▪▐▌@
▀ ▀ @@
▄▄▄▄· @
▐█ ▀█▪@
▐█▀▀█▄@
██▄▪▐█@
·▀▀▀▀ @@
▄▄· @
▐█ ▌▪@
██ ▄▄@
▐███▌@
·▀▀▀ @@
·▄▄▄▄ @
██▪ ██ @
▐█· ▐█▌@
██. ██ @
▀▀▀▀▀• @@
▄▄▄ .@
▀▄.▀·@
▐▀▀▪▄@
▐█▄▄▌@
▀▀▀ @@
·▄▄▄@
▐▄▄·@
██▪ @
██▌.@
▀▀▀ @@
▄▄ • @
▐█ ▀ ▪@
▄█ ▀█▄@
▐█▄▪▐█@
·▀▀▀▀ @@
▄ .▄@
██▪▐█@
██▀▐█@
██▌▐▀@
▀▀▀ ·@@
▪ @
██ @
▐█·@
▐█▌@
▀▀▀@@
▐▄▄▄@
·██@
▪▄ ██@
▐▌▐█▌@
▀▀▀•@@
▄ •▄ @
█▌▄▌▪@
▐▀▀▄·@
▐█.█▌@
·▀ ▀@@
▄▄▌ @
██• @
██▪ @
▐█▌▐▌@
.▀▀▀ @@
• ▌ ▄ ·. @
·██ ▐███▪@
▐█ ▌▐▌▐█·@
██ ██▌▐█▌@
▀▀ █▪▀▀▀@@
▐ ▄ @
•█▌▐█@
▐█▐▐▌@
██▐█▌@
▀▀ █▪@@
@
▪ @
▄█▀▄ @
▐█▌.▐▌@
▀█▄▀▪@@
▄▄▄·@
▐█ ▄█@
██▀·@
▐█▪·•@
.▀ @@
.▄▄▄ @
▐▀•▀█ @
█▌·.█▌@
▐█▪▄█·@
·▀▀█. @@
▄▄▄ @
▀▄ █·@
▐▀▀▄ @
▐█•█▌@
.▀ ▀@@
.▄▄ · @
▐█ ▀. @
▄▀▀▀█▄@
▐█▄▪▐█@
▀▀▀▀ @@
▄▄▄▄▄@
•██ @
▐█.▪@
▐█▌·@
▀▀▀ @@
▄• ▄▌@
█▪██▌@
█▌▐█▌@
▐█▄█▌@
▀▀▀ @@
▌ ▐·@
▪█·█▌@
▐█▐█•@
███ @
. ▀ @@
▄▄▌ ▐ ▄▌@
██· █▌▐█@
██▪▐█▐▐▌@
▐█▌██▐█▌@
▀▀▀▀ ▀▪@@
▐▄• ▄ @
█▌█▌▪@
·██· @
▪▐█·█▌@
•▀▀ ▀▀@@
▄· ▄▌@
▐█▪██▌@
▐█▌▐█▪@
▐█▀·.@
▀ • @@
·▄▄▄▄•@
▪▀·.█▌@
▄█▀▀▀•@
█▌▪▄█▀@
·▀▀▀ •@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@@ -0,0 +1,43 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("eslint-utils")
module.exports = {
meta: {
docs: {
description: "disallow the `Object.defineProperties` method.",
category: "ES5",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-object-defineproperties.html",
},
fixable: null,
messages: {
forbidden: "ES5 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"() {
const tracker = new ReferenceTracker(context.getScope())
for (const { node, path } of tracker.iterateGlobalReferences({
Object: {
defineProperties: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1,547 @@
export default `flf2a$ 5 4 12 -1 36 0 3903 0
Author : Aaron Nolan
Email : speed_racer420@hotmail.com
Date : 2005/4/7 10:39:30
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
(english)
(comments): I put in an "�, �, and �" for all you germans out there,
the "�" was a little too difficult. This is of course the FILTER font
inspired from the band logo, have fun. And don't poke an eye out.
(deutsch)
(kommentar): Ich habe auch "�, �, und �" dazu gemacht, f�r Ihr Deutschen
da drausen, das scharfe S (�) war ein bisschen zu schwierig. Dies ist
natr�rlich
die FILTER schriftart (figlet-font), inspiriert von dem Bandlogo, viel Spa�.
Und, das Auge nicht damit auspfl�cken!
Permission is hereby given to modify this font, as long as the
modifier's, and the original author's name name is placed on a comment line.
Also check out the Malicious (industrial electronic darkwave ebm synthpop)
band here:
http://themalicious.dmusic.com/
http://themalicious.shim.net/
http://groups.yahoo.com/group/themalicious
http://www.audiostreet.net/themalicious
http://www.roilnoise.com/Industrialterror.htm
thanks.
$ #
$ #
$ #
$ #
$ ##
d88 #
d88. #
\`'d8 #
YP #
##
88b 88b #
\`8p \`8p #
#
#
##
##
#
#
#
##
$#
#
#
#
##
%#
#
#
#
##
&#
#
#
#
##
'#
#
#
#
##
(#
#
#
#
##
)#
#
#
#
##
*#
#
#
#
##
888 #
ooo888ooo #
888888888 #
888 #
##
,#
#
#
#
##
#
______ #
XXXXXX #
#
##
.#
#
#
#
##
/#
#
#
#
##
0#
#
#
#
##
1#
#
#
#
##
2#
#
#
#
##
3#
#
#
#
##
4#
#
#
#
##
5#
#
#
#
##
6#
#
#
#
##
7#
#
#
#
##
8#
#
#
#
##
9#
#
#
#
##
#
d8p #
#
d8p #
##
#
d8p #
#
,d #
##
<#
#
#
#
##
#
oooooo #
oooooo #
#
##
>#
#
#
#
##
?#
#
#
#
##
@#
#
#
#
##
,8b. #
88'8o #
88PPY8. #
8b \`Y' #
##
d88PPPo #
888ooo8 #
888 8 #
888PPPP #
##
doooooo #
d88 #
d88 #
d888888 #
##
88PPP. #
88 8 #
88 8 #
88oop' #
##
,d8PPPP #
d88ooo #
,88' #
88bdPPP #
##
o8boooo #
88booop #
88b #
88P #
##
888PPP8b #
d88 \` #
d8b PPY8 #
Y8PPPPPP #
##
888 888 #
88888888 #
88P 888 #
88P 888 #
##
8888 #
8888 #
8888 #
8888 #
##
d8p #
88p #
88P #
88888' #
##
888 ,dP #
888o8P' #
888 Y8L #
888 \`8p #
##
888 #
888 #
888 #
888PPPPP #
##
d88b_o8b #
d88 8'8b #
d88 8b #
Y88 8P #
##
888 ,d8 #
888_dPY8 #
8888' 88 #
Y8P Y8 #
##
88888888 #
888 888 #
888 888 #
888oo888 #
##
8888PPPp, #
8888 8 #
8888PPPP' #
888P #
_ _ ##
88888888 #
88b Y8 #
888 Yb,8, #
888oopY88 #
##
,dbPPPp #
d88ooP' #
,88' P' #
88 do #
##
88888888 #
88ooooPp #
d8 #
8888888P #
##
888888888 #
'88d #
'888 #
'88p #
##
888 888 #
888 888 #
888 888 #
888PP888 #
##
d88 88 #
d88 88 #
d88_o8P' #
Y88P' #
##
8d8 d88 #
888,o.d88 #
888P\`Y8b8 #
88P YP8 #
##
88b d88 #
88od88 #
d8PY8d #
Y88 Y8P #
##
888 88 #
888ooo88 #
88 #
PPPPPP8P #
##
PPPPP88p' #
,dP' #
,dP' #
YPPPPPPP #
##
[#
#
#
#
##
\\#
#
#
#
##
]#
#
#
#
##
^#
#
#
#
##
_#
#
#
#
##
\`#
#
#
#
##
,8b. #
88'8o #
88PPY8. #
8b \`Y' #
##
d88PPPo #
888ooo8 #
888 8 #
888PPPP #
##
doooooo #
d88 #
d88 #
d888888 #
##
88PPP. #
88 8 #
88 8 #
88oop' #
##
,d8PPPP #
d88ooo #
,88' #
88bdPPP #
##
o8boooo #
88booop #
88b #
88P #
##
888PPP8b #
d88 \` #
d8b PPY8 #
Y8PPPPPP #
##
888 888 #
88888888 #
88P 888 #
88P 888 #
##
8888 #
8888 #
8888 #
8888 #
##
d8p #
88p #
88P #
88888' #
##
888 ,dP #
888o8P' #
888 Y8L #
888 \`8p #
##
888 #
888 #
888 #
888PPPPP #
##
d88b_o8b #
d88 8'8b #
d88 8b #
Y88 8P #
##
888 ,d8 #
888_dPY8 #
8888' 88 #
Y8P Y8 #
##
88888888 #
888 888 #
888 888 #
888oo888 #
##
8888PPPp, #
8888 8 #
8888PPPP' #
888P #
_ _ ##
88888888 #
88b Y8 #
888 Yb,8, #
888oopY88 #
##
,dbPPPp #
d88ooP' #
,88' P' #
88 do #
##
88888888 #
88ooooPp #
d8 #
8888888P #
##
888888888 #
'88d #
'888 #
'88p #
##
888 888 #
888 888 #
888 888 #
888PP888 #
##
d88 88 #
d88 88 #
d88_o8P' #
Y88P' #
##
8d8 d88 #
888,o.d88 #
888P\`Y8b8 #
88P YP8 #
##
88b d88 #
88od88 #
d8PY8d #
Y88 Y8P #
##
888 88 #
888ooo88 #
88 #
PPPPPP8P #
##
PPPPP88p'#
,dP' #
,dP' #
YPPPPPPP #
##
{#
#
#
#
##
|#
#
#
#
##
}#
#
#
#
##
~#
#
#
#
##
,8b. #
88'8o #
88PPY8. #
8b \`Y' #
##
88888888 #
888 888 #
888 888 #
888oo888 #
##
888 888 #
888 888 #
888 888 #
888PP888 #
##
a a #
dPPP8 #
.oood #
8ppp8 #
##
o o #
poooop #
88 88 #
YPPP8P #
##
u u #
d8 d8 #
d8 d8 #
YPPP8P #
##
�#
#
#
#
##`
@@ -0,0 +1 @@
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../src/planning/actions/plan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAQlG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAqBxD,eAAO,MAAM,4CAA4C,EAAE,CACzD,MAAM,EAAE,aAAa,EACrB,sBAAsB,EAAE,yBAAyB,CAAC,0BAA0B,CAAC,EAC7E,eAAe,EAAE,2BAA2B,KACzC,eAEJ,CAAC;AAEF,eAAO,MAAM,oDAAoD,EAAE,CACjE,MAAM,EAAE,aAAa,EACrB,sBAAsB,EAAE,yBAAyB,CAAC,0BAA0B,CAAC,EAC7E,eAAe,EAAE,4BAA4B,KAC1C,eAGF,CAAC;AAuCJ,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA2BnD"}
@@ -0,0 +1,62 @@
import Scope from '../scope.js';
export interface AttributorOptions {
scope?: Scope;
whitelist?: string[];
}
export default class Attributor {
public static keys(node: HTMLElement): string[] {
return Array.from(node.attributes).map((item: Attr) => item.name);
}
public scope: Scope;
public whitelist: string[] | undefined;
constructor(
public readonly attrName: string,
public readonly keyName: string,
options: AttributorOptions = {},
) {
const attributeBit = Scope.TYPE & Scope.ATTRIBUTE;
this.scope =
options.scope != null
? // Ignore type bits, force attribute bit
(options.scope & Scope.LEVEL) | attributeBit
: Scope.ATTRIBUTE;
if (options.whitelist != null) {
this.whitelist = options.whitelist;
}
}
public add(node: HTMLElement, value: any): boolean {
if (!this.canAdd(node, value)) {
return false;
}
node.setAttribute(this.keyName, value);
return true;
}
public canAdd(_node: HTMLElement, value: any): boolean {
if (this.whitelist == null) {
return true;
}
if (typeof value === 'string') {
return this.whitelist.indexOf(value.replace(/["']/g, '')) > -1;
} else {
return this.whitelist.indexOf(value) > -1;
}
}
public remove(node: HTMLElement): void {
node.removeAttribute(this.keyName);
}
public value(node: HTMLElement): any {
const value = node.getAttribute(this.keyName);
if (this.canAdd(node, value) && value) {
return value;
}
return '';
}
}
@@ -0,0 +1 @@
{"name":"state-local","version":"1.0.7","requiresBuild":false,"files":{"CHANGELOG.md":{"checkedAt":1794532110300,"integrity":"sha512-tQ5z1G8L6WC1DjeVP3XqoWLbZ7gv41apIz2pSLV8z6hHd4MG+oB9drdfB7Dv15hzW+fVQ0nDHtQBO3t3lDOEdA==","mode":420,"size":650},"LICENSE":{"checkedAt":1794532110300,"integrity":"sha512-wU0+SgaJX1K9dOuqnHb0mTkgb++bhjBqMguMKTBZLDbI/cSEpfyLA743bWzaCYBRZ+iMCTuuxYF9t0PvEQFNGA==","mode":420,"size":1069},"README.md":{"checkedAt":1794532110300,"integrity":"sha512-3gSsJpTHUmj5ZQAvS+RFkQzht+a27ddY+fqFYh2hVn+7LXT5IY/WEseG3B2zUddTfQ3JQ0fRtPli6UQZ52HbHQ==","mode":420,"size":9345},"package.json":{"checkedAt":1794532110300,"integrity":"sha512-akxZzeRpRfak6fJflIJpuueCUaKiRbFtN4izr/8XgHNapX95+5d4dXssyjvrhdpSuCgSV5UD/zmJAxWwi+zt6A==","mode":420,"size":1644},"rollup.config.mjs":{"checkedAt":1794532110301,"integrity":"sha512-RKNCwTrkVTcHT4eDD8OLtv2glxoPR4wltVuCmsQdwl1L0zZso6emC6x4zDnqASTMuVJ4wDM8Oind7sT5e4fzuw==","mode":420,"size":1456},"lib/types.d.ts":{"checkedAt":1794532110301,"integrity":"sha512-NhmNNbKZ6odk4xzJk0E++5QgAM3sYghh/ry+LXStQ/3X+/KlZ++/D4yVFU62EKCUvc1WGZ+pXWQYLZQtGfdw1g==","mode":420,"size":1266},"lib/cjs/state-local.js":{"checkedAt":1794532110301,"integrity":"sha512-PV6nij4tvCAbYJwD2U+1HDLljegP0YzYoLs2mqva1l85/GhILf5my9/9ICPsAcqTDy/NXo0UEkC5gF8E310EIw==","mode":420,"size":5566},"lib/es/state-local.js":{"checkedAt":1794532110301,"integrity":"sha512-l8KoUzK7XIaRd+Ahr/bocsOUBUBPfVq6qL3PPpdnP5myulNDNC7G8K5ukTdTgVbAIVMgyedAbqkLP1o0AjWdxQ==","mode":420,"size":5549},"lib/umd/state-local.js":{"checkedAt":1794532110301,"integrity":"sha512-YaYHP8TdUJVQOJDYASwg5Suk5oajFwAKsw9wJ5ye6JKPwoSraNJQN7jkezT0PKVETdr66m63psLgdioWnkvyWg==","mode":420,"size":6199},"lib/umd/state-local.min.js":{"checkedAt":1794532110301,"integrity":"sha512-o6+SMxeLB0erpmMu3cxLqnFBGwsPSSadmpTczDz588ZFzrillXITaiBCnxY9vN08NirXgSRyamxFCR/1hyKz0Q==","mode":420,"size":4575}}}
@@ -0,0 +1,559 @@
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
// A simple implementation of make-array
function makeArray(subject) {
return Array.isArray(subject) ? subject : [subject];
}
var EMPTY = '';
var SPACE = ' ';
var ESCAPE = '\\';
var REGEX_TEST_BLANK_LINE = /^\s+$/;
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
var REGEX_SPLITALL_CRLF = /\r?\n/g;
// /foo,
// ./foo,
// ../foo,
// .
// ..
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
var SLASH = '/';
// Do not use ternary expression here, since "istanbul ignore next" is buggy
var TMP_KEY_IGNORE = 'node-ignore';
/* istanbul ignore else */
if (typeof Symbol !== 'undefined') {
TMP_KEY_IGNORE = Symbol["for"]('node-ignore');
}
var KEY_IGNORE = TMP_KEY_IGNORE;
var define = function define(object, key, value) {
return Object.defineProperty(object, key, {
value: value
});
};
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
var RETURN_FALSE = function RETURN_FALSE() {
return false;
};
// Sanitize the range of a regular expression
// The cases are complicated, see test cases for details
var sanitizeRange = function sanitizeRange(range) {
return range.replace(REGEX_REGEXP_RANGE, function (match, from, to) {
return from.charCodeAt(0) <= to.charCodeAt(0) ? match
// Invalid range (out of order) which is ok for gitignore rules but
// fatal for JavaScript regular expression, so eliminate it.
: EMPTY;
});
};
// See fixtures #59
var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
var length = slashes.length;
return slashes.slice(0, length - length % 2);
};
// > If the pattern ends with a slash,
// > it is removed for the purpose of the following description,
// > but it would only find a match with a directory.
// > In other words, foo/ will match a directory foo and paths underneath it,
// > but will not match a regular file or a symbolic link foo
// > (this is consistent with the way how pathspec works in general in Git).
// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
// you could use option `mark: true` with `glob`
// '`foo/`' should not continue with the '`..`'
var REPLACERS = [[
// remove BOM
// TODO:
// Other similar zero-width characters?
/^\uFEFF/, function () {
return EMPTY;
}],
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
[
// (a\ ) -> (a )
// (a ) -> (a)
// (a ) -> (a)
// (a \ ) -> (a )
/((?:\\\\)*?)(\\?\s+)$/, function (_, m1, m2) {
return m1 + (m2.indexOf('\\') === 0 ? SPACE : EMPTY);
}],
// replace (\ ) with ' '
// (\ ) -> ' '
// (\\ ) -> '\\ '
// (\\\ ) -> '\\ '
[/(\\+?)\s/g, function (_, m1) {
var length = m1.length;
return m1.slice(0, length - length % 2) + SPACE;
}],
// Escape metacharacters
// which is written down by users but means special for regular expressions.
// > There are 12 characters with special meanings:
// > - the backslash \,
// > - the caret ^,
// > - the dollar sign $,
// > - the period or dot .,
// > - the vertical bar or pipe symbol |,
// > - the question mark ?,
// > - the asterisk or star *,
// > - the plus sign +,
// > - the opening parenthesis (,
// > - the closing parenthesis ),
// > - and the opening square bracket [,
// > - the opening curly brace {,
// > These special characters are often called "metacharacters".
[/[\\$.|*+(){^]/g, function (match) {
return "\\".concat(match);
}], [
// > a question mark (?) matches a single character
/(?!\\)\?/g, function () {
return '[^/]';
}],
// leading slash
[
// > A leading slash matches the beginning of the pathname.
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
// A leading slash matches the beginning of the pathname
/^\//, function () {
return '^';
}],
// replace special metacharacter slash after the leading slash
[/\//g, function () {
return '\\/';
}], [
// > A leading "**" followed by a slash means match in all directories.
// > For example, "**/foo" matches file or directory "foo" anywhere,
// > the same as pattern "foo".
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
// > under directory "foo".
// Notice that the '*'s have been replaced as '\\*'
/^\^*\\\*\\\*\\\//,
// '**/foo' <-> 'foo'
function () {
return '^(?:.*\\/)?';
}],
// starting
[
// there will be no leading '/'
// (which has been replaced by section "leading slash")
// If starts with '**', adding a '^' to the regular expression also works
/^(?=[^^])/, function startingReplacer() {
// If has a slash `/` at the beginning or middle
return !/\/(?!$)/.test(this)
// > Prior to 2.22.1
// > If the pattern does not contain a slash /,
// > Git treats it as a shell glob pattern
// Actually, if there is only a trailing slash,
// git also treats it as a shell glob pattern
// After 2.22.1 (compatible but clearer)
// > If there is a separator at the beginning or middle (or both)
// > of the pattern, then the pattern is relative to the directory
// > level of the particular .gitignore file itself.
// > Otherwise the pattern may also match at any level below
// > the .gitignore level.
? '(?:^|\\/)'
// > Otherwise, Git treats the pattern as a shell glob suitable for
// > consumption by fnmatch(3)
: '^';
}],
// two globstars
[
// Use lookahead assertions so that we could match more than one `'/**'`
/\\\/\\\*\\\*(?=\\\/|$)/g,
// Zero, one or several directories
// should not use '*', or it will be replaced by the next replacer
// Check if it is not the last `'/**'`
function (_, index, str) {
return index + 6 < str.length
// case: /**/
// > A slash followed by two consecutive asterisks then a slash matches
// > zero or more directories.
// > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
// '/**/'
? '(?:\\/[^\\/]+)*'
// case: /**
// > A trailing `"/**"` matches everything inside.
// #21: everything inside but it should not include the current folder
: '\\/.+';
}],
// normal intermediate wildcards
[
// Never replace escaped '*'
// ignore rule '\*' will match the path '*'
// 'abc.*/' -> go
// 'abc.*' -> skip this rule,
// coz trailing single wildcard will be handed by [trailing wildcard]
/(^|[^\\]+)(\\\*)+(?=.+)/g,
// '*.js' matches '.js'
// '*.js' doesn't match 'abc'
function (_, p1, p2) {
// 1.
// > An asterisk "*" matches anything except a slash.
// 2.
// > Other consecutive asterisks are considered regular asterisks
// > and will match according to the previous rules.
var unescaped = p2.replace(/\\\*/g, '[^\\/]*');
return p1 + unescaped;
}], [
// unescape, revert step 3 except for back slash
// For example, if a user escape a '\\*',
// after step 3, the result will be '\\\\\\*'
/\\\\\\(?=[$.|*+(){^])/g, function () {
return ESCAPE;
}], [
// '\\\\' -> '\\'
/\\\\/g, function () {
return ESCAPE;
}], [
// > The range notation, e.g. [a-zA-Z],
// > can be used to match one of the characters in a range.
// `\` is escaped by step 3
/(\\)?\[([^\]/]*?)(\\*)($|\])/g, function (match, leadEscape, range, endEscape, close) {
return leadEscape === ESCAPE
// '\\[bar]' -> '\\\\[bar\\]'
? "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close) : close === ']' ? endEscape.length % 2 === 0
// A normal case, and it is a range notation
// '[bar]'
// '[bar\\\\]'
? "[".concat(sanitizeRange(range)).concat(endEscape, "]") // Invalid range notaton
// '[bar\\]' -> '[bar\\\\]'
: '[]' : '[]';
}],
// ending
[
// 'js' will not match 'js.'
// 'ab' will not match 'abc'
/(?:[^*])$/,
// WTF!
// https://git-scm.com/docs/gitignore
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
// which re-fixes #24, #38
// > If there is a separator at the end of the pattern then the pattern
// > will only match directories, otherwise the pattern can match both
// > files and directories.
// 'js*' will not match 'a.js'
// 'js/' will not match 'a.js'
// 'js' will match 'a.js' and 'a.js/'
function (match) {
return /\/$/.test(match)
// foo/ will not match 'foo'
? "".concat(match, "$") // foo matches 'foo' and 'foo/'
: "".concat(match, "(?=$|\\/$)");
}],
// trailing wildcard
[/(\^|\\\/)?\\\*$/, function (_, p1) {
var prefix = p1
// '\^':
// '/*' does not match EMPTY
// '/*' does not match everything
// '\\\/':
// 'abc/*' does not match 'abc/'
? "".concat(p1, "[^/]+") // 'a*' matches 'a'
// 'a*' matches 'aa'
: '[^/]*';
return "".concat(prefix, "(?=$|\\/$)");
}]];
// A simple cache, because an ignore rule only has only one certain meaning
var regexCache = Object.create(null);
// @param {pattern}
var makeRegex = function makeRegex(pattern, ignoreCase) {
var source = regexCache[pattern];
if (!source) {
source = REPLACERS.reduce(function (prev, _ref) {
var _ref2 = _slicedToArray(_ref, 2),
matcher = _ref2[0],
replacer = _ref2[1];
return prev.replace(matcher, replacer.bind(pattern));
}, pattern);
regexCache[pattern] = source;
}
return ignoreCase ? new RegExp(source, 'i') : new RegExp(source);
};
var isString = function isString(subject) {
return typeof subject === 'string';
};
// > A blank line matches no files, so it can serve as a separator for readability.
var checkPattern = function checkPattern(pattern) {
return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
// > A line starting with # serves as a comment.
&& pattern.indexOf('#') !== 0;
};
var splitPattern = function splitPattern(pattern) {
return pattern.split(REGEX_SPLITALL_CRLF);
};
var IgnoreRule = /*#__PURE__*/_createClass(function IgnoreRule(origin, pattern, negative, regex) {
_classCallCheck(this, IgnoreRule);
this.origin = origin;
this.pattern = pattern;
this.negative = negative;
this.regex = regex;
});
var createRule = function createRule(pattern, ignoreCase) {
var origin = pattern;
var negative = false;
// > An optional prefix "!" which negates the pattern;
if (pattern.indexOf('!') === 0) {
negative = true;
pattern = pattern.substr(1);
}
pattern = pattern
// > Put a backslash ("\") in front of the first "!" for patterns that
// > begin with a literal "!", for example, `"\!important!.txt"`.
.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
// > Put a backslash ("\") in front of the first hash for patterns that
// > begin with a hash.
.replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#');
var regex = makeRegex(pattern, ignoreCase);
return new IgnoreRule(origin, pattern, negative, regex);
};
var throwError = function throwError(message, Ctor) {
throw new Ctor(message);
};
var checkPath = function checkPath(path, originalPath, doThrow) {
if (!isString(path)) {
return doThrow("path must be a string, but got `".concat(originalPath, "`"), TypeError);
}
// We don't know if we should ignore EMPTY, so throw
if (!path) {
return doThrow("path must not be empty", TypeError);
}
// Check if it is a relative path
if (checkPath.isNotRelative(path)) {
var r = '`path.relative()`d';
return doThrow("path should be a ".concat(r, " string, but got \"").concat(originalPath, "\""), RangeError);
}
return true;
};
var isNotRelative = function isNotRelative(path) {
return REGEX_TEST_INVALID_PATH.test(path);
};
checkPath.isNotRelative = isNotRelative;
checkPath.convert = function (p) {
return p;
};
var Ignore = /*#__PURE__*/function () {
function Ignore() {
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref3$ignorecase = _ref3.ignorecase,
ignorecase = _ref3$ignorecase === void 0 ? true : _ref3$ignorecase,
_ref3$ignoreCase = _ref3.ignoreCase,
ignoreCase = _ref3$ignoreCase === void 0 ? ignorecase : _ref3$ignoreCase,
_ref3$allowRelativePa = _ref3.allowRelativePaths,
allowRelativePaths = _ref3$allowRelativePa === void 0 ? false : _ref3$allowRelativePa;
_classCallCheck(this, Ignore);
define(this, KEY_IGNORE, true);
this._rules = [];
this._ignoreCase = ignoreCase;
this._allowRelativePaths = allowRelativePaths;
this._initCache();
}
_createClass(Ignore, [{
key: "_initCache",
value: function _initCache() {
this._ignoreCache = Object.create(null);
this._testCache = Object.create(null);
}
}, {
key: "_addPattern",
value: function _addPattern(pattern) {
// #32
if (pattern && pattern[KEY_IGNORE]) {
this._rules = this._rules.concat(pattern._rules);
this._added = true;
return;
}
if (checkPattern(pattern)) {
var rule = createRule(pattern, this._ignoreCase);
this._added = true;
this._rules.push(rule);
}
}
// @param {Array<string> | string | Ignore} pattern
}, {
key: "add",
value: function add(pattern) {
this._added = false;
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
// Some rules have just added to the ignore,
// making the behavior changed.
if (this._added) {
this._initCache();
}
return this;
}
// legacy
}, {
key: "addPattern",
value: function addPattern(pattern) {
return this.add(pattern);
}
// | ignored : unignored
// negative | 0:0 | 0:1 | 1:0 | 1:1
// -------- | ------- | ------- | ------- | --------
// 0 | TEST | TEST | SKIP | X
// 1 | TESTIF | SKIP | TEST | X
// - SKIP: always skip
// - TEST: always test
// - TESTIF: only test if checkUnignored
// - X: that never happen
// @param {boolean} whether should check if the path is unignored,
// setting `checkUnignored` to `false` could reduce additional
// path matching.
// @returns {TestResult} true if a file is ignored
}, {
key: "_testOne",
value: function _testOne(path, checkUnignored) {
var ignored = false;
var unignored = false;
this._rules.forEach(function (rule) {
var negative = rule.negative;
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
return;
}
var matched = rule.regex.test(path);
if (matched) {
ignored = !negative;
unignored = negative;
}
});
return {
ignored: ignored,
unignored: unignored
};
}
// @returns {TestResult}
}, {
key: "_test",
value: function _test(originalPath, cache, checkUnignored, slices) {
var path = originalPath
// Supports nullable path
&& checkPath.convert(originalPath);
checkPath(path, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
return this._t(path, cache, checkUnignored, slices);
}
}, {
key: "_t",
value: function _t(path, cache, checkUnignored, slices) {
if (path in cache) {
return cache[path];
}
if (!slices) {
// path/to/a.js
// ['path', 'to', 'a.js']
slices = path.split(SLASH);
}
slices.pop();
// If the path has no parent directory, just test it
if (!slices.length) {
return cache[path] = this._testOne(path, checkUnignored);
}
var parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices);
// If the path contains a parent directory, check the parent first
return cache[path] = parent.ignored
// > It is not possible to re-include a file if a parent directory of
// > that file is excluded.
? parent : this._testOne(path, checkUnignored);
}
}, {
key: "ignores",
value: function ignores(path) {
return this._test(path, this._ignoreCache, false).ignored;
}
}, {
key: "createFilter",
value: function createFilter() {
var _this = this;
return function (path) {
return !_this.ignores(path);
};
}
}, {
key: "filter",
value: function filter(paths) {
return makeArray(paths).filter(this.createFilter());
}
// @returns {TestResult}
}, {
key: "test",
value: function test(path) {
return this._test(path, this._testCache, true);
}
}]);
return Ignore;
}();
var factory = function factory(options) {
return new Ignore(options);
};
var isPathValid = function isPathValid(path) {
return checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
};
factory.isPathValid = isPathValid;
// Fixes typescript
factory["default"] = factory;
module.exports = factory;
// Windows
// --------------------------------------------------------------
/* istanbul ignore if */
if (
// Detect `process` so that it can run in browsers.
typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) {
/* eslint no-control-regex: "off" */
var makePosix = function makePosix(str) {
return /^\\\\\?\\/.test(str) || /[\0-\x1F"<>\|]+/.test(str) ? str : str.replace(/\\/g, '/');
};
checkPath.convert = makePosix;
// 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
// 'd:\\foo'
var REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
checkPath.isNotRelative = function (path) {
return REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
};
}
@@ -0,0 +1,2 @@
export { SortableContext, Context } from './SortableContext';
export type { Props as SortableContextProps } from './SortableContext';
@@ -0,0 +1,27 @@
'use strict';
var identity = require('./identity.js');
var Node = require('./Node.js');
var toJS = require('./toJS.js');
const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object');
class Scalar extends Node.NodeBase {
constructor(value) {
super(identity.SCALAR);
this.value = value;
}
toJSON(arg, ctx) {
return ctx?.keep ? this.value : toJS.toJS(this.value, arg, ctx);
}
toString() {
return String(this.value);
}
}
Scalar.BLOCK_FOLDED = 'BLOCK_FOLDED';
Scalar.BLOCK_LITERAL = 'BLOCK_LITERAL';
Scalar.PLAIN = 'PLAIN';
Scalar.QUOTE_DOUBLE = 'QUOTE_DOUBLE';
Scalar.QUOTE_SINGLE = 'QUOTE_SINGLE';
exports.Scalar = Scalar;
exports.isScalarValue = isScalarValue;
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const es2020: LibDefinition;
@@ -0,0 +1 @@
{"mappings":"AAAA;;;;;;;;;;CAUC,GAIM,SAAS,0CAAiB,IAAa,EAAE,UAA+B;IAC7E,0DAA0D;IAC1D,IAAI,OAAO,WAAW,WAAW,KAAK,YACpC,OAAO,WAAW,WAAW,CAAC,KAAK,GAAG;IAGxC,uCAAuC;IACvC,OAAO,KAAK,UAAU;AACxB;AAEO,SAAS,0CAAgB,QAAqB;IACnD,OAAO,0CAAW,UAAU;AAC9B;AAEO,SAAS,0CAAc,QAAqB,EAAE,KAAa;IAChE,IAAI,QAAQ,GACV,OAAO;IAGT,IAAI,IAAI;IACR,KAAK,IAAI,QAAQ,SAAU;QACzB,IAAI,MAAM,OACR,OAAO;QAGT;IACF;AACF;AAEO,SAAS,0CAAe,QAAqB;IAClD,IAAI,WAA0B;IAC9B,KAAK,IAAI,SAAS,SAChB,WAAW;IAGb,OAAO;AACT;AAEO,SAAS,yCAAoB,UAA+B,EAAE,CAAU,EAAE,CAAU;IACzF,gEAAgE;IAChE,IAAI,EAAE,SAAS,KAAK,EAAE,SAAS,EAC7B,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK;IAG1B,4HAA4H;IAC5H,6IAA6I;IAC7I,6BAA6B;IAC7B,IAAI,aAAa;WAAI,mCAAa,YAAY;QAAI;KAAE;IACpD,IAAI,aAAa;WAAI,mCAAa,YAAY;QAAI;KAAE;IACpD,IAAI,2BAA2B,WAAW,KAAK,CAAC,GAAG,WAAW,MAAM,EAAE,SAAS,CAAC,CAAC,GAAG,IAAM,MAAM,UAAU,CAAC,EAAE;IAC7G,IAAI,6BAA6B,IAAI;QACnC,kEAAkE;QAClE,IAAI,UAAU,CAAC,yBAAyB;QACxC,IAAI,UAAU,CAAC,yBAAyB;QACxC,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK;IAC1B;IAEA,qHAAqH;IACrH,IAAI,WAAW,SAAS,CAAC,CAAA,OAAQ,SAAS,MAAM,GAC9C,OAAO;SACF,IAAI,WAAW,SAAS,CAAC,CAAA,OAAQ,SAAS,MAAM,GACrD,OAAO;IAGT,KAAK;IACL,OAAO;AACT;AAEA,SAAS,mCAAgB,UAA+B,EAAE,IAAa;IACrE,IAAI,UAAqB,EAAE;IAE3B,IAAI,WAA2B;IAC/B,MAAO,CAAA,qBAAA,+BAAA,SAAU,SAAS,KAAI,KAAM;QAClC,WAAW,WAAW,OAAO,CAAC,SAAS,SAAS;QAChD,IAAI,UACF,QAAQ,OAAO,CAAC;IAEpB;IAEA,OAAO;AACT","sources":["packages/@react-stately/collections/src/getChildNodes.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type {Collection, Node} from '@react-types/shared';\n\nexport function getChildNodes<T>(node: Node<T>, collection: Collection<Node<T>>): Iterable<Node<T>> {\n // New API: call collection.getChildren with the node key.\n if (typeof collection.getChildren === 'function') {\n return collection.getChildren(node.key);\n }\n\n // Old API: access childNodes directly.\n return node.childNodes;\n}\n\nexport function getFirstItem<T>(iterable: Iterable<T>): T | undefined {\n return getNthItem(iterable, 0);\n}\n\nexport function getNthItem<T>(iterable: Iterable<T>, index: number): T | undefined {\n if (index < 0) {\n return undefined;\n }\n\n let i = 0;\n for (let item of iterable) {\n if (i === index) {\n return item;\n }\n\n i++;\n }\n}\n\nexport function getLastItem<T>(iterable: Iterable<T>): T | undefined {\n let lastItem: T | undefined = undefined;\n for (let value of iterable) {\n lastItem = value;\n }\n\n return lastItem;\n}\n\nexport function compareNodeOrder<T>(collection: Collection<Node<T>>, a: Node<T>, b: Node<T>) {\n // If the two nodes have the same parent, compare their indices.\n if (a.parentKey === b.parentKey) {\n return a.index - b.index;\n }\n\n // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n // ancestor of the same level\n let aAncestors = [...getAncestors(collection, a), a];\n let bAncestors = [...getAncestors(collection, b), b];\n let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i) => a !== bAncestors[i]);\n if (firstNonMatchingAncestor !== -1) {\n // Compare the indices of two children within the common ancestor.\n a = aAncestors[firstNonMatchingAncestor];\n b = bAncestors[firstNonMatchingAncestor];\n return a.index - b.index;\n }\n\n // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n if (aAncestors.findIndex(node => node === b) >= 0) {\n return 1;\n } else if (bAncestors.findIndex(node => node === a) >= 0) {\n return -1;\n }\n\n // 🤷\n return -1;\n}\n\nfunction getAncestors<T>(collection: Collection<Node<T>>, node: Node<T>): Node<T>[] {\n let parents: Node<T>[] = [];\n\n let currNode: Node<T> | null = node;\n while (currNode?.parentKey != null) {\n currNode = collection.getItem(currNode.parentKey);\n if (currNode) {\n parents.unshift(currNode);\n }\n }\n\n return parents;\n}\n"],"names":[],"version":3,"file":"getChildNodes.module.js.map"}
@@ -0,0 +1,885 @@
flf2a$ 5 4 10 62 8
This font is (c) Michel Eftimakis 1995 -- Version 2.0 -- 27 jan 1995
____________________________________________________________ /`____
| Michel Eftimakis | "Ascii-Artist" '\/ |
| Michel.Eftimakis@ustc.vlsi.com | Boo)- (00) ||
| Tel : (33) 92 96 27 19 | (_`'_) ||
|__ Fax : (33) 92 96 27 01 _________|____ FRANCE ___________ _!!_ ____||
|_____________________________________________________________________|
$@
$@
$@
$@
$@@
||@
L|@
@
()@
@@
@
[][]@
$ @
$ @
@@
@
_||_||_@
|| || @
-L|-L|-@
@@
|L @
/ _|@
\_ \@
|__/@
L| @@
@
()/7@
// @
//()@
@@
_ @
(o) @
/oV7@
\_n\@
@@
_@
//@
$@
$@
@@
_@
//@
||$@
||$@
\\@@
_ @
\\ @
$||@
$||@
// @@
. ,@
x @
' `@
$ @
@@
@
_||_ @
|_ _|@
L| @
@@
@
@
@
()$@
V @@
@
@
__ @
|__|@
@@
@
@
@
()$@
@@
_@
//@
// @
// @
@@
_ @
/ \ @
| 0 |@
\_/ @
@@
_ @
/o|@
$||@
$L|@
@@
__ @
[o )@
/( @
/__|@
@@
___@
|_ /@
__)\@
\__/@
@@
. @
/| @
/o| @
L___|@
@@
__ @
| _/@
\_ \@
|__/@
@@
_ @
// @
/o \@
\__/@
@@
____@
|__ /@
// @
// @
@@
__ @
(o )@
/o \@
\__/@
@@
__ @
/o \@
\_ /@
// @
@@
@
@
()@
()@
@@
@
@
()@
()@
V @@
_@
//@
<<$@
\\@
@@
@
___ @
|___|@
|___|@
@@
_ @
\\ @
$>>@
// @
@@
__ @
|o )@
// @
$ @
() @@
__ @
/_ \@
((o_/@
$\__7@
@@
_ @
/ \ @
| o |@
|_n_|@
@@
___ @
| o )@
| o \@
|___/@
@@
__ @
/ _|@
( (_ @
\__|@
@@
__ @
| \ @
| o )@
|__/ @
@@
___ @
| __|@
| _| @
|___|@
@@
___ @
| __|@
| _| @
|_| @
@@
__ @
/ _|@
( |_n@
\__/@
@@
_ _ @
| U |@
| |@
|_n_|@
@@
_ @
| |@
| |@
|_|@
@@
_ @
| |@
n_| |@
\__/ @
@@
_ _@
| |//@
| ( @
|_|\\@
@@
_ @
| | @
| |_ @
|___|@
@@
_ _ @
| \_/ |@
| \_/ |@
|_| |_|@
@@
_ _ @
| \| |@
| \\ |@
|_|\_|@
@@
_ @
/ \ @
( o )@
\_/ @
@@
___ @
| o \@
| _/@
|_| @
@@
_ @
/ \ @
( o )@
\_,7@
@@
___ @
| o \@
| /@
|_|\\@
@@
__ @
/ _|@
\_ \@
|__/@
@@
___ @
|_ _|@
| | @
|_| @
@@
_ _ @
| | |@
| U |@
|___|@
@@
_ _ @
| | |@
| V |@
\_/ @
@@
_ _ _ @
| | | |@
| V V |@
\_n_/ @
@@
__ __@
\ V /@
) ( @
/_n_\@
@@
__ __@
\ V /@
\ / @
|_| @
@@
___ @
|_ / @
/(_ @
/___|@
@@
__ @
| _|@
| |$@
| |$@
|__|@@
_ @
\\ @
\\ @
\\@
@@
__ @
|_ |@
$| |@
$| |@
|__|@@
_ @
/n\@
$ @
$ @
@@
@
@
@
___ @
|___|@@
_ @
\\@
$@
$@
@@
@
_ @
/o\ @
\_,]@
@@
@
|| @
|o\@
|_/@
@@
@
_@
//@
\\@
@@
@
||@
/o|@
\_|@
@@
@
_ @
/o\@
\( @
@@
__ @
/ _|@
| ] @
L| @
@@
@
_ @
/o\@
\_/@
_)@@
@
|| @
| \@
Ln|@
@@
@
()@
||@
L|@
@@
@
()@
||@
||@
//@@
@
|| @
|/7@
L|\@
@@
@
||@
||@
L|@
@@
@
_ _ @
|/ \ \@
L_n_n|@
@@
@
_ @
|/ \@
L_n|@
@@
@
_ @
/o\@
\_/@
@@
@
_ @
/o\@
|_/@
L| @@
@
_ @
/o\@
\_|@
L|@@
@
_ @
/_|@
L|$@
@@
@
_ @
(c'@
\_)@
@@
@
|| @
| ]@
L| @
@@
@
@
|U|@
\_/@
@@
@
@
\V7@
V @
@@
@
@
\VV7@
VV @
@@
@
@
\V7@
/n\@
@@
@
__ @
\ V7@
)/ @
// @@
@
__ @
|_ / @
/__|@
@@
_@
//@
/|$@
\|$@
\\@@
_ @
| |@
| |@
| |@
|_|@@
_ @
\\ @
$|\@
$|/@
// @@
_ @
//V7@
$ @
$ @
@@
()_()@
/ \ @
| o |@
|_n_|@
@@
()_()@
/ \ @
( o )@
\_/ @
@@
()_()@
| | |@
| U |@
|___|@
@@
@
O_O @
/o\ @
\_,]@
@@
@
O_O@
/o\@
\_/@
@@
@
O O@
|U|@
\_/@
@@
__ @
|o )@
|o \@
||_/@
L| @@
160
$@
$@
$@
$@
$@@
161
()@
@
||@
||@
L|@@
165
__ __@
\_V_/@
[___]@
|_| @
@@
166
||@
L|@
@
||@
L|@@
168
@
()()@
$$ @
$$ @
@@
183
_ @
(_)@
$ @
$ @
@@
192
\\ @
/ \ @
| o |@
|_n_|@
@@
193
// @
/ \ @
| o |@
|_n_|@
@@
194
/^\ @
/ \ @
| o |@
|_n_|@
@@
195
/\/ @
/ \ @
| o |@
|_n_|@
@@
196
()_()@
/ \ @
| o |@
|_n_|@
@@
197
(o) @
/ \ @
| o |@
|_n_|@
@@
198
____ @
/ __|@
| o _| @
|_n___|@
@@
199
__ @
/ _|@
( (_ @
\__|@
_) @@
200
\\_ @
| __|@
| _| @
|___|@
@@
201
//_ @
| __|@
| _| @
|___|@
@@
202
/^\ @
| __|@
| _| @
|___|@
@@
203
()_()@
| __|@
| _| @
|___|@
@@
204
\\@
| |@
| |@
|_|@
@@
205
//@
| |@
| |@
|_|@
@@
206
/^\@
| |@
| |@
|_|@
@@
207
()_()@
| | @
| | @
|_| @
@@
209
_/\/ @
| \| |@
| \\ |@
|_|\_|@
@@
210
\\ @
/ \ @
( o )@
\_/ @
@@
211
// @
/ \ @
( o )@
\_/ @
@@
212
/^\ @
/ \ @
( o )@
\_/ @
@@
213
/\/ @
/ \ @
( o )@
\_/ @
@@
214
()_()@
/ \ @
( o )@
\_/ @
@@
217
_\\ @
| | |@
| U |@
|___|@
@@
218
//_ @
| | |@
| U |@
|___|@
@@
219
/^\ @
| | |@
| U |@
|___|@
@@
220
()_()@
| | |@
| U |@
|___|@
@@
223
__ @
|o )@
|o \@
||_/@
L| @@
224
_ @
`` @
/o\ @
\_,]@
@@
225
_ @
'' @
/o\ @
\_,]@
@@
226
@
^ @
/o\ @
\_,]@
@@
227
@
~ @
/o\ @
\_,]@
@@
228
@
O_O @
/o\ @
\_,]@
@@
229
@
O @
/o\ @
\_,]@
@@
230
@
_ _ @
/oYo\@
\_,( @
@@
231
@
_@
//@
\\@
Z@@
232
_ @
``@
/o\@
\( @
@@
233
_@
''@
/o\@
\( @
@@
234
@
^ @
/o\@
\( @
@@
235
@
O_O@
/o\@
\( @
@@
236
_ @
``@
||@
L|@
@@
237
_@
''@
||@
L|@
@@
238
@
'`@
||@
L|@
@@
239
@
OO@
||@
L|@
@@
241
@
~ @
|/ \@
L_n|@
@@
242
_ @
``@
/o\@
\_/@
@@
243
_@
''@
/o\@
\_/@
@@
244
@
^ @
/o\@
\_/@
@@
245
@
~ @
/o\@
\_/@
@@
246
@
O_O@
/o\@
\_/@
@@
249
_ @
``@
|U|@
\_/@
@@
250
_@
''@
|U|@
\_/@
@@
251
@
^ @
|U|@
\_/@
@@
252
@
O O@
|U|@
\_/@
@@
253
_ @
_'' @
\ V7@
)/ @
// @@
255
@
_O O@
\ V7@
)/ @
// @@
@@ -0,0 +1,20 @@
"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 __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);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./intersect-evaluated"), exports);
__exportStar(require("./intersect-type"), exports);
__exportStar(require("./intersect"), exports);
@@ -0,0 +1 @@
{"name":"@heroui/modal","version":"2.2.8","requiresBuild":false,"files":{"dist/index.js":{"checkedAt":1794532126585,"integrity":"sha512-XD+c4RDQmgjnBTbT9WmZPxkX1UXL9FYrl4OEDYmFlvpBOtUwUNv8o9iZXzVRSiwctAn3zfYnRB37RjXFVO8lNg==","mode":420,"size":15921},"dist/modal-body.js":{"checkedAt":1794532126585,"integrity":"sha512-nIdJvs/2XjQboR0l9Lo249wlDQmHAB3tdwOnZlDBbNNhG20GtFEOvqhpM0khV5+X969Gr7lwmDEL7WLR0evnYg==","mode":420,"size":2461},"dist/modal-content.js":{"checkedAt":1794532126585,"integrity":"sha512-lrxSebevt2x64QkgptOkYTeVlzvITJx8OBAMs5X3lRC1pyQNh1fSLTA1+bDr+UmPWXwpT0AfmxMy8uWhfy9+/Q==","mode":420,"size":6495},"dist/modal-context.js":{"checkedAt":1794532126586,"integrity":"sha512-7VTA3lXyv9bH5xIdxMshwAGuvJpl42i9GcQBCBOvMeBu02/3C0ioV+h77248D6Cm8q1qDs6Fl+11YyJkrY72Lw==","mode":420,"size":1457},"dist/modal-footer.js":{"checkedAt":1794532126586,"integrity":"sha512-qao94Y3gApnV2hU4i8DcHJBDVdHZ1auQiMIMTBmK5cIpBn2q/x7ZWxuz29tAR3UP5nbVfhVbmTo70w1Z4PWykg==","mode":420,"size":2283},"dist/modal-header.js":{"checkedAt":1794532126586,"integrity":"sha512-PzHT2X5ul6KxvnruX7EOpY/Wa5i5ww1AXicOjzPbwGZqTrw2uamXC0CZtqrgzKMs9gKRjy6ODIkiqD+U17jv6Q==","mode":420,"size":2502},"dist/modal-transition.js":{"checkedAt":1794532126586,"integrity":"sha512-QZ53bm4RbSFRhX511DjGaojI59FcoT79T6ngxL8PbDnBWlKIKwvd5dcZjVfzEpQ4MlBYSNNXc8/7x+f4ObSv4Q==","mode":420,"size":1848},"dist/modal.js":{"checkedAt":1794532126586,"integrity":"sha512-RXmDKwq4EyFQcYtcdqW+PoBaiebny5yIGQ7wTcqarIbPg2L/iXZ7q7dxxZci77e7zgFAl57RA+HGmRReL7lm6A==","mode":420,"size":7011},"dist/use-modal.js":{"checkedAt":1794532126586,"integrity":"sha512-og3/oJMsCGKQ8wFmey8+0UQiXBWBeSIOAp1WXfLh50pxdPJtRRf5paHYu6SQlUrU4mCVKLRmVIF9yqD9TJWQVQ==","mode":420,"size":5812},"package.json":{"checkedAt":1794532126586,"integrity":"sha512-l3pUoAOFRm5nlE3VusJgyqWfm/GlHu3VKMa0lbiJt+Dq2c0wOzp5aaVV9/+n8yS0m22WdQh9cn/8t6ZgCGSzmQ==","mode":420,"size":2014},"README.md":{"checkedAt":1794532126586,"integrity":"sha512-O9w4T4v28suW1iYqZvgRMf1VsBLU1S5oLCMA2Swf+WmvVgKVE+MCTefQyc+t620SWUxntH3e+hNXTewNMmYh/Q==","mode":420,"size":571},"dist/chunk-3BLMMOBU.mjs":{"checkedAt":1794532126587,"integrity":"sha512-4s9aiKqrpfTzm4A5b1ePzO8hha7aqzyaPVXZvdh/tIViUiVRcZ96GTZ/bPp2R5moow/WekR2aA4hI5rpeNCEmQ==","mode":420,"size":875},"dist/chunk-FOPEYBSC.mjs":{"checkedAt":1794532126587,"integrity":"sha512-veKXDLaJgDpqGltqFI5A/CvhwC7cltiKpLcimAmmmNe43MioC5HY+ED/tU7zOocwFrK0NC76HLG/aq6BKvqJoQ==","mode":420,"size":1023},"dist/chunk-I7NTTF2N.mjs":{"checkedAt":1794532126587,"integrity":"sha512-LyfeX0liHci7kVXmr+4XYvVEOz2yZOcD4BRej+TtivYv0gLxoY/WBtlHuqM6i4yyilx+04g/pmUKpDjhjo5p/w==","mode":420,"size":747},"dist/chunk-IGSAU2ZA.mjs":{"checkedAt":1794532126587,"integrity":"sha512-iECbp6uhBTBtFSXPxNk+Ijh5cP5d4dRhgR3AAVJcISwpIzX2ykb2vzNERAEGX/dQY8AZNe8J4rhj3rp3INM1uw==","mode":420,"size":1056},"dist/chunk-O5MCAK4F.mjs":{"checkedAt":1794532126587,"integrity":"sha512-ia8KUswbvnQFPhZ29vujFblSRPS6gzCis21h4xlu0wM9dsid6Sck2hZpweYSqh+qTGB+BP0CpYq1R72oSijzJw==","mode":420,"size":857},"dist/chunk-UKDXCIYN.mjs":{"checkedAt":1794532126587,"integrity":"sha512-e5arqV3aHQyGuyaxC9+ykAJmVdMPjJ0eEQq+jnSFXCopaV04f9BkssIIxXHyaUOQnIg6qAPuz9BLHag17+m5VA==","mode":420,"size":3617},"dist/chunk-UX6VCJJD.mjs":{"checkedAt":1794532126587,"integrity":"sha512-Ka1leQjn9AOab31H0x12mdKldT2UCIgmkjyk3ZhI9NQ+UqQF1P+9FcuADfV7F69g8CpY6/Z25OxMBCPO8vLk7Q==","mode":420,"size":349},"dist/chunk-Z2LRST4N.mjs":{"checkedAt":1794532126588,"integrity":"sha512-F1h0oyD8625ZlZ3OwChHGTwQ4BrwDxJ0YorR2S45v7m80cl3nT2VWdQGIE0+SjPOMAouFT2XO+ODI9Cin0QZIw==","mode":420,"size":4284},"dist/index.mjs":{"checkedAt":1794532126588,"integrity":"sha512-nurnHNvLa8p3TgZ67/5rRsb7rGa9c7W3cqOdMIOeZiv4zf1kxCzWIPTph0rwGN9CyudqMM/r26sROkFpCU0UdA==","mode":420,"size":877},"dist/modal-body.mjs":{"checkedAt":1794532126588,"integrity":"sha512-+/PjG5X0kU4MjjSK/3IwTbPZLisfM6MJWjOAgAXh7AfsUwZxNsbjBndcch6qT2X6BwXthKfLTU6fXai/LZI9YQ==","mode":420,"size":150},"dist/modal-content.mjs":{"checkedAt":1794532126588,"integrity":"sha512-CVBvmMC9ceSt0yHb0vregNLSLgBn6NTOWUmhswMulB3nO5pZIkuAHs4JwLB48jEwLtMMZcLa3tYmPNER10xyJg==","mode":420,"size":187},"dist/modal-context.mjs":{"checkedAt":1794532126588,"integrity":"sha512-t9vcfNd59jLlHtKpIOWMvfXoFiQ8cIg9LI+kdJ1A6Sz4O+yyZ9feqX+3jmleeaY4nB78K6oDd91Rqar7m5kosg==","mode":420,"size":136},"dist/modal-footer.mjs":{"checkedAt":1794532126588,"integrity":"sha512-cB3Vgewtkj3CibQRYIw9ZypBmWnYBg2YCjtdGT5cuCGkKxvYLBsVzX+JbhNeKFW2SarQVwfmNNhWL1NNHeSkWQ==","mode":420,"size":154},"dist/modal-header.mjs":{"checkedAt":1794532126588,"integrity":"sha512-eTCt/Z3f/SNHpwMOervWBlkuyBUtuGPkCxNyj6j44FCffChacqTTe0k4DH37pDtZHp1EbYZKkLwwYp18S930Iw==","mode":420,"size":154},"dist/modal-transition.mjs":{"checkedAt":1794532126589,"integrity":"sha512-zaWovVR0Ii33JbiOkFccdyGbBb8Bt5Klkzi5yncAA+udkKhzN/YEGC+ojLv05JMEf7ECIHfqwTZFDq6kts/bQA==","mode":420,"size":92},"dist/modal.mjs":{"checkedAt":1794532126589,"integrity":"sha512-PKMOomgJN53N4NVBlmFPIfy92vKVIpVSUC33V5fIN5TbP12AamIXPuJxLmPWdFlrp/MyWikDTql3R2Er5p1mSQ==","modLine truncated
@@ -0,0 +1,6 @@
import {
purple
} from "../chunk-L2OL7R23.mjs";
export {
purple
};
@@ -0,0 +1,330 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/virtualized-table-body.tsx
var virtualized_table_body_exports = {};
__export(virtualized_table_body_exports, {
default: () => virtualized_table_body_default
});
module.exports = __toCommonJS(virtualized_table_body_exports);
var import_system4 = require("@heroui/system");
var import_react_utils4 = require("@heroui/react-utils");
var import_shared_utils4 = require("@heroui/shared-utils");
var import_table4 = require("@react-aria/table");
var import_react_utils5 = require("@heroui/react-utils");
// src/table-row.tsx
var import_system = require("@heroui/system");
var import_react_utils = require("@heroui/react-utils");
var import_shared_utils = require("@heroui/shared-utils");
var import_table = require("@react-aria/table");
var import_focus = require("@react-aria/focus");
var import_interactions = require("@react-aria/interactions");
var import_react = require("react");
var import_jsx_runtime = require("react/jsx-runtime");
var TableRow = (0, import_system.forwardRef)((props, ref) => {
var _a, _b;
const { as, className, children, node, slots, state, isSelectable, classNames, ...otherProps } = props;
const Component = as || ((props == null ? void 0 : props.href) ? "a" : "tr");
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils.useDOMRef)(ref);
const { rowProps } = (0, import_table.useTableRow)({ node }, state, domRef);
const trStyles = (0, import_shared_utils.clsx)(classNames == null ? void 0 : classNames.tr, className, (_a = node.props) == null ? void 0 : _a.className);
const { isFocusVisible, focusProps } = (0, import_focus.useFocusRing)();
const isDisabled = state.disabledKeys.has(node.key);
const isSelected = state.selectionManager.isSelected(node.key);
const { isHovered, hoverProps } = (0, import_interactions.useHover)({ isDisabled });
const { isFirst, isLast, isMiddle, isOdd } = (0, import_react.useMemo)(() => {
const isFirst2 = node.key === state.collection.getFirstKey();
const isLast2 = node.key === state.collection.getLastKey();
const isMiddle2 = !isFirst2 && !isLast2;
const isOdd2 = (node == null ? void 0 : node.index) ? (node.index + 1) % 2 === 0 : false;
return {
isFirst: isFirst2,
isLast: isLast2,
isMiddle: isMiddle2,
isOdd: isOdd2
};
}, [node, state.collection]);
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
Component,
{
ref: domRef,
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
"data-first": (0, import_shared_utils.dataAttr)(isFirst),
"data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
"data-hover": (0, import_shared_utils.dataAttr)(isHovered),
"data-last": (0, import_shared_utils.dataAttr)(isLast),
"data-middle": (0, import_shared_utils.dataAttr)(isMiddle),
"data-odd": (0, import_shared_utils.dataAttr)(isOdd),
"data-selected": (0, import_shared_utils.dataAttr)(isSelected),
...(0, import_shared_utils.mergeProps)(
rowProps,
focusProps,
isSelectable ? hoverProps : {},
(0, import_react_utils.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_b = slots.tr) == null ? void 0 : _b.call(slots, { class: trStyles }),
children
}
);
});
TableRow.displayName = "HeroUI.TableRow";
var table_row_default = TableRow;
// src/table-cell.tsx
var import_react2 = require("react");
var import_system2 = require("@heroui/system");
var import_react_utils2 = require("@heroui/react-utils");
var import_shared_utils2 = require("@heroui/shared-utils");
var import_table2 = require("@react-aria/table");
var import_focus2 = require("@react-aria/focus");
var import_jsx_runtime2 = require("react/jsx-runtime");
var TableCell = (0, import_system2.forwardRef)((props, ref) => {
var _a, _b, _c;
const { as, className, node, rowKey, slots, state, classNames, ...otherProps } = props;
const Component = as || "td";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils2.useDOMRef)(ref);
const { gridCellProps } = (0, import_table2.useTableCell)({ node }, state, domRef);
const tdStyles = (0, import_shared_utils2.clsx)(classNames == null ? void 0 : classNames.td, className, (_a = node.props) == null ? void 0 : _a.className);
const { isFocusVisible, focusProps } = (0, import_focus2.useFocusRing)();
const isRowSelected = state.selectionManager.isSelected(rowKey);
const cell = (0, import_react2.useMemo)(() => {
const cellType = typeof node.rendered;
return cellType !== "object" && cellType !== "function" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: node.rendered }) : node.rendered;
}, [node.rendered]);
const columnProps = ((_b = node.column) == null ? void 0 : _b.props) || {};
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
Component,
{
ref: domRef,
"data-focus-visible": (0, import_shared_utils2.dataAttr)(isFocusVisible),
"data-selected": (0, import_shared_utils2.dataAttr)(isRowSelected),
...(0, import_shared_utils2.mergeProps)(
gridCellProps,
focusProps,
(0, import_react_utils2.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_c = slots.td) == null ? void 0 : _c.call(slots, { align: columnProps.align, class: tdStyles }),
children: cell
}
);
});
TableCell.displayName = "HeroUI.TableCell";
var table_cell_default = TableCell;
// src/table-checkbox-cell.tsx
var import_system3 = require("@heroui/system");
var import_react_utils3 = require("@heroui/react-utils");
var import_shared_utils3 = require("@heroui/shared-utils");
var import_table3 = require("@react-aria/table");
var import_focus3 = require("@react-aria/focus");
var import_checkbox = require("@heroui/checkbox");
var import_visually_hidden = require("@react-aria/visually-hidden");
var import_jsx_runtime3 = require("react/jsx-runtime");
var TableCheckboxCell = (0, import_system3.forwardRef)((props, ref) => {
var _a, _b;
const {
as,
className,
node,
rowKey,
slots,
state,
color,
disableAnimation,
checkboxesProps,
selectionMode,
classNames,
...otherProps
} = props;
const Component = as || "td";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils3.useDOMRef)(ref);
const { gridCellProps } = (0, import_table3.useTableCell)({ node }, state, domRef);
const { isFocusVisible, focusProps } = (0, import_focus3.useFocusRing)();
const { checkboxProps } = (0, import_table3.useTableSelectionCheckbox)({ key: (node == null ? void 0 : node.parentKey) || node.key }, state);
const tdStyles = (0, import_shared_utils3.clsx)(classNames == null ? void 0 : classNames.td, className, (_a = node.props) == null ? void 0 : _a.className);
const isSingleSelectionMode = selectionMode === "single";
const { onChange, ...otherCheckboxProps } = checkboxProps;
const isRowSelected = state.selectionManager.isSelected(rowKey);
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
Component,
{
ref: domRef,
"data-focus-visible": (0, import_shared_utils3.dataAttr)(isFocusVisible),
"data-selected": (0, import_shared_utils3.dataAttr)(isRowSelected),
...(0, import_shared_utils3.mergeProps)(
gridCellProps,
focusProps,
(0, import_react_utils3.filterDOMProps)(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_b = slots.td) == null ? void 0 : _b.call(slots, { class: tdStyles }),
children: isSingleSelectionMode ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_visually_hidden.VisuallyHidden, { children: checkboxProps["aria-label"] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
import_checkbox.Checkbox,
{
color,
disableAnimation,
onValueChange: onChange,
...(0, import_shared_utils3.mergeProps)(checkboxesProps, otherCheckboxProps)
}
)
}
);
});
TableCheckboxCell.displayName = "HeroUI.TableCheckboxCell";
var table_checkbox_cell_default = TableCheckboxCell;
// src/virtualized-table-body.tsx
var import_jsx_runtime4 = require("react/jsx-runtime");
var VirtualizedTableBody = (0, import_system4.forwardRef)((props, ref) => {
var _a;
const {
as,
className,
slots,
state,
collection,
isSelectable,
color,
disableAnimation,
checkboxesProps,
selectionMode,
classNames,
rowVirtualizer,
...otherProps
} = props;
const Component = as || "tbody";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils4.useDOMRef)(ref);
const { rowGroupProps } = (0, import_table4.useTableRowGroup)();
const tbodyStyles = (0, import_shared_utils4.clsx)(classNames == null ? void 0 : classNames.tbody, className);
const bodyProps = collection == null ? void 0 : collection.body.props;
const isLoading = (bodyProps == null ? void 0 : bodyProps.isLoading) || (bodyProps == null ? void 0 : bodyProps.loadingState) === "loading" || (bodyProps == null ? void 0 : bodyProps.loadingState) === "loadingMore";
const items = [...collection.body.childNodes];
const virtualItems = rowVirtualizer.getVirtualItems();
let emptyContent;
let loadingContent;
if (collection.size === 0 && bodyProps.emptyContent) {
emptyContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
"td",
{
className: slots == null ? void 0 : slots.emptyWrapper({ class: classNames == null ? void 0 : classNames.emptyWrapper }),
colSpan: collection.columnCount,
role: "gridcell",
children: !isLoading && bodyProps.emptyContent
}
) });
}
if (isLoading && bodyProps.loadingContent) {
loadingContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("tr", { role: "row", children: [
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
"td",
{
className: slots == null ? void 0 : slots.loadingWrapper({ class: classNames == null ? void 0 : classNames.loadingWrapper }),
colSpan: collection.columnCount,
role: "gridcell",
children: bodyProps.loadingContent
}
),
!emptyContent && collection.size === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("td", { className: slots == null ? void 0 : slots.emptyWrapper({ class: classNames == null ? void 0 : classNames.emptyWrapper }) }) : null
] });
}
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
Component,
{
ref: domRef,
...(0, import_shared_utils4.mergeProps)(
rowGroupProps,
(0, import_react_utils5.filterDOMProps)(bodyProps, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_a = slots.tbody) == null ? void 0 : _a.call(slots, { class: tbodyStyles }),
"data-empty": (0, import_shared_utils4.dataAttr)(collection.size === 0),
"data-loading": (0, import_shared_utils4.dataAttr)(isLoading),
children: [
virtualItems.map((virtualRow, index) => {
const row = items[virtualRow.index];
if (!row) {
return null;
}
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_row_default,
{
classNames,
isSelectable,
node: row,
slots,
state,
style: {
transform: `translateY(${virtualRow.start - index * virtualRow.size}px)`,
height: `${virtualRow.size}px`
},
children: [...row.childNodes].map(
(cell) => cell.props.isSelectionCell ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_checkbox_cell_default,
{
checkboxesProps,
classNames,
color,
disableAnimation,
node: cell,
rowKey: row.key,
selectionMode,
slots,
state
},
String(cell.key)
) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
table_cell_default,
{
classNames,
node: cell,
rowKey: row.key,
slots,
state
},
String(cell.key)
)
)
},
String(row.key)
);
}),
loadingContent,
emptyContent
]
}
);
});
VirtualizedTableBody.displayName = "HeroUI.VirtualizedTableBody";
var virtualized_table_body_default = VirtualizedTableBody;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _callSuper;
var _getPrototypeOf = require("./getPrototypeOf.js");
var _isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
var _possibleConstructorReturn = require("./possibleConstructorReturn.js");
function _callSuper(_this, derived, args) {
derived = (0, _getPrototypeOf.default)(derived);
return (0, _possibleConstructorReturn.default)(_this, (0, _isNativeReflectConstruct.default)() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf.default)(_this).constructor) : derived.apply(_this, args));
}
//# sourceMappingURL=callSuper.js.map
@@ -0,0 +1,45 @@
# is-symbol <sup>[![Version Badge][2]][1]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Is this an ES6 Symbol value?
## Example
```js
var isSymbol = require('is-symbol');
assert(!isSymbol(function () {}));
assert(!isSymbol(null));
assert(!isSymbol(function* () { yield 42; return Infinity; });
assert(isSymbol(Symbol.iterator));
assert(isSymbol(Symbol('foo')));
assert(isSymbol(Symbol.for('foo')));
assert(isSymbol(Object(Symbol('foo'))));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/is-symbol
[2]: https://versionbadg.es/inspect-js/is-symbol.svg
[5]: https://david-dm.org/inspect-js/is-symbol.svg
[6]: https://david-dm.org/inspect-js/is-symbol
[7]: https://david-dm.org/inspect-js/is-symbol/dev-status.svg
[8]: https://david-dm.org/inspect-js/is-symbol#info=devDependencies
[11]: https://nodei.co/npm/is-symbol.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/is-symbol.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/is-symbol.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-symbol
[codecov-image]: https://codecov.io/gh/inspect-js/is-symbol/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-symbol/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-symbol
[actions-url]: https://github.com/inspect-js/is-symbol/actions
@@ -0,0 +1,18 @@
import baseGetTag from './_baseGetTag.js';
import isObjectLike from './isObjectLike.js';
/** `Object#toString` result references. */
var regexpTag = '[object RegExp]';
/**
* The base implementation of `_.isRegExp` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
*/
function baseIsRegExp(value) {
return isObjectLike(value) && baseGetTag(value) == regexpTag;
}
export default baseIsRegExp;
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D wC","132":"E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"xC TC 0C 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC JD OC","2":"F FD GD HD ID"},G:{"1":"ZC KD vC LD","513":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC"},H:{"4097":"hD"},I:{"1025":"TC J I iD jD kD lD vC mD nD"},J:{"258":"D A"},K:{"2":"A","258":"B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"2049":"MC"},N:{"258":"A B"},O:{"258":"PC"},P:{"1025":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1025":"0D"},S:{"1":"1D 2D"}},B:1,C:"Basic console logging functions",D:true};
@@ -0,0 +1,58 @@
'use strict';
var callBound = require('call-bound');
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');
var $charAt = callBound('String.prototype.charAt');
var $reverse = callBound('Array.prototype.reverse');
var $slice = callBound('Array.prototype.slice');
var hasOwnProperty = require('./HasOwnProperty');
var IsArray = require('./IsArray');
var bytesAsFloat32 = require('../helpers/bytesAsFloat32');
var bytesAsFloat64 = require('../helpers/bytesAsFloat64');
var bytesAsInteger = require('../helpers/bytesAsInteger');
var every = require('../helpers/every');
var isByteValue = require('../helpers/isByteValue');
var tableTAO = require('./tables/typed-array-objects');
// https://262.ecma-international.org/8.0/#sec-rawbytestonumber
module.exports = function RawBytesToNumber(type, rawBytes, isLittleEndian) {
if (typeof type !== 'string' || !hasOwnProperty(tableTAO.size, '$' + type)) {
throw new $TypeError('Assertion failed: `type` must be a TypedArray element type');
}
if (!IsArray(rawBytes) || !every(rawBytes, isByteValue)) {
throw new $TypeError('Assertion failed: `rawBytes` must be an Array of bytes');
}
if (typeof isLittleEndian !== 'boolean') {
throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean');
}
var elementSize = tableTAO.size['$' + type]; // step 1
if (rawBytes.length !== elementSize) {
// this assertion is not in the spec, but it'd be an editorial error if it were ever violated
throw new $RangeError('Assertion failed: `rawBytes` must have a length of ' + elementSize + ' for type ' + type);
}
// eslint-disable-next-line no-param-reassign
rawBytes = $slice(rawBytes, 0, elementSize);
if (!isLittleEndian) {
$reverse(rawBytes); // step 2
}
if (type === 'Float32') { // step 3
return bytesAsFloat32(rawBytes);
}
if (type === 'Float64') { // step 4
return bytesAsFloat64(rawBytes);
}
return bytesAsInteger(rawBytes, elementSize, $charAt(type, 0) === 'U', false);
};
@@ -0,0 +1,83 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createOrJoinSocket = void 0;
var globals_1 = require("./globals");
var constants_1 = require("./constants");
var attach_listener_1 = require("./attach-listener");
var attach_shared_listeners_1 = require("./attach-shared-listeners");
var manage_subscribers_1 = require("./manage-subscribers");
//TODO ensure that all onClose callbacks are called
var cleanSubscribers = function (url, subscriber, optionsRef, setReadyState, clearSocketIoPingInterval) {
return function () {
(0, manage_subscribers_1.removeSubscriber)(url, subscriber);
if (!(0, manage_subscribers_1.hasSubscribers)(url)) {
try {
var socketLike = globals_1.sharedWebSockets[url];
if (socketLike instanceof WebSocket) {
socketLike.onclose = function (event) {
if (optionsRef.current.onClose) {
optionsRef.current.onClose(event);
}
setReadyState(constants_1.ReadyState.CLOSED);
};
}
socketLike.close();
}
catch (e) {
}
if (clearSocketIoPingInterval)
clearSocketIoPingInterval();
delete globals_1.sharedWebSockets[url];
}
};
};
var createOrJoinSocket = function (webSocketRef, url, setReadyState, optionsRef, setLastMessage, startRef, reconnectCount, lastMessageTime, sendMessage) {
if (!constants_1.isEventSourceSupported && optionsRef.current.eventSourceOptions) {
if (constants_1.isReactNative) {
throw new Error('EventSource is not supported in ReactNative');
}
else {
throw new Error('EventSource is not supported');
}
}
if (optionsRef.current.share) {
var clearSocketIoPingInterval = null;
if (globals_1.sharedWebSockets[url] === undefined) {
globals_1.sharedWebSockets[url] = optionsRef.current.eventSourceOptions ?
new EventSource(url, optionsRef.current.eventSourceOptions) :
new WebSocket(url, optionsRef.current.protocols);
webSocketRef.current = globals_1.sharedWebSockets[url];
setReadyState(constants_1.ReadyState.CONNECTING);
clearSocketIoPingInterval = (0, attach_shared_listeners_1.attachSharedListeners)(globals_1.sharedWebSockets[url], url, optionsRef, sendMessage);
}
else {
webSocketRef.current = globals_1.sharedWebSockets[url];
setReadyState(globals_1.sharedWebSockets[url].readyState);
}
var subscriber = {
setLastMessage: setLastMessage,
setReadyState: setReadyState,
optionsRef: optionsRef,
reconnectCount: reconnectCount,
lastMessageTime: lastMessageTime,
reconnect: startRef,
};
(0, manage_subscribers_1.addSubscriber)(url, subscriber);
return cleanSubscribers(url, subscriber, optionsRef, setReadyState, clearSocketIoPingInterval);
}
else {
webSocketRef.current = optionsRef.current.eventSourceOptions ?
new EventSource(url, optionsRef.current.eventSourceOptions) :
new WebSocket(url, optionsRef.current.protocols);
setReadyState(constants_1.ReadyState.CONNECTING);
if (!webSocketRef.current) {
throw new Error('WebSocket failed to be created');
}
return (0, attach_listener_1.attachListeners)(webSocketRef.current, {
setLastMessage: setLastMessage,
setReadyState: setReadyState
}, optionsRef, startRef.current, reconnectCount, lastMessageTime, sendMessage);
}
};
exports.createOrJoinSocket = createOrJoinSocket;
//# sourceMappingURL=create-or-join.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ServiceReferenceManager.js","sourceRoot":"","sources":["../../../../src/container/services/ServiceReferenceManager.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,MAAa,uBAAuB;IAC3B,iBAAiB,CAAqB;IACtC,cAAc,CAAiB;IAC/B,mBAAmB,CAAuB;IACjC,sBAAsB,CAAyB;IAEtD,mCAAmC,CAAiB;IAE7D,YACE,iBAAqC,EACrC,cAA8B,EAC9B,mBAAyC,EACzC,sBAA8C;QAE9C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QAErD,IAAI,CAAC,mCAAmC,GAAG,EAAE,CAAC;IAChD,CAAC;IAEM,KAAK,CACV,iBAAqC,EACrC,cAA8B,EAC9B,mBAAyC;QAEzC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAE/C,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC;QAEzC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,mCAAmC,EAAE,CAAC;YAChE,QAAQ,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAEM,OAAO,CAAC,QAAoB;QACjC,IAAI,CAAC,mCAAmC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AAzCD,0DAyCC"}
@@ -0,0 +1 @@
{"name":"parchment","version":"3.0.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532111897,"integrity":"sha512-RtS5wP1jcQMJ1Qng93IO0h6GBsE477tUy8/fnaKP9VFeTiJJwHH2Lw0W1/ftIO977VxoCuQ6JQGHFFG0vTZopQ==","mode":420,"size":1522},"dist/parchment.umd.cjs":{"checkedAt":1794532111897,"integrity":"sha512-IhESUhEgl+HowHFz7fQzVaU4bZhAu+ZNlIyf7Wpsx1/0Mbb9sRr3GjJoXvKyUFpX+7Z22Yx523JfKpOGletVcg==","mode":420,"size":28827},"dist/parchment.js":{"checkedAt":1794532111897,"integrity":"sha512-9BzOreBxdq7a2mwE8VvNJwIcVY2PmqI5I9gtOosJ4/iyKjXfxMOrltUAXWBI9kY8UH5QE64fcNEd23gDXfVVeA==","mode":420,"size":35709},"package.json":{"checkedAt":1794532111897,"integrity":"sha512-sQItq/+QXUq52uuy9Rb7BoDWEhNc2MoV09Nhc81nlnFutuu6/rSWbp5cK6K32F9gfepBl9BjVfN1iPadxXFiZA==","mode":420,"size":1589},"tsconfig.json":{"checkedAt":1794532111897,"integrity":"sha512-FKlokPZ5KMCj1mKHz7uUQffqtqVvtaFjmbucb4v5vDdYtKb5xxEQAzFOGkerZxoWwLb4Tpa2jKom6KQ8YjtIzw==","mode":420,"size":391},"dist/parchment.js.map":{"checkedAt":1794532111898,"integrity":"sha512-vnNRxo1ENIqTuDfrHtkUKhb4mhJKYllPW8KK5gdO8c9NILoYSxppF005HnHimKOBoA4G6u8TE7UnrfYO/FW/FA==","mode":420,"size":82350},"dist/parchment.umd.cjs.map":{"checkedAt":1794532111898,"integrity":"sha512-ZKfnAnx1HJs6wdGk3+A7+ZsC7R0HIo11hi42itpF2Fl8daxdxB8MpBQ/Le3OtMcqODV0Eltdgzs+UFMqy/YrTw==","mode":420,"size":80042},"README.md":{"checkedAt":1794532111898,"integrity":"sha512-G7XVj+A39Rxejo80acRTRUDnaT6cVIJ73Y9X8c6jL5hg/qqwTB+0b3V8IxS0yEnqgRKYxmNgWqZsSsFqbgFC0w==","mode":420,"size":10565},"src/attributor/attributor.ts":{"checkedAt":1794532111898,"integrity":"sha512-HS91Lg9xu1zMs0ldI+wZaYpxoPS4kLEEClJo81OXu0Jl17OIRlk2TRl9RUykbs9tNn8cpq2T5AvhryUkbSHrEQ==","mode":420,"size":1553},"src/blot/block.ts":{"checkedAt":1794532111899,"integrity":"sha512-WLpYp0XwZ6ovLFtlguC/cO3/vyRaQmOnvZHSVe9oCaThM/NBnsSP0lyBzCMUsk8wqB0pyXtQijhVGRasFUvWBw==","mode":420,"size":3452},"src/blot/abstract/blot.ts":{"checkedAt":1794532111899,"integrity":"sha512-wZ59PwtE1BJZAv4LDVAh7jFP0CVITYvJzwzWtIO9YJLulSyGplHY1+piUlpdr/PkOSCB/1FrG+zKAtFxKzjvmA==","mode":420,"size":4220},"src/attributor/class.ts":{"checkedAt":1794532111899,"integrity":"sha512-3edgSUszWZdTNt6HWiFZQbOaANLqZBKk9rWF0SDWZgWWxGQsyFdMNBz943pUWY5W05coni0dzDiuupeu8abfuw==","mode":420,"size":1210},"src/blot/abstract/container.ts":{"checkedAt":1794532111899,"integrity":"sha512-1Hv5ILTNSX/t971MZHS9qgzbTjD5/PlQCfX77IB0lPU8pA9zewFxgym5zICTv9fgx+uWk8dJq/Xh1Q3Nb9hWpw==","mode":420,"size":1261},"src/blot/embed.ts":{"checkedAt":1794532111899,"integrity":"sha512-HWsi1Z0PQhdTNMAzDH95GT+lkQ+VUrTN6H1vYl1NvD4EcUaDto+BQS9+/w4veWzbnaWwzUmFW+scNrBm7Nwx0Q==","mode":420,"size":932},"src/error.ts":{"checkedAt":1794532111899,"integrity":"sha512-t9XDq2YDl+42od77l+myYctbqVHo8CV3QyFnNYvU1mYJqeuyKe54SWMwYMfpbQ39dwLuy+hcEN3gtgQ1kAMtjw==","mode":420,"size":293},"src/blot/inline.ts":{"checkedAt":1794532111899,"integrity":"sha512-lO2pavOJcyKjXeVPUckTtaaVhlUwVCtge0ywLnmZA5A+4epaW9fpO5vIetoAwGTNxYvgYhl7UYjc89o7u1VL0A==","mode":420,"size":4239},"src/blot/abstract/leaf.ts":{"checkedAt":1794532111900,"integrity":"sha512-n5YMQVd/rWoJ1s8B1KM4/wJxa8SdVkwlANubK/6JnUn6qqWp5ah4FezFxo+RYC2uIb6fuUNe1WjJZlr4mZxbZg==","mode":420,"size":1620},"src/collection/linked-list.ts":{"checkedAt":1794532111900,"integrity":"sha512-sX8m+rOSmBUxr8NG54KMwTTG2VTjtxVtmSDi24AcxxVsZFFgFta6xnqLeGup713P7Mgp5aSIBmbYa5xhBsM9gw==","mode":420,"size":4374},"src/collection/linked-node.ts":{"checkedAt":1794532111900,"integrity":"sha512-rYE0Mkon8jb+P2d/qox8V75S+ZfWne+2jPX7H5iCFfel3BQuPFqUz3zpXTkPDvr64anm6f/b2qXP5RnN6+ekKw==","mode":420,"size":140},"dist/parchment.d.ts":{"checkedAt":1794532111900,"integrity":"sha512-YpkfYg0xVCVuOm3kwxkBYiGGnokPxyl+oFL+0bDr9KFhhj4Am6Ao8FgTdsDmhyd7LFAeZ3zy06W7SwrziLmrFg==","mode":420,"size":16531},"src/parchment.ts":{"checkedAt":1794532111900,"integrity":"sha512-cAPRLk22CW/lU/soay1fJNhu16eyLjmc2AkSoD7U/zrCbcwHB93ZThT/JTtoKfrzoidGk3K8UVRn03rchwcg0g==","mode":420,"size":1346},"src/blot/abstract/parent.ts":{"checkedAt":1794532111900,"integrity":"sha512-keCrJiMcBfCo99Bd+gfYyJEg+jftkgSpKTxI6NGzAzasF9/V6BIfnUKf+UKLJSRA2oLPChBad+tbwzwVrV/f1w==","mode":420,"size":11134},"src/registry.ts":{"checkedAt":1794532111901,"integrity":"sha512-5bLAOCucf/7iGtXUcSzHLuC6SHIADtlcXNqRoKSXIemOYYH4a3tJs4Ifx85sEFXVvkgoQhA/soyo/YvfpSPotQ==","mode":420,"size":4969},"src/scope.ts":{"checkedAt":1794532111901,"integrity":"sha512-eFyhXCTh4b6RJEROZEKxm1+aI73Dmn5Ut9eu8spi9mn3WnAPysNyQJHfdGXPqRtoWLceUV0lanrvn5qcHJRyjw==","mode":420,"size":482},"src/blot/scroll.ts":{"checkedAt":1794532111901,"integrity":"sha512-cLkYXzI3Jqx6jYhT8B/vGHfzXKAcZup8bawKn/QB9RaoARvF/OKAdTEoI6+5Woxdr0G/mEC4Z/W9eHRmBI3qxg==","mode":420,"size":6344},"src/blot/abstract/shadow.ts":{"checkedAt":1794532111901,"integrity":"sha512-eiRkRjLYPmD5gfjoE6PcOjpAXBmWosFjX2Dd9UibuDKc/vVQ0jw48elTMV7rtCyQauIWNVfgLalobmW257HQyg==","mode":420,"size":4958},"src/attributor/store.ts":{"checkedAt":1794532111901,"integrity":"sha512-rqZEott4UrX9CvhyjO7MyXx3UW4QIYY4C/7qxaKXyl7u6ZzfsHDSC9GD2V7BJCOrwIWW4S501SIa6Line truncated
@@ -0,0 +1,31 @@
var realNames = require('./_realNames');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Gets the name of `func`.
*
* @private
* @param {Function} func The function to query.
* @returns {string} Returns the function name.
*/
function getFuncName(func) {
var result = (func.name + ''),
array = realNames[result],
length = hasOwnProperty.call(realNames, result) ? array.length : 0;
while (length--) {
var data = array[length],
otherFunc = data.func;
if (otherFunc == null || otherFunc == func) {
return data.name;
}
}
return result;
}
module.exports = getFuncName;
@@ -0,0 +1,37 @@
'use strict';
var $TypeError = require('es-errors/type');
var IsBigIntElementType = require('./IsBigIntElementType');
var IsUnclampedIntegerElementType = require('./IsUnclampedIntegerElementType');
var ValidateTypedArray = require('./ValidateTypedArray');
var whichTypedArray = require('which-typed-array');
// https://262.ecma-international.org/12.0/#sec-validateintegertypedarray
var tableTAO = require('./tables/typed-array-objects');
module.exports = function ValidateIntegerTypedArray(typedArray) {
var waitable = arguments.length > 1 ? arguments[1] : false; // step 1
if (typeof waitable !== 'boolean') {
throw new $TypeError('Assertion failed: `waitable` must be a Boolean');
}
var buffer = ValidateTypedArray(typedArray); // step 2
var typeName = whichTypedArray(typedArray); // step 3
var type = tableTAO.name['$' + typeName]; // step 4
if (waitable) { // step 5
if (typeName !== 'Int32Array' && typeName !== 'BigInt64Array') {
throw new $TypeError('Assertion failed: `typedArray` must be an Int32Array or BigInt64Array when `waitable` is true'); // step 5.a
}
} else if (!IsUnclampedIntegerElementType(type) && !IsBigIntElementType(type)) {
throw new $TypeError('Assertion failed: `typedArray` must be an integer TypedArray'); // step 6.a
}
return buffer; // step 7
};
@@ -0,0 +1,10 @@
declare const _default: {
plugins: ["import-x"];
rules: {
'import-x/no-named-as-default': 1;
'import-x/no-named-as-default-member': 1;
'import-x/no-rename-default': 1;
'import-x/no-duplicates': 1;
};
};
export default _default;
@@ -0,0 +1,3 @@
These files are compiled dot templates from dot folder.
Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder.
@@ -0,0 +1 @@
{"version":3,"names":["_defineProperty","require","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread2","target","i","arguments","length","source","forEach","key","defineProperty","getOwnPropertyDescriptors","defineProperties"],"sources":["../../src/helpers/objectSpread2.ts"],"sourcesContent":["/* @minVersion 7.5.0 */\n\nimport defineProperty from \"./defineProperty.ts\";\n\n// This function is different to \"Reflect.ownKeys\". The enumerableOnly\n// filters on symbol properties only. Returned string properties are always\n// enumerable. It is good to use in objectSpread.\n\nfunction ownKeys(\n object: object,\n enumerableOnly?: boolean | undefined,\n): (string | symbol)[] {\n var keys: (string | symbol)[] = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n // sym already comes from `Object.getOwnPropertySymbols`, so getOwnPropertyDescriptor should always be defined\n return Object.getOwnPropertyDescriptor(object, sym)!.enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\n\ntype Intersection<R extends any[]> = R extends [infer H, ...infer S]\n ? H & Intersection<S>\n : unknown;\n\nexport default function _objectSpread2<T extends object, U extends unknown[]>(\n target: T,\n ...sources: U\n): T & Intersection<U>;\nexport default function _objectSpread2(target: object) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(\n target,\n key,\n // key already comes from ownKeys, so getOwnPropertyDescriptor should always be defined\n Object.getOwnPropertyDescriptor(source, key)!,\n );\n });\n }\n }\n return target;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAMA,SAASC,OAAOA,CACdC,MAAc,EACdC,cAAoC,EACf;EACrB,IAAIC,IAAyB,GAAGC,MAAM,CAACD,IAAI,CAACF,MAAM,CAAC;EACnD,IAAIG,MAAM,CAACC,qBAAqB,EAAE;IAChC,IAAIC,OAAO,GAAGF,MAAM,CAACC,qBAAqB,CAACJ,MAAM,CAAC;IAClD,IAAIC,cAAc,EAAE;MAClBI,OAAO,GAAGA,OAAO,CAACC,MAAM,CAAC,UAAUC,GAAG,EAAE;QAEtC,OAAOJ,MAAM,CAACK,wBAAwB,CAACR,MAAM,EAAEO,GAAG,CAAC,CAAEE,UAAU;MACjE,CAAC,CAAC;IACJ;IACAP,IAAI,CAACQ,IAAI,CAACC,KAAK,CAACT,IAAI,EAAEG,OAAO,CAAC;EAChC;EACA,OAAOH,IAAI;AACb;AAUe,SAASU,cAAcA,CAACC,MAAc,EAAE;EACrD,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,SAAS,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;IACzC,IAAIG,MAAM,GAAGF,SAAS,CAACD,CAAC,CAAC,IAAI,IAAI,GAAGC,SAAS,CAACD,CAAC,CAAC,GAAG,CAAC,CAAC;IACrD,IAAIA,CAAC,GAAG,CAAC,EAAE;MACTf,OAAO,CAACI,MAAM,CAACc,MAAM,CAAC,EAAE,IAAI,CAAC,CAACC,OAAO,CAAC,UAAUC,GAAG,EAAE;QACnD,IAAAC,uBAAc,EAACP,MAAM,EAAEM,GAAG,EAAEF,MAAM,CAACE,GAAG,CAAC,CAAC;MAC1C,CAAC,CAAC;IACJ,CAAC,MAAM,IAAIhB,MAAM,CAACkB,yBAAyB,EAAE;MAC3ClB,MAAM,CAACmB,gBAAgB,CAACT,MAAM,EAAEV,MAAM,CAACkB,yBAAyB,CAACJ,MAAM,CAAC,CAAC;IAC3E,CAAC,MAAM;MACLlB,OAAO,CAACI,MAAM,CAACc,MAAM,CAAC,CAAC,CAACC,OAAO,CAAC,UAAUC,GAAG,EAAE;QAC7ChB,MAAM,CAACiB,cAAc,CACnBP,MAAM,EACNM,GAAG,EAEHhB,MAAM,CAACK,wBAAwB,CAACS,MAAM,EAAEE,GAAG,CAC7C,CAAC;MACH,CAAC,CAAC;IACJ;EACF;EACA,OAAON,MAAM;AACf","ignoreList":[]}
@@ -0,0 +1,12 @@
{
"root": true,
"extends": "@ljharb",
"globals": {
"Uint8Array": false,
},
"rules": {
},
}
@@ -0,0 +1,11 @@
import { ServiceIdentifier } from '@inversifyjs/common';
import { MetadataName } from '../../metadata/models/MetadataName';
import { PlanParamsTagConstraint } from './PlanParamsTagConstraint';
export interface SingleBindingPlanParamsConstraint {
name?: MetadataName;
isMultiple: false;
isOptional?: true;
serviceIdentifier: ServiceIdentifier;
tag?: PlanParamsTagConstraint;
}
//# sourceMappingURL=SingleBindingPlanParamsConstraint.d.ts.map
@@ -0,0 +1 @@
{"mappings":";;AAiBA,OAAO,MAAM,6CAED,CAAC;ACOb;;;GAGG;AACH,sBAAsB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAqChD;AAED;;;GAGG;AACH,yBAAyB,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAkBzD;AAED;;;;GAIG;AACH,0BAA0B,QAAQ,GAAE,aAAa,CAAC,GAAG,CAAM,GAAG,MAAM,CAcnE;ACpGD;;GAEG;AACH,sBAAsB,GAAG,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAQnE;ACvBD,OAAO,MAAM,uBAAwB,OAAO,GAAG,IAAI,GAAG,SAAS,KAAG,QAEjE,CAAC;AAEF,OAAO,MAAM,qBACP,CAAC,MAAM,GAAG,OAAO,MAAM,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,KACxD,MAAM,GAAG,OAAO,MAOlB,CAAC;ACGF;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,gBAAgB,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AAGzC,gBAAgB,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAAE,GAAG,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC;AAC3G,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE7D,yBAAyB,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElH;;;;;;GAMG;AACH,2BAA2B,CAAC,SAAS,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,oBAAoB,WAAW,CAAC,CAAC,CAAC,CAuC/F;AC5DD;;GAEG;AACH,0BAA0B,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,aAAa,CAAC,CAAC,CActH;ACKD;IACE;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CACxB;AAID;;;;GAIG;AACH,+BAA+B,KAAK,EAAE,QAAQ,GAAG,iBAAiB,GAAG,YAAY,EAAE,IAAI,GAAE,OAAY,GAAG,QAAQ,GAAG,iBAAiB,CAmBnI;AC7CD,sCAAsC,OAAO,EAAE,gBAAgB,QAQ9D;AC1BD,0BAA0B,OAAO,KAAA,EAAE,OAAO,KAAA,EAAE,WAAW,SAAe,OAMrE;ACwBD,OAAO,MAAM,aAda,OAgBxB,CAAC;AAEH,OAAO,MAAM,gBAlBa,OAoBxB,CAAC;AAEH,OAAO,MAAM,cAtBa,OA0BxB,CAAC;AAEH,OAAO,MAAM,aA5Ba,OA8BxB,CAAC;AAEH,OAAO,MAAM,qBAhCa,OAkCxB,CAAC;AAEH,OAAO,MAAM,gBApCa,OAsCxB,CAAC;AAEH,OAAO,MAAM,gBAxCa,OA0CxB,CAAC;AAEH,OAAO,MAAM,iBA5Ca,OA8CxB,CAAC;AAEH,OAAO,MAAM,iBAhDa,OAkDxB,CAAC;AC7DH;IACE,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5G,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAA;CAChC;AAQD;IACE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IACzE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;GAGG;AACH,+BAA+B,KAAK,EAAE,mBAAmB,qBAsBxD;AAED,6BAA6B,MAAM,CAElC;AAED;IACE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,qCAAqC,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,WAYjF;AAED,yBAAyB,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,UAAO,QAyB1F;AAmCD,sCAAsC,KAAK,EAAE,YAAY;;;;;;;EAWxD;AAED,gDAAgD;AAChD,sCAAsC,KAAK,EAAE,YAAY;;;;;;;EASxD;AAED,6BAA6B,KAAK,CAAC,EAAE,YAAY;;;;;;;EAWhD;AC3FD,mCAAmC,EAAE,EAAE,MAAM,IAAI,QAWhD;ACtFD;IACE,YAAY,EAAE,iBAAiB,WAAW,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAYD,0BAA0B,KAAK,EAAE,cAAc,GAAG,eAAe,WAAW,CAAC,CAmJ5E;AC/KD;IACE,iBAAiB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAAG,IAAI,CAAC;IAC7L,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAAG,IAAI,CAAC;IAClJ,oBAAoB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GAAG,IAAI,CAAC;IAC7L,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GAAG,IAAI,CAAC;IAClJ,wBAAwB,IAAI,IAAI,CAAA;CACjC;AAED,sCAAsC,eAAe,CA4BpD;ACnCD;;;;GAIG;AACH,0BAA0B,KAAK,EAAE,QAAQ,GAAG,iBAAiB,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CA2BlH;ACjCD;;;;;;;;GAQG;AACH,6BAA6B,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAe7I;ACvBD,gCAAgC,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,QAoB1E;AC3BD,kCAAkC,CAAC,IAAI;IACrC,GAAG,EAAE,UAAU,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,kCAAkC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,6BAA6B,CAAC,CAAC,QAiC5F;AC/BD,uBAAuB,CAAC;IACtB,GAAG,CAAC,EAAE,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAA;CACjC;AAGD,2BAA2B,CAAC,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,QAWxF;ACpBD,6BAA6B,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,CAYtF;ACVD,gCAAgC,IAAI,EAAE,OAAO,EAAELine truncated
@@ -0,0 +1,5 @@
module['exports'] = function(colors) {
return function(letter, i, exploded) {
return i % 2 === 0 ? letter : colors.inverse(letter);
};
};
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _interopRequireDefault;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
//# sourceMappingURL=interopRequireDefault.js.map
@@ -0,0 +1 @@
{"version":3,"names":["tsRewriteRelativeImportExtensions","path","preserveJsx","test","replace","m","tsx","d","ext","cm","toLowerCase"],"sources":["../../src/helpers/tsRewriteRelativeImportExtensions.ts"],"sourcesContent":["/* @minVersion 7.27.0 */\n\n// https://github.com/microsoft/TypeScript/blob/71716a2868c87248af5020e33a84a2178d41a2d6/src/compiler/factory/emitHelpers.ts#L1451\nexport default function tsRewriteRelativeImportExtensions(\n path: unknown,\n preserveJsx?: boolean,\n) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(\n /\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,\n function (m, tsx, d, ext, cm) {\n return tsx\n ? preserveJsx\n ? \".jsx\"\n : \".js\"\n : d && (!ext || !cm)\n ? m\n : d + ext + \".\" + cm.toLowerCase() + \"js\";\n },\n );\n }\n return path;\n}\n"],"mappings":";;;;;;AAGe,SAASA,iCAAiCA,CACvDC,IAAa,EACbC,WAAqB,EACrB;EACA,IAAI,OAAOD,IAAI,KAAK,QAAQ,IAAI,UAAU,CAACE,IAAI,CAACF,IAAI,CAAC,EAAE;IACrD,OAAOA,IAAI,CAACG,OAAO,CACjB,iDAAiD,EACjD,UAAUC,CAAC,EAAEC,GAAG,EAAEC,CAAC,EAAEC,GAAG,EAAEC,EAAE,EAAE;MAC5B,OAAOH,GAAG,GACNJ,WAAW,GACT,MAAM,GACN,KAAK,GACPK,CAAC,KAAK,CAACC,GAAG,IAAI,CAACC,EAAE,CAAC,GAChBJ,CAAC,GACDE,CAAC,GAAGC,GAAG,GAAG,GAAG,GAAGC,EAAE,CAACC,WAAW,CAAC,CAAC,GAAG,IAAI;IAC/C,CACF,CAAC;EACH;EACA,OAAOT,IAAI;AACb","ignoreList":[]}
@@ -0,0 +1 @@
{"version":3,"names":["_semver","require","_targets","prettifyVersion","version","major","minor","patch","semver","parse","parts","push","join","prettifyTargets","targets","Object","keys","reduce","results","target","value","unreleasedLabel","unreleasedLabels"],"sources":["../src/pretty.ts"],"sourcesContent":["import semver from \"semver\";\nimport { unreleasedLabels } from \"./targets.ts\";\nimport type { Targets, Target } from \"./types.ts\";\n\nexport function prettifyVersion(version: string) {\n if (typeof version !== \"string\") {\n return version;\n }\n\n const { major, minor, patch } = semver.parse(version);\n\n const parts = [major];\n\n if (minor || patch) {\n parts.push(minor);\n }\n\n if (patch) {\n parts.push(patch);\n }\n\n return parts.join(\".\");\n}\n\nexport function prettifyTargets(targets: Targets): Targets {\n return Object.keys(targets).reduce((results, target: Target) => {\n let value = targets[target];\n\n const unreleasedLabel =\n // @ts-expect-error undefined is strictly compared with string later\n unreleasedLabels[target];\n if (typeof value === \"string\" && unreleasedLabel !== value) {\n value = prettifyVersion(value);\n }\n\n results[target] = value;\n return results;\n }, {} as Targets);\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGO,SAASE,eAAeA,CAACC,OAAe,EAAE;EAC/C,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;IAC/B,OAAOA,OAAO;EAChB;EAEA,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAGC,OAAM,CAACC,KAAK,CAACL,OAAO,CAAC;EAErD,MAAMM,KAAK,GAAG,CAACL,KAAK,CAAC;EAErB,IAAIC,KAAK,IAAIC,KAAK,EAAE;IAClBG,KAAK,CAACC,IAAI,CAACL,KAAK,CAAC;EACnB;EAEA,IAAIC,KAAK,EAAE;IACTG,KAAK,CAACC,IAAI,CAACJ,KAAK,CAAC;EACnB;EAEA,OAAOG,KAAK,CAACE,IAAI,CAAC,GAAG,CAAC;AACxB;AAEO,SAASC,eAAeA,CAACC,OAAgB,EAAW;EACzD,OAAOC,MAAM,CAACC,IAAI,CAACF,OAAO,CAAC,CAACG,MAAM,CAAC,CAACC,OAAO,EAAEC,MAAc,KAAK;IAC9D,IAAIC,KAAK,GAAGN,OAAO,CAACK,MAAM,CAAC;IAE3B,MAAME,eAAe,GAEnBC,yBAAgB,CAACH,MAAM,CAAC;IAC1B,IAAI,OAAOC,KAAK,KAAK,QAAQ,IAAIC,eAAe,KAAKD,KAAK,EAAE;MAC1DA,KAAK,GAAGjB,eAAe,CAACiB,KAAK,CAAC;IAChC;IAEAF,OAAO,CAACC,MAAM,CAAC,GAAGC,KAAK;IACvB,OAAOF,OAAO;EAChB,CAAC,EAAE,CAAC,CAAY,CAAC;AACnB","ignoreList":[]}
@@ -0,0 +1,8 @@
/**
* Infers the `tsconfigRootDir` from the current call stack, using the V8 API.
*
* See https://v8.dev/docs/stack-trace-api
*
* This API is implemented in Deno and Bun as well.
*/
export declare function getTSConfigRootDirFromStack(): string | undefined;
@@ -0,0 +1,26 @@
'use strict';
var inspect = require('../');
var test = require('tape');
test('quoteStyle option', function (t) {
t['throws'](function () { inspect(null, { quoteStyle: false }); }, 'false is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: true }); }, 'true is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: '' }); }, '"" is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: {} }); }, '{} is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: [] }); }, '[] is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: 42 }); }, '42 is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: NaN }); }, 'NaN is not a valid value');
t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value');
t.equal(inspect('"', { quoteStyle: 'single' }), '\'"\'', 'double quote, quoteStyle: "single"');
t.equal(inspect('"', { quoteStyle: 'double' }), '"\\""', 'double quote, quoteStyle: "double"');
t.equal(inspect('\'', { quoteStyle: 'single' }), '\'\\\'\'', 'single quote, quoteStyle: "single"');
t.equal(inspect('\'', { quoteStyle: 'double' }), '"\'"', 'single quote, quoteStyle: "double"');
t.equal(inspect('`', { quoteStyle: 'single' }), '\'`\'', 'backtick, quoteStyle: "single"');
t.equal(inspect('`', { quoteStyle: 'double' }), '"`"', 'backtick, quoteStyle: "double"');
t.end();
});
@@ -0,0 +1,34 @@
import type { Formattable, Root } from './abstract/blot.js';
import LeafBlot from './abstract/leaf.js';
class EmbedBlot extends LeafBlot implements Formattable {
public static formats(_domNode: HTMLElement, _scroll: Root): any {
return undefined;
}
public format(name: string, value: any): void {
// super.formatAt wraps, which is what we want in general,
// but this allows subclasses to overwrite for formats
// that just apply to particular embeds
super.formatAt(0, this.length(), name, value);
}
public formatAt(
index: number,
length: number,
name: string,
value: any,
): void {
if (index === 0 && length === this.length()) {
this.format(name, value);
} else {
super.formatAt(index, length, name, value);
}
}
public formats(): { [index: string]: any } {
return this.statics.formats(this.domNode, this.scroll);
}
}
export default EmbedBlot;
@@ -0,0 +1,86 @@
import type { Lib, TSESTree } from '@typescript-eslint/types';
import type { Scope } from '../scope';
import type { ScopeManager } from '../ScopeManager';
import type { ReferenceImplicitGlobal } from './Reference';
import type { VisitorOptions } from './Visitor';
import { Visitor } from './Visitor';
export interface ReferencerOptions extends VisitorOptions {
jsxFragmentName: string | null;
jsxPragma: string | null;
lib: Lib[];
}
export declare class Referencer extends Visitor {
#private;
readonly scopeManager: ScopeManager;
constructor(options: ReferencerOptions, scopeManager: ScopeManager);
private populateGlobalsFromLib;
close(node: TSESTree.Node): void;
currentScope(): Scope;
currentScope(throwOnNull: true): Scope | null;
referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void;
/**
* Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself
*/
private referenceInSomeUpperScope;
private referenceJsxFragment;
private referenceJsxPragma;
protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void;
protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void;
protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void;
protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void;
protected visitJSXElement(node: TSESTree.JSXClosingElement | TSESTree.JSXOpeningElement): void;
protected visitProperty(node: TSESTree.Property): void;
protected visitType(node: TSESTree.Node | null | undefined): void;
protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion): void;
protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void;
protected AssignmentExpression(node: TSESTree.AssignmentExpression): void;
protected BlockStatement(node: TSESTree.BlockStatement): void;
protected BreakStatement(): void;
protected CallExpression(node: TSESTree.CallExpression): void;
protected CatchClause(node: TSESTree.CatchClause): void;
protected ClassDeclaration(node: TSESTree.ClassDeclaration): void;
protected ClassExpression(node: TSESTree.ClassExpression): void;
protected ContinueStatement(): void;
protected ExportAllDeclaration(): void;
protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void;
protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void;
protected ForInStatement(node: TSESTree.ForInStatement): void;
protected ForOfStatement(node: TSESTree.ForOfStatement): void;
protected ForStatement(node: TSESTree.ForStatement): void;
protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void;
protected FunctionExpression(node: TSESTree.FunctionExpression): void;
protected Identifier(node: TSESTree.Identifier): void;
protected ImportAttribute(): void;
protected ImportDeclaration(node: TSESTree.ImportDeclaration): void;
protected JSXAttribute(node: TSESTree.JSXAttribute): void;
protected JSXClosingElement(node: TSESTree.JSXClosingElement): void;
protected JSXFragment(node: TSESTree.JSXFragment): void;
protected JSXIdentifier(node: TSESTree.JSXIdentifier): void;
protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void;
protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void;
protected LabeledStatement(node: TSESTree.LabeledStatement): void;
protected MemberExpression(node: TSESTree.MemberExpression): void;
protected MetaProperty(): void;
protected NewExpression(node: TSESTree.NewExpression): void;
protected PrivateIdentifier(): void;
protected Program(node: TSESTree.Program): void;
protected Property(node: TSESTree.Property): void;
protected SwitchStatement(node: TSESTree.SwitchStatement): void;
protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void;
protected TSAsExpression(node: TSESTree.TSAsExpression): void;
protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void;
protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void;
protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void;
protected TSExportAssignment(node: TSESTree.TSExportAssignment): void;
protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void;
protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void;
protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void;
protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void;
protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void;
protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void;
protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void;
protected UpdateExpression(node: TSESTree.UpdateExpression): void;
protected VariableDeclaration(node: TSESTree.VariableDeclaration): void;
protected WithStatement(node: TSESTree.WithStatement): void;
private visitExpressionTarget;
}
@@ -0,0 +1,10 @@
/**
* Create an HTML extension for `micromark` to support GFM task list items
* syntax.
*
* @returns {Extension}
* Extension for `micromark` that can be passed in `htmlExtensions` to
* support GFM task list items when serializing to HTML.
*/
export function gfmTaskListItem(): Extension;
import type { Extension } from 'micromark-util-types';
@@ -0,0 +1,214 @@
# react-error-boundary
Reusable React [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) component. Supports all React renderers (including React DOM and React Native).
### If you like this project, 🎉 [become a sponsor](https://github.com/sponsors/bvaughn/) or ☕ [buy me a coffee](http://givebrian.coffee/)
## Getting started
```sh
# npm
npm install react-error-boundary
# pnpm
pnpm add react-error-boundary
# yarn
yarn add react-error-boundary
```
## API
### `ErrorBoundary` component
Wrap an `ErrorBoundary` component around other React components to "catch" errors and render a fallback UI. The component supports several ways to render a fallback (as shown below).
> **Note** `ErrorBoundary` is a _client_ component. You can only pass props to it that are serializeable or use it in files that have a `"use client";` directive.
#### `ErrorBoundary` with `fallback` prop
The simplest way to render a default "something went wrong" type of error message.
```js
"use client";
import { ErrorBoundary } from "react-error-boundary";
<ErrorBoundary fallback={<div>Something went wrong</div>}>
<ExampleApplication />
</ErrorBoundary>
```
#### `ErrorBoundary` with `fallbackRender` prop
["Render prop"](https://react.dev/reference/react/Children#calling-a-render-prop-to-customize-rendering) function responsible for returning a fallback UI based on a thrown value.
```js
"use client";
import { ErrorBoundary } from "react-error-boundary";
function fallbackRender({ error, resetErrorBoundary }) {
// Call resetErrorBoundary() to reset the error boundary and retry the render.
return (
<div role="alert">
<p>Something went wrong:</p>
<pre style={{ color: "red" }}>{error.message}</pre>
</div>
);
}
<ErrorBoundary
fallbackRender={fallbackRender}
onReset={(details) => {
// Reset the state of your app so the error doesn't happen again
}}
>
<ExampleApplication />
</ErrorBoundary>;
```
#### `ErrorBoundary` with `FallbackComponent` prop
React component responsible for returning a fallback UI based on a thrown value.
```js
"use client";
import { ErrorBoundary } from "react-error-boundary";
function Fallback({ error, resetErrorBoundary }) {
// Call resetErrorBoundary() to reset the error boundary and retry the render.
return (
<div role="alert">
<p>Something went wrong:</p>
<pre style={{ color: "red" }}>{error.message}</pre>
</div>
);
}
<ErrorBoundary
FallbackComponent={Fallback}
onReset={(details) => {
// Reset the state of your app so the error doesn't happen again
}}
>
<ExampleApplication />
</ErrorBoundary>;
```
#### Logging errors with `onError`
```js
"use client";
import { ErrorBoundary } from "react-error-boundary";
const logError = (error: Error, info: { componentStack: string }) => {
// Do something with the error, e.g. log to an external API
};
const ui = (
<ErrorBoundary FallbackComponent={ErrorFallback} onError={logError}>
<ExampleApplication />
</ErrorBoundary>
);
```
### `useErrorBoundary` hook
Convenience hook for imperatively showing or dismissing error boundaries.
#### Show the nearest error boundary from an event handler
React only handles errors thrown during render or during component lifecycle methods (e.g. effects and did-mount/did-update). Errors thrown in event handlers, or after async code has run, will not be caught.
This hook can be used to pass those errors to the nearest error boundary:
```js
"use client";
import { useErrorBoundary } from "react-error-boundary";
function Example() {
const { showBoundary } = useErrorBoundary();
useEffect(() => {
fetchGreeting(name).then(
response => {
// Set data in state and re-render
},
error => {
// Show error boundary
showBoundary(error);
}
);
});
// Render ...
}
```
#### Dismiss the nearest error boundary
A fallback component can use this hook to request the nearest error boundary retry the render that originally failed.
```js
"use client";
import { useErrorBoundary } from "react-error-boundary";
function ErrorFallback({ error }) {
const { resetBoundary } = useErrorBoundary();
return (
<div role="alert">
<p>Something went wrong:</p>
<pre style={{ color: "red" }}>{error.message}</pre>
<button onClick={resetBoundary}>Try again</button>
</div>
);
}
```
### `withErrorBoundary` HOC
This package can also be used as a [higher-order component](https://legacy.reactjs.org/docs/higher-order-components.html) that accepts all of the same props as above:
```js
"use client";
import {withErrorBoundary} from 'react-error-boundary'
const ComponentWithErrorBoundary = withErrorBoundary(ExampleComponent, {
fallback: <div>Something went wrong</div>,
onError(error, info) {
// Do something with the error
// E.g. log to an error logging client here
},
})
// Can be rendered as <ComponentWithErrorBoundary {...props} />
```
---
# FAQ
## `ErrorBoundary` cannot be used as a JSX component
This error can be caused by a version mismatch between [react](https://npmjs.com/package/react) and [@types/react](https://npmjs.com/package/@types/react). To fix this, ensure that both match exactly, e.g.:
If using NPM:
```json
{
...
"overrides": {
"@types/react": "17.0.60"
},
...
}
```
If using Yarn:
```json
{
...
"resolutions": {
"@types/react": "17.0.60"
},
...
}
```
---
[This blog post](https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react) shows more examples of how this package can be used, although it was written for the [version 3 API](https://github.com/bvaughn/react-error-boundary/releases/tag/v3.1.4).
@@ -0,0 +1,2 @@
export const aria: import("./util/schema.js").Schema;
//# sourceMappingURL=aria.d.ts.map
@@ -0,0 +1,58 @@
'use strict';
var isFinite = require('math-intrinsics/isFinite');
var isObject = require('es-object-atoms/isObject');
var IsStrictlyEqual = require('./IsStrictlyEqual');
var StringToBigInt = require('./StringToBigInt');
var ToNumber = require('./ToNumber');
var ToPrimitive = require('./ToPrimitive');
var isSameType = require('../helpers/isSameType');
// https://262.ecma-international.org/13.0/#sec-islooselyequal
module.exports = function IsLooselyEqual(x, y) {
if (isSameType(x, y)) {
return IsStrictlyEqual(x, y);
}
if (x == null && y == null) {
return true;
}
if (typeof x === 'number' && typeof y === 'string') {
return IsLooselyEqual(x, ToNumber(y));
}
if (typeof x === 'string' && typeof y === 'number') {
return IsLooselyEqual(ToNumber(x), y);
}
if (typeof x === 'bigint' && typeof y === 'string') {
var n = StringToBigInt(y);
if (typeof n === 'undefined') {
return false;
}
return IsLooselyEqual(x, n);
}
if (typeof x === 'string' && typeof y === 'bigint') {
return IsLooselyEqual(y, x);
}
if (typeof x === 'boolean') {
return IsLooselyEqual(ToNumber(x), y);
}
if (typeof y === 'boolean') {
return IsLooselyEqual(x, ToNumber(y));
}
if ((typeof x === 'string' || typeof x === 'number' || typeof x === 'symbol' || typeof x === 'bigint') && isObject(y)) {
return IsLooselyEqual(x, ToPrimitive(y));
}
if (isObject(x) && (typeof y === 'string' || typeof y === 'number' || typeof y === 'symbol' || typeof y === 'bigint')) {
return IsLooselyEqual(ToPrimitive(x), y);
}
if ((typeof x === 'bigint' && typeof y === 'number') || (typeof x === 'number' && typeof y === 'bigint')) {
if (!isFinite(x) || !isFinite(y)) {
return false;
}
// eslint-disable-next-line eqeqeq
return x == y; // shortcut for step 13.b.
}
return false;
};
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`
};
//# sourceMappingURL=pt-PT.main.js.map
@@ -0,0 +1 @@
{"version":3,"file":"indent-lines.d.ts","sourceRoot":"","sources":["indent-lines.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A wC","388":"B"},B:{"257":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M","769":"G N O P"},C:{"2":"xC TC J ZB 0C 1C","4":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","257":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC"},D:{"2":"6 J ZB K D E F A B C L M G N O P aB","4":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","257":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D 2C ZC 3C 4C","4":"E F 5C 6C"},F:{"2":"F B C FD GD HD ID NC uC JD OC","4":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","257":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"ZC KD vC LD MD","4":"E ND OD PD QD"},H:{"2":"hD"},I:{"2":"TC J iD jD kD lD vC","4":"mD nD","257":"I"},J:{"2":"D","4":"A"},K:{"2":"A B C NC uC OC","257":"H"},L:{"257":"I"},M:{"257":"MC"},N:{"2":"A","388":"B"},O:{"257":"PC"},P:{"4":"J","257":"6 7 8 9 AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"257":"zD"},R:{"257":"0D"},S:{"4":"1D","257":"2D"}},B:6,C:"ECMAScript 2015 (ES6)",D:true};
@@ -0,0 +1 @@
!function(d,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(d="undefined"!=typeof globalThis?globalThis:d||self).dayjs_locale_cy=e(d.dayjs)}(this,(function(d){"use strict";function e(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}var _=e(d),a={name:"cy",weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),weekStart:1,weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"}};return _.default.locale(a,null,!0),a}));
@@ -0,0 +1 @@
{"version":3,"names":["_arrayLikeToArray","require","_arrayWithoutHoles","arr","Array","isArray","arrayLikeToArray"],"sources":["../../src/helpers/arrayWithoutHoles.ts"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nimport arrayLikeToArray from \"./arrayLikeToArray.ts\";\n\nexport default function _arrayWithoutHoles<T>(arr: Array<T>) {\n if (Array.isArray(arr)) return arrayLikeToArray<T>(arr);\n}\n"],"mappings":";;;;;;AAEA,IAAAA,iBAAA,GAAAC,OAAA;AAEe,SAASC,kBAAkBA,CAAIC,GAAa,EAAE;EAC3D,IAAIC,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE,OAAO,IAAAG,yBAAgB,EAAIH,GAAG,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1,125 @@
{
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"bugs": "https://github.com/syntax-tree/mdast-util-gfm/issues",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"dependencies": {
"mdast-util-from-markdown": "^2.0.0",
"mdast-util-gfm-autolink-literal": "^2.0.0",
"mdast-util-gfm-footnote": "^2.0.0",
"mdast-util-gfm-strikethrough": "^2.0.0",
"mdast-util-gfm-table": "^2.0.0",
"mdast-util-gfm-task-list-item": "^2.0.0",
"mdast-util-to-markdown": "^2.0.0"
},
"description": "mdast extension to parse and serialize GFM (GitHub Flavored Markdown)",
"devDependencies": {
"@types/node": "^22.0.0",
"c8": "^10.0.0",
"github-slugger": "^2.0.0",
"hast-util-to-html": "^9.0.0",
"mdast-util-to-hast": "^13.0.0",
"micromark-extension-gfm": "^3.0.0",
"prettier": "^3.0.0",
"remark-cli": "^12.0.0",
"remark-preset-wooorm": "^11.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"undici": "^7.0.0",
"xo": "^0.60.0"
},
"exports": "./index.js",
"files": [
"index.d.ts",
"index.js",
"lib/"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"keywords": [
"autolink",
"gfm",
"github",
"markdown",
"markup",
"mdast-util",
"mdast",
"strikethrough",
"table",
"tagfilter",
"tasklist",
"unist",
"utility",
"util"
],
"license": "MIT",
"name": "mdast-util-gfm",
"prettier": {
"bracketSpacing": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
"remarkConfig": {
"plugins": [
"remark-preset-wooorm"
]
},
"repository": "syntax-tree/mdast-util-gfm",
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
"crawl": "node --conditions development script/crawl-tests.js",
"format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
"test-api-prod": "node --conditions production test/index.js",
"test-api-dev": "node --conditions development test/index.js",
"test-api": "npm run test-api-dev && npm run test-api-prod",
"test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"sideEffects": false,
"typeCoverage": {
"atLeast": 100,
"strict": true
},
"type": "module",
"version": "3.1.0",
"xo": {
"overrides": [
{
"files": [
"**/*.d.ts"
],
"rules": {
"@typescript-eslint/array-type": [
"error",
{
"default": "generic"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true
}
],
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
]
}
},
{
"files": "test/**/*.js",
"rules": {
"no-await-in-loop": "off"
}
}
],
"prettier": true
}
}
@@ -0,0 +1,23 @@
'use strict';
const fs = require('fs');
const {promisify} = require('util');
const pAccess = promisify(fs.access);
module.exports = async path => {
try {
await pAccess(path);
return true;
} catch (_) {
return false;
}
};
module.exports.sync = path => {
try {
fs.accessSync(path);
return true;
} catch (_) {
return false;
}
};
@@ -0,0 +1,5 @@
export interface Options {
restoreOnUnmount?: boolean;
}
declare function useTitle(title: string, options?: Options): void;
export default useTitle;
@@ -0,0 +1 @@
module.exports={C:{"72":0.00373,"104":0.00373,"112":0.00373,"113":0.01866,"115":0.07835,"124":0.00373,"127":0.01119,"128":0.00746,"130":0.00373,"133":0.00373,"134":0.00746,"136":0.00746,"139":0.00373,"140":0.01119,"141":0.00746,"142":0.03358,"143":0.64173,"144":0.41787,"145":0.00373,"146":0.00373,_:"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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 114 116 117 118 119 120 121 122 123 125 126 129 131 132 135 137 138 147 3.5 3.6"},D:{"11":0.00746,"17":0.01119,"39":0.00373,"40":0.00373,"41":0.00373,"42":0.00373,"43":0.00373,"44":0.00373,"45":0.00373,"46":0.00373,"47":0.00373,"48":0.00373,"49":0.00373,"50":0.00373,"51":0.00373,"52":0.00373,"53":0.00373,"55":0.00373,"56":0.00373,"57":0.00373,"58":0.00373,"59":0.00373,"60":0.00373,"64":0.00746,"65":0.00373,"68":0.00373,"69":0.00373,"70":0.01866,"71":0.00746,"72":0.00746,"73":0.00373,"74":0.00373,"75":0.00373,"76":0.01119,"77":0.00373,"78":0.01866,"79":0.01866,"80":0.01119,"81":0.00746,"83":0.00746,"85":0.00373,"86":0.01119,"87":0.04104,"88":0.00373,"89":0.00373,"90":0.00373,"91":0.06343,"93":0.01119,"94":0.00373,"95":0.00746,"96":0.00373,"97":0.01119,"98":0.01119,"99":0.00373,"100":0.01119,"102":0.00373,"103":0.04104,"104":0.0597,"105":0.00746,"106":0.00746,"107":0.00373,"108":0.01119,"109":0.38802,"110":0.00373,"111":0.02612,"112":0.01119,"113":0.00746,"114":0.03358,"115":0.00373,"116":0.02985,"117":0.00373,"118":0.00373,"119":0.04477,"120":0.02985,"121":0.00746,"122":0.04104,"123":0.13059,"124":0.02239,"125":0.94394,"126":0.04104,"127":0.01119,"128":0.04104,"129":0.02612,"130":0.02612,"131":0.10074,"132":0.0485,"133":0.04104,"134":0.07835,"135":0.07462,"136":0.09328,"137":0.13805,"138":0.38802,"139":0.50369,"140":4.55555,"141":7.48439,"142":0.09701,"143":0.00746,_:"4 5 6 7 8 9 10 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 54 61 62 63 66 67 84 92 101 144 145"},F:{"36":0.00373,"42":0.00373,"64":0.00746,"79":0.00373,"87":0.00373,"88":0.00373,"90":0.00373,"91":0.02985,"92":0.02239,"95":0.01866,"113":0.00373,"114":0.00373,"117":0.00373,"118":0.00373,"119":0.00373,"120":0.19028,"121":0.0597,"122":1.85431,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00746,"13":0.00746,"14":0.05597,"15":0.00373,"16":0.00746,"17":0.00746,"18":0.06343,"84":0.00746,"89":0.01492,"90":0.03358,"92":0.12312,"100":0.02985,"107":0.01119,"109":0.02985,"111":0.01492,"112":0.00746,"114":0.04477,"119":0.00373,"120":0.00373,"122":0.0485,"125":0.00373,"126":0.00373,"127":0.00373,"128":0.00746,"129":0.00373,"130":0.00373,"131":0.01492,"132":0.00746,"133":0.07089,"134":0.00746,"135":0.01492,"136":0.02985,"137":0.02239,"138":0.11566,"139":0.12685,"140":1.21631,"141":4.06679,"142":0.00373,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 113 115 116 117 118 121 123 124"},E:{"13":0.01119,"15":0.00373,_:"0 4 5 6 7 8 9 10 11 12 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 26.2","12.1":0.00373,"13.1":0.01119,"14.1":0.07089,"15.1":0.00373,"15.6":0.0485,"16.1":0.00373,"16.3":0.00373,"16.5":0.00373,"16.6":0.02612,"17.1":0.01119,"17.3":0.00373,"17.4":0.01866,"17.5":0.01119,"17.6":0.06343,"18.0":0.02612,"18.1":0.00373,"18.2":0.00746,"18.3":0.01492,"18.4":0.00746,"18.5-18.6":0.03358,"26.0":0.30221,"26.1":0.01119},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00048,"5.0-5.1":0,"6.0-6.1":0.00192,"7.0-7.1":0.00144,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00433,"10.0-10.2":0.00048,"10.3":0.00817,"11.0-11.2":0.12115,"11.3-11.4":0.00288,"12.0-12.1":0.00096,"12.2-12.5":0.02356,"13.0-13.1":0,"13.2":0.0024,"13.3":0.00096,"13.4-13.7":0.00385,"14.0-14.4":0.00817,"14.5-14.8":0.00865,"15.0-15.1":0.00817,"15.2-15.3":0.00625,"15.4":0.00721,"15.5":0.00817,"15.6-15.8":0.10673,"16.0":0.01442,"16.1":0.02692,"16.2":0.01394,"16.3":0.025,"16.4":0.00625,"16.5":0.01106,"16.6-16.7":0.14278,"17.0":0.0101,"17.1":0.01538,"17.2":0.01106,"17.3":0.01635,"17.4":0.02885,"17.5":0.04952,"17.6-17.7":0.125,"18.0":0.02836,"18.1":0.05865,"18.2":0.03173,"18.3":0.10192,"18.4":0.0524,"18.5-18.6":2.67204,"26.0":0.33028,"26.1":0.01202},P:{"4":0.02052,"21":0.05129,"22":0.02052,"23":0.02052,"24":0.13336,"25":0.1231,"26":0.06155,"27":0.23595,"28":2.07224,"29":0.18466,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 18.0","7.2-7.4":0.10259,"11.1-11.2":0.01026,"16.0":0.01026,"17.0":0.01026,"19.0":0.02052},I:{"0":0.02504,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3Line truncated
@@ -0,0 +1,9 @@
import { noJitter } from './no.jitter';
describe(`Testing ${noJitter.name}`, () => {
it(`when calling #noJitter with a delay,
it returns the same delay`, () => {
const delay = 100;
expect(noJitter(delay)).toBe(delay);
})
})
@@ -0,0 +1,63 @@
// German (Austria) [de-at]
import dayjs from '../index';
var texts = {
s: 'ein paar Sekunden',
m: ['eine Minute', 'einer Minute'],
mm: '%d Minuten',
h: ['eine Stunde', 'einer Stunde'],
hh: '%d Stunden',
d: ['ein Tag', 'einem Tag'],
dd: ['%d Tage', '%d Tagen'],
M: ['ein Monat', 'einem Monat'],
MM: ['%d Monate', '%d Monaten'],
y: ['ein Jahr', 'einem Jahr'],
yy: ['%d Jahre', '%d Jahren']
};
function relativeTimeFormatter(number, withoutSuffix, key) {
var l = texts[key];
if (Array.isArray(l)) {
l = l[withoutSuffix ? 0 : 1];
}
return l.replace('%d', number);
}
var locale = {
name: 'de-at',
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
ordinal: function ordinal(n) {
return n + ".";
},
weekStart: 1,
formats: {
LTS: 'HH:mm:ss',
LT: 'HH:mm',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY HH:mm',
LLLL: 'dddd, D. MMMM YYYY HH:mm'
},
relativeTime: {
future: 'in %s',
past: 'vor %s',
s: relativeTimeFormatter,
m: relativeTimeFormatter,
mm: relativeTimeFormatter,
h: relativeTimeFormatter,
hh: relativeTimeFormatter,
d: relativeTimeFormatter,
dd: relativeTimeFormatter,
M: relativeTimeFormatter,
MM: relativeTimeFormatter,
y: relativeTimeFormatter,
yy: relativeTimeFormatter
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,233 @@
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { CursorBlinkStateManager } from 'browser/renderer/shared/CursorBlinkStateManager';
import { IRenderDimensions, IRequestRedrawEvent } from 'browser/renderer/shared/Types';
import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { IEventEmitter } from 'common/EventEmitter';
import { MutableDisposable } from 'common/Lifecycle';
import { isFirefox } from 'common/Platform';
import { ICellData } from 'common/Types';
import { CellData } from 'common/buffer/CellData';
import { IBufferService, ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from '@xterm/xterm';
import { BaseRenderLayer } from './BaseRenderLayer';
interface ICursorState {
x: number;
y: number;
isFocused: boolean;
style: string;
width: number;
}
export class CursorRenderLayer extends BaseRenderLayer {
private _state: ICursorState;
private _cursorRenderers: {[key: string]: (x: number, y: number, cell: ICellData) => void};
private _cursorBlinkStateManager: MutableDisposable<CursorBlinkStateManager> = this.register(new MutableDisposable());
private _cell: ICellData = new CellData();
constructor(
terminal: Terminal,
container: HTMLElement,
zIndex: number,
private readonly _onRequestRedraw: IEventEmitter<IRequestRedrawEvent>,
bufferService: IBufferService,
optionsService: IOptionsService,
private readonly _coreService: ICoreService,
coreBrowserService: ICoreBrowserService,
decorationService: IDecorationService,
themeService: IThemeService
) {
super(terminal, container, 'cursor', zIndex, true, themeService, bufferService, optionsService, decorationService, coreBrowserService);
this._state = {
x: 0,
y: 0,
isFocused: false,
style: '',
width: 0
};
this._cursorRenderers = {
'bar': this._renderBarCursor.bind(this),
'block': this._renderBlockCursor.bind(this),
'underline': this._renderUnderlineCursor.bind(this),
'outline': this._renderOutlineCursor.bind(this)
};
this.register(optionsService.onOptionChange(() => this._handleOptionsChanged()));
this._handleOptionsChanged();
}
public resize(dim: IRenderDimensions): void {
super.resize(dim);
// Resizing the canvas discards the contents of the canvas so clear state
this._state = {
x: 0,
y: 0,
isFocused: false,
style: '',
width: 0
};
}
public reset(): void {
this._clearCursor();
this._cursorBlinkStateManager.value?.restartBlinkAnimation();
this._handleOptionsChanged();
}
public handleBlur(): void {
this._cursorBlinkStateManager.value?.pause();
this._onRequestRedraw.fire({ start: this._bufferService.buffer.y, end: this._bufferService.buffer.y });
}
public handleFocus(): void {
this._cursorBlinkStateManager.value?.resume();
this._onRequestRedraw.fire({ start: this._bufferService.buffer.y, end: this._bufferService.buffer.y });
}
private _handleOptionsChanged(): void {
if (this._optionsService.rawOptions.cursorBlink) {
if (!this._cursorBlinkStateManager.value) {
this._cursorBlinkStateManager.value = new CursorBlinkStateManager(() => this._render(true), this._coreBrowserService);
}
} else {
this._cursorBlinkStateManager.clear();
}
// Request a refresh from the terminal as management of rendering is being
// moved back to the terminal
this._onRequestRedraw.fire({ start: this._bufferService.buffer.y, end: this._bufferService.buffer.y });
}
public handleCursorMove(): void {
this._cursorBlinkStateManager.value?.restartBlinkAnimation();
}
public handleGridChanged(startRow: number, endRow: number): void {
if (!this._cursorBlinkStateManager.value || this._cursorBlinkStateManager.value.isPaused) {
this._render(false);
} else {
this._cursorBlinkStateManager.value.restartBlinkAnimation();
}
}
private _render(triggeredByAnimationFrame: boolean): void {
// Don't draw the cursor if it's hidden
if (!this._coreService.isCursorInitialized || this._coreService.isCursorHidden) {
this._clearCursor();
return;
}
const cursorY = this._bufferService.buffer.ybase + this._bufferService.buffer.y;
const viewportRelativeCursorY = cursorY - this._bufferService.buffer.ydisp;
// Don't draw the cursor if it's off-screen
if (viewportRelativeCursorY < 0 || viewportRelativeCursorY >= this._bufferService.rows) {
this._clearCursor();
return;
}
// in case cursor.x == cols adjust visual cursor to cols - 1
const cursorX = Math.min(this._bufferService.buffer.x, this._bufferService.cols - 1);
this._bufferService.buffer.lines.get(cursorY)!.loadCell(cursorX, this._cell);
if (this._cell.content === undefined) {
return;
}
if (!this._coreBrowserService.isFocused) {
this._clearCursor();
this._ctx.save();
this._ctx.fillStyle = this._themeService.colors.cursor.css;
const cursorStyle = this._optionsService.rawOptions.cursorStyle;
const cursorInactiveStyle = this._optionsService.rawOptions.cursorInactiveStyle;
if (cursorInactiveStyle && cursorInactiveStyle !== 'none') {
this._cursorRenderers[cursorInactiveStyle](cursorX, viewportRelativeCursorY, this._cell);
}
this._ctx.restore();
this._state.x = cursorX;
this._state.y = viewportRelativeCursorY;
this._state.isFocused = false;
this._state.style = cursorStyle;
this._state.width = this._cell.getWidth();
return;
}
// Don't draw the cursor if it's blinking
if (this._cursorBlinkStateManager.value && !this._cursorBlinkStateManager.value.isCursorVisible) {
this._clearCursor();
return;
}
if (this._state) {
// The cursor is already in the correct spot, don't redraw
if (this._state.x === cursorX &&
this._state.y === viewportRelativeCursorY &&
this._state.isFocused === this._coreBrowserService.isFocused &&
this._state.style === this._optionsService.rawOptions.cursorStyle &&
this._state.width === this._cell.getWidth()) {
return;
}
this._clearCursor();
}
this._ctx.save();
this._cursorRenderers[this._optionsService.rawOptions.cursorStyle || 'block'](cursorX, viewportRelativeCursorY, this._cell);
this._ctx.restore();
this._state.x = cursorX;
this._state.y = viewportRelativeCursorY;
this._state.isFocused = false;
this._state.style = this._optionsService.rawOptions.cursorStyle;
this._state.width = this._cell.getWidth();
}
private _clearCursor(): void {
if (this._state) {
// Avoid potential rounding errors when browser is Firefox (#4487) or device pixel ratio is
// less than 1
if (isFirefox || this._coreBrowserService.dpr < 1) {
this._clearAll();
} else {
this._clearCells(this._state.x, this._state.y, this._state.width, 1);
}
this._state = {
x: 0,
y: 0,
isFocused: false,
style: '',
width: 0
};
}
}
private _renderBarCursor(x: number, y: number, cell: ICellData): void {
this._ctx.save();
this._ctx.fillStyle = this._themeService.colors.cursor.css;
this._fillLeftLineAtCell(x, y, this._optionsService.rawOptions.cursorWidth);
this._ctx.restore();
}
private _renderBlockCursor(x: number, y: number, cell: ICellData): void {
this._ctx.save();
this._ctx.fillStyle = this._themeService.colors.cursor.css;
this._fillCells(x, y, cell.getWidth(), 1);
this._ctx.fillStyle = this._themeService.colors.cursorAccent.css;
this._fillCharTrueColor(cell, x, y);
this._ctx.restore();
}
private _renderUnderlineCursor(x: number, y: number, cell: ICellData): void {
this._ctx.save();
this._ctx.fillStyle = this._themeService.colors.cursor.css;
this._fillBottomLineAtCells(x, y);
this._ctx.restore();
}
private _renderOutlineCursor(x: number, y: number, cell: ICellData): void {
this._ctx.save();
this._ctx.strokeStyle = this._themeService.colors.cursor.css;
this._strokeRectAtCell(x, y, cell.getWidth(), 1);
this._ctx.restore();
}
}
@@ -0,0 +1,217 @@
import * as eslint from 'eslint';
import { Rule, AST } from 'eslint';
import * as estree from 'estree';
declare const READ: unique symbol;
declare const CALL: unique symbol;
declare const CONSTRUCT: unique symbol;
declare const ESM: unique symbol;
declare class ReferenceTracker {
constructor(globalScope: Scope$2, options?: {
mode?: "legacy" | "strict" | undefined;
globalObjectNames?: string[] | undefined;
} | undefined);
private variableStack;
private globalScope;
private mode;
private globalObjectNames;
iterateGlobalReferences<T>(traceMap: TraceMap$2<T>): IterableIterator<TrackedReferences$2<T>>;
iterateCjsReferences<T_1>(traceMap: TraceMap$2<T_1>): IterableIterator<TrackedReferences$2<T_1>>;
iterateEsmReferences<T_2>(traceMap: TraceMap$2<T_2>): IterableIterator<TrackedReferences$2<T_2>>;
iteratePropertyReferences<T_3>(node: Expression, traceMap: TraceMap$2<T_3>): IterableIterator<TrackedReferences$2<T_3>>;
private _iterateVariableReferences;
private _iteratePropertyReferences;
private _iterateLhsReferences;
private _iterateImportReferences;
}
declare namespace ReferenceTracker {
export { READ };
export { CALL };
export { CONSTRUCT };
export { ESM };
}
type Scope$2 = eslint.Scope.Scope;
type Expression = estree.Expression;
type TraceMap$2<T> = TraceMap$1<T>;
type TrackedReferences$2<T> = TrackedReferences$1<T>;
type StaticValue$2 = StaticValueProvided$1 | StaticValueOptional$1;
type StaticValueProvided$1 = {
optional?: undefined;
value: unknown;
};
type StaticValueOptional$1 = {
optional?: true;
value: undefined;
};
type ReferenceTrackerOptions$1 = {
globalObjectNames?: string[];
mode?: "legacy" | "strict";
};
type TraceMap$1<T = unknown> = {
[i: string]: TraceMapObject<T>;
};
type TraceMapObject<T> = {
[i: string]: TraceMapObject<T>;
[CALL]?: T;
[CONSTRUCT]?: T;
[READ]?: T;
[ESM]?: boolean;
};
type TrackedReferences$1<T> = {
info: T;
node: Rule.Node;
path: string[];
type: typeof CALL | typeof CONSTRUCT | typeof READ;
};
type HasSideEffectOptions$1 = {
considerGetters?: boolean;
considerImplicitTypeConversion?: boolean;
};
type PunctuatorToken<Value extends string> = AST.Token & {
type: "Punctuator";
value: Value;
};
type ArrowToken$1 = PunctuatorToken<"=>">;
type CommaToken$1 = PunctuatorToken<",">;
type SemicolonToken$1 = PunctuatorToken<";">;
type ColonToken$1 = PunctuatorToken<":">;
type OpeningParenToken$1 = PunctuatorToken<"(">;
type ClosingParenToken$1 = PunctuatorToken<")">;
type OpeningBracketToken$1 = PunctuatorToken<"[">;
type ClosingBracketToken$1 = PunctuatorToken<"]">;
type OpeningBraceToken$1 = PunctuatorToken<"{">;
type ClosingBraceToken$1 = PunctuatorToken<"}">;
declare function findVariable(initialScope: Scope$1, nameOrNode: string | Identifier): Variable | null;
type Scope$1 = eslint.Scope.Scope;
type Variable = eslint.Scope.Variable;
type Identifier = estree.Identifier;
declare function getFunctionHeadLocation(node: FunctionNode$1, sourceCode: SourceCode$2): SourceLocation | null;
type SourceCode$2 = eslint.SourceCode;
type FunctionNode$1 = estree.Function;
type SourceLocation = estree.SourceLocation;
declare function getFunctionNameWithKind(node: FunctionNode, sourceCode?: eslint.SourceCode | undefined): string;
type FunctionNode = estree.Function;
declare function getInnermostScope(initialScope: Scope, node: Node$4): Scope;
type Scope = eslint.Scope.Scope;
type Node$4 = estree.Node;
declare function getPropertyName(node: MemberExpression | MethodDefinition | Property | PropertyDefinition, initialScope?: eslint.Scope.Scope | undefined): string | null | undefined;
type MemberExpression = estree.MemberExpression;
type MethodDefinition = estree.MethodDefinition;
type Property = estree.Property;
type PropertyDefinition = estree.PropertyDefinition;
declare function getStaticValue(node: Node$3, initialScope?: eslint.Scope.Scope | null | undefined): StaticValue$1 | null;
type StaticValue$1 = StaticValue$2;
type Node$3 = estree.Node;
declare function getStringIfConstant(node: Node$2, initialScope?: eslint.Scope.Scope | null | undefined): string | null;
type Node$2 = estree.Node;
declare function hasSideEffect(node: Node$1, sourceCode: SourceCode$1, options?: HasSideEffectOptions$1 | undefined): boolean;
type Node$1 = estree.Node;
type SourceCode$1 = eslint.SourceCode;
declare function isArrowToken(token: CommentOrToken): token is ArrowToken$1;
declare function isCommaToken(token: CommentOrToken): token is CommaToken$1;
declare function isSemicolonToken(token: CommentOrToken): token is SemicolonToken$1;
declare function isColonToken(token: CommentOrToken): token is ColonToken$1;
declare function isOpeningParenToken(token: CommentOrToken): token is OpeningParenToken$1;
declare function isClosingParenToken(token: CommentOrToken): token is ClosingParenToken$1;
declare function isOpeningBracketToken(token: CommentOrToken): token is OpeningBracketToken$1;
declare function isClosingBracketToken(token: CommentOrToken): token is ClosingBracketToken$1;
declare function isOpeningBraceToken(token: CommentOrToken): token is OpeningBraceToken$1;
declare function isClosingBraceToken(token: CommentOrToken): token is ClosingBraceToken$1;
declare function isCommentToken(token: CommentOrToken): token is estree.Comment;
declare function isNotArrowToken(arg0: CommentOrToken): boolean;
declare function isNotCommaToken(arg0: CommentOrToken): boolean;
declare function isNotSemicolonToken(arg0: CommentOrToken): boolean;
declare function isNotColonToken(arg0: CommentOrToken): boolean;
declare function isNotOpeningParenToken(arg0: CommentOrToken): boolean;
declare function isNotClosingParenToken(arg0: CommentOrToken): boolean;
declare function isNotOpeningBracketToken(arg0: CommentOrToken): boolean;
declare function isNotClosingBracketToken(arg0: CommentOrToken): boolean;
declare function isNotOpeningBraceToken(arg0: CommentOrToken): boolean;
declare function isNotClosingBraceToken(arg0: CommentOrToken): boolean;
declare function isNotCommentToken(arg0: CommentOrToken): boolean;
type Token = eslint.AST.Token;
type Comment = estree.Comment;
type CommentOrToken = Comment | Token;
declare function isParenthesized(timesOrNode: Node | number, nodeOrSourceCode: Node | SourceCode, optionalSourceCode?: eslint.SourceCode | undefined): boolean;
type Node = estree.Node;
type SourceCode = eslint.SourceCode;
declare class PatternMatcher {
constructor(pattern: RegExp, options?: {
escaped?: boolean | undefined;
} | undefined);
execAll(str: string): IterableIterator<RegExpExecArray>;
test(str: string): boolean;
[Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string;
}
declare namespace _default {
export { CALL };
export { CONSTRUCT };
export { ESM };
export { findVariable };
export { getFunctionHeadLocation };
export { getFunctionNameWithKind };
export { getInnermostScope };
export { getPropertyName };
export { getStaticValue };
export { getStringIfConstant };
export { hasSideEffect };
export { isArrowToken };
export { isClosingBraceToken };
export { isClosingBracketToken };
export { isClosingParenToken };
export { isColonToken };
export { isCommaToken };
export { isCommentToken };
export { isNotArrowToken };
export { isNotClosingBraceToken };
export { isNotClosingBracketToken };
export { isNotClosingParenToken };
export { isNotColonToken };
export { isNotCommaToken };
export { isNotCommentToken };
export { isNotOpeningBraceToken };
export { isNotOpeningBracketToken };
export { isNotOpeningParenToken };
export { isNotSemicolonToken };
export { isOpeningBraceToken };
export { isOpeningBracketToken };
export { isOpeningParenToken };
export { isParenthesized };
export { isSemicolonToken };
export { PatternMatcher };
export { READ };
export { ReferenceTracker };
}
type StaticValue = StaticValue$2;
type StaticValueOptional = StaticValueOptional$1;
type StaticValueProvided = StaticValueProvided$1;
type ReferenceTrackerOptions = ReferenceTrackerOptions$1;
type TraceMap<T> = TraceMap$1<T>;
type TrackedReferences<T> = TrackedReferences$1<T>;
type HasSideEffectOptions = HasSideEffectOptions$1;
type ArrowToken = ArrowToken$1;
type CommaToken = CommaToken$1;
type SemicolonToken = SemicolonToken$1;
type ColonToken = ColonToken$1;
type OpeningParenToken = OpeningParenToken$1;
type ClosingParenToken = ClosingParenToken$1;
type OpeningBracketToken = OpeningBracketToken$1;
type ClosingBracketToken = ClosingBracketToken$1;
type OpeningBraceToken = OpeningBraceToken$1;
type ClosingBraceToken = ClosingBraceToken$1;
export { ArrowToken, CALL, CONSTRUCT, ClosingBraceToken, ClosingBracketToken, ClosingParenToken, ColonToken, CommaToken, ESM, HasSideEffectOptions, OpeningBraceToken, OpeningBracketToken, OpeningParenToken, PatternMatcher, READ, ReferenceTracker, ReferenceTrackerOptions, SemicolonToken, StaticValue, StaticValueOptional, StaticValueProvided, TraceMap, TrackedReferences, _default as default, findVariable, getFunctionHeadLocation, getFunctionNameWithKind, getInnermostScope, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isParenthesized, isSemicolonToken };
@@ -0,0 +1,37 @@
import { DateInput } from './types';
/**
* Parses a date from various input types.
* 从各种输入类型中解析日期。
*
* @param input - The input to parse, which can be a string, number, Date, or array of numbers.
* (要解析的输入,可以是字符串、数字、Date 对象或数字数组。)
* @param format - An optional format string that specifies the format of the input string if the input is a string.
* Or A boolean indicating whether the date should be in UTC.
* (可选的格式字符串,指定输入字符串的格式,如果输入是字符串。 或者是布尔值,表示日期是否应为 UTC。)
* @returns A Date object representing the parsed date. (表示解析后日期的 Date 对象。)
* @example
* ```ts
* // 从字符串中解析日期
* const result = parse('20231001123456', 'YYYYMMDDHHmmss');
* console.log(result); // 输出: 2023-10-01T12:34:56.000Z
*
* // 从 ISO 8601 字符串中解析日期
* const isoResult = parse('2023-10-01T12:34:56Z');
* console.log(isoResult); // 输出: 2023-10-01T12:34:56.000Z
*
* // 从数字数组中解析日期
* const arrayResult = parse([2023, 9, 1, 12, 34, 56]);
* console.log(arrayResult); // 输出: 2023-10-01T12:34:56.000Z
*
* // 从数字中解析日期
* const numberResult = parse(1696119296000);
* console.log(numberResult); // 输出: 2023-10-01T12:34:56.000Z
*
* // 从 Date 对象中解析日期
* const dateResult = parse(new Date('2023-10-01T12:34:56Z'));
* console.log(dateResult); // 输出: 2023-10-01T12:34:56.000Z
* ```
*/
export default function parse(input: DateInput | {
isValid: () => any;
}, format?: string): Date;
@@ -0,0 +1,2 @@
export declare const add: <T extends Record<U, number>, U extends string>(object: T, ...adjustments: Partial<T>[]) => T;
export declare const subtract: <T extends Record<U, number>, U extends string>(object: T, ...adjustments: Partial<T>[]) => T;
@@ -0,0 +1,22 @@
/** Used to escape characters for inclusion in compiled string literals. */
var stringEscapes = {
'\\': '\\',
"'": "'",
'\n': 'n',
'\r': 'r',
'\u2028': 'u2028',
'\u2029': 'u2029'
};
/**
* Used by `_.template` to escape characters for inclusion in compiled string literals.
*
* @private
* @param {string} chr The matched character to escape.
* @returns {string} Returns the escaped character.
*/
function escapeStringChar(chr) {
return '\\' + stringEscapes[chr];
}
module.exports = escapeStringChar;
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/grid/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useGridState} from './useGridState';\nexport {GridCollection} from './GridCollection';\n\nexport type {GridStateOptions, GridState} from './useGridState';\n"],"names":[],"version":3,"file":"main.js.map"}
@@ -0,0 +1,33 @@
import { EventEmitter } from 'eventemitter3';
declare class Emitter extends EventEmitter<string> {
static events: {
readonly EDITOR_CHANGE: "editor-change";
readonly SCROLL_BEFORE_UPDATE: "scroll-before-update";
readonly SCROLL_BLOT_MOUNT: "scroll-blot-mount";
readonly SCROLL_BLOT_UNMOUNT: "scroll-blot-unmount";
readonly SCROLL_OPTIMIZE: "scroll-optimize";
readonly SCROLL_UPDATE: "scroll-update";
readonly SCROLL_EMBED_UPDATE: "scroll-embed-update";
readonly SELECTION_CHANGE: "selection-change";
readonly TEXT_CHANGE: "text-change";
readonly COMPOSITION_BEFORE_START: "composition-before-start";
readonly COMPOSITION_START: "composition-start";
readonly COMPOSITION_BEFORE_END: "composition-before-end";
readonly COMPOSITION_END: "composition-end";
};
static sources: {
readonly API: "api";
readonly SILENT: "silent";
readonly USER: "user";
};
protected domListeners: Record<string, {
node: Node;
handler: Function;
}[]>;
constructor();
emit(...args: unknown[]): boolean;
handleDOM(event: Event, ...args: unknown[]): void;
listenDOM(eventName: string, node: Node, handler: EventListener): void;
}
export type EmitterSource = (typeof Emitter.sources)[keyof typeof Emitter.sources];
export default Emitter;
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,kBAAkB,CAAC,OAAS,GAAG,KAAK,IAAI,CAAC,eAAe,CAAC;IAC3E,qBAAqB,CAAC,mDAA6C,CAAC;IACpE,UAAU,CAAC,IAAI,CAAC;IAChB,eAAe,CAAC,wBAAwB,CAAC;IACzC,iBAAiB,CAAC,MAAM,YAAc,GAAG,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE;YAAC,MAAM,CAAC,wBAAwB,CAAC;YAAE,KAAK,IAAM,GAAG,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE,iBAAiB,CAAC;YAAE,OAAO,IAAM,GAAG,UAAU,MAAM,CAAC,KAAK,KAAK,EAAE,mBAAmB,CAAC;QAAA,GAAG,CAAC,CAAC;IAC9O,gBAAgB,CAAC,OAAS,GAAG,KAAK,IAAI,CAAC,UAAU,CAAC;AACpD","sources":["packages/@react-aria/grid/intl/nb-NO.json"],"sourcesContent":["{\n \"deselectedItem\": \"{item} er ikke valgt.\",\n \"longPressToSelect\": \"Bruk et langt trykk for å gå inn i valgmodus.\",\n \"select\": \"Velg\",\n \"selectedAll\": \"Alle elementer er valgt.\",\n \"selectedCount\": \"{count, plural, =0 {Ingen elementer er valgt} one {# element er valgt} other {# elementer er valgt}}.\",\n \"selectedItem\": \"{item} er valgt.\"\n}\n"],"names":[],"version":3,"file":"nb-NO.module.js.map"}
@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceReferenceManager = void 0;
/**
* Manages references to core services used throughout the Container
* This class allows for proper synchronization of services during snapshot/restore operations
*/
class ServiceReferenceManager {
activationService;
bindingService;
deactivationService;
planResultCacheService;
#onResetComputedPropertiesListeners;
constructor(activationService, bindingService, deactivationService, planResultCacheService) {
this.activationService = activationService;
this.bindingService = bindingService;
this.deactivationService = deactivationService;
this.planResultCacheService = planResultCacheService;
this.#onResetComputedPropertiesListeners = [];
}
reset(activationService, bindingService, deactivationService) {
this.activationService = activationService;
this.bindingService = bindingService;
this.deactivationService = deactivationService;
this.planResultCacheService.clearCache();
for (const listener of this.#onResetComputedPropertiesListeners) {
listener();
}
}
onReset(listener) {
this.#onResetComputedPropertiesListeners.push(listener);
}
}
exports.ServiceReferenceManager = ServiceReferenceManager;
//# sourceMappingURL=ServiceReferenceManager.js.map
@@ -0,0 +1,7 @@
import Bold from './bold.js';
class Italic extends Bold {
static blotName = 'italic';
static tagName = ['EM', 'I'];
}
export default Italic;
//# sourceMappingURL=italic.js.map
@@ -0,0 +1,44 @@
{
"name": "@eggjs/yauzl",
"version": "2.11.0",
"description": "yet another unzip library for node",
"main": "index.js",
"scripts": {
"lint": "echo 'ignore lint'",
"test": "node --trace-deprecation test/test.js",
"ci": "istanbul cover --report lcovonly test/test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/node-modules/yauzl.git"
},
"keywords": [
"unzip",
"zip",
"stream",
"archive",
"file"
],
"author": "Josh Wolfe <thejoshwolfe@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/node-modules/yauzl/issues"
},
"homepage": "https://github.com/node-modules/yauzl",
"dependencies": {
"buffer-crc32": "~0.2.3",
"fd-slicer2": "^1.2.0"
},
"devDependencies": {
"bl": "~1.0.0",
"istanbul": "~0.3.4",
"pend": "~1.2.0"
},
"files": [
"index.js"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
@@ -0,0 +1,35 @@
import type { TSchema, SchemaOptions } from '../schema/index.mjs';
import type { Evaluate, Ensure } from '../helpers/index.mjs';
import type { TMappedResult } from '../mapped/index.mjs';
import { type TReadonlyOptional } from '../readonly-optional/index.mjs';
import { type TComputed } from '../computed/index.mjs';
import { type TOptional } from '../optional/index.mjs';
import { type TReadonly } from '../readonly/index.mjs';
import { type TRecursive } from '../recursive/index.mjs';
import { type TObject, type TProperties } from '../object/index.mjs';
import { type TIntersect } from '../intersect/index.mjs';
import { type TUnion } from '../union/index.mjs';
import { type TRef } from '../ref/index.mjs';
import { type TBigInt } from '../bigint/index.mjs';
import { type TBoolean } from '../boolean/index.mjs';
import { type TInteger } from '../integer/index.mjs';
import { type TLiteral } from '../literal/index.mjs';
import { type TNull } from '../null/index.mjs';
import { type TNumber } from '../number/index.mjs';
import { type TString } from '../string/index.mjs';
import { type TSymbol } from '../symbol/index.mjs';
import { type TUndefined } from '../undefined/index.mjs';
import { type TPartialFromMappedResult } from './partial-from-mapped-result.mjs';
type TFromComputed<Target extends string, Parameters extends TSchema[]> = Ensure<TComputed<'Partial', [TComputed<Target, Parameters>]>>;
type TFromRef<Ref extends string> = Ensure<TComputed<'Partial', [TRef<Ref>]>>;
type TFromProperties<Properties extends TProperties> = Evaluate<{
[K in keyof Properties]: Properties[K] extends (TReadonlyOptional<infer S>) ? TReadonlyOptional<S> : Properties[K] extends (TReadonly<infer S>) ? TReadonlyOptional<S> : Properties[K] extends (TOptional<infer S>) ? TOptional<S> : TOptional<Properties[K]>;
}>;
type TFromObject<_Type extends TObject, Properties extends TProperties, MappedProperties extends TProperties = TFromProperties<Properties>, Result extends TSchema = TObject<MappedProperties>> = Result;
type TFromRest<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer L extends TSchema, ...infer R extends TSchema[]] ? TFromRest<R, [...Result, TPartial<L>]> : Result);
export type TPartial<Type extends TSchema> = (Type extends TRecursive<infer Type extends TSchema> ? TRecursive<TPartial<Type>> : Type extends TComputed<infer Target extends string, infer Parameters extends TSchema[]> ? TFromComputed<Target, Parameters> : Type extends TRef<infer Ref extends string> ? TFromRef<Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromRest<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromRest<Types>> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<TObject, Properties> : Type extends TBigInt ? Type : Type extends TBoolean ? Type : Type extends TInteger ? Type : Type extends TLiteral ? Type : Type extends TNull ? Type : Type extends TNumber ? Type : Type extends TString ? Type : Type extends TSymbol ? Type : Type extends TUndefined ? Type : TObject<{}>);
/** `[Json]` Constructs a type where all properties are optional */
export declare function Partial<MappedResult extends TMappedResult>(type: MappedResult, options?: SchemaOptions): TPartialFromMappedResult<MappedResult>;
/** `[Json]` Constructs a type where all properties are optional */
export declare function Partial<Type extends TSchema>(type: Type, options?: SchemaOptions): TPartial<Type>;
export {};
@@ -0,0 +1,3 @@
declare const _exports: import('eslint').Rule.RuleModule;
export = _exports;
//# sourceMappingURL=jsx-key.d.ts.map
@@ -0,0 +1,12 @@
import type { Diagnostic, Program, SourceFile } from 'typescript';
export interface SemanticOrSyntacticError extends Diagnostic {
message: string;
}
/**
* By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether
* they are related to generic ECMAScript standards, or TypeScript-specific constructs.
*
* Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when
* the user opts in to throwing errors on semantic issues.
*/
export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined;
@@ -0,0 +1,29 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow rest parameters.",
category: "ES2015",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-rest-parameters.html",
},
fixable: null,
messages: {
forbidden: "ES2015 rest parameters are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
":function > RestElement"(node) {
context.report({ node, messageId: "forbidden" })
},
}
},
}
@@ -0,0 +1,6 @@
import {
ForwardIcon
} from "./chunk-M5FBVHRQ.mjs";
export {
ForwardIcon
};
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;AAMM,SAAS,0CACd,GAA6F,EAC7F,YAAe,EACf,OAA2B;IAE3B,IAAI,aAAa,CAAA,GAAA,mBAAK,EAAE;IACxB,IAAI,cAAc,CAAA,GAAA,wCAAa,EAAE;QAC/B,IAAI,SACF,QAAQ,WAAW,OAAO;IAE9B;IAEA,CAAA,GAAA,sBAAQ,EAAE;YACG;QAAX,IAAI,OAAO,gBAAA,2BAAA,eAAA,IAAK,OAAO,cAAZ,mCAAA,aAAc,IAAI;QAC7B,iBAAA,2BAAA,KAAM,gBAAgB,CAAC,SAAS;QAChC,OAAO;YACL,iBAAA,2BAAA,KAAM,mBAAmB,CAAC,SAAS;QACrC;IACF,GAAG;QAAC;QAAK;KAAY;AACvB","sources":["packages/@react-aria/utils/src/useFormReset.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RefObject} from '@react-types/shared';\nimport {useEffect, useRef} from 'react';\nimport {useEffectEvent} from './useEffectEvent';\n\nexport function useFormReset<T>(\n ref: RefObject<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null> | undefined,\n initialValue: T,\n onReset: (value: T) => void\n) {\n let resetValue = useRef(initialValue);\n let handleReset = useEffectEvent(() => {\n if (onReset) {\n onReset(resetValue.current);\n }\n });\n\n useEffect(() => {\n let form = ref?.current?.form;\n form?.addEventListener('reset', handleReset);\n return () => {\n form?.removeEventListener('reset', handleReset);\n };\n }, [ref, handleReset]);\n}\n"],"names":[],"version":3,"file":"useFormReset.main.js.map"}
@@ -0,0 +1,6 @@
import {
useMultiSelect
} from "./chunk-ZAWAHRYS.mjs";
export {
useMultiSelect
};
@@ -0,0 +1,42 @@
Browser-friendly inheritance fully compatible with standard node.js
[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
This package exports standard `inherits` from node.js `util` module in
node environment, but also provides alternative browser-friendly
implementation through [browser
field](https://gist.github.com/shtylman/4339901). Alternative
implementation is a literal copy of standard one located in standalone
module to avoid requiring of `util`. It also has a shim for old
browsers with no `Object.create` support.
While keeping you sure you are using standard `inherits`
implementation in node.js environment, it allows bundlers such as
[browserify](https://github.com/substack/node-browserify) to not
include full `util` package to your client code if all you need is
just `inherits` function. It worth, because browser shim for `util`
package is large and `inherits` is often the single function you need
from it.
It's recommended to use this package instead of
`require('util').inherits` for any code that has chances to be used
not only in node.js but in browser too.
## usage
```js
var inherits = require('inherits');
// then use exactly as the standard one
```
## note on version ~1.0
Version ~1.0 had completely different motivation and is not compatible
neither with 2.0 nor with standard node.js `inherits`.
If you are using version ~1.0 and planning to switch to ~2.0, be
careful:
* new version uses `super_` instead of `super` for referencing
superclass
* new version overwrites current prototype while old one preserves any
existing fields on it
@@ -0,0 +1,20 @@
import * as fsStat from '@nodelib/fs.stat';
import * as fs from './adapters/fs';
export interface Options {
followSymbolicLinks?: boolean;
fs?: Partial<fs.FileSystemAdapter>;
pathSegmentSeparator?: string;
stats?: boolean;
throwErrorOnBrokenSymbolicLink?: boolean;
}
export default class Settings {
private readonly _options;
readonly followSymbolicLinks: boolean;
readonly fs: fs.FileSystemAdapter;
readonly pathSegmentSeparator: string;
readonly stats: boolean;
readonly throwErrorOnBrokenSymbolicLink: boolean;
readonly fsStatSettings: fsStat.Settings;
constructor(_options?: Options);
private _getValue;
}
@@ -0,0 +1,5 @@
import { PlanServiceNode } from './PlanServiceNode';
export interface PlanTree {
readonly root: PlanServiceNode;
}
//# sourceMappingURL=PlanTree.d.ts.map
@@ -0,0 +1 @@
{"version":3,"names":["_core","require","isInType","path","parent","type","parentPath","exportKind","isStatement","isExpression","rewriteLiveReferences","programPath","metadata","wrapReference","imported","Map","exported","requeueInParent","requeue","source","data","localName","importName","imports","set","importsNamespace","local","exportMeta","get","push","names","rewriteBindingInitVisitorState","scope","traverse","rewriteBindingInitVisitor","rewriteReferencesVisitorState","seen","WeakSet","buildImportReference","identNode","meta","referenced","wrap","_wrapReference","namespace","t","identifier","name","_wrapReference2","interop","computed","stringSpecifiers","has","memberExpression","stringLiteral","rewriteReferencesVisitor","Scope","skip","ClassDeclaration","id","node","Error","exportNames","length","statement","expressionStatement","buildBindingExportAssignmentExpression","_blockHoist","insertAfter","VariableDeclaration","isVar","kind","decl","init","isIdentifier","isArrowFunctionExpression","isFunctionExpression","isClassExpression","buildUndefinedNode","Object","keys","getOuterBindingIdentifiers","localExpr","exportsObjectName","exportName","currentScope","hasOwnBinding","rename","reduce","expr","assignmentExpression","buildImportThrow","template","expression","ast","ReferencedIdentifier","add","importData","buildCodeFrameError","localBinding","getBinding","rootBinding","ref","loc","isCallExpression","callee","isOptionalCallExpression","isTaggedTemplateExpression","tag","isMemberExpression","replaceWith","sequenceExpression","numericLiteral","isJSXIdentifier","object","property","jsxMemberExpression","jsxIdentifier","UpdateExpression","arg","update","exportedNames","operator","prefix","cloneNode","generateDeclaredUidIdentifier","AssignmentExpression","exit","left","assignment","right","newExpr","logicalExpression","slice","binaryExpression","ids","programScopeIds","filter","find","items","forEach","isExpressionStatement","ForXStatement","programScope","isVariableDeclaration","didTransformExport","importConstViolationName","loopBodyScope","ensureBlock","bodyPath","newLoopId","generateUidIdentifierBasedOnNode","variableDeclaration","variableDeclarator","registerDeclaration","unshiftContainer"],"sources":["../src/rewrite-live-references.ts"],"sourcesContent":["import { template, types as t } from \"@babel/core\";\nimport type { NodePath, Visitor, Scope } from \"@babel/core\";\n\nimport type { ModuleMetadata } from \"./normalize-and-load-metadata.ts\";\n\ninterface RewriteReferencesVisitorState {\n exported: Map<any, any>;\n metadata: ModuleMetadata;\n requeueInParent: (path: NodePath) => void;\n scope: Scope;\n imported: Map<any, any>;\n buildImportReference: (\n [source, importName, localName]: readonly [string, string, string],\n identNode: t.Identifier | t.CallExpression | t.JSXIdentifier,\n ) => any;\n seen: WeakSet<object>;\n}\n\ninterface RewriteBindingInitVisitorState {\n exported: Map<any, any>;\n metadata: ModuleMetadata;\n requeueInParent: (path: NodePath) => void;\n scope: Scope;\n}\n\nfunction isInType(path: NodePath) {\n do {\n switch (path.parent.type) {\n case \"TSTypeAnnotation\":\n case \"TSTypeAliasDeclaration\":\n case \"TSTypeReference\":\n case \"TypeAnnotation\":\n case \"TypeAlias\":\n return true;\n case \"ExportSpecifier\":\n return (\n (\n path.parentPath.parent as\n | t.ExportDefaultDeclaration\n | t.ExportNamedDeclaration\n ).exportKind === \"type\"\n );\n default:\n if (path.parentPath.isStatement() || path.parentPath.isExpression()) {\n return false;\n }\n }\n } while ((path = path.parentPath));\n}\n\nexport default function rewriteLiveReferences(\n programPath: NodePath<t.Program>,\n metadata: ModuleMetadata,\n wrapReference: (ref: t.Expression, payload: unknown) => null | t.Expression,\n) {\n const imported = new Map();\n const exported = new Map();\n const requeueInParent = (path: NodePath) => {\n // Manually re-queue `exports.default =` expressions so that the ES3\n // transform has an opportunity to convert them. Ideally this would\n // happen automatically from the replaceWith above. See #4140 for\n // more info.\n programPath.requeue(path);\n };\n\n for (const [source, data] of metadata.source) {\n for (const [localName, importName] of data.imports) {\n imported.set(localName, [source, importName, null]);\n }\n for (const localName of data.importsNamespace) {\n imported.set(localName, [source, null, localName]);\n }\n }\n\n for (const [local, data] of metadata.local) {\n let exportMeta = exported.get(local);\n if (!exportMeta) {\n exportMeta = [];\n exported.set(local, exportMeta);\n }\n\n exportMeta.push(...data.names);\n }\n\n // Rewrite initialization of bindings to update exports.\n const rewriteBindingInitVisitorState: RewriteBindingLine truncated
@@ -0,0 +1,62 @@
/**
* Determines the type of the given collection, or returns false.
*
* @param {unknown} value The potential collection
* @returns {TypedArrayName | false | null} 'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array' | false | null
*/
declare function whichTypedArray(value: Int8Array): 'Int8Array';
declare function whichTypedArray(value: Uint8Array): 'Uint8Array';
declare function whichTypedArray(value: Uint8ClampedArray): 'Uint8ClampedArray';
declare function whichTypedArray(value: Int16Array): 'Int16Array';
declare function whichTypedArray(value: Uint16Array): 'Uint16Array';
declare function whichTypedArray(value: Int32Array): 'Int32Array';
declare function whichTypedArray(value: Uint32Array): 'Uint32Array';
declare function whichTypedArray(value: Float32Array): 'Float32Array';
declare function whichTypedArray(value: Float64Array): 'Float64Array';
declare function whichTypedArray(value: BigInt64Array): 'BigInt64Array';
declare function whichTypedArray(value: BigUint64Array): 'BigUint64Array';
declare function whichTypedArray(value: whichTypedArray.TypedArray): whichTypedArray.TypedArrayName;
declare function whichTypedArray(value: unknown): false | null;
declare namespace whichTypedArray {
export type TypedArrayName =
| 'Int8Array'
| 'Uint8Array'
| 'Uint8ClampedArray'
| 'Int16Array'
| 'Uint16Array'
| 'Int32Array'
| 'Uint32Array'
| 'Float32Array'
| 'Float64Array'
| 'BigInt64Array'
| 'BigUint64Array';
export type TypedArray =
| Int8Array
| Uint8Array
| Uint8ClampedArray
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Float32Array
| Float64Array
| BigInt64Array
| BigUint64Array;
export type TypedArrayConstructor =
| Int8ArrayConstructor
| Uint8ArrayConstructor
| Uint8ClampedArrayConstructor
| Int16ArrayConstructor
| Uint16ArrayConstructor
| Int32ArrayConstructor
| Uint32ArrayConstructor
| Float32ArrayConstructor
| Float64ArrayConstructor
| BigInt64ArrayConstructor
| BigUint64ArrayConstructor;
}
export = whichTypedArray;
@@ -0,0 +1 @@
{"name":"@simplewebauthn/server","version":"13.2.2","requiresBuild":false,"files":{"esm/services/defaultRootCerts/android-key.js":{"checkedAt":1794532102813,"integrity":"sha512-1OhhU9UT8MMZ6gFqCKvnmUq9tuXxTkE8tADCIHqLFp5K7ffrMoEx1R7oyBpO8A+0/cwhAYbbJ2j1EXJwJTFYCw==","mode":420,"size":9005},"script/services/defaultRootCerts/android-key.js":{"checkedAt":1794532102813,"integrity":"sha512-MRsmFdxYDINwLpiHREw81fmCAZDUPBZZDURDHe1BcwNoeZ6VZzsi5JYmqLHalZAYC62hrDIXGkexjDXvwSZefw==","mode":420,"size":9250},"esm/services/defaultRootCerts/android-safetynet.js":{"checkedAt":1794532102813,"integrity":"sha512-YMVB9CJlqXoD6yt7wv8Cu+mskmI9sjrOLZvsHpwenUD989vs9klY0RjuFu7Ginp6jOtzyqppTDPN7/FNAVqkFQ==","mode":420,"size":1543},"script/services/defaultRootCerts/android-safetynet.js":{"checkedAt":1794532102813,"integrity":"sha512-nhWe9kTZAx8ONhaUr7sNYo5P7qr5tymgxUsCXAfeK/Oo3VGF6Wdsgn+HwnB2vnbljrwZ+Q1aCVvezJvxct1Tmw==","mode":420,"size":1652},"esm/services/defaultRootCerts/apple.js":{"checkedAt":1794532102814,"integrity":"sha512-jZI93A3MAwdsSIi6qYjrI2G8nufit554d/UkYmj58MLCkx0Tq92tMpq1u3zKmJg/xrfEN6c8jxP7b5a+4c8pfQ==","mode":420,"size":1111},"script/services/defaultRootCerts/apple.js":{"checkedAt":1794532102814,"integrity":"sha512-xXsF3uwN4sfZvMHroaSXZXAQ33MXb1Y6QcVOQCFXQ8xWJNTepXIel1yrKVO7SVI4yqkeI5XP9W1j1kASuWfP7A==","mode":420,"size":1224},"esm/registration/verifications/tpm/constants.js":{"checkedAt":1794532102814,"integrity":"sha512-4A5/tJO/DvVbVrqKyImYKn4Ax8h1P5nYl/oBf6HcOw5fUTfbmFj4gnGtzgHpnNMCUJmTK+QcGoljn6luLrlojQ==","mode":420,"size":5034},"script/registration/verifications/tpm/constants.js":{"checkedAt":1794532102814,"integrity":"sha512-IvjqIC3LlyFLL2WJZjrL0RdBDLFwMyPP15ZwakDeDh67Oo10/kolBXIZlYfRHPx4LEgfKrAGl3+fAY1ExxBsQA==","mode":420,"size":5218},"esm/helpers/convertAAGUIDToString.js":{"checkedAt":1794532102814,"integrity":"sha512-hLkw/lp81/zF5N8VxXYEXjALCqqWfT7VxNxUYwpZ+Ea/8NMJiIYsnL/f0y/w3aVlN+OJ8yB+pAdtmTgifJm37g==","mode":420,"size":533},"script/helpers/convertAAGUIDToString.js":{"checkedAt":1794532102814,"integrity":"sha512-CEOcp0tTx8sEquPnsGr6kWXTz/ZLz3O7GttKuBkHJRGkZliSv2pyAjO7fg9Y+Orspm0H+YVHQRB7RRpO5N23rw==","mode":420,"size":667},"esm/helpers/convertCertBufferToPEM.js":{"checkedAt":1794532102815,"integrity":"sha512-MPJHv6o3vA+wdQ55Zyx2LzuwUF+E2tx3ZHjA91f4QcsOzZ6M8fa8ZCdIEyUZIpYP5/MY5xAA6cCXkttQBnRZcQ==","mode":420,"size":986},"script/helpers/convertCertBufferToPEM.js":{"checkedAt":1794532102815,"integrity":"sha512-dw01PnUBMzUYyYWZE9eDaU96eT2BKemnR87Z6TaAOrrQG20tJG0CjV6wawVN+0Y8Nit8RjMhZJHjJ7OYwbp2FA==","mode":420,"size":1156},"esm/helpers/convertCOSEtoPKCS.js":{"checkedAt":1794532102815,"integrity":"sha512-gullYHALtPlmjs547lxq4p31d+2YMjpNDJ5sqWUr0aKT3zLnqlyLrlDYjaUnfnsvBa+j+xP/irvtPsPM5+FBrA==","mode":420,"size":848},"script/helpers/convertCOSEtoPKCS.js":{"checkedAt":1794532102815,"integrity":"sha512-sEgh+prWLGWcySylBQ8h4QReoiMHnBPJcNixtvS4XTBOsIM6J0mkYDSYy39ByLutzVc62nfhM+Xau5uMN3gMHA==","mode":420,"size":1009},"esm/helpers/convertPEMToBytes.js":{"checkedAt":1794532102815,"integrity":"sha512-yptXFAPeHsGSxhfU4G/Ck/MupZSIVkhVuych0K+vwtsyYLFueEhyY2stIr7wiK3iAbZiLYoJd+rXf6K9cMpRUQ==","mode":420,"size":375},"script/helpers/convertPEMToBytes.js":{"checkedAt":1794532102815,"integrity":"sha512-7Naln5XXUjq8R790Bm8lnQ39masxXc7uOC5fgcrwAxBY8bLATzH07nKhbSJPEGYmxkeQGvmrI7BlYoGNlIyE9Q==","mode":420,"size":502},"esm/helpers/convertX509PublicKeyToCOSE.js":{"checkedAt":1794532102815,"integrity":"sha512-JUb+/Ij0GCkYiPafXa2XQkzmyfoZQqnNAFN4Iww7nqZMrsC9WTf/jiKKXSoa3GUdp7tS2cwNhsLOoTNVbrAw8A==","mode":420,"size":3361},"script/helpers/convertX509PublicKeyToCOSE.js":{"checkedAt":1794532102816,"integrity":"sha512-UGqu7PmgzJIK1D6UJhEb+w8/Fyau/Mio8FRbDM4XYg6Mf04gQQD2PGHB/KsgXGwhn3xKUW//eSlEaOg9n8/LSg==","mode":420,"size":3755},"esm/helpers/cose.js":{"checkedAt":1794532102816,"integrity":"sha512-SQjbufarkWxPCIn0LS/jTDOAp3Qr69XJd570UJJgg6Egi0hSRIG6QJFRmG/yAFySUOazbiGwu+8D+ta8cm2AIA==","mode":420,"size":2916},"script/helpers/cose.js":{"checkedAt":1794532102816,"integrity":"sha512-/7Mq7Yyr5bFrJPgI/6h3R6VYv7U5Hou5f4t7eDr/3q8pkkyEGvGyGGbeegeEAtMBYtRhhKs0KI7ZTzc7ZSUlUw==","mode":420,"size":3317},"esm/helpers/decodeAttestationObject.js":{"checkedAt":1794532102816,"integrity":"sha512-7bmOXMrjFALRuN27V2e+w35rr1J6Eopv6QvMTJ+Ds9TJsjrSxPHyBQ/VkWUTAcSDAwi1E9dhLvzNeaTdd7U3+A==","mode":420,"size":528},"script/helpers/decodeAttestationObject.js":{"checkedAt":1794532102816,"integrity":"sha512-fnpbl8+8gOf3TyKnYzTqQkjaKW2+D0ojx2sgrQPynZO5m8eMyigD75/DJ7612dNKGjZeFryi+OjJabnG0MtBmQ==","mode":420,"size":727},"esm/helpers/decodeAuthenticatorExtensions.js":{"checkedAt":1794532102816,"integrity":"sha512-uQ3XswMhSBY8M4j/R4ipPtfEgaDPOj9JnCSbbbBZ2kmWZ9RlFmhAnTUFkLOk1YW1SXwr3jHzCnmu1Oi6ZIAv+Q==","mode":420,"size":1006},"script/helpers/decodeAuthenticatorExtensions.js":{"checkedAt":1794532102816,"integrity":"sha512-znRkvFitmqxq6MblxDt5zNN9sgf9/SR01m4wnhXXm66e5fN4K/bn52ciJiaW29vvYTB+c2HSN/w9RVTSeEqc/A==","mode":420,"size":1162},"esm/helpers/decodeClientDataJSON.jsLine truncated
@@ -0,0 +1,66 @@
{
"name": "js-yaml",
"version": "4.1.1",
"description": "YAML 1.2 parser and serializer",
"keywords": [
"yaml",
"parser",
"serializer",
"pyyaml"
],
"author": "Vladimir Zapparov <dervus.grim@gmail.com>",
"contributors": [
"Aleksey V Zapparov <ixti@member.fsf.org> (http://www.ixti.net/)",
"Vitaly Puzrin <vitaly@rcdesign.ru> (https://github.com/puzrin)",
"Martin Grenfell <martin.grenfell@gmail.com> (http://got-ravings.blogspot.com)"
],
"license": "MIT",
"repository": "nodeca/js-yaml",
"files": [
"index.js",
"lib/",
"bin/",
"dist/"
],
"bin": {
"js-yaml": "bin/js-yaml.js"
},
"module": "./dist/js-yaml.mjs",
"exports": {
".": {
"import": "./dist/js-yaml.mjs",
"require": "./index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint .",
"test": "npm run lint && mocha",
"coverage": "npm run lint && nyc mocha && nyc report --reporter html",
"demo": "npm run lint && node support/build_demo.js",
"gh-demo": "npm run demo && gh-pages -d demo -f",
"browserify": "rollup -c support/rollup.config.js",
"prepublishOnly": "npm run gh-demo"
},
"unpkg": "dist/js-yaml.min.js",
"jsdelivr": "dist/js-yaml.min.js",
"dependencies": {
"argparse": "^2.0.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"ansi": "^0.3.1",
"benchmark": "^2.1.4",
"codemirror": "^5.13.4",
"eslint": "^7.0.0",
"fast-check": "^2.8.0",
"gh-pages": "^3.1.0",
"mocha": "^8.2.1",
"nyc": "^15.1.0",
"rollup": "^2.34.1",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-terser": "^7.0.2",
"shelljs": "^0.8.4"
}
}
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more