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,2 @@
import 'reflect-metadata';
//# sourceMappingURL=optional.int.spec.d.ts.map
@@ -0,0 +1,104 @@
'use strict'
// Tar can encode large and negative numbers using a leading byte of
// 0xff for negative, and 0x80 for positive.
const encode = (num, buf) => {
if (!Number.isSafeInteger(num)) {
// The number is so large that javascript cannot represent it with integer
// precision.
throw Error('cannot encode number outside of javascript safe integer range')
} else if (num < 0) {
encodeNegative(num, buf)
} else {
encodePositive(num, buf)
}
return buf
}
const encodePositive = (num, buf) => {
buf[0] = 0x80
for (var i = buf.length; i > 1; i--) {
buf[i - 1] = num & 0xff
num = Math.floor(num / 0x100)
}
}
const encodeNegative = (num, buf) => {
buf[0] = 0xff
var flipped = false
num = num * -1
for (var i = buf.length; i > 1; i--) {
var byte = num & 0xff
num = Math.floor(num / 0x100)
if (flipped) {
buf[i - 1] = onesComp(byte)
} else if (byte === 0) {
buf[i - 1] = 0
} else {
flipped = true
buf[i - 1] = twosComp(byte)
}
}
}
const parse = (buf) => {
const pre = buf[0]
const value = pre === 0x80 ? pos(buf.slice(1, buf.length))
: pre === 0xff ? twos(buf)
: null
if (value === null) {
throw Error('invalid base256 encoding')
}
if (!Number.isSafeInteger(value)) {
// The number is so large that javascript cannot represent it with integer
// precision.
throw Error('parsed number outside of javascript safe integer range')
}
return value
}
const twos = (buf) => {
var len = buf.length
var sum = 0
var flipped = false
for (var i = len - 1; i > -1; i--) {
var byte = buf[i]
var f
if (flipped) {
f = onesComp(byte)
} else if (byte === 0) {
f = byte
} else {
flipped = true
f = twosComp(byte)
}
if (f !== 0) {
sum -= f * Math.pow(256, len - i - 1)
}
}
return sum
}
const pos = (buf) => {
var len = buf.length
var sum = 0
for (var i = len - 1; i > -1; i--) {
var byte = buf[i]
if (byte !== 0) {
sum += byte * Math.pow(256, len - i - 1)
}
}
return sum
}
const onesComp = byte => (0xff ^ byte) & 0xff
const twosComp = byte => ((0xff ^ byte) + 1) & 0xff
module.exports = {
encode,
parse,
}
@@ -0,0 +1,2 @@
import 'reflect-metadata';
//# sourceMappingURL=inversify-InversifyJs-issue-1806-containerSnapshotShouldNotBeUpdated.spec.d.ts.map
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContainerModule = void 0;
const getContainerModuleId_1 = require("../actions/getContainerModuleId");
class ContainerModule {
#id;
#load;
constructor(load) {
this.#id = (0, getContainerModuleId_1.getContainerModuleId)();
this.#load = load;
}
get id() {
return this.#id;
}
load(options) {
return this.#load(options);
}
}
exports.ContainerModule = ContainerModule;
//# sourceMappingURL=ContainerModule.js.map
@@ -0,0 +1,2 @@
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"unsafeArraySpread" | "anyAssignment" | "anyAssignmentThis" | "unsafeArrayPattern" | "unsafeArrayPatternFromTuple" | "unsafeAssignment" | "unsafeObjectPattern", [], import("../../rules").ESLintPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;
@@ -0,0 +1,150 @@
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed 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 CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// This class models a sequence of literals and a backward reference copy.
#ifndef BROTLI_ENC_COMMAND_H_
#define BROTLI_ENC_COMMAND_H_
#include <stdint.h>
#include "./fast_log.h"
namespace brotli {
static inline void GetDistCode(int distance_code,
uint16_t* code, uint32_t* extra) {
distance_code -= 1;
if (distance_code < 16) {
*code = distance_code;
*extra = 0;
} else {
distance_code -= 12;
int numextra = Log2FloorNonZero(distance_code) - 1;
int prefix = distance_code >> numextra;
*code = 12 + 2 * numextra + prefix;
*extra = (numextra << 24) | (distance_code - (prefix << numextra));
}
}
static int insbase[] = { 0, 1, 2, 3, 4, 5, 6, 8, 10, 14, 18, 26, 34, 50, 66,
98, 130, 194, 322, 578, 1090, 2114, 6210, 22594 };
static int insextra[] = { 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5,
5, 6, 7, 8, 9, 10, 12, 14, 24 };
static int copybase[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 18, 22, 30, 38,
54, 70, 102, 134, 198, 326, 582, 1094, 2118 };
static int copyextra[] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4,
4, 5, 5, 6, 7, 8, 9, 10, 24 };
static inline int GetInsertLengthCode(int insertlen) {
if (insertlen < 6) {
return insertlen;
} else if (insertlen < 130) {
insertlen -= 2;
int nbits = Log2FloorNonZero(insertlen) - 1;
return (nbits << 1) + (insertlen >> nbits) + 2;
} else if (insertlen < 2114) {
return Log2FloorNonZero(insertlen - 66) + 10;
} else if (insertlen < 6210) {
return 21;
} else if (insertlen < 22594) {
return 22;
} else {
return 23;
}
}
static inline int GetCopyLengthCode(int copylen) {
if (copylen < 10) {
return copylen - 2;
} else if (copylen < 134) {
copylen -= 6;
int nbits = Log2FloorNonZero(copylen) - 1;
return (nbits << 1) + (copylen >> nbits) + 4;
} else if (copylen < 2118) {
return Log2FloorNonZero(copylen - 70) + 12;
} else {
return 23;
}
}
static inline int CombineLengthCodes(
int inscode, int copycode, int distancecode) {
int bits64 = (copycode & 0x7u) | ((inscode & 0x7u) << 3);
if (distancecode == 0 && inscode < 8 && copycode < 16) {
return (copycode < 8) ? bits64 : (bits64 | 64);
} else {
// "To convert an insert-and-copy length code to an insert length code and
// a copy length code, the following table can be used"
static const int cells[9] = { 2, 3, 6, 4, 5, 8, 7, 9, 10 };
return (cells[(copycode >> 3) + 3 * (inscode >> 3)] << 6) | bits64;
}
}
static inline void GetLengthCode(int insertlen, int copylen, int distancecode,
uint16_t* code, uint64_t* extra) {
int inscode = GetInsertLengthCode(insertlen);
int copycode = GetCopyLengthCode(copylen);
uint64_t insnumextra = insextra[inscode];
uint64_t numextra = insnumextra + copyextra[copycode];
uint64_t insextraval = insertlen - insbase[inscode];
uint64_t copyextraval = copylen - copybase[copycode];
*code = CombineLengthCodes(inscode, copycode, distancecode);
*extra = (numextra << 48) | (copyextraval << insnumextra) | insextraval;
}
struct Command {
Command() {}
Command(int insertlen, int copylen, int copylen_code, int distance_code)
: insert_len_(insertlen), copy_len_(copylen) {
GetDistCode(distance_code, &dist_prefix_, &dist_extra_);
GetLengthCode(insertlen, copylen_code, dist_prefix_,
&cmd_prefix_, &cmd_extra_);
}
Command(int insertlen)
: insert_len_(insertlen), copy_len_(0), dist_prefix_(16), dist_extra_(0) {
GetLengthCode(insertlen, 4, dist_prefix_, &cmd_prefix_, &cmd_extra_);
}
int DistanceCode() const {
if (dist_prefix_ < 16) {
return dist_prefix_ + 1;
}
int nbits = dist_extra_ >> 24;
int extra = dist_extra_ & 0xffffff;
int prefix = dist_prefix_ - 12 - 2 * nbits;
return (prefix << nbits) + extra + 13;
}
int DistanceContext() const {
int r = cmd_prefix_ >> 6;
int c = cmd_prefix_ & 7;
if ((r == 0 || r == 2 || r == 4 || r == 7) && (c <= 2)) {
return c;
}
return 3;
}
int insert_len_;
int copy_len_;
uint16_t cmd_prefix_;
uint16_t dist_prefix_;
uint64_t cmd_extra_;
uint32_t dist_extra_;
};
} // namespace brotli
#endif // BROTLI_ENC_COMMAND_H_
@@ -0,0 +1,7 @@
"use client";
import {
useSnippet
} from "./chunk-NYSKDETM.mjs";
export {
useSnippet
};
@@ -0,0 +1,6 @@
import { CreateType } from '../create/type.mjs';
import { Kind } from '../symbols/index.mjs';
/** `[JavaScript]` Creates a Function type */
export function Function(parameters, returns, options) {
return CreateType({ [Kind]: 'Function', type: 'Function', parameters, returns }, options);
}
@@ -0,0 +1,19 @@
var arrayFilter = require('./_arrayFilter'),
isFunction = require('./isFunction');
/**
* The base implementation of `_.functions` which creates an array of
* `object` function property names filtered from `props`.
*
* @private
* @param {Object} object The object to inspect.
* @param {Array} props The property names to filter.
* @returns {Array} Returns the function names.
*/
function baseFunctions(object, props) {
return arrayFilter(props, function(key) {
return isFunction(object[key]);
});
}
module.exports = baseFunctions;
@@ -0,0 +1,37 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"array-bracket-newline": 0,
"id-length": 0,
"max-statements-per-line": [2, { "max": 2 }],
"new-cap": [2, {
"capIsNewExceptions": [
"GetIntrinsic",
"Call",
"Get",
"IsCallable",
"LengthOfArrayLike",
"RequireObjectCoercible",
"ToBoolean",
"ToObject",
"ToString",
],
}],
"no-magic-numbers": 0,
},
"overrides": [
{
"files": "test/**",
"rules": {
"func-name-matching": 0,
"max-lines-per-function": 0,
"no-invalid-this": 1,
"strict": 1,
},
},
],
}
@@ -0,0 +1,85 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
/**
* Checks whether it is string literal
* @param {string} s string source code
* @returns {boolean} true: is string literal source code
*/
function isStringLiteralCode(s) {
return (
(s.startsWith("'") && s.endsWith("'")) ||
(s.startsWith('"') && s.endsWith('"'))
)
}
/**
* Transform template literal to string concatenation.
* @param {ASTNode} node TemplateLiteral node.(not within TaggedTemplateExpression)
* @param {SourceCode} sourceCode SourceCode
* @returns {string} After transformation
*/
function templateLiteralToStringConcat(node, sourceCode) {
const ss = []
node.quasis.forEach((q, i) => {
const value = q.value.cooked
if (value) {
ss.push(JSON.stringify(value))
}
if (i < node.expressions.length) {
const e = node.expressions[i]
const text = sourceCode.getText(e)
ss.push(text)
}
})
if (!ss.length || !isStringLiteralCode(ss[0])) {
ss.unshift('""')
}
return ss.join("+")
}
module.exports = {
meta: {
docs: {
description: "disallow template literals.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-template-literals.html",
},
fixable: "code",
messages: {
forbidden: "ES2015 template literals are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
const sourceCode = context.getSourceCode()
return {
"TaggedTemplateExpression, :not(TaggedTemplateExpression) > TemplateLiteral"(
node
) {
context.report({
node,
messageId: "forbidden",
fix:
node.type === "TemplateLiteral"
? fixer =>
fixer.replaceText(
node,
templateLiteralToStringConcat(
node,
sourceCode
)
)
: undefined,
})
},
}
},
}
@@ -0,0 +1,474 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;
var domelementtype_1 = require("domelementtype");
/**
* This object will be used as the prototype for Nodes when creating a
* DOM-Level-1-compliant structure.
*/
var Node = /** @class */ (function () {
function Node() {
/** Parent of the node */
this.parent = null;
/** Previous sibling */
this.prev = null;
/** Next sibling */
this.next = null;
/** The start index of the node. Requires `withStartIndices` on the handler to be `true. */
this.startIndex = null;
/** The end index of the node. Requires `withEndIndices` on the handler to be `true. */
this.endIndex = null;
}
Object.defineProperty(Node.prototype, "parentNode", {
// Read-write aliases for properties
/**
* Same as {@link parent}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.parent;
},
set: function (parent) {
this.parent = parent;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Node.prototype, "previousSibling", {
/**
* Same as {@link prev}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.prev;
},
set: function (prev) {
this.prev = prev;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Node.prototype, "nextSibling", {
/**
* Same as {@link next}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.next;
},
set: function (next) {
this.next = next;
},
enumerable: false,
configurable: true
});
/**
* Clone this node, and optionally its children.
*
* @param recursive Clone child nodes as well.
* @returns A clone of the node.
*/
Node.prototype.cloneNode = function (recursive) {
if (recursive === void 0) { recursive = false; }
return cloneNode(this, recursive);
};
return Node;
}());
exports.Node = Node;
/**
* A node that contains some data.
*/
var DataNode = /** @class */ (function (_super) {
__extends(DataNode, _super);
/**
* @param data The content of the data node
*/
function DataNode(data) {
var _this = _super.call(this) || this;
_this.data = data;
return _this;
}
Object.defineProperty(DataNode.prototype, "nodeValue", {
/**
* Same as {@link data}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.data;
},
set: function (data) {
this.data = data;
},
enumerable: false,
configurable: true
});
return DataNode;
}(Node));
exports.DataNode = DataNode;
/**
* Text within the document.
*/
var Text = /** @class */ (function (_super) {
__extends(Text, _super);
function Text() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = domelementtype_1.ElementType.Text;
return _this;
}
Object.defineProperty(Text.prototype, "nodeType", {
get: function () {
return 3;
},
enumerable: false,
configurable: true
});
return Text;
}(DataNode));
exports.Text = Text;
/**
* Comments within the document.
*/
var Comment = /** @class */ (function (_super) {
__extends(Comment, _super);
function Comment() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = domelementtype_1.ElementType.Comment;
return _this;
}
Object.defineProperty(Comment.prototype, "nodeType", {
get: function () {
return 8;
},
enumerable: false,
configurable: true
});
return Comment;
}(DataNode));
exports.Comment = Comment;
/**
* Processing instructions, including doc types.
*/
var ProcessingInstruction = /** @class */ (function (_super) {
__extends(ProcessingInstruction, _super);
function ProcessingInstruction(name, data) {
var _this = _super.call(this, data) || this;
_this.name = name;
_this.type = domelementtype_1.ElementType.Directive;
return _this;
}
Object.defineProperty(ProcessingInstruction.prototype, "nodeType", {
get: function () {
return 1;
},
enumerable: false,
configurable: true
});
return ProcessingInstruction;
}(DataNode));
exports.ProcessingInstruction = ProcessingInstruction;
/**
* A `Node` that can have children.
*/
var NodeWithChildren = /** @class */ (function (_super) {
__extends(NodeWithChildren, _super);
/**
* @param children Children of the node. Only certain node types can have children.
*/
function NodeWithChildren(children) {
var _this = _super.call(this) || this;
_this.children = children;
return _this;
}
Object.defineProperty(NodeWithChildren.prototype, "firstChild", {
// Aliases
/** First child of the node. */
get: function () {
var _a;
return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NodeWithChildren.prototype, "lastChild", {
/** Last child of the node. */
get: function () {
return this.children.length > 0
? this.children[this.children.length - 1]
: null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(NodeWithChildren.prototype, "childNodes", {
/**
* Same as {@link children}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.children;
},
set: function (children) {
this.children = children;
},
enumerable: false,
configurable: true
});
return NodeWithChildren;
}(Node));
exports.NodeWithChildren = NodeWithChildren;
var CDATA = /** @class */ (function (_super) {
__extends(CDATA, _super);
function CDATA() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = domelementtype_1.ElementType.CDATA;
return _this;
}
Object.defineProperty(CDATA.prototype, "nodeType", {
get: function () {
return 4;
},
enumerable: false,
configurable: true
});
return CDATA;
}(NodeWithChildren));
exports.CDATA = CDATA;
/**
* The root node of the document.
*/
var Document = /** @class */ (function (_super) {
__extends(Document, _super);
function Document() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = domelementtype_1.ElementType.Root;
return _this;
}
Object.defineProperty(Document.prototype, "nodeType", {
get: function () {
return 9;
},
enumerable: false,
configurable: true
});
return Document;
}(NodeWithChildren));
exports.Document = Document;
/**
* An element within the DOM.
*/
var Element = /** @class */ (function (_super) {
__extends(Element, _super);
/**
* @param name Name of the tag, eg. `div`, `span`.
* @param attribs Object mapping attribute names to attribute values.
* @param children Children of the node.
*/
function Element(name, attribs, children, type) {
if (children === void 0) { children = []; }
if (type === void 0) { type = name === "script"
? domelementtype_1.ElementType.Script
: name === "style"
? domelementtype_1.ElementType.Style
: domelementtype_1.ElementType.Tag; }
var _this = _super.call(this, children) || this;
_this.name = name;
_this.attribs = attribs;
_this.type = type;
return _this;
}
Object.defineProperty(Element.prototype, "nodeType", {
get: function () {
return 1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Element.prototype, "tagName", {
// DOM Level 1 aliases
/**
* Same as {@link name}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function () {
return this.name;
},
set: function (name) {
this.name = name;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Element.prototype, "attributes", {
get: function () {
var _this = this;
return Object.keys(this.attribs).map(function (name) {
var _a, _b;
return ({
name: name,
value: _this.attribs[name],
namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name],
});
});
},
enumerable: false,
configurable: true
});
return Element;
}(NodeWithChildren));
exports.Element = Element;
/**
* @param node Node to check.
* @returns `true` if the node is a `Element`, `false` otherwise.
*/
function isTag(node) {
return (0, domelementtype_1.isTag)(node);
}
exports.isTag = isTag;
/**
* @param node Node to check.
* @returns `true` if the node has the type `CDATA`, `false` otherwise.
*/
function isCDATA(node) {
return node.type === domelementtype_1.ElementType.CDATA;
}
exports.isCDATA = isCDATA;
/**
* @param node Node to check.
* @returns `true` if the node has the type `Text`, `false` otherwise.
*/
function isText(node) {
return node.type === domelementtype_1.ElementType.Text;
}
exports.isText = isText;
/**
* @param node Node to check.
* @returns `true` if the node has the type `Comment`, `false` otherwise.
*/
function isComment(node) {
return node.type === domelementtype_1.ElementType.Comment;
}
exports.isComment = isComment;
/**
* @param node Node to check.
* @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.
*/
function isDirective(node) {
return node.type === domelementtype_1.ElementType.Directive;
}
exports.isDirective = isDirective;
/**
* @param node Node to check.
* @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.
*/
function isDocument(node) {
return node.type === domelementtype_1.ElementType.Root;
}
exports.isDocument = isDocument;
/**
* @param node Node to check.
* @returns `true` if the node has children, `false` otherwise.
*/
function hasChildren(node) {
return Object.prototype.hasOwnProperty.call(node, "children");
}
exports.hasChildren = hasChildren;
/**
* Clone a node, and optionally its children.
*
* @param recursive Clone child nodes as well.
* @returns A clone of the node.
*/
function cloneNode(node, recursive) {
if (recursive === void 0) { recursive = false; }
var result;
if (isText(node)) {
result = new Text(node.data);
}
else if (isComment(node)) {
result = new Comment(node.data);
}
else if (isTag(node)) {
var children = recursive ? cloneChildren(node.children) : [];
var clone_1 = new Element(node.name, __assign({}, node.attribs), children);
children.forEach(function (child) { return (child.parent = clone_1); });
if (node.namespace != null) {
clone_1.namespace = node.namespace;
}
if (node["x-attribsNamespace"]) {
clone_1["x-attribsNamespace"] = __assign({}, node["x-attribsNamespace"]);
}
if (node["x-attribsPrefix"]) {
clone_1["x-attribsPrefix"] = __assign({}, node["x-attribsPrefix"]);
}
result = clone_1;
}
else if (isCDATA(node)) {
var children = recursive ? cloneChildren(node.children) : [];
var clone_2 = new CDATA(children);
children.forEach(function (child) { return (child.parent = clone_2); });
result = clone_2;
}
else if (isDocument(node)) {
var children = recursive ? cloneChildren(node.children) : [];
var clone_3 = new Document(children);
children.forEach(function (child) { return (child.parent = clone_3); });
if (node["x-mode"]) {
clone_3["x-mode"] = node["x-mode"];
}
result = clone_3;
}
else if (isDirective(node)) {
var instruction = new ProcessingInstruction(node.name, node.data);
if (node["x-name"] != null) {
instruction["x-name"] = node["x-name"];
instruction["x-publicId"] = node["x-publicId"];
instruction["x-systemId"] = node["x-systemId"];
}
result = instruction;
}
else {
throw new Error("Not implemented yet: ".concat(node.type));
}
result.startIndex = node.startIndex;
result.endIndex = node.endIndex;
if (node.sourceCodeLocation != null) {
result.sourceCodeLocation = node.sourceCodeLocation;
}
return result;
}
exports.cloneNode = cloneNode;
function cloneChildren(childs) {
var children = childs.map(function (child) { return cloneNode(child, true); });
for (var i = 1; i < children.length; i++) {
children[i].prev = children[i - 1];
children[i - 1].next = children[i];
}
return children;
}
@@ -0,0 +1,7 @@
"use client";
import {
table_header_default
} from "../chunk-YRZGWF2W.mjs";
export {
table_header_default as default
};
@@ -0,0 +1,55 @@
import { ValueErrorIterator } from '../errors/index';
import { TypeBoxError } from '../type/error/index';
import type { TSchema } from '../type/schema/index';
import type { Static, StaticDecode, StaticEncode } from '../type/static/index';
export type CheckFunction = (value: unknown) => boolean;
export declare class TypeCheck<T extends TSchema> {
private readonly schema;
private readonly references;
private readonly checkFunc;
private readonly code;
private readonly hasTransform;
constructor(schema: T, references: TSchema[], checkFunc: CheckFunction, code: string);
/** Returns the generated assertion code used to validate this type. */
Code(): string;
/** Returns the schema type used to validate */
Schema(): T;
/** Returns reference types used to validate */
References(): TSchema[];
/** Returns an iterator for each error in this value. */
Errors(value: unknown): ValueErrorIterator;
/** Returns true if the value matches the compiled type. */
Check(value: unknown): value is Static<T>;
/** Decodes a value or throws if error */
Decode<Static = StaticDecode<T>, Result extends Static = Static>(value: unknown): Result;
/** Encodes a value or throws if error */
Encode<Static = StaticEncode<T>, Result extends Static = Static>(value: unknown): Result;
}
export declare class TypeCompilerUnknownTypeError extends TypeBoxError {
readonly schema: TSchema;
constructor(schema: TSchema);
}
export declare class TypeCompilerTypeGuardError extends TypeBoxError {
readonly schema: TSchema;
constructor(schema: TSchema);
}
export declare namespace Policy {
function IsExactOptionalProperty(value: string, key: string, expression: string): string;
function IsObjectLike(value: string): string;
function IsRecordLike(value: string): string;
function IsNumberLike(value: string): string;
function IsVoidLike(value: string): string;
}
export type TypeCompilerLanguageOption = 'typescript' | 'javascript';
export interface TypeCompilerCodegenOptions {
language?: TypeCompilerLanguageOption;
}
/** Compiles Types for Runtime Type Checking */
export declare namespace TypeCompiler {
/** Generates the code used to assert this type and returns it as a string */
function Code<T extends TSchema>(schema: T, references: TSchema[], options?: TypeCompilerCodegenOptions): string;
/** Generates the code used to assert this type and returns it as a string */
function Code<T extends TSchema>(schema: T, options?: TypeCompilerCodegenOptions): string;
/** Compiles a TypeBox type for optimal runtime type checking. Types must be valid TypeBox types of TSchema */
function Compile<T extends TSchema>(schema: T, references?: TSchema[]): TypeCheck<T>;
}
@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheBindingInvalidationKind = void 0;
var CacheBindingInvalidationKind;
(function (CacheBindingInvalidationKind) {
CacheBindingInvalidationKind["bindingAdded"] = "bindingAdded";
CacheBindingInvalidationKind["bindingRemoved"] = "bindingRemoved";
})(CacheBindingInvalidationKind || (exports.CacheBindingInvalidationKind = CacheBindingInvalidationKind = {}));
//# sourceMappingURL=CacheBindingInvalidationKind.js.map
@@ -0,0 +1 @@
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../src/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAC9B,KAAK,EAAE,OAAO,GACb,gBAAgB,EAAE,EAAE,CAYtB;AAuBD,wBAAgB,cAAc,CAAC,CAAC,SAAS,gBAAgB,GAAG,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,CAE9F"}
@@ -0,0 +1 @@
{"version":3,"file":"Resolved.js","sourceRoot":"","sources":["../../../../src/resolution/models/Resolved.ts"],"names":[],"mappings":""}
@@ -0,0 +1,115 @@
# is-unc-path [![NPM version](https://img.shields.io/npm/v/is-unc-path.svg?style=flat)](https://www.npmjs.com/package/is-unc-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-unc-path.svg?style=flat)](https://npmjs.org/package/is-unc-path) [![NPM total downloads](https://img.shields.io/npm/dt/is-unc-path.svg?style=flat)](https://npmjs.org/package/is-unc-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-unc-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-unc-path)
> Returns true if a filepath is a windows UNC file path.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save is-unc-path
```
## Usage
```js
var isUncPath = require('is-unc-path');
```
**true**
Returns true for windows UNC paths:
```js
isUncPath('\\/foo/bar');
isUncPath('\\\\foo/bar');
isUncPath('\\\\foo\\admin$');
isUncPath('\\\\foo\\admin$\\system32');
isUncPath('\\\\foo\\temp');
isUncPath('\\\\/foo/bar');
isUncPath('\\\\\\/foo/bar');
```
**false**
Returns false for non-UNC paths:
```js
isUncPath('/foo/bar');
isUncPath('/');
isUncPath('/foo');
isUncPath('/foo/');
isUncPath('c:');
isUncPath('c:.');
isUncPath('c:./');
isUncPath('c:./file');
isUncPath('c:/');
isUncPath('c:/file');
```
**Customization**
Use `.source` to use the regex as a component of another regex:
```js
var myRegex = new RegExp(isUncPath.source + 'foo');
```
**[Rules for UNC paths](http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/sharing_tools_and_toolboxes/pathnames_explained_colon_absolute_relative_unc_and_url.htm)**
* The computer name is always preceded by a double backward-slash (`\\`).
* UNC paths cannot contain a drive letter (such as `D:`)
## Release history
### v1.0.0 - 2017-07-12
**Changes**
* now throws a `TypeError` if value is not a string
## About
### Related projects
* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute "Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.")
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative "Returns `true` if the path appears to be relative.")
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
### Building docs
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```
### Running tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install && npm test
```
### Author
**Jon Schlinkert**
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
### License
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 13, 2017._
@@ -0,0 +1 @@
{"version":3,"file":"isObject.d.ts","sourceRoot":"","sources":["../../src/utils/isObject.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAC5B,CAAC;yBAEZ,CAAC,SAAS,MAAM,EAAE,OAAO,OAAO,KAAG,KAAK,IAAI,CAAC;AAA7D,wBAIuB"}
@@ -0,0 +1,17 @@
// src/colors/yellow.ts
var yellow = {
50: "#fefce8",
100: "#fdedd3",
200: "#fbdba7",
300: "#f9c97c",
400: "#f7b750",
500: "#f5a524",
600: "#c4841d",
700: "#936316",
800: "#62420e",
900: "#312107"
};
export {
yellow
};
@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
function isNil(value) {
return value == null;
}
exports.isNil = isNil;
@@ -0,0 +1,112 @@
import { toHash } from '../../helpers/toHash.js';
import { verifySignature } from '../../helpers/verifySignature.js';
import { getCertificateInfo } from '../../helpers/getCertificateInfo.js';
import { validateCertificatePath } from '../../helpers/validateCertificatePath.js';
import { convertCertBufferToPEM } from '../../helpers/convertCertBufferToPEM.js';
import { isoBase64URL, isoUint8Array } from '../../helpers/iso/index.js';
import { MetadataService } from '../../services/metadataService.js';
import { verifyAttestationWithMetadata } from '../../metadata/verifyAttestationWithMetadata.js';
/**
* Verify an attestation response with fmt 'android-safetynet'
*/
export async function verifyAttestationAndroidSafetyNet(options) {
const { attStmt, clientDataHash, authData, aaguid, rootCertificates, verifyTimestampMS = true, credentialPublicKey, attestationSafetyNetEnforceCTSCheck, } = options;
const alg = attStmt.get('alg');
const response = attStmt.get('response');
const ver = attStmt.get('ver');
if (!ver) {
throw new Error('No ver value in attestation (SafetyNet)');
}
if (!response) {
throw new Error('No response was included in attStmt by authenticator (SafetyNet)');
}
// Prepare to verify a JWT
const jwt = isoUint8Array.toUTF8String(response);
const jwtParts = jwt.split('.');
const HEADER = JSON.parse(isoBase64URL.toUTF8String(jwtParts[0]));
const PAYLOAD = JSON.parse(isoBase64URL.toUTF8String(jwtParts[1]));
const SIGNATURE = jwtParts[2];
/**
* START Verify PAYLOAD
*/
const { nonce, ctsProfileMatch, timestampMs } = PAYLOAD;
if (verifyTimestampMS) {
// Make sure timestamp is in the past
let now = Date.now();
if (timestampMs > Date.now()) {
throw new Error(`Payload timestamp "${timestampMs}" was later than "${now}" (SafetyNet)`);
}
// Consider a SafetyNet attestation valid within a minute of it being performed
const timestampPlusDelay = timestampMs + 60 * 1000;
now = Date.now();
if (timestampPlusDelay < now) {
throw new Error(`Payload timestamp "${timestampPlusDelay}" has expired (SafetyNet)`);
}
}
const nonceBase = isoUint8Array.concat([authData, clientDataHash]);
const nonceBuffer = await toHash(nonceBase);
const expectedNonce = isoBase64URL.fromBuffer(nonceBuffer, 'base64');
if (nonce !== expectedNonce) {
throw new Error('Could not verify payload nonce (SafetyNet)');
}
if (attestationSafetyNetEnforceCTSCheck && !ctsProfileMatch) {
throw new Error('Could not verify device integrity (SafetyNet)');
}
/**
* END Verify PAYLOAD
*/
/**
* START Verify Header
*/
// `HEADER.x5c[0]` is definitely a base64 string
const leafCertBuffer = isoBase64URL.toBuffer(HEADER.x5c[0], 'base64');
const leafCertInfo = getCertificateInfo(leafCertBuffer);
const { subject } = leafCertInfo;
// Ensure the certificate was issued to this hostname
// See https://developer.android.com/training/safetynet/attestation#verify-attestation-response
if (subject.CN !== 'attest.android.com') {
throw new Error('Certificate common name was not "attest.android.com" (SafetyNet)');
}
const statement = await MetadataService.getStatement(aaguid);
if (statement) {
try {
await verifyAttestationWithMetadata({
statement,
credentialPublicKey,
x5c: HEADER.x5c,
attestationStatementAlg: alg,
});
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (SafetyNet)`);
}
}
else {
try {
// Try validating the certificate path using the root certificates set via SettingsService
await validateCertificatePath(HEADER.x5c.map(convertCertBufferToPEM), rootCertificates);
}
catch (err) {
const _err = err;
throw new Error(`${_err.message} (SafetyNet)`);
}
}
/**
* END Verify Header
*/
/**
* START Verify Signature
*/
const signatureBaseBuffer = isoUint8Array.fromUTF8String(`${jwtParts[0]}.${jwtParts[1]}`);
const signatureBuffer = isoBase64URL.toBuffer(SIGNATURE);
const verified = await verifySignature({
signature: signatureBuffer,
data: signatureBaseBuffer,
x509Certificate: leafCertBuffer,
});
/**
* END Verify Signature
*/
return verified;
}
@@ -0,0 +1,51 @@
import { ToggleStateOptions } from "@react-types/checkbox";
import { Key } from "@react-types/shared";
export { ToggleStateOptions };
export interface ToggleState {
/** Whether the toggle is selected. */
readonly isSelected: boolean;
/** Updates selection state. */
setSelected(isSelected: boolean): void;
/** Toggle the selection state. */
toggle(): void;
}
/**
* Provides state management for toggle components like checkboxes and switches.
*/
export function useToggleState(props?: ToggleStateOptions): ToggleState;
export interface ToggleGroupProps {
/** Whether single or multiple selection is enabled. */
selectionMode?: 'single' | 'multiple';
/** Whether the collection allows empty selection. */
disallowEmptySelection?: boolean;
/** The currently selected keys in the collection (controlled). */
selectedKeys?: Iterable<Key>;
/** The initial selected keys in the collection (uncontrolled). */
defaultSelectedKeys?: Iterable<Key>;
/** Handler that is called when the selection changes. */
onSelectionChange?: (keys: Set<Key>) => void;
/** Whether all items are disabled. */
isDisabled?: boolean;
}
export interface ToggleGroupState {
/** Whether single or multiple selection is enabled. */
readonly selectionMode: 'single' | 'multiple';
/** Whether all items are disabled. */
readonly isDisabled: boolean;
/** A set of keys for items that are selected. */
readonly selectedKeys: Set<Key>;
/** Toggles the selected state for an item by its key. */
toggleKey(key: Key): void;
/** Sets whether the given key is selected. */
setSelected(key: Key, isSelected: boolean): void;
/** Replaces the set of selected keys. */
setSelectedKeys(keys: Set<Key>): void;
}
/**
* Manages state for a group of toggles.
* It supports both single and multiple selected items.
*/
export function useToggleGroupState(props: ToggleGroupProps): ToggleGroupState;
export type { ToggleProps } from '@react-types/checkbox';
//# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,16 @@
"use strict";
module.exports = function walk(nodes, cb, bubble) {
var i, max, node, result;
for(i = 0, max = nodes.length; i < max; i += 1){
node = nodes[i];
if (!bubble) {
result = cb(node, i, nodes);
}
if (result !== false && node.type === "function" && Array.isArray(node.nodes)) {
walk(node.nodes, cb, bubble);
}
if (bubble) {
cb(node, i, nodes);
}
}
};
@@ -0,0 +1,8 @@
var $b91590b2dc47de39$exports = {};
$b91590b2dc47de39$exports = {
"breadcrumbs": `\u{639}\u{646}\u{627}\u{635}\u{631} \u{627}\u{644}\u{648}\u{627}\u{62C}\u{647}\u{629}`
};
export {$b91590b2dc47de39$exports as default};
//# sourceMappingURL=ar-AE.module.js.map
@@ -0,0 +1,21 @@
MIT License
Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin>, Arun Srinivasan <rulfzid@gmail.com>, and others
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,10 @@
import type { TSESLint } from '@typescript-eslint/utils';
import type { TypeOrValueSpecifier } from '../util';
type Options = [
{
allow?: TypeOrValueSpecifier[];
}
];
type MessageIds = 'addAwait' | 'noArraySpreadInObject' | 'noClassDeclarationSpreadInObject' | 'noClassInstanceSpreadInObject' | 'noFunctionSpreadInObject' | 'noIterableSpreadInObject' | 'noMapSpreadInObject' | 'noPromiseSpreadInObject' | 'noStringSpread' | 'replaceMapSpreadInObject';
declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
export default _default;
@@ -0,0 +1,20 @@
var isArray = require('./');
var test = require('tape');
test('is array', function(t){
t.ok(isArray([]));
t.notOk(isArray({}));
t.notOk(isArray(null));
t.notOk(isArray(false));
var obj = {};
obj[0] = true;
t.notOk(isArray(obj));
var arr = [];
arr.foo = 'bar';
t.ok(isArray(arr));
t.end();
});
@@ -0,0 +1,17 @@
// src/colors/green.ts
var green = {
50: "#e8faf0",
100: "#d1f4e0",
200: "#a2e9c1",
300: "#74dfa2",
400: "#45d483",
500: "#17c964",
600: "#12a150",
700: "#0e793c",
800: "#095028",
900: "#052814"
};
export {
green
};
@@ -0,0 +1 @@
{"version":3,"file":"GetAllOptions.d.ts","sourceRoot":"","sources":["../../../../src/resolution/models/GetAllOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,10 @@
'use strict';
module.exports = function isArrayish(obj) {
if (!obj) {
return false;
}
return obj instanceof Array || Array.isArray(obj) ||
(obj.length >= 0 && obj.splice instanceof Function);
};
@@ -0,0 +1,17 @@
'use strict'
const fs = require('graceful-fs')
const u = require('universalify').fromCallback
function remove (path, callback) {
fs.rm(path, { recursive: true, force: true }, callback)
}
function removeSync (path) {
fs.rmSync(path, { recursive: true, force: true })
}
module.exports = {
remove: u(remove),
removeSync
}
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"F A B","8":"K wC","129":"D","257":"E"},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 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C"},D:{"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 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z FD GD HD ID NC uC JD OC"},G:{"1":"E ZC KD vC LD 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:{"1":"hD"},I:{"1":"TC J I iD jD kD lD vC mD nD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"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:{"1":"0D"},S:{"1":"1D 2D"}},B:2,C:"CSS min/max-width/height",D:true};
@@ -0,0 +1,130 @@
import {GridKeyboardDelegate as $d1c300d9c497e402$export$de9feff04fda126e} from "./GridKeyboardDelegate.mjs";
import {gridMap as $1af922eb41e03c8f$export$e6235c0d09b995d0} from "./utils.mjs";
import {useGridSelectionAnnouncement as $92599c3fd427b763$export$137e594ef3218a10} from "./useGridSelectionAnnouncement.mjs";
import {useHighlightSelectionDescription as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2} from "./useHighlightSelectionDescription.mjs";
import {useId as $eV0xE$useId, filterDOMProps as $eV0xE$filterDOMProps, mergeProps as $eV0xE$mergeProps} from "@react-aria/utils";
import {useMemo as $eV0xE$useMemo, useCallback as $eV0xE$useCallback} from "react";
import {useCollator as $eV0xE$useCollator, useLocale as $eV0xE$useLocale} from "@react-aria/i18n";
import {useHasTabbableChild as $eV0xE$useHasTabbableChild} from "@react-aria/focus";
import {useSelectableCollection as $eV0xE$useSelectableCollection} from "@react-aria/selection";
/*
* Copyright 2020 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 $83c6e2eafa584c67$export$f6b86a04e5d66d90(props, state, ref) {
let { isVirtualized: isVirtualized, disallowTypeAhead: disallowTypeAhead, keyboardDelegate: keyboardDelegate, focusMode: focusMode, scrollRef: scrollRef, getRowText: getRowText, onRowAction: onRowAction, onCellAction: onCellAction, escapeKeyBehavior: escapeKeyBehavior = 'clearSelection', shouldSelectOnPressUp: shouldSelectOnPressUp } = props;
let { selectionManager: manager } = state;
if (!props['aria-label'] && !props['aria-labelledby']) console.warn('An aria-label or aria-labelledby prop is required for accessibility.');
// By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
// When virtualized, the layout object will be passed in as a prop and override this.
let collator = (0, $eV0xE$useCollator)({
usage: 'search',
sensitivity: 'base'
});
let { direction: direction } = (0, $eV0xE$useLocale)();
let disabledBehavior = state.selectionManager.disabledBehavior;
let delegate = (0, $eV0xE$useMemo)(()=>keyboardDelegate || new (0, $d1c300d9c497e402$export$de9feff04fda126e)({
collection: state.collection,
disabledKeys: state.disabledKeys,
disabledBehavior: disabledBehavior,
ref: ref,
direction: direction,
collator: collator,
focusMode: focusMode
}), [
keyboardDelegate,
state.collection,
state.disabledKeys,
disabledBehavior,
ref,
direction,
collator,
focusMode
]);
let { collectionProps: collectionProps } = (0, $eV0xE$useSelectableCollection)({
ref: ref,
selectionManager: manager,
keyboardDelegate: delegate,
isVirtualized: isVirtualized,
scrollRef: scrollRef,
disallowTypeAhead: disallowTypeAhead,
escapeKeyBehavior: escapeKeyBehavior
});
let id = (0, $eV0xE$useId)(props.id);
(0, $1af922eb41e03c8f$export$e6235c0d09b995d0).set(state, {
keyboardDelegate: delegate,
actions: {
onRowAction: onRowAction,
onCellAction: onCellAction
},
shouldSelectOnPressUp: shouldSelectOnPressUp
});
let descriptionProps = (0, $5b9b5b5723db6ae1$export$be42ebdab07ae4c2)({
selectionManager: manager,
hasItemActions: !!(onRowAction || onCellAction)
});
let domProps = (0, $eV0xE$filterDOMProps)(props, {
labelable: true
});
let onFocus = (0, $eV0xE$useCallback)((e)=>{
if (manager.isFocused) {
// If a focus event bubbled through a portal, reset focus state.
if (!e.currentTarget.contains(e.target)) manager.setFocused(false);
return;
}
// Focus events can bubble through portals. Ignore these events.
if (!e.currentTarget.contains(e.target)) return;
manager.setFocused(true);
}, [
manager
]);
// Continue to track collection focused state even if keyboard navigation is disabled
let navDisabledHandlers = (0, $eV0xE$useMemo)(()=>({
onBlur: collectionProps.onBlur,
onFocus: onFocus
}), [
onFocus,
collectionProps.onBlur
]);
let hasTabbableChild = (0, $eV0xE$useHasTabbableChild)(ref, {
isDisabled: state.collection.size !== 0
});
let gridProps = (0, $eV0xE$mergeProps)(domProps, {
role: 'grid',
id: id,
'aria-multiselectable': manager.selectionMode === 'multiple' ? 'true' : undefined
}, state.isKeyboardNavigationDisabled ? navDisabledHandlers : collectionProps, // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
state.collection.size === 0 && {
tabIndex: hasTabbableChild ? -1 : 0
} || undefined, descriptionProps);
if (isVirtualized) {
gridProps['aria-rowcount'] = state.collection.size;
gridProps['aria-colcount'] = state.collection.columnCount;
}
(0, $92599c3fd427b763$export$137e594ef3218a10)({
getRowText: getRowText
}, state);
return {
gridProps: gridProps
};
}
export {$83c6e2eafa584c67$export$f6b86a04e5d66d90 as useGrid};
//# sourceMappingURL=useGrid.module.js.map
@@ -0,0 +1,53 @@
var baseClone = require('./_baseClone'),
baseIteratee = require('./_baseIteratee');
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1;
/**
* Creates a function that invokes `func` with the arguments of the created
* function. If `func` is a property name, the created function returns the
* property value for a given element. If `func` is an array or object, the
* created function returns `true` for elements that contain the equivalent
* source properties, otherwise it returns `false`.
*
* @static
* @since 4.0.0
* @memberOf _
* @category Util
* @param {*} [func=_.identity] The value to convert to a callback.
* @returns {Function} Returns the callback.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': true },
* { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
* _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
* // => [{ 'user': 'barney', 'age': 36, 'active': true }]
*
* // The `_.matchesProperty` iteratee shorthand.
* _.filter(users, _.iteratee(['user', 'fred']));
* // => [{ 'user': 'fred', 'age': 40 }]
*
* // The `_.property` iteratee shorthand.
* _.map(users, _.iteratee('user'));
* // => ['barney', 'fred']
*
* // Create custom iteratee shorthands.
* _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
* return !_.isRegExp(func) ? iteratee(func) : function(string) {
* return func.test(string);
* };
* });
*
* _.filter(['abc', 'def'], /ef/);
* // => ['def']
*/
function iteratee(func) {
return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
}
module.exports = iteratee;
@@ -0,0 +1,73 @@
"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/bold/shopping-cart.tsx
var shopping_cart_exports = {};
__export(shopping_cart_exports, {
ShoppingCartBoldIcon: () => ShoppingCartBoldIcon
});
module.exports = __toCommonJS(shopping_cart_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var ShoppingCartBoldIcon = (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: "M16.25 22.5C17.2165 22.5 18 21.7165 18 20.75C18 19.7835 17.2165 19 16.25 19C15.2835 19 14.5 19.7835 14.5 20.75C14.5 21.7165 15.2835 22.5 16.25 22.5Z",
fill: "currentColor"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M8.25 22.5C9.2165 22.5 10 21.7165 10 20.75C10 19.7835 9.2165 19 8.25 19C7.2835 19 6.5 19.7835 6.5 20.75C6.5 21.7165 7.2835 22.5 8.25 22.5Z",
fill: "currentColor"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M4.84 3.94L4.64 6.39C4.6 6.86 4.97 7.25 5.44 7.25H20.75C21.17 7.25 21.52 6.93 21.55 6.51C21.68 4.74 20.33 3.3 18.56 3.3H6.27C6.17 2.86 5.97 2.44 5.66 2.09C5.16 1.56 4.46 1.25 3.74 1.25H2C1.59 1.25 1.25 1.59 1.25 2C1.25 2.41 1.59 2.75 2 2.75H3.74C4.05 2.75 4.34 2.88 4.55 3.1C4.76 3.33 4.86 3.63 4.84 3.94Z",
fill: "currentColor"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M20.5101 8.75H5.17005C4.75005 8.75 4.41005 9.07 4.37005 9.48L4.01005 13.83C3.87005 15.54 5.21005 17 6.92005 17H18.0401C19.5401 17 20.8601 15.77 20.9701 14.27L21.3001 9.6C21.3401 9.14 20.9801 8.75 20.5101 8.75Z",
fill: "currentColor"
}
)
]
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ShoppingCartBoldIcon
});
@@ -0,0 +1,7 @@
var _typeof = require("./typeof.js")["default"];
var toPrimitive = require("./toPrimitive.js");
function toPropertyKey(t) {
var i = toPrimitive(t, "string");
return "symbol" == _typeof(i) ? i : i + "";
}
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`
};
//# sourceMappingURL=fr-FR.main.js.map
@@ -0,0 +1,86 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cloneDeep = require("lodash.clonedeep");
const isEqual = require("lodash.isequal");
var AttributeMap;
(function (AttributeMap) {
function compose(a = {}, b = {}, keepNull = false) {
if (typeof a !== 'object') {
a = {};
}
if (typeof b !== 'object') {
b = {};
}
let attributes = cloneDeep(b);
if (!keepNull) {
attributes = Object.keys(attributes).reduce((copy, key) => {
if (attributes[key] != null) {
copy[key] = attributes[key];
}
return copy;
}, {});
}
for (const key in a) {
if (a[key] !== undefined && b[key] === undefined) {
attributes[key] = a[key];
}
}
return Object.keys(attributes).length > 0 ? attributes : undefined;
}
AttributeMap.compose = compose;
function diff(a = {}, b = {}) {
if (typeof a !== 'object') {
a = {};
}
if (typeof b !== 'object') {
b = {};
}
const attributes = Object.keys(a)
.concat(Object.keys(b))
.reduce((attrs, key) => {
if (!isEqual(a[key], b[key])) {
attrs[key] = b[key] === undefined ? null : b[key];
}
return attrs;
}, {});
return Object.keys(attributes).length > 0 ? attributes : undefined;
}
AttributeMap.diff = diff;
function invert(attr = {}, base = {}) {
attr = attr || {};
const baseInverted = Object.keys(base).reduce((memo, key) => {
if (base[key] !== attr[key] && attr[key] !== undefined) {
memo[key] = base[key];
}
return memo;
}, {});
return Object.keys(attr).reduce((memo, key) => {
if (attr[key] !== base[key] && base[key] === undefined) {
memo[key] = null;
}
return memo;
}, baseInverted);
}
AttributeMap.invert = invert;
function transform(a, b, priority = false) {
if (typeof a !== 'object') {
return b;
}
if (typeof b !== 'object') {
return undefined;
}
if (!priority) {
return b; // b simply overwrites us without priority
}
const attributes = Object.keys(b).reduce((attrs, key) => {
if (a[key] === undefined) {
attrs[key] = b[key]; // null is a valid value
}
return attrs;
}, {});
return Object.keys(attributes).length > 0 ? attributes : undefined;
}
AttributeMap.transform = transform;
})(AttributeMap || (AttributeMap = {}));
exports.default = AttributeMap;
//# sourceMappingURL=AttributeMap.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"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","2":"C L M G N O P","130":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C"},D:{"1":"6 7 8 9 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","16":"J ZB K D E F A B C L M","130":"0 1 2 3 4 5 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 3C 4C 5C 6C aC NC","16":"2C ZC","130":"C L M G 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":"6 7 8 9 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","2":"F B C FD GD HD ID NC uC JD OC","130":"0 1 2 3 4 5 j k l m n o p q r s t u v w x y z"},G:{"1":"E KD vC LD MD ND OD PD QD RD SD TD UD","16":"ZC","130":"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:{"2":"hD"},I:{"1":"TC J iD jD kD lD vC mD nD","130":"I"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"130":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"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:{"1":"0D"},S:{"2":"1D 2D"}},B:7,C:"CSS overflow: overlay",D:true};
@@ -0,0 +1,20 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBound = require('call-bound');
var $TypeError = require('es-errors/type');
var IsArray = require('./IsArray');
var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply');
// https://262.ecma-international.org/6.0/#sec-call
module.exports = function Call(F, V) {
var argumentsList = arguments.length > 2 ? arguments[2] : [];
if (!IsArray(argumentsList)) {
throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List');
}
return $apply(F, V, argumentsList);
};
@@ -0,0 +1,46 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
const { getSourceCode } = require("eslint-compat-utils")
module.exports = {
meta: {
docs: {
description: "disallow the `Object.values` method.",
category: "ES2017",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-object-values.html",
},
fixable: null,
messages: {
forbidden: "ES2017 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"(program) {
const sourceCode = getSourceCode(context)
const tracker = new ReferenceTracker(
sourceCode.getScope(program),
)
for (const { node, path } of tracker.iterateGlobalReferences({
Object: {
values: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1,114 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
const tsutils = __importStar(require("ts-api-utils"));
const util_1 = require("../util");
exports.default = (0, util_1.createRule)({
name: 'prefer-reduce-type-parameter',
meta: {
type: 'problem',
docs: {
description: 'Enforce using type parameter when calling `Array#reduce` instead of using a type assertion',
recommended: 'strict',
requiresTypeChecking: true,
},
fixable: 'code',
messages: {
preferTypeParameter: 'Unnecessary assertion: Array#reduce accepts a type parameter for the default value.',
},
schema: [],
},
defaultOptions: [],
create(context) {
const services = (0, util_1.getParserServices)(context);
const checker = services.program.getTypeChecker();
function isArrayType(type) {
return tsutils
.unionConstituents(type)
.every(unionPart => tsutils
.intersectionConstituents(unionPart)
.every(t => checker.isArrayType(t) || checker.isTupleType(t)));
}
return {
'CallExpression > MemberExpression.callee'(callee) {
if (!(0, util_1.isStaticMemberAccessOfValue)(callee, context, 'reduce')) {
return;
}
const [, secondArg] = callee.parent.arguments;
if (callee.parent.arguments.length < 2) {
return;
}
if ((0, util_1.isTypeAssertion)(secondArg)) {
const initializerType = services.getTypeAtLocation(secondArg.expression);
const assertedType = services.getTypeAtLocation(secondArg.typeAnnotation);
const isAssertionNecessary = !checker.isTypeAssignableTo(initializerType, assertedType);
// don't report this if the resulting fix will be a type error
if (isAssertionNecessary) {
return;
}
}
else {
return;
}
// Get the symbol of the `reduce` method.
const calleeObjType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object);
// Check the owner type of the `reduce` method.
if (isArrayType(calleeObjType)) {
context.report({
node: secondArg,
messageId: 'preferTypeParameter',
fix: fixer => {
const fixes = [
fixer.removeRange([
secondArg.range[0],
secondArg.expression.range[0],
]),
fixer.removeRange([
secondArg.expression.range[1],
secondArg.range[1],
]),
];
if (!callee.parent.typeArguments) {
fixes.push(fixer.insertTextAfter(callee, `<${context.sourceCode.getText(secondArg.typeAnnotation)}>`));
}
return fixes;
},
});
return;
}
},
};
},
});
@@ -0,0 +1,155 @@
"use strict";
const Level = require("./Level.js");
const normalizeLevel = require("./normalizeLevel.js");
class Logger {
/**
* Create a logger instance (创建日志实例)
* @param name Logger name (日志名称)
* @param options Logging options (日志选项)
*/
constructor(name, { level, appenders = [] } = {}) {
this.name = name;
this.appenders = /* @__PURE__ */ new Map();
this.context = {};
this._level = Level.INFO;
if (level == null) {
this.level = Level.INFO;
}
if (appenders) {
appenders.forEach((appender) => {
appender.setup(this);
this.appenders.set(appender.name, appender);
});
}
}
/**
* Log level name (日志级别名称)
*/
get levelName() {
return Level[this._level];
}
/**
* Log level (日志级别)
*/
get level() {
return this._level;
}
/**
* Set log level (设置日志级别)
* @param level Log level (日志级别)
*/
set level(level) {
const normalizedLevel = normalizeLevel(level);
if (normalizedLevel !== void 0) {
this._level = normalizedLevel;
}
}
/**
* Add context (添加上下文)
* @param key Context key (上下文键)
* @param value Context value (上下文值)
*/
addContext(key, value) {
this.context[key] = value;
}
/**
* Remove context (移除上下文)
* @param key Context key (上下文键)
*/
removeContext(key) {
delete this.context[key];
}
/**
* Clear context (清除上下文)
*/
clearContext() {
this.context = {};
}
/**
* Dispose all appenders (关闭所有appenders)
*/
dispose() {
const promises = [];
this.appenders.forEach((appender) => {
promises.push(appender.close());
});
return Promise.allSettled(promises);
}
/**
* Log a message of level TRACE (记录TRACE级别的日志)
* @param args Message arguments (消息参数)
*/
trace(...args) {
this.log(Level.TRACE, args);
}
/**
* Log a message of level DEBUG (记录DEBUG级别的日志)
* @param args Message arguments (消息参数)
*/
debug(...args) {
this.log(Level.DEBUG, args);
}
/**
* Log a message of level INFO (记录INFO级别的日志)
* @param args Message arguments (消息参数)
*/
info(...args) {
this.log(Level.INFO, args);
}
/**
* Log a message of level WARN (记录WARN级别的日志)
* @param args Message arguments (消息参数)
*/
warn(...args) {
this.log(Level.WARN, args);
}
/**
* Log a message of level ERROR (记录ERROR级别的日志)
* @param args Message arguments (消息参数)
*/
error(...args) {
this.log(Level.ERROR, args);
}
/**
* Log a message of level FATAL (记录FATAL级别的日志)
* @param args Message arguments (消息参数)
*/
fatal(...args) {
this.log(Level.FATAL, args);
}
/**
* Create a log event (创建日志事件)
* @param level Log level (日志级别)
* @param message Message (消息)
* @returns Log event (日志事件)
*/
createEvent(level, message) {
return {
level,
levelName: Level[level],
message,
timestamp: /* @__PURE__ */ new Date(),
loggerName: this.name,
context: this.context
};
}
/**
* Log a message (记录日志)
* @param level Log level (日志级别)
* @param message Content (内容)
*/
log(level, message) {
if (level > this._level) {
return;
}
const event = this.createEvent(level, message);
this.appenders.forEach((appender) => {
try {
appender.write(event);
} catch (err) {
console.error("Appender error:", err);
}
});
}
}
module.exports = Logger;
@@ -0,0 +1,19 @@
/**
* Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
*/
export declare const fromCodePoint: (...codePoints: number[]) => string;
/**
* Replace the given code point with a replacement character if it is a
* surrogate or is outside the valid range. Otherwise return the code
* point unchanged.
*/
export declare function replaceCodePoint(codePoint: number): number;
/**
* Replace the code point if relevant, then convert it to a string.
*
* @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
* @param codePoint The code point to decode.
* @returns The decoded code point.
*/
export declare function decodeCodePoint(codePoint: number): string;
//# sourceMappingURL=decode-codepoint.d.ts.map
@@ -0,0 +1,194 @@
/**
* @fileoverview Utility functions for React and Flow version configuration
* @author Yannick Croissant
*/
'use strict';
const fs = require('fs');
const path = require('path');
const resolve = require('resolve');
const semver = require('semver');
const error = require('./error');
const ULTIMATE_LATEST_SEMVER = '999.999.999';
let warnedForMissingVersion = false;
function resetWarningFlag() {
warnedForMissingVersion = false;
}
let cachedDetectedReactVersion;
function resetDetectedVersion() {
cachedDetectedReactVersion = undefined;
}
function resolveBasedir(contextOrFilename) {
if (contextOrFilename) {
const filename = typeof contextOrFilename === 'string' ? contextOrFilename : contextOrFilename.getFilename();
const dirname = path.dirname(filename);
try {
if (fs.statSync(filename).isFile()) {
// dirname must be dir here
return dirname;
}
} catch (err) {
// https://github.com/eslint/eslint/issues/11989
if (err.code === 'ENOTDIR') {
// virtual filename could be recursive
return resolveBasedir(dirname);
}
}
}
return process.cwd();
}
function convertConfVerToSemver(confVer) {
const fullSemverString = /^[0-9]+\.[0-9]+$/.test(confVer) ? `${confVer}.0` : confVer;
return semver.coerce(fullSemverString.split('.').map((part) => Number(part)).join('.'));
}
let defaultVersion = ULTIMATE_LATEST_SEMVER;
function resetDefaultVersion() {
defaultVersion = ULTIMATE_LATEST_SEMVER;
}
function readDefaultReactVersionFromContext(context) {
// .eslintrc shared settings (https://eslint.org/docs/user-guide/configuring#adding-shared-settings)
if (context.settings && context.settings.react && context.settings.react.defaultVersion) {
let settingsDefaultVersion = context.settings.react.defaultVersion;
if (typeof settingsDefaultVersion !== 'string') {
error(`Warning: default React version specified in eslint-pluigin-react-settings must be a string; got "${typeof settingsDefaultVersion}"`);
}
settingsDefaultVersion = String(settingsDefaultVersion);
const result = convertConfVerToSemver(settingsDefaultVersion);
if (result) {
defaultVersion = result.version;
} else {
error(`Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “${settingsDefaultVersion}”. Falling back to latest version as default.`);
}
} else {
defaultVersion = ULTIMATE_LATEST_SEMVER;
}
}
// TODO, semver-major: remove context fallback
function detectReactVersion(context) {
if (cachedDetectedReactVersion) {
return cachedDetectedReactVersion;
}
const basedir = resolveBasedir(context);
try {
const reactPath = resolve.sync('react', { basedir });
const react = require(reactPath); // eslint-disable-line global-require, import/no-dynamic-require
cachedDetectedReactVersion = react.version;
return cachedDetectedReactVersion;
} catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
if (!warnedForMissingVersion) {
let sentence2 = 'Assuming latest React version for linting.';
if (defaultVersion !== ULTIMATE_LATEST_SEMVER) {
sentence2 = `Assuming default React version for linting: "${defaultVersion}".`;
}
error(`Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. ${sentence2}`);
warnedForMissingVersion = true;
}
cachedDetectedReactVersion = defaultVersion;
return cachedDetectedReactVersion;
}
throw e;
}
}
function getReactVersionFromContext(context) {
readDefaultReactVersionFromContext(context);
let confVer = defaultVersion;
// .eslintrc shared settings (https://eslint.org/docs/user-guide/configuring#adding-shared-settings)
if (context.settings && context.settings.react && context.settings.react.version) {
let settingsVersion = context.settings.react.version;
if (settingsVersion === 'detect') {
settingsVersion = detectReactVersion(context);
}
if (typeof settingsVersion !== 'string') {
error(`Warning: React version specified in eslint-plugin-react-settings must be a string; got “${typeof settingsVersion}”`);
}
confVer = String(settingsVersion);
} else if (!warnedForMissingVersion) {
error('Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .');
warnedForMissingVersion = true;
}
const result = convertConfVerToSemver(confVer);
if (!result) {
error(`Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “${confVer}”`);
}
return result ? result.version : defaultVersion;
}
// TODO, semver-major: remove context fallback
function detectFlowVersion(context) {
const basedir = resolveBasedir(context);
try {
const flowPackageJsonPath = resolve.sync('flow-bin/package.json', { basedir });
const flowPackageJson = require(flowPackageJsonPath); // eslint-disable-line global-require, import/no-dynamic-require
return flowPackageJson.version;
} catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
error('Warning: Flow version was set to "detect" in eslint-plugin-react settings, '
+ 'but the "flow-bin" package is not installed. Assuming latest Flow version for linting.');
return ULTIMATE_LATEST_SEMVER;
}
throw e;
}
}
function getFlowVersionFromContext(context) {
let confVer = defaultVersion;
// .eslintrc shared settings (https://eslint.org/docs/user-guide/configuring#adding-shared-settings)
if (context.settings.react && context.settings.react.flowVersion) {
let flowVersion = context.settings.react.flowVersion;
if (flowVersion === 'detect') {
flowVersion = detectFlowVersion(context);
}
if (typeof flowVersion !== 'string') {
error('Warning: Flow version specified in eslint-plugin-react-settings must be a string; '
+ `got “${typeof flowVersion}”`);
}
confVer = String(flowVersion);
} else {
throw 'Could not retrieve flowVersion from settings'; // eslint-disable-line no-throw-literal
}
const result = convertConfVerToSemver(confVer);
if (!result) {
error(`Warning: Flow version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “${confVer}”`);
}
return result ? result.version : defaultVersion;
}
function test(semverRange, confVer) {
return semver.satisfies(confVer, semverRange);
}
function testReactVersion(context, semverRange) {
return test(semverRange, getReactVersionFromContext(context));
}
function testFlowVersion(context, semverRange) {
return test(semverRange, getFlowVersionFromContext(context));
}
module.exports = {
testReactVersion,
testFlowVersion,
resetWarningFlag,
resetDetectedVersion,
resetDefaultVersion,
};
@@ -0,0 +1,90 @@
'use strict';
var Alias = require('../nodes/Alias.js');
var identity = require('../nodes/identity.js');
var Scalar = require('../nodes/Scalar.js');
const defaultTagPrefix = 'tag:yaml.org,2002:';
function findTagObject(value, tagName, tags) {
if (tagName) {
const match = tags.filter(t => t.tag === tagName);
const tagObj = match.find(t => !t.format) ?? match[0];
if (!tagObj)
throw new Error(`Tag ${tagName} not found`);
return tagObj;
}
return tags.find(t => t.identify?.(value) && !t.format);
}
function createNode(value, tagName, ctx) {
if (identity.isDocument(value))
value = value.contents;
if (identity.isNode(value))
return value;
if (identity.isPair(value)) {
const map = ctx.schema[identity.MAP].createNode?.(ctx.schema, null, ctx);
map.items.push(value);
return map;
}
if (value instanceof String ||
value instanceof Number ||
value instanceof Boolean ||
(typeof BigInt !== 'undefined' && value instanceof BigInt) // not supported everywhere
) {
// https://tc39.es/ecma262/#sec-serializejsonproperty
value = value.valueOf();
}
const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
// Detect duplicate references to the same object & use Alias nodes for all
// after first. The `ref` wrapper allows for circular references to resolve.
let ref = undefined;
if (aliasDuplicateObjects && value && typeof value === 'object') {
ref = sourceObjects.get(value);
if (ref) {
ref.anchor ?? (ref.anchor = onAnchor(value));
return new Alias.Alias(ref.anchor);
}
else {
ref = { anchor: null, node: null };
sourceObjects.set(value, ref);
}
}
if (tagName?.startsWith('!!'))
tagName = defaultTagPrefix + tagName.slice(2);
let tagObj = findTagObject(value, tagName, schema.tags);
if (!tagObj) {
if (value && typeof value.toJSON === 'function') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
value = value.toJSON();
}
if (!value || typeof value !== 'object') {
const node = new Scalar.Scalar(value);
if (ref)
ref.node = node;
return node;
}
tagObj =
value instanceof Map
? schema[identity.MAP]
: Symbol.iterator in Object(value)
? schema[identity.SEQ]
: schema[identity.MAP];
}
if (onTagObj) {
onTagObj(tagObj);
delete ctx.onTagObj;
}
const node = tagObj?.createNode
? tagObj.createNode(ctx.schema, value, ctx)
: typeof tagObj?.nodeClass?.from === 'function'
? tagObj.nodeClass.from(ctx.schema, value, ctx)
: new Scalar.Scalar(value);
if (tagName)
node.tag = tagName;
else if (!tagObj.default)
node.tag = tagObj.tag;
if (ref)
ref.node = node;
return node;
}
exports.createNode = createNode;
@@ -0,0 +1,107 @@
import { seedTokens, rewireSource, rewireSpecs } from '../../src/util.js';
test('source to spec', () => {
const block = {
description: '',
tags: [
{
tag: 'my-tag',
name: '',
type: '',
optional: false,
description: '',
problems: [],
source: [
{
number: 2,
source: '...changed in spec...',
tokens: seedTokens({ name: '...changed in spec...' }),
},
],
},
],
source: [
{
number: 1,
source: 'source line 1',
tokens: seedTokens(),
},
{
number: 2,
source: 'source line 2',
tokens: seedTokens({ name: 'source' }),
},
],
problems: [],
};
// source is unsynced
expect(block.source[1] === block.tags[0].source[0]).toBe(false);
rewireSource(block);
// source is referenced
expect(block.source[1] === block.tags[0].source[0]).toBe(true);
// non-tag line stays unchanged
expect(block.source[0].source).toEqual('source line 1');
// tag-holding source line stays unchanged
expect(block.source[1].source).toEqual('source line 2');
expect(block.source[1].tokens.name).toEqual('source');
// tag source inherits block source
expect(block.tags[0].source[0].source).toEqual('source line 2');
expect(block.tags[0].source[0].tokens.name).toEqual('source');
});
test('spec to source', () => {
const block = {
description: '',
tags: [
{
tag: 'my-tag',
name: '',
type: '',
optional: false,
description: '',
problems: [],
source: [
{
number: 2,
source: '...changed in spec...',
tokens: seedTokens({ name: '...changed in spec...' }),
},
],
},
],
source: [
{
number: 1,
source: 'source line 1',
tokens: seedTokens(),
},
{
number: 2,
source: 'source line 2',
tokens: seedTokens({ name: 'source' }),
},
],
problems: [],
};
// source is unsynced
expect(block.source[1] === block.tags[0].source[0]).toBe(false);
rewireSpecs(block);
// source is referenced
expect(block.source[1] === block.tags[0].source[0]).toBe(true);
// non-tag line stays unchanged
expect(block.source[0].source).toEqual('source line 1');
// tag-holding source line inherits spec source
expect(block.source[1].source).toEqual('...changed in spec...');
expect(block.source[1].tokens.name).toEqual('...changed in spec...');
// tag source inherits block source
expect(block.tags[0].source[0].source).toEqual('...changed in spec...');
expect(block.tags[0].source[0].tokens.name).toEqual('...changed in spec...');
});
@@ -0,0 +1 @@
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AASD,SAAS,gCAAU,IAAW;IAC5B,IAAI,WAAqB,OAAO,IAAI,CAAC,EAAE,KAAK,WACxC,KAAK,KAAK,KACV,IAAI,CAAA,GAAA,yCAAgB;IAExB,IAAI;IACJ,IAAI,OAAO,IAAI,CAAC,EAAE,KAAK,UACrB,MAAM,KAAK,KAAK;SACX;QACL,IAAI,OAAO,SAAS,OAAO;QAC3B,MAAM,IAAI,CAAC,KAAK,MAAM,GAAG,EAAE;IAC7B;IAEA,IAAI,OAAO,KAAK,KAAK;IACrB,IAAI,QAAQ,KAAK,KAAK;IACtB,IAAI,MAAM,KAAK,KAAK;IAEpB,OAAO;QAAC;QAAU;QAAK;QAAM;QAAO;KAAI;AAC1C;IAIE,oFAAoF;AACpF,2FAA2F;AAC3F,0EAA0E;AAC1E,aAAa;AACb;AALK,MAAM;IAoCX,iCAAiC,GACjC,OAAqB;QACnB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAa,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG;aAEhF,OAAO,IAAI,0CAAa,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG;IAE1E;IAEA,sEAAsE,GACtE,IAAI,QAAsB,EAAgB;QACxC,OAAO,CAAA,GAAA,yCAAE,EAAE,IAAI,EAAE;IACnB;IAEA,6EAA6E,GAC7E,SAAS,QAAsB,EAAgB;QAC7C,OAAO,CAAA,GAAA,yCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,iIAAiI,GACjI,IAAI,MAAkB,EAAgB;QACpC,OAAO,CAAA,GAAA,yCAAE,EAAE,IAAI,EAAE;IACnB;IAEA;;;GAGC,GACD,MAAM,KAAgB,EAAE,MAAc,EAAE,OAAsB,EAAgB;QAC5E,OAAO,CAAA,GAAA,yCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;IACxC;IAEA,gHAAgH,GAChH,OAAO,QAAgB,EAAQ;QAC7B,OAAO,CAAA,GAAA,yCAAK,EAAE,IAAI,EAAE;IACtB;IAEA,uDAAuD,GACvD,WAAmB;QACjB,OAAO,CAAA,GAAA,yCAAW,EAAE,IAAI;IAC1B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAkB,EAAU;QAClC,OAAO,CAAA,GAAA,yCAAU,EAAE,IAAI,EAAE;IAC3B;IAxDA,YAAY,GAAG,IAAW,CAAE;QApB5B,oBAAA;;mBAAA,KAAA;;QAqBE,IAAI,CAAC,UAAU,KAAK,MAAM,OAAO,IAAI,GAAG,gCAAU;QAClD,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,GAAG,GAAG;QAEX,CAAA,GAAA,yCAAQ,EAAE,IAAI;IAChB;AAgDF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IA0BX,iCAAiC,GACjC,OAAa;QACX,OAAO,IAAI,yCAAK,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IACvE;IAEA,8DAA8D,GAC9D,IAAI,QAAsB,EAAQ;QAChC,OAAO,CAAA,GAAA,yCAAM,EAAE,IAAI,EAAE;IACvB;IAEA,qEAAqE,GACrE,SAAS,QAAsB,EAAQ;QACrC,OAAO,CAAA,GAAA,yCAAW,EAAE,IAAI,EAAE;IAC5B;IAEA,yHAAyH,GACzH,IAAI,MAAkB,EAAQ;QAC5B,OAAO,CAAA,GAAA,yCAAM,EAAE,IAAI,EAAE;IACvB;IAEA;;;GAGC,GACD,MAAM,KAAgB,EAAE,MAAc,EAAE,OAA0B,EAAQ;QACxE,OAAO,CAAA,GAAA,yCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;IACxC;IAEA,uDAAuD,GACvD,WAAmB;QACjB,OAAO,CAAA,GAAA,yCAAW,EAAE,IAAI;IAC1B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAU,EAAU;QAC1B,OAAO,CAAA,GAAA,yCAAU,EAAE,IAAI,EAAE;IAC3B;IAjDA,YACE,OAAe,CAAC,EAChB,SAAiB,CAAC,EAClB,SAAiB,CAAC,EAClB,cAAsB,CAAC,CACvB;QAfF,oBAAA;;mBAAA,KAAA;;QAgBE,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,MAAM,GAAG;QACd,IAAI,CAAC,MAAM,GAAG;QACd,IAAI,CAAC,WAAW,GAAG;QACnB,CAAA,GAAA,yCAAY,EAAE,IAAI;IACpB;AAuCF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IA8CX,iCAAiC,GACjC,OAAyB;QACvB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAiB,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;aAE3I,OAAO,IAAI,0CAAiB,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IAErI;IAEA,0EAA0E,GAC1E,IAAI,QAA0B,EAAoB;QAChD,OAAO,CAAA,GAAA,yCAAE,EAAE,IAAI,EAAE;IACnB;IAEA,iFAAiF,GACjF,SAAS,QAA0B,EAAoB;QACrD,OAAO,CAAA,GAAA,yCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,qIAAqI,GACrI,IAAI,MAA+B,EAAoB;QACrD,OAAO,CAAA,GAAA,yCAAE,EAAE,CAAA,GAAA,yCAAM,EAAE,IAAI,EAAE,SAAS;IACpC;IAEA;;;GAGC,GACD,MAAM,KAA4B,EAAE,MAAc,EAAE,OAA0B,EAAoB;QAChG,OAAQ;YACN,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;gBACH,OAAO,CAAA,GAAA,yCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;YACxC;gBACE,OAAO,CAAA,GAAA,yCAAQ,EAAE,IAAI,EAAE,OAAO,QAAQ;QAC1C;IACF;IAEA,iFAAiF,GACjF,OAAO,QAAgB,EAAE,cAA+B,EAAQ;QAC9D,OAAO,CAAA,GAAA,yCAAK,EAAE,IAAI,EAAE,UAAU;IAChC;IAEA,uDAAuD,GACvD,WAAmB;QACjB,OAAO,CAAA,GAAA,yCAAe,EAAE,IAAI;IAC9B;IAEA,yJAAyJ,GACzJ,QAAQ,CAAkD,EAAU;QAClE,IAAI,MAAM,CAAA,GAAA,yCAAU,EAAE,IAAI,EAAE;QAC5B,IAAI,QAAQ,GACV,OAAO,CAAA,GAAA,yCAAU,EAAE,IAAI,EAAE,CAAA,GAAA,yCAAiB,EAAE;QAG9C,OAAO;IACT;IAzEA,YAAY,GAAG,IAAW,CAAE;QA5B5B,oBAAA;;mBAAA,KAAA;;QA6BE,IAAI,CAAC,UAAU,KAAK,MAAM,OAAO,IAAI,GAAG,gCAAU;QAClD,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG;QACZ,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,GAAG,GAAG;QACX,IAAI,CAAC,IAAI,GAAG,KAAK,KAAK,MAAM;QAC5B,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,MAAM;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,MAAM;QAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,KAAK,MAAM;QAEnC,CAAA,GAAA,yCAAQ,EAAE,IAAI;IAChB;AA6DF;IAIE,oFAAoF;AACpF,aAAa;AACb;AAHK,MAAM;IAsDX,iCAAiC,GACjC,OAAsB;QACpB,IAAI,IAAI,CAAC,GAAG,EACV,OAAO,IAAI,0CAAc,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;aAEpK,OAAO,IAAI,0CAAc,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW;IAE9J;IAEA,uEAAuE,GACvE,IAAI,QAA0B,EAAiB;QAC7C,OAAO,CAAA,GAAA,yCAAO,EAAE,IAAI,EAAE;IACxB;IAEA,8EAA8E,GAC9E,SAAS,QAA0B,EAAiB;QAClD,OAAO,CAAA,GAAA,yCAAY,EAAE,IAAI,EAAE;IAC7Line truncated
@@ -0,0 +1,284 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global global, define, System, Reflect, Promise */
var __extends;
var __assign;
var __rest;
var __decorate;
var __param;
var __metadata;
var __awaiter;
var __generator;
var __exportStar;
var __values;
var __read;
var __spread;
var __spreadArrays;
var __await;
var __asyncGenerator;
var __asyncDelegator;
var __asyncValues;
var __makeTemplateObject;
var __importStar;
var __importDefault;
var __classPrivateFieldGet;
var __classPrivateFieldSet;
var __createBinding;
(function (factory) {
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
if (typeof define === "function" && define.amd) {
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
}
else if (typeof module === "object" && typeof module.exports === "object") {
factory(createExporter(root, createExporter(module.exports)));
}
else {
factory(createExporter(root));
}
function createExporter(exports, previous) {
if (exports !== root) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
}
else {
exports.__esModule = true;
}
}
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
}
})
(function (exporter) {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
__extends = function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
__rest = function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
__decorate = function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
__param = function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
__metadata = function (metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
};
__awaiter = function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
__generator = function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
__createBinding = function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
};
__exportStar = function (m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
};
__values = function (o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
__read = function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
__spread = function () {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
__spreadArrays = function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
__await = function (v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
};
__asyncGenerator = function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};
__asyncDelegator = function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
};
__asyncValues = function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
__makeTemplateObject = function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
__importStar = function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
__importDefault = function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
__classPrivateFieldGet = function (receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
};
__classPrivateFieldSet = function (receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
};
exporter("__extends", __extends);
exporter("__assign", __assign);
exporter("__rest", __rest);
exporter("__decorate", __decorate);
exporter("__param", __param);
exporter("__metadata", __metadata);
exporter("__awaiter", __awaiter);
exporter("__generator", __generator);
exporter("__exportStar", __exportStar);
exporter("__createBinding", __createBinding);
exporter("__values", __values);
exporter("__read", __read);
exporter("__spread", __spread);
exporter("__spreadArrays", __spreadArrays);
exporter("__await", __await);
exporter("__asyncGenerator", __asyncGenerator);
exporter("__asyncDelegator", __asyncDelegator);
exporter("__asyncValues", __asyncValues);
exporter("__makeTemplateObject", __makeTemplateObject);
exporter("__importStar", __importStar);
exporter("__importDefault", __importDefault);
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
});
@@ -0,0 +1,16 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.es2021 = void 0;
const es2020_1 = require("./es2020");
const es2021_intl_1 = require("./es2021.intl");
const es2021_promise_1 = require("./es2021.promise");
const es2021_string_1 = require("./es2021.string");
const es2021_weakref_1 = require("./es2021.weakref");
exports.es2021 = {
libs: [es2020_1.es2020, es2021_promise_1.es2021_promise, es2021_string_1.es2021_string, es2021_weakref_1.es2021_weakref, es2021_intl_1.es2021_intl],
variables: [],
};
@@ -0,0 +1 @@
!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e,t=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads").Worker}catch(e){}exports.default=e?function(r,n,o,a,s){var u=!1,i=new e(r+t,{eval:!0}).on("error",(function(e){return s(e,null)})).on("message",(function(e){return s(null,e)})).on("exit",(function(e){e&&!u&&s(Error("exited with code "+e),null)}));return i.postMessage(o,a),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,t,r,n,o){setImmediate((function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)}));var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,e=Int32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var s=new e(i[30]);for(o=1;o<30;++o)for(var a=i[o];a<i[o+1];++a)s[a]=a-i[o]<<5|o;return{b:i,r:s}},u=a(i,2),h=u.b,f=u.r;h[28]=258,f[258]=28;for(var l=a(o,0),c=l.b,p=l.r,v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>2|(13107&g)<<2))>>4|(3855&g)<<4))>>8|(255&g)<<8)>>1}var y=function(t,n,e){for(var i=t.length,o=0,s=new r(n);o<i;++o)t[o]&&++s[t[o]-1];var a,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+s[o-1]<<1;if(e){a=new r(1<<n);var h=15-n;for(o=0;o<i;++o)if(t[o])for(var f=o<<4|t[o],l=n-t[o],c=u[t[o]-1]++<<l,p=c|(1<<l)-1;c<=p;++c)a[v[c]>>h]=f}else for(a=new r(i),o=0;o<i;++o)t[o]&&(a[o]=v[u[t[o]-1]++]>>15-t[o]);return a},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var b=new n(32);for(d=0;d<32;++d)b[d]=5;var w=y(m,9,0),x=y(m,9,1),z=y(b,5,0),k=y(b,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},A=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t){return(t+7)/8|0},D=function(t,r,e){return(null==r||r<0)&&(r=0),(null==e||e>t.length)&&(e=t.length),new n(t.subarray(r,e))};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var C=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,n,r){var e=Error(n||C[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,I),!r)throw e;return e},U=function(t,r,e,a){var u=t.length,f=a?a.length:0;if(!u||r.f&&!r.l)return e||new n(0);var l=!e,p=l||2!=r.i,v=r.i;l&&(e=new n(3*u));var d=function(t){var r=e.length;if(t>r){var i=new n(Math.max(2*r,t));i.set(e),e=i}},g=r.f||0,m=r.p||0,b=r.b||0,w=r.l,z=r.d,C=r.m,U=r.n,F=8*u;do{if(!w){g=S(t,m,1);var E=S(t,m+1,3);if(m+=3,!E){var Z=t[(J=T(m)+4)-4]|t[J-3]<<8,q=J+Z;if(q>u){v&&I(0);break}p&&d(b+Z),e.set(t.subarray(J,q),b),r.b=b+=Z,r.p=m=8*q,r.f=g;continue}if(1==E)w=x,z=k,C=9,U=5;else if(2==E){var O=S(t,m,31)+257,G=S(t,m+10,15)+4,L=O+S(t,m+5,31)+1;m+=14;for(var H=new n(L),j=new n(19),N=0;N<G;++N)j[s[N]]=S(t,m+3*N,7);m+=3*G;var P=M(j),B=(1<<P)-1,Y=y(j,P,1);for(N=0;N<L;){var J,K=Y[S(t,m,B)];if(m+=15&K,(J=K>>4)<16)H[N++]=J;else{var Q=0,R=0;for(16==J?(R=3+S(t,m,3),m+=2,Q=H[N-1]):17==J?(R=3+S(t,m,7),m+=3):18==J&&(R=11+S(t,m,127),m+=7);R--;)H[N++]=Q}}var V=H.subarray(0,O),W=H.subarray(O);C=M(V),U=M(W),w=y(V,C,1),z=y(W,U,1)}else I(1);if(m>F){v&&I(0);break}}p&&d(b+131072);for(var X=(1<<C)-1,$=(1<<U)-1,_=m;;_=m){var tt=(Q=w[A(t,m)&X])>>4;if((m+=15&Q)>F){v&&I(0);break}if(Q||I(2),tt<256)e[b++]=tt;else{if(256==tt){_=m,w=null;break}var nt=tt-254;tt>264&&(nt=S(t,m,(1<<(it=i[N=tt-257]))-1)+h[N],m+=it);var rt=z[A(t,m)&$],et=rLine truncated
@@ -0,0 +1,4 @@
function _identity(t) {
return t;
}
module.exports = _identity, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,22 @@
import { TypeBoxError } from '../../type/error/index.mjs';
import { TSchema } from '../../type/schema/index.mjs';
import { StaticDecode } from '../../type/static/index.mjs';
export declare class ParseError extends TypeBoxError {
constructor(message: string);
}
export type TParseOperation = 'Assert' | 'Cast' | 'Clean' | 'Clone' | 'Convert' | 'Decode' | 'Default' | 'Encode' | ({} & string);
export type TParseFunction = (type: TSchema, references: TSchema[], value: unknown) => unknown;
export declare namespace ParseRegistry {
function Delete(key: string): void;
function Set(key: string, callback: TParseFunction): void;
function Get(key: string): TParseFunction | undefined;
}
export declare const ParseDefault: readonly ["Clone", "Clean", "Default", "Convert", "Assert", "Decode"];
/** Parses a value using the default parse pipeline. Will throws an `AssertError` if invalid. */
export declare function Parse<Type extends TSchema, Output = StaticDecode<Type>, Result extends Output = Output>(schema: Type, references: TSchema[], value: unknown): Result;
/** Parses a value using the default parse pipeline. Will throws an `AssertError` if invalid. */
export declare function Parse<Type extends TSchema, Output = StaticDecode<Type>, Result extends Output = Output>(schema: Type, value: unknown): Result;
/** Parses a value using the specified operations. */
export declare function Parse<Type extends TSchema>(operations: TParseOperation[], schema: Type, references: TSchema[], value: unknown): unknown;
/** Parses a value using the specified operations. */
export declare function Parse<Type extends TSchema>(operations: TParseOperation[], schema: Type, value: unknown): unknown;
@@ -0,0 +1,13 @@
'use strict';
const plugin = require('..');
const legacyConfig = plugin.configs.all;
module.exports = {
plugins: { react: plugin },
rules: legacyConfig.rules,
languageOptions: { parserOptions: legacyConfig.parserOptions },
};
Object.defineProperty(module.exports, 'languageOptions', { enumerable: false });
@@ -0,0 +1 @@
{"version":3,"file":"GetMultipleServicePlanOptions.d.ts","sourceRoot":"","sources":["../../../../src/planning/models/GetMultipleServicePlanOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB"}
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_async_generator.cjs",
"module": "../../esm/_async_generator.js"
}
@@ -0,0 +1,15 @@
import {
button,
buttonGroup
} from "../chunk-FIMGFFVI.mjs";
import "../chunk-CWYZ2GEH.mjs";
import "../chunk-GQT3YUX3.mjs";
import "../chunk-46U6G7UJ.mjs";
import "../chunk-DGTYPKBN.mjs";
import "../chunk-UWE6H66T.mjs";
import "../chunk-GIXI35A3.mjs";
import "../chunk-GH5E4FQB.mjs";
export {
button,
buttonGroup
};
@@ -0,0 +1,122 @@
'use strict';
var $TypeError = require('es-errors/type');
var Get = require('es-abstract/2024/Get');
var GetIterator = require('es-abstract/2024/GetIterator');
var GetIteratorFlattenable = require('../aos/GetIteratorFlattenable');
var GetOptionsObject = require('../aos/GetOptionsObject');
var IfAbruptCloseIterators = require('../aos/IfAbruptCloseIterators');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var IteratorZip = require('../aos/IteratorZip');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var Type = require('es-abstract/2024/Type');
module.exports = function zip(iterables) {
if (this instanceof zip) {
throw new $TypeError('`Iterator.zip` is not a constructor');
}
if (Type(iterables) !== 'Object') {
throw new $TypeError('`iterables` must be an Object'); // step 1
}
var options = GetOptionsObject(arguments.length > 1 ? arguments[1] : undefined); // step 2
var mode = Get(options, 'mode'); // step 3
if (typeof mode === 'undefined') {
mode = 'shortest'; // step 4
}
if (mode !== 'shortest' && mode !== 'longest' && mode !== 'strict') {
throw new $TypeError('`mode` must be one of "shortest", "longest", or "strict"'); // step 5
}
var paddingOption; // step 6
if (mode === 'longest') {
paddingOption = Get(options, 'padding'); // step 7
if (typeof paddingOption !== 'undefined' && Type(paddingOption) !== 'Object') {
throw new $TypeError('`padding` option must be an Object'); // step 7.1
}
}
var iters = []; // step 8
var padding = []; // step 9
var inputIter = GetIterator(iterables, 'SYNC'); // step 10
var next; // = 'NOT-STARTED'; // step 11
while (!inputIter['[[Done]]']) { // step 12
try {
next = IteratorStepValue(inputIter); // step 12.a
} catch (e) {
IfAbruptCloseIterators(ThrowCompletion(e), iters); // step 12.b
}
if (!inputIter['[[Done]]']) { // step 12.c
var iter;
try {
iter = GetIteratorFlattenable(next, 'REJECT-STRINGS'); // step 12.c.i
} catch (e) {
IfAbruptCloseIterators(ThrowCompletion(e), [].concat(inputIter, iters)); // step 12.c.ii
}
iters[iters.length] = iter; // step 12.c.iii
}
}
var iterCount = iters.length; // step 13
if (mode === 'longest') { // step 14
if (typeof paddingOption === 'undefined') { // step 14.a
for (var i = 0; i < iterCount; i++) { // step 14.a.i
padding[padding.length] = void undefined; // step 14.a.i.1
}
} else { // step 14.b
var paddingIter;
try {
paddingIter = GetIterator(paddingOption, 'SYNC'); // step 14.b.i
} catch (e) {
IfAbruptCloseIterators(ThrowCompletion(e), iters); // step 14.b.ii
}
var usingIterator = true; // step 14.b.iii
for (var j = 0; j < iterCount; j++) { // step 14.b.iv
if (usingIterator) { // step 14.b.iv.1
try {
next = IteratorStepValue(paddingIter); // step 14.b.iv.1.a
} catch (e) {
IfAbruptCloseIterators(ThrowCompletion(e), iters); // step 14.b.iv.1.b
}
if (paddingIter['[[Done]]']) { // step 14.b.iv.1.c
usingIterator = false; // step 14.b.iv.1.c.i
} else { // step 14.b.iv.1.d
padding[padding.length] = next; // step 14.b.iv.1.d.i
}
}
if (!usingIterator) {
padding[padding.length] = void undefined; // step 14.b.iv.2
}
}
if (usingIterator) { // step 14.b.v
try {
IteratorClose(paddingIter, NormalCompletion(undefined)); // step 14.b.v.1
} catch (e) {
IfAbruptCloseIterators(ThrowCompletion(e), iters); // step 14.b.v.2
}
}
}
}
// eslint-disable-next-line no-sequences
var finishResults = (0, function (results) { // step 15
return results; // step 15.1
});
return IteratorZip(iters, mode, padding, finishResults); // step 16
};
@@ -0,0 +1,718 @@
export default `flf2a$ 7 7 16 -1 2
Relief2 by Merlin Greywolf merlin@brahms.udel.edu
August 1994
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\##
\\\\\\\\\\#
/// \\#
/// \\#
/// \\#
\\\\\\\\\\#
/// \\#
\\\\\\\\\\##
\\\\\\\\\\\\\\\\#
// \\// \\#
// \\// \\#
\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\\\#
\\\\// \\// \\\\\\#
////////// \\#
\\\\// \\// \\\\\\#
////////// \\#
\\\\// \\// \\\\\\#
\\\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\\\\\///// \\#
\\\\/// \\\\\\\\#
////// \\\\\\#
\\\\/// \\\\\\\\#
//////// \\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
// \\/// \\#
\\\\\\/// \\\\#
\\\\/// \\\\\\#
\\/// \\\\\\\\#
/// \\// \\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\////// \\\\#
/// \\\\\\\\\\\\#
\\//////// #
/// /// \\\\#
\\////// \\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\#
// \\#
/ \\\\#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\##
\\\\\\\\\\\\#
\\/// \\#
/// \\\\#
/// \\\\#
/// \\\\#
\\/// \\#
\\\\\\\\\\\\##
\\\\\\\\\\\\#
/// \\\\#
\\/// \\#
\\/// \\#
\\/// \\#
/// \\\\#
\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\\\\\/// \\\\\\#
// /// // #
\\/////// \\#
// /// // #
\\\\\\/// \\\\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
///////// \\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
/// \\#
// \\\\##
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\#
//////// \\#
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
/// \\#
\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\\\\\\\/// \\#
\\\\\\/// \\\\#
\\\\/// \\\\\\#
\\/// \\\\\\\\#
/// \\\\\\\\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\\\#
\\\\////// \\\\\\#
\\/// \\/// \\\\#
/// \\\\\\/// \\#
\\/// \\/// \\\\#
\\\\////// \\\\\\#
\\\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\\\/// \\\\\\#
\\//// \\\\\\#
\\\\/// \\\\\\#
\\\\/// \\\\\\#
/////// \\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\/////// \\#
/// \\/// \\#
\\\\\\/// \\\\\\#
\\/// \\\\\\\\\\#
//////// \\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\/////// \\#
/// \\/// \\#
\\\\\\//// \\\\#
/// \\/// \\#
\\/////// \\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\\\////// \\\\#
\\/// /// \\\\#
/// \\/// \\\\#
///////// \\#
\\\\\\\\\\/// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
/////// \\#
/// \\\\\\\\\\#
////// \\\\#
\\\\\\\\/// \\#
////// \\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\\\\\/// \\\\\\#
\\\\/// \\\\\\\\#
\\////// \\\\#
/// \\/// \\#
\\////// \\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
/////// \\#
\\\\\\/// \\\\#
\\\\/// \\\\\\#
\\/// \\\\\\\\#
/// \\\\\\\\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\////// \\\\#
/// \\/// \\#
\\////// \\\\#
/// \\/// \\#
\\////// \\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\////// \\\\#
/// \\/// \\#
\\////// \\\\#
\\\\\\/// \\\\\\#
\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\/// #
\\\\\\\\\\#
\\/// #
\\\\\\\\\\##
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
\\/// #
\\\\\\\\\\#
\\/// #
\\// \\##
\\\\\\\\\\\\\\#
\\\\/// \\#
\\/// \\\\#
/// \\\\\\#
\\/// \\\\#
\\\\/// \\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\#
//////// \\#
\\\\\\\\\\\\\\\\\\\\#
//////// \\#
\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\#
\\/// \\\\#
\\\\/// \\#
\\\\/// \\#
\\/// \\\\#
/// \\\\\\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\///// \\\\#
\\\\\\\\/// \\#
\\\\\\/// \\\\#
\\\\\\\\\\\\\\\\\\#
\\\\\\/// \\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// ///// \\#
/// \\\\\\\\\\\\\\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
//////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
/// \\\\\\\\\\\\\\#
/////// \\\\\\#
/// \\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
/// \\\\\\\\\\\\\\#
/////// \\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\\\\\\\\\\\#
/// \\\\/// \\#
\\//////// \\#
\\\\\\\\\\\\/// \\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\#
///// \\#
\\/// \\\\#
\\/// \\\\#
\\/// \\\\#
///// \\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\\\///// \\#
\\\\\\/// \\\\#
\\\\\\/// \\\\#
\\\\\\/// \\\\#
///// \\\\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\/// \\\\#
////// \\\\\\\\#
/// \\/// \\\\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
//// //// \\#
/// / /// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
///// /// \\#
///////// \\#
/// ///// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\/// \\\\#
\\//// /// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\\\\\\\\\\\#
\\/////// \\\\#
\\\\\\\\\\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\\\\\#
/// /// /// \\#
/// /// /// \\#
/// /// /// \\#
/// /// /// \\#
\\///////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\/// /// \\\\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\/// \\\\#
\\\\\\/// \\\\\\\\#
\\/// \\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\#
///// \\#
/// \\\\\\#
/// \\\\\\#
/// \\\\\\#
///// \\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
/// \\\\\\\\\\#
\\/// \\\\\\\\#
\\\\/// \\\\\\#
\\\\\\/// \\\\#
\\\\\\\\/// \\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\#
///// \\#
\\\\/// \\#
\\\\/// \\#
\\\\/// \\#
///// \\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\/ \\\\\\\\\\#
\\\\///// \\\\\\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\#
// \\#
\\/ \\#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
//////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
/// \\\\\\\\\\\\\\#
/////// \\\\\\#
/// \\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
/// \\\\\\\\\\\\\\#
/////// \\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\\\\\\\\\\\#
/// \\\\/// \\#
\\//////// \\#
\\\\\\\\\\\\/// \\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\#
///// \\#
\\/// \\\\#
\\/// \\\\#
\\/// \\\\#
///// \\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\\\///// \\#
\\\\\\/// \\\\#
\\\\\\/// \\\\#
\\\\\\/// \\\\#
\\//// \\\\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\/// \\\\#
////// \\\\\\\\#
/// \\/// \\\\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
//// //// \\#
/// / /// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
///// /// \\#
///////// \\#
/// ///// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\\\\\\\\\\\#
/// \\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\/// \\\\#
\\//// /// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
//////// \\\\#
/// \\\\/// \\#
//////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\\\\\\\\\\\#
\\/////// \\\\#
\\\\\\\\\\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\\\\\#
/// /// /// \\#
/// /// /// \\#
/// /// /// \\#
/// /// /// \\#
\\///////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\/// /// \\\\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
\\/// /// \\\\#
\\\\///// \\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\/// \\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\/// \\\\#
\\\\\\/// \\\\\\\\#
\\/// \\\\\\\\\\\\#
///////// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
\\\\///// \\#
\\\\/// \\\\\\#
///// \\\\\\#
\\\\/// \\\\\\#
\\\\///// \\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\#
/// \\#
/// \\#
/// \\#
/// \\#
/// \\#
\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\#
///// \\\\\\#
\\\\/// \\\\\\#
\\\\///// \\#
\\\\/// \\\\\\#
///// \\\\\\#
\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
\\\\//// \\\\/// \\#
\\////////// \\\\#
/// \\\\//// \\\\\\#
\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
///////// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
/// \\\\/// \\#
\\/////// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
\\\\\\\\\\\\\\\\\\\\\\#
\\/////// \\\\#
/// \\\\/// \\#
/// \\/// \\\\#
/// \\\\/// \\#
/// \\/// \\\\#
\\\\\\\\\\\\\\\\\\\\\\##
`
@@ -0,0 +1,22 @@
import createMathOperation from './_createMathOperation.js';
/**
* Divide two numbers.
*
* @static
* @memberOf _
* @since 4.7.0
* @category Math
* @param {number} dividend The first number in a division.
* @param {number} divisor The second number in a division.
* @returns {number} Returns the quotient.
* @example
*
* _.divide(6, 4);
* // => 1.5
*/
var divide = createMathOperation(function(dividend, divisor) {
return dividend / divisor;
}, 1);
export default divide;
@@ -0,0 +1,59 @@
var test = require('tape');
var stringify = require('../');
test('space parameter', function (t) {
t.plan(1);
var obj = { one: 1, two: 2 };
t.equal(stringify(obj, {space: ' '}), ''
+ '{\n'
+ ' "one": 1,\n'
+ ' "two": 2\n'
+ '}'
);
});
test('space parameter (with tabs)', function (t) {
t.plan(1);
var obj = { one: 1, two: 2 };
t.equal(stringify(obj, {space: '\t'}), ''
+ '{\n'
+ '\t"one": 1,\n'
+ '\t"two": 2\n'
+ '}'
);
});
test('space parameter (with a number)', function (t) {
t.plan(1);
var obj = { one: 1, two: 2 };
t.equal(stringify(obj, {space: 3}), ''
+ '{\n'
+ ' "one": 1,\n'
+ ' "two": 2\n'
+ '}'
);
});
test('space parameter (nested objects)', function (t) {
t.plan(1);
var obj = { one: 1, two: { b: 4, a: [2,3] } };
t.equal(stringify(obj, {space: ' '}), ''
+ '{\n'
+ ' "one": 1,\n'
+ ' "two": {\n'
+ ' "a": [\n'
+ ' 2,\n'
+ ' 3\n'
+ ' ],\n'
+ ' "b": 4\n'
+ ' }\n'
+ '}'
);
});
test('space parameter (same as native)', function (t) {
t.plan(1);
// for this test, properties need to be in alphabetical order
var obj = { one: 1, two: { a: [2,3], b: 4 } };
t.equal(stringify(obj, {space: ' '}), JSON.stringify(obj, null, ' '));
});
@@ -0,0 +1,19 @@
/**
* DON'T EDIT THIS FILE.
* This file was generated by "scripts/update-lib-flat-configs.js" script.
*/
"use strict"
module.exports = {
plugins: {
get "es-x"() {
return require("../../index.js")
},
},
rules: {
...require("./no-new-in-es2023-intl-api").rules,
...require("./no-new-in-es2022-intl-api").rules,
...require("./no-new-in-es2021-intl-api").rules,
...require("./no-new-in-es2020-intl-api").rules,
},
}
@@ -0,0 +1 @@
{"version":3,"file":"parse-args-cjs.cjs","sourceRoot":"","sources":["../../src/parse-args-cjs.cts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B,MAAM,EAAE,GACN,CACE,OAAO,OAAO,KAAK,QAAQ;IAC3B,CAAC,CAAC,OAAO;IACT,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,CACpC,CAAC,CAAC;IACD,OAAO,CAAC,OAAO;IACjB,CAAC,CAAC,QAAQ,CAAA;AACZ,MAAM,GAAG,GAAG,EAAE;KACX,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;KACjB,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAE5B,qBAAqB;AACrB,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAA;AAClC,oBAAoB;AAEpB,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,IAAI,CAAA;AAC5B,qBAAqB;AACrB,IACE,CAAC,EAAE;IACH,KAAK,GAAG,EAAE;IACV,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,GAAG,EAAE,CAAC;IAC5B,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,GAAG,EAAE,CAAC,EAC5B,CAAC;IACD,oBAAoB;IACpB,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAA;AAC5C,CAAC;AAEY,QAAA,SAAS,GAAG,EAAE,CAAA","sourcesContent":["import * as util from 'util'\n\nconst pv =\n (\n typeof process === 'object' &&\n !!process &&\n typeof process.version === 'string'\n ) ?\n process.version\n : 'v0.0.0'\nconst pvs = pv\n .replace(/^v/, '')\n .split('.')\n .map(s => parseInt(s, 10))\n\n/* c8 ignore start */\nconst [major = 0, minor = 0] = pvs\n/* c8 ignore stop */\n\nlet { parseArgs: pa } = util\n/* c8 ignore start */\nif (\n !pa ||\n major < 16 ||\n (major === 18 && minor < 11) ||\n (major === 16 && minor < 19)\n) {\n /* c8 ignore stop */\n pa = require('@pkgjs/parseargs').parseArgs\n}\n\nexport const parseArgs = pa\n"]}
@@ -0,0 +1,42 @@
import type { Uint8Array_ } from '../../types/index.js';
/**
* A runtime-agnostic collection of methods for working with Uint8Arrays
* @module
*/
/**
* Make sure two Uint8Arrays are deeply equivalent
*/
export declare function areEqual(array1: Uint8Array_, array2: Uint8Array_): boolean;
/**
* Convert a Uint8Array to Hexadecimal.
*
* A replacement for `Buffer.toString('hex')`
*/
export declare function toHex(array: Uint8Array_): string;
/**
* Convert a hexadecimal string to isoUint8Array.
*
* A replacement for `Buffer.from('...', 'hex')`
*/
export declare function fromHex(hex: string): Uint8Array_;
/**
* Combine multiple Uint8Arrays into a single Uint8Array
*/
export declare function concat(arrays: Uint8Array_[]): Uint8Array_;
/**
* Convert bytes into a UTF-8 string
*/
export declare function toUTF8String(array: Uint8Array_): string;
/**
* Convert a UTF-8 string back into bytes
*/
export declare function fromUTF8String(utf8String: string): Uint8Array_;
/**
* Convert an ASCII string to Uint8Array
*/
export declare function fromASCIIString(value: string): Uint8Array_;
/**
* Prepare a DataView we can slice our way around in as we parse the bytes in a Uint8Array
*/
export declare function toDataView(array: Uint8Array_): DataView;
//# sourceMappingURL=isoUint8Array.d.ts.map
@@ -0,0 +1,416 @@
flf2a$ 4 1 10 -1 7
madrid.flf by Juan Car (jc@juguete.quim.ucm.es)
version 1.0 -- 23/Nov/93
Uses spanish character set with -D option:
_ _
[ = a' \ = e' ] = i' { = o' | = u' } = n ~ = N
$$@
$$@
$$@
$$@@
|$@
|$@
=$@
$@@
||$@
$@
$@
$@@
||$@
==$@
||$@
$@@
/|\$@
\ $@
\|/$@
$@@
= /$@
/ $@
/ =$@
$@@
|)$@
/=/$@
\/\$@
$@@
/$@
$@
$@
$@@
/$@
| $@
\$@
$@@
\ $@
|$@
/ $@
$@@
\|/$@
-=-$@
/|\$@
$@@
| $@
-=-$@
| $@
$@@
$@
$@
/$@
$@@
$@
-=-$@
$@
$@@
$@
$@
=$@
$@@
/$@
= $@
/ $@
$@@
/=\$@
|/|$@
\=/$@
$@@
/|$@
=$@
|$@
$@@
/=\$@
/ $@
/=/$@
$@@
/=\$@
=<$@
\=/$@
$@@
/|$@
<=|$@
|$@
$@@
|=\$@
"-\$@
\=/$@
$@@
/=\$@
|=\$@
\=/$@
$@@
/=|$@
/"$@
/ $@
$@@
/=\$@
>=<$@
\=/$@
$@@
/=\$@
\=|$@
|$@
$@@
$@
=$@
=$@
$@@
$@
=$@
/$@
$@@
/$@
<=$@
\$@
$@@
__$@
==$@
$@
$@@
\ $@
=>$@
/ $@
$@@
/=\$@
=/$@
| $@
$@@
/=\$@
|"/$@
\=/$@
$@@
/=\$@
|=|$@
\ /$@
$@@
/=)$@
|< $@
\=)$@
$@@
/=\$@
| $@
\=/$@
$@@
=\ $@
| |$@
=/ $@
$@@
/=\$@
|= $@
\=/$@
$@@
/=\$@
|= $@
| $@
$@@
/=\$@
| _$@
\=/$@
$@@
/ \$@
|=|$@
\ /$@
$@@
|$@
=$@
|$@
$@@
/=\$@
_ |$@
\=/$@
$@@
| /$@
|= $@
| \$@
$@@
/ $@
| $@
\=/$@
$@@
/\/\$@
|==|$@
\ /$@
$@@
/ \$@
|\|$@
\ /$@
$@@
/=\$@
| |$@
\=/$@
$@@
/=\$@
|=/$@
| $@
$@@
/=\$@
| |$@
\=\$@
$@@
/=\$@
|=/$@
| \$@
$@@
/=\$@
\ $@
\=/$@
$@@
/=\$@
| $@
| $@
$@@
/ \$@
| |$@
\=/$@
$@@
/ \$@
|==|$@
\/ $@
$@@
/ \$@
| =|= |$@
\/ \/ $@
$@@
\ /$@
= $@
/ \$@
$@@
\ /$@
= $@
| $@
$@@
/=/$@
/ $@
/=/$@
$@@
|=$@
| $@
|=$@
$@@
\ $@
= $@
\$@
$@@
=|$@
|$@
=|$@
$@@
/=\$@
$@
$@
$@@
$@
$@
$@
===$@@
\$@
$@
$@
$@@
$@
/=|$@
\=|$@
$@@
| $@
|=\$@
|=/$@
$@@
$@
/=:$@
\=:$@
$@@
|$@
/=|$@
\=|$@
$@@
$@
/=\$@
\= $@
$@@
/=$@
|=$@
| $@
$@@
$@
/=|$@
\=|$@
\=|$@@
| $@
|=\$@
| |$@
$@@
$@
=$@
|$@
$@@
$@
=$@
|$@
\=|$@@
| $@
=/$@
|\$@
$@@
| $@
| $@
\=$@
$@@
$@
/=\=\$@
| | |$@
$@@
$@
/=\$@
| |$@
$@@
$@
/=\$@
\=/$@
$@@
$@
|=\$@
|=/$@
| $@@
$@
/=|$@
\=|$@
|$@@
$@
/=$@
| $@
$@@
$@
/==$@
==/$@
$@@
|-$@
| $@
\=$@
$@@
$@
| |$@
\=/$@
$@@
$@
| |$@
\\/$@
$@@
$@
| |$@
\/\/$@
$@@
$@
\./$@
/"\$@
$@@
$@
| |$@
\=|$@
\=|$@@
$@
/=/$@
/=/$@
$@@
/$@
=|$@
\$@
$@@
|$@
|$@
|$@
$@@
\ $@
|=$@
/ $@
$@@
/=/$@
$@
$@
$@@
/$@
/=|$@
\=|$@
$@@
/$@
/=\$@
\= $@
$@@
/$@
= $@
| $@
$@@
/$@
/=\$@
\=/$@
$@@
/$@
|=|$@
\=/$@
$@@
---$@
/=\$@
| |$@
$@@
/=\$@
|\|$@
\ /$@
$@@
@@ -0,0 +1,66 @@
"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/headphones.tsx
var headphones_exports = {};
__export(headphones_exports, {
HeadphonesIcon: () => HeadphonesIcon
});
module.exports = __toCommonJS(headphones_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var HeadphonesIcon = (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: "M2.74982 18.6508C2.33982 18.6508 1.99982 18.3108 1.99982 17.9008V12.2008C1.94982 9.49078 2.95982 6.93078 4.83982 5.01078C6.71982 3.10078 9.23982 2.05078 11.9498 2.05078C17.4898 2.05078 21.9998 6.56078 21.9998 12.1008V17.8008C21.9998 18.2108 21.6598 18.5508 21.2498 18.5508C20.8398 18.5508 20.4998 18.2108 20.4998 17.8008V12.1008C20.4998 7.39078 16.6698 3.55078 11.9498 3.55078C9.63982 3.55078 7.49982 4.44078 5.90982 6.06078C4.30982 7.69078 3.45982 9.86078 3.49982 12.1808V17.8908C3.49982 18.3108 3.16982 18.6508 2.74982 18.6508Z",
fill: "currentColor"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M5.94 12.4492H5.81C3.71 12.4492 2 14.1592 2 16.2592V18.1392C2 20.2392 3.71 21.9492 5.81 21.9492H5.94C8.04 21.9492 9.75 20.2392 9.75 18.1392V16.2592C9.75 14.1592 8.04 12.4492 5.94 12.4492Z",
fill: "currentColor"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M18.19 12.4492H18.06C15.96 12.4492 14.25 14.1592 14.25 16.2592V18.1392C14.25 20.2392 15.96 21.9492 18.06 21.9492H18.19C20.29 21.9492 22 20.2392 22 18.1392V16.2592C22 14.1592 20.29 12.4492 18.19 12.4492Z",
fill: "currentColor"
}
)
]
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
HeadphonesIcon
});
@@ -0,0 +1 @@
module.exports={C:{"43":0.00371,"45":0.00371,"46":0.00371,"51":0.00371,"52":0.00371,"60":0.00371,"61":0.00371,"64":0.00371,"65":0.00371,"68":0.00371,"72":0.01112,"79":0.00371,"81":0.00371,"84":0.00371,"92":0.00371,"94":0.00371,"95":0.00371,"102":0.00741,"103":0.00741,"106":0.00371,"112":0.01482,"115":0.35578,"117":0.02224,"121":0.00741,"124":0.00371,"126":0.00371,"127":0.04077,"128":0.00741,"131":0.00371,"136":0.00371,"137":0.00371,"138":0.01482,"139":0.00371,"140":0.06671,"141":0.01853,"142":0.10006,"143":1.07845,"144":1.1711,"145":0.00371,"146":0.00371,_:"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 44 47 48 49 50 53 54 55 56 57 58 59 62 63 66 67 69 70 71 73 74 75 76 77 78 80 82 83 85 86 87 88 89 90 91 93 96 97 98 99 100 101 104 105 107 108 109 110 111 113 114 116 118 119 120 122 123 125 129 130 132 133 134 135 147 3.5 3.6"},D:{"39":0.00741,"40":0.00741,"41":0.00741,"42":0.00741,"43":0.01112,"44":0.00741,"45":0.00741,"46":0.01112,"47":0.01112,"48":0.01112,"49":0.01112,"50":0.01482,"51":0.00741,"52":0.00741,"53":0.01112,"54":0.00741,"55":0.00741,"56":0.01482,"57":0.00741,"58":0.00741,"59":0.00741,"60":0.00741,"63":0.00371,"64":0.00371,"65":0.00371,"66":0.02224,"69":0.01112,"70":0.02224,"71":0.00371,"72":0.00371,"73":0.02594,"74":0.00371,"75":0.00371,"76":0.02224,"77":0.00741,"78":0.00371,"79":0.00741,"81":0.00371,"83":0.02224,"84":0.01482,"85":0.00371,"86":0.05559,"87":0.01853,"88":0.00371,"89":0.01112,"90":0.00741,"91":0.01482,"93":0.04077,"94":0.00371,"97":0.00741,"98":0.02965,"100":0.00741,"102":0.02224,"103":0.0593,"104":0.3076,"105":0.00371,"106":0.00741,"108":0.00741,"109":1.57134,"111":0.00741,"112":2.69056,"113":0.00371,"114":0.01482,"116":0.08153,"117":0.00741,"118":0.02224,"119":0.0593,"120":0.01853,"121":0.00371,"122":0.02965,"123":0.01112,"124":0.00741,"125":2.11613,"126":0.32613,"127":0.01482,"128":0.02965,"129":0.01482,"130":0.00741,"131":0.14083,"132":0.02965,"133":0.01482,"134":0.03706,"135":0.04077,"136":0.05188,"137":0.11118,"138":0.34466,"139":0.36319,"140":3.36875,"141":6.81904,"142":0.11859,"143":0.01482,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 67 68 80 92 95 96 99 101 107 110 115 144 145"},F:{"36":0.00741,"46":0.00741,"51":0.00371,"79":0.01482,"88":0.00371,"90":0.02965,"91":0.01853,"92":0.03335,"95":0.04447,"113":0.00741,"117":0.00741,"118":0.00741,"119":0.00741,"120":0.29277,"121":0.02594,"122":1.56023,_:"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 42 43 44 45 47 48 49 50 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 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.00741,"13":0.00371,"17":0.01482,"18":0.01482,"84":0.00741,"89":0.01112,"90":0.01482,"92":0.1223,"100":0.02224,"109":0.01112,"114":0.14453,"121":0.00371,"122":0.01112,"124":0.01112,"126":0.00371,"127":0.00371,"131":0.00371,"132":0.00371,"133":0.00741,"134":0.00741,"136":0.00741,"137":0.03706,"138":0.13712,"139":0.05188,"140":0.65967,"141":2.92403,"142":0.00741,_:"14 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 125 128 129 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 26.1 26.2","5.1":0.00371,"11.1":0.00371,"13.1":0.00741,"15.6":0.10006,"16.6":0.09265,"17.6":0.09636,"18.4":0.00371,"18.5-18.6":0.01853,"26.0":0.20754},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00058,"5.0-5.1":0,"6.0-6.1":0.00233,"7.0-7.1":0.00175,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00524,"10.0-10.2":0.00058,"10.3":0.0099,"11.0-11.2":0.14674,"11.3-11.4":0.00349,"12.0-12.1":0.00116,"12.2-12.5":0.02853,"13.0-13.1":0,"13.2":0.00291,"13.3":0.00116,"13.4-13.7":0.00466,"14.0-14.4":0.0099,"14.5-14.8":0.01048,"15.0-15.1":0.0099,"15.2-15.3":0.00757,"15.4":0.00873,"15.5":0.0099,"15.6-15.8":0.12927,"16.0":0.01747,"16.1":0.03261,"16.2":0.01689,"16.3":0.03028,"16.4":0.00757,"16.5":0.01339,"16.6-16.7":0.17294,"17.0":0.01223,"17.1":0.01863,"17.2":0.01339,"17.3":0.0198,"17.4":0.03494,"17.5":0.05998,"17.6-17.7":0.15139,"18.0":0.03435,"18.1":0.07104,"18.2":0.03843,"18.3":0.12344,"18.4":0.06347,"18.5-18.6":3.23635,"26.0":0.40003,"26.1":0.01456},P:{"4":0.05341,"24":0.01068,"25":0.01068,"26":0.01068,"27":0.01068,"28":0.21365,"29":0.02136,_:"20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02136},I:{"0":0.10687,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":1.87131,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00371,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0063,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15108},Q:{"14.9":0.0063},O:{"0":0.1Line truncated
@@ -0,0 +1,41 @@
/**
* Copyright (c) 2022 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { toDisposable } from 'common/Lifecycle';
import { IDisposable } from 'common/Types';
export function observeDevicePixelDimensions(element: HTMLElement, parentWindow: Window & typeof globalThis, callback: (deviceWidth: number, deviceHeight: number) => void): IDisposable {
// Observe any resizes to the element and extract the actual pixel size of the element if the
// devicePixelContentBoxSize API is supported. This allows correcting rounding errors when
// converting between CSS pixels and device pixels which causes blurry rendering when device
// pixel ratio is not a round number.
let observer: ResizeObserver | undefined = new parentWindow.ResizeObserver((entries) => {
const entry = entries.find((entry) => entry.target === element);
if (!entry) {
return;
}
// Disconnect if devicePixelContentBoxSize isn't supported by the browser
if (!('devicePixelContentBoxSize' in entry)) {
observer?.disconnect();
observer = undefined;
return;
}
// Fire the callback, ignore events where the dimensions are 0x0 as the canvas is likely hidden
const width = entry.devicePixelContentBoxSize[0].inlineSize;
const height = entry.devicePixelContentBoxSize[0].blockSize;
if (width > 0 && height > 0) {
callback(width, height);
}
});
try {
observer.observe(element, { box: ['device-pixel-content-box'] } as any);
} catch {
observer.disconnect();
observer = undefined;
}
return toDisposable(() => observer?.disconnect());
}
@@ -0,0 +1,9 @@
export type Options = [
{
ignoreParameters?: boolean;
ignoreProperties?: boolean;
}
];
export type MessageIds = 'noInferrableType';
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInferrableType", Options, import("../../rules").ESLintPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;
@@ -0,0 +1,38 @@
/**
* @fileoverview Handle logging for ESLint
* @author Gyandeep Singh
*/
"use strict";
/* eslint no-console: "off" -- Logging util */
/* c8 ignore next */
module.exports = {
/**
* Cover for console.info
* @param {...any} args The elements to log.
* @returns {void}
*/
info(...args) {
console.log(...args);
},
/**
* Cover for console.warn
* @param {...any} args The elements to log.
* @returns {void}
*/
warn(...args) {
console.warn(...args);
},
/**
* Cover for console.error
* @param {...any} args The elements to log.
* @returns {void}
*/
error(...args) {
console.error(...args);
},
};
@@ -0,0 +1,54 @@
import { __decorate } from "tslib";
import { AsnProp } from "@peculiar/asn1-schema";
import { DistributionPointName, Reason } from "./crl_distribution_points";
import { id_ce } from "../object_identifiers";
import { AsnPropTypes } from "@peculiar/asn1-schema";
export const id_ce_issuingDistributionPoint = `${id_ce}.28`;
export class IssuingDistributionPoint {
constructor(params = {}) {
this.onlyContainsUserCerts = IssuingDistributionPoint.ONLY;
this.onlyContainsCACerts = IssuingDistributionPoint.ONLY;
this.indirectCRL = IssuingDistributionPoint.ONLY;
this.onlyContainsAttributeCerts = IssuingDistributionPoint.ONLY;
Object.assign(this, params);
}
}
IssuingDistributionPoint.ONLY = false;
__decorate([
AsnProp({ type: DistributionPointName, context: 0, optional: true })
], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Boolean,
context: 1,
defaultValue: IssuingDistributionPoint.ONLY,
implicit: true,
})
], IssuingDistributionPoint.prototype, "onlyContainsUserCerts", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Boolean,
context: 2,
defaultValue: IssuingDistributionPoint.ONLY,
implicit: true,
})
], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
__decorate([
AsnProp({ type: Reason, context: 3, optional: true, implicit: true })
], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Boolean,
context: 4,
defaultValue: IssuingDistributionPoint.ONLY,
implicit: true,
})
], IssuingDistributionPoint.prototype, "indirectCRL", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Boolean,
context: 5,
defaultValue: IssuingDistributionPoint.ONLY,
implicit: true,
})
], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
@@ -0,0 +1,78 @@
{
"name": "react-use-websocket",
"version": "4.13.0",
"description": "React Hook for WebSocket communication",
"main": "./dist/index.js",
"files": [
"src",
"dist"
],
"scripts": {
"test": "cross-env node_modules/.bin/jest --verbose --no-cache",
"clear-dist": "cross-env rm -rf dist/",
"compile": "cross-env node_modules/.bin/tsc -p .",
"push": "cross-env npm run test && npm run clear-dist && npm run compile && npm publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/robtaussig/react-use-websocket.git"
},
"types": "./dist/index.d.ts",
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "16.0.1",
"@types/eventsource": "^1.1.15",
"@types/jest": "^29.5.13",
"@types/node": "^17.0.29",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/websocket": "1.0.10",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"eventsourcemock": "^2.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-websocket-mock": "^2.5.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"ts-jest": "^29.2.5",
"typescript": "^5.6.2"
},
"jest": {
"preset": "ts-jest",
"clearMocks": true,
"coverageDirectory": "coverage",
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/src/lib/**/*.test.(ts|tsx)"
],
"transform": {
"^.+\\.(ts|tsx)?$": "ts-jest"
},
"setupFiles": [
"./__test__/configJSDom.ts"
]
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"keywords": [
"react",
"react-hooks",
"websocket",
"websockets"
],
"author": "Robert Taussig <robert.taussig@gmail.com> (robtaussig.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/robtaussig/react-use-websocket/issues"
},
"homepage": "https://github.com/robtaussig/react-use-websocket#readme",
"packageManager": "yarn@4.5.0"
}
@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0;
const STATEMENT_OR_BLOCK_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
const FLATTENABLE_KEYS = exports.FLATTENABLE_KEYS = ["body", "expressions"];
const FOR_INIT_KEYS = exports.FOR_INIT_KEYS = ["left", "init"];
const COMMENT_KEYS = exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
const LOGICAL_OPERATORS = exports.LOGICAL_OPERATORS = ["||", "&&", "??"];
const UPDATE_OPERATORS = exports.UPDATE_OPERATORS = ["++", "--"];
const BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
const EQUALITY_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
const COMPARISON_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"];
const BOOLEAN_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
const NUMBER_BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
const BINARY_OPERATORS = exports.BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"];
const ASSIGNMENT_OPERATORS = exports.ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")];
const BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
const NUMBER_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
const STRING_UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = ["typeof"];
const UNARY_OPERATORS = exports.UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS];
const INHERIT_KEYS = exports.INHERIT_KEYS = {
optional: ["typeAnnotation", "typeParameters", "returnType"],
force: ["start", "loc", "end"]
};
{
exports.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
exports.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
}
//# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
var id = 0;
function _classPrivateFieldKey(e) {
return "__private_" + id++ + "_" + e;
}
export { _classPrivateFieldKey as default };
@@ -0,0 +1,13 @@
"use strict";
/**
* This is a compatibility ruleset that:
* - disables rules from eslint:recommended which are already handled by TypeScript.
* - enables rules that make sense due to TS's typechecking / transpilation.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const eslint_recommended_raw_1 = __importDefault(require("../eslint-recommended-raw"));
module.exports = {
overrides: [(0, eslint_recommended_raw_1.default)('glob')],
};
@@ -0,0 +1,24 @@
export default function stripIndent(string) {
const match = string.match(/^[ \t]*(?=\S)/gm);
if (!match) {
return string;
}
let minIndent = Number.POSITIVE_INFINITY;
for (const indent of match) {
minIndent = Math.min(minIndent, indent.length);
}
if (minIndent === 0 || minIndent === Number.POSITIVE_INFINITY) {
return string;
}
return string.replace(new RegExp(`^[ \\t]{${minIndent}}`, 'gm'), '');
}
export function dedent(string) {
// Remove all leading and trailing whitespace-only lines
const trimmed = string.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g, '');
return stripIndent(trimmed);
}
@@ -0,0 +1,92 @@
import { ParserOptions } from "@babel/parser";
import { Expression, Program, Statement } from "@babel/types";
export interface TemplateBuilderOptions extends ParserOptions {
/**
* A set of placeholder names to automatically accept.
* Items in this list do not need to match `placeholderPattern`.
*
* This option cannot be used when using `%%foo%%` style placeholders.
*/
placeholderWhitelist?: Set<string> | null | undefined;
/**
* A pattern to search for when looking for `Identifier` and `StringLiteral`
* nodes that should be considered as placeholders.
*
* `false` will disable placeholder searching placeholders, leaving only
* the `placeholderWhitelist` value to find replacements.
*
* This option cannot be used when using `%%foo%%` style placeholders.
*
* @default /^[_$A-Z0-9]+$/
*/
placeholderPattern?: RegExp | false | null | undefined;
/**
* Set this to `true` to preserve comments from the template string
* into the resulting AST, or `false` to automatically discard comments.
*
* @default false
*/
preserveComments?: boolean | null | undefined;
/**
* Set to `true` to use `%%foo%%` style placeholders, `false` to use legacy placeholders
* described by `placeholderPattern` or `placeholderWhitelist`.
*
* When it is not set, it behaves as `true` if there are syntactic placeholders, otherwise as `false`.
*
* @since 7.4.0
*/
syntacticPlaceholders?: boolean | null | undefined;
}
export interface TemplateBuilder<T> {
/**
* Build a new builder, merging the given options with the previous ones.
*/
(opts: TemplateBuilderOptions): TemplateBuilder<T>;
/**
* Building from a string produces an AST builder function by default.
*/
(code: string, opts?: TemplateBuilderOptions): (arg?: PublicReplacements) => T;
/**
* Building from a template literal produces an AST builder function by default.
*/
(tpl: TemplateStringsArray, ...args: unknown[]): (arg?: PublicReplacements) => T;
/**
* Allow users to explicitly create templates that produce ASTs,
* skipping the need for an intermediate function.
*
* Does not allow `%%foo%%` style placeholders.
*/
ast: {
(tpl: string, opts?: TemplateBuilderOptions): T;
(tpl: TemplateStringsArray, ...args: unknown[]): T;
};
}
export type PublicReplacements = { [index: string]: unknown } | unknown[];
export const smart: TemplateBuilder<Statement | Statement[]>;
export const statement: TemplateBuilder<Statement>;
export const statements: TemplateBuilder<Statement[]>;
export const expression: TemplateBuilder<Expression>;
export const program: TemplateBuilder<Program>;
type DefaultTemplateBuilder = typeof smart & {
smart: typeof smart;
statement: typeof statement;
statements: typeof statements;
expression: typeof expression;
program: typeof program;
ast: typeof smart.ast;
};
declare const templateBuilder: DefaultTemplateBuilder;
export default templateBuilder;
@@ -0,0 +1,9 @@
import isAfter from "./isAfter.mjs";
import isBefore from "./isBefore.mjs";
function isBetween(date, from, to, unit, inclusivity) {
inclusivity = inclusivity || "()";
return (inclusivity.startsWith("(") ? isAfter(date, from, unit) : !isBefore(date, from, unit)) && (inclusivity.charAt(1) === ")" ? isBefore(date, to, unit) : !isAfter(date, to, unit));
}
export {
isBetween as default
};
@@ -0,0 +1,18 @@
/**
* This method returns `true`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `true`.
* @example
*
* _.times(2, _.stubTrue);
* // => [true, true]
*/
function stubTrue() {
return true;
}
module.exports = stubTrue;
@@ -0,0 +1,53 @@
{
"name": "supports-color",
"version": "7.2.0",
"description": "Detect whether a terminal supports color",
"license": "MIT",
"repository": "chalk/supports-color",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"browser.js"
],
"keywords": [
"color",
"colour",
"colors",
"terminal",
"console",
"cli",
"ansi",
"styles",
"tty",
"rgb",
"256",
"shell",
"xterm",
"command-line",
"support",
"supports",
"capability",
"detect",
"truecolor",
"16m"
],
"dependencies": {
"has-flag": "^4.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
"import-fresh": "^3.0.0",
"xo": "^0.24.0"
},
"browser": "browser.js"
}
@@ -0,0 +1 @@
{"name":"readable-stream","version":"2.3.8","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532101495,"integrity":"sha512-5h3nBNWnav1mtdmxx48KWv6ahGaGyi+yjIFKSmDb6CoZDtSmovMeCb9taVuOwXjr6pgEWTApxYwbG+3XkzJNEw==","mode":420,"size":2337},"lib/_stream_duplex.js":{"checkedAt":1794532125642,"integrity":"sha512-+xpflpUwZkJXdj4Qz6uzC2I1bQCmrmXtZPyF3TbsJhyVmLjr8oHHn6DCAFZ/b+HlAirWguG+ijrRyr0tKkl/Og==","mode":420,"size":4015},"lib/_stream_passthrough.js":{"checkedAt":1794532125642,"integrity":"sha512-qLiWZBxQIf4EFuG80xie6AYRAPeJV/BgVfLYto+o3FpTeEzSBPBFYa8U3rY0n1V3fTk3EPjBGSxbaahMMVhKNg==","mode":420,"size":1753},"lib/_stream_readable.js":{"checkedAt":1794532125643,"integrity":"sha512-u/Z0iE13zFNNRThBqvS9RWK/OicVICmcYEfEHC93X37PJ3fE+r/Foo82nrPYUKwdzFilkiqEmmbRpLJMfSg/yg==","mode":420,"size":31426},"lib/_stream_transform.js":{"checkedAt":1794532125643,"integrity":"sha512-kQrynIm0EUrQnih8fTR1ONSU7IgJW4AYWi9b+0/rq1SzN8Mo4qBbS6tryaP6dEfQDQfO5U5C40yI8O8BOCieQg==","mode":420,"size":7742},"lib/_stream_writable.js":{"checkedAt":1794532125643,"integrity":"sha512-HhOsj9b6EqZAReh/0FnWfsgXBuv1cjKQa3yH+c5QARIjqIA3JIJkNNx0XInSrgsI40BqJk5G6YPzhyCzid8Pyw==","mode":420,"size":20335},"lib/internal/streams/BufferList.js":{"checkedAt":1794532125643,"integrity":"sha512-95uPa6P9gudPvqLopdqSDwVZ/omzdTcuJdFYw9CONZ5+s2X8XGiVQ4HZ3G8I8d/Xx8MSaILC0M7yOAkQrj1EJA==","mode":420,"size":2009},"lib/internal/streams/destroy.js":{"checkedAt":1794532125643,"integrity":"sha512-OAY8PCKZTo/sXNOWtNbDn+gga0Z2lh8DgiEr9OYbrmf4ir095t4Axnk4akTTIEcTEjufGsiWneqTSJ3sxtoONA==","mode":420,"size":2175},"duplex-browser.js":{"checkedAt":1794532125643,"integrity":"sha512-XYxNX90ggYeKsZ0Yw7KesA9KovbRtpHakOYDNUdiUg2PgkJa4isziXu81QhMY9zXaaN5MikJ03bcHco4fIU1ZA==","mode":420,"size":53},"duplex.js":{"checkedAt":1794532125643,"integrity":"sha512-94QzgGWs7iB1+HVb9FkWlMYu58o7ciyxLoX2GpkDpFw+aijpAxp4XJTqTY+qwBTGgRF8NBavXTdinq+jER743w==","mode":420,"size":46},"passthrough.js":{"checkedAt":1794532125643,"integrity":"sha512-42x8rxfrXoD4Vwfk/UHbW1D4RxkE3dDpjdnuFvvSIR3ndzAonxmQ1RnKlirav6y29DmvnTsZhogvfwofXA6EOg==","mode":420,"size":51},"readable-browser.js":{"checkedAt":1794532125644,"integrity":"sha512-8zZ5YzY0AUStqrsoNRSbx+CQ3Ucwtfif4losQ68iVX7DTe/Q360vgNhdMCHyhRjtZL+i5qZNnsteLGw9pvTk2Q==","mode":420,"size":351},"readable.js":{"checkedAt":1794532125644,"integrity":"sha512-ZdGBKdtzLBG98bKVOpW/niFhxLan+Q1wVkG3ss6xknzw4FpvxMZkjzxrFXO3z3FGl78mzESkKcyy75D791ACiw==","mode":420,"size":771},"lib/internal/streams/stream-browser.js":{"checkedAt":1794532101498,"integrity":"sha512-gASspe/BDPib9B7Ltlhvms1wfvO3icxxQEPEjA1HtkednSwv2YlK7caD7cuI+tiyhRfTKUF9bi0OK2OdlklW2Q==","mode":420,"size":49},"lib/internal/streams/stream.js":{"checkedAt":1794532101498,"integrity":"sha512-m+cGJa+cR6N3JiIDHNxK2m4AnZ3fcfdAkQnva2rftERBRjCJfqsH93vSaPZslGLRmctyk04LtP275hTxa7PeJA==","mode":420,"size":36},"transform.js":{"checkedAt":1794532125644,"integrity":"sha512-HR9mam5wJeeXuT/5We9N+CmJ7+UuFOHNrGtrYEGrfIKjZyDz78RP/eCoeEJiw+efMlBEjdkmp7gvD/T+FnouWQ==","mode":420,"size":49},"writable-browser.js":{"checkedAt":1794532125644,"integrity":"sha512-pkf59iloqx9OLLvzXXBYqO24+h1MPW+FjqH1lSOgmqNOjv5j5/Pbpz4aPRVQna6CoFj7SrUx+b1I7jFMRGQV0Q==","mode":420,"size":55},"writable.js":{"checkedAt":1794532125644,"integrity":"sha512-fj5r6M2Ak4XaPcohzAr7ZGIYZI26GsHluHBLHzAwtlnwZVQscnMj6wpNrMH12EhgAqtEcpapq81ize3MBq2+dA==","mode":420,"size":229},"package.json":{"checkedAt":1794532125645,"integrity":"sha512-KZQwvPNRcIuJ7WdNbC5TayA8YVf4tMAeM50DWv3xKoeNFCu6xzm8FQR7p7OF/n05BJXaaNMrn6pnfhipb5WsIQ==","mode":420,"size":1370},"doc/wg-meetings/2015-01-30.md":{"checkedAt":1794532125645,"integrity":"sha512-8zqtREScbGLDrk6QU8HIhPbdvOAK7jXeWBi4Lp3SOPa0w2Lh2Ufa+7VQRgGrekdaeG+OirM0pwP0s1QcVZXl5Q==","mode":420,"size":2280},"CONTRIBUTING.md":{"checkedAt":1794532101498,"integrity":"sha512-hUlMplgttqo2efUyxUDyB1UWYowCq9b8gnNpz47B8qxmCS/4FUBtRnDHozytxi80wsR4E2lTZWzoWn1XVfjDHg==","mode":420,"size":1443},"GOVERNANCE.md":{"checkedAt":1794532101498,"integrity":"sha512-WG8PKkauKejcC1kx4UTTt1NgV8sKbS7PxyVExQSKH8lBfRT720XzPiHu+ZoqDjAqPHTS+ONgVzVEyDKFkwU9qg==","mode":420,"size":5550},"README.md":{"checkedAt":1794532125645,"integrity":"sha512-PCxmXCLsEOvN1ku9MPXlwd5MBJ5n3dF18CuuQzXv+hMsYOjDsGXihbAFft6/uhobDFhp8gnietA9KPGawmQsXA==","mode":420,"size":2999},".travis.yml":{"checkedAt":1794532125645,"integrity":"sha512-Ysb3tjZt+W6+cxmLeI1NQaVtFQebMZG78d7Dl6qx9NELuSOGuf/pgWZEye/by37Dj7S7lej02qJdMm+FJ/sotA==","mode":420,"size":991}}}
@@ -0,0 +1,31 @@
/**
Returns a boolean for whether given two types are equal.
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
*/
type IsEqual<T, U> =
(<G>() => G extends T ? 1 : 2) extends
(<G>() => G extends U ? 1 : 2)
? true
: false;
/**
Returns a boolean for whether the given array includes the given item.
This can be useful if another type wants to make a decision based on whether the array includes that item.
@example
```
import {Includes} from 'type-fest';
type hasRed<array extends any[]> = Includes<array, 'red'>;
```
@category Utilities
*/
export type Includes<Value extends any[], Item> =
IsEqual<Value[0], Item> extends true
? true
: Value extends [Value[0], ...infer rest]
? Includes<rest, Item>
: false;
@@ -0,0 +1,11 @@
'use strict';
// https://262.ecma-international.org/11.0/#sec-isunsignedelementtype
module.exports = function IsUnsignedElementType(type) {
return type === 'Uint8'
|| type === 'Uint8C'
|| type === 'Uint16'
|| type === 'Uint32'
|| type === 'BigUint64';
};
@@ -0,0 +1,7 @@
export type AllowElement = import("./lib/index.js").AllowElement;
export type Components = import("./lib/index.js").Components;
export type ExtraProps = import("./lib/index.js").ExtraProps;
export type Options = import("./lib/index.js").Options;
export type UrlTransform = import("./lib/index.js").UrlTransform;
export { MarkdownAsync, MarkdownHooks, Markdown as default, defaultUrlTransform } from "./lib/index.js";
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"name":"@heroui/form","version":"2.1.9","requiresBuild":false,"files":{"dist/base-form.js":{"checkedAt":1794532107662,"integrity":"sha512-UrSbcfj/Zak/BmRVho4btG4BTM48nW644Dx1Blor7dPkMot9dzVoyyCVfX2JuaxnfHTgiGyotX/hVwhKid+WBQ==","mode":420,"size":4070},"dist/form.js":{"checkedAt":1794532107663,"integrity":"sha512-W+Ol3pgeo0b+s6NyPD+Gu736TdOyrUz0MJILtfEWlgnt6VrxePS1u+jkXH0f98GTO/ZMZ2SBgT6U+eyzV4arcA==","mode":420,"size":4608},"dist/index.js":{"checkedAt":1794532107663,"integrity":"sha512-XyOcF4QCbd27YiWtw/C3eBvZUv7nmm8lsAt7uOYudM1Smk1qiVId3GWRSWS3nyZGGD7nUjjxfBed87P7Oo6KUQ==","mode":420,"size":4699},"dist/utils.js":{"checkedAt":1794532107663,"integrity":"sha512-GeL80y6ve+CH8GqPUlP+6L3DWVr8xfV8Jr3zLL9JN9Do+bhYaVgaEj1iSFtV1/7ooB+DZJDeSyTg2bQWqeEVog==","mode":420,"size":3094},"package.json":{"checkedAt":1794532107663,"integrity":"sha512-cdaLwHHHlaqJappojpIJ3+cqiEbo+vPDrqET7VaVFXsJoCSJQttbDe6eo/BzoI37fZN+BsMM3Oz7dX1SVxFYug==","mode":420,"size":1593},"README.md":{"checkedAt":1794532107663,"integrity":"sha512-Jwqb7j5wavMJ6pfQ8v3zPtMEuGoDeN6eIOwc+D2/PBlBfGTuDqlGBWCBeYc5AY6SFfR2PfXLBAhrgjA5wd7uVg==","mode":420,"size":467},"dist/base-form.mjs":{"checkedAt":1794532107663,"integrity":"sha512-H0AFZQFVznsybUHVgoGpojvuU9ZGxKleGRq/bjDP7/VvCINL2WovsNFjpOODOx+Mb2FoWafNbOFtHXA6jdYSMQ==","mode":420,"size":141},"dist/chunk-6AYLJCAO.mjs":{"checkedAt":1794532107663,"integrity":"sha512-7PF/cP70wjlGm21LY819ufT1Pf/ZA1NaJIh5+pehdeGJ6n+lECQE8OPk9YRhXAMClBaAR/MK1EtO1dIln9HHuw==","mode":420,"size":600},"dist/chunk-BSTJ7ZCN.mjs":{"checkedAt":1794532107664,"integrity":"sha512-ntzYHurLhdhNFRXpr/qzsaPxZQ21zbFER0RutpmRmvpKyH8DLbFXM//FQq/EZGco7AG9eQiuhVcnpH/CoQRs7w==","mode":420,"size":1936},"dist/chunk-SLABUSGS.mjs":{"checkedAt":1794532107664,"integrity":"sha512-94n24M8oCWY0zsXuP2usjy+v41RQhlvbm0xWch+hnOaDIBsH8G9icEND9+9c4ZIaqLdePVSHnZDKgj/4AWPYRg==","mode":420,"size":1005},"dist/form.mjs":{"checkedAt":1794532107664,"integrity":"sha512-OMRGaBMQHj6A5F1KHPMKl5j09d872G4ij4xMpg9NN9yREKAJ8Zsqzjjj6R27HHR8pKAgMXmtMZ2b3uVW9pLWGQ==","mode":420,"size":142},"dist/index.mjs":{"checkedAt":1794532107664,"integrity":"sha512-jEK1quBJ1hF9sAoh9196zRi0/Qtjx9zBAsmNJHn2bLm6Si1JVipL4U9P9CNld8QeqPbYbyqQsTWBNP/5Z7pLSg==","mode":420,"size":230},"dist/utils.mjs":{"checkedAt":1794532107664,"integrity":"sha512-CmZO0vVIDmrYOv6/+nJnr4uXWYb2CDfCtQFftCxjnqTj/ZYosL0NfNRKem+mfsTfQyzi9cTPFAGyWMEPYkG5OQ==","mode":420,"size":176},"dist/base-form.d.ts":{"checkedAt":1794532107664,"integrity":"sha512-T9yI71ajAh6ASOhfG5IkVvCF341UDP7dRP5+0exlArLCvGM/y+x6aJLgzHQVVOC9uXnoK9zF0P3s9k5785WZDA==","mode":420,"size":898},"dist/form.d.ts":{"checkedAt":1794532107664,"integrity":"sha512-JQTTFEh1c+6J6ZKfyYEvv9HuU8lEYLQvjRrtl62qFc/k5QD7OJm0WwC022YCPVyUIHIhp9gvBJD5ThNEkANV1g==","mode":420,"size":277},"dist/index.d.ts":{"checkedAt":1794532107664,"integrity":"sha512-qQ/RKsoUl3aEMWghaPFisBxLwrTzzFBNu6+KH1CBfiLGqef7qogjObkqB9mQYrG4c2Zw0W7hV5wU28Q4KSq9xg==","mode":420,"size":213},"dist/utils.d.ts":{"checkedAt":1794532107665,"integrity":"sha512-RfwOesEnU0ZwrR8dspS2Q44lw47B7RVmOThcgdW+SDOcigsqo9HhAs/pt8lnU/k1szrvbNXKj4Cu6Ma1jbH9Bw==","mode":420,"size":1616},"LICENSE":{"checkedAt":1794532107665,"integrity":"sha512-eaopHP+N4EYXlGoX9hmoxDPoVft4BqrXKmbsFTcsoBHSrJp/GWF4qVtLBzrw9h9ZrbFfPY69z+3RuDX9FdPG+Q==","mode":420,"size":1064}}}
@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var graphicsSymbolRole = {
abstract: false,
accessibleNameRequired: true,
baseConcepts: [],
childrenPresentational: true,
nameFrom: ['author'],
prohibitedProps: [],
props: {
'aria-disabled': null,
'aria-errormessage': null,
'aria-expanded': null,
'aria-haspopup': null,
'aria-invalid': null
},
relatedConcepts: [],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure', 'section', 'img']]
};
var _default = exports.default = graphicsSymbolRole;
@@ -0,0 +1 @@
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_el=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"el",weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),months:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ".split("_"),ordinal:function(e){return e},weekStart:1,relativeTime:{future:"σε %s",past:"πριν %s",s:"μερικά δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένα μήνα",MM:"%d μήνες",y:"ένα χρόνο",yy:"%d χρόνια"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"}};return t.default.locale(d,null,!0),d}));
@@ -0,0 +1 @@
{"name":"merge2","version":"1.4.1","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532095808,"integrity":"sha512-GAeTRMmgYSZzL81yOKnAB5FUbEyfLSQeQmYfw0FImjjoRfVsQbsxzF4MACYOhRFrYSbF1CgDHyhclVYtgj84Gg==","mode":420,"size":1082},"index.js":{"checkedAt":1794532095808,"integrity":"sha512-fpEPGlPaNwS3g0GrR/z5r4Ehn/80/ePRiawpg8/BAlXxKBZK8vwA3E9ZFaI4snR3Qqy/SJoNDGRRLqB7uEPB5A==","mode":420,"size":3241},"package.json":{"checkedAt":1794532095808,"integrity":"sha512-sFGsH1bdqKAdBrfIKgdoIwB3abTnTcbgmRf7p0M8C8j1vg/WxX2bj1SwJ4E8u+46tMY7laV6Vsd82H3t7BOILA==","mode":420,"size":830},"README.md":{"checkedAt":1794532095808,"integrity":"sha512-2aRZ7ik2A95SmkQ8gW8a+85hg6jpVwG/s/qvDukqSIXOi51YgXN/nGWCtwUfHM/fQ5Vu10mhf0TuXR+XI7Z3VA==","mode":420,"size":3744}}}
@@ -0,0 +1,45 @@
{
"name": "@types/express",
"version": "5.0.5",
"description": "TypeScript definitions for express",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express",
"license": "MIT",
"contributors": [
{
"name": "Boris Yankov",
"githubUsername": "borisyankov",
"url": "https://github.com/borisyankov"
},
{
"name": "Puneet Arora",
"githubUsername": "puneetar",
"url": "https://github.com/puneetar"
},
{
"name": "Dylan Frankland",
"githubUsername": "dfrankland",
"url": "https://github.com/dfrankland"
},
{
"name": "Sebastian Beltran",
"githubUsername": "bjohansebas",
"url": "https://github.com/bjohansebas"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/express"
},
"scripts": {},
"dependencies": {
"@types/body-parser": "*",
"@types/express-serve-static-core": "^5.0.0",
"@types/serve-static": "^1"
},
"peerDependencies": {},
"typesPublisherContentHash": "2f4d6bbe6a34c16f03f2e9a77d91414d6b18e7d28dd2f78d90ff63766de6fa9c",
"typeScriptVersion": "5.2"
}
@@ -0,0 +1,18 @@
'use strict';
var callBind = require('call-bind');
var define = require('define-properties');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
var bound = callBind(getPolyfill(), null);
define(bound, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = bound;
@@ -0,0 +1,119 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const type_utils_1 = require("@typescript-eslint/type-utils");
const utils_1 = require("@typescript-eslint/utils");
const typescript_1 = require("typescript");
const util_1 = require("../util");
const testTypeFlag = (flagsToCheck) => type => (0, util_1.isTypeFlagSet)(type, flagsToCheck);
const optionTesters = [
['Any', util_1.isTypeAnyType],
[
'Array',
(type, checker, recursivelyCheckType) => (checker.isArrayType(type) || checker.isTupleType(type)) &&
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
recursivelyCheckType(type.getNumberIndexType()),
],
// eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
['Boolean', testTypeFlag(typescript_1.TypeFlags.BooleanLike)],
['Nullish', testTypeFlag(typescript_1.TypeFlags.Null | typescript_1.TypeFlags.Undefined)],
['Number', testTypeFlag(typescript_1.TypeFlags.NumberLike | typescript_1.TypeFlags.BigIntLike)],
[
'RegExp',
(type, checker) => (0, util_1.getTypeName)(checker, type) === 'RegExp',
],
['Never', util_1.isTypeNeverType],
].map(([type, tester]) => ({
type,
option: `allow${type}`,
tester,
}));
exports.default = (0, util_1.createRule)({
name: 'restrict-template-expressions',
meta: {
type: 'problem',
docs: {
description: 'Enforce template literal expressions to be of `string` type',
recommended: {
recommended: true,
strict: [
{
allowAny: false,
allowBoolean: false,
allowNever: false,
allowNullish: false,
allowNumber: false,
allowRegExp: false,
},
],
},
requiresTypeChecking: true,
},
messages: {
invalidType: 'Invalid type "{{type}}" of template literal expression.',
},
schema: [
{
type: 'object',
additionalProperties: false,
properties: {
...Object.fromEntries(optionTesters.map(({ type, option }) => [
option,
{
type: 'boolean',
description: `Whether to allow \`${type.toLowerCase()}\` typed values in template expressions.`,
},
])),
allow: {
description: `Types to allow in template expressions.`,
...type_utils_1.typeOrValueSpecifiersSchema,
},
},
},
],
},
defaultOptions: [
{
allow: [{ name: ['Error', 'URL', 'URLSearchParams'], from: 'lib' }],
allowAny: true,
allowBoolean: true,
allowNullish: true,
allowNumber: true,
allowRegExp: true,
},
],
create(context, [{ allow, ...options }]) {
const services = (0, util_1.getParserServices)(context);
const { program } = services;
const checker = program.getTypeChecker();
const enabledOptionTesters = optionTesters.filter(({ option }) => options[option]);
return {
TemplateLiteral(node) {
// don't check tagged template literals
if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) {
return;
}
for (const expression of node.expressions) {
const expressionType = (0, util_1.getConstrainedTypeAtLocation)(services, expression);
if (!recursivelyCheckType(expressionType)) {
context.report({
node: expression,
messageId: 'invalidType',
data: { type: checker.typeToString(expressionType) },
});
}
}
},
};
function recursivelyCheckType(innerType) {
if (innerType.isUnion()) {
return innerType.types.every(recursivelyCheckType);
}
if (innerType.isIntersection()) {
return innerType.types.some(recursivelyCheckType);
}
return ((0, util_1.isTypeFlagSet)(innerType, typescript_1.TypeFlags.StringLike) ||
(0, type_utils_1.typeMatchesSomeSpecifier)(innerType, allow, program) ||
enabledOptionTesters.some(({ tester }) => tester(innerType, checker, recursivelyCheckType)));
}
},
});
@@ -0,0 +1,2 @@
import type { CollectionTag } from '../types';
export declare const map: CollectionTag;
@@ -0,0 +1,23 @@
/**
Create a type with the keys of the given type changed to `string` type.
Use-case: Changing interface values to strings in order to use them in a form model.
@example
```
import {Stringified} from 'type-fest';
type Car {
model: string;
speed: number;
}
const carForm: Stringified<Car> = {
model: 'Foo',
speed: '101'
};
```
@category Utilities
*/
export type Stringified<ObjectType> = {[KeyType in keyof ObjectType]: string};
@@ -0,0 +1,24 @@
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
export declare const CanSendReturnSchema: import("@sinclair/typebox").TObject<{
yes: import("@sinclair/typebox").TBoolean;
}>;
export type CanSendReturnType = Static<typeof CanSendReturnSchema>;
export declare class CanSend extends OneBotAction<void, CanSendReturnType> {
payloadSchema: import("@sinclair/typebox").TObject<{}>;
returnSchema: import("@sinclair/typebox").TObject<{
yes: import("@sinclair/typebox").TBoolean;
}>;
actionTags: string[];
_handle(): Promise<CanSendReturnType>;
}
export default class CanSendRecord extends CanSend {
actionName: "can_send_record";
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {};
returnExample: {
yes: boolean;
};
}
@@ -0,0 +1 @@
{"mappings":"AAAA;;;;;;;;;;CAUC,GAmBM,MAAe;IAuBpB;;;;;GAKC,GACD,iBAAiB,OAAa,EAAE,OAAa,EAAW;QACtD,+CAA+C;QAC/C,OAAO,QAAQ,KAAK,KAAK,QAAQ,KAAK,IAC/B,QAAQ,MAAM,KAAK,QAAQ,MAAM;IAC1C;IAEA;;;;GAIC,GACD,8BAA8B,UAAa,EAAE,UAAa,EAAW;QACnE,OAAO,eAAe;IACxB;IAEA;;;;;GAKC,GACD,OAAO,mBAA2C,EAAQ,CAAC;IAY3D,aAAa,GACb,YAAY,GAAQ,EAAe;YAC1B;YAAA;QAAP,OAAO,CAAA,4BAAA,sBAAA,IAAI,CAAC,aAAa,CAAC,kBAAnB,0CAAA,oBAAyB,IAAI,cAA7B,sCAAA,2BAAiC;IAC1C;IAEA,aAAa,GACb,iBAAuB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAE,WAAW;IACtC;;QArEA,yDAAyD,QACzD,cAA0C;;AAqE5C","sources":["packages/@react-stately/virtualizer/src/Layout.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 {InvalidationContext} from './types';\nimport {ItemDropTarget, Key, LayoutDelegate, Node} from '@react-types/shared';\nimport {LayoutInfo} from './LayoutInfo';\nimport {Rect} from './Rect';\nimport {Size} from './Size';\nimport {Virtualizer} from './Virtualizer';\n\n/**\n * Virtualizer supports arbitrary layout objects, which compute what items are visible, and how\n * to position and style them. However, layouts do not render items directly. Instead,\n * layouts produce lightweight LayoutInfo objects which describe various properties of an item,\n * such as its position and size. The Virtualizer is then responsible for creating the actual\n * views as needed, based on this layout information.\n *\n * Every layout extends from the Layout abstract base class. Layouts must implement the `getVisibleLayoutInfos`,\n * `getLayoutInfo`, and `getContentSize` methods. All other methods can be optionally overridden to implement custom behavior.\n */\nexport abstract class Layout<T extends object = Node<any>, O = any> implements LayoutDelegate {\n /** The Virtualizer the layout is currently attached to. */\n virtualizer: Virtualizer<T, any> | null = null;\n\n /**\n * Returns an array of `LayoutInfo` objects which are inside the given rectangle.\n * Should be implemented by subclasses.\n * @param rect The rectangle that should contain the returned LayoutInfo objects.\n */\n abstract getVisibleLayoutInfos(rect: Rect): LayoutInfo[];\n\n /**\n * Returns a `LayoutInfo` for the given key.\n * Should be implemented by subclasses.\n * @param key The key of the LayoutInfo to retrieve.\n */\n abstract getLayoutInfo(key: Key): LayoutInfo | null;\n\n /**\n * Returns size of the content. By default, it returns virtualizer's size.\n */\n abstract getContentSize(): Size; \n\n /**\n * Returns whether the layout should invalidate in response to\n * visible rectangle changes. By default, it only invalidates\n * when the virtualizer's size changes. Return true always\n * to make the layout invalidate while scrolling (e.g. sticky headers).\n */\n shouldInvalidate(newRect: Rect, oldRect: Rect): boolean {\n // By default, invalidate when the size changes\n return newRect.width !== oldRect.width\n || newRect.height !== oldRect.height;\n }\n\n /**\n * Returns whether the layout should invalidate when the layout options change.\n * By default it invalidates when the object identity changes. Override this\n * method to optimize layout updates based on specific option changes.\n */\n shouldInvalidateLayoutOptions(newOptions: O, oldOptions: O): boolean {\n return newOptions !== oldOptions;\n }\n\n /**\n * This method allows the layout to perform any pre-computation\n * it needs to in order to prepare LayoutInfos for retrieval.\n * Called by the virtualizer before `getVisibleLayoutInfos`\n * or `getLayoutInfo` are called.\n */\n update(invalidationContext: InvalidationContext<O>): void {} // eslint-disable-line @typescript-eslint/no-unused-vars\n\n /**\n * Updates the size of the given item.\n */\n updateItemSize?(key: Key, size: Size): boolean;\n\n /**\n * Returns a `LayoutInfo` for the given drop target.\n */\n getDropTargetLayoutInfo?(target: ItemDropTarget): LayoutInfo;\n\n /** @private */\n getItemRect(key: Key): Rect | null {\n return this.getLayoutInfo(key)?.rect ?? null;\n }\n\n /** @private */\n getVisibleRect(): Rect {\n return this.virtualizer!.visibleRect;\n }\n}\n"],"names":[],"version":3,"file":"Layout.module.js.map"}
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more