fix(products): fix breadcrumbs and product filtering (backport from main)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-02-24 16:04:21 +01:00
parent 915eb61613
commit 5397309103
43805 changed files with 4324295 additions and 3 deletions

View File

@@ -0,0 +1,317 @@
<div align="center">
<a href="http://json-schema.org">
<img width="160" height="160"
src="https://raw.githubusercontent.com/webpack-contrib/schema-utils/main/.github/assets/logo.png">
</a>
<a href="https://github.com/webpack/webpack">
<img width="200" height="200"
src="https://webpack.js.org/assets/icon-square-big.svg">
</a>
</div>
[![npm][npm]][npm-url]
[![node][node]][node-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]
[![GitHub Discussions][discussion]][discussion-url]
[![size][size]][size-url]
# schema-utils
Package for validate options in loaders and plugins.
## Getting Started
To begin, you'll need to install `schema-utils`:
```console
npm install schema-utils
```
## API
**schema.json**
```json
{
"type": "object",
"properties": {
"option": {
"type": "boolean"
}
},
"additionalProperties": false
}
```
```js
import schema from "./path/to/schema.json";
import { validate } from "schema-utils";
const options = { option: true };
const configuration = { name: "Loader Name/Plugin Name/Name" };
validate(schema, options, configuration);
```
### `schema`
Type: `String`
JSON schema.
Simple example of schema:
```json
{
"type": "object",
"properties": {
"name": {
"description": "This is description of option.",
"type": "string"
}
},
"additionalProperties": false
}
```
### `options`
Type: `Object`
Object with options.
```js
import schema from "./path/to/schema.json";
import { validate } from "schema-utils";
const options = { foo: "bar" };
validate(schema, { name: 123 }, { name: "MyPlugin" });
```
### `configuration`
Allow to configure validator.
There is an alternative method to configure the `name` and`baseDataPath` options via the `title` property in the schema.
For example:
```json
{
"title": "My Loader options",
"type": "object",
"properties": {
"name": {
"description": "This is description of option.",
"type": "string"
}
},
"additionalProperties": false
}
```
The last word used for the `baseDataPath` option, other words used for the `name` option.
Based on the example above the `name` option equals `My Loader`, the `baseDataPath` option equals `options`.
#### `name`
Type: `Object`
Default: `"Object"`
Allow to setup name in validation errors.
```js
import schema from "./path/to/schema.json";
import { validate } from "schema-utils";
const options = { foo: "bar" };
validate(schema, options, { name: "MyPlugin" });
```
```shell
Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema.
- configuration.optionName should be a integer.
```
#### `baseDataPath`
Type: `String`
Default: `"configuration"`
Allow to setup base data path in validation errors.
```js
import schema from "./path/to/schema.json";
import { validate } from "schema-utils";
const options = { foo: "bar" };
validate(schema, options, { name: "MyPlugin", baseDataPath: "options" });
```
```shell
Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema.
- options.optionName should be a integer.
```
#### `postFormatter`
Type: `Function`
Default: `undefined`
Allow to reformat errors.
```js
import schema from "./path/to/schema.json";
import { validate } from "schema-utils";
const options = { foo: "bar" };
validate(schema, options, {
name: "MyPlugin",
postFormatter: (formattedError, error) => {
if (error.keyword === "type") {
return `${formattedError}\nAdditional Information.`;
}
return formattedError;
},
});
```
```shell
Invalid options object. MyPlugin has been initialized using an options object that does not match the API schema.
- options.optionName should be a integer.
Additional Information.
```
## Examples
**schema.json**
```json
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"test": {
"anyOf": [
{ "type": "array" },
{ "type": "string" },
{ "instanceof": "RegExp" }
]
},
"transform": {
"instanceof": "Function"
},
"sourceMap": {
"type": "boolean"
}
},
"additionalProperties": false
}
```
### `Loader`
```js
import { getOptions } from "loader-utils";
import { validate } from "schema-utils";
import schema from "path/to/schema.json";
function loader(src, map) {
const options = getOptions(this);
validate(schema, options, {
name: "Loader Name",
baseDataPath: "options",
});
// Code...
}
export default loader;
```
### `Plugin`
```js
import { validate } from "schema-utils";
import schema from "path/to/schema.json";
class Plugin {
constructor(options) {
validate(schema, options, {
name: "Plugin Name",
baseDataPath: "options",
});
this.options = options;
}
apply(compiler) {
// Code...
}
}
export default Plugin;
```
### Allow to disable and enable validation (the `validate` function do nothing)
This can be useful when you don't want to do validation for `production` builds.
```js
import { disableValidation, enableValidation, validate } from "schema-utils";
// Disable validation
disableValidation();
// Do nothing
validate(schema, options);
// Enable validation
enableValidation();
// Will throw an error if schema is not valid
validate(schema, options);
// Allow to undestand do you need validation or not
const need = needValidate();
console.log(need);
```
Also you can enable/disable validation using the `process.env.SKIP_VALIDATION` env variable.
Supported values (case insensitive):
- `yes`/`y`/`true`/`1`/`on`
- `no`/`n`/`false`/`0`/`off`
## Contributing
Please take a moment to read our contributing guidelines if you haven't yet done so.
[CONTRIBUTING](./.github/CONTRIBUTING.md)
## License
[MIT](./LICENSE)
[npm]: https://img.shields.io/npm/v/schema-utils.svg
[npm-url]: https://npmjs.com/package/schema-utils
[node]: https://img.shields.io/node/v/schema-utils.svg
[node-url]: https://nodejs.org
[tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg
[tests-url]: https://github.com/webpack/schema-utils/actions
[cover]: https://codecov.io/gh/webpack/schema-utils/branch/main/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack/schema-utils
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
[discussion-url]: https://github.com/webpack/webpack/discussions
[size]: https://packagephobia.com/badge?p=schema-utils
[size-url]: https://packagephobia.com/result?p=schema-utils

View File

@@ -0,0 +1,8 @@
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
function _class_static_private_method_get(receiver, classConstructor, method) {
_class_check_private_static_access(receiver, classConstructor);
return method;
}
export { _class_static_private_method_get as _ };

View File

@@ -0,0 +1,2 @@
import{throwIfEmpty as e}from"../../utils/throw-if-empty.js";const t=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.body}),n=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.blob()}),r=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.arrayBuffer()}),i=(t,n)=>()=>{e(String(t),`Keys cannot be empty`);let r=e=>e.body;return n?.output===`arrayBuffer`?r=e=>e.arrayBuffer():n?.output===`blob`&&(r=e=>e.blob()),{path:`/assets/files/`,body:JSON.stringify({ids:t}),method:`POST`,onResponse:r}},a=(t,n)=>()=>{e(String(t),`Key cannot be empty`);let r=e=>e.body;return n?.output===`arrayBuffer`?r=e=>e.arrayBuffer():n?.output===`blob`&&(r=e=>e.blob()),{path:`/assets/folder/${t}`,method:`POST`,onResponse:r}};export{i as downloadFilesZip,a as downloadFolderZip,r as readAssetArrayBuffer,n as readAssetBlob,t as readAssetRaw};
//# sourceMappingURL=assets.js.map

View File

@@ -0,0 +1,60 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var isBrowser = typeof document !== 'undefined';
function getRegisteredStyles(registered, registeredStyles, classNames) {
var rawClassName = '';
classNames.split(' ').forEach(function (className) {
if (registered[className] !== undefined) {
registeredStyles.push(registered[className] + ";");
} else if (className) {
rawClassName += className + " ";
}
});
return rawClassName;
}
var registerStyles = function registerStyles(cache, serialized, isStringTag) {
var className = cache.key + "-" + serialized.name;
if ( // we only need to add the styles to the registered cache if the
// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(isStringTag === false || // we need to always store it if we're in compat mode and
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
cache.registered[className] = serialized.styles;
}
};
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
registerStyles(cache, serialized, isStringTag);
var className = cache.key + "-" + serialized.name;
if (cache.inserted[serialized.name] === undefined) {
var stylesForSSR = '';
var current = serialized;
do {
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
if (!isBrowser && maybeStyles !== undefined) {
stylesForSSR += maybeStyles;
}
current = current.next;
} while (current !== undefined);
if (!isBrowser && stylesForSSR.length !== 0) {
return stylesForSSR;
}
}
};
exports.getRegisteredStyles = getRegisteredStyles;
exports.insertStyles = insertStyles;
exports.registerStyles = registerStyles;

View File

@@ -0,0 +1 @@
{"version":3,"file":"render-playground-page.js","sourceRoot":"","sources":["../src/render-playground-page.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2BAAgC;AAEhC,2DAAmD;AA8EnD,IAAM,MAAM,GAAG,UAAC,GAAG;IACjB,OAAO,eAAS,CAAC,GAAG,EAAE;QACpB,aAAa;QACb,SAAS,EAAE,EAAE;QACb,cAAc,EAAE,IAAI;QACpB,kBAAkB,EAAE,CAAC,QAAQ,CAAC;KAC/B,CAAC,CAAA;AACJ,CAAC,CAAA;AAGD,IAAM,OAAO,GAAG,4BAAgB,EAAE,CAAA;AAElC,IAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,IAAM,YAAY,GAAG,UAAC,EAA0D;QAAxD,oBAAO,EAAE,cAAiC,EAAjC,sDAAiC,EAAE,0BAAU;IAC5E,IAAM,WAAW,GAAG,UAAC,WAAmB,EAAE,MAAc,IAAK,OAAA,MAAM,CAAI,MAAM,SAAI,WAAW,IAAG,OAAO,CAAC,CAAC,CAAC,MAAI,OAAS,CAAC,CAAC,CAAC,EAAE,UAAI,MAAQ,IAAI,EAAE,CAAC,EAAjF,CAAiF,CAAA;IAC9I,OAAO,2DAGK,WAAW,CAAC,0BAA0B,EAAE,4BAA4B,CAAC,yBAE7E,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,wCAAmC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,UAAM,CAAC,CAAC,CAAC,EAAE,gBACvG,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,wCAAmC,WAAW,CAAC,0BAA0B,EAAE,mBAAmB,CAAC,UAAM,CAAC,CAAC,CAAC,EAAE,qCAE9H,WAAW,CAAC,0BAA0B,EAAE,+BAA+B,CAAC,yBAEpF,CAAA;AAAA,CAAC,CAAA;AAGF,IAAM,YAAY,GAAG,UAAC,MAAM;IAC1B,OAAO,eAAS,CAAC,eAAY,SAAS,WAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAQ,EAAE;QACzE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;KAC3B,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,SAAgB,oBAAoB,CAAC,OAA0B;IAC7D,IAAM,eAAe,yBAChB,OAAO,KACV,aAAa,EAAE,KAAK,GACrB,CAAA;IACD,oBAAoB;IACpB,IAAK,OAAe,CAAC,qBAAqB,EAAE;QAC1C,eAAe,CAAC,oBAAoB,GAAG,MAAM,CAAE,OAAe,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAA;KAC5F;IACD,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;KACvE;IACD,IAAI,CAAC,eAAe,CAAC,QAAQ,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE;QAC9D,8BAA8B;QAC9B,OAAO,CAAC,IAAI,CACV,mHAAmH,CACpH,CAAA;KACF;SACI,IAAI,eAAe,CAAC,QAAQ,EAAE;QACjC,eAAe,CAAC,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAA;KAClE;IAED,OAAO,wVAOI,eAAe,CAAC,KAAK,IAAI,oBAAoB,wBACpD,eAAe,CAAC,GAAG,KAAK,OAAO,IAAI,eAAe,CAAC,GAAG,KAAK,UAAU;QACrE,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,wPAe5B,SAAS,mgCAuCZ,OAAO,CAAC,SAAS,cACjB,YAAY,CAAC,eAAe,CAAC,4IAIzB,OAAO,CAAC,MAAM,sKAI8B,SAAS,uYAiB9D,CAAA;AACD,CAAC;AAjHD,oDAiHC"}

View File

@@ -0,0 +1,9 @@
import type { Locale } from "./types.js";
/**
* @category Locales
* @summary Kannada locale (India).
* @language Kannada
* @iso-639-2 kan
* @author Manjunatha Gouli [@developergouli](https://github.com/developergouli)
*/
export declare const kn: Locale;

View File

@@ -0,0 +1,6 @@
import * as React from 'react';
type ImgProps = Readonly<React.ComponentPropsWithoutRef<"img">>;
declare const Img: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref">> & React.RefAttributes<HTMLImageElement>>;
export { Img, type ImgProps };

View File

@@ -0,0 +1 @@
{"version":3,"names":["_toPrimitive","require","toPropertyKey","arg","key","toPrimitive","String"],"sources":["../../src/helpers/toPropertyKey.ts"],"sourcesContent":["/* @minVersion 7.1.5 */\n\n// https://tc39.es/ecma262/#sec-topropertykey\n\nimport toPrimitive from \"./toPrimitive.ts\";\n\nexport default function toPropertyKey(arg: unknown) {\n var key = toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAEe,SAASC,aAAaA,CAACC,GAAY,EAAE;EAClD,IAAIC,GAAG,GAAG,IAAAC,oBAAW,EAACF,GAAG,EAAE,QAAQ,CAAC;EACpC,OAAO,OAAOC,GAAG,KAAK,QAAQ,GAAGA,GAAG,GAAGE,MAAM,CAACF,GAAG,CAAC;AACpD","ignoreList":[]}

View File

@@ -0,0 +1,41 @@
/**
* Span creation and management functions for MCP server instrumentation
*
* Provides unified span creation following OpenTelemetry MCP semantic conventions and our opinitionated take on MCP.
* Handles both request and notification spans with attribute extraction.
*/
import { ExtraHandlerData, JsonRpcNotification, JsonRpcRequest, MCPTransport, ResolvedMcpOptions } from './types';
/**
* Creates a span for incoming MCP notifications
* @param jsonRpcMessage - Notification message
* @param transport - MCP transport instance
* @param extra - Extra handler data
* @param options - Resolved MCP options
* @param callback - Span execution callback
* @returns Span execution result
*/
export declare function createMcpNotificationSpan(jsonRpcMessage: JsonRpcNotification, transport: MCPTransport, extra: ExtraHandlerData, options: ResolvedMcpOptions, callback: () => unknown): unknown;
/**
* Creates a span for outgoing MCP notifications
* @param jsonRpcMessage - Notification message
* @param transport - MCP transport instance
* @param options - Resolved MCP options
* @param callback - Span execution callback
* @returns Span execution result
*/
export declare function createMcpOutgoingNotificationSpan(jsonRpcMessage: JsonRpcNotification, transport: MCPTransport, options: ResolvedMcpOptions, callback: () => unknown): unknown;
/**
* Builds span configuration for MCP server requests
* @param jsonRpcMessage - Request message
* @param transport - MCP transport instance
* @param extra - Optional extra handler data
* @param options - Resolved MCP options
* @returns Span configuration object
*/
export declare function buildMcpServerSpanConfig(jsonRpcMessage: JsonRpcRequest, transport: MCPTransport, extra?: ExtraHandlerData, options?: ResolvedMcpOptions): {
name: string;
op: string;
forceTransaction: boolean;
attributes: Record<string, string | number>;
};
//# sourceMappingURL=spans.d.ts.map

View File

@@ -0,0 +1,37 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const makeSerializable = require("../util/makeSerializable");
const HarmonyImportDependency = require("./HarmonyImportDependency");
const { ImportPhase } = require("./ImportPhase");
const NullDependency = require("./NullDependency");
class HarmonyAcceptImportDependency extends HarmonyImportDependency {
/**
* @param {string} request the request string
*/
constructor(request) {
super(request, Infinity, ImportPhase.Evaluation);
this.weak = true;
}
get type() {
return "harmony accept";
}
}
makeSerializable(
HarmonyAcceptImportDependency,
"webpack/lib/dependencies/HarmonyAcceptImportDependency"
);
HarmonyAcceptImportDependency.Template =
/** @type {typeof HarmonyImportDependency.Template} */ (
NullDependency.Template
);
module.exports = HarmonyAcceptImportDependency;

View File

@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import * as modDev from './LexicalDraggableBlockPlugin.dev.mjs';
import * as modProd from './LexicalDraggableBlockPlugin.prod.mjs';
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
export const DraggableBlockPlugin_EXPERIMENTAL = mod.DraggableBlockPlugin_EXPERIMENTAL;

View File

@@ -0,0 +1,40 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
// Incubating export also contains stable constants in order to maintain
// backward compatibility between minor version releases
__exportStar(require("./stable_attributes"), exports);
__exportStar(require("./stable_metrics"), exports);
__exportStar(require("./stable_events"), exports);
__exportStar(require("./experimental_attributes"), exports);
__exportStar(require("./experimental_metrics"), exports);
__exportStar(require("./experimental_events"), exports);
//# sourceMappingURL=index-incubating.js.map

View File

@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './file-axis-3d.js';
//# sourceMappingURL=file-axis-3-d.js.map

View File

@@ -0,0 +1,13 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import * as modDev from './LexicalAutoLinkPlugin.dev.mjs';
import * as modProd from './LexicalAutoLinkPlugin.prod.mjs';
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
export const AutoLinkPlugin = mod.AutoLinkPlugin;
export const createLinkMatcherWithRegExp = mod.createLinkMatcherWithRegExp;

View File

@@ -0,0 +1,52 @@
import { getTranslation } from '@payloadcms/translations';
import { formatDate } from './formatDateTitle.js';
import { formatLexicalDocTitle, isSerializedLexicalEditor } from './formatLexicalDocTitle.js';
import { formatRelationshipTitle } from './formatRelationshipTitle.js';
export const formatDocTitle = ({
collectionConfig,
data,
dateFormat: dateFormatFromConfig,
fallback,
globalConfig,
i18n
}) => {
let title;
if (collectionConfig) {
const useAsTitle = collectionConfig?.admin?.useAsTitle;
if (useAsTitle) {
title = data?.[useAsTitle];
if (title) {
const fieldConfig = collectionConfig.fields.find(f => 'name' in f && f.name === useAsTitle);
const isDate = fieldConfig?.type === 'date';
const isRelationship = fieldConfig?.type === 'relationship';
if (isDate) {
const dateFormat = 'date' in fieldConfig.admin && fieldConfig?.admin?.date?.displayFormat || dateFormatFromConfig;
title = formatDate({
date: title,
i18n,
pattern: dateFormat
}) || title;
}
if (isRelationship) {
const formattedRelationshipTitle = formatRelationshipTitle(data[useAsTitle]);
title = formattedRelationshipTitle;
}
}
}
}
if (globalConfig) {
title = getTranslation(globalConfig?.label, i18n) || globalConfig?.slug;
}
// richtext lexical case. We convert the first child of root to plain text
if (title && isSerializedLexicalEditor(title)) {
title = formatLexicalDocTitle(title.root.children?.[0]?.children || [], '');
}
if (!title && isSerializedLexicalEditor(fallback)) {
title = formatLexicalDocTitle(fallback.root.children?.[0]?.children || [], '');
}
if (!title) {
title = typeof fallback === 'string' ? fallback : `[${i18n.t('general:untitled')}]`;
}
return title;
};
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,719 @@
function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}(function (_window$dateFns) {var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/pl/_lib/formatDistance.mjs
var declensionGroup = function declensionGroup(scheme, count) {
if (count === 1) {
return scheme.one;
}
var rem100 = count % 100;
if (rem100 <= 20 && rem100 > 10) {
return scheme.other;
}
var rem10 = rem100 % 10;
if (rem10 >= 2 && rem10 <= 4) {
return scheme.twoFour;
}
return scheme.other;
};
var declension = function declension(scheme, count, time) {
var group = declensionGroup(scheme, count);
var finalText = typeof group === "string" ? group : group[time];
return finalText.replace("{{count}}", String(count));
};
var formatDistanceLocale = {
lessThanXSeconds: {
one: {
regular: "mniej ni\u017C sekunda",
past: "mniej ni\u017C sekund\u0119",
future: "mniej ni\u017C sekund\u0119"
},
twoFour: "mniej ni\u017C {{count}} sekundy",
other: "mniej ni\u017C {{count}} sekund"
},
xSeconds: {
one: {
regular: "sekunda",
past: "sekund\u0119",
future: "sekund\u0119"
},
twoFour: "{{count}} sekundy",
other: "{{count}} sekund"
},
halfAMinute: {
one: "p\xF3\u0142 minuty",
twoFour: "p\xF3\u0142 minuty",
other: "p\xF3\u0142 minuty"
},
lessThanXMinutes: {
one: {
regular: "mniej ni\u017C minuta",
past: "mniej ni\u017C minut\u0119",
future: "mniej ni\u017C minut\u0119"
},
twoFour: "mniej ni\u017C {{count}} minuty",
other: "mniej ni\u017C {{count}} minut"
},
xMinutes: {
one: {
regular: "minuta",
past: "minut\u0119",
future: "minut\u0119"
},
twoFour: "{{count}} minuty",
other: "{{count}} minut"
},
aboutXHours: {
one: {
regular: "oko\u0142o godziny",
past: "oko\u0142o godziny",
future: "oko\u0142o godzin\u0119"
},
twoFour: "oko\u0142o {{count}} godziny",
other: "oko\u0142o {{count}} godzin"
},
xHours: {
one: {
regular: "godzina",
past: "godzin\u0119",
future: "godzin\u0119"
},
twoFour: "{{count}} godziny",
other: "{{count}} godzin"
},
xDays: {
one: {
regular: "dzie\u0144",
past: "dzie\u0144",
future: "1 dzie\u0144"
},
twoFour: "{{count}} dni",
other: "{{count}} dni"
},
aboutXWeeks: {
one: "oko\u0142o tygodnia",
twoFour: "oko\u0142o {{count}} tygodni",
other: "oko\u0142o {{count}} tygodni"
},
xWeeks: {
one: "tydzie\u0144",
twoFour: "{{count}} tygodnie",
other: "{{count}} tygodni"
},
aboutXMonths: {
one: "oko\u0142o miesi\u0105c",
twoFour: "oko\u0142o {{count}} miesi\u0105ce",
other: "oko\u0142o {{count}} miesi\u0119cy"
},
xMonths: {
one: "miesi\u0105c",
twoFour: "{{count}} miesi\u0105ce",
other: "{{count}} miesi\u0119cy"
},
aboutXYears: {
one: "oko\u0142o rok",
twoFour: "oko\u0142o {{count}} lata",
other: "oko\u0142o {{count}} lat"
},
xYears: {
one: "rok",
twoFour: "{{count}} lata",
other: "{{count}} lat"
},
overXYears: {
one: "ponad rok",
twoFour: "ponad {{count}} lata",
other: "ponad {{count}} lat"
},
almostXYears: {
one: "prawie rok",
twoFour: "prawie {{count}} lata",
other: "prawie {{count}} lat"
}
};
var formatDistance = function formatDistance(token, count, options) {
var scheme = formatDistanceLocale[token];
if (!(options !== null && options !== void 0 && options.addSuffix)) {
return declension(scheme, count, "regular");
}
if (options.comparison && options.comparison > 0) {
return "za " + declension(scheme, count, "future");
} else {
return declension(scheme, count, "past") + " temu";
}
};
// lib/locale/_lib/buildFormatLongFn.mjs
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
};
}
// lib/locale/pl/_lib/formatLong.mjs
var dateFormats = {
full: "EEEE, do MMMM y",
long: "do MMMM y",
medium: "do MMM y",
short: "dd.MM.y"
};
var timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm"
};
var dateTimeFormats = {
full: "{{date}} {{time}}",
long: "{{date}} {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full"
})
};
// lib/toDate.mjs
function toDate(argument) {
var argStr = Object.prototype.toString.call(argument);
if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
return new argument.constructor(+argument);
} else if (typeof argument === "number" || argStr === "[object Number]" || typeof argument === "string" || argStr === "[object String]") {
return new Date(argument);
} else {
return new Date(NaN);
}
}
// lib/_lib/defaultOptions.mjs
function getDefaultOptions() {
return defaultOptions;
}
function setDefaultOptions(newOptions) {
defaultOptions = newOptions;
}
var defaultOptions = {};
// lib/startOfWeek.mjs
function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions3$loca;
var defaultOptions3 = getDefaultOptions();
var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions3.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions3$loca = defaultOptions3.locale) === null || _defaultOptions3$loca === void 0 || (_defaultOptions3$loca = _defaultOptions3$loca.options) === null || _defaultOptions3$loca === void 0 ? void 0 : _defaultOptions3$loca.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0;
var _date = toDate(date);
var day = _date.getDay();
var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
_date.setDate(_date.getDate() - diff);
_date.setHours(0, 0, 0, 0);
return _date;
}
// lib/isSameWeek.mjs
function isSameWeek(dateLeft, dateRight, options) {
var dateLeftStartOfWeek = startOfWeek(dateLeft, options);
var dateRightStartOfWeek = startOfWeek(dateRight, options);
return +dateLeftStartOfWeek === +dateRightStartOfWeek;
}
// lib/locale/pl/_lib/formatRelative.mjs
var dayAndTimeWithAdjective = function dayAndTimeWithAdjective(token, date, baseDate, options) {
var adjectives;
if (isSameWeek(date, baseDate, options)) {
adjectives = adjectivesThisWeek;
} else if (token === "lastWeek") {
adjectives = adjectivesLastWeek;
} else if (token === "nextWeek") {
adjectives = adjectivesNextWeek;
} else {
throw new Error("Cannot determine adjectives for token ".concat(token));
}
var day = date.getDay();
var grammaticalGender = dayGrammaticalGender[day];
var adjective = adjectives[grammaticalGender];
return "'".concat(adjective, "' eeee 'o' p");
};
var adjectivesLastWeek = {
masculine: "ostatni",
feminine: "ostatnia"
};
var adjectivesThisWeek = {
masculine: "ten",
feminine: "ta"
};
var adjectivesNextWeek = {
masculine: "nast\u0119pny",
feminine: "nast\u0119pna"
};
var dayGrammaticalGender = {
0: "feminine",
1: "masculine",
2: "masculine",
3: "feminine",
4: "masculine",
5: "masculine",
6: "feminine"
};
var formatRelativeLocale = {
lastWeek: dayAndTimeWithAdjective,
yesterday: "'wczoraj o' p",
today: "'dzisiaj o' p",
tomorrow: "'jutro o' p",
nextWeek: dayAndTimeWithAdjective,
other: "P"
};
var formatRelative = function formatRelative(token, date, baseDate, options) {
var format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(token, date, baseDate, options);
}
return format;
};
// lib/locale/_lib/buildLocalizeFn.mjs
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
var valuesArray;
if (context === "formatting" && args.formattingValues) {
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
} else {
var _defaultWidth = args.defaultWidth;
var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
valuesArray = args.values[_width] || args.values[_defaultWidth];
}
var index = args.argumentCallback ? args.argumentCallback(value) : value;
return valuesArray[index];
};
}
// lib/locale/pl/_lib/localize.mjs
var eraValues = {
narrow: ["p.n.e.", "n.e."],
abbreviated: ["p.n.e.", "n.e."],
wide: ["przed nasz\u0105 er\u0105", "naszej ery"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["I kw.", "II kw.", "III kw.", "IV kw."],
wide: ["I kwarta\u0142", "II kwarta\u0142", "III kwarta\u0142", "IV kwarta\u0142"]
};
var monthValues = {
narrow: ["S", "L", "M", "K", "M", "C", "L", "S", "W", "P", "L", "G"],
abbreviated: [
"sty",
"lut",
"mar",
"kwi",
"maj",
"cze",
"lip",
"sie",
"wrz",
"pa\u017A",
"lis",
"gru"],
wide: [
"stycze\u0144",
"luty",
"marzec",
"kwiecie\u0144",
"maj",
"czerwiec",
"lipiec",
"sierpie\u0144",
"wrzesie\u0144",
"pa\u017Adziernik",
"listopad",
"grudzie\u0144"]
};
var monthFormattingValues = {
narrow: ["s", "l", "m", "k", "m", "c", "l", "s", "w", "p", "l", "g"],
abbreviated: [
"sty",
"lut",
"mar",
"kwi",
"maj",
"cze",
"lip",
"sie",
"wrz",
"pa\u017A",
"lis",
"gru"],
wide: [
"stycznia",
"lutego",
"marca",
"kwietnia",
"maja",
"czerwca",
"lipca",
"sierpnia",
"wrze\u015Bnia",
"pa\u017Adziernika",
"listopada",
"grudnia"]
};
var dayValues = {
narrow: ["N", "P", "W", "\u015A", "C", "P", "S"],
short: ["nie", "pon", "wto", "\u015Bro", "czw", "pi\u0105", "sob"],
abbreviated: ["niedz.", "pon.", "wt.", "\u015Br.", "czw.", "pt.", "sob."],
wide: [
"niedziela",
"poniedzia\u0142ek",
"wtorek",
"\u015Broda",
"czwartek",
"pi\u0105tek",
"sobota"]
};
var dayFormattingValues = {
narrow: ["n", "p", "w", "\u015B", "c", "p", "s"],
short: ["nie", "pon", "wto", "\u015Bro", "czw", "pi\u0105", "sob"],
abbreviated: ["niedz.", "pon.", "wt.", "\u015Br.", "czw.", "pt.", "sob."],
wide: [
"niedziela",
"poniedzia\u0142ek",
"wtorek",
"\u015Broda",
"czwartek",
"pi\u0105tek",
"sobota"]
};
var dayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "p\xF3\u0142n.",
noon: "po\u0142",
morning: "rano",
afternoon: "popo\u0142.",
evening: "wiecz.",
night: "noc"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "p\xF3\u0142noc",
noon: "po\u0142udnie",
morning: "rano",
afternoon: "popo\u0142udnie",
evening: "wiecz\xF3r",
night: "noc"
},
wide: {
am: "AM",
pm: "PM",
midnight: "p\xF3\u0142noc",
noon: "po\u0142udnie",
morning: "rano",
afternoon: "popo\u0142udnie",
evening: "wiecz\xF3r",
night: "noc"
}
};
var dayPeriodFormattingValues = {
narrow: {
am: "a",
pm: "p",
midnight: "o p\xF3\u0142n.",
noon: "w po\u0142.",
morning: "rano",
afternoon: "po po\u0142.",
evening: "wiecz.",
night: "w nocy"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "o p\xF3\u0142nocy",
noon: "w po\u0142udnie",
morning: "rano",
afternoon: "po po\u0142udniu",
evening: "wieczorem",
night: "w nocy"
},
wide: {
am: "AM",
pm: "PM",
midnight: "o p\xF3\u0142nocy",
noon: "w po\u0142udnie",
morning: "rano",
afternoon: "po po\u0142udniu",
evening: "wieczorem",
night: "w nocy"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
return String(dirtyNumber);
};
var localize = {
ordinalNumber: ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide"
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
formattingValues: monthFormattingValues,
defaultFormattingWidth: "wide"
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
formattingValues: dayFormattingValues,
defaultFormattingWidth: "wide"
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: dayPeriodFormattingValues,
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchFn.mjs
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
var value;
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
};
}
var findKey = function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
};
var findIndex = function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
};
// lib/locale/_lib/buildMatchPatternFn.mjs
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
};
}
// lib/locale/pl/_lib/match.mjs
var matchOrdinalNumberPattern = /^(\d+)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,
abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,
wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i
};
var parseEraPatterns = {
any: [/^p/i, /^n/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^(I|II|III|IV)\s*kw\.?/i,
wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i
};
var parseQuarterPatterns = {
narrow: [/1/i, /2/i, /3/i, /4/i],
any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i]
};
var matchMonthPatterns = {
narrow: /^[slmkcwpg]/i,
abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,
wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i
};
var parseMonthPatterns = {
narrow: [
/^s/i,
/^l/i,
/^m/i,
/^k/i,
/^m/i,
/^c/i,
/^l/i,
/^s/i,
/^w/i,
/^p/i,
/^l/i,
/^g/i],
any: [
/^st/i,
/^lu/i,
/^mar/i,
/^k/i,
/^maj/i,
/^c/i,
/^lip/i,
/^si/i,
/^w/i,
/^p/i,
/^lis/i,
/^g/i]
};
var matchDayPatterns = {
narrow: /^[npwścs]/i,
short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,
abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,
wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i
};
var parseDayPatterns = {
narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i],
abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i],
any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i]
};
var matchDayPeriodPatterns = {
narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,
any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i
};
var parseDayPeriodPatterns = {
narrow: {
am: /^a$/i,
pm: /^p$/i,
midnight: /pó(ł|l)n/i,
noon: /po(ł|l)/i,
morning: /rano/i,
afternoon: /po\s*po(ł|l)/i,
evening: /wiecz/i,
night: /noc/i
},
any: {
am: /^am/i,
pm: /^pm/i,
midnight: /pó(ł|l)n/i,
noon: /po(ł|l)/i,
morning: /rano/i,
afternoon: /po\s*po(ł|l)/i,
evening: /wiecz/i,
night: /noc/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/pl.mjs
var pl = {
code: "pl",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 1,
firstWeekContainsDate: 4
}
};
// lib/locale/pl/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
pl: pl }) });
//# debugId=7708480F5B8C909764756e2164756e21
})();
//# sourceMappingURL=cdn.js.map

View File

@@ -0,0 +1,4 @@
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/prisma/mysql/driver.ts"],"sourcesContent":["import type { PrismaClient } from '@prisma/client/extension';\n\nimport { Prisma } from '@prisma/client';\n\nimport { entityKind } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { DefaultLogger } from '~/logger.ts';\nimport { MySqlDatabase, MySqlDialect } from '~/mysql-core/index.ts';\nimport type { DrizzleConfig } from '~/utils.ts';\nimport type { PrismaMySqlPreparedQueryHKT, PrismaMySqlQueryResultHKT } from './session.ts';\nimport { PrismaMySqlSession } from './session.ts';\n\nexport class PrismaMySqlDatabase\n\textends MySqlDatabase<PrismaMySqlQueryResultHKT, PrismaMySqlPreparedQueryHKT, Record<string, never>>\n{\n\tstatic override readonly [entityKind]: string = 'PrismaMySqlDatabase';\n\n\tconstructor(client: PrismaClient, logger: Logger | undefined) {\n\t\tconst dialect = new MySqlDialect();\n\t\tsuper(dialect, new PrismaMySqlSession(dialect, client, { logger }), undefined, 'default');\n\t}\n}\n\nexport type PrismaMySqlConfig = Omit<DrizzleConfig, 'schema'>;\n\nexport function drizzle(config: PrismaMySqlConfig = {}) {\n\tlet logger: Logger | undefined;\n\tif (config.logger === true) {\n\t\tlogger = new DefaultLogger();\n\t} else if (config.logger !== false) {\n\t\tlogger = config.logger;\n\t}\n\n\treturn Prisma.defineExtension((client) => {\n\t\treturn client.$extends({\n\t\t\tname: 'drizzle',\n\t\t\tclient: {\n\t\t\t\t$drizzle: new PrismaMySqlDatabase(client, logger),\n\t\t\t},\n\t\t});\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AAEvB,oBAA2B;AAE3B,oBAA8B;AAC9B,wBAA4C;AAG5C,qBAAmC;AAE5B,MAAM,4BACJ,gCACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,QAAsB,QAA4B;AAC7D,UAAM,UAAU,IAAI,+BAAa;AACjC,UAAM,SAAS,IAAI,kCAAmB,SAAS,QAAQ,EAAE,OAAO,CAAC,GAAG,QAAW,SAAS;AAAA,EACzF;AACD;AAIO,SAAS,QAAQ,SAA4B,CAAC,GAAG;AACvD,MAAI;AACJ,MAAI,OAAO,WAAW,MAAM;AAC3B,aAAS,IAAI,4BAAc;AAAA,EAC5B,WAAW,OAAO,WAAW,OAAO;AACnC,aAAS,OAAO;AAAA,EACjB;AAEA,SAAO,qBAAO,gBAAgB,CAAC,WAAW;AACzC,WAAO,OAAO,SAAS;AAAA,MACtB,MAAM;AAAA,MACN,QAAQ;AAAA,QACP,UAAU,IAAI,oBAAoB,QAAQ,MAAM;AAAA,MACjD;AAAA,IACD,CAAC;AAAA,EACF,CAAC;AACF;","names":[]}

View File

@@ -0,0 +1 @@
{"version":3,"file":"parking-meter.js","sources":["../../../src/icons/parking-meter.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ParkingMeter\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSA5YTMgMyAwIDEgMSA2IDAiIC8+CiAgPHBhdGggZD0iTTEyIDEydjMiIC8+CiAgPHBhdGggZD0iTTExIDE1aDIiIC8+CiAgPHBhdGggZD0iTTE5IDlhNyA3IDAgMSAwLTEzLjYgMi4zQzYuNCAxNC40IDggMTkgOCAxOWg4czEuNi00LjYgMi42LTcuN2MuMy0uOC40LTEuNS40LTIuMyIgLz4KICA8cGF0aCBkPSJNMTIgMTl2MyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/parking-meter\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ParkingMeter = createLucideIcon('ParkingMeter', [\n ['path', { d: 'M9 9a3 3 0 1 1 6 0', key: 'jdoeu8' }],\n ['path', { d: 'M12 12v3', key: '158kv8' }],\n ['path', { d: 'M11 15h2', key: '199qp6' }],\n [\n 'path',\n {\n d: 'M19 9a7 7 0 1 0-13.6 2.3C6.4 14.4 8 19 8 19h8s1.6-4.6 2.6-7.7c.3-.8.4-1.5.4-2.3',\n key: '1l50wn',\n },\n ],\n ['path', { d: 'M12 19v3', key: 'npa21l' }],\n]);\n\nexport default ParkingMeter;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,iBAAiB,cAAgB,CAAA,CAAA,CAAA;AAAA,CAAA,CACpD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACnD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACzC,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,8 @@
"use strict";
exports.eachWeekendOfMonth = void 0;
var _index = require("../eachWeekendOfMonth.js");
var _index2 = require("./_lib/convertToFP.js"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const eachWeekendOfMonth = (exports.eachWeekendOfMonth = (0,
_index2.convertToFP)(_index.eachWeekendOfMonth, 1));

View File

@@ -0,0 +1,9 @@
import type { Payload } from '../../index.js';
import type { Migration } from '../types.js';
/**
* Read the migration files from disk
*/
export declare const readMigrationFiles: ({ payload, }: {
payload: Payload;
}) => Promise<Migration[]>;
//# sourceMappingURL=readMigrationFiles.d.ts.map

View File

@@ -0,0 +1 @@
function r(e){var o,t,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=" "),f+=t)}else for(t in e)e[t]&&(f&&(f+=" "),f+=t);return f}function e(){for(var e,o,t=0,f="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=" "),f+=o);return f}module.exports=e,module.exports.clsx=e;

View File

@@ -0,0 +1,7 @@
import type { RawTable } from '../../types.js';
import type { BasePostgresAdapter } from '../types.js';
export declare const buildDrizzleTable: ({ adapter, rawTable, }: {
adapter: BasePostgresAdapter;
rawTable: RawTable;
}) => void;
//# sourceMappingURL=buildDrizzleTable.d.ts.map

View File

@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const ChartBar = createLucideIcon("ChartBar", [
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
["path", { d: "M7 16h8", key: "srdodz" }],
["path", { d: "M7 11h12", key: "127s9w" }],
["path", { d: "M7 6h3", key: "w9rmul" }]
]);
export { ChartBar as default };
//# sourceMappingURL=chart-bar.js.map

View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaXMtbmV2ZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIElzTmV2ZXI8VHlwZT4gPSBbVHlwZV0gZXh0ZW5kcyBbbmV2ZXJdID8gdHJ1ZSA6IGZhbHNlO1xuIl19

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/database/combineQueries.ts"],"sourcesContent":["import type { Where } from '../types/index.js'\n\nimport { hasWhereAccessResult } from '../auth/index.js'\n\n/**\n * Combines two queries into a single query, using an AND operator\n */\nexport const combineQueries = (where: Where, access: boolean | Where): Where => {\n if (!where && !access) {\n return {}\n }\n\n const and: Where[] = where ? [where] : []\n\n if (hasWhereAccessResult(access)) {\n and.push(access)\n }\n\n return {\n and,\n }\n}\n"],"names":["hasWhereAccessResult","combineQueries","where","access","and","push"],"mappings":"AAEA,SAASA,oBAAoB,QAAQ,mBAAkB;AAEvD;;CAEC,GACD,OAAO,MAAMC,iBAAiB,CAACC,OAAcC;IAC3C,IAAI,CAACD,SAAS,CAACC,QAAQ;QACrB,OAAO,CAAC;IACV;IAEA,MAAMC,MAAeF,QAAQ;QAACA;KAAM,GAAG,EAAE;IAEzC,IAAIF,qBAAqBG,SAAS;QAChCC,IAAIC,IAAI,CAACF;IACX;IAEA,OAAO;QACLC;IACF;AACF,EAAC"}

View File

@@ -0,0 +1,141 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern = /^(\d+)(º)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(q|w)/i,
abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,
wide: /^(qabel kristu|before common era|wara kristu|common era)/i,
};
const parseEraPatterns = {
any: [/^(q|b)/i, /^(w|c)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^k[1234]/i,
wide: /^[1234](\.)? kwart/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^[jfmaglsond]/i,
abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,
wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^ġ/i,
/^l/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^mej/i,
/^ġ/i,
/^l/i,
/^aw/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[ħteġs]/i,
short: /^(ħa|tn|tl|er|ħa|ġi|si)/i,
abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i,
wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i,
};
const parseDayPatterns = {
narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i],
any: [
/^(il-)?ħad/i,
/^(it-)?tn/i,
/^(it-)?tl/i,
/^(l-)?er/i,
/^(il-)?ham/i,
/^(il-)?ġi/i,
/^(is-)?si/i,
],
};
const matchDayPeriodPatterns = {
narrow:
/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,
any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^f'nofsillejl/i,
noon: /^f'nofsinhar/i,
morning: /għodwa/i,
afternoon: /wara(\s.*)nofsinhar/i,
evening: /filgħaxija/i,
night: /lejl/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};

View File

@@ -0,0 +1,6 @@
/**
* This is a shim for the Statsig integration.
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
*/
export declare const statsigIntegrationShim: (_options?: unknown) => import("@sentry/core").Integration;
//# sourceMappingURL=statsig.d.ts.map

View File

@@ -0,0 +1,6 @@
export var errorUtil;
(function (errorUtil) {
errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
// biome-ignore lint:
errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
})(errorUtil || (errorUtil = {}));

View File

@@ -0,0 +1,10 @@
import React from 'react';
import './index.scss';
/**
* @internal
*/
export declare const NavWrapper: React.FC<{
baseClass?: string;
children: React.ReactNode;
}>;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
module.exports={C:{"5":0.00387,"45":0.00387,"52":0.03482,"84":0.03869,"88":0.00774,"89":0.00387,"96":0.00387,"100":0.00387,"102":0.00387,"103":0.00387,"104":0.00387,"108":0.00387,"113":0.00387,"115":0.41785,"121":0.00387,"124":0.00387,"125":0.02708,"127":0.00387,"128":0.01548,"131":0.00387,"132":0.00387,"134":0.00774,"135":0.00387,"136":0.01161,"137":0.01548,"138":0.00774,"139":0.00387,"140":0.12768,"141":0.00774,"142":0.02321,"143":0.02708,"144":0.04643,"145":1.09493,"146":1.32707,"147":0.00387,_:"2 3 4 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 46 47 48 49 50 51 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 85 86 87 90 91 92 93 94 95 97 98 99 101 105 106 107 109 110 111 112 114 116 117 118 119 120 122 123 126 129 130 133 148 149 3.5 3.6"},D:{"32":0.00774,"39":0.01935,"40":0.01935,"41":0.03869,"42":0.01935,"43":0.01935,"44":0.01935,"45":0.01935,"46":0.01935,"47":0.01935,"48":0.01935,"49":0.02708,"50":0.01935,"51":0.01935,"52":0.01935,"53":0.01935,"54":0.01935,"55":0.01935,"56":0.01935,"57":0.01935,"58":0.01935,"59":0.01935,"60":0.01935,"69":0.00387,"79":0.01161,"81":0.00387,"83":0.00387,"85":0.00387,"87":0.01935,"88":0.00387,"90":0.00387,"91":0.03095,"93":0.00387,"94":0.00387,"95":0.00387,"97":0.00387,"98":3.56722,"99":0.00387,"100":0.00774,"102":0.00774,"103":0.02321,"104":0.04256,"105":0.01548,"106":0.01935,"107":0.01548,"108":0.02708,"109":1.33867,"110":0.01548,"111":0.03869,"112":0.78154,"114":0.01161,"115":0.00387,"116":0.05804,"117":0.01548,"118":0.00774,"119":0.01161,"120":0.03869,"121":0.03482,"122":0.04256,"123":0.01161,"124":0.06577,"125":0.06964,"126":0.25535,"127":0.00774,"128":0.03095,"129":0.01161,"130":0.02321,"131":0.06577,"132":0.02708,"133":0.04643,"134":0.02708,"135":0.03869,"136":0.02321,"137":0.04643,"138":0.11607,"139":0.10059,"140":0.08899,"141":0.34821,"142":6.93325,"143":9.97815,"144":0.00387,"145":0.00387,_:"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 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 80 84 86 89 92 96 101 113 146"},F:{"46":0.00387,"85":0.00387,"86":0.00387,"90":0.00774,"92":0.00387,"93":0.04256,"95":0.04643,"122":0.00774,"123":0.02321,"124":0.79315,"125":0.25149,_:"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 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 87 88 89 91 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.04256,"131":0.00387,"132":0.00387,"133":0.00387,"134":0.00387,"135":0.00387,"136":0.00387,"137":0.00387,"138":0.00774,"139":0.00774,"140":0.00774,"141":0.02321,"142":0.8241,"143":1.90355,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.4 16.5 17.0 26.3","13.1":0.00387,"14.1":0.01161,"15.6":0.01935,"16.0":0.00387,"16.3":0.00387,"16.6":0.03095,"17.1":0.02708,"17.2":0.00387,"17.3":0.00387,"17.4":0.00387,"17.5":0.00387,"17.6":0.04643,"18.0":0.00387,"18.1":0.00774,"18.2":0.00387,"18.3":0.01161,"18.4":0.00387,"18.5-18.6":0.03095,"26.0":0.01548,"26.1":0.13155,"26.2":0.03482},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00213,"5.0-5.1":0,"6.0-6.1":0.00425,"7.0-7.1":0.00319,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00851,"10.0-10.2":0.00106,"10.3":0.01489,"11.0-11.2":0.18296,"11.3-11.4":0.00532,"12.0-12.1":0.00425,"12.2-12.5":0.04787,"13.0-13.1":0.00106,"13.2":0.00745,"13.3":0.00213,"13.4-13.7":0.00745,"14.0-14.4":0.01489,"14.5-14.8":0.01596,"15.0-15.1":0.01702,"15.2-15.3":0.01276,"15.4":0.01383,"15.5":0.01489,"15.6-15.8":0.23083,"16.0":0.02659,"16.1":0.05106,"16.2":0.02659,"16.3":0.04787,"16.4":0.0117,"16.5":0.02021,"16.6-16.7":0.29997,"17.0":0.01702,"17.1":0.02766,"17.2":0.02021,"17.3":0.03085,"17.4":0.05212,"17.5":0.10212,"17.6-17.7":0.23615,"18.0":0.05319,"18.1":0.11063,"18.2":0.05851,"18.3":0.19041,"18.4":0.09786,"18.5-18.7":7.02699,"26.0":0.13722,"26.1":1.14138,"26.2":0.217,"26.3":0.00957},P:{"21":0.01027,"22":0.02054,"23":0.05135,"24":0.03081,"25":0.03081,"26":0.03081,"27":0.09243,"28":0.21567,"29":2.77288,_:"4 20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.0857,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},A:{"11":0.02321,_:"6 7 8 9 10 5.5"},K:{"0":0.26363,_:"10 11 12 11.1 11.5 12.1"},N:{_:"10 11"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},Q:{_:"14.9"},O:{"0":0.01226},H:{"0":0},L:{"0":51.50458},R:{_:"0"},M:{"0":0.2575}};

View File

@@ -0,0 +1,33 @@
var isFunction = require('./isFunction'),
isLength = require('./isLength');
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && isLength(value.length) && !isFunction(value);
}
module.exports = isArrayLike;

View File

@@ -0,0 +1,18 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=tracer_options.js.map

View File

@@ -0,0 +1,90 @@
import type { WatchEventType, Stats, FSWatcher as NativeFsWatcher } from 'fs';
import type { FSWatcher, WatchHelper, Throttler } from './index.js';
import type { EntryInfo } from 'readdirp';
export type Path = string;
export declare const STR_DATA = "data";
export declare const STR_END = "end";
export declare const STR_CLOSE = "close";
export declare const EMPTY_FN: () => void;
export declare const IDENTITY_FN: (val: unknown) => unknown;
export declare const isWindows: boolean;
export declare const isMacos: boolean;
export declare const isLinux: boolean;
export declare const isFreeBSD: boolean;
export declare const isIBMi: boolean;
export declare const EVENTS: {
readonly ALL: "all";
readonly READY: "ready";
readonly ADD: "add";
readonly CHANGE: "change";
readonly ADD_DIR: "addDir";
readonly UNLINK: "unlink";
readonly UNLINK_DIR: "unlinkDir";
readonly RAW: "raw";
readonly ERROR: "error";
};
export type EventName = (typeof EVENTS)[keyof typeof EVENTS];
export type FsWatchContainer = {
listeners: (path: string) => void | Set<any>;
errHandlers: (err: unknown) => void | Set<any>;
rawEmitters: (ev: WatchEventType, path: string, opts: unknown) => void | Set<any>;
watcher: NativeFsWatcher;
watcherUnusable?: boolean;
};
export interface WatchHandlers {
listener: (path: string) => void;
errHandler: (err: unknown) => void;
rawEmitter: (ev: WatchEventType, path: string, opts: unknown) => void;
}
/**
* @mixin
*/
export declare class NodeFsHandler {
fsw: FSWatcher;
_boundHandleError: (error: unknown) => void;
constructor(fsW: FSWatcher);
/**
* Watch file for changes with fs_watchFile or fs_watch.
* @param path to file or dir
* @param listener on fs change
* @returns closer for the watcher instance
*/
_watchWithNodeFs(path: string, listener: (path: string, newStats?: any) => void | Promise<void>): (() => void) | undefined;
/**
* Watch a file and emit add event if warranted.
* @returns closer for the watcher instance
*/
_handleFile(file: Path, stats: Stats, initialAdd: boolean): (() => void) | undefined;
/**
* Handle symlinks encountered while reading a dir.
* @param entry returned by readdirp
* @param directory path of dir being read
* @param path of this item
* @param item basename of this item
* @returns true if no more processing is needed for this entry.
*/
_handleSymlink(entry: EntryInfo, directory: string, path: Path, item: string): Promise<boolean | undefined>;
_handleRead(directory: string, initialAdd: boolean, wh: WatchHelper, target: Path, dir: Path, depth: number, throttler: Throttler): Promise<unknown> | undefined;
/**
* Read directory to add / remove files from `@watched` list and re-read it on change.
* @param dir fs path
* @param stats
* @param initialAdd
* @param depth relative to user-supplied path
* @param target child path targeted for watch
* @param wh Common watch helpers for this path
* @param realpath
* @returns closer for the watcher instance.
*/
_handleDir(dir: string, stats: Stats, initialAdd: boolean, depth: number, target: string, wh: WatchHelper, realpath: string): Promise<(() => void) | undefined>;
/**
* Handle added file, directory, or glob pattern.
* Delegates call to _handleFile / _handleDir after checks.
* @param path to file or ir
* @param initialAdd was the file added at watch instantiation?
* @param priorWh depth relative to user-supplied path
* @param depth Child path actually targeted for watch
* @param target Child path actually targeted for watch
*/
_addToNodeFs(path: string, initialAdd: boolean, priorWh: WatchHelper | undefined, depth: number, target?: string): Promise<string | false | undefined>;
}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/queues/errors/calculateBackoffWaitUntil.ts"],"sourcesContent":["import type { RetryConfig } from '../config/types/taskTypes.js'\n\nimport { getCurrentDate } from '../utilities/getCurrentDate.js'\n\nexport function calculateBackoffWaitUntil({\n retriesConfig,\n totalTried,\n}: {\n retriesConfig: number | RetryConfig\n totalTried: number\n}): Date {\n let waitUntil: Date = getCurrentDate()\n if (typeof retriesConfig === 'object') {\n if (retriesConfig.backoff) {\n if (retriesConfig.backoff.type === 'fixed') {\n waitUntil = retriesConfig.backoff.delay\n ? new Date(getCurrentDate().getTime() + retriesConfig.backoff.delay)\n : getCurrentDate()\n } else if (retriesConfig.backoff.type === 'exponential') {\n // 2 ^ (attempts - 1) * delay (current attempt is not included in totalTried, thus no need for -1)\n const delay = retriesConfig.backoff.delay ? retriesConfig.backoff.delay : 0\n waitUntil = new Date(getCurrentDate().getTime() + Math.pow(2, totalTried) * delay)\n }\n }\n }\n\n /*\n const differenceInMSBetweenNowAndWaitUntil = waitUntil.getTime() - getCurrentDate().getTime()\n\n const differenceInSBetweenNowAndWaitUntil = differenceInMSBetweenNowAndWaitUntil / 1000\n console.log('Calculated backoff', {\n differenceInMSBetweenNowAndWaitUntil,\n differenceInSBetweenNowAndWaitUntil,\n retriesConfig,\n totalTried,\n })*/\n return waitUntil\n}\n"],"names":["getCurrentDate","calculateBackoffWaitUntil","retriesConfig","totalTried","waitUntil","backoff","type","delay","Date","getTime","Math","pow"],"mappings":"AAEA,SAASA,cAAc,QAAQ,iCAAgC;AAE/D,OAAO,SAASC,0BAA0B,EACxCC,aAAa,EACbC,UAAU,EAIX;IACC,IAAIC,YAAkBJ;IACtB,IAAI,OAAOE,kBAAkB,UAAU;QACrC,IAAIA,cAAcG,OAAO,EAAE;YACzB,IAAIH,cAAcG,OAAO,CAACC,IAAI,KAAK,SAAS;gBAC1CF,YAAYF,cAAcG,OAAO,CAACE,KAAK,GACnC,IAAIC,KAAKR,iBAAiBS,OAAO,KAAKP,cAAcG,OAAO,CAACE,KAAK,IACjEP;YACN,OAAO,IAAIE,cAAcG,OAAO,CAACC,IAAI,KAAK,eAAe;gBACvD,kGAAkG;gBAClG,MAAMC,QAAQL,cAAcG,OAAO,CAACE,KAAK,GAAGL,cAAcG,OAAO,CAACE,KAAK,GAAG;gBAC1EH,YAAY,IAAII,KAAKR,iBAAiBS,OAAO,KAAKC,KAAKC,GAAG,CAAC,GAAGR,cAAcI;YAC9E;QACF;IACF;IAEA;;;;;;;;;IASE,GACF,OAAOH;AACT"}

View File

@@ -0,0 +1,53 @@
"use strict";
exports.startOfWeek = startOfWeek;
var _index = require("./_lib/defaultOptions.cjs");
var _index2 = require("./toDate.cjs");
/**
* The {@link startOfWeek} function options.
*/
/**
* @name startOfWeek
* @category Week Helpers
* @summary Return the start of a week for the given date.
*
* @description
* Return the start of a week for the given date.
* The result will be in the local timezone.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The original date
* @param options - An object with options
*
* @returns The start of a week
*
* @example
* // The start of a week for 2 September 2014 11:55:00:
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
* //=> Sun Aug 31 2014 00:00:00
*
* @example
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
* //=> Mon Sep 01 2014 00:00:00
*/
function startOfWeek(date, options) {
const defaultOptions = (0, _index.getDefaultOptions)();
const weekStartsOn =
options?.weekStartsOn ??
options?.locale?.options?.weekStartsOn ??
defaultOptions.weekStartsOn ??
defaultOptions.locale?.options?.weekStartsOn ??
0;
const _date = (0, _index2.toDate)(date, options?.in);
const day = _date.getDay();
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
_date.setDate(_date.getDate() - diff);
_date.setHours(0, 0, 0, 0);
return _date;
}

View File

@@ -0,0 +1,6 @@
function _iterable_to_array(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
return Array.from(iter);
}
}
export { _iterable_to_array as _ };

View File

@@ -0,0 +1,11 @@
@import '../../scss/styles';
@layer payload-default {
.icon--people {
.stroke {
stroke: currentColor;
stroke-width: $style-stroke-width;
fill: none;
}
}
}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/pg-core/sequence.ts"],"sourcesContent":["import { entityKind, is } from '~/entity.ts';\n\nexport type PgSequenceOptions = {\n\tincrement?: number | string;\n\tminValue?: number | string;\n\tmaxValue?: number | string;\n\tstartWith?: number | string;\n\tcache?: number | string;\n\tcycle?: boolean;\n};\n\nexport class PgSequence {\n\tstatic readonly [entityKind]: string = 'PgSequence';\n\n\tconstructor(\n\t\tpublic readonly seqName: string | undefined,\n\t\tpublic readonly seqOptions: PgSequenceOptions | undefined,\n\t\tpublic readonly schema: string | undefined,\n\t) {\n\t}\n}\n\nexport function pgSequence(\n\tname: string,\n\toptions?: PgSequenceOptions,\n): PgSequence {\n\treturn pgSequenceWithSchema(name, options, undefined);\n}\n\n/** @internal */\nexport function pgSequenceWithSchema(\n\tname: string,\n\toptions?: PgSequenceOptions,\n\tschema?: string,\n): PgSequence {\n\treturn new PgSequence(name, options, schema);\n}\n\nexport function isPgSequence(obj: unknown): obj is PgSequence {\n\treturn is(obj, PgSequence);\n}\n"],"mappings":"AAAA,SAAS,YAAY,UAAU;AAWxB,MAAM,WAAW;AAAA,EAGvB,YACiB,SACA,YACA,QACf;AAHe;AACA;AACA;AAAA,EAEjB;AAAA,EAPA,QAAiB,UAAU,IAAY;AAQxC;AAEO,SAAS,WACf,MACA,SACa;AACb,SAAO,qBAAqB,MAAM,SAAS,MAAS;AACrD;AAGO,SAAS,qBACf,MACA,SACA,QACa;AACb,SAAO,IAAI,WAAW,MAAM,SAAS,MAAM;AAC5C;AAEO,SAAS,aAAa,KAAiC;AAC7D,SAAO,GAAG,KAAK,UAAU;AAC1B;","names":[]}

View File

@@ -0,0 +1,330 @@
/**
* @license React
* scheduler.native.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
function push(heap, node) {
var index = heap.length;
heap.push(node);
a: for (; 0 < index; ) {
var parentIndex = (index - 1) >>> 1,
parent = heap[parentIndex];
if (0 < compare(parent, node))
(heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);
else break a;
}
}
function peek(heap) {
return 0 === heap.length ? null : heap[0];
}
function pop(heap) {
if (0 === heap.length) return null;
var first = heap[0],
last = heap.pop();
if (last !== first) {
heap[0] = last;
a: for (
var index = 0, length = heap.length, halfLength = length >>> 1;
index < halfLength;
) {
var leftIndex = 2 * (index + 1) - 1,
left = heap[leftIndex],
rightIndex = leftIndex + 1,
right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left)
? ((heap[index] = right),
(heap[rightIndex] = last),
(index = rightIndex))
: ((heap[index] = left),
(heap[leftIndex] = last),
(index = leftIndex));
else if (rightIndex < length && 0 > compare(right, last))
(heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);
else break a;
}
}
return first;
}
function compare(a, b) {
var diff = a.sortIndex - b.sortIndex;
return 0 !== diff ? diff : a.id - b.id;
}
var getCurrentTime;
if ("object" === typeof performance && "function" === typeof performance.now) {
var localPerformance = performance;
getCurrentTime = function () {
return localPerformance.now();
};
} else {
var localDate = Date,
initialTime = localDate.now();
getCurrentTime = function () {
return localDate.now() - initialTime;
};
}
var taskQueue = [],
timerQueue = [],
taskIdCounter = 1,
currentTask = null,
currentPriorityLevel = 3,
isPerformingWork = !1,
isHostCallbackScheduled = !1,
isHostTimeoutScheduled = !1,
needsPaint = !1,
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,
localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null,
localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
function advanceTimers(currentTime) {
for (var timer = peek(timerQueue); null !== timer; ) {
if (null === timer.callback) pop(timerQueue);
else if (timer.startTime <= currentTime)
pop(timerQueue),
(timer.sortIndex = timer.expirationTime),
push(taskQueue, timer);
else break;
timer = peek(timerQueue);
}
}
function handleTimeout(currentTime) {
isHostTimeoutScheduled = !1;
advanceTimers(currentTime);
if (!isHostCallbackScheduled)
if (null !== peek(taskQueue))
(isHostCallbackScheduled = !0),
isMessageLoopRunning ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());
else {
var firstTimer = peek(timerQueue);
null !== firstTimer &&
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
}
}
function unstable_scheduleCallback$1(priorityLevel, callback, options) {
var currentTime = getCurrentTime();
"object" === typeof options && null !== options
? ((options = options.delay),
(options =
"number" === typeof options && 0 < options
? currentTime + options
: currentTime))
: (options = currentTime);
switch (priorityLevel) {
case 1:
var timeout = -1;
break;
case 2:
timeout = 250;
break;
case 5:
timeout = 1073741823;
break;
case 4:
timeout = 1e4;
break;
default:
timeout = 5e3;
}
timeout = options + timeout;
priorityLevel = {
id: taskIdCounter++,
callback: callback,
priorityLevel: priorityLevel,
startTime: options,
expirationTime: timeout,
sortIndex: -1
};
options > currentTime
? ((priorityLevel.sortIndex = options),
push(timerQueue, priorityLevel),
null === peek(taskQueue) &&
priorityLevel === peek(timerQueue) &&
(isHostTimeoutScheduled
? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))
: (isHostTimeoutScheduled = !0),
requestHostTimeout(handleTimeout, options - currentTime)))
: ((priorityLevel.sortIndex = timeout),
push(taskQueue, priorityLevel),
isHostCallbackScheduled ||
isPerformingWork ||
((isHostCallbackScheduled = !0),
isMessageLoopRunning ||
((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));
return priorityLevel;
}
function unstable_cancelCallback$1(task) {
task.callback = null;
}
function unstable_getCurrentPriorityLevel$1() {
return currentPriorityLevel;
}
var isMessageLoopRunning = !1,
taskTimeoutID = -1,
startTime = -1;
function shouldYieldToHost() {
return needsPaint ? !0 : 5 > getCurrentTime() - startTime ? !1 : !0;
}
function requestPaint() {
needsPaint = !0;
}
function performWorkUntilDeadline() {
needsPaint = !1;
if (isMessageLoopRunning) {
var currentTime = getCurrentTime();
startTime = currentTime;
var hasMoreWork = !0;
try {
a: {
isHostCallbackScheduled = !1;
isHostTimeoutScheduled &&
((isHostTimeoutScheduled = !1),
localClearTimeout(taskTimeoutID),
(taskTimeoutID = -1));
isPerformingWork = !0;
var previousPriorityLevel = currentPriorityLevel;
try {
b: {
advanceTimers(currentTime);
for (
currentTask = peek(taskQueue);
null !== currentTask &&
!(
currentTask.expirationTime > currentTime && shouldYieldToHost()
);
) {
var callback = currentTask.callback;
if ("function" === typeof callback) {
currentTask.callback = null;
currentPriorityLevel = currentTask.priorityLevel;
var continuationCallback = callback(
currentTask.expirationTime <= currentTime
);
currentTime = getCurrentTime();
if ("function" === typeof continuationCallback) {
currentTask.callback = continuationCallback;
advanceTimers(currentTime);
hasMoreWork = !0;
break b;
}
currentTask === peek(taskQueue) && pop(taskQueue);
advanceTimers(currentTime);
} else pop(taskQueue);
currentTask = peek(taskQueue);
}
if (null !== currentTask) hasMoreWork = !0;
else {
var firstTimer = peek(timerQueue);
null !== firstTimer &&
requestHostTimeout(
handleTimeout,
firstTimer.startTime - currentTime
);
hasMoreWork = !1;
}
}
break a;
} finally {
(currentTask = null),
(currentPriorityLevel = previousPriorityLevel),
(isPerformingWork = !1);
}
hasMoreWork = void 0;
}
} finally {
hasMoreWork
? schedulePerformWorkUntilDeadline()
: (isMessageLoopRunning = !1);
}
}
}
var schedulePerformWorkUntilDeadline;
if ("function" === typeof localSetImmediate)
schedulePerformWorkUntilDeadline = function () {
localSetImmediate(performWorkUntilDeadline);
};
else if ("undefined" !== typeof MessageChannel) {
var channel = new MessageChannel(),
port = channel.port2;
channel.port1.onmessage = performWorkUntilDeadline;
schedulePerformWorkUntilDeadline = function () {
port.postMessage(null);
};
} else
schedulePerformWorkUntilDeadline = function () {
localSetTimeout(performWorkUntilDeadline, 0);
};
function requestHostTimeout(callback, ms) {
taskTimeoutID = localSetTimeout(function () {
callback(getCurrentTime());
}, ms);
}
var unstable_UserBlockingPriority =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_UserBlockingPriority
: 2,
unstable_NormalPriority =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_NormalPriority
: 3,
unstable_LowPriority =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_LowPriority
: 4,
unstable_ImmediatePriority =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_ImmediatePriority
: 1,
unstable_scheduleCallback =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_scheduleCallback
: unstable_scheduleCallback$1,
unstable_cancelCallback =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_cancelCallback
: unstable_cancelCallback$1,
unstable_getCurrentPriorityLevel =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_getCurrentPriorityLevel
: unstable_getCurrentPriorityLevel$1,
unstable_shouldYield =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_shouldYield
: shouldYieldToHost,
unstable_requestPaint =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_requestPaint
: requestPaint,
unstable_now =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_now
: getCurrentTime;
function throwNotImplemented() {
throw Error("Not implemented.");
}
exports.unstable_IdlePriority =
"undefined" !== typeof nativeRuntimeScheduler
? nativeRuntimeScheduler.unstable_IdlePriority
: 5;
exports.unstable_ImmediatePriority = unstable_ImmediatePriority;
exports.unstable_LowPriority = unstable_LowPriority;
exports.unstable_NormalPriority = unstable_NormalPriority;
exports.unstable_Profiling = null;
exports.unstable_UserBlockingPriority = unstable_UserBlockingPriority;
exports.unstable_cancelCallback = unstable_cancelCallback;
exports.unstable_forceFrameRate = throwNotImplemented;
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_next = throwNotImplemented;
exports.unstable_now = unstable_now;
exports.unstable_requestPaint = unstable_requestPaint;
exports.unstable_runWithPriority = throwNotImplemented;
exports.unstable_scheduleCallback = unstable_scheduleCallback;
exports.unstable_shouldYield = unstable_shouldYield;
exports.unstable_wrapCallback = throwNotImplemented;

View File

@@ -0,0 +1,60 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const makeSerializable = require("../util/makeSerializable");
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
class LocalModule {
/**
* @param {string} name name
* @param {number} idx index
*/
constructor(name, idx) {
this.name = name;
this.idx = idx;
this.used = false;
}
flagUsed() {
this.used = true;
}
/**
* @returns {string} variable name
*/
variableName() {
return `__WEBPACK_LOCAL_MODULE_${this.idx}__`;
}
/**
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
const { write } = context;
write(this.name);
write(this.idx);
write(this.used);
}
/**
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
const { read } = context;
this.name = read();
this.idx = read();
this.used = read();
}
}
makeSerializable(LocalModule, "webpack/lib/dependencies/LocalModule");
module.exports = LocalModule;

View File

@@ -0,0 +1,694 @@
{
"name": "@swc/helpers",
"version": "0.5.18",
"description": "External helpers for the swc project.",
"module": "esm/index.js",
"main": "cjs/index.cjs",
"sideEffects": false,
"scripts": {
"build": "zx ./scripts/build.js",
"prepack": "zx ./scripts/build.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"keywords": [
"swc",
"helpers"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"homepage": "https://swc.rs",
"type": "module",
"devDependencies": {
"@ast-grep/napi": "^0.3.1",
"dprint": "^0.35.3",
"magic-string": "^0.30.0",
"zx": "^7.2.1"
},
"dependencies": {
"tslib": "^2.8.0"
},
"exports": {
"./package.json": "./package.json",
"./esm/*": "./esm/*",
"./cjs/*": "./cjs/*",
"./src/*": "./src/*",
".": {
"module-sync": "./esm/index.js",
"webpack": "./esm/index.js",
"import": "./esm/index.js",
"default": "./cjs/index.cjs"
},
"./_": {
"module-sync": "./esm/index.js",
"webpack": "./esm/index.js",
"import": "./esm/index.js",
"default": "./cjs/index.cjs"
},
"./_/_apply_decorated_descriptor": {
"module-sync": "./esm/_apply_decorated_descriptor.js",
"webpack": "./esm/_apply_decorated_descriptor.js",
"import": "./esm/_apply_decorated_descriptor.js",
"default": "./cjs/_apply_decorated_descriptor.cjs"
},
"./_/_apply_decs_2203_r": {
"module-sync": "./esm/_apply_decs_2203_r.js",
"webpack": "./esm/_apply_decs_2203_r.js",
"import": "./esm/_apply_decs_2203_r.js",
"default": "./cjs/_apply_decs_2203_r.cjs"
},
"./_/_array_like_to_array": {
"module-sync": "./esm/_array_like_to_array.js",
"webpack": "./esm/_array_like_to_array.js",
"import": "./esm/_array_like_to_array.js",
"default": "./cjs/_array_like_to_array.cjs"
},
"./_/_array_with_holes": {
"module-sync": "./esm/_array_with_holes.js",
"webpack": "./esm/_array_with_holes.js",
"import": "./esm/_array_with_holes.js",
"default": "./cjs/_array_with_holes.cjs"
},
"./_/_array_without_holes": {
"module-sync": "./esm/_array_without_holes.js",
"webpack": "./esm/_array_without_holes.js",
"import": "./esm/_array_without_holes.js",
"default": "./cjs/_array_without_holes.cjs"
},
"./_/_assert_this_initialized": {
"module-sync": "./esm/_assert_this_initialized.js",
"webpack": "./esm/_assert_this_initialized.js",
"import": "./esm/_assert_this_initialized.js",
"default": "./cjs/_assert_this_initialized.cjs"
},
"./_/_async_generator": {
"module-sync": "./esm/_async_generator.js",
"webpack": "./esm/_async_generator.js",
"import": "./esm/_async_generator.js",
"default": "./cjs/_async_generator.cjs"
},
"./_/_async_generator_delegate": {
"module-sync": "./esm/_async_generator_delegate.js",
"webpack": "./esm/_async_generator_delegate.js",
"import": "./esm/_async_generator_delegate.js",
"default": "./cjs/_async_generator_delegate.cjs"
},
"./_/_async_iterator": {
"module-sync": "./esm/_async_iterator.js",
"webpack": "./esm/_async_iterator.js",
"import": "./esm/_async_iterator.js",
"default": "./cjs/_async_iterator.cjs"
},
"./_/_async_to_generator": {
"module-sync": "./esm/_async_to_generator.js",
"webpack": "./esm/_async_to_generator.js",
"import": "./esm/_async_to_generator.js",
"default": "./cjs/_async_to_generator.cjs"
},
"./_/_await_async_generator": {
"module-sync": "./esm/_await_async_generator.js",
"webpack": "./esm/_await_async_generator.js",
"import": "./esm/_await_async_generator.js",
"default": "./cjs/_await_async_generator.cjs"
},
"./_/_await_value": {
"module-sync": "./esm/_await_value.js",
"webpack": "./esm/_await_value.js",
"import": "./esm/_await_value.js",
"default": "./cjs/_await_value.cjs"
},
"./_/_call_super": {
"module-sync": "./esm/_call_super.js",
"webpack": "./esm/_call_super.js",
"import": "./esm/_call_super.js",
"default": "./cjs/_call_super.cjs"
},
"./_/_check_private_redeclaration": {
"module-sync": "./esm/_check_private_redeclaration.js",
"webpack": "./esm/_check_private_redeclaration.js",
"import": "./esm/_check_private_redeclaration.js",
"default": "./cjs/_check_private_redeclaration.cjs"
},
"./_/_class_apply_descriptor_destructure": {
"module-sync": "./esm/_class_apply_descriptor_destructure.js",
"webpack": "./esm/_class_apply_descriptor_destructure.js",
"import": "./esm/_class_apply_descriptor_destructure.js",
"default": "./cjs/_class_apply_descriptor_destructure.cjs"
},
"./_/_class_apply_descriptor_get": {
"module-sync": "./esm/_class_apply_descriptor_get.js",
"webpack": "./esm/_class_apply_descriptor_get.js",
"import": "./esm/_class_apply_descriptor_get.js",
"default": "./cjs/_class_apply_descriptor_get.cjs"
},
"./_/_class_apply_descriptor_set": {
"module-sync": "./esm/_class_apply_descriptor_set.js",
"webpack": "./esm/_class_apply_descriptor_set.js",
"import": "./esm/_class_apply_descriptor_set.js",
"default": "./cjs/_class_apply_descriptor_set.cjs"
},
"./_/_class_apply_descriptor_update": {
"module-sync": "./esm/_class_apply_descriptor_update.js",
"webpack": "./esm/_class_apply_descriptor_update.js",
"import": "./esm/_class_apply_descriptor_update.js",
"default": "./cjs/_class_apply_descriptor_update.cjs"
},
"./_/_class_call_check": {
"module-sync": "./esm/_class_call_check.js",
"webpack": "./esm/_class_call_check.js",
"import": "./esm/_class_call_check.js",
"default": "./cjs/_class_call_check.cjs"
},
"./_/_class_check_private_static_access": {
"module-sync": "./esm/_class_check_private_static_access.js",
"webpack": "./esm/_class_check_private_static_access.js",
"import": "./esm/_class_check_private_static_access.js",
"default": "./cjs/_class_check_private_static_access.cjs"
},
"./_/_class_check_private_static_field_descriptor": {
"module-sync": "./esm/_class_check_private_static_field_descriptor.js",
"webpack": "./esm/_class_check_private_static_field_descriptor.js",
"import": "./esm/_class_check_private_static_field_descriptor.js",
"default": "./cjs/_class_check_private_static_field_descriptor.cjs"
},
"./_/_class_extract_field_descriptor": {
"module-sync": "./esm/_class_extract_field_descriptor.js",
"webpack": "./esm/_class_extract_field_descriptor.js",
"import": "./esm/_class_extract_field_descriptor.js",
"default": "./cjs/_class_extract_field_descriptor.cjs"
},
"./_/_class_name_tdz_error": {
"module-sync": "./esm/_class_name_tdz_error.js",
"webpack": "./esm/_class_name_tdz_error.js",
"import": "./esm/_class_name_tdz_error.js",
"default": "./cjs/_class_name_tdz_error.cjs"
},
"./_/_class_private_field_destructure": {
"module-sync": "./esm/_class_private_field_destructure.js",
"webpack": "./esm/_class_private_field_destructure.js",
"import": "./esm/_class_private_field_destructure.js",
"default": "./cjs/_class_private_field_destructure.cjs"
},
"./_/_class_private_field_get": {
"module-sync": "./esm/_class_private_field_get.js",
"webpack": "./esm/_class_private_field_get.js",
"import": "./esm/_class_private_field_get.js",
"default": "./cjs/_class_private_field_get.cjs"
},
"./_/_class_private_field_init": {
"module-sync": "./esm/_class_private_field_init.js",
"webpack": "./esm/_class_private_field_init.js",
"import": "./esm/_class_private_field_init.js",
"default": "./cjs/_class_private_field_init.cjs"
},
"./_/_class_private_field_loose_base": {
"module-sync": "./esm/_class_private_field_loose_base.js",
"webpack": "./esm/_class_private_field_loose_base.js",
"import": "./esm/_class_private_field_loose_base.js",
"default": "./cjs/_class_private_field_loose_base.cjs"
},
"./_/_class_private_field_loose_key": {
"module-sync": "./esm/_class_private_field_loose_key.js",
"webpack": "./esm/_class_private_field_loose_key.js",
"import": "./esm/_class_private_field_loose_key.js",
"default": "./cjs/_class_private_field_loose_key.cjs"
},
"./_/_class_private_field_set": {
"module-sync": "./esm/_class_private_field_set.js",
"webpack": "./esm/_class_private_field_set.js",
"import": "./esm/_class_private_field_set.js",
"default": "./cjs/_class_private_field_set.cjs"
},
"./_/_class_private_field_update": {
"module-sync": "./esm/_class_private_field_update.js",
"webpack": "./esm/_class_private_field_update.js",
"import": "./esm/_class_private_field_update.js",
"default": "./cjs/_class_private_field_update.cjs"
},
"./_/_class_private_method_get": {
"module-sync": "./esm/_class_private_method_get.js",
"webpack": "./esm/_class_private_method_get.js",
"import": "./esm/_class_private_method_get.js",
"default": "./cjs/_class_private_method_get.cjs"
},
"./_/_class_private_method_init": {
"module-sync": "./esm/_class_private_method_init.js",
"webpack": "./esm/_class_private_method_init.js",
"import": "./esm/_class_private_method_init.js",
"default": "./cjs/_class_private_method_init.cjs"
},
"./_/_class_private_method_set": {
"module-sync": "./esm/_class_private_method_set.js",
"webpack": "./esm/_class_private_method_set.js",
"import": "./esm/_class_private_method_set.js",
"default": "./cjs/_class_private_method_set.cjs"
},
"./_/_class_static_private_field_destructure": {
"module-sync": "./esm/_class_static_private_field_destructure.js",
"webpack": "./esm/_class_static_private_field_destructure.js",
"import": "./esm/_class_static_private_field_destructure.js",
"default": "./cjs/_class_static_private_field_destructure.cjs"
},
"./_/_class_static_private_field_spec_get": {
"module-sync": "./esm/_class_static_private_field_spec_get.js",
"webpack": "./esm/_class_static_private_field_spec_get.js",
"import": "./esm/_class_static_private_field_spec_get.js",
"default": "./cjs/_class_static_private_field_spec_get.cjs"
},
"./_/_class_static_private_field_spec_set": {
"module-sync": "./esm/_class_static_private_field_spec_set.js",
"webpack": "./esm/_class_static_private_field_spec_set.js",
"import": "./esm/_class_static_private_field_spec_set.js",
"default": "./cjs/_class_static_private_field_spec_set.cjs"
},
"./_/_class_static_private_field_update": {
"module-sync": "./esm/_class_static_private_field_update.js",
"webpack": "./esm/_class_static_private_field_update.js",
"import": "./esm/_class_static_private_field_update.js",
"default": "./cjs/_class_static_private_field_update.cjs"
},
"./_/_class_static_private_method_get": {
"module-sync": "./esm/_class_static_private_method_get.js",
"webpack": "./esm/_class_static_private_method_get.js",
"import": "./esm/_class_static_private_method_get.js",
"default": "./cjs/_class_static_private_method_get.cjs"
},
"./_/_construct": {
"module-sync": "./esm/_construct.js",
"webpack": "./esm/_construct.js",
"import": "./esm/_construct.js",
"default": "./cjs/_construct.cjs"
},
"./_/_create_class": {
"module-sync": "./esm/_create_class.js",
"webpack": "./esm/_create_class.js",
"import": "./esm/_create_class.js",
"default": "./cjs/_create_class.cjs"
},
"./_/_create_for_of_iterator_helper_loose": {
"module-sync": "./esm/_create_for_of_iterator_helper_loose.js",
"webpack": "./esm/_create_for_of_iterator_helper_loose.js",
"import": "./esm/_create_for_of_iterator_helper_loose.js",
"default": "./cjs/_create_for_of_iterator_helper_loose.cjs"
},
"./_/_create_super": {
"module-sync": "./esm/_create_super.js",
"webpack": "./esm/_create_super.js",
"import": "./esm/_create_super.js",
"default": "./cjs/_create_super.cjs"
},
"./_/_decorate": {
"module-sync": "./esm/_decorate.js",
"webpack": "./esm/_decorate.js",
"import": "./esm/_decorate.js",
"default": "./cjs/_decorate.cjs"
},
"./_/_defaults": {
"module-sync": "./esm/_defaults.js",
"webpack": "./esm/_defaults.js",
"import": "./esm/_defaults.js",
"default": "./cjs/_defaults.cjs"
},
"./_/_define_enumerable_properties": {
"module-sync": "./esm/_define_enumerable_properties.js",
"webpack": "./esm/_define_enumerable_properties.js",
"import": "./esm/_define_enumerable_properties.js",
"default": "./cjs/_define_enumerable_properties.cjs"
},
"./_/_define_property": {
"module-sync": "./esm/_define_property.js",
"webpack": "./esm/_define_property.js",
"import": "./esm/_define_property.js",
"default": "./cjs/_define_property.cjs"
},
"./_/_dispose": {
"module-sync": "./esm/_dispose.js",
"webpack": "./esm/_dispose.js",
"import": "./esm/_dispose.js",
"default": "./cjs/_dispose.cjs"
},
"./_/_export_star": {
"module-sync": "./esm/_export_star.js",
"webpack": "./esm/_export_star.js",
"import": "./esm/_export_star.js",
"default": "./cjs/_export_star.cjs"
},
"./_/_extends": {
"module-sync": "./esm/_extends.js",
"webpack": "./esm/_extends.js",
"import": "./esm/_extends.js",
"default": "./cjs/_extends.cjs"
},
"./_/_get": {
"module-sync": "./esm/_get.js",
"webpack": "./esm/_get.js",
"import": "./esm/_get.js",
"default": "./cjs/_get.cjs"
},
"./_/_get_prototype_of": {
"module-sync": "./esm/_get_prototype_of.js",
"webpack": "./esm/_get_prototype_of.js",
"import": "./esm/_get_prototype_of.js",
"default": "./cjs/_get_prototype_of.cjs"
},
"./_/_identity": {
"module-sync": "./esm/_identity.js",
"webpack": "./esm/_identity.js",
"import": "./esm/_identity.js",
"default": "./cjs/_identity.cjs"
},
"./_/_inherits": {
"module-sync": "./esm/_inherits.js",
"webpack": "./esm/_inherits.js",
"import": "./esm/_inherits.js",
"default": "./cjs/_inherits.cjs"
},
"./_/_inherits_loose": {
"module-sync": "./esm/_inherits_loose.js",
"webpack": "./esm/_inherits_loose.js",
"import": "./esm/_inherits_loose.js",
"default": "./cjs/_inherits_loose.cjs"
},
"./_/_initializer_define_property": {
"module-sync": "./esm/_initializer_define_property.js",
"webpack": "./esm/_initializer_define_property.js",
"import": "./esm/_initializer_define_property.js",
"default": "./cjs/_initializer_define_property.cjs"
},
"./_/_initializer_warning_helper": {
"module-sync": "./esm/_initializer_warning_helper.js",
"webpack": "./esm/_initializer_warning_helper.js",
"import": "./esm/_initializer_warning_helper.js",
"default": "./cjs/_initializer_warning_helper.cjs"
},
"./_/_instanceof": {
"module-sync": "./esm/_instanceof.js",
"webpack": "./esm/_instanceof.js",
"import": "./esm/_instanceof.js",
"default": "./cjs/_instanceof.cjs"
},
"./_/_interop_require_default": {
"module-sync": "./esm/_interop_require_default.js",
"webpack": "./esm/_interop_require_default.js",
"import": "./esm/_interop_require_default.js",
"default": "./cjs/_interop_require_default.cjs"
},
"./_/_interop_require_wildcard": {
"module-sync": "./esm/_interop_require_wildcard.js",
"webpack": "./esm/_interop_require_wildcard.js",
"import": "./esm/_interop_require_wildcard.js",
"default": "./cjs/_interop_require_wildcard.cjs"
},
"./_/_is_native_function": {
"module-sync": "./esm/_is_native_function.js",
"webpack": "./esm/_is_native_function.js",
"import": "./esm/_is_native_function.js",
"default": "./cjs/_is_native_function.cjs"
},
"./_/_is_native_reflect_construct": {
"module-sync": "./esm/_is_native_reflect_construct.js",
"webpack": "./esm/_is_native_reflect_construct.js",
"import": "./esm/_is_native_reflect_construct.js",
"default": "./cjs/_is_native_reflect_construct.cjs"
},
"./_/_iterable_to_array": {
"module-sync": "./esm/_iterable_to_array.js",
"webpack": "./esm/_iterable_to_array.js",
"import": "./esm/_iterable_to_array.js",
"default": "./cjs/_iterable_to_array.cjs"
},
"./_/_iterable_to_array_limit": {
"module-sync": "./esm/_iterable_to_array_limit.js",
"webpack": "./esm/_iterable_to_array_limit.js",
"import": "./esm/_iterable_to_array_limit.js",
"default": "./cjs/_iterable_to_array_limit.cjs"
},
"./_/_iterable_to_array_limit_loose": {
"module-sync": "./esm/_iterable_to_array_limit_loose.js",
"webpack": "./esm/_iterable_to_array_limit_loose.js",
"import": "./esm/_iterable_to_array_limit_loose.js",
"default": "./cjs/_iterable_to_array_limit_loose.cjs"
},
"./_/_jsx": {
"module-sync": "./esm/_jsx.js",
"webpack": "./esm/_jsx.js",
"import": "./esm/_jsx.js",
"default": "./cjs/_jsx.cjs"
},
"./_/_new_arrow_check": {
"module-sync": "./esm/_new_arrow_check.js",
"webpack": "./esm/_new_arrow_check.js",
"import": "./esm/_new_arrow_check.js",
"default": "./cjs/_new_arrow_check.cjs"
},
"./_/_non_iterable_rest": {
"module-sync": "./esm/_non_iterable_rest.js",
"webpack": "./esm/_non_iterable_rest.js",
"import": "./esm/_non_iterable_rest.js",
"default": "./cjs/_non_iterable_rest.cjs"
},
"./_/_non_iterable_spread": {
"module-sync": "./esm/_non_iterable_spread.js",
"webpack": "./esm/_non_iterable_spread.js",
"import": "./esm/_non_iterable_spread.js",
"default": "./cjs/_non_iterable_spread.cjs"
},
"./_/_object_destructuring_empty": {
"module-sync": "./esm/_object_destructuring_empty.js",
"webpack": "./esm/_object_destructuring_empty.js",
"import": "./esm/_object_destructuring_empty.js",
"default": "./cjs/_object_destructuring_empty.cjs"
},
"./_/_object_spread": {
"module-sync": "./esm/_object_spread.js",
"webpack": "./esm/_object_spread.js",
"import": "./esm/_object_spread.js",
"default": "./cjs/_object_spread.cjs"
},
"./_/_object_spread_props": {
"module-sync": "./esm/_object_spread_props.js",
"webpack": "./esm/_object_spread_props.js",
"import": "./esm/_object_spread_props.js",
"default": "./cjs/_object_spread_props.cjs"
},
"./_/_object_without_properties": {
"module-sync": "./esm/_object_without_properties.js",
"webpack": "./esm/_object_without_properties.js",
"import": "./esm/_object_without_properties.js",
"default": "./cjs/_object_without_properties.cjs"
},
"./_/_object_without_properties_loose": {
"module-sync": "./esm/_object_without_properties_loose.js",
"webpack": "./esm/_object_without_properties_loose.js",
"import": "./esm/_object_without_properties_loose.js",
"default": "./cjs/_object_without_properties_loose.cjs"
},
"./_/_overload_yield": {
"module-sync": "./esm/_overload_yield.js",
"webpack": "./esm/_overload_yield.js",
"import": "./esm/_overload_yield.js",
"default": "./cjs/_overload_yield.cjs"
},
"./_/_possible_constructor_return": {
"module-sync": "./esm/_possible_constructor_return.js",
"webpack": "./esm/_possible_constructor_return.js",
"import": "./esm/_possible_constructor_return.js",
"default": "./cjs/_possible_constructor_return.cjs"
},
"./_/_read_only_error": {
"module-sync": "./esm/_read_only_error.js",
"webpack": "./esm/_read_only_error.js",
"import": "./esm/_read_only_error.js",
"default": "./cjs/_read_only_error.cjs"
},
"./_/_set": {
"module-sync": "./esm/_set.js",
"webpack": "./esm/_set.js",
"import": "./esm/_set.js",
"default": "./cjs/_set.cjs"
},
"./_/_set_prototype_of": {
"module-sync": "./esm/_set_prototype_of.js",
"webpack": "./esm/_set_prototype_of.js",
"import": "./esm/_set_prototype_of.js",
"default": "./cjs/_set_prototype_of.cjs"
},
"./_/_skip_first_generator_next": {
"module-sync": "./esm/_skip_first_generator_next.js",
"webpack": "./esm/_skip_first_generator_next.js",
"import": "./esm/_skip_first_generator_next.js",
"default": "./cjs/_skip_first_generator_next.cjs"
},
"./_/_sliced_to_array": {
"module-sync": "./esm/_sliced_to_array.js",
"webpack": "./esm/_sliced_to_array.js",
"import": "./esm/_sliced_to_array.js",
"default": "./cjs/_sliced_to_array.cjs"
},
"./_/_sliced_to_array_loose": {
"module-sync": "./esm/_sliced_to_array_loose.js",
"webpack": "./esm/_sliced_to_array_loose.js",
"import": "./esm/_sliced_to_array_loose.js",
"default": "./cjs/_sliced_to_array_loose.cjs"
},
"./_/_super_prop_base": {
"module-sync": "./esm/_super_prop_base.js",
"webpack": "./esm/_super_prop_base.js",
"import": "./esm/_super_prop_base.js",
"default": "./cjs/_super_prop_base.cjs"
},
"./_/_tagged_template_literal": {
"module-sync": "./esm/_tagged_template_literal.js",
"webpack": "./esm/_tagged_template_literal.js",
"import": "./esm/_tagged_template_literal.js",
"default": "./cjs/_tagged_template_literal.cjs"
},
"./_/_tagged_template_literal_loose": {
"module-sync": "./esm/_tagged_template_literal_loose.js",
"webpack": "./esm/_tagged_template_literal_loose.js",
"import": "./esm/_tagged_template_literal_loose.js",
"default": "./cjs/_tagged_template_literal_loose.cjs"
},
"./_/_throw": {
"module-sync": "./esm/_throw.js",
"webpack": "./esm/_throw.js",
"import": "./esm/_throw.js",
"default": "./cjs/_throw.cjs"
},
"./_/_to_array": {
"module-sync": "./esm/_to_array.js",
"webpack": "./esm/_to_array.js",
"import": "./esm/_to_array.js",
"default": "./cjs/_to_array.cjs"
},
"./_/_to_consumable_array": {
"module-sync": "./esm/_to_consumable_array.js",
"webpack": "./esm/_to_consumable_array.js",
"import": "./esm/_to_consumable_array.js",
"default": "./cjs/_to_consumable_array.cjs"
},
"./_/_to_primitive": {
"module-sync": "./esm/_to_primitive.js",
"webpack": "./esm/_to_primitive.js",
"import": "./esm/_to_primitive.js",
"default": "./cjs/_to_primitive.cjs"
},
"./_/_to_property_key": {
"module-sync": "./esm/_to_property_key.js",
"webpack": "./esm/_to_property_key.js",
"import": "./esm/_to_property_key.js",
"default": "./cjs/_to_property_key.cjs"
},
"./_/_ts_add_disposable_resource": {
"module-sync": "./esm/_ts_add_disposable_resource.js",
"webpack": "./esm/_ts_add_disposable_resource.js",
"import": "./esm/_ts_add_disposable_resource.js",
"default": "./cjs/_ts_add_disposable_resource.cjs"
},
"./_/_ts_decorate": {
"module-sync": "./esm/_ts_decorate.js",
"webpack": "./esm/_ts_decorate.js",
"import": "./esm/_ts_decorate.js",
"default": "./cjs/_ts_decorate.cjs"
},
"./_/_ts_dispose_resources": {
"module-sync": "./esm/_ts_dispose_resources.js",
"webpack": "./esm/_ts_dispose_resources.js",
"import": "./esm/_ts_dispose_resources.js",
"default": "./cjs/_ts_dispose_resources.cjs"
},
"./_/_ts_generator": {
"module-sync": "./esm/_ts_generator.js",
"webpack": "./esm/_ts_generator.js",
"import": "./esm/_ts_generator.js",
"default": "./cjs/_ts_generator.cjs"
},
"./_/_ts_metadata": {
"module-sync": "./esm/_ts_metadata.js",
"webpack": "./esm/_ts_metadata.js",
"import": "./esm/_ts_metadata.js",
"default": "./cjs/_ts_metadata.cjs"
},
"./_/_ts_param": {
"module-sync": "./esm/_ts_param.js",
"webpack": "./esm/_ts_param.js",
"import": "./esm/_ts_param.js",
"default": "./cjs/_ts_param.cjs"
},
"./_/_ts_rewrite_relative_import_extension": {
"module-sync": "./esm/_ts_rewrite_relative_import_extension.js",
"webpack": "./esm/_ts_rewrite_relative_import_extension.js",
"import": "./esm/_ts_rewrite_relative_import_extension.js",
"default": "./cjs/_ts_rewrite_relative_import_extension.cjs"
},
"./_/_ts_values": {
"module-sync": "./esm/_ts_values.js",
"webpack": "./esm/_ts_values.js",
"import": "./esm/_ts_values.js",
"default": "./cjs/_ts_values.cjs"
},
"./_/_type_of": {
"module-sync": "./esm/_type_of.js",
"webpack": "./esm/_type_of.js",
"import": "./esm/_type_of.js",
"default": "./cjs/_type_of.cjs"
},
"./_/_unsupported_iterable_to_array": {
"module-sync": "./esm/_unsupported_iterable_to_array.js",
"webpack": "./esm/_unsupported_iterable_to_array.js",
"import": "./esm/_unsupported_iterable_to_array.js",
"default": "./cjs/_unsupported_iterable_to_array.cjs"
},
"./_/_update": {
"module-sync": "./esm/_update.js",
"webpack": "./esm/_update.js",
"import": "./esm/_update.js",
"default": "./cjs/_update.cjs"
},
"./_/_using": {
"module-sync": "./esm/_using.js",
"webpack": "./esm/_using.js",
"import": "./esm/_using.js",
"default": "./cjs/_using.cjs"
},
"./_/_using_ctx": {
"module-sync": "./esm/_using_ctx.js",
"webpack": "./esm/_using_ctx.js",
"import": "./esm/_using_ctx.js",
"default": "./cjs/_using_ctx.cjs"
},
"./_/_wrap_async_generator": {
"module-sync": "./esm/_wrap_async_generator.js",
"webpack": "./esm/_wrap_async_generator.js",
"import": "./esm/_wrap_async_generator.js",
"default": "./cjs/_wrap_async_generator.cjs"
},
"./_/_wrap_native_super": {
"module-sync": "./esm/_wrap_native_super.js",
"webpack": "./esm/_wrap_native_super.js",
"import": "./esm/_wrap_native_super.js",
"default": "./cjs/_wrap_native_super.cjs"
},
"./_/_write_only_error": {
"module-sync": "./esm/_write_only_error.js",
"webpack": "./esm/_write_only_error.js",
"import": "./esm/_write_only_error.js",
"default": "./cjs/_write_only_error.cjs"
},
"./_/index": {
"module-sync": "./esm/index.js",
"webpack": "./esm/index.js",
"import": "./esm/index.js",
"default": "./cjs/index.cjs"
}
}
}

View File

@@ -0,0 +1,19 @@
import React from 'react';
import './index.scss';
export type Props = {
actions?: React.ReactNode;
buttonAriaLabel?: string;
href?: string;
id?: string;
/**
* @deprecated
* This prop is deprecated and will be removed in the next major version.
* Components now import their own `Link` directly from `next/link`.
*/
Link?: React.ElementType;
onClick?: () => void;
title: string;
titleAs?: React.ElementType;
};
export declare const Card: React.FC<Props>;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,72 @@
import { VersionsPill } from './VersionsPill/index.js';
export const documentViewKeys = ['api', 'default', 'livePreview', 'versions'];
export const getTabs = ({
collectionConfig,
globalConfig
}) => {
const customViews = collectionConfig?.admin?.components?.views?.edit || globalConfig?.admin?.components?.views?.edit || {};
return [{
tab: {
href: '',
label: ({
t
}) => t('general:edit'),
order: 100,
...(customViews?.['default']?.tab || {})
},
viewPath: '/'
}, {
tab: {
condition: ({
collectionConfig,
globalConfig,
permissions
}) => Boolean(collectionConfig?.versions && permissions?.collections?.[collectionConfig?.slug]?.readVersions || globalConfig?.versions && permissions?.globals?.[globalConfig?.slug]?.readVersions),
href: '/versions',
label: ({
t
}) => t('version:versions'),
order: 300,
Pill_Component: VersionsPill,
...(customViews?.['versions']?.tab || {})
},
viewPath: '/versions'
}, {
tab: {
condition: ({
collectionConfig,
globalConfig
}) => collectionConfig && !collectionConfig?.admin?.hideAPIURL || globalConfig && !globalConfig?.admin?.hideAPIURL,
href: '/api',
label: 'API',
order: 400,
...(customViews?.['api']?.tab || {})
},
viewPath: '/api'
}].concat(Object.entries(customViews).reduce((acc, [key, value]) => {
if (documentViewKeys.includes(key)) {
return acc;
}
if (value?.tab) {
acc.push({
tab: value.tab,
viewPath: 'path' in value ? value.path : ''
});
}
return acc;
}, []))?.sort(({
tab: a
}, {
tab: b
}) => {
if (a.order === undefined && b.order === undefined) {
return 0;
} else if (a.order === undefined) {
return 1;
} else if (b.order === undefined) {
return -1;
}
return a.order - b.order;
});
};
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,134 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.cjs");
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)\./i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(пр\.н\.е\.|АД)/i,
abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,
wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i,
};
const parseEraPatterns = {
any: [/^пр/i, /^(по|нова)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^[1234]\.\s?кв\.?/i,
wide: /^[1234]\. квартал/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^(10|11|12|[123456789])\./i,
abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,
wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i,
};
const parseMonthPatterns = {
narrow: [
/^1/i,
/^2/i,
/^3/i,
/^4/i,
/^5/i,
/^6/i,
/^7/i,
/^8/i,
/^9/i,
/^10/i,
/^11/i,
/^12/i,
],
any: [
/^ја/i,
/^ф/i,
/^мар/i,
/^ап/i,
/^мај/i,
/^јун/i,
/^јул/i,
/^авг/i,
/^с/i,
/^о/i,
/^н/i,
/^д/i,
],
};
const matchDayPatterns = {
narrow: /^[пусчн]/i,
short: /^(нед|пон|уто|сре|чет|пет|суб)/i,
abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i,
wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i,
};
const parseDayPatterns = {
narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i],
any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i],
};
const matchDayPeriodPatterns = {
any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^поно/i,
noon: /^под/i,
morning: /ујутру/i,
afternoon: /(после\s|по)+подне/i,
evening: /(увече)/i,
night: /(ноћу)/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});

View File

@@ -0,0 +1,6 @@
import type { CodeKeywordDefinition, ErrorObject, AnySchema } from "../../types";
export type OneOfError = ErrorObject<"oneOf", {
passingSchemas: [number, number] | null;
}, AnySchema[]>;
declare const def: CodeKeywordDefinition;
export default def;

View File

@@ -0,0 +1,12 @@
function _using(o, n, e) {
if (null == n) return n;
if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function.");
return o.push({
v: n,
d: r,
a: e
}), n;
}
module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports;

View File

@@ -0,0 +1,52 @@
export interface Context {
/**
* Get a value from the context.
*
* @param key key which identifies a context value
*/
getValue(key: symbol): unknown;
/**
* Create a new context which inherits from this context and has
* the given key set to the given value.
*
* @param key context key for which to set the value
* @param value value to set for the given key
*/
setValue(key: symbol, value: unknown): Context;
/**
* Return a new context which inherits from this context but does
* not contain a value for the given key.
*
* @param key context key for which to clear a value
*/
deleteValue(key: symbol): Context;
}
export interface ContextManager {
/**
* Get the current active context
*/
active(): Context;
/**
* Run the fn callback with object set as the current active context
* @param context Any object to set as the current active context
* @param fn A callback to be immediately run within a specific context
* @param thisArg optional receiver to be used for calling fn
* @param args optional arguments forwarded to fn
*/
with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: Context, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
/**
* Bind an object as the current context (or a specific one)
* @param [context] Optionally specify the context which you want to assign
* @param target Any object to which a context need to be set
*/
bind<T>(context: Context, target: T): T;
/**
* Enable context management
*/
enable(): this;
/**
* Disable context management
*/
disable(): this;
}
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"tablet-smartphone.js","sources":["../../../src/icons/tablet-smartphone.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name TabletSmartphone\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTAiIGhlaWdodD0iMTQiIHg9IjMiIHk9IjgiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik01IDRhMiAyIDAgMCAxIDItMmgxMmEyIDIgMCAwIDEgMiAydjE2YTIgMiAwIDAgMS0yIDJoLTIuNCIgLz4KICA8cGF0aCBkPSJNOCAxOGguMDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/tablet-smartphone\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst TabletSmartphone = createLucideIcon('TabletSmartphone', [\n ['rect', { width: '10', height: '14', x: '3', y: '8', rx: '2', key: '1vrsiq' }],\n ['path', { d: 'M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4', key: '1j4zmg' }],\n ['path', { d: 'M8 18h.01', key: 'lrp35t' }],\n]);\n\nexport default TabletSmartphone;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,iBAAiB,kBAAoB,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1F,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,37 @@
// By default, we want to infer the IP address, unless this is explicitly set to `null`
// We do this after all other processing is done
// If `ip_address` is explicitly set to `null` or a value, we leave it as is
/**
* @internal
* @deprecated -- set ip inferral via via SDK metadata options on client instead.
*/
function addAutoIpAddressToUser(objWithMaybeUser) {
if (objWithMaybeUser.user?.ip_address === undefined) {
objWithMaybeUser.user = {
...objWithMaybeUser.user,
ip_address: '{{auto}}',
};
}
}
/**
* @internal
*/
function addAutoIpAddressToSession(session) {
if ('aggregates' in session) {
if (session.attrs?.['ip_address'] === undefined) {
session.attrs = {
...session.attrs,
ip_address: '{{auto}}',
};
}
} else {
if (session.ipAddress === undefined) {
session.ipAddress = '{{auto}}';
}
}
}
export { addAutoIpAddressToSession, addAutoIpAddressToUser };
//# sourceMappingURL=ipAddress.js.map

View File

@@ -0,0 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
export declare function ClickableLinkPlugin({ newTab, disabled, }: {
newTab?: boolean;
disabled?: boolean;
}): null;

View File

@@ -0,0 +1,41 @@
export { httpIntegration } from './integrations/http/index.js';
export { httpServerSpansIntegration } from './integrations/http/httpServerSpansIntegration.js';
export { httpServerIntegration } from './integrations/http/httpServerIntegration.js';
export { SentryHttpInstrumentation } from './integrations/http/SentryHttpInstrumentation.js';
export { nativeNodeFetchIntegration } from './integrations/node-fetch/index.js';
export { SentryNodeFetchInstrumentation } from './integrations/node-fetch/SentryNodeFetchInstrumentation.js';
export { SentryContextManager } from './otel/contextManager.js';
export { setupOpenTelemetryLogger } from './otel/logger.js';
export { INSTRUMENTED, generateInstrumentOnce, instrumentWhenWrapped } from './otel/instrument.js';
export { getDefaultIntegrations, init, initWithoutDefaultIntegrations, validateOpenTelemetrySetup } from './sdk/index.js';
export { setIsolationScope } from './sdk/scope.js';
export { NodeClient } from './sdk/client.js';
export { ensureIsWrapped } from './utils/ensureIsWrapped.js';
export { processSessionIntegration } from './integrations/processSession.js';
export { setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy } from '@sentry/opentelemetry';
export { anrIntegration, disableAnrDetectionForCallback } from './integrations/anr/index.js';
export { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, consoleLoggingIntegration, continueTrace, createConsolaReporter, createTransport, dedupeIntegration, endSession, envToBool, eventFiltersIntegration, extraErrorDataIntegration, featureFlagsIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, inboundFiltersIntegration, instrumentSupabaseClient, isEnabled, isInitialized, lastEventId, linkedErrorsIntegration, metrics, parameterize, profiler, requestDataIntegration, rewriteFramesIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanToBaggageHeader, spanToJSON, spanToTraceHeader, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, trpcMiddleware, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, wrapMcpServerWithSentry, zodErrorsIntegration } from '@sentry/core';
import * as _exports from './logs/exports.js';
export { _exports as logger };
export { nodeContextIntegration } from './integrations/context.js';
export { contextLinesIntegration } from './integrations/contextlines.js';
export { localVariablesIntegration } from './integrations/local-variables/index.js';
export { modulesIntegration } from './integrations/modules.js';
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception.js';
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection.js';
export { spotlightIntegration } from './integrations/spotlight.js';
export { systemErrorIntegration } from './integrations/systemError.js';
export { childProcessIntegration } from './integrations/childProcess.js';
export { createSentryWinstonTransport } from './integrations/winston.js';
export { pinoIntegration } from './integrations/pino.js';
export { defaultStackParser, getSentryRelease } from './sdk/api.js';
export { createGetModuleFromFilename } from './utils/module.js';
export { addOriginToSpan } from './utils/addOriginToSpan.js';
export { getRequestUrl } from './utils/getRequestUrl.js';
export { initializeEsmLoader } from './sdk/esmLoader.js';
export { isCjs } from './utils/detection.js';
export { createMissingInstrumentationContext } from './utils/createMissingInstrumentationContext.js';
export { makeNodeTransport } from './transports/http.js';
export { cron } from './cron/index.js';
export { NODE_VERSION } from './nodeVersion.js';
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,36 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link subYears} function options.
*/
export interface SubYearsOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name subYears
* @category Year Helpers
* @summary Subtract the specified number of years from the given date.
*
* @description
* Subtract the specified number of years from the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The date to be changed
* @param amount - The amount of years to be subtracted.
* @param options - An object with options
*
* @returns The new date with the years subtracted
*
* @example
* // Subtract 5 years from 1 September 2014:
* const result = subYears(new Date(2014, 8, 1), 5)
* //=> Tue Sep 01 2009 00:00:00
*/
export declare function subYears<
DateType extends Date,
ResultDate extends Date = DateType,
>(
date: DateArg<DateType>,
amount: number,
options?: SubYearsOptions<ResultDate>,
): ResultDate;

View File

@@ -0,0 +1,24 @@
/**
* This integration will create spans for `fs` API operations, like reading and writing files.
*
* **WARNING:** This integration may add significant overhead to your application. Especially in scenarios with a lot of
* file I/O, like for example when running a framework dev server, including this integration can massively slow down
* your application.
*
* @param options Configuration for this integration.
*/
export declare const fsIntegration: (options?: {
/**
* Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes.
*
* Defaults to `false`.
*/
recordFilePaths?: boolean;
/**
* Setting this option to `true` will include the error messages of failed `fs` API calls as a span attribute.
*
* Defaults to `false`.
*/
recordErrorMessagesAsSpanAttributes?: boolean;
} | undefined) => import("@sentry/core").Integration;
//# sourceMappingURL=fs.d.ts.map

View File

@@ -0,0 +1,90 @@
import { isSameWeek } from "../../../isSameWeek.mjs";
import { toDate } from "../../../toDate.mjs";
const accusativeWeekdays = [
"неділю",
"понеділок",
"вівторок",
"середу",
"четвер",
"п’ятницю",
"суботу",
];
function lastWeek(day) {
const weekday = accusativeWeekdays[day];
switch (day) {
case 0:
case 3:
case 5:
case 6:
return "'у минулу " + weekday + " о' p";
case 1:
case 2:
case 4:
return "'у минулий " + weekday + " о' p";
}
}
function thisWeek(day) {
const weekday = accusativeWeekdays[day];
return "'у " + weekday + " о' p";
}
function nextWeek(day) {
const weekday = accusativeWeekdays[day];
switch (day) {
case 0:
case 3:
case 5:
case 6:
return "'у наступну " + weekday + " о' p";
case 1:
case 2:
case 4:
return "'у наступний " + weekday + " о' p";
}
}
const lastWeekFormat = (dirtyDate, baseDate, options) => {
const date = toDate(dirtyDate);
const day = date.getDay();
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day);
} else {
return lastWeek(day);
}
};
const nextWeekFormat = (dirtyDate, baseDate, options) => {
const date = toDate(dirtyDate);
const day = date.getDay();
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day);
} else {
return nextWeek(day);
}
};
const formatRelativeLocale = {
lastWeek: lastWeekFormat,
yesterday: "'вчора о' p",
today: "'сьогодні о' p",
tomorrow: "'завтра о' p",
nextWeek: nextWeekFormat,
other: "P",
};
export const formatRelative = (token, date, baseDate, options) => {
const format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date, baseDate, options);
}
return format;
};

View File

@@ -0,0 +1,2 @@
import{throwIfEmpty as e}from"../../utils/throw-if-empty.js";const t=(t,n,r)=>()=>(e(t,`Keys cannot be empty`),{path:`/notifications`,params:r??{},body:JSON.stringify({keys:t,data:n}),method:`PATCH`}),n=(e,t)=>()=>({path:`/notifications`,params:t??{},body:JSON.stringify(e),method:`PATCH`}),r=(t,n,r)=>()=>(e(t,`Key cannot be empty`),{path:`/notifications/${t}`,params:r??{},body:JSON.stringify(n),method:`PATCH`});export{r as updateNotification,t as updateNotifications,n as updateNotificationsBatch};
//# sourceMappingURL=notifications.js.map

View File

@@ -0,0 +1,14 @@
import { CoreOptions } from '../types-hoist/options';
import { SamplingContext } from '../types-hoist/samplingcontext';
/**
* Makes a sampling decision for the given options.
*
* Called every time a root span is created. Only root spans which emerge with a `sampled` value of `true` will be
* sent to Sentry.
*/
export declare function sampleSpan(options: Pick<CoreOptions, 'tracesSampleRate' | 'tracesSampler'>, samplingContext: SamplingContext, sampleRand: number): [
/*sampled*/ boolean,
/*sampleRate*/ number,
/*localSampleRateWasApplied*/ boolean
];
//# sourceMappingURL=sampling.d.ts.map

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"132":"K D E F A B zC"},B:{"1":"4 5 6 7 8 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G N O P","292":"0 1 2 3 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"0 1 2 3 4 5 6 7 8 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC 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 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB 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 WC 6B XC 7B 4C 5C","3138":"8B"},D:{"1":"4 5 6 7 8 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","292":"0 1 2 3 9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB 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 WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"1":"vC wC ID","16":"J bB 6C bC","292":"K D E F A B C L M G 7C 8C 9C AD cC PC QC BD CD DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC"},F:{"1":"0 1 2 3 4 5 6 7 8 q r s t u v w x y z","2":"F B C JD KD LD MD PC xC ND QC","292":"9 G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p"},G:{"1":"vC wC","2":"fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC","16":"bC OD yC PD QD","292":"RD","804":"E SD TD UD VD WD XD YD ZD aD bD cD dD eD"},H:{"2":"mD"},I:{"16":"nD oD","292":"VC J I pD qD yC rD sD"},J:{"292":"D A"},K:{"2":"A B C PC xC QC","292":"H"},L:{"1":"I"},M:{"1":"OC"},N:{"2":"A B"},O:{"292":"RC"},P:{"1":"EB FB GB HB IB","292":"9 J AB BB CB DB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"292":"4D"},R:{"292":"5D"},S:{"2":"6D 7D"}},B:4,C:"CSS scrollbar styling",D:true};

View File

@@ -0,0 +1,45 @@
{
"name": "path-type",
"version": "4.0.0",
"description": "Check if a path is a file, directory, or symlink",
"license": "MIT",
"repository": "sindresorhus/path-type",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && nyc ava && tsd-check"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"path",
"fs",
"type",
"is",
"check",
"directory",
"dir",
"file",
"filepath",
"symlink",
"symbolic",
"link",
"stat",
"stats",
"filesystem"
],
"devDependencies": {
"ava": "^1.3.1",
"nyc": "^13.3.0",
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"sun.js","sources":["../../../src/icons/sun.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Sun\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0IiAvPgogIDxwYXRoIGQ9Ik0xMiAydjIiIC8+CiAgPHBhdGggZD0iTTEyIDIwdjIiIC8+CiAgPHBhdGggZD0ibTQuOTMgNC45MyAxLjQxIDEuNDEiIC8+CiAgPHBhdGggZD0ibTE3LjY2IDE3LjY2IDEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJNMiAxMmgyIiAvPgogIDxwYXRoIGQ9Ik0yMCAxMmgyIiAvPgogIDxwYXRoIGQ9Im02LjM0IDE3LjY2LTEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJtMTkuMDcgNC45My0xLjQxIDEuNDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/sun\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Sun = createLucideIcon('Sun', [\n ['circle', { cx: '12', cy: '12', r: '4', key: '4exip2' }],\n ['path', { d: 'M12 2v2', key: 'tus03m' }],\n ['path', { d: 'M12 20v2', key: '1lh1kg' }],\n ['path', { d: 'm4.93 4.93 1.41 1.41', key: '149t6j' }],\n ['path', { d: 'm17.66 17.66 1.41 1.41', key: 'ptbguv' }],\n ['path', { d: 'M2 12h2', key: '1t8f8n' }],\n ['path', { d: 'M20 12h2', key: '1q8mjw' }],\n ['path', { d: 'm6.34 17.66-1.41 1.41', key: '1m8zz5' }],\n ['path', { d: 'm19.07 4.93-1.41 1.41', key: '1shlcs' }],\n]);\n\nexport default Sun;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,iBAAiB,KAAO,CAAA,CAAA,CAAA;AAAA,CAClC,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACrD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACvD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACtD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACxD,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,42 @@
// Adapted from https://gist.github.com/mjackson/5311256
function hueToRgb(p, q, t) {
if (t < 0)
t += 1;
if (t > 1)
t -= 1;
if (t < 1 / 6)
return p + (q - p) * 6 * t;
if (t < 1 / 2)
return q;
if (t < 2 / 3)
return p + (q - p) * (2 / 3 - t) * 6;
return p;
}
function hslaToRgba({ hue, saturation, lightness, alpha }) {
hue /= 360;
saturation /= 100;
lightness /= 100;
let red = 0;
let green = 0;
let blue = 0;
if (!saturation) {
red = green = blue = lightness;
}
else {
const q = lightness < 0.5
? lightness * (1 + saturation)
: lightness + saturation - lightness * saturation;
const p = 2 * lightness - q;
red = hueToRgb(p, q, hue + 1 / 3);
green = hueToRgb(p, q, hue);
blue = hueToRgb(p, q, hue - 1 / 3);
}
return {
red: Math.round(red * 255),
green: Math.round(green * 255),
blue: Math.round(blue * 255),
alpha,
};
}
export { hslaToRgba };

View File

@@ -0,0 +1 @@
{"version":3,"file":"square-activity.js","sources":["../../../src/icons/square-activity.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name SquareActivity\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0xNyAxMmgtMmwtMiA1LTItMTAtMiA1SDciIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/square-activity\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst SquareActivity = createLucideIcon('SquareActivity', [\n ['rect', { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' }],\n ['path', { d: 'M17 12h-2l-2 5-2-10-2 5H7', key: '15hlnc' }],\n]);\n\nexport default SquareActivity;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,iBAAiB,gBAAkB,CAAA,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5D,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,19 @@
import { NextPageContext } from 'next';
type ContextOrProps = {
req?: NextPageContext['req'];
res?: NextPageContext['res'];
err?: NextPageContext['err'] | string;
pathname?: string;
statusCode?: number;
};
/**
* Capture the exception passed by nextjs to the `_error` page, adding context data as appropriate.
*
* This will not capture the exception if the status code is < 500 or if the pathname is not provided and will thus not return an event ID.
*
* @param contextOrProps The data passed to either `getInitialProps` or `render` by nextjs
* @returns The Sentry event ID, or `undefined` if no event was captured
*/
export declare function captureUnderscoreErrorException(contextOrProps: ContextOrProps): Promise<string | undefined>;
export {};
//# sourceMappingURL=_error.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/ThreeDots/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,cAAc,CAAA;AAErB,wBAAgB,aAAa,CAAC,EAAE,SAAc,EAAE;;CAAA,qBAQ/C"}

View File

@@ -0,0 +1,140 @@
import { Children, cloneElement, isValidElement } from 'react';
/**
* Given `this.props.children`, return an object mapping key to child.
*
* @param {*} children `this.props.children`
* @return {object} Mapping of key to child
*/
export function getChildMapping(children, mapFn) {
var mapper = function mapper(child) {
return mapFn && isValidElement(child) ? mapFn(child) : child;
};
var result = Object.create(null);
if (children) Children.map(children, function (c) {
return c;
}).forEach(function (child) {
// run the map function here instead so that the key is the computed one
result[child.key] = mapper(child);
});
return result;
}
/**
* When you're adding or removing children some may be added or removed in the
* same render pass. We want to show *both* since we want to simultaneously
* animate elements in and out. This function takes a previous set of keys
* and a new set of keys and merges them with its best guess of the correct
* ordering. In the future we may expose some of the utilities in
* ReactMultiChild to make this easy, but for now React itself does not
* directly have this concept of the union of prevChildren and nextChildren
* so we implement it here.
*
* @param {object} prev prev children as returned from
* `ReactTransitionChildMapping.getChildMapping()`.
* @param {object} next next children as returned from
* `ReactTransitionChildMapping.getChildMapping()`.
* @return {object} a key set that contains all keys in `prev` and all keys
* in `next` in a reasonable order.
*/
export function mergeChildMappings(prev, next) {
prev = prev || {};
next = next || {};
function getValueForKey(key) {
return key in next ? next[key] : prev[key];
} // For each key of `next`, the list of keys to insert before that key in
// the combined list
var nextKeysPending = Object.create(null);
var pendingKeys = [];
for (var prevKey in prev) {
if (prevKey in next) {
if (pendingKeys.length) {
nextKeysPending[prevKey] = pendingKeys;
pendingKeys = [];
}
} else {
pendingKeys.push(prevKey);
}
}
var i;
var childMapping = {};
for (var nextKey in next) {
if (nextKeysPending[nextKey]) {
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
var pendingNextKey = nextKeysPending[nextKey][i];
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
}
}
childMapping[nextKey] = getValueForKey(nextKey);
} // Finally, add the keys which didn't appear before any key in `next`
for (i = 0; i < pendingKeys.length; i++) {
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
}
return childMapping;
}
function getProp(child, prop, props) {
return props[prop] != null ? props[prop] : child.props[prop];
}
export function getInitialChildMapping(props, onExited) {
return getChildMapping(props.children, function (child) {
return cloneElement(child, {
onExited: onExited.bind(null, child),
in: true,
appear: getProp(child, 'appear', props),
enter: getProp(child, 'enter', props),
exit: getProp(child, 'exit', props)
});
});
}
export function getNextChildMapping(nextProps, prevChildMapping, onExited) {
var nextChildMapping = getChildMapping(nextProps.children);
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
Object.keys(children).forEach(function (key) {
var child = children[key];
if (!isValidElement(child)) return;
var hasPrev = (key in prevChildMapping);
var hasNext = (key in nextChildMapping);
var prevChild = prevChildMapping[key];
var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)
if (hasNext && (!hasPrev || isLeaving)) {
// console.log('entering', key)
children[key] = cloneElement(child, {
onExited: onExited.bind(null, child),
in: true,
exit: getProp(child, 'exit', nextProps),
enter: getProp(child, 'enter', nextProps)
});
} else if (!hasNext && hasPrev && !isLeaving) {
// item is old (exiting)
// console.log('leaving', key)
children[key] = cloneElement(child, {
in: false
});
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
// item hasn't changed transition states
// copy over the last transition props;
// console.log('unchanged', key)
children[key] = cloneElement(child, {
onExited: onExited.bind(null, child),
in: prevChild.props.in,
exit: getProp(child, 'exit', nextProps),
enter: getProp(child, 'enter', nextProps)
});
}
});
return children;
}

View File

@@ -0,0 +1,60 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = void 0;
exports.datetime = datetime;
exports.date = date;
exports.time = time;
exports.duration = duration;
const core = __importStar(require("../core/index.cjs"));
const schemas = __importStar(require("./schemas.cjs"));
exports.ZodISODateTime = core.$constructor("ZodISODateTime", (inst, def) => {
core.$ZodISODateTime.init(inst, def);
schemas.ZodStringFormat.init(inst, def);
});
function datetime(params) {
return core._isoDateTime(exports.ZodISODateTime, params);
}
exports.ZodISODate = core.$constructor("ZodISODate", (inst, def) => {
core.$ZodISODate.init(inst, def);
schemas.ZodStringFormat.init(inst, def);
});
function date(params) {
return core._isoDate(exports.ZodISODate, params);
}
exports.ZodISOTime = core.$constructor("ZodISOTime", (inst, def) => {
core.$ZodISOTime.init(inst, def);
schemas.ZodStringFormat.init(inst, def);
});
function time(params) {
return core._isoTime(exports.ZodISOTime, params);
}
exports.ZodISODuration = core.$constructor("ZodISODuration", (inst, def) => {
core.$ZodISODuration.init(inst, def);
schemas.ZodStringFormat.init(inst, def);
});
function duration(params) {
return core._isoDuration(exports.ZodISODuration, params);
}

View File

@@ -0,0 +1,16 @@
/**
* Captures culture context from the browser.
*
* Enabled by default.
*
* @example
* ```js
* import * as Sentry from '@sentry/browser';
*
* Sentry.init({
* integrations: [Sentry.cultureContextIntegration()],
* });
* ```
*/
export declare const cultureContextIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=culturecontext.d.ts.map

View File

@@ -0,0 +1,249 @@
/**
* OpenAI Integration Telemetry Attributes
* Based on OpenTelemetry Semantic Conventions for Generative AI
* @see https://opentelemetry.io/docs/specs/semconv/gen-ai/
*/
/**
* The input messages sent to the model
*/
export declare const GEN_AI_PROMPT_ATTRIBUTE = "gen_ai.prompt";
/**
* The Generative AI system being used
* For OpenAI, this should always be "openai"
*/
export declare const GEN_AI_SYSTEM_ATTRIBUTE = "gen_ai.system";
/**
* The name of the model as requested
* Examples: "gpt-4", "gpt-3.5-turbo"
*/
export declare const GEN_AI_REQUEST_MODEL_ATTRIBUTE = "gen_ai.request.model";
/**
* Whether streaming was enabled for the request
*/
export declare const GEN_AI_REQUEST_STREAM_ATTRIBUTE = "gen_ai.request.stream";
/**
* The temperature setting for the model request
*/
export declare const GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE = "gen_ai.request.temperature";
/**
* The maximum number of tokens requested
*/
export declare const GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE = "gen_ai.request.max_tokens";
/**
* The frequency penalty setting for the model request
*/
export declare const GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE = "gen_ai.request.frequency_penalty";
/**
* The presence penalty setting for the model request
*/
export declare const GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE = "gen_ai.request.presence_penalty";
/**
* The top_p (nucleus sampling) setting for the model request
*/
export declare const GEN_AI_REQUEST_TOP_P_ATTRIBUTE = "gen_ai.request.top_p";
/**
* The top_k setting for the model request
*/
export declare const GEN_AI_REQUEST_TOP_K_ATTRIBUTE = "gen_ai.request.top_k";
/**
* Stop sequences for the model request
*/
export declare const GEN_AI_REQUEST_STOP_SEQUENCES_ATTRIBUTE = "gen_ai.request.stop_sequences";
/**
* The encoding format for the model request
*/
export declare const GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE = "gen_ai.request.encoding_format";
/**
* The dimensions for the model request
*/
export declare const GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE = "gen_ai.request.dimensions";
/**
* Array of reasons why the model stopped generating tokens
*/
export declare const GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE = "gen_ai.response.finish_reasons";
/**
* The name of the model that generated the response
*/
export declare const GEN_AI_RESPONSE_MODEL_ATTRIBUTE = "gen_ai.response.model";
/**
* The unique identifier for the response
*/
export declare const GEN_AI_RESPONSE_ID_ATTRIBUTE = "gen_ai.response.id";
/**
* The reason why the model stopped generating tokens
*/
export declare const GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE = "gen_ai.response.stop_reason";
/**
* The number of tokens used in the prompt
*/
export declare const GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE = "gen_ai.usage.input_tokens";
/**
* The number of tokens used in the response
*/
export declare const GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE = "gen_ai.usage.output_tokens";
/**
* The total number of tokens used (input + output)
*/
export declare const GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE = "gen_ai.usage.total_tokens";
/**
* The operation name
*/
export declare const GEN_AI_OPERATION_NAME_ATTRIBUTE = "gen_ai.operation.name";
/**
* Original length of messages array, used to indicate truncations had occured
*/
export declare const GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE = "sentry.sdk_meta.gen_ai.input.messages.original_length";
/**
* The prompt messages
* Only recorded when recordInputs is enabled
*/
export declare const GEN_AI_INPUT_MESSAGES_ATTRIBUTE = "gen_ai.input.messages";
/**
* The system instructions extracted from system messages
* Only recorded when recordInputs is enabled
* According to OpenTelemetry spec: https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/#gen-ai-system-instructions
*/
export declare const GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE = "gen_ai.system_instructions";
/**
* The response text
* Only recorded when recordOutputs is enabled
*/
export declare const GEN_AI_RESPONSE_TEXT_ATTRIBUTE = "gen_ai.response.text";
/**
* The available tools from incoming request
* Only recorded when recordInputs is enabled
*/
export declare const GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE = "gen_ai.request.available_tools";
/**
* Whether the response is a streaming response
*/
export declare const GEN_AI_RESPONSE_STREAMING_ATTRIBUTE = "gen_ai.response.streaming";
/**
* The tool calls from the response
* Only recorded when recordOutputs is enabled
*/
export declare const GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE = "gen_ai.response.tool_calls";
/**
* The agent name
*/
export declare const GEN_AI_AGENT_NAME_ATTRIBUTE = "gen_ai.agent.name";
/**
* The pipeline name
*/
export declare const GEN_AI_PIPELINE_NAME_ATTRIBUTE = "gen_ai.pipeline.name";
/**
* The conversation ID for linking messages across API calls
* For OpenAI Assistants API: thread_id
* For LangGraph: configurable.thread_id
*/
export declare const GEN_AI_CONVERSATION_ID_ATTRIBUTE = "gen_ai.conversation.id";
/**
* The number of cache creation input tokens used
*/
export declare const GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE = "gen_ai.usage.cache_creation_input_tokens";
/**
* The number of cache read input tokens used
*/
export declare const GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE = "gen_ai.usage.cache_read_input_tokens";
/**
* The number of cache write input tokens used
*/
export declare const GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE = "gen_ai.usage.input_tokens.cache_write";
/**
* The number of cached input tokens that were used
*/
export declare const GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE = "gen_ai.usage.input_tokens.cached";
/**
* The span operation name for invoking an agent
*/
export declare const GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE = "gen_ai.invoke_agent";
/**
* The span operation name for generating text
*/
export declare const GEN_AI_GENERATE_TEXT_DO_GENERATE_OPERATION_ATTRIBUTE = "gen_ai.generate_text";
/**
* The span operation name for streaming text
*/
export declare const GEN_AI_STREAM_TEXT_DO_STREAM_OPERATION_ATTRIBUTE = "gen_ai.stream_text";
/**
* The span operation name for generating object
*/
export declare const GEN_AI_GENERATE_OBJECT_DO_GENERATE_OPERATION_ATTRIBUTE = "gen_ai.generate_object";
/**
* The span operation name for streaming object
*/
export declare const GEN_AI_STREAM_OBJECT_DO_STREAM_OPERATION_ATTRIBUTE = "gen_ai.stream_object";
/**
* The embeddings input
* Only recorded when recordInputs is enabled
*/
export declare const GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE = "gen_ai.embeddings.input";
/**
* The span operation name for embedding
*/
export declare const GEN_AI_EMBED_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embed";
/**
* The span operation name for embedding many
*/
export declare const GEN_AI_EMBED_MANY_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embed_many";
/**
* The span operation name for reranking
*/
export declare const GEN_AI_RERANK_DO_RERANK_OPERATION_ATTRIBUTE = "gen_ai.rerank";
/**
* The span operation name for executing a tool
*/
export declare const GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE = "gen_ai.execute_tool";
/**
* The tool name for tool call spans
*/
export declare const GEN_AI_TOOL_NAME_ATTRIBUTE = "gen_ai.tool.name";
/**
* The tool call ID
*/
export declare const GEN_AI_TOOL_CALL_ID_ATTRIBUTE = "gen_ai.tool.call.id";
/**
* The tool type (e.g., 'function')
*/
export declare const GEN_AI_TOOL_TYPE_ATTRIBUTE = "gen_ai.tool.type";
/**
* The tool input/arguments
*/
export declare const GEN_AI_TOOL_INPUT_ATTRIBUTE = "gen_ai.tool.input";
/**
* The tool output/result
*/
export declare const GEN_AI_TOOL_OUTPUT_ATTRIBUTE = "gen_ai.tool.output";
/**
* The response ID from OpenAI
*/
export declare const OPENAI_RESPONSE_ID_ATTRIBUTE = "openai.response.id";
/**
* The response model from OpenAI
*/
export declare const OPENAI_RESPONSE_MODEL_ATTRIBUTE = "openai.response.model";
/**
* The response timestamp from OpenAI (ISO string)
*/
export declare const OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE = "openai.response.timestamp";
/**
* The number of completion tokens used
*/
export declare const OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE = "openai.usage.completion_tokens";
/**
* The number of prompt tokens used
*/
export declare const OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE = "openai.usage.prompt_tokens";
/**
* OpenAI API operations following OpenTelemetry semantic conventions
* @see https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/#llm-request-spans
*/
export declare const OPENAI_OPERATIONS: {
readonly CHAT: "chat";
readonly EMBEDDINGS: "embeddings";
};
/**
* The response timestamp from Anthropic AI (ISO string)
*/
export declare const ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE = "anthropic.response.timestamp";
//# sourceMappingURL=gen-ai-attributes.d.ts.map

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2016, 2018 Linus Unnebäck
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.

View File

@@ -0,0 +1,8 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { endOfQuarter as fn } from "../endOfQuarter.mjs";
import { convertToFP } from "./_lib/convertToFP.mjs";
export const endOfQuarter = convertToFP(fn, 1);
// Fallback for modularized imports:
export default endOfQuarter;

View File

@@ -0,0 +1,7 @@
/*
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn fix:special` to update
*/
declare const check: (options: import("../../declarations/plugins/WatchIgnorePlugin").WatchIgnorePluginOptions) => boolean;
export = check;

View File

@@ -0,0 +1,185 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/**
* @template K
* @template V
* @typedef {Map<K, InnerMap<K, V> | Set<V>>} InnerMap
*/
/**
* @template T
* @template V
*/
class TupleSet {
/**
* @param {Iterable<[T, V, ...EXPECTED_ANY]>=} init init
*/
constructor(init) {
/** @type {InnerMap<T, V>} */
this._map = new Map();
this.size = 0;
if (init) {
for (const tuple of init) {
this.add(...tuple);
}
}
}
/**
* @param {[T, V, ...EXPECTED_ANY]} args tuple
* @returns {void}
*/
add(...args) {
let map = this._map;
for (let i = 0; i < args.length - 2; i++) {
const arg = args[i];
const innerMap = map.get(arg);
if (innerMap === undefined) {
map.set(arg, (map = new Map()));
} else {
map = /** @type {InnerMap<T, V>} */ (innerMap);
}
}
const beforeLast = args[args.length - 2];
let set = /** @type {Set<V>} */ (map.get(beforeLast));
if (set === undefined) {
map.set(beforeLast, (set = new Set()));
}
const last = args[args.length - 1];
this.size -= set.size;
set.add(last);
this.size += set.size;
}
/**
* @param {[T, V, ...EXPECTED_ANY]} args tuple
* @returns {boolean} true, if the tuple is in the Set
*/
has(...args) {
let map = this._map;
for (let i = 0; i < args.length - 2; i++) {
const arg = args[i];
map = /** @type {InnerMap<T, V>} */ (map.get(arg));
if (map === undefined) {
return false;
}
}
const beforeLast = args[args.length - 2];
const set = map.get(beforeLast);
if (set === undefined) {
return false;
}
const last = args[args.length - 1];
return set.has(last);
}
/**
* @param {[T, V, ...EXPECTED_ANY]} args tuple
* @returns {void}
*/
delete(...args) {
let map = this._map;
for (let i = 0; i < args.length - 2; i++) {
const arg = args[i];
map = /** @type {InnerMap<T, V>} */ (map.get(arg));
if (map === undefined) {
return;
}
}
const beforeLast = args[args.length - 2];
const set = map.get(beforeLast);
if (set === undefined) {
return;
}
const last = args[args.length - 1];
this.size -= set.size;
set.delete(last);
this.size += set.size;
}
/**
* @returns {Iterator<[T, V, ...EXPECTED_ANY]>} iterator
*/
[Symbol.iterator]() {
/**
* @template T, V
* @typedef {MapIterator<[T, InnerMap<T, V> | Set<V>]>} IteratorStack
*/
// This is difficult to type because we can have a map inside a map inside a map, etc. where the end is a set (each key is an argument)
// But in basic use we only have 2 arguments in our methods, so we have `Map<K, Set<V>>`
/** @type {IteratorStack<T, V>[]} */
const iteratorStack = [];
/** @type {[T?, V?, ...EXPECTED_ANY]} */
const tuple = [];
/** @type {SetIterator<V> | undefined} */
let currentSetIterator;
/**
* @param {IteratorStack<T, V>} it iterator
* @returns {boolean} result
*/
const next = (it) => {
const result = it.next();
if (result.done) {
if (iteratorStack.length === 0) return false;
tuple.pop();
return next(
/** @type {IteratorStack<T, V>} */
(iteratorStack.pop())
);
}
const [key, value] = result.value;
iteratorStack.push(it);
tuple.push(key);
if (value instanceof Set) {
currentSetIterator = value[Symbol.iterator]();
return true;
}
return next(value[Symbol.iterator]());
};
next(this._map[Symbol.iterator]());
return {
next() {
while (currentSetIterator) {
const result = currentSetIterator.next();
if (result.done) {
tuple.pop();
if (
!next(
/** @type {IteratorStack<T, V>} */
(iteratorStack.pop())
)
) {
currentSetIterator = undefined;
}
} else {
return {
done: false,
value:
/* eslint-disable unicorn/prefer-spread */
/** @type {[T, V, ...EXPECTED_ANY]} */
(tuple.concat(result.value))
};
}
}
return { done: true, value: undefined };
}
};
}
}
module.exports = TupleSet;

View File

@@ -0,0 +1,52 @@
import { Client, PropagationContext, Span, SpanContextData } from '@sentry/core';
export interface PreviousTraceInfo {
/**
* Span context of the previous trace's local root span
*/
spanContext: SpanContextData;
/**
* Timestamp in seconds when the previous trace was started
*/
startTimestamp: number;
/**
* sample rate of the previous trace
*/
sampleRate: number;
/**
* The sample rand of the previous trace
*/
sampleRand: number;
}
export declare const PREVIOUS_TRACE_MAX_DURATION = 3600;
export declare const PREVIOUS_TRACE_KEY = "sentry_previous_trace";
export declare const PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE = "sentry.previous_trace";
/**
* Takes care of linking traces and applying the (consistent) sampling behavoiour based on the passed options
* @param options - options for linking traces and consistent trace sampling (@see BrowserTracingOptions)
* @param client - Sentry client
*/
export declare function linkTraces(client: Client, { linkPreviousTrace, consistentTraceSampling, }: {
linkPreviousTrace: 'session-storage' | 'in-memory';
consistentTraceSampling: boolean;
}): void;
/**
* Adds a previous_trace span link to the passed span if the passed
* previousTraceInfo is still valid.
*
* @returns the updated previous trace info (based on the current span/trace) to
* be used on the next call
*/
export declare function addPreviousTraceSpanLink(previousTraceInfo: PreviousTraceInfo | undefined, span: Span, oldPropagationContext: PropagationContext): PreviousTraceInfo;
/**
* Stores @param previousTraceInfo in sessionStorage.
*/
export declare function storePreviousTraceInSessionStorage(previousTraceInfo: PreviousTraceInfo): void;
/**
* Retrieves the previous trace from sessionStorage if available.
*/
export declare function getPreviousTraceFromSessionStorage(): PreviousTraceInfo | undefined;
/**
* see {@link import('@sentry/core').spanIsSampled}
*/
export declare function spanContextSampled(ctx: SpanContextData): boolean;
//# sourceMappingURL=linkedTraces.d.ts.map

View File

@@ -0,0 +1,227 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["пр.н.е.", "АД"],
abbreviated: ["пр. Хр.", "по. Хр."],
wide: ["Пре Христа", "После Христа"],
};
const quarterValues = {
narrow: ["1.", "2.", "3.", "4."],
abbreviated: ["1. кв.", "2. кв.", "3. кв.", "4. кв."],
wide: ["1. квартал", "2. квартал", "3. квартал", "4. квартал"],
};
const monthValues = {
narrow: [
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"10.",
"11.",
"12.",
],
abbreviated: [
"јан",
"феб",
"мар",
"апр",
"мај",
"јун",
"јул",
"авг",
"сеп",
"окт",
"нов",
"дец",
],
wide: [
"јануар",
"фебруар",
"март",
"април",
"мај",
"јун",
"јул",
"август",
"септембар",
"октобар",
"новембар",
"децембар",
],
};
const formattingMonthValues = {
narrow: [
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"10.",
"11.",
"12.",
],
abbreviated: [
"јан",
"феб",
"мар",
"апр",
"мај",
"јун",
"јул",
"авг",
"сеп",
"окт",
"нов",
"дец",
],
wide: [
"јануар",
"фебруар",
"март",
"април",
"мај",
"јун",
"јул",
"август",
"септембар",
"октобар",
"новембар",
"децембар",
],
};
const dayValues = {
narrow: ["Н", "П", "У", "С", "Ч", "П", "С"],
short: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"],
abbreviated: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"],
wide: [
"недеља",
"понедељак",
"уторак",
"среда",
"четвртак",
"петак",
"субота",
],
};
const formattingDayPeriodValues = {
narrow: {
am: "АМ",
pm: "ПМ",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "поподне",
evening: "увече",
night: "ноћу",
},
abbreviated: {
am: "АМ",
pm: "ПМ",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "поподне",
evening: "увече",
night: "ноћу",
},
wide: {
am: "AM",
pm: "PM",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "после подне",
evening: "увече",
night: "ноћу",
},
};
const dayPeriodValues = {
narrow: {
am: "AM",
pm: "PM",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "поподне",
evening: "увече",
night: "ноћу",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "поподне",
evening: "увече",
night: "ноћу",
},
wide: {
am: "AM",
pm: "PM",
midnight: "поноћ",
noon: "подне",
morning: "ујутру",
afternoon: "после подне",
evening: "увече",
night: "ноћу",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + ".";
};
export const localize = {
ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
formattingValues: formattingMonthValues,
defaultFormattingWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};

View File

@@ -0,0 +1 @@
{"version":3,"file":"briefcase.js","sources":["../../../src/icons/briefcase.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Briefcase\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTYgMjBWNGEyIDIgMCAwIDAtMi0yaC00YTIgMiAwIDAgMC0yIDJ2MTYiIC8+CiAgPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjE0IiB4PSIyIiB5PSI2IiByeD0iMiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/briefcase\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Briefcase = createLucideIcon('Briefcase', [\n ['path', { d: 'M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16', key: 'jecpp' }],\n ['rect', { width: '20', height: '14', x: '2', y: '6', rx: '2', key: 'i6l2r4' }],\n]);\n\nexport default Briefcase;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,iBAAiB,WAAa,CAAA,CAAA,CAAA;AAAA,CAAA,CAC9C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA8C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAA,CAAA;AAAA,CAAA,CAC1E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAChF,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,22 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Backpack = createLucideIcon("Backpack", [
[
"path",
{ d: "M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z", key: "1ol0lm" }
],
["path", { d: "M8 10h8", key: "c7uz4u" }],
["path", { d: "M8 18h8", key: "1no2b1" }],
["path", { d: "M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6", key: "1fr6do" }],
["path", { d: "M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2", key: "donm21" }]
]);
export { Backpack as default };
//# sourceMappingURL=backpack.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/bin/generateImportMap/utilities/getImportMapToBaseDirPath.ts"],"sourcesContent":["import path from 'path'\n\n/**\n * Returns the path that navigates from the import map file to the base directory.\n * This can then be prepended to relative paths in the import map to get the full, absolute path.\n */\nexport function getImportMapToBaseDirPath({\n baseDir,\n importMapPath,\n}: {\n /**\n * Absolute path to the base directory\n */\n baseDir: string\n /**\n * Absolute path to the import map file\n */\n importMapPath: string\n}): string {\n const importMapDir = path.dirname(importMapPath)\n\n // 1. Direct relative path from `importMapDir` -> `baseDir`\n let relativePath = path.relative(importMapDir, baseDir).replace(/\\\\/g, '/')\n\n // 2. If they're the same directory, path.relative will be \"\", so use \"./\"\n if (!relativePath) {\n relativePath = './'\n } // Add ./ prefix for subdirectories of the current directory\n else if (!relativePath.startsWith('.') && !relativePath.startsWith('/')) {\n relativePath = `./${relativePath}`\n }\n\n // 3. For consistency ensure a trailing slash\n if (!relativePath.endsWith('/')) {\n relativePath += '/'\n }\n\n return relativePath\n}\n"],"names":["path","getImportMapToBaseDirPath","baseDir","importMapPath","importMapDir","dirname","relativePath","relative","replace","startsWith","endsWith"],"mappings":"AAAA,OAAOA,UAAU,OAAM;AAEvB;;;CAGC,GACD,OAAO,SAASC,0BAA0B,EACxCC,OAAO,EACPC,aAAa,EAUd;IACC,MAAMC,eAAeJ,KAAKK,OAAO,CAACF;IAElC,2DAA2D;IAC3D,IAAIG,eAAeN,KAAKO,QAAQ,CAACH,cAAcF,SAASM,OAAO,CAAC,OAAO;IAEvE,0EAA0E;IAC1E,IAAI,CAACF,cAAc;QACjBA,eAAe;IACjB,OACK,IAAI,CAACA,aAAaG,UAAU,CAAC,QAAQ,CAACH,aAAaG,UAAU,CAAC,MAAM;QACvEH,eAAe,CAAC,EAAE,EAAEA,cAAc;IACpC;IAEA,6CAA6C;IAC7C,IAAI,CAACA,aAAaI,QAAQ,CAAC,MAAM;QAC/BJ,gBAAgB;IAClB;IAEA,OAAOA;AACT"}

View File

@@ -0,0 +1,132 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
const matchOrdinalNumberPattern = /^ke-(\d+)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(sm|m)/i,
abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,
wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i,
};
const parseEraPatterns = {
any: [/^s/i, /^(m|e)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^K-?\s[1234]/i,
wide: /^Kuartal ke-?\s?[1234]/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^[jfmasond]/i,
abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,
wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^ma/i,
/^ap/i,
/^me/i,
/^jun/i,
/^jul/i,
/^ag/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[srkjm]/i,
short: /^(min|sen|sel|rab|kam|jum|sab)/i,
abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i,
wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i,
};
const parseDayPatterns = {
narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i],
any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i],
};
const matchDayPeriodPatterns = {
narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,
any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^pm/i,
midnight: /^tengah m/i,
noon: /^tengah h/i,
morning: /pagi/i,
afternoon: /siang/i,
evening: /sore/i,
night: /malam/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};

View File

@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const LaptopMinimal = createLucideIcon("LaptopMinimal", [
["rect", { width: "18", height: "12", x: "3", y: "4", rx: "2", ry: "2", key: "1qhy41" }],
["line", { x1: "2", x2: "22", y1: "20", y2: "20", key: "ni3hll" }]
]);
export { LaptopMinimal as default };
//# sourceMappingURL=laptop-minimal.js.map

View File

@@ -0,0 +1,27 @@
{
"name": "@babel/template",
"version": "7.28.6",
"description": "Generate an AST from a string template.",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-template",
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-template"
},
"main": "./lib/index.js",
"dependencies": {
"@babel/code-frame": "^7.28.6",
"@babel/parser": "^7.28.6",
"@babel/types": "^7.28.6"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/pg-core/expressions.ts"],"sourcesContent":["import type { PgColumn } from '~/pg-core/columns/index.ts';\nimport { bindIfParam } from '~/sql/expressions/index.ts';\nimport type { Placeholder, SQL, SQLChunk, SQLWrapper } from '~/sql/sql.ts';\nimport { sql } from '~/sql/sql.ts';\n\nexport * from '~/sql/expressions/index.ts';\n\nexport function concat(column: PgColumn | SQL.Aliased, value: string | Placeholder | SQLWrapper): SQL {\n\treturn sql`${column} || ${bindIfParam(value, column)}`;\n}\n\nexport function substring(\n\tcolumn: PgColumn | SQL.Aliased,\n\t{ from, for: _for }: { from?: number | Placeholder | SQLWrapper; for?: number | Placeholder | SQLWrapper },\n): SQL {\n\tconst chunks: SQLChunk[] = [sql`substring(`, column];\n\tif (from !== undefined) {\n\t\tchunks.push(sql` from `, bindIfParam(from, column));\n\t}\n\tif (_for !== undefined) {\n\t\tchunks.push(sql` for `, bindIfParam(_for, column));\n\t}\n\tchunks.push(sql`)`);\n\treturn sql.join(chunks);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,yBAA4B;AAE5B,iBAAoB;AAEpB,gCAAc,uCALd;AAOO,SAAS,OAAO,QAAgC,OAA+C;AACrG,SAAO,iBAAM,MAAM,WAAO,gCAAY,OAAO,MAAM,CAAC;AACrD;AAEO,SAAS,UACf,QACA,EAAE,MAAM,KAAK,KAAK,GACZ;AACN,QAAM,SAAqB,CAAC,4BAAiB,MAAM;AACnD,MAAI,SAAS,QAAW;AACvB,WAAO,KAAK,4BAAa,gCAAY,MAAM,MAAM,CAAC;AAAA,EACnD;AACA,MAAI,SAAS,QAAW;AACvB,WAAO,KAAK,2BAAY,gCAAY,MAAM,MAAM,CAAC;AAAA,EAClD;AACA,SAAO,KAAK,iBAAM;AAClB,SAAO,eAAI,KAAK,MAAM;AACvB;","names":[]}

View File

@@ -0,0 +1,108 @@
/**
* The `timers/promises` API provides an alternative set of timer functions
* that return `Promise` objects. The API is accessible via
* `require('node:timers/promises')`.
*
* ```js
* import {
* setTimeout,
* setImmediate,
* setInterval,
* } from 'node:timers/promises';
* ```
* @since v15.0.0
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/timers/promises.js)
*/
declare module "timers/promises" {
import { TimerOptions } from "node:timers";
/**
* ```js
* import {
* setTimeout,
* } from 'node:timers/promises';
*
* const res = await setTimeout(100, 'result');
*
* console.log(res); // Prints 'result'
* ```
* @since v15.0.0
* @param delay The number of milliseconds to wait before fulfilling the
* promise. **Default:** `1`.
* @param value A value with which the promise is fulfilled.
*/
function setTimeout<T = void>(delay?: number, value?: T, options?: TimerOptions): Promise<T>;
/**
* ```js
* import {
* setImmediate,
* } from 'node:timers/promises';
*
* const res = await setImmediate('result');
*
* console.log(res); // Prints 'result'
* ```
* @since v15.0.0
* @param value A value with which the promise is fulfilled.
*/
function setImmediate<T = void>(value?: T, options?: TimerOptions): Promise<T>;
/**
* Returns an async iterator that generates values in an interval of `delay` ms.
* If `ref` is `true`, you need to call `next()` of async iterator explicitly
* or implicitly to keep the event loop alive.
*
* ```js
* import {
* setInterval,
* } from 'node:timers/promises';
*
* const interval = 100;
* for await (const startTime of setInterval(interval, Date.now())) {
* const now = Date.now();
* console.log(now);
* if ((now - startTime) > 1000)
* break;
* }
* console.log(Date.now());
* ```
* @since v15.9.0
* @param delay The number of milliseconds to wait between iterations.
* **Default:** `1`.
* @param value A value with which the iterator returns.
*/
function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator<T>;
interface Scheduler {
/**
* An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification
* being developed as a standard Web Platform API.
*
* Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent
* to calling `timersPromises.setTimeout(delay, undefined, options)` except that
* the `ref` option is not supported.
*
* ```js
* import { scheduler } from 'node:timers/promises';
*
* await scheduler.wait(1000); // Wait one second before continuing
* ```
* @since v17.3.0, v16.14.0
* @experimental
* @param delay The number of milliseconds to wait before resolving the
* promise.
*/
wait(delay: number, options?: { signal?: AbortSignal }): Promise<void>;
/**
* An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification
* being developed as a standard Web Platform API.
*
* Calling `timersPromises.scheduler.yield()` is equivalent to calling
* `timersPromises.setImmediate()` with no arguments.
* @since v17.3.0, v16.14.0
* @experimental
*/
yield(): Promise<void>;
}
const scheduler: Scheduler;
}
declare module "node:timers/promises" {
export * from "timers/promises";
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,qDAA8D;AAArD,4HAAA,yBAAyB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { DataloaderInstrumentation } from './instrumentation';\nexport type { DataloaderInstrumentationConfig } from './types';\n"]}

View File

@@ -0,0 +1,63 @@
"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);
var tracing_exports = {};
__export(tracing_exports, {
tracer: () => tracer
});
module.exports = __toCommonJS(tracing_exports);
var import_tracing_utils = require("./tracing-utils.cjs");
var import_version = require("./version.cjs");
let otel;
let rawTracer;
const tracer = {
startActiveSpan(name, fn) {
if (!otel) {
return fn();
}
if (!rawTracer) {
rawTracer = otel.trace.getTracer("drizzle-orm", import_version.npmVersion);
}
return (0, import_tracing_utils.iife)(
(otel2, rawTracer2) => rawTracer2.startActiveSpan(
name,
(span) => {
try {
return fn(span);
} catch (e) {
span.setStatus({
code: otel2.SpanStatusCode.ERROR,
message: e instanceof Error ? e.message : "Unknown error"
// eslint-disable-line no-instanceof/no-instanceof
});
throw e;
} finally {
span.end();
}
}
),
otel,
rawTracer
);
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
tracer
});
//# sourceMappingURL=tracing.cjs.map

View File

@@ -0,0 +1,23 @@
import { diag, DiagLogLevel } from '@opentelemetry/api';
import { debug } from '@sentry/core';
/**
* Setup the OTEL logger to use our own debug logger.
*/
function setupOpenTelemetryLogger() {
// Disable diag, to ensure this works even if called multiple times
diag.disable();
diag.setLogger(
{
error: debug.error,
warn: debug.warn,
info: debug.log,
debug: debug.log,
verbose: debug.log,
},
DiagLogLevel.DEBUG,
);
}
export { setupOpenTelemetryLogger };
//# sourceMappingURL=logger.js.map

View File

@@ -0,0 +1,8 @@
import type { PayloadRequest } from '../../types/index.js';
import type { SanitizedPermissions } from '../types.js';
type Arguments = {
req: PayloadRequest;
};
export declare const accessOperation: (args: Arguments) => Promise<SanitizedPermissions>;
export {};
//# sourceMappingURL=access.d.ts.map

Some files were not shown because too many files have changed in this diff Show More