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 @@
{"version":3,"file":"no-cycle.js","sourceRoot":"","sources":["../../src/rules/no-cycle.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,754 @@
export default `flf2a$ 4 4 8 0 14 0 8256
Graceful-6x4 by Mikhael Goikhman, http://migo.n3.net/, 20/Jan/2002.
Why did I make this font? Most of the figlet fonts are ugly for my taste.
Chars ".", "'" or "|" are not as graceful as "(", ")", "/", "\\" and "_".
Also most of the fonts unlike this one are either small or good, not both.
And finally, I wanted to have a strictly sized font, this one is 6x4.
I intended to create this elegant figlet font in 1996, but only in
January 2002 actually had the time to bring it to the working state. :)
Cyrillic letters are supported, maybe somewhen I will add hebrew latters.
To get a monospaced font 6x4, use "figlet -f graceful -m -1". Enjoy!
Permission is hereby given to modify this font, as long as the
modifier's name is added to this comment.
$$ @
$$ @
$$ @
$$ @@
_ @
/ \\ @
\\_/ @
(_) @@
_ _ @
(/(/ @
@
@@
_ _ @
/ )( \\@
) (@
\\_)(_/@@
____ @
/ (__)@
\\__ \\@
(__)_/@@
_ _ @
(// ) @
/ /_ @
(_/(/ @@
___ @
( _ \\@
/ _ /@
\\__\\_)@@
_ @
(/ @
@
@@
_ @
/ ) @
( ( @
\\_) @@
_ @
( \\ @
) ) @
(_/ @@
@
(\\/\\/)@
) ( @
(/\\/\\)@@
_ @
( ) @
(_ _) @
(_) @@
@
_ @
( ) @
(/ @@
@
___ @
(___) @
@@
@
@
_ @
(_) @@
_ @
/ ) @
/ / @
(_/ @@
__ @
/ \\ @
( 0 )@
\\__/ @@
__ @
/ \\ @
(_/ / @
(__) @@
____ @
(___ \\@
/ __/@
(____)@@
____ @
( __ \\@
(__ (@
(____/@@
___ @
/ _ \\@
(__ (@
(__/@@
___ @
/ __)@
(___ \\@
(____/@@
___ @
/ __)@
( _ \\@
\\___/@@
____ @
(__ )@
/ / @
(_/ @@
____ @
/ _ \\@
) _ (@
\\____/@@
___ @
/ _ \\ @
\\__ )@
(___/ @@
_ @
(_) @
_ @
(_) @@
_ @
(_) @
( ) @
(/ @@
__ @
/ / @
( ( @
\\_\\ @@
___ @
(___) @
___ @
(___) @@
__ @
\\ \\ @
) ) @
/_/ @@
___ @
(__ \\ @
(__/ @
(_) @@
___ @
/ \\@
( (__/@
\\___)@@
__ @
/ _\\ @
/ \\@
\\_/\\_/@@
____ @
( _ \\@
) _ (@
(____/@@
___ @
/ __)@
( (__ @
\\___)@@
____ @
( \\@
) D (@
(____/@@
____ @
( __)@
) _) @
(____)@@
____ @
( __)@
) _) @
(__) @@
___ @
/ __)@
( (_ \\@
\\___/@@
_ _ @
/ )( \\@
) __ (@
\\_)(_/@@
__ @
( ) @
)( @
(__) @@
__ @
_( )@
/ \\) \\@
\\____/@@
__ _ @
( / )@
) ( @
(__\\_)@@
__ @
( ) @
/ (_/\\@
\\____/@@
_ _ @
( \\/ )@
/ \\/ \\@
\\_)(_/@@
__ _ @
( ( \\@
/ /@
\\_)__)@@
__ @
/ \\ @
( O )@
\\__/ @@
____ @
( _ \\@
) __/@
(__) @@
__ @
/ \\ @
( O )@
\\__\\)@@
____ @
( _ \\@
) /@
(__\\_)@@
____ @
/ ___)@
\\___ \\@
(____/@@
____ @
(_ _)@
)( @
(__) @@
_ _ @
/ )( \\@
) \\/ (@
\\____/@@
_ _ @
/ )( \\@
\\ \\/ /@
\\__/ @@
_ _ @
/ )( \\@
\\ /\\ /@
(_/\\_)@@
_ _ @
( \\/ )@
) ( @
(_/\\_)@@
_ _ @
( \\/ )@
) / @
(__/ @@
____ @
(__ )@
/ _/ @
(____)@@
___ @
/ _) @
) (_ @
\\___) @@
_ @
( \\ @
\\ \\ @
\\_) @@
___ @
(_ \\@
_) (@
(___/@@
__ @
/ \\ @
(_/\\_)@
@@
@
@
____ @
(____)@@
_ @
\\) @
@
@@
__ @
/ _\\ @
/ \\@
\\_/\\_/@@
____ @
( _ \\@
) _ (@
(____/@@
___ @
/ __)@
( (__ @
\\___)@@
____ @
( \\@
) D (@
(____/@@
____ @
( __)@
) _) @
(____)@@
____ @
( __)@
) _) @
(__) @@
___ @
/ __)@
( (_ \\@
\\___/@@
_ _ @
/ )( \\@
) __ (@
\\_)(_/@@
__ @
( ) @
)( @
(__) @@
__ @
_( )@
/ \\) \\@
\\____/@@
__ _ @
( / )@
) ( @
(__\\_)@@
__ @
( ) @
/ (_/\\@
\\____/@@
_ _ @
( \\/ )@
/ \\/ \\@
\\_)(_/@@
__ _ @
( ( \\@
/ /@
\\_)__)@@
__ @
/ \\ @
( O )@
\\__/ @@
____ @
( _ \\@
) __/@
(__) @@
__ @
/ \\ @
( O )@
\\__\\)@@
____ @
( _ \\@
) /@
(__\\_)@@
____ @
/ ___)@
\\___ \\@
(____/@@
____ @
(_ _)@
)( @
(__) @@
_ _ @
/ )( \\@
) \\/ (@
\\____/@@
_ _ @
/ )( \\@
\\ \\/ /@
\\__/ @@
_ _ @
/ )( \\@
\\ /\\ /@
(_/\\_)@@
_ _ @
( \\/ )@
) ( @
(_/\\_)@@
_ _ @
( \\/ )@
) / @
(__/ @@
____ @
(__ )@
/ _/ @
(____)@@
___ @
( _)@
(_ (_ @
(___)@@
_ @
( \\ @
/ / @
\\_) @@
___ @
(_ ) @
_) _)@
(___) @@
__ @
(_ \\_ @
\\__)@
@@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
$ @
$ @
$ @
$ @@
0x0401 CYRILLIC CAPITAL LETTER IO
_--_ @
( __)@
) _) @
(____)@@
0x0410 CYRILLIC CAPITAL LETTER A
__ @
/ _\\ @
/ \\@
\\_/\\_/@@
0x0411 CYRILLIC CAPITAL LETTER BE
____ @
( __)@
) _ \\@
(____/@@
0x0412 CYRILLIC CAPITAL LETTER VE
____ @
( _ \\@
) _ (@
(____/@@
0x0413 CYRILLIC CAPITAL LETTER GHE
____ @
/ __)@
) ( @
\\_/ @@
0x0414 CYRILLIC CAPITAL LETTER DE
____ @
/ __ \\@
\\_ _/@
(_)(_)@@
0x0415 CYRILLIC CAPITAL LETTER IE
____ @
( __)@
) _) @
(____)@@
0x0416 CYRILLIC CAPITAL LETTER ZHE
_ _ @
/( ( \\@
) (@
\\_)_)/@@
0x0417 CYRILLIC CAPITAL LETTER ZE
____ @
( __ \\@
(__ (@
(____/@@
0x0418 CYRILLIC CAPITAL LETTER I
_ __ @
/ ) )@
\\ \\@
(__(_/@@
0x0419 CYRILLIC CAPITAL LETTER SHORT I
_ u_ @
/ ) )@
\\ \\@
(__(_/@@
0x041A CYRILLIC CAPITAL LETTER KA
__ _ @
( / )@
) ( @
(__\\_)@@
0x041B CYRILLIC CAPITAL LETTER EL
__ @
/ \\ @
/ /\\ \\@
\\_)(_/@@
0x041C CYRILLIC CAPITAL LETTER EM
_ _ @
( \\/ )@
/ \\/ \\@
\\_)(_/@@
0x041D CYRILLIC CAPITAL LETTER EN
_ _ @
/ )( \\@
) __ (@
\\_)(_/@@
0x041E CYRILLIC CAPITAL LETTER O
__ @
/ \\ @
( O )@
\\__/ @@
0x041F CYRILLIC CAPITAL LETTER PE
____ @
/ \\@
) /\\ (@
\\_)(_/@@
0x0420 CYRILLIC CAPITAL LETTER ER
____ @
( _ \\@
) __/@
(__) @@
0x0421 CYRILLIC CAPITAL LETTER ES
___ @
/ __)@
( (__ @
\\___)@@
0x0422 CYRILLIC CAPITAL LETTER TE
____ @
(_ _)@
)( @
(__) @@
0x0423 CYRILLIC CAPITAL LETTER U
_ _ @
( \\/ )@
) / @
(__/ @@
0x0424 CYRILLIC CAPITAL LETTER EF
____ @
/ __ \\@
\\_ _/@
(__) @@
0x0425 CYRILLIC CAPITAL LETTER HA
_ _ @
( \\/ )@
) ( @
(_/\\_)@@
0x0426 CYRILLIC CAPITAL LETTER TSE
_ _ @
/ \\( \\@
) (/ (@
\\___\\/@@
0x0427 CYRILLIC CAPITAL LETTER CHE
__ _ @
/ (/ \\@
\\__ (@
(__/@@
0x0428 CYRILLIC CAPITAL LETTER SHA
_ _ @
( ) ))@
/( ( \\@
\\____/@@
0x0429 CYRILLIC CAPITAL LETTER SHCHA
_ _ @
( ) ))@
/( ( \\@
\\___\\/@@
0x042A CYRILLIC CAPITAL LETTER HARD SIGN
__ @
(_ )_ @
/ _ \\@
\\___/@@
0x042B CYRILLIC CAPITAL LETTER YERU
_ _ @
( )( )@
/ _ \\\\@
\\___//@@
0x042C CYRILLIC CAPITAL LETTER SOFT SIGN
__ @
( )_ @
) _ \\@
(____/@@
0x042D CYRILLIC CAPITAL LETTER E
___ @
(__ \\ @
(_ )@
(___/ @@
0x042E CYRILLIC CAPITAL LETTER YU
_ __ @
/ / \\@
) O(@
\\_\\__/@@
0x042F CYRILLIC CAPITAL LETTER YA
____ @
/ _ )@
\\ \\@
(_/__/@@
0x0430 CYRILLIC SMALL LETTER A
__ @
/ _\\ @
/ \\@
\\_/\\_/@@
0x0431 CYRILLIC SMALL LETTER BE
____ @
( __)@
) _ \\@
(____/@@
0x0432 CYRILLIC SMALL LETTER VE
____ @
( _ \\@
) _ (@
(____/@@
0x0433 CYRILLIC SMALL LETTER GHE
____ @
/ __)@
) ( @
\\_/ @@
0x0434 CYRILLIC SMALL LETTER DE
____ @
/ __ \\@
\\_ _/@
(_)(_)@@
0x0435 CYRILLIC SMALL LETTER IE
____ @
( __)@
) _) @
(____)@@
0x0436 CYRILLIC SMALL LETTER ZHE
_ _ @
/( ( \\@
) (@
\\_)_)/@@
0x0437 CYRILLIC SMALL LETTER ZE
____ @
( __ \\@
(__ (@
(____/@@
0x0438 CYRILLIC SMALL LETTER I
_ __ @
/ ) )@
\\ \\@
(__(_/@@
0x0439 CYRILLIC SMALL LETTER SHORT I
_ u_ @
/ ) )@
\\ \\@
(__(_/@@
0x043A CYRILLIC SMALL LETTER KA
__ _ @
( / )@
) ( @
(__\\_)@@
0x043B CYRILLIC SMALL LETTER EL
__ @
/ \\ @
/ /\\ \\@
\\_)(_/@@
0x043C CYRILLIC SMALL LETTER EM
_ _ @
( \\/ )@
/ \\/ \\@
\\_)(_/@@
0x043D CYRILLIC SMALL LETTER EN
_ _ @
/ )( \\@
) __ (@
\\_)(_/@@
0x043E CYRILLIC SMALL LETTER O
__ @
/ \\ @
( O )@
\\__/ @@
0x043F CYRILLIC SMALL LETTER PE
____ @
/ \\@
) /\\ (@
\\_)(_/@@
0x0440 CYRILLIC SMALL LETTER ER
____ @
( _ \\@
) __/@
(__) @@
0x0441 CYRILLIC SMALL LETTER ES
___ @
/ __)@
( (__ @
\\___)@@
0x0442 CYRILLIC SMALL LETTER TE
____ @
(_ _)@
)( @
(__) @@
0x0443 CYRILLIC SMALL LETTER U
_ _ @
( \\/ )@
) / @
(__/ @@
0x0444 CYRILLIC SMALL LETTER EF
____ @
/ __ \\@
\\_ _/@
(__) @@
0x0445 CYRILLIC SMALL LETTER HA
_ _ @
( \\/ )@
) ( @
(_/\\_)@@
0x0446 CYRILLIC SMALL LETTER TSE
_ _ @
/ \\( \\@
) (/ (@
\\___\\/@@
0x0447 CYRILLIC SMALL LETTER CHE
__ _ @
/ (/ \\@
\\__ (@
(__/@@
0x0448 CYRILLIC SMALL LETTER SHA
_ _ @
( ) ))@
/( ( \\@
\\____/@@
0x0449 CYRILLIC SMALL LETTER SHCHA
_ _ @
( ) ))@
/( ( \\@
\\___\\/@@
0x044A CYRILLIC SMALL LETTER HARD SIGN
__ @
(_ )_ @
/ _ \\@
\\___/@@
0x044B CYRILLIC SMALL LETTER YERU
_ _ @
( )( )@
/ _ \\\\@
\\___//@@
0x044C CYRILLIC SMALL LETTER SOFT SIGN
__ @
( )_ @
) _ \\@
(____/@@
0x044D CYRILLIC SMALL LETTER E
___ @
(__ \\ @
(_ )@
(___/ @@
0x044E CYRILLIC SMALL LETTER YU
_ __ @
/ / \\@
) O(@
\\_\\__/@@
0x044F CYRILLIC SMALL LETTER YA
____ @
/ _ )@
\\ \\@
(_/__/@@
0x0451 CYRILLIC SMALL LETTER IO
_--_ @
( __)@
) _) @
(____)@@
`
@@ -0,0 +1,20 @@
'use strict';
var define = require('define-properties');
var shimUnscopables = require('es-shim-unscopables');
var getPolyfill = require('./polyfill');
module.exports = function shim() {
var polyfill = getPolyfill();
define(
Array.prototype,
{ toSorted: polyfill },
{ toSorted: function () { return Array.prototype.toSorted !== polyfill; } }
);
shimUnscopables('toSorted');
return polyfill;
};
@@ -0,0 +1,16 @@
export { default as AccordionItem, AccordionItemIndicatorProps, AccordionItemBaseProps as AccordionItemProps } from './base/accordion-item-base.mjs';
export { default as Accordion, AccordionProps } from './accordion.mjs';
export { useAccordionItem } from './use-accordion-item.mjs';
export { useAccordion } from './use-accordion.mjs';
import '@heroui/theme';
import '@heroui/system';
import '@heroui/aria-utils';
import '@react-types/shared';
import 'react';
import 'framer-motion';
import '@react-types/accordion';
import '@heroui/react-utils';
import '@react-stately/tree';
import '@heroui/divider';
import './accordion-item.mjs';
import 'tailwind-variants';
@@ -0,0 +1,46 @@
{
"name": "@vitest/expect",
"type": "module",
"version": "4.0.9",
"description": "Jest's expect matchers as a Chai plugin",
"license": "MIT",
"funding": "https://opencollective.com/vitest",
"homepage": "https://github.com/vitest-dev/vitest/tree/main/packages/expect#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/vitest-dev/vitest.git",
"directory": "packages/expect"
},
"bugs": {
"url": "https://github.com/vitest-dev/vitest/issues"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./*": "./*"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"dependencies": {
"@standard-schema/spec": "^1.0.0",
"@types/chai": "^5.2.2",
"chai": "^6.2.0",
"tinyrainbow": "^3.0.3",
"@vitest/utils": "4.0.9",
"@vitest/spy": "4.0.9"
},
"devDependencies": {
"@vitest/runner": "4.0.9"
},
"scripts": {
"build": "premove dist && rollup -c",
"dev": "rollup -c --watch"
}
}
@@ -0,0 +1,14 @@
module.exports = colorSupport({ alwaysReturn: true }, colorSupport)
function colorSupport(options, obj) {
obj = obj || {}
options = options || {}
obj.level = 0
obj.hasBasic = false
obj.has256 = false
obj.has16m = false
if (!options.alwaysReturn) {
return false
}
return obj
}
@@ -0,0 +1,79 @@
'use strict';
// do not edit .js files directly - edit src/index.jst
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
var length, i, keys;
if (Array.isArray(a)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (!equal(a[i], b[i])) return false;
return true;
}
if ((a instanceof Map) && (b instanceof Map)) {
if (a.size !== b.size) return false;
for (i of a.entries())
if (!b.has(i[0])) return false;
for (i of a.entries())
if (!equal(i[1], b.get(i[0]))) return false;
return true;
}
if ((a instanceof Set) && (b instanceof Set)) {
if (a.size !== b.size) return false;
for (i of a.entries())
if (!b.has(i[0])) return false;
return true;
}
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (a[i] !== b[i]) return false;
return true;
}
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
keys = Object.keys(a);
length = keys.length;
if (length !== Object.keys(b).length) return false;
for (i = length; i-- !== 0;)
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
for (i = length; i-- !== 0;) {
var key = keys[i];
if (key === '_owner' && a.$$typeof) {
// React-specific: avoid traversing React elements' _owner.
// _owner contains circular references
// and is not needed when comparing the actual elements (and not their owners)
continue;
}
if (!equal(a[key], b[key])) return false;
}
return true;
}
// true if both NaN, false otherwise
return a!==a && b!==b;
};
@@ -0,0 +1 @@
{"mappings":"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","sources":["packages/@internationalized/date/src/calendars/GregorianCalendar.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\n// Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\nimport {AnyCalendarDate, Calendar} from '../types';\nimport {CalendarDate} from '../CalendarDate';\nimport {mod, Mutable} from '../utils';\n\nconst EPOCH = 1721426; // 001/01/03 Julian C.E.\nexport function gregorianToJulianDay(era: string, year: number, month: number, day: number): number {\n year = getExtendedYear(era, year);\n\n let y1 = year - 1;\n let monthOffset = -2;\n if (month <= 2) {\n monthOffset = 0;\n } else if (isLeapYear(year)) {\n monthOffset = -1;\n }\n\n return (\n EPOCH -\n 1 +\n 365 * y1 +\n Math.floor(y1 / 4) -\n Math.floor(y1 / 100) +\n Math.floor(y1 / 400) +\n Math.floor((367 * month - 362) / 12 + monthOffset + day)\n );\n}\n\nexport function isLeapYear(year: number): boolean {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function getExtendedYear(era: string, year: number): number {\n return era === 'BC' ? 1 - year : year;\n}\n\nexport function fromExtendedYear(year: number): [string, number] {\n let era = 'AD';\n if (year <= 0) {\n era = 'BC';\n year = 1 - year;\n }\n\n return [era, year];\n}\n\nconst daysInMonth = {\n standard: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n leapyear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n};\n\n/**\n * The Gregorian calendar is the most commonly used calendar system in the world. It supports two eras: BC, and AD.\n * Years always contain 12 months, and 365 or 366 days depending on whether it is a leap year.\n */\nexport class GregorianCalendar implements Calendar {\n identifier = 'gregory';\n\n fromJulianDay(jd: number): CalendarDate {\n let jd0 = jd;\n let depoch = jd0 - EPOCH;\n let quadricent = Math.floor(depoch / 146097);\n let dqc = mod(depoch, 146097);\n let cent = Math.floor(dqc / 36524Line truncated
@@ -0,0 +1,84 @@
"use client";
import {
usePopoverContext
} from "./chunk-CGIRYUEE.mjs";
// src/popover-content.tsx
import { useMemo, useRef } from "react";
import { DismissButton } from "@react-aria/overlays";
import { TRANSITION_VARIANTS } from "@heroui/framer-utils";
import { m, LazyMotion } from "framer-motion";
import { getTransformOrigins } from "@heroui/aria-utils";
import { useDialog } from "@react-aria/dialog";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
var domAnimation = () => import("@heroui/dom-animation").then((res) => res.default);
var PopoverContent = (props) => {
const { as, children, className, ...otherProps } = props;
const {
Component: OverlayComponent,
placement,
backdrop,
motionProps,
disableAnimation,
getPopoverProps,
getDialogProps,
getBackdropProps,
getContentProps,
isNonModal,
onClose
} = usePopoverContext();
const dialogRef = useRef(null);
const { dialogProps: ariaDialogProps, titleProps } = useDialog({}, dialogRef);
const dialogProps = getDialogProps({
ref: dialogRef,
...ariaDialogProps,
...otherProps
});
const Component = as || OverlayComponent || "div";
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
!isNonModal && /* @__PURE__ */ jsx(DismissButton, { onDismiss: onClose }),
/* @__PURE__ */ jsx(Component, { ...dialogProps, children: /* @__PURE__ */ jsx("div", { ...getContentProps({ className }), children: typeof children === "function" ? children(titleProps) : children }) }),
/* @__PURE__ */ jsx(DismissButton, { onDismiss: onClose })
] });
const backdropContent = useMemo(() => {
if (backdrop === "transparent") {
return null;
}
if (disableAnimation) {
return /* @__PURE__ */ jsx("div", { ...getBackdropProps() });
}
return /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(
m.div,
{
animate: "enter",
exit: "exit",
initial: "exit",
variants: TRANSITION_VARIANTS.fade,
...getBackdropProps()
}
) });
}, [backdrop, disableAnimation, getBackdropProps]);
const style = placement ? getTransformOrigins(placement === "center" ? "top" : placement) : void 0;
const contents = /* @__PURE__ */ jsx(Fragment, { children: disableAnimation ? content : /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(
m.div,
{
animate: "enter",
exit: "exit",
initial: "initial",
style,
variants: TRANSITION_VARIANTS.scaleSpringOpacity,
...motionProps,
children: content
}
) }) });
return /* @__PURE__ */ jsxs("div", { ...getPopoverProps(), children: [
backdropContent,
contents
] });
};
PopoverContent.displayName = "HeroUI.PopoverContent";
var popover_content_default = PopoverContent;
export {
popover_content_default
};
@@ -0,0 +1 @@
{"name":"react-dropzone","version":"14.3.8","requiresBuild":false,"files":{".editorconfig":{"checkedAt":1794532126893,"integrity":"sha512-/XZbampcV9dbLG5dZCvtFAo1LJ+48rvrvwNU9Y7cszLrAZ6mdvTyMPspCF9z4L8+G2oQd+Fq1b5hpJkOhp6TsQ==","mode":420,"size":214},".eslintignore":{"checkedAt":1794532126893,"integrity":"sha512-eZh1gEvInRhCe6/In0K6POZCdNKi9sjUdw1x8T/yCVcqnWYcpA+qTFcQxqVxqMiqhwn2Du48bA14tngwttx7/Q==","mode":420,"size":29},".eslintrc":{"checkedAt":1794532126893,"integrity":"sha512-Baq5Bqkh+1ZGFhZ9R5tcMwCimSNs/YXsXjUyIRvh7Bmk+9F1TANTd1wiXYjpyr5jYvoP+SXrugloGrVRdRknUQ==","mode":420,"size":633},"examples/.eslintrc":{"checkedAt":1794532126893,"integrity":"sha512-0SmPsoZpb2XmWFbgEAczlLKqEytKsKZeYpduUus1T5M1zAnyDIEWuqBu5rHl/QONhAK+MpdO+4oGewQS6OTgiQ==","mode":420,"size":47},"src/.eslintrc":{"checkedAt":1794532126894,"integrity":"sha512-UAbedop5V6+A+740q2pC8xA3Uil80e8DYqZHi4DVvx3u+GJsxMasefDCg8hHyQxi5i6h+ZUpa6MKzcv++vSiEQ==","mode":420,"size":660},"typings/.eslintrc":{"checkedAt":1794532126894,"integrity":"sha512-l4+W4coIjNGA+gq37I1NsrdJOKnP+0gA7gkDxvYX3pkootdlPhubH+94TuBo7ChGUNfuNQjcVRT7HTDRlkRQzg==","mode":420,"size":479},".nvmrc":{"checkedAt":1794532126894,"integrity":"sha512-G8jdy7c/hMQqzY+wxqUDiRU741B6iGQbJO0uVa+9TM5QtAOfmVE04HuLY3juGm7/S19LiCqL2pGTu7mXNKb0tQ==","mode":420,"size":8},".husky/commit-msg":{"checkedAt":1794532126894,"integrity":"sha512-1KvOaQsfF9B0cpI8/fxde4ZUIUJStqQ6ObOkZLvRmL7sdwUH43UuUpJh/6hwW9hhxW8SMJJZE55B5bZI59nKRA==","mode":493,"size":94},"LICENSE":{"checkedAt":1794532126894,"integrity":"sha512-09b6u3Re49v0jo+Wbjaaj7RssCKYpIiI4x9PupV9n5RJHyLzIJuSesrEFnuhEptTng62RmEIdP0fJqdv/SrSkA==","mode":420,"size":1082},".husky/pre-commit":{"checkedAt":1794532126894,"integrity":"sha512-MWXhVHD0YA0TxxdH68ENrWzLp+/l02q6jN0YNi4Bw9I+NB5/S71RMTwcdmWfY0BWbn2tKcVxXlP2cTA28lW8KQ==","mode":493,"size":97},"examples/theme.css":{"checkedAt":1794532126894,"integrity":"sha512-s413HMJjBHt/7tyNv9xlf6Y2fa7Ir4hozuIjs0x5aGg3vvf8xYVeHgSerI+rOHOli96T5BSAQMkozy+agFeE9A==","mode":420,"size":555},".babelrc.js":{"checkedAt":1794532126895,"integrity":"sha512-cnCWjWHqOTOXCLL87+v23scGPjseFmSFlM2SPhPo6i4J8+SxSEtZibBN4Eyytq31tOFcjQNMhjXGIJpx0sa0dg==","mode":420,"size":819},"commitlint.config.js":{"checkedAt":1794532126895,"integrity":"sha512-rvcZicwoT8G0pXMcR5XSOnhyYMAKr6wj6sCjStrzhn4NB8goK3A5vKnImOz2VlZgNpGAPDqDjltKFKW0yq3QTQ==","mode":420,"size":62},"dist/es/index.js":{"checkedAt":1794532126895,"integrity":"sha512-Ouvzf9OOPdqjzdEVsi9ph1CLkDBM8c2zlySe5UTMnyUgCg+P6IBCwFgmPx9g90njJbW+wcmtpiR7a/WR22v4hQ==","mode":493,"size":37838},"dist/es/utils/index.js":{"checkedAt":1794532126895,"integrity":"sha512-Eb0RcAF/7/iFmKiB+JgRbXV0odNbT7i7E7XaFa6DvvLLO8gnWv9wk1Vh9tba6e1+U83nqIC99ZzgTZMy+jsLeQ==","mode":420,"size":13565},"dist/index.js":{"checkedAt":1794532126896,"integrity":"sha512-uIo/EYBpWY3UiEFhHl0/kgkJH7FV3mSS1t9mlMAIZNtl/IL31UMc76M3RD0Y7IbLCyWaF8+QD4irNh2DG1T7Xw==","mode":420,"size":267242},"src/index.js":{"checkedAt":1794532126896,"integrity":"sha512-dVpq1Y8uu9rT9NyqTojIrc2vwDFKehvkP9U1PEZRP5JByXwdOpGAsAT2y66T/Te1fNte3hLQbtNyankpIhN61w==","mode":493,"size":31445},"src/utils/index.js":{"checkedAt":1794532126896,"integrity":"sha512-N9+NjRSHMPfd2tP8mKmLfKiTc08N1rtQlSLfdod6QztscyjjkLXoWMafc7FyzRbbTJ5br1gDFPrRO79UgN1PYg==","mode":420,"size":8953},"src/index.spec.js":{"checkedAt":1794532126897,"integrity":"sha512-Q4uO+GTR7PQhgXWoloteUmkFbvTtxxGNS5ajUXX2i7ckdYu+eClvaevrGPuUCyAfObbUgRFZp5qB+d/V4ExlSg==","mode":420,"size":108014},"src/utils/index.spec.js":{"checkedAt":1794532126897,"integrity":"sha512-agzgfgSLH1XtZPOlwAqN8tNayJ0QnX5fVutByYzn+qsrDHI6sO0AZ8yNTeelgeh083ppJlHyF2H1fc3RGgMHdQ==","mode":420,"size":16847},"rollup.config.js":{"checkedAt":1794532126897,"integrity":"sha512-1WQ6l4J1W9Wl8+pNHMjWcYZRr+dS4m2msQEk9BIJ3IozQ1uVaUAA23zXapW0pllgMWUQL9zJnjveuY4T61xm0w==","mode":420,"size":776},"styleguide.config.js":{"checkedAt":1794532126897,"integrity":"sha512-OvXHR5Ejz+Nda0jEzi6PGsbbazX5+kO2CFHMGjpP6pYcVZgmN12lZSI/QaTPX8ybJm4qUp6uQAXf9oobcTZdUA==","mode":420,"size":2594},"testSetup.js":{"checkedAt":1794532126897,"integrity":"sha512-knXhFyQT6ghhAGuxxDySZai+XqsNAfDAebBeVCd0kivIhePMWi4JVRGTtAmKJ8/lnWpDbZ5WwuhMgsMmsZWFRg==","mode":420,"size":203},"dist/es/package.json":{"checkedAt":1794532126897,"integrity":"sha512-yJaw9MUXdELVmz7z3SYVp2blYklya3nL3pU6DnmPcM5rDXeD26fLnxMcB3WmvAQ/Uq9woAMNLTYvYRv/3m6T8Q==","mode":420,"size":18},"package.json":{"checkedAt":1794532126898,"integrity":"sha512-sD8NdIXole1PByPWeHWtlFFnBSOyaUYefucJos57Q7hOnDcWtA0u/SoN2USyl2uSt9m/6e/B4Knle8j45UTkwA==","mode":420,"size":6021},"typings/tests/tsconfig.json":{"checkedAt":1794532126898,"integrity":"sha512-ivSpkPenBzymrqRIgKqiIII7PaYr3P+yxbb1u3g1Y8pHkMtVdompKZQK7F6iktPPnq+eEzvJp9FsObaA3yZPLA==","mode":420,"size":373},"examples/accept/README.md":{"checkedAt":1794532126898,"integrity":"sha512-gQi88uINe9kQoESI1ZoWgN+GkelOMawa3mtb1i6iWbp/r4Jp2j9YJSVEue1G2QnobH6ud7/oPJ3cooBsoB4XQg==","mode":420,"size":3943},"examples/basic/README.md":{"checkedAt":1794532126898,"integrity":"sha512-cChdkCLine truncated
@@ -0,0 +1,17 @@
'use strict';
var includes = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st['throws'](function () { includes(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { includes(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(includes, t);
t.end();
});
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson
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,344 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.estreeWalker = {}));
}(this, (function (exports) { 'use strict';
// @ts-check
/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef {{
skip: () => void;
remove: () => void;
replace: (node: BaseNode) => void;
}} WalkerContext */
class WalkerBase {
constructor() {
/** @type {boolean} */
this.should_skip = false;
/** @type {boolean} */
this.should_remove = false;
/** @type {BaseNode | null} */
this.replacement = null;
/** @type {WalkerContext} */
this.context = {
skip: () => (this.should_skip = true),
remove: () => (this.should_remove = true),
replace: (node) => (this.replacement = node)
};
}
/**
*
* @param {any} parent
* @param {string} prop
* @param {number} index
* @param {BaseNode} node
*/
replace(parent, prop, index, node) {
if (parent) {
if (index !== null) {
parent[prop][index] = node;
} else {
parent[prop] = node;
}
}
}
/**
*
* @param {any} parent
* @param {string} prop
* @param {number} index
*/
remove(parent, prop, index) {
if (parent) {
if (index !== null) {
parent[prop].splice(index, 1);
} else {
delete parent[prop];
}
}
}
}
// @ts-check
/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef { import('./walker.js').WalkerContext} WalkerContext */
/** @typedef {(
* this: WalkerContext,
* node: BaseNode,
* parent: BaseNode,
* key: string,
* index: number
* ) => void} SyncHandler */
class SyncWalker extends WalkerBase {
/**
*
* @param {SyncHandler} enter
* @param {SyncHandler} leave
*/
constructor(enter, leave) {
super();
/** @type {SyncHandler} */
this.enter = enter;
/** @type {SyncHandler} */
this.leave = leave;
}
/**
*
* @param {BaseNode} node
* @param {BaseNode} parent
* @param {string} [prop]
* @param {number} [index]
* @returns {BaseNode}
*/
visit(node, parent, prop, index) {
if (node) {
if (this.enter) {
const _should_skip = this.should_skip;
const _should_remove = this.should_remove;
const _replacement = this.replacement;
this.should_skip = false;
this.should_remove = false;
this.replacement = null;
this.enter.call(this.context, node, parent, prop, index);
if (this.replacement) {
node = this.replacement;
this.replace(parent, prop, index, node);
}
if (this.should_remove) {
this.remove(parent, prop, index);
}
const skipped = this.should_skip;
const removed = this.should_remove;
this.should_skip = _should_skip;
this.should_remove = _should_remove;
this.replacement = _replacement;
if (skipped) return node;
if (removed) return null;
}
for (const key in node) {
const value = node[key];
if (typeof value !== "object") {
continue;
} else if (Array.isArray(value)) {
for (let i = 0; i < value.length; i += 1) {
if (value[i] !== null && typeof value[i].type === 'string') {
if (!this.visit(value[i], node, key, i)) {
// removed
i--;
}
}
}
} else if (value !== null && typeof value.type === "string") {
this.visit(value, node, key, null);
}
}
if (this.leave) {
const _replacement = this.replacement;
const _should_remove = this.should_remove;
this.replacement = null;
this.should_remove = false;
this.leave.call(this.context, node, parent, prop, index);
if (this.replacement) {
node = this.replacement;
this.replace(parent, prop, index, node);
}
if (this.should_remove) {
this.remove(parent, prop, index);
}
const removed = this.should_remove;
this.replacement = _replacement;
this.should_remove = _should_remove;
if (removed) return null;
}
}
return node;
}
}
// @ts-check
/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef { import('./walker').WalkerContext} WalkerContext */
/** @typedef {(
* this: WalkerContext,
* node: BaseNode,
* parent: BaseNode,
* key: string,
* index: number
* ) => Promise<void>} AsyncHandler */
class AsyncWalker extends WalkerBase {
/**
*
* @param {AsyncHandler} enter
* @param {AsyncHandler} leave
*/
constructor(enter, leave) {
super();
/** @type {AsyncHandler} */
this.enter = enter;
/** @type {AsyncHandler} */
this.leave = leave;
}
/**
*
* @param {BaseNode} node
* @param {BaseNode} parent
* @param {string} [prop]
* @param {number} [index]
* @returns {Promise<BaseNode>}
*/
async visit(node, parent, prop, index) {
if (node) {
if (this.enter) {
const _should_skip = this.should_skip;
const _should_remove = this.should_remove;
const _replacement = this.replacement;
this.should_skip = false;
this.should_remove = false;
this.replacement = null;
await this.enter.call(this.context, node, parent, prop, index);
if (this.replacement) {
node = this.replacement;
this.replace(parent, prop, index, node);
}
if (this.should_remove) {
this.remove(parent, prop, index);
}
const skipped = this.should_skip;
const removed = this.should_remove;
this.should_skip = _should_skip;
this.should_remove = _should_remove;
this.replacement = _replacement;
if (skipped) return node;
if (removed) return null;
}
for (const key in node) {
const value = node[key];
if (typeof value !== "object") {
continue;
} else if (Array.isArray(value)) {
for (let i = 0; i < value.length; i += 1) {
if (value[i] !== null && typeof value[i].type === 'string') {
if (!(await this.visit(value[i], node, key, i))) {
// removed
i--;
}
}
}
} else if (value !== null && typeof value.type === "string") {
await this.visit(value, node, key, null);
}
}
if (this.leave) {
const _replacement = this.replacement;
const _should_remove = this.should_remove;
this.replacement = null;
this.should_remove = false;
await this.leave.call(this.context, node, parent, prop, index);
if (this.replacement) {
node = this.replacement;
this.replace(parent, prop, index, node);
}
if (this.should_remove) {
this.remove(parent, prop, index);
}
const removed = this.should_remove;
this.replacement = _replacement;
this.should_remove = _should_remove;
if (removed) return null;
}
}
return node;
}
}
// @ts-check
/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef { import('./sync.js').SyncHandler} SyncHandler */
/** @typedef { import('./async.js').AsyncHandler} AsyncHandler */
/**
*
* @param {BaseNode} ast
* @param {{
* enter?: SyncHandler
* leave?: SyncHandler
* }} walker
* @returns {BaseNode}
*/
function walk(ast, { enter, leave }) {
const instance = new SyncWalker(enter, leave);
return instance.visit(ast, null);
}
/**
*
* @param {BaseNode} ast
* @param {{
* enter?: AsyncHandler
* leave?: AsyncHandler
* }} walker
* @returns {Promise<BaseNode>}
*/
async function asyncWalk(ast, { enter, leave }) {
const instance = new AsyncWalker(enter, leave);
return await instance.visit(ast, null);
}
exports.asyncWalk = asyncWalk;
exports.walk = walk;
Object.defineProperty(exports, '__esModule', { value: true });
})));
@@ -0,0 +1,268 @@
import {
tv
} from "./chunk-UWE6H66T.mjs";
import {
dataFocusVisibleClasses
} from "./chunk-GH5E4FQB.mjs";
// src/components/table.ts
var table = tv({
slots: {
base: "flex flex-col relative gap-4",
wrapper: [
"p-4",
"z-0",
"flex",
"flex-col",
"relative",
"justify-between",
"gap-4",
"shadow-small",
"bg-content1",
"overflow-auto"
],
table: "min-w-full h-auto",
thead: "[&>tr]:first:rounded-lg",
tbody: "",
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
th: [
"group/th",
"px-3",
"h-10",
"text-start",
"align-middle",
"bg-default-100",
"whitespace-nowrap",
"text-foreground-500",
"text-tiny",
"font-semibold",
"first:rounded-s-lg",
"last:rounded-e-lg",
"outline-none",
"data-[sortable=true]:cursor-pointer",
"data-[hover=true]:text-foreground-400",
...dataFocusVisibleClasses
],
td: [
"py-2",
"px-3",
"relative",
"align-middle",
"whitespace-normal",
"text-small",
"font-normal",
"outline-none",
"[&>*]:z-1",
"[&>*]:relative",
...dataFocusVisibleClasses,
"before:content-['']",
"before:absolute",
"before:z-0",
"before:inset-0",
"before:opacity-0",
"data-[selected=true]:before:opacity-100",
"group-data-[disabled=true]/tr:text-foreground-300",
"group-data-[disabled=true]/tr:cursor-not-allowed"
],
tfoot: "",
sortIcon: [
"ms-2",
"mb-px",
"opacity-0",
"text-inherit",
"inline-block",
"transition-transform-opacity",
"data-[visible=true]:opacity-100",
"group-data-[hover=true]/th:opacity-100",
"data-[direction=ascending]:rotate-180"
],
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
loadingWrapper: "absolute inset-0 flex items-center justify-center"
},
variants: {
color: {
default: {
td: "before:bg-default/60 data-[selected=true]:text-default-foreground"
},
primary: {
td: "before:bg-primary/20 data-[selected=true]:text-primary"
},
secondary: {
td: "before:bg-secondary/20 data-[selected=true]:text-secondary"
},
success: {
td: "before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"
},
warning: {
td: "before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"
},
danger: {
td: "before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"
}
},
layout: {
auto: {
table: "table-auto"
},
fixed: {
table: "table-fixed"
}
},
radius: {
none: {
wrapper: "rounded-none"
},
sm: {
wrapper: "rounded-small"
},
md: {
wrapper: "rounded-medium"
},
lg: {
wrapper: "rounded-large"
}
},
shadow: {
none: {
wrapper: "shadow-none"
},
sm: {
wrapper: "shadow-small"
},
md: {
wrapper: "shadow-medium"
},
lg: {
wrapper: "shadow-large"
}
},
hideHeader: {
true: {
thead: "hidden"
}
},
isStriped: {
true: {
td: [
"group-data-[odd=true]/tr:before:bg-default-100",
"group-data-[odd=true]/tr:before:opacity-100",
"group-data-[odd=true]/tr:before:-z-10"
]
}
},
isCompact: {
true: {
td: "py-1"
},
false: {}
},
isHeaderSticky: {
true: {
thead: "sticky top-0 z-20 [&>tr]:first:shadow-small"
}
},
isSelectable: {
true: {
tr: "cursor-default",
td: [
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100",
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"
]
}
},
isMultiSelectable: {
true: {
td: [
"group-data-[first=true]/tr:first:before:rounded-ts-lg",
"group-data-[first=true]/tr:last:before:rounded-te-lg",
"group-data-[middle=true]/tr:before:rounded-none",
"group-data-[last=true]/tr:first:before:rounded-bs-lg",
"group-data-[last=true]/tr:last:before:rounded-be-lg"
]
},
false: {
td: ["first:before:rounded-s-lg", "last:before:rounded-e-lg"]
}
},
fullWidth: {
true: {
base: "w-full",
wrapper: "w-full",
table: "w-full"
}
},
align: {
start: {
th: "text-start",
td: "text-start"
},
center: {
th: "text-center",
td: "text-center"
},
end: {
th: "text-end",
td: "text-end"
}
}
},
defaultVariants: {
layout: "auto",
shadow: "sm",
radius: "lg",
color: "default",
isCompact: false,
hideHeader: false,
isStriped: false,
fullWidth: true,
align: "start"
},
compoundVariants: [
{
isStriped: true,
color: "default",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"
}
},
{
isStriped: true,
color: "primary",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"
}
},
{
isStriped: true,
color: "secondary",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"
}
},
{
isStriped: true,
color: "success",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"
}
},
{
isStriped: true,
color: "warning",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"
}
},
{
isStriped: true,
color: "danger",
class: {
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"
}
}
]
});
export {
table
};
@@ -0,0 +1,26 @@
MIT License
Original Library
- Copyright (c) Marak Squires
Additional Functionality
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- Copyright (c) DABH (https://github.com/DABH)
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,236 @@
var $f7e14e656343df57$exports = require("./textSelection.main.js");
var $cvDGj$react = require("react");
var $cvDGj$reactariautils = require("@react-aria/utils");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useMove", () => $c09386fc48fa427d$export$36da96379f79f245);
/*
* 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 $c09386fc48fa427d$export$36da96379f79f245(props) {
let { onMoveStart: onMoveStart, onMove: onMove, onMoveEnd: onMoveEnd } = props;
let state = (0, $cvDGj$react.useRef)({
didMove: false,
lastPosition: null,
id: null
});
let { addGlobalListener: addGlobalListener, removeGlobalListener: removeGlobalListener } = (0, $cvDGj$reactariautils.useGlobalListeners)();
let move = (0, $cvDGj$reactariautils.useEffectEvent)((originalEvent, pointerType, deltaX, deltaY)=>{
if (deltaX === 0 && deltaY === 0) return;
if (!state.current.didMove) {
state.current.didMove = true;
onMoveStart === null || onMoveStart === void 0 ? void 0 : onMoveStart({
type: 'movestart',
pointerType: pointerType,
shiftKey: originalEvent.shiftKey,
metaKey: originalEvent.metaKey,
ctrlKey: originalEvent.ctrlKey,
altKey: originalEvent.altKey
});
}
onMove === null || onMove === void 0 ? void 0 : onMove({
type: 'move',
pointerType: pointerType,
deltaX: deltaX,
deltaY: deltaY,
shiftKey: originalEvent.shiftKey,
metaKey: originalEvent.metaKey,
ctrlKey: originalEvent.ctrlKey,
altKey: originalEvent.altKey
});
});
let end = (0, $cvDGj$reactariautils.useEffectEvent)((originalEvent, pointerType)=>{
(0, $f7e14e656343df57$exports.restoreTextSelection)();
if (state.current.didMove) onMoveEnd === null || onMoveEnd === void 0 ? void 0 : onMoveEnd({
type: 'moveend',
pointerType: pointerType,
shiftKey: originalEvent.shiftKey,
metaKey: originalEvent.metaKey,
ctrlKey: originalEvent.ctrlKey,
altKey: originalEvent.altKey
});
});
let moveProps = (0, $cvDGj$react.useMemo)(()=>{
let moveProps = {};
let start = ()=>{
(0, $f7e14e656343df57$exports.disableTextSelection)();
state.current.didMove = false;
};
if (typeof PointerEvent === 'undefined' && process.env.NODE_ENV === 'test') {
let onMouseMove = (e)=>{
if (e.button === 0) {
var _state_current_lastPosition, _state_current_lastPosition1;
var _state_current_lastPosition_pageX, _state_current_lastPosition_pageY;
move(e, 'mouse', e.pageX - ((_state_current_lastPosition_pageX = (_state_current_lastPosition = state.current.lastPosition) === null || _state_current_lastPosition === void 0 ? void 0 : _state_current_lastPosition.pageX) !== null && _state_current_lastPosition_pageX !== void 0 ? _state_current_lastPosition_pageX : 0), e.pageY - ((_state_current_lastPosition_pageY = (_state_current_lastPosition1 = state.current.lastPosition) === null || _state_current_lastPosition1 === void 0 ? void 0 : _state_current_lastPosition1.pageY) !== null && _state_current_lastPosition_pageY !== void 0 ? _state_current_lastPosition_pageY : 0));
state.current.lastPosition = {
pageX: e.pageX,
pageY: e.pageY
};
}
};
let onMouseUp = (e)=>{
if (e.button === 0) {
end(e, 'mouse');
removeGlobalListener(window, 'mousemove', onMouseMove, false);
removeGlobalListener(window, 'mouseup', onMouseUp, false);
}
};
moveProps.onMouseDown = (e)=>{
if (e.button === 0) {
start();
e.stopPropagation();
e.preventDefault();
state.current.lastPosition = {
pageX: e.pageX,
pageY: e.pageY
};
addGlobalListener(window, 'mousemove', onMouseMove, false);
addGlobalListener(window, 'mouseup', onMouseUp, false);
}
};
let onTouchMove = (e)=>{
let touch = [
...e.changedTouches
].findIndex(({ identifier: identifier })=>identifier === state.current.id);
if (touch >= 0) {
var _state_current_lastPosition, _state_current_lastPosition1;
let { pageX: pageX, pageY: pageY } = e.changedTouches[touch];
var _state_current_lastPosition_pageX, _state_current_lastPosition_pageY;
move(e, 'touch', pageX - ((_state_current_lastPosition_pageX = (_state_current_lastPosition = state.current.lastPosition) === null || _state_current_lastPosition === void 0 ? void 0 : _state_current_lastPosition.pageX) !== null && _state_current_lastPosition_pageX !== void 0 ? _state_current_lastPosition_pageX : 0), pageY - ((_state_current_lastPosition_pageY = (_state_current_lastPosition1 = state.current.lastPosition) === null || _state_current_lastPosition1 === void 0 ? void 0 : _state_current_lastPosition1.pageY) !== null && _state_current_lastPosition_pageY !== void 0 ? _state_current_lastPosition_pageY : 0));
state.current.lastPosition = {
pageX: pageX,
pageY: pageY
};
}
};
let onTouchEnd = (e)=>{
let touch = [
...e.changedTouches
].findIndex(({ identifier: identifier })=>identifier === state.current.id);
if (touch >= 0) {
end(e, 'touch');
state.current.id = null;
removeGlobalListener(window, 'touchmove', onTouchMove);
removeGlobalListener(window, 'touchend', onTouchEnd);
removeGlobalListener(window, 'touchcancel', onTouchEnd);
}
};
moveProps.onTouchStart = (e)=>{
if (e.changedTouches.length === 0 || state.current.id != null) return;
let { pageX: pageX, pageY: pageY, identifier: identifier } = e.changedTouches[0];
start();
e.stopPropagation();
e.preventDefault();
state.current.lastPosition = {
pageX: pageX,
pageY: pageY
};
state.current.id = identifier;
addGlobalListener(window, 'touchmove', onTouchMove, false);
addGlobalListener(window, 'touchend', onTouchEnd, false);
addGlobalListener(window, 'touchcancel', onTouchEnd, false);
};
} else {
let onPointerMove = (e)=>{
if (e.pointerId === state.current.id) {
var _state_current_lastPosition, _state_current_lastPosition1;
let pointerType = e.pointerType || 'mouse';
var _state_current_lastPosition_pageX, _state_current_lastPosition_pageY;
// Problems with PointerEvent#movementX/movementY:
// 1. it is always 0 on macOS Safari.
// 2. On Chrome Android, it's scaled by devicePixelRatio, but not on Chrome macOS
move(e, pointerType, e.pageX - ((_state_current_lastPosition_pageX = (_state_current_lastPosition = state.current.lastPosition) === null || _state_current_lastPosition === void 0 ? void 0 : _state_current_lastPosition.pageX) !== null && _state_current_lastPosition_pageX !== void 0 ? _state_current_lastPosition_pageX : 0), e.pageY - ((_state_current_lastPosition_pageY = (_state_current_lastPosition1 = state.current.lastPosition) === null || _state_current_lastPosition1 === void 0 ? void 0 : _state_current_lastPosition1.pageY) !== null && _state_current_lastPosition_pageY !== void 0 ? _state_current_lastPosition_pageY : 0));
state.current.lastPosition = {
pageX: e.pageX,
pageY: e.pageY
};
}
};
let onPointerUp = (e)=>{
if (e.pointerId === state.current.id) {
let pointerType = e.pointerType || 'mouse';
end(e, pointerType);
state.current.id = null;
removeGlobalListener(window, 'pointermove', onPointerMove, false);
removeGlobalListener(window, 'pointerup', onPointerUp, false);
removeGlobalListener(window, 'pointercancel', onPointerUp, false);
}
};
moveProps.onPointerDown = (e)=>{
if (e.button === 0 && state.current.id == null) {
start();
e.stopPropagation();
e.preventDefault();
state.current.lastPosition = {
pageX: e.pageX,
pageY: e.pageY
};
state.current.id = e.pointerId;
addGlobalListener(window, 'pointermove', onPointerMove, false);
addGlobalListener(window, 'pointerup', onPointerUp, false);
addGlobalListener(window, 'pointercancel', onPointerUp, false);
}
};
}
let triggerKeyboardMove = (e, deltaX, deltaY)=>{
start();
move(e, 'keyboard', deltaX, deltaY);
end(e, 'keyboard');
};
moveProps.onKeyDown = (e)=>{
switch(e.key){
case 'Left':
case 'ArrowLeft':
e.preventDefault();
e.stopPropagation();
triggerKeyboardMove(e, -1, 0);
break;
case 'Right':
case 'ArrowRight':
e.preventDefault();
e.stopPropagation();
triggerKeyboardMove(e, 1, 0);
break;
case 'Up':
case 'ArrowUp':
e.preventDefault();
e.stopPropagation();
triggerKeyboardMove(e, 0, -1);
break;
case 'Down':
case 'ArrowDown':
e.preventDefault();
e.stopPropagation();
triggerKeyboardMove(e, 0, 1);
break;
}
};
return moveProps;
}, [
state,
addGlobalListener,
removeGlobalListener,
move,
end
]);
return {
moveProps: moveProps
};
}
//# sourceMappingURL=useMove.main.js.map
@@ -0,0 +1,38 @@
{
"name": "@codemirror/state",
"version": "6.5.3",
"description": "Editor state data structures for the CodeMirror code editor",
"scripts": {
"test": "cm-runtests",
"prepare": "cm-buildhelper src/index.ts"
},
"keywords": [
"editor",
"code"
],
"author": {
"name": "Marijn Haverbeke",
"email": "marijn@haverbeke.berlin",
"url": "http://marijnhaverbeke.nl"
},
"type": "module",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"types": "dist/index.d.ts",
"module": "dist/index.js",
"sideEffects": false,
"license": "MIT",
"dependencies": {
"@marijn/find-cluster-break": "^1.0.0"
},
"devDependencies": {
"@codemirror/buildhelper": "^1.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/codemirror/state.git"
}
}
@@ -0,0 +1,5 @@
declare module 'emoji-regex/es2015' {
function emojiRegex(): RegExp;
export = emojiRegex;
}
@@ -0,0 +1,271 @@
/**
* react-router v7.9.5
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
"use client";
import {
RSCDefaultRootErrorBoundary,
RSCStaticRouter,
ServerMode,
ServerRouter,
createCookie,
createCookieSessionStorage,
createMemorySessionStorage,
createRequestHandler,
createRoutesStub,
createSession,
createSessionStorage,
deserializeErrors,
getHydrationData,
href,
isCookie,
isSession,
routeRSCServerRequest,
setDevServerHooks
} from "./chunk-TPBVZP6U.mjs";
import {
Action,
Await,
AwaitContextProvider,
BrowserRouter,
DataRouterContext,
DataRouterStateContext,
ErrorResponseImpl,
FetchersContext,
Form,
FrameworkContext,
HashRouter,
HistoryRouter,
IDLE_BLOCKER,
IDLE_FETCHER,
IDLE_NAVIGATION,
Link,
Links,
LocationContext,
MemoryRouter,
Meta,
NavLink,
Navigate,
NavigationContext,
Outlet,
PrefetchPageLinks,
RemixErrorBoundary,
Route,
RouteContext,
Router,
RouterContextProvider,
RouterProvider,
Routes,
Scripts,
ScrollRestoration,
SingleFetchRedirectSymbol,
StaticRouter,
StaticRouterProvider,
ViewTransitionContext,
WithComponentProps,
WithErrorBoundaryProps,
WithHydrateFallbackProps,
createBrowserHistory,
createBrowserRouter,
createClientRoutes,
createClientRoutesWithHMRRevalidationOptOut,
createContext,
createHashRouter,
createMemoryRouter,
createPath,
createRouter,
createRoutesFromChildren,
createRoutesFromElements,
createSearchParams,
createStaticHandler2 as createStaticHandler,
createStaticRouter,
data,
decodeViaTurboStream,
generatePath,
getPatchRoutesOnNavigationFunction,
getTurboStreamSingleFetchDataStrategy,
hydrationRouteProperties,
invariant,
isRouteErrorResponse,
mapRouteProperties,
matchPath,
matchRoutes,
parsePath,
redirect,
redirectDocument,
renderMatches,
replace,
resolvePath,
shouldHydrateRouteLoader,
useActionData,
useAsyncError,
useAsyncValue,
useBeforeUnload,
useBlocker,
useFetcher,
useFetchers,
useFogOFWarDiscovery,
useFormAction,
useHref,
useInRouterContext,
useLinkClickHandler,
useLoaderData,
useLocation,
useMatch,
useMatches,
useNavigate,
useNavigation,
useNavigationType,
useOutlet,
useOutletContext,
useParams,
usePrompt,
useResolvedPath,
useRevalidator,
useRoute,
useRouteError,
useRouteLoaderData,
useRoutes,
useScrollRestoration,
useSearchParams,
useSubmit,
useViewTransitionState,
withComponentProps,
withErrorBoundaryProps,
withHydrateFallbackProps
} from "./chunk-RZ6LZWMW.mjs";
export {
Await,
BrowserRouter,
Form,
HashRouter,
IDLE_BLOCKER,
IDLE_FETCHER,
IDLE_NAVIGATION,
Link,
Links,
MemoryRouter,
Meta,
NavLink,
Navigate,
Action as NavigationType,
Outlet,
PrefetchPageLinks,
Route,
Router,
RouterContextProvider,
RouterProvider,
Routes,
Scripts,
ScrollRestoration,
ServerRouter,
StaticRouter,
StaticRouterProvider,
AwaitContextProvider as UNSAFE_AwaitContextProvider,
DataRouterContext as UNSAFE_DataRouterContext,
DataRouterStateContext as UNSAFE_DataRouterStateContext,
ErrorResponseImpl as UNSAFE_ErrorResponseImpl,
FetchersContext as UNSAFE_FetchersContext,
FrameworkContext as UNSAFE_FrameworkContext,
LocationContext as UNSAFE_LocationContext,
NavigationContext as UNSAFE_NavigationContext,
RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary,
RemixErrorBoundary as UNSAFE_RemixErrorBoundary,
RouteContext as UNSAFE_RouteContext,
ServerMode as UNSAFE_ServerMode,
SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol,
ViewTransitionContext as UNSAFE_ViewTransitionContext,
WithComponentProps as UNSAFE_WithComponentProps,
WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,
createBrowserHistory as UNSAFE_createBrowserHistory,
createClientRoutes as UNSAFE_createClientRoutes,
createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
createRouter as UNSAFE_createRouter,
decodeViaTurboStream as UNSAFE_decodeViaTurboStream,
deserializeErrors as UNSAFE_deserializeErrors,
getHydrationData as UNSAFE_getHydrationData,
getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction,
getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy,
hydrationRouteProperties as UNSAFE_hydrationRouteProperties,
invariant as UNSAFE_invariant,
mapRouteProperties as UNSAFE_mapRouteProperties,
shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader,
useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery,
useScrollRestoration as UNSAFE_useScrollRestoration,
withComponentProps as UNSAFE_withComponentProps,
withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
createBrowserRouter,
createContext,
createCookie,
createCookieSessionStorage,
createHashRouter,
createMemoryRouter,
createMemorySessionStorage,
createPath,
createRequestHandler,
createRoutesFromChildren,
createRoutesFromElements,
createRoutesStub,
createSearchParams,
createSession,
createSessionStorage,
createStaticHandler,
createStaticRouter,
data,
generatePath,
href,
isCookie,
isRouteErrorResponse,
isSession,
matchPath,
matchRoutes,
parsePath,
redirect,
redirectDocument,
renderMatches,
replace,
resolvePath,
HistoryRouter as unstable_HistoryRouter,
RSCStaticRouter as unstable_RSCStaticRouter,
routeRSCServerRequest as unstable_routeRSCServerRequest,
setDevServerHooks as unstable_setDevServerHooks,
usePrompt as unstable_usePrompt,
useRoute as unstable_useRoute,
useActionData,
useAsyncError,
useAsyncValue,
useBeforeUnload,
useBlocker,
useFetcher,
useFetchers,
useFormAction,
useHref,
useInRouterContext,
useLinkClickHandler,
useLoaderData,
useLocation,
useMatch,
useMatches,
useNavigate,
useNavigation,
useNavigationType,
useOutlet,
useOutletContext,
useParams,
useResolvedPath,
useRevalidator,
useRouteError,
useRouteLoaderData,
useRoutes,
useSearchParams,
useSubmit,
useViewTransitionState
};
@@ -0,0 +1,43 @@
{
"name": "optionator",
"version": "0.9.4",
"author": "George Zahariev <z@georgezahariev.com>",
"description": "option parsing and help generation",
"homepage": "https://github.com/gkz/optionator",
"keywords": [
"options",
"flags",
"option parsing",
"cli"
],
"files": [
"lib",
"README.md",
"LICENSE"
],
"main": "./lib/",
"bugs": "https://github.com/gkz/optionator/issues",
"license": "MIT",
"engines": {
"node": ">= 0.8.0"
},
"repository": {
"type": "git",
"url": "git://github.com/gkz/optionator.git"
},
"scripts": {
"test": "make test"
},
"dependencies": {
"prelude-ls": "^1.2.1",
"deep-is": "^0.1.3",
"word-wrap": "^1.2.5",
"type-check": "^0.4.0",
"levn": "^0.4.1",
"fast-levenshtein": "^2.0.6"
},
"devDependencies": {
"livescript": "^1.6.0",
"mocha": "^10.4.0"
}
}
@@ -0,0 +1,34 @@
{
"name": "resolve-from",
"version": "4.0.0",
"description": "Resolve the path of a module like `require.resolve()` but from a given path",
"license": "MIT",
"repository": "sindresorhus/resolve-from",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"require",
"resolve",
"path",
"module",
"from",
"like",
"import"
],
"devDependencies": {
"ava": "*",
"xo": "*"
}
}
@@ -0,0 +1 @@
{"mappings":"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","sources":["packages/@internationalized/date/src/calendars/GregorianCalendar.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\n// Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\nimport {AnyCalendarDate, Calendar} from '../types';\nimport {CalendarDate} from '../CalendarDate';\nimport {mod, Mutable} from '../utils';\n\nconst EPOCH = 1721426; // 001/01/03 Julian C.E.\nexport function gregorianToJulianDay(era: string, year: number, month: number, day: number): number {\n year = getExtendedYear(era, year);\n\n let y1 = year - 1;\n let monthOffset = -2;\n if (month <= 2) {\n monthOffset = 0;\n } else if (isLeapYear(year)) {\n monthOffset = -1;\n }\n\n return (\n EPOCH -\n 1 +\n 365 * y1 +\n Math.floor(y1 / 4) -\n Math.floor(y1 / 100) +\n Math.floor(y1 / 400) +\n Math.floor((367 * month - 362) / 12 + monthOffset + day)\n );\n}\n\nexport function isLeapYear(year: number): boolean {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function getExtendedYear(era: string, year: number): number {\n return era === 'BC' ? 1 - year : year;\n}\n\nexport function fromExtendedYear(year: number): [string, number] {\n let era = 'AD';\n if (year <= 0) {\n era = 'BC';\n year = 1 - year;\n }\n\n return [era, year];\n}\n\nconst daysInMonth = {\n standard: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n leapyear: [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n};\n\n/**\n * The Gregorian calendar is the most commonly used calendar system in the world. It supports two eras: BC, and AD.\n * Years always contain 12 months, and 365 or 366 days depending on whether it is a leap year.\n */\nexport class GregorianCalendar implements Calendar {\n identifier = 'gregory';\n\n fromJulianDay(jd: number): CalendarDate {\n let jd0 = jd;\n let depoch = jd0 - EPOCH;\n let quadricent = Math.floor(depoch / 146097);\n let dqc = mod(depoch, 146097);\n let cent = Math.floor(dqc / 36524);\n leLine truncated
@@ -0,0 +1,12 @@
/**
* Tokenize subcontent.
*
* @param {Array<Event>} eventsArray
* List of events.
* @returns {boolean}
* Whether subtokens were found.
*/
export function subtokenize(eventsArray: Array<Event>): boolean;
export { SpliceBuffer } from "./lib/splice-buffer.js";
import type { Event } from 'micromark-util-types';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,66 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @internal
*/
const inverted = Symbol('inverted');
/**
* @internal
*/
const expectNull = Symbol('expectNull');
/**
* @internal
*/
const expectUndefined = Symbol('expectUndefined');
/**
* @internal
*/
const expectNumber = Symbol('expectNumber');
/**
* @internal
*/
const expectString = Symbol('expectString');
/**
* @internal
*/
const expectBoolean = Symbol('expectBoolean');
/**
* @internal
*/
const expectVoid = Symbol('expectVoid');
/**
* @internal
*/
const expectFunction = Symbol('expectFunction');
/**
* @internal
*/
const expectObject = Symbol('expectObject');
/**
* @internal
*/
const expectArray = Symbol('expectArray');
/**
* @internal
*/
const expectSymbol = Symbol('expectSymbol');
/**
* @internal
*/
const expectAny = Symbol('expectAny');
/**
* @internal
*/
const expectUnknown = Symbol('expectUnknown');
/**
* @internal
*/
const expectNever = Symbol('expectNever');
/**
* @internal
*/
const expectNullable = Symbol('expectNullable');
/**
* @internal
*/
const expectBigInt = Symbol('expectBigInt');
@@ -0,0 +1 @@
{"name":"@types/crypto-js","version":"4.2.2","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532089978,"integrity":"sha512-HQaIQk9pwOcyKutyDk4o2a87WnotwYuLGYFW43emGm4FvIJFKPyg+OYaw5sTegKAKf+C5SKa1ACjzCLivbaHrQ==","mode":420,"size":1141},"README.md":{"checkedAt":1794532116718,"integrity":"sha512-amPx4etJa63JMJ41r20KbqaSi2Oj61d6waxfvI+LFix0c/kEmhK0h1TaxJ+pEHK1f+HhgwiBEm6p2iN9TEhYew==","mode":420,"size":612},"aes.d.ts":{"checkedAt":1794532116718,"integrity":"sha512-a5JfsC+4LrcCEgOMioHPv/vg4UaoB4JrjvvhKZcX/3s6fNN59qEN5tnaiHnghEbNrKsGZxqte1nq7mZ3d9/K4g==","mode":420,"size":62},"blowfish.d.ts":{"checkedAt":1794532116718,"integrity":"sha512-74F/EEbERkTxfQedz2FNzyhf1uy1JhHhShQU+SIG17UJuz+/QZUnKf8zXCin5q43lipg+aj3nXV7ogmQlIY6iA==","mode":420,"size":67},"core.d.ts":{"checkedAt":1794532116718,"integrity":"sha512-bdi2mmzzhv3h+Dhd/l8k9fR5zCp1vJpHS6eczIGxaTGthlExJzvdNMF5VYYnLgUC71oFXrpdW7aOerMOJfEdhg==","mode":420,"size":58},"enc-base64.d.ts":{"checkedAt":1794532116718,"integrity":"sha512-aCdPKuG4UxPvT6CL6RQY4VQ+2fSGOAgAgXtUOHzRfBn0qy4qNZc+1FN1eKiYgT98LDcuj4qnt89sn76oOWfs/Q==","mode":420,"size":69},"enc-base64url.d.ts":{"checkedAt":1794532116718,"integrity":"sha512-7dqC0cADcdkg2Htsuma8h9ZpDxB2vpAlPfcETrhIfnCOijHo1b7FyZj/PBipd+NtPTgARZLSBgrF3jI+T8fAEA==","mode":420,"size":72},"enc-hex.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-zl2d3WK2dGdQ6J05YnvIOz86YZJVG0ihyx6PmsRXYOtDCiMJBQ04uw3Fkum3JkuNz0UoTZ1oJPcm0fD317hsuQ==","mode":420,"size":66},"enc-latin1.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-g74PDIoLPa0pFoahMj9cxraGEdk+XKUSMvj295qyBkCfB67TWFYmBatK6BObZisldz0M+D+Q73qV+XiCUN019Q==","mode":420,"size":69},"enc-utf16.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-OeQVBKWGeXvl7yGaYLpyMxzJsLIKKOn1aQcgOYofsQlND515/aJQXEd0jVnTu7uBYhP04q9H7oIcRoEchu8HQw==","mode":420,"size":68},"enc-utf8.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-/yyHkbykfM0nZl65wuJIR3cpIxLqeoxcu8To8KB+svlzpy0kIwGmHZO54Z6uiVag7tau03kL3bLZ303usiArzw==","mode":420,"size":67},"evpkdf.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-u1O0JyYQaImXwEurc+ZKkp2Xtb5Mem4uW1NdrshPX8PU1D9YzI08fGqtrR//buRVeI0pcjAezLe4AkgXk9s/+A==","mode":420,"size":65},"format-hex.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-hjh/Y+e3VopXQ8U+/cy5ZsiH6y6WloHRQ3XpfiBOED0E7un/Do4Q47TvL0sqLKPWJTI+ibnDm+nAUjK9aXSPPw==","mode":420,"size":69},"format-openssl.d.ts":{"checkedAt":1794532116719,"integrity":"sha512-Jpr032bVfmieZVHOEWTsPlCq0PlOSeTLmZo6n9UtYhPX9ZAygCn8y7ZB9WfZ6dBNVWcLSyy1bL0Ci1YtHNzhQw==","mode":420,"size":73},"hmac-md5.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-lb33q3MbKZO5vJ0eFLAphpqexU3Lks2yFTk+0HL9Fu503Tij91OV7n3k9r4buRxjJhGDVCDa+r3/ihl57g9V/g==","mode":420,"size":66},"hmac-ripemd160.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-UyNm+MgMpKsofy0Dn2HUiud4Ah9894p0hxNbcsz0lg16LqWQEnAFGsSL1ZRHADmuBFLRS7kXVtpatWNxDFoYZw==","mode":420,"size":72},"hmac-sha1.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-cXPxMX71ys7ufJ4nAR+BJyxv63IwufWeeATv43TPFQkQY5hRsKFXYPcdLW1e8Zvq6b1NWO4f+C1tUayMHETv2A==","mode":420,"size":67},"hmac-sha224.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-H6J7QFITCcFmIo+Q/x2YX3D8qQ0scqlZ51szZEQTnMwMesgNuKW3rFgTxf6Ig/xPKhmRuvHBTQdB4ourMuu3tw==","mode":420,"size":69},"hmac-sha256.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-gCnDSMWdUftPKnIuXOGCNa0VxW4+PnSz1VBLvNhqmXGwtmUVWWL9V80+aqbm6Bp4Adx5LpzssinWNEBC4mW59A==","mode":420,"size":69},"hmac-sha3.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-Krt7T1LQ8WQKW8tk7PoPevklEkKf1RFNNzSRz1M97LPPSzDWRFBXsd0ezJ0atVYuNDruDyfOPFPTF4r52M1r6g==","mode":420,"size":67},"hmac-sha384.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-ISMxbpErAsQBSkpHPfHw8T5JrqXy1X2HOesyEObr/NrbhsNoQf8RZBwoJYpbIg/mjPtGIIrJzJoHHSJyGSZ3Bw==","mode":420,"size":69},"hmac-sha512.d.ts":{"checkedAt":1794532116720,"integrity":"sha512-ONxkGP7ghCa53mvhBlZf6s1VmpJ/KYOSVydISa/M1uAC10lH5XVmHqDf1tPuJHHOvKlEvuPwCLmOwpXg9Xg+ww==","mode":420,"size":69},"index.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-V/cHG1FNpUk9ndrhQTi1f07VAwvvT0InnH33JWzmAM3UF78d6eW4bo61dtpc8Syomj5NCLoZgM2/jXBbUx0UvA==","mode":420,"size":54332},"lib-typedarrays.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-tEALGq0eVhm0XNnwmYbpFt1SZ54daRMsnhLSWwVlK5R4Pcmza0Tw4+77RS2QWwJ9+VqZSep2xerVF2mPdiB+wQ==","mode":420,"size":72},"md5.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-C4Sd2mjQnauyzlRP017Cr6F6rjCcON4rDnydxQjHh/gnXKkROiilmkGRn/WhL9fhQFB35HFBDE32d2mjEQtgrw==","mode":420,"size":62},"mode-cfb.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-szUo6y+MXILaIn6x0KBqgOKle6AhS+bhZaWxRO/JGPun1V27vFT4mkj6grxrsrAfU5DJse5UqhaUOQBDDZdGzw==","mode":420,"size":67},"mode-ctr-gladman.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-T1SczC5webjehYHhPgNzNn4PIxGeCllTvrbjxiES161MS0qKXVZ0roIIkQWiT/+IS516fK11p0H3s3CDwxtOOg==","mode":420,"size":74},"mode-ctr.d.ts":{"checkedAt":1794532116721,"integrity":"sha512-RSSZM00VExjnaexklLWGjwgAiLDEkOj++pyO/8GlPTXCUkWQIj5ZWDXYPBP12X3an3KE8MSqWWZr48HkTS/5fw==","mode":420,"sizeLine truncated
@@ -0,0 +1,45 @@
import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from "./CalendarDate.module.js";
import {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from "./GregorianCalendar.module.js";
import {JapaneseCalendar as $62225008020f0a13$export$b746ab2b60cdffbf} from "./JapaneseCalendar.module.js";
import {BuddhistCalendar as $8d73d47422ca7302$export$42d20a78301dee44} from "./BuddhistCalendar.module.js";
import {TaiwanCalendar as $5f31bd6f0c8940b2$export$65e01080afcb0799} from "./TaiwanCalendar.module.js";
import {PersianCalendar as $f3ed2e4472ae7e25$export$37fccdbfd14c5939} from "./PersianCalendar.module.js";
import {IndianCalendar as $82c358003bdda0a8$export$39f31c639fa15726} from "./IndianCalendar.module.js";
import {IslamicCivilCalendar as $f2f3e0e3a817edbd$export$2066795aadd37bfc, IslamicTabularCalendar as $f2f3e0e3a817edbd$export$37f0887f2f9d22f7, IslamicUmalquraCalendar as $f2f3e0e3a817edbd$export$5baab4758c231076} from "./IslamicCalendar.module.js";
import {HebrewCalendar as $7c5f6fbf42389787$export$ca405048b8fb5af} from "./HebrewCalendar.module.js";
import {CopticCalendar as $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1, EthiopicAmeteAlemCalendar as $b956b2d7a6cf451f$export$d72e0c37005a4914, EthiopicCalendar as $b956b2d7a6cf451f$export$26ba6eab5e20cd7d} from "./EthiopicCalendar.module.js";
import {createCalendar as $64244302c3013299$export$dd0bbc9b26defe37} from "./createCalendar.module.js";
import {fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, fromDate as $11d87f3f76e88657$export$e57ff100d91bd4b9, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDate as $11d87f3f76e88657$export$93522d1a439f3617, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toLocalTimeZone as $11d87f3f76e88657$export$d9b67bc93c097491, toTime as $11d87f3f76e88657$export$d33f79e3ffc3dc83, toTimeZone as $11d87f3f76e88657$export$538b00033cc11c75, toZoned as $11d87f3f76e88657$export$84c95a83c799e074} from "./conversion.module.js";
import {endOfMonth as $14e0f24ef4ac5c92$export$a2258d9c4118825c, endOfWeek as $14e0f24ef4ac5c92$export$ef8b6d9133084f4e, endOfYear as $14e0f24ef4ac5c92$export$8b7aa55c66d5569e, getDayOfWeek as $14e0f24ef4ac5c92$export$2061056d06d7cdf7, getHoursInDay as $14e0f24ef4ac5c92$export$126c91c941de7e, getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, getMinimumDayInMonth as $14e0f24ef4ac5c92$export$b2f4953d301981d5, getMinimumMonthInYear as $14e0f24ef4ac5c92$export$5412ac11713b72ad, getWeeksInMonth as $14e0f24ef4ac5c92$export$ccc1b2479e7dd654, isEqualDay as $14e0f24ef4ac5c92$export$91b62ebf2ba703ee, isEqualMonth as $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2, isEqualYear as $14e0f24ef4ac5c92$export$ea840f5a6dda8147, isSameDay as $14e0f24ef4ac5c92$export$ea39ec197993aef0, isSameMonth as $14e0f24ef4ac5c92$export$a18c89cbd24170ff, isSameYear as $14e0f24ef4ac5c92$export$5841f9eb9773f25f, isToday as $14e0f24ef4ac5c92$export$629b0a497aa65267, isWeekday as $14e0f24ef4ac5c92$export$ee9d87258e1d19ed, isWeekend as $14e0f24ef4ac5c92$export$618d60ea299da42, maxDate as $14e0f24ef4ac5c92$export$a75f2bff57811055, minDate as $14e0f24ef4ac5c92$export$5c333a116e949cdd, now as $14e0f24ef4ac5c92$export$461939dd4422153, startOfMonth as $14e0f24ef4ac5c92$export$a5a3b454ada2268e, startOfWeek as $14e0f24ef4ac5c92$export$42c81a444fbfb5d4, startOfYear as $14e0f24ef4ac5c92$export$f91e89d3d0406102, today as $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3} from "./queries.module.js";
import {parseAbsolute as $fae977aafc393c5c$export$5adfdab05168c219, parseAbsoluteToLocal as $fae977aafc393c5c$export$8e384432362ed0f0, parseDate as $fae977aafc393c5c$export$6b862160d295c8e, parseDateTime as $fae977aafc393c5c$export$588937bcd60ade55, parseDuration as $fae977aafc393c5c$export$ecae829bb3747ea6, parseTime as $fae977aafc393c5c$export$c9698ec7f05a07e1, parseZonedDateTime as $fae977aafc393c5c$export$fd7893f06e92a6a4} from "./string.module.js";
import {DateFormatter as $fb18d541ea1ad717$export$ad991b66133851cf} from "./DateFormatter.module.js";
/*
* 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.
*/
export {$35ea8db9cb2ccb90$export$99faa760c7908e4f as CalendarDate, $35ea8db9cb2ccb90$export$ca871e8dbb80966f as CalendarDateTime, $35ea8db9cb2ccb90$export$680ea196effce5f as Time, $35ea8db9cb2ccb90$export$d3b7288e7994edea as ZonedDateTime, $3b62074eb05584b2$export$80ee6245ec4f29ec as GregorianCalendar, $62225008020f0a13$export$b746ab2b60cdffbf as JapaneseCalendar, $8d73d47422ca7302$export$42d20a78301dee44 as BuddhistCalendar, $5f31bd6f0c8940b2$export$65e01080afcb0799 as TaiwanCalendar, $f3ed2e4472ae7e25$export$37fccdbfd14c5939 as PersianCalendar, $82c358003bdda0a8$export$39f31c639fa15726 as IndianCalendar, $f2f3e0e3a817edbd$export$2066795aadd37bfc as IslamicCivilCalendar, $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 as IslamicTabularCalendar, $f2f3e0e3a817edbd$export$5baab4758c231076 as IslamicUmalquraCalendar, $7c5f6fbf42389787$export$ca405048b8fb5af as HebrewCalendar, $b956b2d7a6cf451f$export$26ba6eab5e20cd7d as EthiopicCalendar, $b956b2d7a6cf451f$export$d72e0c37005a4914 as EthiopicAmeteAlemCalendar, $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 as CopticCalendar, $64244302c3013299$export$dd0bbc9b26defe37 as createCalendar, $11d87f3f76e88657$export$93522d1a439f3617 as toCalendarDate, $11d87f3f76e88657$export$b21e0b124e224484 as toCalendarDateTime, $11d87f3f76e88657$export$d33f79e3ffc3dc83 as toTime, $11d87f3f76e88657$export$b4a036af3fc0b032 as toCalendar, $11d87f3f76e88657$export$84c95a83c799e074 as toZoned, $11d87f3f76e88657$export$538b00033cc11c75 as toTimeZone, $11d87f3f76e88657$export$d9b67bc93c097491 as toLocalTimeZone, $11d87f3f76e88657$export$e57ff100d91bd4b9 as fromDate, $11d87f3f76e88657$export$1b96692a1ba042ac as fromAbsolute, $14e0f24ef4ac5c92$export$ea39ec197993aef0 as isSameDay, $14e0f24ef4ac5c92$export$a18c89cbd24170ff as isSameMonth, $14e0f24ef4ac5c92$export$5841f9eb9773f25f as isSameYear, $14e0f24ef4ac5c92$export$91b62ebf2ba703ee as isEqualDay, $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2 as isEqualMonth, $14e0f24ef4ac5c92$export$ea840f5a6dda8147 as isEqualYear, $14e0f24ef4ac5c92$export$629b0a497aa65267 as isToday, $14e0f24ef4ac5c92$export$2061056d06d7cdf7 as getDayOfWeek, $14e0f24ef4ac5c92$export$461939dd4422153 as now, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as today, $14e0f24ef4ac5c92$export$126c91c941de7e as getHoursInDay, $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as getLocalTimeZone, $14e0f24ef4ac5c92$export$a5a3b454ada2268e as startOfMonth, $14e0f24ef4ac5c92$export$42c81a444fbfb5d4 as startOfWeek, $14e0f24ef4ac5c92$export$f91e89d3d0406102 as startOfYear, $14e0f24ef4ac5c92$export$a2258d9c4118825c as endOfMonth, $14e0f24ef4ac5c92$export$ef8b6d9133084f4e as endOfWeek, $14e0f24ef4ac5c92$export$8b7aa55c66d5569e as endOfYear, $14e0f24ef4ac5c92$export$5412ac11713b72ad as getMinimumMonthInYear, $14e0f24ef4ac5c92$export$b2f4953d301981d5 as getMinimumDayInMonth, $14e0f24ef4ac5c92$export$ccc1b2479e7dd654 as getWeeksInMonth, $14e0f24ef4ac5c92$export$5c333a116e949cdd as minDate, $14e0f24ef4ac5c92$export$a75f2bff57811055 as maxDate, $14e0f24ef4ac5c92$export$618d60ea299da42 as isWeekend, $14e0f24ef4ac5c92$export$ee9d87258e1d19ed as isWeekday, $fae977aafc393c5c$export$6b862160d295c8e as parseDate, $fae977aafc393c5c$export$588937bcd60ade55 as parseDateTime, $fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$5adfdab05168c219 as parseAbsolute, $fae977aafc393c5c$export$8e384432362ed0f0 as parseAbsoluteToLocal, $fae977aafc393c5c$export$fd7893f06e92a6a4 as parseZonedDateTime, $fae977aafc393c5c$export$ecae829bb3747ea6 as parseDuration, $fb18d541ea1ad717$export$ad991b66133851cf as DateFormatter};
//# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,eAAe,CAAC,wDAAO,CAAC;AAC5C","sources":["packages/@react-aria/breadcrumbs/intl/ja-JP.json"],"sourcesContent":["{\n \"breadcrumbs\": \"パンくずリスト\"\n}\n"],"names":[],"version":3,"file":"ja-JP.main.js.map"}
@@ -0,0 +1,476 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValueCheckUnknownTypeError = void 0;
exports.Check = Check;
const index_1 = require("../../system/index");
const index_2 = require("../deref/index");
const index_3 = require("../hash/index");
const index_4 = require("../../type/symbols/index");
const index_5 = require("../../type/keyof/index");
const index_6 = require("../../type/extends/index");
const index_7 = require("../../type/registry/index");
const index_8 = require("../../type/error/index");
const index_9 = require("../../type/never/index");
// ------------------------------------------------------------------
// ValueGuard
// ------------------------------------------------------------------
const index_10 = require("../guard/index");
// ------------------------------------------------------------------
// KindGuard
// ------------------------------------------------------------------
const kind_1 = require("../../type/guard/kind");
// ------------------------------------------------------------------
// Errors
// ------------------------------------------------------------------
class ValueCheckUnknownTypeError extends index_8.TypeBoxError {
constructor(schema) {
super(`Unknown type`);
this.schema = schema;
}
}
exports.ValueCheckUnknownTypeError = ValueCheckUnknownTypeError;
// ------------------------------------------------------------------
// TypeGuards
// ------------------------------------------------------------------
function IsAnyOrUnknown(schema) {
return schema[index_4.Kind] === 'Any' || schema[index_4.Kind] === 'Unknown';
}
// ------------------------------------------------------------------
// Guards
// ------------------------------------------------------------------
function IsDefined(value) {
return value !== undefined;
}
// ------------------------------------------------------------------
// Types
// ------------------------------------------------------------------
function FromAny(schema, references, value) {
return true;
}
function FromArgument(schema, references, value) {
return true;
}
function FromArray(schema, references, value) {
if (!(0, index_10.IsArray)(value))
return false;
if (IsDefined(schema.minItems) && !(value.length >= schema.minItems)) {
return false;
}
if (IsDefined(schema.maxItems) && !(value.length <= schema.maxItems)) {
return false;
}
for (const element of value) {
if (!Visit(schema.items, references, element))
return false;
}
// prettier-ignore
if (schema.uniqueItems === true && !((function () { const set = new Set(); for (const element of value) {
const hashed = (0, index_3.Hash)(element);
if (set.has(hashed)) {
return false;
}
else {
set.add(hashed);
}
} return true; })())) {
return false;
}
// contains
if (!(IsDefined(schema.contains) || (0, index_10.IsNumber)(schema.minContains) || (0, index_10.IsNumber)(schema.maxContains))) {
return true; // exit
}
const containsSchema = IsDefined(schema.contains) ? schema.contains : (0, index_9.Never)();
const containsCount = value.reduce((acc, value) => (Visit(containsSchema, references, value) ? acc + 1 : acc), 0);
if (containsCount === 0) {
return false;
}
if ((0, index_10.IsNumber)(schema.minContains) && containsCount < schema.minContains) {
return false;
}
if ((0, index_10.IsNumber)(schema.maxContains) && containsCount > schema.maxContains) {
return false;
}
return true;
}
function FromAsyncIterator(schema, references, value) {
return (0, index_10.IsAsyncIterator)(value);
}
function FromBigInt(schema, references, value) {
if (!(0, index_10.IsBigInt)(value))
return false;
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === BigInt(0))) {
return false;
}
return true;
}
function FromBoolean(schema, references, value) {
return (0, index_10.IsBoolean)(value);
}
function FromConstructor(schema, references, value) {
return Visit(schema.returns, references, value.prototype);
}
function FromDate(schema, references, value) {
if (!(0, index_10.IsDate)(value))
return false;
if (IsDefined(schema.exclusiveMaximumTimestamp) && !(value.getTime() < schema.exclusiveMaximumTimestamp)) {
return false;
}
if (IsDefined(schema.exclusiveMinimumTimestamp) && !(value.getTime() > schema.exclusiveMinimumTimestamp)) {
return false;
}
if (IsDefined(schema.maximumTimestamp) && !(value.getTime() <= schema.maximumTimestamp)) {
return false;
}
if (IsDefined(schema.minimumTimestamp) && !(value.getTime() >= schema.minimumTimestamp)) {
return false;
}
if (IsDefined(schema.multipleOfTimestamp) && !(value.getTime() % schema.multipleOfTimestamp === 0)) {
return false;
}
return true;
}
function FromFunction(schema, references, value) {
return (0, index_10.IsFunction)(value);
}
function FromImport(schema, references, value) {
const definitions = globalThis.Object.values(schema.$defs);
const target = schema.$defs[schema.$ref];
return Visit(target, [...references, ...definitions], value);
}
function FromInteger(schema, references, value) {
if (!(0, index_10.IsInteger)(value)) {
return false;
}
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
return false;
}
return true;
}
function FromIntersect(schema, references, value) {
const check1 = schema.allOf.every((schema) => Visit(schema, references, value));
if (schema.unevaluatedProperties === false) {
const keyPattern = new RegExp((0, index_5.KeyOfPattern)(schema));
const check2 = Object.getOwnPropertyNames(value).every((key) => keyPattern.test(key));
return check1 && check2;
}
else if ((0, kind_1.IsSchema)(schema.unevaluatedProperties)) {
const keyCheck = new RegExp((0, index_5.KeyOfPattern)(schema));
const check2 = Object.getOwnPropertyNames(value).every((key) => keyCheck.test(key) || Visit(schema.unevaluatedProperties, references, value[key]));
return check1 && check2;
}
else {
return check1;
}
}
function FromIterator(schema, references, value) {
return (0, index_10.IsIterator)(value);
}
function FromLiteral(schema, references, value) {
return value === schema.const;
}
function FromNever(schema, references, value) {
return false;
}
function FromNot(schema, references, value) {
return !Visit(schema.not, references, value);
}
function FromNull(schema, references, value) {
return (0, index_10.IsNull)(value);
}
function FromNumber(schema, references, value) {
if (!index_1.TypeSystemPolicy.IsNumberLike(value))
return false;
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
return false;
}
return true;
}
function FromObject(schema, references, value) {
if (!index_1.TypeSystemPolicy.IsObjectLike(value))
return false;
if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
return false;
}
if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
return false;
}
const knownKeys = Object.getOwnPropertyNames(schema.properties);
for (const knownKey of knownKeys) {
const property = schema.properties[knownKey];
if (schema.required && schema.required.includes(knownKey)) {
if (!Visit(property, references, value[knownKey])) {
return false;
}
if (((0, index_6.ExtendsUndefinedCheck)(property) || IsAnyOrUnknown(property)) && !(knownKey in value)) {
return false;
}
}
else {
if (index_1.TypeSystemPolicy.IsExactOptionalProperty(value, knownKey) && !Visit(property, references, value[knownKey])) {
return false;
}
}
}
if (schema.additionalProperties === false) {
const valueKeys = Object.getOwnPropertyNames(value);
// optimization: value is valid if schemaKey length matches the valueKey length
if (schema.required && schema.required.length === knownKeys.length && valueKeys.length === knownKeys.length) {
return true;
}
else {
return valueKeys.every((valueKey) => knownKeys.includes(valueKey));
}
}
else if (typeof schema.additionalProperties === 'object') {
const valueKeys = Object.getOwnPropertyNames(value);
return valueKeys.every((key) => knownKeys.includes(key) || Visit(schema.additionalProperties, references, value[key]));
}
else {
return true;
}
}
function FromPromise(schema, references, value) {
return (0, index_10.IsPromise)(value);
}
function FromRecord(schema, references, value) {
if (!index_1.TypeSystemPolicy.IsRecordLike(value)) {
return false;
}
if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
return false;
}
if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
return false;
}
const [patternKey, patternSchema] = Object.entries(schema.patternProperties)[0];
const regex = new RegExp(patternKey);
// prettier-ignore
const check1 = Object.entries(value).every(([key, value]) => {
return (regex.test(key)) ? Visit(patternSchema, references, value) : true;
});
// prettier-ignore
const check2 = typeof schema.additionalProperties === 'object' ? Object.entries(value).every(([key, value]) => {
return (!regex.test(key)) ? Visit(schema.additionalProperties, references, value) : true;
}) : true;
const check3 = schema.additionalProperties === false
? Object.getOwnPropertyNames(value).every((key) => {
return regex.test(key);
})
: true;
return check1 && check2 && check3;
}
function FromRef(schema, references, value) {
return Visit((0, index_2.Deref)(schema, references), references, value);
}
function FromRegExp(schema, references, value) {
const regex = new RegExp(schema.source, schema.flags);
if (IsDefined(schema.minLength)) {
if (!(value.length >= schema.minLength))
return false;
}
if (IsDefined(schema.maxLength)) {
if (!(value.length <= schema.maxLength))
return false;
}
return regex.test(value);
}
function FromString(schema, references, value) {
if (!(0, index_10.IsString)(value)) {
return false;
}
if (IsDefined(schema.minLength)) {
if (!(value.length >= schema.minLength))
return false;
}
if (IsDefined(schema.maxLength)) {
if (!(value.length <= schema.maxLength))
return false;
}
if (IsDefined(schema.pattern)) {
const regex = new RegExp(schema.pattern);
if (!regex.test(value))
return false;
}
if (IsDefined(schema.format)) {
if (!index_7.FormatRegistry.Has(schema.format))
return false;
const func = index_7.FormatRegistry.Get(schema.format);
return func(value);
}
return true;
}
function FromSymbol(schema, references, value) {
return (0, index_10.IsSymbol)(value);
}
function FromTemplateLiteral(schema, references, value) {
return (0, index_10.IsString)(value) && new RegExp(schema.pattern).test(value);
}
function FromThis(schema, references, value) {
return Visit((0, index_2.Deref)(schema, references), references, value);
}
function FromTuple(schema, references, value) {
if (!(0, index_10.IsArray)(value)) {
return false;
}
if (schema.items === undefined && !(value.length === 0)) {
return false;
}
if (!(value.length === schema.maxItems)) {
return false;
}
if (!schema.items) {
return true;
}
for (let i = 0; i < schema.items.length; i++) {
if (!Visit(schema.items[i], references, value[i]))
return false;
}
return true;
}
function FromUndefined(schema, references, value) {
return (0, index_10.IsUndefined)(value);
}
function FromUnion(schema, references, value) {
return schema.anyOf.some((inner) => Visit(inner, references, value));
}
function FromUint8Array(schema, references, value) {
if (!(0, index_10.IsUint8Array)(value)) {
return false;
}
if (IsDefined(schema.maxByteLength) && !(value.length <= schema.maxByteLength)) {
return false;
}
if (IsDefined(schema.minByteLength) && !(value.length >= schema.minByteLength)) {
return false;
}
return true;
}
function FromUnknown(schema, references, value) {
return true;
}
function FromVoid(schema, references, value) {
return index_1.TypeSystemPolicy.IsVoidLike(value);
}
function FromKind(schema, references, value) {
if (!index_7.TypeRegistry.Has(schema[index_4.Kind]))
return false;
const func = index_7.TypeRegistry.Get(schema[index_4.Kind]);
return func(schema, value);
}
function Visit(schema, references, value) {
const references_ = IsDefined(schema.$id) ? (0, index_2.Pushref)(schema, references) : references;
const schema_ = schema;
switch (schema_[index_4.Kind]) {
case 'Any':
return FromAny(schema_, references_, value);
case 'Argument':
return FromArgument(schema_, references_, value);
case 'Array':
return FromArray(schema_, references_, value);
case 'AsyncIterator':
return FromAsyncIterator(schema_, references_, value);
case 'BigInt':
return FromBigInt(schema_, references_, value);
case 'Boolean':
return FromBoolean(schema_, references_, value);
case 'Constructor':
return FromConstructor(schema_, references_, value);
case 'Date':
return FromDate(schema_, references_, value);
case 'Function':
return FromFunction(schema_, references_, value);
case 'Import':
return FromImport(schema_, references_, value);
case 'Integer':
return FromInteger(schema_, references_, value);
case 'Intersect':
return FromIntersect(schema_, references_, value);
case 'Iterator':
return FromIterator(schema_, references_, value);
case 'Literal':
return FromLiteral(schema_, references_, value);
case 'Never':
return FromNever(schema_, references_, value);
case 'Not':
return FromNot(schema_, references_, value);
case 'Null':
return FromNull(schema_, references_, value);
case 'Number':
return FromNumber(schema_, references_, value);
case 'Object':
return FromObject(schema_, references_, value);
case 'Promise':
return FromPromise(schema_, references_, value);
case 'Record':
return FromRecord(schema_, references_, value);
case 'Ref':
return FromRef(schema_, references_, value);
case 'RegExp':
return FromRegExp(schema_, references_, value);
case 'String':
return FromString(schema_, references_, value);
case 'Symbol':
return FromSymbol(schema_, references_, value);
case 'TemplateLiteral':
return FromTemplateLiteral(schema_, references_, value);
case 'This':
return FromThis(schema_, references_, value);
case 'Tuple':
return FromTuple(schema_, references_, value);
case 'Undefined':
return FromUndefined(schema_, references_, value);
case 'Union':
return FromUnion(schema_, references_, value);
case 'Uint8Array':
return FromUint8Array(schema_, references_, value);
case 'Unknown':
return FromUnknown(schema_, references_, value);
case 'Void':
return FromVoid(schema_, references_, value);
default:
if (!index_7.TypeRegistry.Has(schema_[index_4.Kind]))
throw new ValueCheckUnknownTypeError(schema_);
return FromKind(schema_, references_, value);
}
}
/** Returns true if the value matches the given type. */
function Check(...args) {
return args.length === 3 ? Visit(args[0], args[1], args[2]) : Visit(args[0], [], args[1]);
}
@@ -0,0 +1,16 @@
var $52535c35c24ec937$exports = {};
$52535c35c24ec937$exports = {
"ascending": `\u{C624}\u{B984}\u{CC28}\u{C21C}`,
"ascendingSort": (args)=>`${args.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
"columnSize": (args)=>`${args.value} \u{D53D}\u{C140}`,
"descending": `\u{B0B4}\u{B9BC}\u{CC28}\u{C21C}`,
"descendingSort": (args)=>`${args.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
"resizerDescription": `\u{D06C}\u{AE30} \u{C870}\u{C815}\u{C744} \u{C2DC}\u{C791}\u{D558}\u{B824}\u{BA74} Enter\u{B97C} \u{B204}\u{B974}\u{C138}\u{C694}.`,
"select": `\u{C120}\u{D0DD}`,
"selectAll": `\u{BAA8}\u{B450} \u{C120}\u{D0DD}`,
"sortable": `\u{C815}\u{B82C} \u{AC00}\u{B2A5}\u{D55C} \u{C5F4}`
};
export {$52535c35c24ec937$exports as default};
//# sourceMappingURL=ko-KR.module.js.map
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('lt', require('../lt'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,733 @@
export default `flf2a$ 7 7 11 -1 16 0 0 0
Author :myflix
Date : 2006/4/6 7:38:43
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
---
Font modified May 26, 2012 by patorjk
Made modifications to the "JK" characters.
$ #
$ #
$ #
$ #
$ #
$ #
$ ##
__ #
| | #
| | #
| | #
|__| #
__ #
|__| ##
_ _ #
| || | #
|_||_| #
#
#
#
##
##
#
#
#
#
#
##
$#
#
#
#
#
#
##
%#
#
#
#
#
#
##
&#
#
#
#
#
#
##
__ #
| | #
|__| #
#
#
#
##
____ #
| | #
| _| #
| | #
| | #
| |_ #
|____| ##
____ #
| | #
|_ | #
| | #
| | #
_| | #
|____| ##
*#
#
#
#
#
#
##
_ #
_| |_ #
|_ _| #
|_| #
#
#
##
#
#
#
#
___ #
|_ | #
|_| ##
#
#
____ #
|____| #
#
#
##
#
#
#
#
___ #
| | #
|___| ##
/#
#
#
#
#
#
##
_______ #
| _ |#
| | | |#
| | | |#
| |_| |#
| |#
|_______|##
____ #
| | #
| | #
| | #
| | #
| | #
|___| ##
_______ #
| |#
|____ |#
____| |#
| ______|#
| |_____ #
|_______|##
_______ #
| |#
|___ |#
___| |#
|___ |#
___| |#
|_______|##
_ ___ #
| | | |#
| |_| |#
| |#
|___ |#
| |#
|___|##
_______ #
| |#
| ____|#
| |____ #
|_____ |#
_____| |#
|_______|##
___ #
| | #
| |___ #
| _ |#
| | | |#
| |_| |#
|_______|##
_______ #
| |#
|___ |#
| |#
| |#
| |#
|___|##
_____ #
| _ | #
| |_| | #
| _ |#
| | | |#
| |_| |#
|_______|##
_______ #
| _ |#
| | | |#
| |_| |#
|___ |#
| |#
|___|##
___ #
| | #
|___| #
___ #
| | #
|___| #
##
___ #
| | #
|___| #
___ #
|_ | #
|_| #
##
<#
#
#
#
#
#
##
____ #
|____| #
____ #
|____| #
#
#
##
>#
#
#
#
#
#
##
______ #
| | #
|___ | #
__| | #
|_____| #
__ #
|__| ##
@#
#
#
#
#
#
##
_______ #
| _ |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
_______ #
| _ |#
| |_| |#
| |#
| _ | #
| |_| |#
|_______|##
_______ #
| |#
| |#
| |#
| _|#
| |_ #
|_______|##
______ #
| | #
| _ |#
| | | |#
| |_| |#
| |#
|______| ##
_______ #
| |#
| ___|#
| |___ #
| ___|#
| |___ #
|_______|##
_______ #
| |#
| ___|#
| |___ #
| ___|#
| | #
|___| ##
_______ #
| |#
| ___|#
| | __ #
| || |#
| |_| |#
|_______|##
__ __ #
| | | |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
___ #
| | #
| | #
| | #
| | #
| | #
|___| ##
___ #
| |#
| |#
| |#
___| |#
| |#
|_______|##
___ _ #
| | | |#
| |_| |#
| _|#
| |_ #
| _ |#
|___| |_|##
___ #
| | #
| | #
| | #
| |___ #
| |#
|_______|##
__ __ #
| |_| |#
| |#
| |#
| |#
| ||_|| |#
|_| |_|##
__ _ #
| | | |#
| |_| |#
| |#
| _ |#
| | | |#
|_| |__|##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| |#
|_______|##
_______ #
| |#
| _ |#
| |_| |#
| ___|#
| | #
|___| ##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| | #
|____||_|##
______ #
| _ | #
| | || #
| |_||_ #
| __ |#
| | | |#
|___| |_|##
_______ #
| |#
| _____|#
| |_____ #
|_____ |#
_____| |#
|_______|##
_______ #
| |#
|_ _|#
| | #
| | #
| | #
|___| ##
__ __ #
| | | |#
| | | |#
| |_| |#
| |#
| |#
|_______|##
__ __ #
| | | |#
| |_| |#
| |#
| |#
| | #
|___| ##
_ _ #
| | _ | |#
| || || |#
| |#
| |#
| _ |#
|__| |__|##
__ __ #
| |_| |#
| |#
| |#
| | #
| _ |#
|__| |__|##
__ __ #
| | | |#
| |_| |#
| |#
|_ _|#
| | #
|___| ##
_______ #
| |#
|____ |#
____| |#
| ______|#
| |_____ #
|_______|##
_____ #
| | #
| _| #
| | #
| | #
| |_ #
|_____| ##
\\#
#
#
#
#
#
##
_____ #
| | #
|_ | #
| | #
| | #
_| | #
|_____| ##
___ #
| | #
| _ | #
|_| |_| #
#
#
##
#
#
#
#
#
_____ #
|_____| ##
___ #
| | #
|_ | #
|__| #
#
#
##
_______ #
| _ |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
_______ #
| _ |#
| |_| |#
| |#
| _ | #
| |_| |#
|_______|##
_______ #
| |#
| |#
| |#
| _|#
| |_ #
|_______|##
______ #
| | #
| _ |#
| | | |#
| |_| |#
| |#
|______| ##
_______ #
| |#
| ___|#
| |___ #
| ___|#
| |___ #
|_______|##
_______ #
| |#
| ___|#
| |___ #
| ___|#
| | #
|___| ##
_______ #
| |#
| ___|#
| | __ #
| || |#
| |_| |#
|_______|##
__ __ #
| | | |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
___ #
| | #
| | #
| | #
| | #
| | #
|___| ##
___ #
| |#
| |#
| |#
___| |#
| |#
|_______|##
___ _ #
| | | |#
| |_| |#
| _|#
| |_ #
| _ |#
|___| |_|##
___ #
| | #
| | #
| | #
| |___ #
| |#
|_______|##
__ __ #
| |_| |#
| |#
| |#
| |#
| ||_|| |#
|_| |_|##
__ _ #
| | | |#
| |_| |#
| |#
| _ |#
| | | |#
|_| |__|##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| |#
|_______|##
_______ #
| |#
| _ |#
| |_| |#
| ___|#
| | #
|___| ##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| | #
|____||_|##
______ #
| _ | #
| | || #
| |_||_ #
| __ |#
| | | |#
|___| |_|##
_______ #
| |#
| _____|#
| |_____ #
|_____ |#
_____| |#
|_______|##
_______ #
| |#
|_ _|#
| | #
| | #
| | #
|___| ##
__ __ #
| | | |#
| | | |#
| |_| |#
| |#
| |#
|_______|##
__ __ #
| | | |#
| |_| |#
| |#
| |#
| | #
|___| ##
_ _ #
| | _ | |#
| || || |#
| |#
| |#
| _ |#
|__| |__|##
__ __ #
| |_| |#
| |#
| |#
| | #
| _ |#
|__| |__|##
__ __ #
| | | |#
| |_| |#
| |#
|_ _|#
| | #
|___| ##
_______ #
| |#
|____ |#
____| |#
| ______|#
| |_____ #
|_______|##
{#
#
#
#
#
#
##
|#
#
#
#
#
#
##
}#
#
#
#
#
#
##
~#
#
#
#
#
#
##
_______ #
| _ |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| |#
|_______|##
__ __ #
| | | |#
| | | |#
| |_| |#
| |#
| |#
|_______|##
_______ #
| _ |#
| |_| |#
| |#
| |#
| _ |#
|__| |__|##
_______ #
| |#
| _ |#
| | | |#
| |_| |#
| |#
|_______|##
__ __ #
| | | |#
| | | |#
| |_| |#
| |#
| |#
|_______|##
�#
#
#
#
#
#
##
`
@@ -0,0 +1,16 @@
// src/common/numbers.ts
function range(start, end) {
const length = end - start + 1;
return Array.from({ length }, (_, index) => index + start);
}
function clamp(value, min, max) {
return Math.min(Math.max(value, min), max);
}
function clampPercentage(value, max = 100) {
return Math.min(Math.max(value, 0), max);
}
export {
clamp,
clampPercentage,
range
};
@@ -0,0 +1,82 @@
{
"name": "minipass",
"version": "7.1.2",
"description": "minimal implementation of a PassThrough stream",
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"type": "module",
"tshy": {
"selfLink": false,
"main": true,
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"files": [
"dist"
],
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tshy",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "tap",
"snap": "tap",
"format": "prettier --write . --loglevel warn",
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
},
"prettier": {
"semi": false,
"printWidth": 75,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"devDependencies": {
"@types/end-of-stream": "^1.4.2",
"@types/node": "^20.1.2",
"end-of-stream": "^1.4.0",
"node-abort-controller": "^3.1.1",
"prettier": "^2.6.2",
"tap": "^19.0.0",
"through2": "^2.0.3",
"tshy": "^1.14.0",
"typedoc": "^0.25.1"
},
"repository": "https://github.com/isaacs/minipass",
"keywords": [
"passthrough",
"stream"
],
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "ISC",
"engines": {
"node": ">=16 || 14 >=14.17"
},
"tap": {
"typecheck": true,
"include": [
"test/*.ts"
]
}
}
@@ -0,0 +1,205 @@
{
"name": "react-dropzone",
"description": "Simple HTML5 drag-drop zone with React.js",
"main": "dist/index.js",
"module": "dist/es/index.js",
"exports": {
".": {
"import": {
"types": "./typings/react-dropzone.d.ts",
"default": "./dist/es/index.js"
},
"require": {
"types": "./typings/react-dropzone.d.ts",
"default": "./dist/index.js"
}
}
},
"typesVersions": {
"*": {
".": [
"./typings/react-dropzone.d.ts"
]
}
},
"sideEffects": false,
"scripts": {
"cz": "git-cz",
"clean": "rimraf ./dist",
"build": "yarn clean && yarn build:umd && yarn build:es && yarn build:es-package",
"build:umd": "cross-env NODE_ENV=es rollup -c",
"build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
"build:es-package": "echo '{\"type\":\"module\"}' > dist/es/package.json",
"start": "styleguidist server",
"styleguide": "styleguidist build",
"test": "cross-env NODE_ENV=test yarn lint && jest --coverage && yarn typescript",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"commitmsg": "commitlint -e",
"prepublish": "yarn build && yarn size",
"_postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"logo": "cd logo && sketchtool export artboards logo.sketch",
"imagemin": "imagemin --out-dir=logo --plugin=pngquant --plugin=svgo",
"size": "size-limit",
"size:why": "size-limit --why",
"typescript": "tsc --project ./typings/tests"
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "17 KB"
},
{
"path": "dist/es/index.js",
"limit": "17 KB"
}
],
"lint-staged": {
"*.js": [
"eslint . --fix"
],
"*.ts": [
"eslint ."
],
"*.{svg,png}": [
"imagemin"
]
},
"config": {
"commitizen": {
"path": "@commitlint/prompt"
}
},
"jest": {
"testEnvironment": "jsdom",
"clearMocks": true,
"setupFilesAfterEnv": [
"<rootDir>/testSetup.js"
],
"coveragePathIgnorePatterns": [
"/dist/",
"/node_modules/",
"<rootDir>/testSetup.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/"
]
},
"keywords": [
"react-component",
"react",
"drag",
"drop",
"upload"
],
"repository": {
"type": "git",
"url": "https://github.com/react-dropzone/react-dropzone.git"
},
"bugs": {
"url": "https://github.com/react-dropzone/react-dropzone/issues"
},
"homepage": "https://github.com/react-dropzone/react-dropzone",
"author": "Param Aggarwal",
"contributors": [
"Andrey Okonetchnikov <andrey@okonet.ru> (http://okonet.ru)",
"Mike Olson <me@mwolson.org>",
"Param Aggarwal",
"Tyler Waters <tyler.waters@gmail.com>",
"Rick Markins <rmarkins@gmail.com>",
"Roland Groza <rolandjitsu@gmail.com>"
],
"license": "MIT",
"peerDependencies": {
"react": ">= 16.8 || 18.0.0"
},
"dependencies": {
"attr-accept": "^2.2.4",
"file-selector": "^2.1.0",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-external-helpers": "^7.16.7",
"@babel/plugin-proposal-do-expressions": "^7.16.7",
"@babel/plugin-proposal-export-default-from": "^7.16.7",
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/plugin-proposal-pipeline-operator": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.16.10",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/register": "^7.16.9",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-angular": "^16.0.0",
"@commitlint/prompt": "^16.1.0",
"@commitlint/prompt-cli": "^16.1.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@size-limit/preset-small-lib": "^7.0.5",
"@size-limit/webpack": "^7.0.5",
"@size-limit/webpack-why": "^7.0.5",
"@testing-library/dom": "^8.11.3",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^13.1.1",
"@testing-library/react-hooks": "^8.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"babel-jest": "^27.4.6",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-dynamic-import-node": "^2.3.3",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.4",
"imagemin-cli": "^8.0.0",
"imagemin-pngquant": "^10.0.0",
"jest": "^27.4.7",
"lint-staged": "^12.3.2",
"markdownlint-cli": "^0.30.0",
"pinst": "^2.1.6",
"prettier": "^2.5.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-styleguidist": "^11.2.0",
"react-test-renderer": "^18.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.66.1",
"rollup-plugin-terser": "^7.0.2",
"size-limit": "^7.0.5",
"style-loader": "^3.3.1",
"styled-components": "^5.3.3",
"typescript": "^5.6.3",
"webpack": "^5.67.0",
"webpack-blocks": "^2.1.0"
},
"typings": "typings/react-dropzone.d.ts",
"version": "14.3.8",
"engines": {
"node": ">= 10.13"
},
"browserslist": [
"defaults"
],
"packageManager": "yarn@1.22.22",
"resolutions": {
"node-sass": "^9.0.0"
}
}
@@ -0,0 +1,20 @@
// Vitest resolves "vitest/browser" as a virtual module instead
// fake exports for static analysis
export const page = null
export const server = null
export const userEvent = null
export const cdp = null
export const commands = null
export const locators = null
export const utils = null
const pool = globalThis.__vitest_worker__?.ctx?.pool
throw new Error(
// eslint-disable-next-line prefer-template
'vitest/browser can be imported only inside the Browser Mode. '
+ (pool
? `Your test is running in ${pool} pool. Make sure your regular tests are excluded from the "test.include" glob pattern.`
: 'Instead, it was imported outside of Vitest.'),
)
@@ -0,0 +1 @@
export type { MergeParameters } from './ts47-mergeParameters'
@@ -0,0 +1,278 @@
{
"name": "rollup",
"version": "4.53.2",
"description": "Next-generation ES module bundler",
"main": "dist/rollup.js",
"module": "dist/es/rollup.js",
"types": "dist/rollup.d.ts",
"bin": {
"rollup": "dist/bin/rollup"
},
"napi": {
"binaryName": "rollup",
"packageName": "@rollup/rollup",
"targets": [
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-pc-windows-msvc",
"aarch64-unknown-freebsd",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabihf",
"armv7-unknown-linux-musleabihf",
"i686-pc-windows-msvc",
"loongarch64-unknown-linux-gnu",
"riscv64gc-unknown-linux-gnu",
"riscv64gc-unknown-linux-musl",
"powerpc64le-unknown-linux-gnu",
"s390x-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-gnu",
"x86_64-pc-windows-msvc",
"x86_64-unknown-freebsd",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-ohos"
]
},
"scripts": {
"build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
"build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
"build:napi": "napi build --cwd rust/bindings_napi --platform --dts ../../native.d.ts --no-js --output-dir ../.. --package-json-path ../../package.json",
"build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
"build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
"update:napi": "npm run build:napi && npm run build:copy-native",
"build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
"build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
"build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
"update:js": "npm run build:js && npm run build:copy-native",
"build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
"dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
"build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
"build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
"build:docs": "vitepress build docs",
"build:ast-converters": "node scripts/generate-ast-converters.js",
"preview:docs": "vitepress preview docs",
"ci:artifacts": "napi artifacts",
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
"ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
"ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
"ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-require-module nyc --reporter lcovonly mocha",
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
"lint:js": "eslint . --fix --cache --concurrency auto",
"lint:js:nofix": "eslint . --cache --concurrency auto",
"lint:native-js": "node scripts/lint-native-js.js",
"lint:markdown": "prettier --write \"**/*.md\"",
"lint:markdown:nofix": "prettier --check \"**/*.md\"",
"lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
"lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
"perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
"prepare": "husky && patch-package && node scripts/check-release.js || npm run build:prepare",
"prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
"postpublish": "node scripts/postpublish.js",
"prepublish:napi": "napi prepublish --no-gh-release",
"release": "node scripts/prepare-release.js",
"release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
"test": "npm run build && npm run test:all",
"test:update-snapshots": "node scripts/update-snapshots.js",
"test:cjs": "npm run build:cjs && npm run test:only",
"test:quick": "mocha -b test/test.js",
"test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
"test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
"test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
"test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
"test:package": "node scripts/test-package.js",
"test:options": "node scripts/test-options.js",
"test:only": "mocha test/test.js",
"test:typescript": "echo skipped",
"test:browser": "mocha test/browser/index.js",
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rollup/rollup.git"
},
"keywords": [
"modules",
"bundler",
"bundling",
"es6",
"optimizer"
],
"author": "Rich Harris",
"license": "MIT",
"bugs": {
"url": "https://github.com/rollup/rollup/issues"
},
"homepage": "https://rollupjs.org/",
"optionalDependencies": {
"fsevents": "~2.3.2",
"@rollup/rollup-darwin-arm64": "4.53.2",
"@rollup/rollup-android-arm64": "4.53.2",
"@rollup/rollup-win32-arm64-msvc": "4.53.2",
"@rollup/rollup-freebsd-arm64": "4.53.2",
"@rollup/rollup-linux-arm64-gnu": "4.53.2",
"@rollup/rollup-linux-arm64-musl": "4.53.2",
"@rollup/rollup-android-arm-eabi": "4.53.2",
"@rollup/rollup-linux-arm-gnueabihf": "4.53.2",
"@rollup/rollup-linux-arm-musleabihf": "4.53.2",
"@rollup/rollup-win32-ia32-msvc": "4.53.2",
"@rollup/rollup-linux-loong64-gnu": "4.53.2",
"@rollup/rollup-linux-riscv64-gnu": "4.53.2",
"@rollup/rollup-linux-riscv64-musl": "4.53.2",
"@rollup/rollup-linux-ppc64-gnu": "4.53.2",
"@rollup/rollup-linux-s390x-gnu": "4.53.2",
"@rollup/rollup-darwin-x64": "4.53.2",
"@rollup/rollup-win32-x64-gnu": "4.53.2",
"@rollup/rollup-win32-x64-msvc": "4.53.2",
"@rollup/rollup-freebsd-x64": "4.53.2",
"@rollup/rollup-linux-x64-gnu": "4.53.2",
"@rollup/rollup-linux-x64-musl": "4.53.2",
"@rollup/rollup-openharmony-arm64": "4.53.2"
},
"dependencies": {
"@types/estree": "1.0.8"
},
"devDependenciesComments": {
"core-js": "We only update manually as every update requires a snapshot update"
},
"devDependencies": {
"@codemirror/commands": "^6.10.0",
"@codemirror/lang-javascript": "^6.2.4",
"@codemirror/language": "^6.11.3",
"@codemirror/search": "^6.5.11",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.38.6",
"@eslint/js": "^9.39.1",
"@inquirer/prompts": "^7.9.0",
"@jridgewell/sourcemap-codec": "^1.5.5",
"@mermaid-js/mermaid-cli": "^11.4.0",
"@napi-rs/cli": "^3.4.1",
"@rollup/plugin-alias": "^6.0.0",
"@rollup/plugin-buble": "^1.0.3",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.3.0",
"@rollup/pluginutils": "^5.3.0",
"@shikijs/vitepress-twoslash": "^3.14.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.19.24",
"@types/picomatch": "^4.0.2",
"@types/semver": "^7.7.1",
"@types/yargs-parser": "^21.0.3",
"@vue/language-server": "^3.1.3",
"acorn": "^8.15.0",
"acorn-import-assertions": "^1.9.0",
"acorn-jsx": "^5.3.2",
"buble": "^0.20.0",
"builtin-modules": "^5.0.0",
"chokidar": "^3.6.0",
"concurrently": "^9.2.1",
"core-js": "3.38.1",
"cross-env": "^10.1.0",
"date-time": "^4.0.0",
"es5-shim": "^4.6.7",
"es6-shim": "^0.35.8",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-unicorn": "^62.0.0",
"eslint-plugin-vue": "^10.5.1",
"fixturify": "^3.0.0",
"flru": "^1.0.2",
"fs-extra": "^11.3.2",
"github-api": "^3.4.0",
"globals": "^16.5.0",
"husky": "^9.1.7",
"is-reference": "^3.0.3",
"lint-staged": "^16.2.6",
"locate-character": "^3.0.0",
"magic-string": "^0.30.21",
"memfs": "^4.50.0",
"mocha": "^11.7.4",
"nodemon": "^3.1.10",
"nyc": "^17.1.0",
"patch-package": "^8.0.1",
"picocolors": "^1.1.1",
"picomatch": "^4.0.3",
"pinia": "^3.0.3",
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.3.0",
"pretty-bytes": "^7.1.0",
"pretty-ms": "^9.3.0",
"requirejs": "^2.3.7",
"rollup": "^4.52.5",
"rollup-plugin-license": "^3.6.0",
"rollup-plugin-string": "^3.0.0",
"semver": "^7.7.3",
"shx": "^0.4.0",
"signal-exit": "^4.1.0",
"source-map": "^0.7.6",
"source-map-support": "^0.5.21",
"systemjs": "^6.15.1",
"terser": "^5.44.0",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.3",
"vite": "^7.1.12",
"vitepress": "^1.6.4",
"vue": "^3.5.22",
"vue-eslint-parser": "^10.2.0",
"vue-tsc": "^3.1.3",
"wasm-pack": "^0.13.1",
"yargs-parser": "^21.1.1"
},
"overrides": {
"axios": "^1.13.1",
"esbuild": ">0.24.2",
"readable-stream": "npm:@built-in/readable-stream@1",
"semver": "^7.7.3",
"vite": "$vite",
"path-scurry": {
"lru-cache": "^11.2.2"
}
},
"comments": {
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
},
"files": [
"dist/*.node",
"dist/**/*.js",
"dist/*.d.ts",
"dist/bin/rollup",
"dist/es/package.json"
],
"engines": {
"node": ">=18.0.0",
"npm": ">=8.0.0"
},
"exports": {
".": {
"types": "./dist/rollup.d.ts",
"import": "./dist/es/rollup.js",
"require": "./dist/rollup.js"
},
"./loadConfigFile": {
"types": "./dist/loadConfigFile.d.ts",
"require": "./dist/loadConfigFile.js",
"default": "./dist/loadConfigFile.js"
},
"./getLogFilter": {
"types": "./dist/getLogFilter.d.ts",
"import": "./dist/es/getLogFilter.js",
"require": "./dist/getLogFilter.js"
},
"./parseAst": {
"types": "./dist/parseAst.d.ts",
"import": "./dist/es/parseAst.js",
"require": "./dist/parseAst.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
}
}
@@ -0,0 +1,6 @@
import { BaseDecoratorInfo } from './BaseDecoratorInfo';
import { DecoratorInfoKind } from './DecoratorInfoKind';
export interface ParameterDecoratorInfo extends BaseDecoratorInfo<DecoratorInfoKind.parameter> {
index: number;
}
//# sourceMappingURL=ParameterDecoratorInfo.d.ts.map
@@ -0,0 +1,118 @@
/**
* Copyright (c) 2022 The xterm.js authors. All rights reserved.
* @license MIT
*/
// Work variables to avoid garbage collection.
let i = 0;
/**
* A generic list that is maintained in sorted order and allows values with duplicate keys. This
* list is based on binary search and as such locating a key will take O(log n) amortized, this
* includes the by key iterator.
*/
export class SortedList<T> {
private readonly _array: T[] = [];
constructor(
private readonly _getKey: (value: T) => number
) {
}
public clear(): void {
this._array.length = 0;
}
public insert(value: T): void {
if (this._array.length === 0) {
this._array.push(value);
return;
}
i = this._search(this._getKey(value));
this._array.splice(i, 0, value);
}
public delete(value: T): boolean {
if (this._array.length === 0) {
return false;
}
const key = this._getKey(value);
if (key === undefined) {
return false;
}
i = this._search(key);
if (i === -1) {
return false;
}
if (this._getKey(this._array[i]) !== key) {
return false;
}
do {
if (this._array[i] === value) {
this._array.splice(i, 1);
return true;
}
} while (++i < this._array.length && this._getKey(this._array[i]) === key);
return false;
}
public *getKeyIterator(key: number): IterableIterator<T> {
if (this._array.length === 0) {
return;
}
i = this._search(key);
if (i < 0 || i >= this._array.length) {
return;
}
if (this._getKey(this._array[i]) !== key) {
return;
}
do {
yield this._array[i];
} while (++i < this._array.length && this._getKey(this._array[i]) === key);
}
public forEachByKey(key: number, callback: (value: T) => void): void {
if (this._array.length === 0) {
return;
}
i = this._search(key);
if (i < 0 || i >= this._array.length) {
return;
}
if (this._getKey(this._array[i]) !== key) {
return;
}
do {
callback(this._array[i]);
} while (++i < this._array.length && this._getKey(this._array[i]) === key);
}
public values(): IterableIterator<T> {
// Duplicate the array to avoid issues when _array changes while iterating
return [...this._array].values();
}
private _search(key: number): number {
let min = 0;
let max = this._array.length - 1;
while (max >= min) {
let mid = (min + max) >> 1;
const midKey = this._getKey(this._array[mid]);
if (midKey > key) {
max = mid - 1;
} else if (midKey < key) {
min = mid + 1;
} else {
// key in list, walk to lowest duplicate
while (mid > 0 && this._getKey(this._array[mid - 1]) === key) {
mid--;
}
return mid;
}
}
// key not in list
// still return closest min (also used as insert position)
return min;
}
}
@@ -0,0 +1 @@
{"version":3,"file":"cloneDynamicValueBinding.d.ts","sourceRoot":"","sources":["../../../../src/binding/calculations/cloneDynamicValueBinding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EACjD,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACvC,mBAAmB,CAAC,UAAU,CAAC,CAcjC"}
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertCOSEtoPKCS = convertCOSEtoPKCS;
const index_js_1 = require("./iso/index.js");
const cose_js_1 = require("./cose.js");
/**
* Takes COSE-encoded public key and converts it to PKCS key
*/
function convertCOSEtoPKCS(cosePublicKey) {
// This is a little sloppy, I'm using COSEPublicKeyEC2 since it could have both x and y, but when
// there's no y it means it's probably better typed as COSEPublicKeyOKP. I'll leave this for now
// and revisit it later if it ever becomes an actual problem.
const struct = index_js_1.isoCBOR.decodeFirst(cosePublicKey);
const tag = Uint8Array.from([0x04]);
const x = struct.get(cose_js_1.COSEKEYS.x);
const y = struct.get(cose_js_1.COSEKEYS.y);
if (!x) {
throw new Error('COSE public key was missing x');
}
if (y) {
return index_js_1.isoUint8Array.concat([tag, x, y]);
}
return index_js_1.isoUint8Array.concat([tag, x]);
}
@@ -0,0 +1,139 @@
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
var hasElementType = typeof Element !== 'undefined';
var hasMap = typeof Map === 'function';
var hasSet = typeof Set === 'function';
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
function equal(a, b) {
// START: fast-deep-equal es6/index.js 3.1.3
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
var length, i, keys;
if (Array.isArray(a)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (!equal(a[i], b[i])) return false;
return true;
}
// START: Modifications:
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
// to co-exist with es5.
// 2. Replace `for of` with es5 compliant iteration using `for`.
// Basically, take:
//
// ```js
// for (i of a.entries())
// if (!b.has(i[0])) return false;
// ```
//
// ... and convert to:
//
// ```js
// it = a.entries();
// while (!(i = it.next()).done)
// if (!b.has(i.value[0])) return false;
// ```
//
// **Note**: `i` access switches to `i.value`.
var it;
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
if (a.size !== b.size) return false;
it = a.entries();
while (!(i = it.next()).done)
if (!b.has(i.value[0])) return false;
it = a.entries();
while (!(i = it.next()).done)
if (!equal(i.value[1], b.get(i.value[0]))) return false;
return true;
}
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
if (a.size !== b.size) return false;
it = a.entries();
while (!(i = it.next()).done)
if (!b.has(i.value[0])) return false;
return true;
}
// END: Modifications
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
length = a.length;
if (length != b.length) return false;
for (i = length; i-- !== 0;)
if (a[i] !== b[i]) return false;
return true;
}
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
// START: Modifications:
// Apply guards for `Object.create(null)` handling. See:
// - https://github.com/FormidableLabs/react-fast-compare/issues/64
// - https://github.com/epoberezkin/fast-deep-equal/issues/49
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
// END: Modifications
keys = Object.keys(a);
length = keys.length;
if (length !== Object.keys(b).length) return false;
for (i = length; i-- !== 0;)
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
// END: fast-deep-equal
// START: react-fast-compare
// custom handling for DOM elements
if (hasElementType && a instanceof Element) return false;
// custom handling for React/Preact
for (i = length; i-- !== 0;) {
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
// React-specific: avoid traversing React elements' _owner
// Preact-specific: avoid traversing Preact elements' __v and __o
// __v = $_original / $_vnode
// __o = $_owner
// These properties contain circular references and are not needed when
// comparing the actual elements (and not their owners)
// .$$typeof and ._store on just reasonable markers of elements
continue;
}
// all other properties should be traversed as usual
if (!equal(a[keys[i]], b[keys[i]])) return false;
}
// END: react-fast-compare
// START: fast-deep-equal
return true;
}
return a !== a && b !== b;
}
// end fast-deep-equal
module.exports = function isEqual(a, b) {
try {
return equal(a, b);
} catch (error) {
if (((error.message || '').match(/stack|recursion/i))) {
// warn on circular references, don't crash
// browsers give this different errors name and messages:
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
// firefox: "InternalError", too much recursion"
// edge: "Error", "Out of stack space"
console.warn('react-fast-compare cannot handle circular refs');
return false;
}
// some other error. we should definitely know about these
throw error;
}
};
@@ -0,0 +1,87 @@
// @ts-ignore TS6133
import { test } from "vitest";
import * as z from "zod/v3";
import { util } from "../helpers/util.js";
test("first party switch", () => {
const myType = z.string() as z.ZodFirstPartySchemaTypes;
const def = myType._def;
switch (def.typeName) {
case z.ZodFirstPartyTypeKind.ZodString:
break;
case z.ZodFirstPartyTypeKind.ZodNumber:
break;
case z.ZodFirstPartyTypeKind.ZodNaN:
break;
case z.ZodFirstPartyTypeKind.ZodBigInt:
break;
case z.ZodFirstPartyTypeKind.ZodBoolean:
break;
case z.ZodFirstPartyTypeKind.ZodDate:
break;
case z.ZodFirstPartyTypeKind.ZodUndefined:
break;
case z.ZodFirstPartyTypeKind.ZodNull:
break;
case z.ZodFirstPartyTypeKind.ZodAny:
break;
case z.ZodFirstPartyTypeKind.ZodUnknown:
break;
case z.ZodFirstPartyTypeKind.ZodNever:
break;
case z.ZodFirstPartyTypeKind.ZodVoid:
break;
case z.ZodFirstPartyTypeKind.ZodArray:
break;
case z.ZodFirstPartyTypeKind.ZodObject:
break;
case z.ZodFirstPartyTypeKind.ZodUnion:
break;
case z.ZodFirstPartyTypeKind.ZodDiscriminatedUnion:
break;
case z.ZodFirstPartyTypeKind.ZodIntersection:
break;
case z.ZodFirstPartyTypeKind.ZodTuple:
break;
case z.ZodFirstPartyTypeKind.ZodRecord:
break;
case z.ZodFirstPartyTypeKind.ZodMap:
break;
case z.ZodFirstPartyTypeKind.ZodSet:
break;
case z.ZodFirstPartyTypeKind.ZodFunction:
break;
case z.ZodFirstPartyTypeKind.ZodLazy:
break;
case z.ZodFirstPartyTypeKind.ZodLiteral:
break;
case z.ZodFirstPartyTypeKind.ZodEnum:
break;
case z.ZodFirstPartyTypeKind.ZodEffects:
break;
case z.ZodFirstPartyTypeKind.ZodNativeEnum:
break;
case z.ZodFirstPartyTypeKind.ZodOptional:
break;
case z.ZodFirstPartyTypeKind.ZodNullable:
break;
case z.ZodFirstPartyTypeKind.ZodDefault:
break;
case z.ZodFirstPartyTypeKind.ZodCatch:
break;
case z.ZodFirstPartyTypeKind.ZodPromise:
break;
case z.ZodFirstPartyTypeKind.ZodBranded:
break;
case z.ZodFirstPartyTypeKind.ZodPipeline:
break;
case z.ZodFirstPartyTypeKind.ZodSymbol:
break;
case z.ZodFirstPartyTypeKind.ZodReadonly:
break;
default:
util.assertNever(def);
}
});
@@ -0,0 +1,25 @@
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
var isExtglob = require('is-extglob');
module.exports = function isGlob(str) {
if (typeof str !== 'string' || str === '') {
return false;
}
if (isExtglob(str)) return true;
var regex = /(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;
var match;
while ((match = regex.exec(str))) {
if (match[2]) return true;
str = str.slice(match.index + match[0].length);
}
return false;
};
@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BestFitMatcher = BestFitMatcher;
var utils_1 = require("./utils");
/**
* https://tc39.es/ecma402/#sec-bestfitmatcher
* @param availableLocales
* @param requestedLocales
* @param getDefaultLocale
*/
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
var foundLocale;
var extension;
var noExtensionLocales = [];
var noExtensionLocaleMap = requestedLocales.reduce(function (all, l) {
var noExtensionLocale = l.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, '');
noExtensionLocales.push(noExtensionLocale);
all[noExtensionLocale] = l;
return all;
}, {});
var result = (0, utils_1.findBestMatch)(noExtensionLocales, availableLocales);
if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
foundLocale = result.matchedSupportedLocale;
extension =
noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || undefined;
}
if (!foundLocale) {
return { locale: getDefaultLocale() };
}
return {
locale: foundLocale,
extension: extension,
};
}
@@ -0,0 +1,6 @@
import getPrototypeOf from "./getPrototypeOf.js";
function _superPropBase(t, o) {
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
return t;
}
export { _superPropBase as default };
@@ -0,0 +1,678 @@
/**
* @import {
* Code,
* Construct,
* State,
* TokenizeContext,
* Tokenizer
* } from 'micromark-util-types'
*/
import { factorySpace } from 'micromark-factory-space';
import { asciiAlphanumeric, asciiAlpha, markdownLineEndingOrSpace, markdownLineEnding, markdownSpace } from 'micromark-util-character';
/** @type {Construct} */
export const htmlText = {
name: 'htmlText',
tokenize: tokenizeHtmlText
};
/**
* @this {TokenizeContext}
* Context.
* @type {Tokenizer}
*/
function tokenizeHtmlText(effects, ok, nok) {
const self = this;
/** @type {NonNullable<Code> | undefined} */
let marker;
/** @type {number} */
let index;
/** @type {State} */
let returnState;
return start;
/**
* Start of HTML (text).
*
* ```markdown
* > | a <b> c
* ^
* ```
*
* @type {State}
*/
function start(code) {
effects.enter("htmlText");
effects.enter("htmlTextData");
effects.consume(code);
return open;
}
/**
* After `<`, at tag name or other stuff.
*
* ```markdown
* > | a <b> c
* ^
* > | a <!doctype> c
* ^
* > | a <!--b--> c
* ^
* ```
*
* @type {State}
*/
function open(code) {
if (code === 33) {
effects.consume(code);
return declarationOpen;
}
if (code === 47) {
effects.consume(code);
return tagCloseStart;
}
if (code === 63) {
effects.consume(code);
return instruction;
}
// ASCII alphabetical.
if (asciiAlpha(code)) {
effects.consume(code);
return tagOpen;
}
return nok(code);
}
/**
* After `<!`, at declaration, comment, or CDATA.
*
* ```markdown
* > | a <!doctype> c
* ^
* > | a <!--b--> c
* ^
* > | a <![CDATA[>&<]]> c
* ^
* ```
*
* @type {State}
*/
function declarationOpen(code) {
if (code === 45) {
effects.consume(code);
return commentOpenInside;
}
if (code === 91) {
effects.consume(code);
index = 0;
return cdataOpenInside;
}
if (asciiAlpha(code)) {
effects.consume(code);
return declaration;
}
return nok(code);
}
/**
* In a comment, after `<!-`, at another `-`.
*
* ```markdown
* > | a <!--b--> c
* ^
* ```
*
* @type {State}
*/
function commentOpenInside(code) {
if (code === 45) {
effects.consume(code);
return commentEnd;
}
return nok(code);
}
/**
* In comment.
*
* ```markdown
* > | a <!--b--> c
* ^
* ```
*
* @type {State}
*/
function comment(code) {
if (code === null) {
return nok(code);
}
if (code === 45) {
effects.consume(code);
return commentClose;
}
if (markdownLineEnding(code)) {
returnState = comment;
return lineEndingBefore(code);
}
effects.consume(code);
return comment;
}
/**
* In comment, after `-`.
*
* ```markdown
* > | a <!--b--> c
* ^
* ```
*
* @type {State}
*/
function commentClose(code) {
if (code === 45) {
effects.consume(code);
return commentEnd;
}
return comment(code);
}
/**
* In comment, after `--`.
*
* ```markdown
* > | a <!--b--> c
* ^
* ```
*
* @type {State}
*/
function commentEnd(code) {
return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code);
}
/**
* After `<![`, in CDATA, expecting `CDATA[`.
*
* ```markdown
* > | a <![CDATA[>&<]]> b
* ^^^^^^
* ```
*
* @type {State}
*/
function cdataOpenInside(code) {
const value = "CDATA[";
if (code === value.charCodeAt(index++)) {
effects.consume(code);
return index === value.length ? cdata : cdataOpenInside;
}
return nok(code);
}
/**
* In CDATA.
*
* ```markdown
* > | a <![CDATA[>&<]]> b
* ^^^
* ```
*
* @type {State}
*/
function cdata(code) {
if (code === null) {
return nok(code);
}
if (code === 93) {
effects.consume(code);
return cdataClose;
}
if (markdownLineEnding(code)) {
returnState = cdata;
return lineEndingBefore(code);
}
effects.consume(code);
return cdata;
}
/**
* In CDATA, after `]`, at another `]`.
*
* ```markdown
* > | a <![CDATA[>&<]]> b
* ^
* ```
*
* @type {State}
*/
function cdataClose(code) {
if (code === 93) {
effects.consume(code);
return cdataEnd;
}
return cdata(code);
}
/**
* In CDATA, after `]]`, at `>`.
*
* ```markdown
* > | a <![CDATA[>&<]]> b
* ^
* ```
*
* @type {State}
*/
function cdataEnd(code) {
if (code === 62) {
return end(code);
}
if (code === 93) {
effects.consume(code);
return cdataEnd;
}
return cdata(code);
}
/**
* In declaration.
*
* ```markdown
* > | a <!b> c
* ^
* ```
*
* @type {State}
*/
function declaration(code) {
if (code === null || code === 62) {
return end(code);
}
if (markdownLineEnding(code)) {
returnState = declaration;
return lineEndingBefore(code);
}
effects.consume(code);
return declaration;
}
/**
* In instruction.
*
* ```markdown
* > | a <?b?> c
* ^
* ```
*
* @type {State}
*/
function instruction(code) {
if (code === null) {
return nok(code);
}
if (code === 63) {
effects.consume(code);
return instructionClose;
}
if (markdownLineEnding(code)) {
returnState = instruction;
return lineEndingBefore(code);
}
effects.consume(code);
return instruction;
}
/**
* In instruction, after `?`, at `>`.
*
* ```markdown
* > | a <?b?> c
* ^
* ```
*
* @type {State}
*/
function instructionClose(code) {
return code === 62 ? end(code) : instruction(code);
}
/**
* After `</`, in closing tag, at tag name.
*
* ```markdown
* > | a </b> c
* ^
* ```
*
* @type {State}
*/
function tagCloseStart(code) {
// ASCII alphabetical.
if (asciiAlpha(code)) {
effects.consume(code);
return tagClose;
}
return nok(code);
}
/**
* After `</x`, in a tag name.
*
* ```markdown
* > | a </b> c
* ^
* ```
*
* @type {State}
*/
function tagClose(code) {
// ASCII alphanumerical and `-`.
if (code === 45 || asciiAlphanumeric(code)) {
effects.consume(code);
return tagClose;
}
return tagCloseBetween(code);
}
/**
* In closing tag, after tag name.
*
* ```markdown
* > | a </b> c
* ^
* ```
*
* @type {State}
*/
function tagCloseBetween(code) {
if (markdownLineEnding(code)) {
returnState = tagCloseBetween;
return lineEndingBefore(code);
}
if (markdownSpace(code)) {
effects.consume(code);
return tagCloseBetween;
}
return end(code);
}
/**
* After `<x`, in opening tag name.
*
* ```markdown
* > | a <b> c
* ^
* ```
*
* @type {State}
*/
function tagOpen(code) {
// ASCII alphanumerical and `-`.
if (code === 45 || asciiAlphanumeric(code)) {
effects.consume(code);
return tagOpen;
}
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
return tagOpenBetween(code);
}
return nok(code);
}
/**
* In opening tag, after tag name.
*
* ```markdown
* > | a <b> c
* ^
* ```
*
* @type {State}
*/
function tagOpenBetween(code) {
if (code === 47) {
effects.consume(code);
return end;
}
// ASCII alphabetical and `:` and `_`.
if (code === 58 || code === 95 || asciiAlpha(code)) {
effects.consume(code);
return tagOpenAttributeName;
}
if (markdownLineEnding(code)) {
returnState = tagOpenBetween;
return lineEndingBefore(code);
}
if (markdownSpace(code)) {
effects.consume(code);
return tagOpenBetween;
}
return end(code);
}
/**
* In attribute name.
*
* ```markdown
* > | a <b c> d
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeName(code) {
// ASCII alphabetical and `-`, `.`, `:`, and `_`.
if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) {
effects.consume(code);
return tagOpenAttributeName;
}
return tagOpenAttributeNameAfter(code);
}
/**
* After attribute name, before initializer, the end of the tag, or
* whitespace.
*
* ```markdown
* > | a <b c> d
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeNameAfter(code) {
if (code === 61) {
effects.consume(code);
return tagOpenAttributeValueBefore;
}
if (markdownLineEnding(code)) {
returnState = tagOpenAttributeNameAfter;
return lineEndingBefore(code);
}
if (markdownSpace(code)) {
effects.consume(code);
return tagOpenAttributeNameAfter;
}
return tagOpenBetween(code);
}
/**
* Before unquoted, double quoted, or single quoted attribute value, allowing
* whitespace.
*
* ```markdown
* > | a <b c=d> e
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeValueBefore(code) {
if (code === null || code === 60 || code === 61 || code === 62 || code === 96) {
return nok(code);
}
if (code === 34 || code === 39) {
effects.consume(code);
marker = code;
return tagOpenAttributeValueQuoted;
}
if (markdownLineEnding(code)) {
returnState = tagOpenAttributeValueBefore;
return lineEndingBefore(code);
}
if (markdownSpace(code)) {
effects.consume(code);
return tagOpenAttributeValueBefore;
}
effects.consume(code);
return tagOpenAttributeValueUnquoted;
}
/**
* In double or single quoted attribute value.
*
* ```markdown
* > | a <b c="d"> e
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeValueQuoted(code) {
if (code === marker) {
effects.consume(code);
marker = undefined;
return tagOpenAttributeValueQuotedAfter;
}
if (code === null) {
return nok(code);
}
if (markdownLineEnding(code)) {
returnState = tagOpenAttributeValueQuoted;
return lineEndingBefore(code);
}
effects.consume(code);
return tagOpenAttributeValueQuoted;
}
/**
* In unquoted attribute value.
*
* ```markdown
* > | a <b c=d> e
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeValueUnquoted(code) {
if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) {
return nok(code);
}
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
return tagOpenBetween(code);
}
effects.consume(code);
return tagOpenAttributeValueUnquoted;
}
/**
* After double or single quoted attribute value, before whitespace or the end
* of the tag.
*
* ```markdown
* > | a <b c="d"> e
* ^
* ```
*
* @type {State}
*/
function tagOpenAttributeValueQuotedAfter(code) {
if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {
return tagOpenBetween(code);
}
return nok(code);
}
/**
* In certain circumstances of a tag where only an `>` is allowed.
*
* ```markdown
* > | a <b c="d"> e
* ^
* ```
*
* @type {State}
*/
function end(code) {
if (code === 62) {
effects.consume(code);
effects.exit("htmlTextData");
effects.exit("htmlText");
return ok;
}
return nok(code);
}
/**
* At eol.
*
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
* > empty tokens.
*
* ```markdown
* > | a <!--a
* ^
* | b-->
* ```
*
* @type {State}
*/
function lineEndingBefore(code) {
effects.exit("htmlTextData");
effects.enter("lineEnding");
effects.consume(code);
effects.exit("lineEnding");
return lineEndingAfter;
}
/**
* After eol, at optional whitespace.
*
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
* > empty tokens.
*
* ```markdown
* | a <!--a
* > | b-->
* ^
* ```
*
* @type {State}
*/
function lineEndingAfter(code) {
// Always populated by defaults.
return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, "linePrefix", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : lineEndingAfterPrefix(code);
}
/**
* After eol, after optional whitespace.
*
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
* > empty tokens.
*
* ```markdown
* | a <!--a
* > | b-->
* ^
* ```
*
* @type {State}
*/
function lineEndingAfterPrefix(code) {
effects.enter("htmlTextData");
return returnState(code);
}
}
@@ -0,0 +1,38 @@
/**
* syslog.js: Config that conform to syslog logging levels.
*
* (C) 2010 Charlie Robbins
* MIT LICENCE
*/
'use strict';
/**
* Default levels for the syslog configuration.
* @type {Object}
*/
exports.levels = {
emerg: 0,
alert: 1,
crit: 2,
error: 3,
warning: 4,
notice: 5,
info: 6,
debug: 7
};
/**
* Default levels for the syslog configuration.
* @type {Object}
*/
exports.colors = {
emerg: 'red',
alert: 'yellow',
crit: 'red',
error: 'red',
warning: 'red',
notice: 'yellow',
info: 'green',
debug: 'blue'
};
@@ -0,0 +1,27 @@
var baseIsArrayBuffer = require('./_baseIsArrayBuffer'),
baseUnary = require('./_baseUnary'),
nodeUtil = require('./_nodeUtil');
/* Node.js helper references. */
var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer;
/**
* Checks if `value` is classified as an `ArrayBuffer` object.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
* @example
*
* _.isArrayBuffer(new ArrayBuffer(2));
* // => true
*
* _.isArrayBuffer(new Array(2));
* // => false
*/
var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
module.exports = isArrayBuffer;
@@ -0,0 +1,43 @@
{
"name": "merge2",
"description": "Merge multiple streams into one stream in sequence or parallel.",
"authors": [
"Yan Qing <admin@zensh.com>"
],
"license": "MIT",
"version": "1.4.1",
"main": "./index.js",
"repository": {
"type": "git",
"url": "git@github.com:teambition/merge2.git"
},
"homepage": "https://github.com/teambition/merge2",
"keywords": [
"merge2",
"multiple",
"sequence",
"parallel",
"merge",
"stream",
"merge stream",
"sync"
],
"engines": {
"node": ">= 8"
},
"dependencies": {},
"devDependencies": {
"standard": "^14.3.4",
"through2": "^3.0.1",
"thunks": "^4.9.6",
"tman": "^1.10.0",
"to-through": "^2.0.0"
},
"scripts": {
"test": "standard && tman"
},
"files": [
"README.md",
"index.js"
]
}
@@ -0,0 +1,14 @@
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimStart() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimStart: polyfill },
{ trimStart: function () { return String.prototype.trimStart !== polyfill; } }
);
return polyfill;
};
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var structureRole = {
abstract: true,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: [],
prohibitedProps: [],
props: {},
relatedConcepts: [],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype']]
};
var _default = exports.default = structureRole;
@@ -0,0 +1,41 @@
import { px } from 'motion-dom';
function pixelsToPercent(pixels, axis) {
if (axis.max === axis.min)
return 0;
return (pixels / (axis.max - axis.min)) * 100;
}
/**
* We always correct borderRadius as a percentage rather than pixels to reduce paints.
* For example, if you are projecting a box that is 100px wide with a 10px borderRadius
* into a box that is 200px wide with a 20px borderRadius, that is actually a 10%
* borderRadius in both states. If we animate between the two in pixels that will trigger
* a paint each time. If we animate between the two in percentage we'll avoid a paint.
*/
const correctBorderRadius = {
correct: (latest, node) => {
if (!node.target)
return latest;
/**
* If latest is a string, if it's a percentage we can return immediately as it's
* going to be stretched appropriately. Otherwise, if it's a pixel, convert it to a number.
*/
if (typeof latest === "string") {
if (px.test(latest)) {
latest = parseFloat(latest);
}
else {
return latest;
}
}
/**
* If latest is a number, it's a pixel value. We use the current viewportBox to calculate that
* pixel value as a percentage of each axis
*/
const x = pixelsToPercent(latest, node.target.x);
const y = pixelsToPercent(latest, node.target.y);
return `${x}% ${y}%`;
},
};
export { correctBorderRadius, pixelsToPercent };
@@ -0,0 +1,2 @@
import { KeyboardCoordinateGetter } from '@dnd-kit/core';
export declare const sortableKeyboardCoordinates: KeyboardCoordinateGetter;
@@ -0,0 +1,54 @@
/// <reference types="node" />
import { Blob } from 'buffer'
import { DOMException, EventInit } from './patch'
export declare class FileReader {
__proto__: EventTarget & FileReader
constructor ()
readAsArrayBuffer (blob: Blob): void
readAsBinaryString (blob: Blob): void
readAsText (blob: Blob, encoding?: string): void
readAsDataURL (blob: Blob): void
abort (): void
static readonly EMPTY = 0
static readonly LOADING = 1
static readonly DONE = 2
readonly EMPTY = 0
readonly LOADING = 1
readonly DONE = 2
readonly readyState: number
readonly result: string | ArrayBuffer | null
readonly error: DOMException | null
onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
onload: null | ((this: FileReader, event: ProgressEvent) => void)
onabort: null | ((this: FileReader, event: ProgressEvent) => void)
onerror: null | ((this: FileReader, event: ProgressEvent) => void)
onloadend: null | ((this: FileReader, event: ProgressEvent) => void)
}
export interface ProgressEventInit extends EventInit {
lengthComputable?: boolean
loaded?: number
total?: number
}
export declare class ProgressEvent {
__proto__: Event & ProgressEvent
constructor (type: string, eventInitDict?: ProgressEventInit)
readonly lengthComputable: boolean
readonly loaded: number
readonly total: number
}
@@ -0,0 +1,91 @@
import test from 'tape';
import attributesComparator from '../../../src/util/attributesComparator';
import JSXAttributeMock from '../../../__mocks__/JSXAttributeMock';
import JSXElementMock from '../../../__mocks__/JSXElementMock';
test('attributesComparator', (t) => {
t.equal(
attributesComparator(),
true,
'baseAttributes are undefined and attributes are undefined -> true',
);
t.equal(
attributesComparator([], []),
true,
'baseAttributes are empty and attributes are empty -> true',
);
t.equal(
attributesComparator([], [
JSXAttributeMock('foo', 0),
JSXAttributeMock('bar', 'baz'),
]),
true,
'baseAttributes are empty and attributes have values -> true',
);
const baseAttributes = [
{
name: 'biz',
value: 1,
}, {
name: 'fizz',
value: 'pop',
}, {
name: 'fuzz',
value: 'lolz',
},
];
t.equal(
attributesComparator(baseAttributes, []),
false,
'baseAttributes have values and attributes are empty -> false',
);
t.equal(
attributesComparator(baseAttributes, [
JSXElementMock(),
JSXAttributeMock('biz', 2),
JSXAttributeMock('ziff', 'opo'),
JSXAttributeMock('far', 'lolz'),
]),
false,
'baseAttributes have values and attributes have values, and the values are different -> false',
);
t.equal(
attributesComparator(baseAttributes, [
JSXAttributeMock('biz', 1),
JSXAttributeMock('fizz', 'pop'),
JSXAttributeMock('goo', 'gazz'),
]),
false,
'baseAttributes have values and attributes have values, and the values are a subset -> false',
);
t.equal(
attributesComparator(baseAttributes, [
JSXAttributeMock('biz', 1),
JSXAttributeMock('fizz', 'pop'),
JSXAttributeMock('fuzz', 'lolz'),
]),
true,
'baseAttributes have values and attributes have values, and the values are the same -> true',
);
t.equal(
attributesComparator(baseAttributes, [
JSXAttributeMock('biz', 1),
JSXAttributeMock('fizz', 'pop'),
JSXAttributeMock('fuzz', 'lolz'),
JSXAttributeMock('dar', 'tee'),
]),
true,
'baseAttributes have values and attributes have values, and the values are a superset -> true',
);
t.end();
});
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const esnext_decorators: LibDefinition;
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Robert Eisele
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,223 @@
#!/usr/bin/env node
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
// lib/npm/node-platform.ts
var fs = require("fs");
var os = require("os");
var path = require("path");
var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
var packageDarwin_arm64 = "@esbuild/darwin-arm64";
var packageDarwin_x64 = "@esbuild/darwin-x64";
var knownWindowsPackages = {
"win32 arm64 LE": "@esbuild/win32-arm64",
"win32 ia32 LE": "@esbuild/win32-ia32",
"win32 x64 LE": "@esbuild/win32-x64"
};
var knownUnixlikePackages = {
"aix ppc64 BE": "@esbuild/aix-ppc64",
"android arm64 LE": "@esbuild/android-arm64",
"darwin arm64 LE": "@esbuild/darwin-arm64",
"darwin x64 LE": "@esbuild/darwin-x64",
"freebsd arm64 LE": "@esbuild/freebsd-arm64",
"freebsd x64 LE": "@esbuild/freebsd-x64",
"linux arm LE": "@esbuild/linux-arm",
"linux arm64 LE": "@esbuild/linux-arm64",
"linux ia32 LE": "@esbuild/linux-ia32",
"linux mips64el LE": "@esbuild/linux-mips64el",
"linux ppc64 LE": "@esbuild/linux-ppc64",
"linux riscv64 LE": "@esbuild/linux-riscv64",
"linux s390x BE": "@esbuild/linux-s390x",
"linux x64 LE": "@esbuild/linux-x64",
"linux loong64 LE": "@esbuild/linux-loong64",
"netbsd arm64 LE": "@esbuild/netbsd-arm64",
"netbsd x64 LE": "@esbuild/netbsd-x64",
"openbsd arm64 LE": "@esbuild/openbsd-arm64",
"openbsd x64 LE": "@esbuild/openbsd-x64",
"sunos x64 LE": "@esbuild/sunos-x64"
};
var knownWebAssemblyFallbackPackages = {
"android arm LE": "@esbuild/android-arm",
"android x64 LE": "@esbuild/android-x64",
"openharmony arm64 LE": "@esbuild/openharmony-arm64"
};
function pkgAndSubpathForCurrentPlatform() {
let pkg;
let subpath;
let isWASM2 = false;
let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
if (platformKey in knownWindowsPackages) {
pkg = knownWindowsPackages[platformKey];
subpath = "esbuild.exe";
} else if (platformKey in knownUnixlikePackages) {
pkg = knownUnixlikePackages[platformKey];
subpath = "bin/esbuild";
} else if (platformKey in knownWebAssemblyFallbackPackages) {
pkg = knownWebAssemblyFallbackPackages[platformKey];
subpath = "bin/esbuild";
isWASM2 = true;
} else {
throw new Error(`Unsupported platform: ${platformKey}`);
}
return { pkg, subpath, isWASM: isWASM2 };
}
function pkgForSomeOtherPlatform() {
const libMainJS = require.resolve("esbuild");
const nodeModulesDirectory = path.dirname(path.dirname(path.dirname(libMainJS)));
if (path.basename(nodeModulesDirectory) === "node_modules") {
for (const unixKey in knownUnixlikePackages) {
try {
const pkg = knownUnixlikePackages[unixKey];
if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
} catch {
}
}
for (const windowsKey in knownWindowsPackages) {
try {
const pkg = knownWindowsPackages[windowsKey];
if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
} catch {
}
}
}
return null;
}
function downloadedBinPath(pkg, subpath) {
const esbuildLibDir = path.dirname(require.resolve("esbuild"));
return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
}
function generateBinPath() {
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
if (!fs.existsSync(ESBUILD_BINARY_PATH)) {
console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
} else {
return { binPath: ESBUILD_BINARY_PATH, isWASM: false };
}
}
const { pkg, subpath, isWASM: isWASM2 } = pkgAndSubpathForCurrentPlatform();
let binPath2;
try {
binPath2 = require.resolve(`${pkg}/${subpath}`);
} catch (e) {
binPath2 = downloadedBinPath(pkg, subpath);
if (!fs.existsSync(binPath2)) {
try {
require.resolve(pkg);
} catch {
const otherPkg = pkgForSomeOtherPlatform();
if (otherPkg) {
let suggestions = `
Specifically the "${otherPkg}" package is present but this platform
needs the "${pkg}" package instead. People often get into this
situation by installing esbuild on Windows or macOS and copying "node_modules"
into a Docker image that runs Linux, or by copying "node_modules" between
Windows and WSL environments.
If you are installing with npm, you can try not copying the "node_modules"
directory when you copy the files over, and running "npm ci" or "npm install"
on the destination platform after the copy. Or you could consider using yarn
instead of npm which has built-in support for installing a package on multiple
platforms simultaneously.
If you are installing with yarn, you can try listing both this platform and the
other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
Keep in mind that this means multiple copies of esbuild will be present.
`;
if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {
suggestions = `
Specifically the "${otherPkg}" package is present but this platform
needs the "${pkg}" package instead. People often get into this
situation by installing esbuild with npm running inside of Rosetta 2 and then
trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
2 is Apple's on-the-fly x86_64-to-arm64 translation service).
If you are installing with npm, you can try ensuring that both npm and node are
not running under Rosetta 2 and then reinstalling esbuild. This likely involves
changing how you installed npm and/or node. For example, installing node with
the universal installer here should work: https://nodejs.org/en/download/. Or
you could consider using yarn instead of npm which has built-in support for
installing a package on multiple platforms simultaneously.
If you are installing with yarn, you can try listing both "arm64" and "x64"
in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
Keep in mind that this means multiple copies of esbuild will be present.
`;
}
throw new Error(`
You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.
${suggestions}
Another alternative is to use the "esbuild-wasm" package instead, which works
the same way on all platforms. But it comes with a heavy performance cost and
can sometimes be 10x slower than the "esbuild" package, so you may also not
want to do that.
`);
}
throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
If you are installing esbuild with npm, make sure that you don't specify the
"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
of "package.json" is used by esbuild to install the correct binary executable
for your current platform.`);
}
throw e;
}
}
if (/\.zip\//.test(binPath2)) {
let pnpapi;
try {
pnpapi = require("pnpapi");
} catch (e) {
}
if (pnpapi) {
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
const binTargetPath = path.join(
root,
"node_modules",
".cache",
"esbuild",
`pnpapi-${pkg.replace("/", "-")}-${"0.25.12"}-${path.basename(subpath)}`
);
if (!fs.existsSync(binTargetPath)) {
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
fs.copyFileSync(binPath2, binTargetPath);
fs.chmodSync(binTargetPath, 493);
}
return { binPath: binTargetPath, isWASM: isWASM2 };
}
}
return { binPath: binPath2, isWASM: isWASM2 };
}
// lib/npm/node-shim.ts
var { binPath, isWASM } = generateBinPath();
if (isWASM) {
require("child_process").execFileSync("node", [binPath].concat(process.argv.slice(2)), { stdio: "inherit" });
} else {
require("child_process").execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
}
@@ -0,0 +1,77 @@
# flat-cache
> A stupidly simple key/value storage using files to persist the data
[![NPM Version](https://img.shields.io/npm/v/flat-cache.svg?style=flat)](https://npmjs.org/package/flat-cache)
[![tests](https://github.com/jaredwray/flat-cache/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/jaredwray/flat-cache/actions/workflows/tests.yaml)
[![codecov](https://codecov.io/github/jaredwray/flat-cache/branch/master/graph/badge.svg?token=KxR95XT3NF)](https://codecov.io/github/jaredwray/flat-cache)
[![npm](https://img.shields.io/npm/dm/flat-cache)](https://npmjs.com/package/flat-cache)
## install
```bash
npm i --save flat-cache
```
## Usage
```js
const flatCache = require('flat-cache');
// loads the cache, if one does not exists for the given
// Id a new one will be prepared to be created
const cache = flatCache.load('cacheId');
// sets a key on the cache
cache.setKey('key', { foo: 'var' });
// get a key from the cache
cache.getKey('key'); // { foo: 'var' }
// fetch the entire persisted object
cache.all(); // { 'key': { foo: 'var' } }
// remove a key
cache.removeKey('key'); // removes a key from the cache
// save it to disk
cache.save(); // very important, if you don't save no changes will be persisted.
// cache.save( true /* noPrune */) // can be used to prevent the removal of non visited keys
// loads the cache from a given directory, if one does
// not exists for the given Id a new one will be prepared to be created
const cache = flatCache.load('cacheId', path.resolve('./path/to/folder'));
// The following methods are useful to clear the cache
// delete a given cache
flatCache.clearCacheById('cacheId'); // removes the cacheId document if one exists.
// delete all cache
flatCache.clearAll(); // remove the cache directory
```
## Motivation for this module
I needed a super simple and dumb **in-memory cache** with optional disk persistance in order to make
a script that will beutify files with `esformatter` only execute on the files that were changed since the last run.
To make that possible we need to store the `fileSize` and `modificationTime` of the files. So a simple `key/value`
storage was needed and Bam! this module was born.
## Important notes
- If no directory is especified when the `load` method is called, a folder named `.cache` will be created
inside the module directory when `cache.save` is called. If you're committing your `node_modules` to any vcs, you
might want to ignore the default `.cache` folder, or specify a custom directory.
- The values set on the keys of the cache should be `stringify-able` ones, meaning no circular references
- All the changes to the cache state are done to memory
- I could have used a timer or `Object.observe` to deliver the changes to disk, but I wanted to keep this module
intentionally dumb and simple
- Non visited keys are removed when `cache.save()` is called. If this is not desired, you can pass `true` to the save call
like: `cache.save( true /* noPrune */ )`.
## License
MIT
## Changelog
[changelog](./changelog.md)
@@ -0,0 +1,43 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("eslint-utils")
module.exports = {
meta: {
docs: {
description: "disallow the `Number.isNaN` method.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-number-isnan.html",
},
fixable: null,
messages: {
forbidden: "ES2015 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"() {
const tracker = new ReferenceTracker(context.getScope())
for (const { node, path } of tracker.iterateGlobalReferences({
Number: {
isNaN: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,oBAAoB,CAAC,6IAAmG,CAAC;AAC7I","sources":["packages/@react-aria/menu/intl/lv-LV.json"],"sourcesContent":["{\n \"longPressMessage\": \"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
@@ -0,0 +1,2 @@
import type { CollectionTag, ScalarTag } from '../types';
export declare const schema: (CollectionTag | ScalarTag)[];
@@ -0,0 +1,15 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBind = require('./');
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
module.exports = function callBoundIntrinsic(name, allowMissing) {
var intrinsic = GetIntrinsic(name, !!allowMissing);
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
return callBind(intrinsic);
}
return intrinsic;
};
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('reject', require('../reject'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,2 @@
import { Coordinates } from '@dnd-kit/utilities';
export declare function useScrollOffsetsDelta(scrollOffsets: Coordinates, dependencies?: any[]): Coordinates;
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AA6JA;;;;;;;;;;;GAWG;AACH,qCAPW,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC,YAEvD,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAElC,MAAM,CAsMlB;;;;mCA1WY,OAAO;;;;;;;;;;;;;;;;;;;;;;;sBAON,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;;;;YAiB1B,aAAa,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;mBAOpE,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;qBAqB1B,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;cAqB1B,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmB1B,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS"}
@@ -0,0 +1,22 @@
## Usage
```javascript
var correct = require('spdx-correct')
var assert = require('assert')
assert.strictEqual(correct('mit'), 'MIT')
assert.strictEqual(correct('Apache 2'), 'Apache-2.0')
assert(correct('No idea what license') === null)
// disable upgrade option
assert(correct('GPL-3.0'), 'GPL-3.0-or-later')
assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
```
## Contributors
spdx-correct has benefited from the work of several contributors.
See [the GitHub repository](https://github.com/jslicense/spdx-correct.js/graphs/contributors)
for more information.
@@ -0,0 +1,14 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var client = require('framer-motion/client');
Object.keys(client).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () { return client[k]; }
});
});
@@ -0,0 +1,154 @@
/**
* @fileoverview restrict values that can be used as Promise rejection reasons
* @author Teddy Katz
*/
"use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "suggestion",
defaultOptions: [
{
allowEmptyReject: false,
},
],
docs: {
description:
"Require using Error objects as Promise rejection reasons",
recommended: false,
url: "https://eslint.org/docs/latest/rules/prefer-promise-reject-errors",
},
fixable: null,
schema: [
{
type: "object",
properties: {
allowEmptyReject: { type: "boolean" },
},
additionalProperties: false,
},
],
messages: {
rejectAnError:
"Expected the Promise rejection reason to be an Error.",
},
},
create(context) {
const [{ allowEmptyReject }] = context.options;
const sourceCode = context.sourceCode;
//----------------------------------------------------------------------
// Helpers
//----------------------------------------------------------------------
/**
* Checks the argument of a reject() or Promise.reject() CallExpression, and reports it if it can't be an Error
* @param {ASTNode} callExpression A CallExpression node which is used to reject a Promise
* @returns {void}
*/
function checkRejectCall(callExpression) {
if (!callExpression.arguments.length && allowEmptyReject) {
return;
}
if (
!callExpression.arguments.length ||
!astUtils.couldBeError(callExpression.arguments[0]) ||
(callExpression.arguments[0].type === "Identifier" &&
callExpression.arguments[0].name === "undefined")
) {
context.report({
node: callExpression,
messageId: "rejectAnError",
});
}
}
/**
* Determines whether a function call is a Promise.reject() call
* @param {ASTNode} node A CallExpression node
* @returns {boolean} `true` if the call is a Promise.reject() call
*/
function isPromiseRejectCall(node) {
return astUtils.isSpecificMemberAccess(
node.callee,
"Promise",
"reject",
);
}
//----------------------------------------------------------------------
// Public
//----------------------------------------------------------------------
return {
// Check `Promise.reject(value)` calls.
CallExpression(node) {
if (isPromiseRejectCall(node)) {
checkRejectCall(node);
}
},
/*
* Check for `new Promise((resolve, reject) => {})`, and check for reject() calls.
* This function is run on "NewExpression:exit" instead of "NewExpression" to ensure that
* the nodes in the expression already have the `parent` property.
*/
"NewExpression:exit"(node) {
if (
node.callee.type === "Identifier" &&
node.callee.name === "Promise" &&
node.arguments.length &&
astUtils.isFunction(node.arguments[0]) &&
node.arguments[0].params.length > 1 &&
node.arguments[0].params[1].type === "Identifier"
) {
sourceCode
.getDeclaredVariables(node.arguments[0])
/*
* Find the first variable that matches the second parameter's name.
* If the first parameter has the same name as the second parameter, then the variable will actually
* be "declared" when the first parameter is evaluated, but then it will be immediately overwritten
* by the second parameter. It's not possible for an expression with the variable to be evaluated before
* the variable is overwritten, because functions with duplicate parameters cannot have destructuring or
* default assignments in their parameter lists. Therefore, it's not necessary to explicitly account for
* this case.
*/
.find(
variable =>
variable.name ===
node.arguments[0].params[1].name,
)
// Get the references to that variable.
.references // Only check the references that read the parameter's value.
.filter(ref => ref.isRead())
// Only check the references that are used as the callee in a function call, e.g. `reject(foo)`.
.filter(
ref =>
ref.identifier.parent.type ===
"CallExpression" &&
ref.identifier === ref.identifier.parent.callee,
)
// Check the argument of the function call to determine whether it's an Error.
.forEach(ref => checkRejectCall(ref.identifier.parent));
}
},
};
},
};
@@ -0,0 +1,11 @@
'use strict';
var modulo = require('./modulo');
var msPerSecond = require('../helpers/timeConstants').msPerSecond;
// https://262.ecma-international.org/5.1/#sec-15.9.1.10
module.exports = function msFromTime(t) {
return modulo(t, msPerSecond);
};
@@ -0,0 +1,742 @@
export default `flf2a$ 7 7 15 0 19 0 24447 0
Author : myflix
Date : 2004/6/9 7:40:40
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
---
Font modified June 17, 2007 by patorjk
- Widened the space character.
Font modified May 26, 2012 by patorjk
- Added the 0xCA0 character.
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $##
,---. #
| | #
| .' #
| | #
\`--' #
.--. #
'--' ##
#
,--. ,--. #
| | | | #
\`-' \`-' #
#
#
##
,--. ,--. #
,-| |-| |-.#
'-| |-| |-'#
,-| |-| |-.#
'-| |-| |-'#
\`--' \`--' #
##
,--. #
,-| |-. #
| | |-' #
'-| |\`\\ #
.--| | / #
\`--| |' #
\`--' ##
,--. #
.-. / / #
'-'/ / #
/ / #
/ /.-. #
/ / '-' #
\`--' ##
#
,---. #
| o ,-. #
.' /_ #
| o .__) #
\`---' #
##
#
,--. #
| | #
\`-' #
#
#
##
#
,-. #
/ .' #
| | #
| | #
\\ '. #
\`-' ##
#
,-. #
'. \\ #
| | #
| | #
.' / #
\`-' ##
,--. #
.-,| |,-. #
_\\ ' ' /_ #
(__ __) #
/ . . \\ #
\`-'| |\`-' #
\`--' ##
,--. #
| | #
,---| |---. #
'---| |---' #
| | #
\`--' #
##
#
#
#
#
,--. #
'-,/ #
##
#
#
,-----. #
'-----' #
#
#
##
#
#
#
#
.--. #
'--' #
##
,--. #
/ / #
/ / #
/ / #
/ / #
/ / #
\`--' ##
#
,--. #
/ \\ #
| () | #
\\ / #
\`--' #
##
#
,--. #
/ | #
\`| | #
| | #
\`--' #
##
#
,---. #
'.-. \\ #
.-' .' #
/ '-. #
'-----' #
##
#
,----. #
'.-. | #
.' < #
/'-' | #
\`----' #
##
#
,---. #
/ | #
/ ' | #
'--| | #
\`--' #
##
#
,-----. #
| .--' #
'--. \`\\ #
.--' / #
\`----' #
##
#
,--. #
/ .' #
| .-. #
\\ o | #
\`---' #
##
#
,-----. #
'--, / #
.' / #
/ / #
\`--' #
##
#
,---. #
| o | #
.' '. #
| o | #
\`---' #
##
#
,---. #
| o \\ #
\`..' | #
.' / #
\`--' #
##
#
#
.--. #
'--' #
.--. #
'--' #
##
#
#
.--. #
'--' #
.--. #
'-,/ #
##
#
,-. #
/ / #
/ / #
\\ \\ #
\\ \\ #
\`-' ##
#
#
,---. #
'---' #
,---. #
'---' #
##
#
,-. #
\\ \\ #
\\ \\ #
/ / #
/ / #
\`-' ##
,------. #
' .--. ' #
'--' _| | #
.--' __' #
\`---' #
.---. #
'---' ##
#
,----. #
' , | #
| | / #
' '--'| #
\`----' #
##
#
,---. #
/ O \\ #
| .-. | #
| | | | #
\`--' \`--' #
##
#
,-----. #
| |) /_ #
| .-. \\ #
| '--' / #
\`------' #
##
#
,-----. #
' .--./ #
| | #
' '--'\\ #
\`-----' #
##
#
,------. #
| .-. \\ #
| | \\ : #
| '--' / #
\`-------' #
##
#
,------. #
| .---' #
| \`--, #
| \`---. #
\`------' #
##
#
,------. #
| .---' #
| \`--, #
| |\` #
\`--' #
##
#
,----. #
' .-./ #
| | .---. #
' '--' | #
\`------' #
##
#
,--. ,--. #
| '--' | #
| .--. | #
| | | | #
\`--' \`--' #
##
#
,--. #
| | #
| | #
| | #
\`--' #
##
#
,--. #
| | #
,--. | | #
| '-' / #
\`-----' #
##
#
,--. ,--. #
| .' / #
| . ' #
| |\\ \\ #
\`--' '--' #
##
#
,--. #
| | #
| | #
| '--. #
\`-----' #
##
#
,--. ,--. #
| \`.' | #
| |'.'| | #
| | | | #
\`--' \`--' #
##
#
,--. ,--. #
| ,'.| | #
| |' ' | #
| | \` | #
\`--' \`--' #
##
#
,-----. #
' .-. ' #
| | | | #
' '-' ' #
\`-----' #
##
#
,------. #
| .--. ' #
| '--' | #
| | --' #
\`--' #
##
#
,-----. #
' .-. ' #
| | | | #
' '-' '-. #
\`-----'--' #
##
#
,------. #
| .--. ' #
| '--'.' #
| |\\ \\ #
\`--' '--' #
##
#
,---. #
' .-' #
\`. \`-. #
.-' | #
\`-----' #
##
#
,--------. #
'--. .--' #
| | #
| | #
\`--' #
##
#
,--. ,--. #
| | | | #
| | | | #
' '-' ' #
\`-----' #
##
#
,--. ,--. #
\\ \`.' / #
\\ / #
\\ / #
\`-' #
##
#
,--. ,--. #
| | | | #
| |.'.| | #
| ,'. | #
'--' '--' #
##
#
,--. ,--. #
\\ \`.' / #
.' \\ #
/ .'. \\ #
'--' '--' #
##
#
,--. ,--. #
\\ \`.' / #
'. / #
| | #
\`--' #
##
#
,-------. #
\`--. / #
/ / #
/ \`--. #
\`-------' #
##
#
,----. #
| .-' #
| | #
| | #
| '-. #
\`----' ##
,--. #
\\ \\ #
\\ \\ #
\\ \\ #
\\ \\ #
\\ \\ #
\`--' ##
#
,----. #
\`-. | #
| | #
| | #
.-' | #
\`----' ##
#
,---. #
/ \\ \\ #
\`--' \`--' #
#
#
##
#
#
#
#
,----. #
'----' #
##
#
,--. #
'. \\ #
\`--' #
#
#
##
#
#
,--,--. #
' ,-. | #
\\ '-' | #
\`--\`--' #
##
#
,--. #
| |-. #
| .-. ' #
| \`-' | #
\`---' #
##
#
#
,---. #
| .--' #
\\ \`--. #
\`---' #
##
#
,--. #
,-| | #
' .-. | #
\\ \`-' | #
\`---' #
##
#
#
,---. #
| .-. : #
\\ --. #
\`----' #
##
#
,---. #
/ .-' #
| \`-, #
| .-' #
\`--' #
##
#
#
,---. #
| .-. | #
' '-' ' #
.\`- / #
\`---' ##
#
,--. #
| ,---. #
| .-. | #
| | | | #
\`--' \`--' #
##
#
,--. #
\`--' #
,--. #
| | #
\`--' #
##
#
,--. #
\`--' #
,--. #
| | #
.-' / #
'---' ##
#
,--. #
| |,-. #
| / #
| \\ \\ #
\`--'\`--' #
##
#
,--. #
| | #
| | #
| | #
\`--' #
##
#
#
,--,--,--. #
| | #
| | | | #
\`--\`--\`--' #
##
#
#
,--,--, #
| \\ #
| || | #
\`--''--' #
##
#
#
,---. #
| .-. | #
' '-' ' #
\`---' #
##
#
#
,---. #
| .-. | #
| '-' ' #
| |-' #
\`--' ##
#
#
,---. #
| .-. | #
' '-' | #
\`-| | #
\`--' ##
#
#
,--.--. #
| .--' #
| | #
\`--' #
##
#
#
,---. #
( .-' #
.-' \`) #
\`----' #
##
#
,--. #
,-' '-. #
'-. .-' #
| | #
\`--' #
##
#
#
,--.,--. #
| || | #
' '' ' #
\`----' #
##
#
#
,--. ,--. #
\\ \`' / #
\\ / #
\`--' #
##
#
#
,--. ,--. #
| |.'.| | #
| .'. | #
'--' '--' #
##
#
#
,--. ,--. #
\\ \`' / #
/ /. \\ #
'--' '--' #
##
#
#
,--. ,--. #
\\ ' / #
\\ ' #
.-' / #
\`---' ##
#
#
,-----. #
\`-. / #
/ \`-. #
\`-----' #
##
#
,--. #
| .' #
.' / #
'. \\ #
| '. #
\`--' ##
,--. #
| | #
| | #
| | #
| | #
| | #
\`--' ##
#
,--. #
'. | #
\\ \`. #
/ .' #
.' | #
'--' ##
#
.--, #
.--' / #
/ ---\` #
\`--' #
#
##
#
,---. #
/ O \\ #
| .-. | #
| | | | #
\`--' \`--' #
##
#
,-----. #
' .-. ' #
| | | | #
' '-' ' #
\`-----' #
##
#
,--. ,--. #
| | | | #
| | | | #
' '-' ' #
\`-----' #
##
#
#
,--,--. #
' ,-. | #
\\ '-' | #
\`--\`--' #
##
#
#
,---. #
| .-. | #
' '-' ' #
\`---' #
##
#
#
,--.,--. #
| || | #
' '' ' #
\`----' #
##
�#
#
#
#
#
#
##
0xCA0 KANNADA LETTER TTHA
_____)#
|____/ #
,---. #
' .-. ' #
' '-' ' #
\`---' #
##`
@@ -0,0 +1,717 @@
flf2a$ 7 7 16 -1 2
Relief2 by Merlin Greywolf merlin@brahms.udel.edu
August 1994
\\\\\#
\\\\\#
\\\\\#
\\\\\#
\\\\\#
\\\\\#
\\\\\##
\\\\\#
/// \#
/// \#
/// \#
\\\\\#
/// \#
\\\\\##
\\\\\\\\#
// \// \#
// \// \#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\#
\\\\\\\\##
\\\\\\\\\\\\#
\\// \// \\\#
////////// \#
\\// \// \\\#
////////// \#
\\// \// \\\#
\\\\\\\\\\\\##
\\\\\\\\\\#
\\\///// \#
\\/// \\\\#
////// \\\#
\\/// \\\\#
//////// \#
\\\\\\\\\\##
\\\\\\\\\#
// \/// \#
\\\/// \\#
\\/// \\\#
\/// \\\\#
/// \// \#
\\\\\\\\\##
\\\\\\\\\\#
\////// \\#
/// \\\\\\#
\//////// #
/// /// \\#
\////// \\#
\\\\\\\\\\##
\\\\#
// \#
/ \\#
\\\\#
\\\\#
\\\\#
\\\\##
\\\\\\#
\/// \#
/// \\#
/// \\#
/// \\#
\/// \#
\\\\\\##
\\\\\\#
/// \\#
\/// \#
\/// \#
\/// \#
/// \\#
\\\\\\##
\\\\\\\\\\#
\\\/// \\\#
// /// // #
\/////// \#
// /// // #
\\\/// \\\#
\\\\\\\\\\##
\\\\\\\\\\\#
\\\/// \\\\#
\\\/// \\\\#
///////// \#
\\\/// \\\\#
\\\/// \\\\#
\\\\\\\\\\\##
\\\\\#
\\\\\#
\\\\\#
\\\\\#
\\\\\#
/// \#
// \\##
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\#
//////// \#
\\\\\\\\\\#
\\\\\\\\\\#
\\\\\\\\\\##
\\\\\#
\\\\\#
\\\\\#
\\\\\#
\\\\\#
/// \#
\\\\\##
\\\\\\\\\#
\\\\/// \#
\\\/// \\#
\\/// \\\#
\/// \\\\#
/// \\\\\#
\\\\\\\\\##
\\\\\\\\\\\\#
\\////// \\\#
\/// \/// \\#
/// \\\/// \#
\/// \/// \\#
\\////// \\\#
\\\\\\\\\\\\##
\\\\\\\\\#
\\/// \\\#
\//// \\\#
\\/// \\\#
\\/// \\\#
/////// \#
\\\\\\\\\##
\\\\\\\\\\#
\/////// \#
/// \/// \#
\\\/// \\\#
\/// \\\\\#
//////// \#
\\\\\\\\\\##
\\\\\\\\\\#
\/////// \#
/// \/// \#
\\\//// \\#
/// \/// \#
\/////// \#
\\\\\\\\\\##
\\\\\\\\\\\#
\\////// \\#
\/// /// \\#
/// \/// \\#
///////// \#
\\\\\/// \\#
\\\\\\\\\\\##
\\\\\\\\\#
/////// \#
/// \\\\\#
////// \\#
\\\\/// \#
////// \\#
\\\\\\\\\##
\\\\\\\\\\#
\\\/// \\\#
\\/// \\\\#
\////// \\#
/// \/// \#
\////// \\#
\\\\\\\\\\##
\\\\\\\\\#
/////// \#
\\\/// \\#
\\/// \\\#
\/// \\\\#
/// \\\\\#
\\\\\\\\\##
\\\\\\\\\\#
\////// \\#
/// \/// \#
\////// \\#
/// \/// \#
\////// \\#
\\\\\\\\\\##
\\\\\\\\\\#
\////// \\#
/// \/// \#
\////// \\#
\\\/// \\\#
\\/// \\\\#
\\\\\\\\\\##
\\\\\#
\\\\\#
\\\\\#
\/// #
\\\\\#
\/// #
\\\\\##
\\\\\#
\\\\\#
\\\\\#
\/// #
\\\\\#
\/// #
\// \##
\\\\\\\#
\\/// \#
\/// \\#
/// \\\#
\/// \\#
\\/// \#
\\\\\\\##
\\\\\\\\\\#
\\\\\\\\\\#
//////// \#
\\\\\\\\\\#
//////// \#
\\\\\\\\\\#
\\\\\\\\\\##
\\\\\\\#
\/// \\#
\\/// \#
\\/// \#
\/// \\#
/// \\\#
\\\\\\\##
\\\\\\\\\#
\///// \\#
\\\\/// \#
\\\/// \\#
\\\\\\\\\#
\\\/// \\#
\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// ///// \#
/// \\\\\\\#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\/// \#
//////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\\\\\\#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
//////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
/// \\\\\\\#
/////// \\\#
/// \\\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
/// \\\\\\\#
/////// \\\#
/// \\\\\\\#
/// \\\\\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\\\\\\#
/// \\/// \#
\//////// \#
\\\\\\/// \##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\#
///// \#
\/// \\#
\/// \\#
\/// \\#
///// \#
\\\\\\\##
\\\\\\\\\#
\\///// \#
\\\/// \\#
\\\/// \\#
\\\/// \\#
///// \\\#
\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \/// \\#
////// \\\\#
/// \/// \\#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
//// //// \#
/// / /// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
///// /// \#
///////// \#
/// ///// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\\\\\\#
/// \\\\\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \/// \\#
\//// /// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\\\\\\#
\/////// \\#
\\\\\\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
\\\/// \\\\#
\\\/// \\\\#
\\\/// \\\\#
\\\/// \\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\\\\\\\\\\\##
\\\\\\\\\\\\\#
/// /// /// \#
/// /// /// \#
/// /// /// \#
/// /// /// \#
\///////// \\#
\\\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\/// /// \\#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\\\/// \\\\#
\\\/// \\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
\\\\\/// \\#
\\\/// \\\\#
\/// \\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\#
///// \#
/// \\\#
/// \\\#
/// \\\#
///// \#
\\\\\\\##
\\\\\\\\\#
/// \\\\\#
\/// \\\\#
\\/// \\\#
\\\/// \\#
\\\\/// \#
\\\\\\\\\##
\\\\\\\#
///// \#
\\/// \#
\\/// \#
\\/// \#
///// \#
\\\\\\\##
\\\\\\\\\\\#
\\\\/ \\\\\#
\\///// \\\#
/// \\/// \#
\\\\\\\\\\\#
\\\\\\\\\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\\\\\\\\\\\#
\\\\\\\\\\\#
\\\\\\\\\\\#
\\\\\\\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\#
// \#
\/ \#
\\\\#
\\\\#
\\\\#
\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\/// \#
//////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\\\\\\#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
//////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
/// \\\\\\\#
/////// \\\#
/// \\\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
/// \\\\\\\#
/////// \\\#
/// \\\\\\\#
/// \\\\\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\\\\\\#
/// \\/// \#
\//////// \#
\\\\\\/// \##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\#
///// \#
\/// \\#
\/// \\#
\/// \\#
///// \#
\\\\\\\##
\\\\\\\\\#
\\///// \#
\\\/// \\#
\\\/// \\#
\\\/// \\#
\//// \\\#
\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \/// \\#
////// \\\\#
/// \/// \\#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
/// \\\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
//// //// \#
/// / /// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
///// /// \#
///////// \#
/// ///// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\\\\\\#
/// \\\\\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \/// \\#
\//// /// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
//////// \\#
/// \\/// \#
//////// \\#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\\\\\\#
\/////// \\#
\\\\\\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
\\\/// \\\\#
\\\/// \\\\#
\\\/// \\\\#
\\\/// \\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\\\\\\\\\\\##
\\\\\\\\\\\\\#
/// /// /// \#
/// /// /// \#
/// /// /// \#
/// /// /// \#
\///////// \\#
\\\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\/// /// \\#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
\/// /// \\#
\\///// \\\#
\\\/// \\\\#
\\\/// \\\\#
\\\\\\\\\\\##
\\\\\\\\\\\#
///////// \#
\\\\\/// \\#
\\\/// \\\\#
\/// \\\\\\#
///////// \#
\\\\\\\\\\\##
\\\\\\\\\#
\\///// \#
\\/// \\\#
///// \\\#
\\/// \\\#
\\///// \#
\\\\\\\\\##
\\\\\#
/// \#
/// \#
/// \#
/// \#
/// \#
\\\\\##
\\\\\\\\\#
///// \\\#
\\/// \\\#
\\///// \#
\\/// \\\#
///// \\\#
\\\\\\\\\##
\\\\\\\\\\\\\\#
\\//// \\/// \#
\////////// \\#
/// \\//// \\\#
\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\#
\\\\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
///////// \#
/// \\/// \#
/// \\/// \#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
/// \\/// \#
/// \\/// \#
/// \\/// \#
/// \\/// \#
\/////// \\#
\\\\\\\\\\\##
\\\\\\\\\\\#
\/////// \\#
/// \\/// \#
/// \/// \\#
/// \\/// \#
/// \/// \\#
\\\\\\\\\\\##
@@ -0,0 +1,12 @@
import { LazyServiceIdentifier, ServiceIdentifier } from '@inversifyjs/common';
import { BaseClassElementMetadata } from './BaseClassElementMetadata';
import { MetadataName } from './MetadataName';
import { MetadataTag } from './MetadataTag';
export interface BaseManagedClassElementMetadata<TKind> extends BaseClassElementMetadata<TKind> {
isFromTypescriptParamType?: true;
name: MetadataName | undefined;
optional: boolean;
tags: Map<MetadataTag, unknown>;
value: ServiceIdentifier | LazyServiceIdentifier;
}
//# sourceMappingURL=BaseManagedClassElementMetadata.d.ts.map
@@ -0,0 +1 @@
"use strict";require("../../get-pipe-path-BoR10qr8.cjs");var r=require("../../register-D46fvsV_.cjs"),e=require("../../require-D4F1Lv60.cjs");require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("get-tsconfig"),require("node:fs"),require("../../index-gckBtVBf.cjs"),require("esbuild"),require("node:crypto"),require("../../client-D6NvIMSC.cjs"),require("node:net"),require("node:util"),require("../../index-BWFBUo6r.cjs"),exports.register=r.register,exports.require=e.tsxRequire;
@@ -0,0 +1 @@
{"version":3,"file":"isParentBindingConstraintsWithName.d.ts","sourceRoot":"","sources":["../../../../src/binding/calculations/isParentBindingConstraintsWithName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKrE,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,YAAY,GACjB,CAAC,WAAW,EAAE,kBAAkB,KAAK,OAAO,CAE9C"}
@@ -0,0 +1,33 @@
import baseIteratee from './_baseIteratee.js';
import baseSum from './_baseSum.js';
/**
* This method is like `_.sum` except that it accepts `iteratee` which is
* invoked for each element in `array` to generate the value to be summed.
* The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
* @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {number} Returns the sum.
* @example
*
* var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
*
* _.sumBy(objects, function(o) { return o.n; });
* // => 20
*
* // The `_.property` iteratee shorthand.
* _.sumBy(objects, 'n');
* // => 20
*/
function sumBy(array, iteratee) {
return (array && array.length)
? baseSum(array, baseIteratee(iteratee, 2))
: 0;
}
export default sumBy;
@@ -0,0 +1,90 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
'use strict';
/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or undefined');
}
return Object(val);
}
function shouldUseNative() {
try {
if (!Object.assign) {
return false;
}
// Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
test1[5] = 'de';
if (Object.getOwnPropertyNames(test1)[0] === '5') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test2 = {};
for (var i = 0; i < 10; i++) {
test2['_' + String.fromCharCode(i)] = i;
}
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
return test2[n];
});
if (order2.join('') !== '0123456789') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test3 = {};
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
test3[letter] = letter;
});
if (Object.keys(Object.assign({}, test3)).join('') !==
'abcdefghijklmnopqrst') {
return false;
}
return true;
} catch (err) {
// We don't expect any of the above to throw, but better to be safe.
return false;
}
}
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
var from;
var to = toObject(target);
var symbols;
for (var s = 1; s < arguments.length; s++) {
from = Object(arguments[s]);
for (var key in from) {
if (hasOwnProperty.call(from, key)) {
to[key] = from[key];
}
}
if (getOwnPropertySymbols) {
symbols = getOwnPropertySymbols(from);
for (var i = 0; i < symbols.length; i++) {
if (propIsEnumerable.call(from, symbols[i])) {
to[symbols[i]] = from[symbols[i]];
}
}
}
}
return to;
};
@@ -0,0 +1,82 @@
/**
* @import {EncodeSides} from '../types.js'
*/
import {classifyCharacter} from 'micromark-util-classify-character'
/**
* Check whether to encode (as a character reference) the characters
* surrounding an attention run.
*
* Which characters are around an attention run influence whether it works or
* not.
*
* See <https://github.com/orgs/syntax-tree/discussions/60> for more info.
* See this markdown in a particular renderer to see what works:
*
* ```markdown
* | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) |
* | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ |
* | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z |
* | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. |
* | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z |
* | 4 (nothing outside) | *x* | *.* | * * | ** |
* ```
*
* @param {number} outside
* Code point on the outer side of the run.
* @param {number} inside
* Code point on the inner side of the run.
* @param {'*' | '_'} marker
* Marker of the run.
* Underscores are handled more strictly (they form less often) than
* asterisks.
* @returns {EncodeSides}
* Whether to encode characters.
*/
// Important: punctuation must never be encoded.
// Punctuation is solely used by markdown constructs.
// And by encoding itself.
// Encoding them will break constructs or double encode things.
export function encodeInfo(outside, inside, marker) {
const outsideKind = classifyCharacter(outside)
const insideKind = classifyCharacter(inside)
// Letter outside:
if (outsideKind === undefined) {
return insideKind === undefined
? // Letter inside:
// we have to encode *both* letters for `_` as it is looser.
// it already forms for `*` (and GFMs `~`).
marker === '_'
? {inside: true, outside: true}
: {inside: false, outside: false}
: insideKind === 1
? // Whitespace inside: encode both (letter, whitespace).
{inside: true, outside: true}
: // Punctuation inside: encode outer (letter)
{inside: false, outside: true}
}
// Whitespace outside:
if (outsideKind === 1) {
return insideKind === undefined
? // Letter inside: already forms.
{inside: false, outside: false}
: insideKind === 1
? // Whitespace inside: encode both (whitespace).
{inside: true, outside: true}
: // Punctuation inside: already forms.
{inside: false, outside: false}
}
// Punctuation outside:
return insideKind === undefined
? // Letter inside: already forms.
{inside: false, outside: false}
: insideKind === 1
? // Whitespace inside: encode inner (whitespace).
{inside: true, outside: false}
: // Punctuation inside: already forms.
{inside: false, outside: false}
}
@@ -0,0 +1,239 @@
/**
* @fileoverview Forbid certain props on components
* @author Joe Lencioni
*/
'use strict';
const minimatch = require('minimatch');
const docsUrl = require('../util/docsUrl');
const report = require('../util/report');
// ------------------------------------------------------------------------------
// Constants
// ------------------------------------------------------------------------------
const DEFAULTS = ['className', 'style'];
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
const messages = {
propIsForbidden: 'Prop "{{prop}}" is forbidden on Components',
};
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
docs: {
description: 'Disallow certain props on components',
category: 'Best Practices',
recommended: false,
url: docsUrl('forbid-component-props'),
},
messages,
schema: [{
type: 'object',
properties: {
forbid: {
type: 'array',
items: {
anyOf: [
{ type: 'string' },
{
type: 'object',
properties: {
propName: { type: 'string' },
allowedFor: {
type: 'array',
uniqueItems: true,
items: { type: 'string' },
},
allowedForPatterns: {
type: 'array',
uniqueItems: true,
items: { type: 'string' },
},
message: { type: 'string' },
},
additionalProperties: false,
},
{
type: 'object',
properties: {
propName: { type: 'string' },
disallowedFor: {
type: 'array',
uniqueItems: true,
minItems: 1,
items: { type: 'string' },
},
disallowedForPatterns: {
type: 'array',
uniqueItems: true,
minItems: 1,
items: { type: 'string' },
},
message: { type: 'string' },
},
anyOf: [
{ required: ['disallowedFor'] },
{ required: ['disallowedForPatterns'] },
],
additionalProperties: false,
},
{
type: 'object',
properties: {
propNamePattern: { type: 'string' },
allowedFor: {
type: 'array',
uniqueItems: true,
items: { type: 'string' },
},
allowedForPatterns: {
type: 'array',
uniqueItems: true,
items: { type: 'string' },
},
message: { type: 'string' },
},
additionalProperties: false,
},
{
type: 'object',
properties: {
propNamePattern: { type: 'string' },
disallowedFor: {
type: 'array',
uniqueItems: true,
minItems: 1,
items: { type: 'string' },
},
disallowedForPatterns: {
type: 'array',
uniqueItems: true,
minItems: 1,
items: { type: 'string' },
},
message: { type: 'string' },
},
anyOf: [
{ required: ['disallowedFor'] },
{ required: ['disallowedForPatterns'] },
],
additionalProperties: false,
},
],
},
},
},
}],
},
create(context) {
const configuration = context.options[0] || {};
const forbid = new Map((configuration.forbid || DEFAULTS).map((value) => {
const propName = typeof value === 'string' ? value : value.propName;
const propPattern = value.propNamePattern;
const prop = propName || propPattern;
const options = {
allowList: [].concat(value.allowedFor || []),
allowPatternList: [].concat(value.allowedForPatterns || []),
disallowList: [].concat(value.disallowedFor || []),
disallowPatternList: [].concat(value.disallowedForPatterns || []),
message: typeof value === 'string' ? null : value.message,
isPattern: !!value.propNamePattern,
};
return [prop, options];
}));
function getPropOptions(prop) {
// Get config options having pattern
const propNamePatternArray = Array.from(forbid.entries()).filter((propEntry) => propEntry[1].isPattern);
// Match current prop with pattern options, return if matched
const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[0]));
// Get options for matched propNamePattern
const propNamePatternOptions = propNamePattern && propNamePattern[1];
const options = forbid.get(prop) || propNamePatternOptions;
return options;
}
function isForbidden(prop, tagName) {
const options = getPropOptions(prop);
if (!options) {
return false;
}
function checkIsTagForbiddenByAllowOptions() {
if (options.allowList.indexOf(tagName) !== -1) {
return false;
}
if (options.allowPatternList.length === 0) {
return true;
}
return options.allowPatternList.every(
(pattern) => !minimatch(tagName, pattern)
);
}
function checkIsTagForbiddenByDisallowOptions() {
if (options.disallowList.indexOf(tagName) !== -1) {
return true;
}
if (options.disallowPatternList.length === 0) {
return false;
}
return options.disallowPatternList.some(
(pattern) => minimatch(tagName, pattern)
);
}
const hasDisallowOptions = options.disallowList.length > 0 || options.disallowPatternList.length > 0;
// disallowList should have a least one item (schema configuration)
const isTagForbidden = hasDisallowOptions
? checkIsTagForbiddenByDisallowOptions()
: checkIsTagForbiddenByAllowOptions();
// if the tagName is undefined (`<this.something>`), we assume it's a forbidden element
return typeof tagName === 'undefined' || isTagForbidden;
}
return {
JSXAttribute(node) {
const parentName = node.parent.name;
// Extract a component name when using a "namespace", e.g. `<AntdLayout.Content />`.
const tag = parentName.name || `${parentName.object.name}.${parentName.property.name}`;
const componentName = parentName.name || parentName.property.name;
if (componentName && typeof componentName[0] === 'string' && componentName[0] !== componentName[0].toUpperCase()) {
// This is a DOM node, not a Component, so exit.
return;
}
const prop = node.name.name;
if (!isForbidden(prop, tag)) {
return;
}
const customMessage = getPropOptions(prop).message;
report(context, customMessage || messages.propIsForbidden, !customMessage && 'propIsForbidden', {
node,
data: {
prop,
},
});
},
};
},
};
@@ -0,0 +1,31 @@
import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
export type MessageIds = 'incorrectGroupOrder' | 'incorrectOrder' | 'incorrectRequiredMembersOrder';
type ReadonlyType = 'readonly-field' | 'readonly-signature';
type MemberKind = 'accessor' | 'call-signature' | 'constructor' | 'field' | 'get' | 'method' | 'set' | 'signature' | 'static-initialization' | ReadonlyType;
type DecoratedMemberKind = 'accessor' | 'field' | 'get' | 'method' | 'set' | Exclude<ReadonlyType, 'readonly-signature'>;
type NonCallableMemberKind = Exclude<MemberKind, 'constructor' | 'readonly-signature' | 'signature'>;
type MemberScope = 'abstract' | 'instance' | 'static';
type Accessibility = '#private' | TSESTree.Accessibility;
type BaseMemberType = `${Accessibility}-${Exclude<MemberKind, 'readonly-signature' | 'signature' | 'static-initialization'>}` | `${Accessibility}-${MemberScope}-${NonCallableMemberKind}` | `${Accessibility}-decorated-${DecoratedMemberKind}` | `${MemberScope}-${NonCallableMemberKind}` | `decorated-${DecoratedMemberKind}` | MemberKind;
type MemberType = BaseMemberType | BaseMemberType[];
type AlphabeticalOrder = 'alphabetically' | 'alphabetically-case-insensitive' | 'natural' | 'natural-case-insensitive';
type Order = 'as-written' | AlphabeticalOrder;
interface SortedOrderConfig {
memberTypes?: 'never' | MemberType[];
optionalityOrder?: OptionalityOrder;
order?: Order;
}
type OrderConfig = 'never' | MemberType[] | SortedOrderConfig;
type OptionalityOrder = 'optional-first' | 'required-first';
export type Options = [
{
classes?: OrderConfig;
classExpressions?: OrderConfig;
default?: OrderConfig;
interfaces?: OrderConfig;
typeLiterals?: OrderConfig;
}
];
export declare const defaultOrder: MemberType[];
declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
export default _default;
@@ -0,0 +1,61 @@
{
"name": "@heroui/use-disclosure",
"version": "2.2.3",
"description": "The hook in charge of managing modals",
"keywords": [
"use-disclosure"
],
"author": "Junior Garcia <jrgarciadev@gmail.com>",
"homepage": "https://heroui.com",
"license": "MIT",
"main": "dist/index.js",
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/heroui-inc/heroui.git",
"directory": "packages/hooks/use-disclosure"
},
"bugs": {
"url": "https://github.com/heroui-inc/heroui/issues"
},
"peerDependencies": {
"react": ">=18 || >=19.0.0-rc.0"
},
"dependencies": {
"@react-aria/utils": "3.26.0",
"@react-stately/utils": "3.10.5",
"@heroui/use-callback-ref": "2.1.2"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
},
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src --dts",
"build:fast": "tsup src",
"dev": "pnpm build:fast --watch",
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit"
}
}
@@ -0,0 +1,113 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/use-breadcrumb-item.ts
var use_breadcrumb_item_exports = {};
__export(use_breadcrumb_item_exports, {
useBreadcrumbItem: () => useBreadcrumbItem
});
module.exports = __toCommonJS(use_breadcrumb_item_exports);
var import_system = require("@heroui/system");
var import_focus = require("@react-aria/focus");
var import_theme = require("@heroui/theme");
var import_react_utils = require("@heroui/react-utils");
var import_breadcrumbs = require("@react-aria/breadcrumbs");
var import_shared_utils = require("@heroui/shared-utils");
var import_react = require("react");
var import_utils = require("@react-aria/utils");
function useBreadcrumbItem(originalProps) {
const [props, variantProps] = (0, import_system.mapPropsVariants)(originalProps, import_theme.breadcrumbItem.variantKeys);
const {
ref,
as,
className,
children,
isLast,
separator,
startContent,
endContent,
classNames,
hideSeparator = false,
...otherProps
} = props;
const WrapperComponent = as || "li";
const isCurrent = !!(originalProps == null ? void 0 : originalProps.isCurrent);
const isDisabled = originalProps == null ? void 0 : originalProps.isDisabled;
const Component = (originalProps == null ? void 0 : originalProps.href) && !isCurrent ? "a" : "span";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = (0, import_react_utils.useDOMRef)(ref);
const { itemProps } = (0, import_breadcrumbs.useBreadcrumbItem)(
{ ...originalProps, isCurrent, elementType: Component },
domRef
);
const { isFocusVisible, isFocused, focusProps } = (0, import_focus.useFocusRing)();
const slots = (0, import_react.useMemo)(
() => (0, import_theme.breadcrumbItem)({
...variantProps,
isCurrent,
underline: (originalProps == null ? void 0 : originalProps.underline) !== void 0 && !isCurrent ? originalProps == null ? void 0 : originalProps.underline : "none",
className
}),
[(0, import_shared_utils.objectToDeps)(variantProps), isCurrent, className]
);
const baseStyles = (0, import_shared_utils.clsx)(classNames == null ? void 0 : classNames.base, className);
const getBaseProps = () => ({
ref: domRef,
"data-slot": "base",
className: slots.base({ class: baseStyles }),
...(0, import_react_utils.filterDOMProps)(otherProps, {
enabled: shouldFilterDOMProps
})
});
const getItemProps = () => ({
href: !isCurrent ? originalProps == null ? void 0 : originalProps.href : void 0,
"data-slot": "item",
"data-focus": (0, import_shared_utils.dataAttr)(isFocused),
"data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
"data-disabled": originalProps == null ? void 0 : originalProps.isDisabled,
"data-current": originalProps == null ? void 0 : originalProps.isCurrent,
className: slots.item({ class: classNames == null ? void 0 : classNames.item }),
...(0, import_utils.mergeProps)(itemProps, isDisabled ? {} : focusProps)
});
const getSeparatorProps = () => ({
"data-slot": "separator",
"aria-hidden": (0, import_shared_utils.dataAttr)(true),
className: slots.separator({ class: classNames == null ? void 0 : classNames.separator })
});
return {
Component,
WrapperComponent,
children,
separator,
startContent,
endContent,
isDisabled,
isCurrent,
isLast,
hideSeparator,
getBaseProps,
getItemProps,
getSeparatorProps
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
useBreadcrumbItem
});
@@ -0,0 +1 @@
module.exports={C:{"91":0.00463,"128":0.00925,"134":0.00925,"137":0.00463,"140":0.04163,"142":0.01388,"143":0.2128,"144":0.34232,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.0185,"40":0.01388,"41":0.00925,"42":0.0185,"43":0.0185,"44":0.02313,"45":0.0185,"46":0.02313,"47":0.01388,"48":0.00925,"49":0.02776,"50":0.01388,"51":0.00925,"52":0.01388,"53":0.00925,"54":0.01388,"55":0.00925,"56":0.02313,"57":0.00925,"58":0.01388,"59":0.01388,"60":0.01388,"75":0.01388,"76":0.00925,"79":0.01388,"81":0.00463,"84":0.02776,"93":0.01388,"94":0.00463,"95":0.00463,"97":0.00463,"103":0.05551,"106":0.00463,"108":0.24518,"109":0.09715,"116":0.00925,"121":0.00463,"122":0.09252,"125":10.20033,"126":0.01388,"127":0.02776,"128":0.00925,"130":0.00925,"131":0.02313,"132":0.05089,"133":0.00463,"134":0.02313,"135":0.02313,"137":0.39784,"138":0.11102,"139":0.29144,"140":5.79175,"141":12.79552,"142":0.39321,"143":0.06014,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 78 80 83 85 86 87 88 89 90 91 92 96 98 99 100 101 102 104 105 107 110 111 112 113 114 115 117 118 119 120 123 124 129 136 144 145"},F:{"90":0.00463,"91":0.00463,"92":0.00463,"120":0.00463,"121":0.04163,"122":0.95296,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01388,"109":0.02313,"114":0.37008,"122":0.00463,"128":0.00925,"130":0.07402,"134":0.17579,"136":0.00463,"137":0.01388,"138":0.13878,"139":0.03238,"140":1.07323,"141":4.66301,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 129 131 132 133 135 142"},E:{"14":0.0185,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.0 16.2 16.4 16.5 17.3 26.2","11.1":0.00925,"13.1":0.00463,"14.1":0.00925,"15.4":0.00463,"15.6":0.11565,"16.1":0.00925,"16.3":0.00463,"16.6":0.13415,"17.0":0.00925,"17.1":0.00925,"17.2":0.00463,"17.4":0.00925,"17.5":0.05089,"17.6":0.05089,"18.0":0.00925,"18.1":0.02776,"18.2":0.00925,"18.3":0.05089,"18.4":0.00463,"18.5-18.6":0.15728,"26.0":0.29144,"26.1":0.03701},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00118,"5.0-5.1":0,"6.0-6.1":0.00473,"7.0-7.1":0.00355,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01064,"10.0-10.2":0.00118,"10.3":0.0201,"11.0-11.2":0.29793,"11.3-11.4":0.00709,"12.0-12.1":0.00236,"12.2-12.5":0.05793,"13.0-13.1":0,"13.2":0.00591,"13.3":0.00236,"13.4-13.7":0.00946,"14.0-14.4":0.0201,"14.5-14.8":0.02128,"15.0-15.1":0.0201,"15.2-15.3":0.01537,"15.4":0.01773,"15.5":0.0201,"15.6-15.8":0.26247,"16.0":0.03547,"16.1":0.06621,"16.2":0.03429,"16.3":0.06148,"16.4":0.01537,"16.5":0.02719,"16.6-16.7":0.35114,"17.0":0.02483,"17.1":0.03783,"17.2":0.02719,"17.3":0.0402,"17.4":0.07094,"17.5":0.12177,"17.6-17.7":0.30739,"18.0":0.06975,"18.1":0.14424,"18.2":0.07803,"18.3":0.25064,"18.4":0.12887,"18.5-18.6":6.57111,"26.0":0.81223,"26.1":0.02956},P:{"4":0.02103,"20":0.01051,"21":0.01051,"24":0.03154,"25":0.07359,"26":0.07359,"27":0.07359,"28":4.01589,"29":0.3259,_:"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 17.0 18.0","7.2-7.4":0.14718,"16.0":0.01051,"19.0":0.01051},I:{"0":0.00537,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.12898,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.44604},Q:{_:"14.9"},O:{"0":0.05911},H:{"0":0},L:{"0":41.01235}};
@@ -0,0 +1,35 @@
import type { TSchema, SchemaOptions } from '../schema/index';
import type { Evaluate, Ensure } from '../helpers/index';
import type { TMappedResult } from '../mapped/index';
import { type TReadonlyOptional } from '../readonly-optional/index';
import { type TComputed } from '../computed/index';
import { type TOptional } from '../optional/index';
import { type TReadonly } from '../readonly/index';
import { type TRecursive } from '../recursive/index';
import { type TObject, type TProperties } from '../object/index';
import { type TIntersect } from '../intersect/index';
import { type TUnion } from '../union/index';
import { type TRef } from '../ref/index';
import { type TBigInt } from '../bigint/index';
import { type TBoolean } from '../boolean/index';
import { type TInteger } from '../integer/index';
import { type TLiteral } from '../literal/index';
import { type TNull } from '../null/index';
import { type TNumber } from '../number/index';
import { type TString } from '../string/index';
import { type TSymbol } from '../symbol/index';
import { type TUndefined } from '../undefined/index';
import { type TPartialFromMappedResult } from './partial-from-mapped-result';
type TFromComputed<Target extends string, Parameters extends TSchema[]> = Ensure<TComputed<'Partial', [TComputed<Target, Parameters>]>>;
type TFromRef<Ref extends string> = Ensure<TComputed<'Partial', [TRef<Ref>]>>;
type TFromProperties<Properties extends TProperties> = Evaluate<{
[K in keyof Properties]: Properties[K] extends (TReadonlyOptional<infer S>) ? TReadonlyOptional<S> : Properties[K] extends (TReadonly<infer S>) ? TReadonlyOptional<S> : Properties[K] extends (TOptional<infer S>) ? TOptional<S> : TOptional<Properties[K]>;
}>;
type TFromObject<Type extends TObject, Properties extends TProperties = Type['properties']> = Ensure<TObject<(TFromProperties<Properties>)>>;
type TFromRest<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer L extends TSchema, ...infer R extends TSchema[]] ? TFromRest<R, [...Result, TPartial<L>]> : Result);
export type TPartial<Type extends TSchema> = (Type extends TRecursive<infer Type extends TSchema> ? TRecursive<TPartial<Type>> : Type extends TComputed<infer Target extends string, infer Parameters extends TSchema[]> ? TFromComputed<Target, Parameters> : Type extends TRef<infer Ref extends string> ? TFromRef<Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromRest<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromRest<Types>> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<TObject<Properties>> : Type extends TBigInt ? Type : Type extends TBoolean ? Type : Type extends TInteger ? Type : Type extends TLiteral ? Type : Type extends TNull ? Type : Type extends TNumber ? Type : Type extends TString ? Type : Type extends TSymbol ? Type : Type extends TUndefined ? Type : TObject<{}>);
/** `[Json]` Constructs a type where all properties are optional */
export declare function Partial<MappedResult extends TMappedResult>(type: MappedResult, options?: SchemaOptions): TPartialFromMappedResult<MappedResult>;
/** `[Json]` Constructs a type where all properties are optional */
export declare function Partial<Type extends TSchema>(type: Type, options?: SchemaOptions): TPartial<Type>;
export {};
@@ -0,0 +1,70 @@
// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
import {isShadowRoot} from '../domHelpers';
import {shadowDOM} from '@react-stately/flags';
/**
* ShadowDOM safe version of Node.contains.
*/
export function nodeContains(
node: Node | null | undefined,
otherNode: Node | null | undefined
): boolean {
if (!shadowDOM()) {
return otherNode && node ? node.contains(otherNode) : false;
}
if (!node || !otherNode) {
return false;
}
let currentNode: HTMLElement | Node | null | undefined = otherNode;
while (currentNode !== null) {
if (currentNode === node) {
return true;
}
if ((currentNode as HTMLSlotElement).tagName === 'SLOT' &&
(currentNode as HTMLSlotElement).assignedSlot) {
// Element is slotted
currentNode = (currentNode as HTMLSlotElement).assignedSlot!.parentNode;
} else if (isShadowRoot(currentNode)) {
// Element is in shadow root
currentNode = currentNode.host;
} else {
currentNode = currentNode.parentNode;
}
}
return false;
}
/**
* ShadowDOM safe version of document.activeElement.
*/
export const getActiveElement = (doc: Document = document): Element | null => {
if (!shadowDOM()) {
return doc.activeElement;
}
let activeElement: Element | null = doc.activeElement;
while (activeElement && 'shadowRoot' in activeElement &&
activeElement.shadowRoot?.activeElement) {
activeElement = activeElement.shadowRoot.activeElement;
}
return activeElement;
};
/**
* ShadowDOM safe version of event.target.
*/
export function getEventTarget<T extends Event>(event: T): Element {
if (shadowDOM() && (event.target as HTMLElement).shadowRoot) {
if (event.composedPath) {
return event.composedPath()[0] as Element;
}
}
return event.target as Element;
}
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAoC;AACpC,uEAA8D;AAC9D,qCAA2C;AAC3C,2CAAoC;AACpC,+CAAwC;AAsCjC,MAAM,SAAS,GAAG,CACvB,CAAS,EACT,OAAe,EACf,UAA4B,EAAE,EAC9B,EAAE;IACF,IAAA,4CAAkB,EAAC,OAAO,CAAC,CAAA;IAE3B,oCAAoC;IACpC,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACnD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC,CAAA;AAbY,QAAA,SAAS,aAarB;AAED,wDAAwD;AACxD,MAAM,YAAY,GAAG,uBAAuB,CAAA;AAC5C,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,CAAS,EAAE,EAAE,CACpD,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACvC,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACzE,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAE,EAAE;IAC3C,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;IACvB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAC3E,CAAC,CAAA;AACD,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAE,EAAE;IAC9C,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;IACvB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACrD,CAAC,CAAA;AACD,MAAM,aAAa,GAAG,YAAY,CAAA;AAClC,MAAM,eAAe,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAC5E,MAAM,kBAAkB,GAAG,CAAC,CAAS,EAAE,EAAE,CACvC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAC5C,MAAM,SAAS,GAAG,SAAS,CAAA;AAC3B,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;AAC/E,MAAM,MAAM,GAAG,OAAO,CAAA;AACtB,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;AACpE,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAA;AAC5E,MAAM,QAAQ,GAAG,wBAAwB,CAAA;AACzC,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,CAAmB,EAAE,EAAE;IAC5D,MAAM,KAAK,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACnC,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAA;IACtB,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;IACvB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACjE,CAAC,CAAA;AACD,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,CAAmB,EAAE,EAAE;IAC/D,MAAM,KAAK,GAAG,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAA;IACtB,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;IACvB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACjE,CAAC,CAAA;AACD,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,CAAmB,EAAE,EAAE;IACzD,MAAM,KAAK,GAAG,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAClE,CAAC,CAAA;AACD,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,CAAmB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACnC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAClE,CAAC,CAAA;AACD,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,CAAmB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,EAAE,CAAC,MAAM,CAAA;IACrB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;AAC9D,CAAC,CAAA;AACD,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAmB,EAAE,EAAE;IACpD,MAAM,GAAG,GAAG,EAAE,CAAC,MAAM,CAAA;IACrB,OAAO,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAA;AACnE,CAAC,CAAA;AAED,qBAAqB;AACrB,MAAM,eAAe,GAAa,CAChC,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO;IACpC,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ;QAC9B,OAAO,CAAC,GAAG;QACX,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC;QAC7C,OAAO,CAAC,QAAQ;IAClB,CAAC,CAAC,OAAO,CACA,CAAA;AAEb,MAAM,IAAI,GAAkC;IAC1C,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;IACpB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;CACpB,CAAA;AACD,oBAAoB;AAEP,QAAA,GAAG,GAAG,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAA;AAChF,iBAAS,CAAC,GAAG,GAAG,WAAG,CAAA;AAEN,QAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;AAC7C,iBAAS,CAAC,QAAQ,GAAG,gBAAQ,CAAA;AAE7B,gCAAgC;AAChC,iDAAiD;AACjD,MAAM,KAAK,GAAG,MAAM,CAAA;AAEpB,gCAAgC;AAChC,MAAM,IAAI,GAAG,KAAK,GAAG,IAAI,CAAA;AAEzB,4DAA4D;AAC5D,+DAA+D;AAC/D,6CAA6C;AAC7C,MAAM,UAAU,GAAG,yCAAyC,CAAA;AAE5D,kCAAkC;AAClC,6CAA6C;AAC7C,MAAM,YAAY,GAAG,yBAAyB,CAAA;AAEvC,MAAM,MAAM,GACjB,CAAC,OAAe,EAAE,UAA4B,EAAE,EAAE,EAAE,CACpD,CAAC,CAAS,EAAE,EAAE,CACZ,IAAA,iBAAS,EAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAHrB,QAAA,MAAM,UAGe;AAClC,iBAAS,CAAC,MAAM,GAAG,cAAM,CAAA;AAEzB,MAAM,GAAG,GAAG,CAAC,CAAmB,EAAE,IAAsB,EAAE,EAAE,EAAE,CAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AAElB,MAAM,QAAQ,GAAG,CAAC,GAAqB,EAAoB,EAAE;IAClE,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE;QAC/D,OAAO,iBAAS,CAAA;KACjB;IAED,MAAM,IAAI,GAAG,iBAAS,CAAA;IAEtB,MAAM,CAAC,Line truncated
@@ -0,0 +1 @@
{"version":3,"names":["mergeOptions","target","source","k","Object","keys","parserOpts","targetObj","mergeDefaultFields","val","undefined","isIterableIterator","value","next","Symbol","iterator"],"sources":["../../src/config/util.ts"],"sourcesContent":["import type { InputOptions, ResolvedOptions } from \"./validation/options.ts\";\n\nexport function mergeOptions(\n target: InputOptions | ResolvedOptions,\n source: InputOptions,\n): void {\n for (const k of Object.keys(source)) {\n if (\n (k === \"parserOpts\" || k === \"generatorOpts\" || k === \"assumptions\") &&\n source[k]\n ) {\n const parserOpts = source[k];\n const targetObj = target[k] || (target[k] = {});\n mergeDefaultFields(targetObj, parserOpts);\n } else {\n //@ts-expect-error k must index source\n const val = source[k];\n //@ts-expect-error assigning source to target\n if (val !== undefined) target[k] = val as any;\n }\n }\n}\n\nfunction mergeDefaultFields<T extends object>(target: T, source: T) {\n for (const k of Object.keys(source) as (keyof T)[]) {\n const val = source[k];\n if (val !== undefined) target[k] = val;\n }\n}\n\nexport function isIterableIterator(value: any): value is IterableIterator<any> {\n return (\n !!value &&\n typeof value.next === \"function\" &&\n typeof value[Symbol.iterator] === \"function\"\n );\n}\n"],"mappings":";;;;;;;AAEO,SAASA,YAAYA,CAC1BC,MAAsC,EACtCC,MAAoB,EACd;EACN,KAAK,MAAMC,CAAC,IAAIC,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,EAAE;IACnC,IACE,CAACC,CAAC,KAAK,YAAY,IAAIA,CAAC,KAAK,eAAe,IAAIA,CAAC,KAAK,aAAa,KACnED,MAAM,CAACC,CAAC,CAAC,EACT;MACA,MAAMG,UAAU,GAAGJ,MAAM,CAACC,CAAC,CAAC;MAC5B,MAAMI,SAAS,GAAGN,MAAM,CAACE,CAAC,CAAC,KAAKF,MAAM,CAACE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;MAC/CK,kBAAkB,CAACD,SAAS,EAAED,UAAU,CAAC;IAC3C,CAAC,MAAM;MAEL,MAAMG,GAAG,GAAGP,MAAM,CAACC,CAAC,CAAC;MAErB,IAAIM,GAAG,KAAKC,SAAS,EAAET,MAAM,CAACE,CAAC,CAAC,GAAGM,GAAU;IAC/C;EACF;AACF;AAEA,SAASD,kBAAkBA,CAAmBP,MAAS,EAAEC,MAAS,EAAE;EAClE,KAAK,MAAMC,CAAC,IAAIC,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,EAAiB;IAClD,MAAMO,GAAG,GAAGP,MAAM,CAACC,CAAC,CAAC;IACrB,IAAIM,GAAG,KAAKC,SAAS,EAAET,MAAM,CAACE,CAAC,CAAC,GAAGM,GAAG;EACxC;AACF;AAEO,SAASE,kBAAkBA,CAACC,KAAU,EAAkC;EAC7E,OACE,CAAC,CAACA,KAAK,IACP,OAAOA,KAAK,CAACC,IAAI,KAAK,UAAU,IAChC,OAAOD,KAAK,CAACE,MAAM,CAACC,QAAQ,CAAC,KAAK,UAAU;AAEhD;AAAC","ignoreList":[]}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H","257":"R S T U V W X"},C:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 0C 1C"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 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","257":"R S T U V W X"},E:{"1":"M G 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F A B C L 2C ZC 3C 4C 5C 6C aC NC OC"},F:{"1":"0 1 2 3 4 5 KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB 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 FD GD HD ID NC uC JD OC","257":"BC CC DC EC FC GC HC IC JC"},G:{"1":"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","132":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD QC RC SC yD","2":"J oD pD qD rD sD aC tD uD","257":"vD wD"},Q:{"2":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:4,C:"CSS3 image-orientation",D:true};
@@ -0,0 +1,3 @@
# @react-aria/toggle
This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
@@ -0,0 +1,16 @@
import { useRef } from 'react';
import depsAreSame from '../utils/depsAreSame';
var useCreation = function (factory, deps) {
var current = useRef({
deps: deps,
obj: undefined,
initialized: false,
}).current;
if (current.initialized === false || !depsAreSame(current.deps, deps)) {
current.deps = deps;
current.obj = factory();
current.initialized = true;
}
return current.obj;
};
export default useCreation;
@@ -0,0 +1 @@
{"mappings":"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","sources":["packages/@react-stately/table/src/TableUtils.ts"],"sourcesContent":["/*\n * Copyright 2022 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 {ColumnSize} from '@react-types/table';\nimport {Key} from '@react-types/shared';\n\n// numbers and percents are considered static. *fr units or a lack of units are considered dynamic.\nexport function isStatic(width?: ColumnSize | null): boolean {\n return width != null && (!isNaN(width as number) || (String(width)).match(/^(\\d+)(?=%$)/) !== null);\n}\n\nexport function parseFractionalUnit(width?: ColumnSize | null): number {\n if (!width || typeof width === 'number') {\n return 1;\n }\n let match = width.match(/^(.+)(?=fr$)/);\n // if width is the incorrect format, just default it to a 1fr\n if (!match) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(`width: ${width} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,\n 'defaulting to \\'1fr\\'');\n }\n return 1;\n }\n return parseFloat(match[0]);\n}\n\nexport function parseStaticWidth(width: number | string, tableWidth: number): number {\n if (typeof width === 'string') {\n let match = width.match(/^(\\d+)(?=%$)/);\n if (!match) {\n throw new Error('Only percentages or numbers are supported for static column widths');\n }\n return tableWidth * Line truncated
@@ -0,0 +1,428 @@
let AtRule = require('./at-rule')
let Browsers = require('./browsers')
let Declaration = require('./declaration')
let hackAlignContent = require('./hacks/align-content')
let hackAlignItems = require('./hacks/align-items')
let hackAlignSelf = require('./hacks/align-self')
let hackAnimation = require('./hacks/animation')
let hackAppearance = require('./hacks/appearance')
let hackAutofill = require('./hacks/autofill')
let hackBackdropFilter = require('./hacks/backdrop-filter')
let hackBackgroundClip = require('./hacks/background-clip')
let hackBackgroundSize = require('./hacks/background-size')
let hackBlockLogical = require('./hacks/block-logical')
let hackBorderImage = require('./hacks/border-image')
let hackBorderRadius = require('./hacks/border-radius')
let hackBreakProps = require('./hacks/break-props')
let hackCrossFade = require('./hacks/cross-fade')
let hackDisplayFlex = require('./hacks/display-flex')
let hackDisplayGrid = require('./hacks/display-grid')
let hackFileSelectorButton = require('./hacks/file-selector-button')
let hackFilter = require('./hacks/filter')
let hackFilterValue = require('./hacks/filter-value')
let hackFlex = require('./hacks/flex')
let hackFlexBasis = require('./hacks/flex-basis')
let hackFlexDirection = require('./hacks/flex-direction')
let hackFlexFlow = require('./hacks/flex-flow')
let hackFlexGrow = require('./hacks/flex-grow')
let hackFlexShrink = require('./hacks/flex-shrink')
let hackFlexWrap = require('./hacks/flex-wrap')
let hackFullscreen = require('./hacks/fullscreen')
let hackGradient = require('./hacks/gradient')
let hackGridArea = require('./hacks/grid-area')
let hackGridColumnAlign = require('./hacks/grid-column-align')
let hackGridEnd = require('./hacks/grid-end')
let hackGridRowAlign = require('./hacks/grid-row-align')
let hackGridRowColumn = require('./hacks/grid-row-column')
let hackGridRowsColumns = require('./hacks/grid-rows-columns')
let hackGridStart = require('./hacks/grid-start')
let hackGridTemplate = require('./hacks/grid-template')
let hackGridTemplateAreas = require('./hacks/grid-template-areas')
let hackImageRendering = require('./hacks/image-rendering')
let hackImageSet = require('./hacks/image-set')
let hackInlineLogical = require('./hacks/inline-logical')
let hackIntrinsic = require('./hacks/intrinsic')
let hackJustifyContent = require('./hacks/justify-content')
let hackMaskBorder = require('./hacks/mask-border')
let hackMaskComposite = require('./hacks/mask-composite')
let hackOrder = require('./hacks/order')
let hackOverscrollBehavior = require('./hacks/overscroll-behavior')
let hackPixelated = require('./hacks/pixelated')
let hackPlaceSelf = require('./hacks/place-self')
let hackPlaceholder = require('./hacks/placeholder')
let hackPlaceholderShown = require('./hacks/placeholder-shown')
let hackPrintColorAdjust = require('./hacks/print-color-adjust')
let hackTextDecoration = require('./hacks/text-decoration')
let hackTextDecorationSkipInk = require('./hacks/text-decoration-skip-ink')
let hackTextEmphasisPosition = require('./hacks/text-emphasis-position')
let hackTransformDecl = require('./hacks/transform-decl')
let hackUserSelect = require('./hacks/user-select')
let hackWritingMode = require('./hacks/writing-mode')
let Processor = require('./processor')
let Resolution = require('./resolution')
let Selector = require('./selector')
let Supports = require('./supports')
let Transition = require('./transition')
let utils = require('./utils')
let Value = require('./value')
let vendor = require('./vendor')
Selector.hack(hackAutofill)
Selector.hack(hackFullscreen)
Selector.hack(hackPlaceholder)
Selector.hack(hackPlaceholderShown)
Selector.hack(hackFileSelectorButton)
Declaration.hack(hackFlex)
Declaration.hack(hackOrder)
Declaration.hack(hackFilter)
Declaration.hack(hackGridEnd)
Declaration.hack(hackAnimation)
Declaration.hack(hackFlexFlow)
Declaration.hack(hackFlexGrow)
Declaration.hack(hackFlexWrap)
Declaration.hack(hackGridArea)
Declaration.hack(hackPlaceSelf)
Declaration.hack(hackGridStart)
Declaration.hack(hackAlignSelf)
Declaration.hack(hackAppearance)
Declaration.hack(hackFlexBasis)
Declaration.hack(hackMaskBorder)
Declaration.hack(hackMaskComposite)
Declaration.hack(hackAlignItems)
Declaration.hack(hackUserSelect)
Declaration.hack(hackFlexShrink)
Declaration.hack(hackBreakProps)
Declaration.hack(hackWritingMode)
Declaration.hack(hackBorderImage)
Declaration.hack(hackAlignContent)
Declaration.hack(hackBorderRadius)
Declaration.hack(hackBlockLogical)
Declaration.hack(hackGridTemplate)
Declaration.hack(hackInlineLogical)
Declaration.hack(hackGridRowAlign)
Declaration.hack(hackTransformDecl)
Declaration.hack(hackFlexDirection)
Declaration.hack(hackImageRendering)
Declaration.hack(hackBackdropFilter)
Declaration.hack(hackBackgroundClip)
Declaration.hack(hackTextDecoration)
Declaration.hack(hackJustifyContent)
Declaration.hack(hackBackgroundSize)
Declaration.hack(hackGridRowColumn)
Declaration.hack(hackGridRowsColumns)
Declaration.hack(hackGridColumnAlign)
Declaration.hack(hackOverscrollBehavior)
Declaration.hack(hackGridTemplateAreas)
Declaration.hack(hackPrintColorAdjust)
Declaration.hack(hackTextEmphasisPosition)
Declaration.hack(hackTextDecorationSkipInk)
Value.hack(hackGradient)
Value.hack(hackIntrinsic)
Value.hack(hackPixelated)
Value.hack(hackImageSet)
Value.hack(hackCrossFade)
Value.hack(hackDisplayFlex)
Value.hack(hackDisplayGrid)
Value.hack(hackFilterValue)
let declsCache = new Map()
class Prefixes {
constructor(data, browsers, options = {}) {
this.data = data
this.browsers = browsers
this.options = options
;[this.add, this.remove] = this.preprocess(this.select(this.data))
this.transition = new Transition(this)
this.processor = new Processor(this)
}
/**
* Return clone instance to remove all prefixes
*/
cleaner() {
if (this.cleanerCache) {
return this.cleanerCache
}
if (this.browsers.selected.length) {
let empty = new Browsers(this.browsers.data, [])
this.cleanerCache = new Prefixes(this.data, empty, this.options)
} else {
return this
}
return this.cleanerCache
}
/**
* Declaration loader with caching
*/
decl(prop) {
if (!declsCache.has(prop)) {
declsCache.set(prop, Declaration.load(prop))
}
return declsCache.get(prop)
}
/**
* Group declaration by unprefixed property to check them
*/
group(decl) {
let rule = decl.parent
let index = rule.index(decl)
let { length } = rule.nodes
let unprefixed = this.unprefixed(decl.prop)
let checker = (step, callback) => {
index += step
while (index >= 0 && index < length) {
let other = rule.nodes[index]
if (other.type === 'decl') {
if (step === -1 && other.prop === unprefixed) {
if (!Browsers.withPrefix(other.value)) {
break
}
}
if (this.unprefixed(other.prop) !== unprefixed) {
break
} else if (callback(other) === true) {
return true
}
if (step === +1 && other.prop === unprefixed) {
if (!Browsers.withPrefix(other.value)) {
break
}
}
}
index += step
}
return false
}
return {
down(callback) {
return checker(+1, callback)
},
up(callback) {
return checker(-1, callback)
}
}
}
/**
* Normalize prefix for remover
*/
normalize(prop) {
return this.decl(prop).normalize(prop)
}
/**
* Return prefixed version of property
*/
prefixed(prop, prefix) {
prop = vendor.unprefixed(prop)
return this.decl(prop).prefixed(prop, prefix)
}
/**
* Cache prefixes data to fast CSS processing
*/
preprocess(selected) {
let add = {
'@supports': new Supports(Prefixes, this),
'selectors': []
}
for (let name in selected.add) {
let prefixes = selected.add[name]
if (name === '@keyframes' || name === '@viewport') {
add[name] = new AtRule(name, prefixes, this)
} else if (name === '@resolution') {
add[name] = new Resolution(name, prefixes, this)
} else if (this.data[name].selector) {
add.selectors.push(Selector.load(name, prefixes, this))
} else {
let props = this.data[name].props
if (props) {
let value = Value.load(name, prefixes, this)
for (let prop of props) {
if (!add[prop]) {
add[prop] = { values: [] }
}
add[prop].values.push(value)
}
} else {
let values = (add[name] && add[name].values) || []
add[name] = Declaration.load(name, prefixes, this)
add[name].values = values
}
}
}
let remove = { selectors: [] }
for (let name in selected.remove) {
let prefixes = selected.remove[name]
if (this.data[name].selector) {
let selector = Selector.load(name, prefixes)
for (let prefix of prefixes) {
remove.selectors.push(selector.old(prefix))
}
} else if (name === '@keyframes' || name === '@viewport') {
for (let prefix of prefixes) {
let prefixed = `@${prefix}${name.slice(1)}`
remove[prefixed] = { remove: true }
}
} else if (name === '@resolution') {
remove[name] = new Resolution(name, prefixes, this)
} else {
let props = this.data[name].props
if (props) {
let value = Value.load(name, [], this)
for (let prefix of prefixes) {
let old = value.old(prefix)
if (old) {
for (let prop of props) {
if (!remove[prop]) {
remove[prop] = {}
}
if (!remove[prop].values) {
remove[prop].values = []
}
remove[prop].values.push(old)
}
}
}
} else {
for (let p of prefixes) {
let olds = this.decl(name).old(name, p)
if (name === 'align-self') {
let a = add[name] && add[name].prefixes
if (a) {
if (p === '-webkit- 2009' && a.includes('-webkit-')) {
continue
} else if (p === '-webkit-' && a.includes('-webkit- 2009')) {
continue
}
}
}
for (let prefixed of olds) {
if (!remove[prefixed]) {
remove[prefixed] = {}
}
remove[prefixed].remove = true
}
}
}
}
}
return [add, remove]
}
/**
* Select prefixes from data, which is necessary for selected browsers
*/
select(list) {
let selected = { add: {}, remove: {} }
for (let name in list) {
let data = list[name]
let add = data.browsers.map(i => {
let params = i.split(' ')
return {
browser: `${params[0]} ${params[1]}`,
note: params[2]
}
})
let notes = add
.filter(i => i.note)
.map(i => `${this.browsers.prefix(i.browser)} ${i.note}`)
notes = utils.uniq(notes)
add = add
.filter(i => this.browsers.isSelected(i.browser))
.map(i => {
let prefix = this.browsers.prefix(i.browser)
if (i.note) {
return `${prefix} ${i.note}`
} else {
return prefix
}
})
add = this.sort(utils.uniq(add))
if (this.options.flexbox === 'no-2009') {
add = add.filter(i => !i.includes('2009'))
}
let all = data.browsers.map(i => this.browsers.prefix(i))
if (data.mistakes) {
all = all.concat(data.mistakes)
}
all = all.concat(notes)
all = utils.uniq(all)
if (add.length) {
selected.add[name] = add
if (add.length < all.length) {
selected.remove[name] = all.filter(i => !add.includes(i))
}
} else {
selected.remove[name] = all
}
}
return selected
}
/**
* Sort vendor prefixes
*/
sort(prefixes) {
return prefixes.sort((a, b) => {
let aLength = utils.removeNote(a).length
let bLength = utils.removeNote(b).length
if (aLength === bLength) {
return b.length - a.length
} else {
return bLength - aLength
}
})
}
/**
* Return unprefixed version of property
*/
unprefixed(prop) {
let value = this.normalize(vendor.unprefixed(prop))
if (value === 'flex-direction') {
value = 'flex-flow'
}
return value
}
/**
* Return values, which must be prefixed in selected property
*/
values(type, prop) {
let data = this[type]
let global = data['*'] && data['*'].values
let values = data[prop] && data[prop].values
if (global && values) {
return utils.uniq(global.concat(values))
} else {
return global || values || []
}
}
}
module.exports = Prefixes
@@ -0,0 +1,10 @@
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
var setPrototypeOf = require("./setPrototypeOf.js");
function _construct(t, e, r) {
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
var o = [null];
o.push.apply(o, e);
var p = new (t.bind.apply(t, o))();
return r && setPrototypeOf(p, r.prototype), p;
}
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,24 @@
"use strict"
const { commonGlobals, commonRules } = require("./_commons")
module.exports = {
globals: {
...commonGlobals,
__dirname: "readonly",
__filename: "readonly",
exports: "writable",
module: "readonly",
require: "readonly",
},
parserOptions: {
ecmaFeatures: { globalReturn: true },
ecmaVersion: 2019,
sourceType: "script",
},
plugins: ["node"],
rules: {
...commonRules,
"node/no-unsupported-features/es-syntax": ["error", { ignores: [] }],
},
}
@@ -0,0 +1 @@
{"version":3,"file":"splice-buffer.d.ts","sourceRoot":"","sources":["splice-buffer.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,0BAHa,CAAC;IAIZ;;;;;OAKG;IACH,sBALW,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAU7C;IAJC,uBAAuB;IACvB,MADW,KAAK,CAAC,CAAC,CAAC,CACoB;IACvC,uBAAuB;IACvB,OADW,KAAK,CAAC,CAAC,CAAC,CACJ;IAGjB;;;;;;;;OAQG;IACH,WALW,MAAM,GAEL,CAAC,CAgBZ;IAED;;;OAGG;IACH,qBAEC;IAED;;;;;;OAMG;IACH,SAHa,CAAC,GAAG,SAAS,CAMzB;IAED;;;;;;;;;;OAUG;IACH,aAPW,MAAM,QAEN,MAAM,GAAG,IAAI,GAAG,SAAS,GAEvB,KAAK,CAAC,CAAC,CAAC,CA0BpB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAbW,MAAM,gBAKN,MAAM,GAAG,IAAI,GAAG,SAAS,UAGzB,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAE1B,KAAK,CAAC,CAAC,CAAC,CAcnB;IAED;;;;;;;OAOG;IACH,OAHa,CAAC,GAAG,SAAS,CAMzB;IAED;;;;;;;;OAQG;IACH,WALW,CAAC,GAEC,SAAS,CAMrB;IAED;;;;;;;;OAQG;IACH,gBALW,KAAK,CAAC,CAAC,CAAC,GAEN,SAAS,CAMrB;IAED;;;;;;;;OAQG;IACH,cALW,CAAC,GAEC,SAAS,CAMrB;IAED;;;;;;;;OAQG;IACH,mBALW,KAAK,CAAC,CAAC,CAAC,GAEN,SAAS,CAMrB;IAED;;;;;;;;;;;OAWG;IACH,aALW,MAAM,GAEL,SAAS,CAsBpB;CACF"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var IframePresentationalRole = {
relatedConcepts: [],
type: 'window'
};
var _default = IframePresentationalRole;
exports.default = _default;
@@ -0,0 +1,86 @@
var has = Object.prototype.hasOwnProperty;
function find(iter, tar, key) {
for (key of iter.keys()) {
if (dequal(key, tar)) return key;
}
}
function dequal(foo, bar) {
var ctor, len, tmp;
if (foo === bar) return true;
if (foo && bar && (ctor=foo.constructor) === bar.constructor) {
if (ctor === Date) return foo.getTime() === bar.getTime();
if (ctor === RegExp) return foo.toString() === bar.toString();
if (ctor === Array) {
if ((len=foo.length) === bar.length) {
while (len-- && dequal(foo[len], bar[len]));
}
return len === -1;
}
if (ctor === Set) {
if (foo.size !== bar.size) {
return false;
}
for (len of foo) {
tmp = len;
if (tmp && typeof tmp === 'object') {
tmp = find(bar, tmp);
if (!tmp) return false;
}
if (!bar.has(tmp)) return false;
}
return true;
}
if (ctor === Map) {
if (foo.size !== bar.size) {
return false;
}
for (len of foo) {
tmp = len[0];
if (tmp && typeof tmp === 'object') {
tmp = find(bar, tmp);
if (!tmp) return false;
}
if (!dequal(len[1], bar.get(tmp))) {
return false;
}
}
return true;
}
if (ctor === ArrayBuffer) {
foo = new Uint8Array(foo);
bar = new Uint8Array(bar);
} else if (ctor === DataView) {
if ((len=foo.byteLength) === bar.byteLength) {
while (len-- && foo.getInt8(len) === bar.getInt8(len));
}
return len === -1;
}
if (ArrayBuffer.isView(foo)) {
if ((len=foo.byteLength) === bar.byteLength) {
while (len-- && foo[len] === bar[len]);
}
return len === -1;
}
if (!ctor || typeof foo === 'object') {
len = 0;
for (ctor in foo) {
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
}
return Object.keys(bar).length === len;
}
}
return foo !== foo && bar !== bar;
}
exports.dequal = dequal;
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more