@itwin/core-i18n 4.1.0-dev.6 → 4.1.0-dev.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +401 -388
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +260 -247
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/package.json +8 -8
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
/** @packageDocumentation
|
|
18
18
|
* @module Localization
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
21
|
-
var path = "D:\\
|
|
22
|
-
var hash = "
|
|
20
|
+
function cov_29ajiy3676() {
|
|
21
|
+
var path = "D:\\vsts_a\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
|
|
22
|
+
var hash = "6c764036e59f025ebd3cd00cc5dfb36e086ea3eb";
|
|
23
23
|
var global = new Function("return this")();
|
|
24
24
|
var gcv = "__coverage__";
|
|
25
25
|
var coverageData = {
|
|
26
|
-
path: "D:\\
|
|
26
|
+
path: "D:\\vsts_a\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
|
|
27
27
|
statementMap: {
|
|
28
28
|
"0": {
|
|
29
29
|
start: {
|
|
@@ -2270,13 +2270,13 @@ function cov_2jo8rrbgid() {
|
|
|
2270
2270
|
inputSourceMap: {
|
|
2271
2271
|
version: 3,
|
|
2272
2272
|
file: "ITwinLocalization.js",
|
|
2273
|
-
sources: ["D:\\
|
|
2273
|
+
sources: ["D:\\vsts_a\\1\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
|
|
2274
2274
|
names: [],
|
|
2275
2275
|
mappings: "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",
|
|
2276
2276
|
sourcesContent: ["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Localization\r\n */\r\n\r\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\r\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\r\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\n\r\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\r\n\r\n/** Options for ITwinLocalization\r\n * @public\r\n */\r\nexport interface LocalizationOptions {\r\n urlTemplate?: string;\r\n backendPlugin?: Module;\r\n detectorPlugin?: Module;\r\n initOptions?: InitOptions;\r\n backendHttpOptions?: BackendOptions;\r\n detectorOptions?: DetectorOptions;\r\n}\r\n\r\n/** Supplies localizations for iTwin.js\r\n * @note this class uses the [i18next](https://www.i18next.com/) package.\r\n * @public\r\n */\r\nexport class ITwinLocalization implements Localization {\r\n public i18next: i18n;\r\n private readonly _initOptions: InitOptions;\r\n private readonly _backendOptions: BackendOptions;\r\n private readonly _detectionOptions: DetectorOptions;\r\n private readonly _namespaces = new Map<string, Promise<void>>();\r\n\r\n public constructor(options?: LocalizationOptions) {\r\n this.i18next = i18next.createInstance();\r\n\r\n this._backendOptions = {\r\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\r\n crossDomain: true,\r\n ...options?.backendHttpOptions,\r\n };\r\n\r\n this._detectionOptions = {\r\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\r\n lookupQuerystring: \"lng\",\r\n caches: [],\r\n ...options?.detectorOptions,\r\n };\r\n\r\n this._initOptions = {\r\n interpolation: { escapeValue: true },\r\n fallbackLng: \"en\",\r\n maxRetries: DEFAULT_MAX_RETRIES,\r\n backend: this._backendOptions,\r\n detection: this._detectionOptions,\r\n ...options?.initOptions,\r\n };\r\n\r\n this.i18next\r\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\r\n .use(options?.backendPlugin ?? Backend)\r\n .use(TranslationLogger);\r\n }\r\n\r\n public async initialize(namespaces: string[]): Promise<void> {\r\n\r\n // Also consider namespaces passed into constructor\r\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\r\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\r\n\r\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\r\n if (defaultNamespace)\r\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\r\n\r\n const initOptions: InitOptions = {\r\n ...this._initOptions,\r\n defaultNS: defaultNamespace,\r\n ns: [...combinedNamespaces],\r\n };\r\n\r\n // if in a development environment, set debugging\r\n if (process.env.NODE_ENV === \"development\")\r\n initOptions.debug = true;\r\n\r\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\r\n\r\n for (const ns of namespaces)\r\n this._namespaces.set(ns, initPromise);\r\n\r\n return initPromise;\r\n }\r\n\r\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\r\n * For example:\r\n * ``` ts\r\n * \"MyKeys\": {\r\n * \"Key1\": \"First value\",\r\n * \"Key2\": \"Second value\"\r\n * }\r\n * ```\r\n *\r\n * ``` ts\r\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\r\n * ```\r\n * @param line The input line, potentially containing %{keys}.\r\n * @returns The line with all %{keys} translated\r\n * @public\r\n */\r\n public getLocalizedKeys(line: string): string {\r\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\r\n }\r\n\r\n /** Return the translated value of a key.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\r\n * followed by a colon, followed by the property in the JSON file.\r\n * For example:\r\n * ``` ts\r\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\r\n * ```\r\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @public\r\n */\r\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n const value = this.i18next.t(key, options);\r\n\r\n if (typeof value !== \"string\") {\r\n throw new Error(\"Translation key(s) string not found\");\r\n }\r\n\r\n return value;\r\n }\r\n\r\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\r\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n let fullKey: string | string[] = \"\";\r\n\r\n if (typeof key === \"string\") {\r\n fullKey = `${namespace}:${key}`;\r\n } else {\r\n fullKey = key.map((subKey: string) => {\r\n return `${namespace}:${subKey}`;\r\n });\r\n }\r\n\r\n return this.getLocalizedString(fullKey, options);\r\n }\r\n\r\n /** Gets the English translation.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n options = {\r\n ...options,\r\n ns: namespace, // ensure namespace argument is used\r\n };\r\n\r\n const en = this.i18next.getFixedT(\"en\", namespace);\r\n const str = en(key, options);\r\n if (typeof str !== \"string\")\r\n throw new Error(\"Translation key(s) not found\");\r\n\r\n return str;\r\n }\r\n\r\n /** Get the promise for an already registered Namespace.\r\n * @param name - the name of the namespace\r\n * @public\r\n */\r\n public getNamespacePromise(name: string): Promise<void> | undefined {\r\n return this._namespaces.get(name);\r\n }\r\n\r\n /** @internal */\r\n public getLanguageList(): readonly string[] {\r\n return this.i18next.languages;\r\n }\r\n\r\n /** override the language detected in the browser */\r\n public async changeLanguage(language: string) {\r\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\r\n }\r\n\r\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\r\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\r\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\r\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\r\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\r\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\r\n * @public\r\n */\r\n public async registerNamespace(name: string): Promise<void> {\r\n const existing = this._namespaces.get(name);\r\n if (existing !== undefined)\r\n return existing;\r\n\r\n const theReadPromise = new Promise<void>((resolve) => {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.i18next.loadNamespaces(name, (err) => {\r\n if (!err)\r\n return resolve();\r\n\r\n // Here we got a non-null err object.\r\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\r\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\r\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\r\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\r\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\r\n\r\n try {\r\n for (const thisError of err) {\r\n if (typeof thisError === \"string\")\r\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\r\n }\r\n } catch (e) {\r\n locales = [];\r\n }\r\n // if we removed every locale from the array, it wasn't loaded.\r\n if (locales.length === 0)\r\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\r\n\r\n resolve();\r\n });\r\n });\r\n this._namespaces.set(name, theReadPromise);\r\n return theReadPromise;\r\n }\r\n\r\n /** @internal */\r\n public unregisterNamespace(name: string): void {\r\n this._namespaces.delete(name);\r\n }\r\n}\r\n\r\nclass TranslationLogger {\r\n public static readonly type = \"logger\";\r\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\r\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\r\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\r\n private createLogMessage(args: string[]) {\r\n let message = args[0];\r\n for (let i = 1; i < args.length; ++i) {\r\n if (typeof args[i] === \"string\")\r\n message += `\\n ${args[i]}`;\r\n }\r\n return message;\r\n }\r\n}\r\n"]
|
|
2277
2277
|
},
|
|
2278
2278
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
2279
|
-
hash: "
|
|
2279
|
+
hash: "6c764036e59f025ebd3cd00cc5dfb36e086ea3eb"
|
|
2280
2280
|
};
|
|
2281
2281
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
2282
2282
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -2285,56 +2285,56 @@ function cov_2jo8rrbgid() {
|
|
|
2285
2285
|
var actualCoverage = coverage[path];
|
|
2286
2286
|
{
|
|
2287
2287
|
// @ts-ignore
|
|
2288
|
-
|
|
2288
|
+
cov_29ajiy3676 = function () {
|
|
2289
2289
|
return actualCoverage;
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
2292
|
return actualCoverage;
|
|
2293
2293
|
}
|
|
2294
|
-
|
|
2295
|
-
var __importDefault = (
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
return (
|
|
2294
|
+
cov_29ajiy3676();
|
|
2295
|
+
var __importDefault = (cov_29ajiy3676().s[0]++, (cov_29ajiy3676().b[0][0]++, this) && (cov_29ajiy3676().b[0][1]++, this.__importDefault) || (cov_29ajiy3676().b[0][2]++, function (mod) {
|
|
2296
|
+
cov_29ajiy3676().f[0]++;
|
|
2297
|
+
cov_29ajiy3676().s[1]++;
|
|
2298
|
+
return (cov_29ajiy3676().b[2][0]++, mod) && (cov_29ajiy3676().b[2][1]++, mod.__esModule) ? (cov_29ajiy3676().b[1][0]++, mod) : (cov_29ajiy3676().b[1][1]++, {
|
|
2299
2299
|
"default": mod
|
|
2300
2300
|
});
|
|
2301
2301
|
}));
|
|
2302
|
-
|
|
2302
|
+
cov_29ajiy3676().s[2]++;
|
|
2303
2303
|
Object.defineProperty(exports, "__esModule", ({
|
|
2304
2304
|
value: true
|
|
2305
2305
|
}));
|
|
2306
|
-
|
|
2306
|
+
cov_29ajiy3676().s[3]++;
|
|
2307
2307
|
exports.ITwinLocalization = void 0;
|
|
2308
|
-
const i18next_1 = (
|
|
2309
|
-
const i18next_browser_languagedetector_1 = (
|
|
2310
|
-
const i18next_http_backend_1 = (
|
|
2311
|
-
const core_bentley_1 = (
|
|
2312
|
-
const DEFAULT_MAX_RETRIES = (
|
|
2308
|
+
const i18next_1 = (cov_29ajiy3676().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js")));
|
|
2309
|
+
const i18next_browser_languagedetector_1 = (cov_29ajiy3676().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js")));
|
|
2310
|
+
const i18next_http_backend_1 = (cov_29ajiy3676().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js")));
|
|
2311
|
+
const core_bentley_1 = (cov_29ajiy3676().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
|
|
2312
|
+
const DEFAULT_MAX_RETRIES = (cov_29ajiy3676().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
|
|
2313
2313
|
/** Supplies localizations for iTwin.js
|
|
2314
2314
|
* @note this class uses the [i18next](https://www.i18next.com/) package.
|
|
2315
2315
|
* @public
|
|
2316
2316
|
*/
|
|
2317
2317
|
class ITwinLocalization {
|
|
2318
2318
|
constructor(options) {
|
|
2319
|
-
|
|
2320
|
-
|
|
2319
|
+
cov_29ajiy3676().f[1]++;
|
|
2320
|
+
cov_29ajiy3676().s[9]++;
|
|
2321
2321
|
this._namespaces = new Map();
|
|
2322
|
-
|
|
2322
|
+
cov_29ajiy3676().s[10]++;
|
|
2323
2323
|
this.i18next = i18next_1.default.createInstance();
|
|
2324
|
-
|
|
2324
|
+
cov_29ajiy3676().s[11]++;
|
|
2325
2325
|
this._backendOptions = {
|
|
2326
|
-
loadPath: (
|
|
2326
|
+
loadPath: (cov_29ajiy3676().b[3][0]++, options?.urlTemplate) ?? (cov_29ajiy3676().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
|
|
2327
2327
|
crossDomain: true,
|
|
2328
2328
|
...options?.backendHttpOptions
|
|
2329
2329
|
};
|
|
2330
|
-
|
|
2330
|
+
cov_29ajiy3676().s[12]++;
|
|
2331
2331
|
this._detectionOptions = {
|
|
2332
2332
|
order: ["querystring", "navigator", "htmlTag"],
|
|
2333
2333
|
lookupQuerystring: "lng",
|
|
2334
2334
|
caches: [],
|
|
2335
2335
|
...options?.detectorOptions
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2337
|
+
cov_29ajiy3676().s[13]++;
|
|
2338
2338
|
this._initOptions = {
|
|
2339
2339
|
interpolation: {
|
|
2340
2340
|
escapeValue: true
|
|
@@ -2345,40 +2345,40 @@ class ITwinLocalization {
|
|
|
2345
2345
|
detection: this._detectionOptions,
|
|
2346
2346
|
...options?.initOptions
|
|
2347
2347
|
};
|
|
2348
|
-
|
|
2349
|
-
this.i18next.use((
|
|
2348
|
+
cov_29ajiy3676().s[14]++;
|
|
2349
|
+
this.i18next.use((cov_29ajiy3676().b[4][0]++, options?.detectorPlugin) ?? (cov_29ajiy3676().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_29ajiy3676().b[5][0]++, options?.backendPlugin) ?? (cov_29ajiy3676().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
|
|
2350
2350
|
}
|
|
2351
2351
|
async initialize(namespaces) {
|
|
2352
|
-
|
|
2352
|
+
cov_29ajiy3676().f[2]++;
|
|
2353
2353
|
// Also consider namespaces passed into constructor
|
|
2354
|
-
const initNamespaces = (
|
|
2355
|
-
const combinedNamespaces = (
|
|
2356
|
-
const defaultNamespace = (
|
|
2357
|
-
|
|
2354
|
+
const initNamespaces = (cov_29ajiy3676().s[15]++, [(cov_29ajiy3676().b[6][0]++, this._initOptions.ns) || (cov_29ajiy3676().b[6][1]++, [])].flat());
|
|
2355
|
+
const combinedNamespaces = (cov_29ajiy3676().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
|
|
2356
|
+
const defaultNamespace = (cov_29ajiy3676().s[17]++, (cov_29ajiy3676().b[7][0]++, this._initOptions.defaultNS) ?? (cov_29ajiy3676().b[7][1]++, namespaces[0]));
|
|
2357
|
+
cov_29ajiy3676().s[18]++;
|
|
2358
2358
|
if (defaultNamespace) {
|
|
2359
|
-
|
|
2360
|
-
|
|
2359
|
+
cov_29ajiy3676().b[8][0]++;
|
|
2360
|
+
cov_29ajiy3676().s[19]++;
|
|
2361
2361
|
combinedNamespaces.add(defaultNamespace);
|
|
2362
2362
|
} else {
|
|
2363
|
-
|
|
2363
|
+
cov_29ajiy3676().b[8][1]++;
|
|
2364
2364
|
} // Make sure default namespace is in namespaces list
|
|
2365
|
-
const initOptions = (
|
|
2365
|
+
const initOptions = (cov_29ajiy3676().s[20]++, {
|
|
2366
2366
|
...this._initOptions,
|
|
2367
2367
|
defaultNS: defaultNamespace,
|
|
2368
2368
|
ns: [...combinedNamespaces]
|
|
2369
2369
|
});
|
|
2370
2370
|
// if in a development environment, set debugging
|
|
2371
|
-
|
|
2371
|
+
cov_29ajiy3676().s[21]++;
|
|
2372
2372
|
if (false) {} else {
|
|
2373
|
-
|
|
2373
|
+
cov_29ajiy3676().b[9][1]++;
|
|
2374
2374
|
}
|
|
2375
|
-
const initPromise = (
|
|
2376
|
-
|
|
2375
|
+
const initPromise = (cov_29ajiy3676().s[23]++, this.i18next.init(initOptions));
|
|
2376
|
+
cov_29ajiy3676().s[24]++;
|
|
2377
2377
|
for (const ns of namespaces) {
|
|
2378
|
-
|
|
2378
|
+
cov_29ajiy3676().s[25]++;
|
|
2379
2379
|
this._namespaces.set(ns, initPromise);
|
|
2380
2380
|
}
|
|
2381
|
-
|
|
2381
|
+
cov_29ajiy3676().s[26]++;
|
|
2382
2382
|
return initPromise;
|
|
2383
2383
|
}
|
|
2384
2384
|
/** Replace all instances of `%{key}` within a string with the translations of those keys.
|
|
@@ -2398,11 +2398,11 @@ class ITwinLocalization {
|
|
|
2398
2398
|
* @public
|
|
2399
2399
|
*/
|
|
2400
2400
|
getLocalizedKeys(line) {
|
|
2401
|
-
|
|
2402
|
-
|
|
2401
|
+
cov_29ajiy3676().f[3]++;
|
|
2402
|
+
cov_29ajiy3676().s[27]++;
|
|
2403
2403
|
return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
cov_29ajiy3676().f[4]++;
|
|
2405
|
+
cov_29ajiy3676().s[28]++;
|
|
2406
2406
|
return this.getLocalizedString(tag);
|
|
2407
2407
|
});
|
|
2408
2408
|
}
|
|
@@ -2420,25 +2420,25 @@ class ITwinLocalization {
|
|
|
2420
2420
|
* @public
|
|
2421
2421
|
*/
|
|
2422
2422
|
getLocalizedString(key, options) {
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
if ((
|
|
2426
|
-
|
|
2427
|
-
|
|
2423
|
+
cov_29ajiy3676().f[5]++;
|
|
2424
|
+
cov_29ajiy3676().s[29]++;
|
|
2425
|
+
if ((cov_29ajiy3676().b[11][0]++, options?.returnDetails) || (cov_29ajiy3676().b[11][1]++, options?.returnObjects)) {
|
|
2426
|
+
cov_29ajiy3676().b[10][0]++;
|
|
2427
|
+
cov_29ajiy3676().s[30]++;
|
|
2428
2428
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
2429
2429
|
} else {
|
|
2430
|
-
|
|
2430
|
+
cov_29ajiy3676().b[10][1]++;
|
|
2431
2431
|
}
|
|
2432
|
-
const value = (
|
|
2433
|
-
|
|
2432
|
+
const value = (cov_29ajiy3676().s[31]++, this.i18next.t(key, options));
|
|
2433
|
+
cov_29ajiy3676().s[32]++;
|
|
2434
2434
|
if (typeof value !== "string") {
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
cov_29ajiy3676().b[12][0]++;
|
|
2436
|
+
cov_29ajiy3676().s[33]++;
|
|
2437
2437
|
throw new Error("Translation key(s) string not found");
|
|
2438
2438
|
} else {
|
|
2439
|
-
|
|
2439
|
+
cov_29ajiy3676().b[12][1]++;
|
|
2440
2440
|
}
|
|
2441
|
-
|
|
2441
|
+
cov_29ajiy3676().s[34]++;
|
|
2442
2442
|
return value;
|
|
2443
2443
|
}
|
|
2444
2444
|
/** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
|
|
@@ -2450,23 +2450,23 @@ class ITwinLocalization {
|
|
|
2450
2450
|
* @internal
|
|
2451
2451
|
*/
|
|
2452
2452
|
getLocalizedStringWithNamespace(namespace, key, options) {
|
|
2453
|
-
|
|
2454
|
-
let fullKey = (
|
|
2455
|
-
|
|
2453
|
+
cov_29ajiy3676().f[6]++;
|
|
2454
|
+
let fullKey = (cov_29ajiy3676().s[35]++, "");
|
|
2455
|
+
cov_29ajiy3676().s[36]++;
|
|
2456
2456
|
if (typeof key === "string") {
|
|
2457
|
-
|
|
2458
|
-
|
|
2457
|
+
cov_29ajiy3676().b[13][0]++;
|
|
2458
|
+
cov_29ajiy3676().s[37]++;
|
|
2459
2459
|
fullKey = `${namespace}:${key}`;
|
|
2460
2460
|
} else {
|
|
2461
|
-
|
|
2462
|
-
|
|
2461
|
+
cov_29ajiy3676().b[13][1]++;
|
|
2462
|
+
cov_29ajiy3676().s[38]++;
|
|
2463
2463
|
fullKey = key.map(subKey => {
|
|
2464
|
-
|
|
2465
|
-
|
|
2464
|
+
cov_29ajiy3676().f[7]++;
|
|
2465
|
+
cov_29ajiy3676().s[39]++;
|
|
2466
2466
|
return `${namespace}:${subKey}`;
|
|
2467
2467
|
});
|
|
2468
2468
|
}
|
|
2469
|
-
|
|
2469
|
+
cov_29ajiy3676().s[40]++;
|
|
2470
2470
|
return this.getLocalizedString(fullKey, options);
|
|
2471
2471
|
}
|
|
2472
2472
|
/** Gets the English translation.
|
|
@@ -2477,32 +2477,32 @@ class ITwinLocalization {
|
|
|
2477
2477
|
* @internal
|
|
2478
2478
|
*/
|
|
2479
2479
|
getEnglishString(namespace, key, options) {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
if ((
|
|
2483
|
-
|
|
2484
|
-
|
|
2480
|
+
cov_29ajiy3676().f[8]++;
|
|
2481
|
+
cov_29ajiy3676().s[41]++;
|
|
2482
|
+
if ((cov_29ajiy3676().b[15][0]++, options?.returnDetails) || (cov_29ajiy3676().b[15][1]++, options?.returnObjects)) {
|
|
2483
|
+
cov_29ajiy3676().b[14][0]++;
|
|
2484
|
+
cov_29ajiy3676().s[42]++;
|
|
2485
2485
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
2486
2486
|
} else {
|
|
2487
|
-
|
|
2487
|
+
cov_29ajiy3676().b[14][1]++;
|
|
2488
2488
|
}
|
|
2489
|
-
|
|
2489
|
+
cov_29ajiy3676().s[43]++;
|
|
2490
2490
|
options = {
|
|
2491
2491
|
...options,
|
|
2492
2492
|
ns: namespace // ensure namespace argument is used
|
|
2493
2493
|
};
|
|
2494
2494
|
|
|
2495
|
-
const en = (
|
|
2496
|
-
const str = (
|
|
2497
|
-
|
|
2495
|
+
const en = (cov_29ajiy3676().s[44]++, this.i18next.getFixedT("en", namespace));
|
|
2496
|
+
const str = (cov_29ajiy3676().s[45]++, en(key, options));
|
|
2497
|
+
cov_29ajiy3676().s[46]++;
|
|
2498
2498
|
if (typeof str !== "string") {
|
|
2499
|
-
|
|
2500
|
-
|
|
2499
|
+
cov_29ajiy3676().b[16][0]++;
|
|
2500
|
+
cov_29ajiy3676().s[47]++;
|
|
2501
2501
|
throw new Error("Translation key(s) not found");
|
|
2502
2502
|
} else {
|
|
2503
|
-
|
|
2503
|
+
cov_29ajiy3676().b[16][1]++;
|
|
2504
2504
|
}
|
|
2505
|
-
|
|
2505
|
+
cov_29ajiy3676().s[48]++;
|
|
2506
2506
|
return str;
|
|
2507
2507
|
}
|
|
2508
2508
|
/** Get the promise for an already registered Namespace.
|
|
@@ -2510,20 +2510,20 @@ class ITwinLocalization {
|
|
|
2510
2510
|
* @public
|
|
2511
2511
|
*/
|
|
2512
2512
|
getNamespacePromise(name) {
|
|
2513
|
-
|
|
2514
|
-
|
|
2513
|
+
cov_29ajiy3676().f[9]++;
|
|
2514
|
+
cov_29ajiy3676().s[49]++;
|
|
2515
2515
|
return this._namespaces.get(name);
|
|
2516
2516
|
}
|
|
2517
2517
|
/** @internal */
|
|
2518
2518
|
getLanguageList() {
|
|
2519
|
-
|
|
2520
|
-
|
|
2519
|
+
cov_29ajiy3676().f[10]++;
|
|
2520
|
+
cov_29ajiy3676().s[50]++;
|
|
2521
2521
|
return this.i18next.languages;
|
|
2522
2522
|
}
|
|
2523
2523
|
/** override the language detected in the browser */
|
|
2524
2524
|
async changeLanguage(language) {
|
|
2525
|
-
|
|
2526
|
-
|
|
2525
|
+
cov_29ajiy3676().f[11]++;
|
|
2526
|
+
cov_29ajiy3676().s[51]++;
|
|
2527
2527
|
return this.i18next.changeLanguage(language);
|
|
2528
2528
|
}
|
|
2529
2529
|
/** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
|
|
@@ -2535,123 +2535,123 @@ class ITwinLocalization {
|
|
|
2535
2535
|
* @public
|
|
2536
2536
|
*/
|
|
2537
2537
|
async registerNamespace(name) {
|
|
2538
|
-
|
|
2539
|
-
const existing = (
|
|
2540
|
-
|
|
2538
|
+
cov_29ajiy3676().f[12]++;
|
|
2539
|
+
const existing = (cov_29ajiy3676().s[52]++, this._namespaces.get(name));
|
|
2540
|
+
cov_29ajiy3676().s[53]++;
|
|
2541
2541
|
if (existing !== undefined) {
|
|
2542
|
-
|
|
2543
|
-
|
|
2542
|
+
cov_29ajiy3676().b[17][0]++;
|
|
2543
|
+
cov_29ajiy3676().s[54]++;
|
|
2544
2544
|
return existing;
|
|
2545
2545
|
} else {
|
|
2546
|
-
|
|
2546
|
+
cov_29ajiy3676().b[17][1]++;
|
|
2547
2547
|
}
|
|
2548
|
-
const theReadPromise = (
|
|
2549
|
-
|
|
2550
|
-
|
|
2548
|
+
const theReadPromise = (cov_29ajiy3676().s[55]++, new Promise(resolve => {
|
|
2549
|
+
cov_29ajiy3676().f[13]++;
|
|
2550
|
+
cov_29ajiy3676().s[56]++;
|
|
2551
2551
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
2552
2552
|
this.i18next.loadNamespaces(name, err => {
|
|
2553
|
-
|
|
2554
|
-
|
|
2553
|
+
cov_29ajiy3676().f[14]++;
|
|
2554
|
+
cov_29ajiy3676().s[57]++;
|
|
2555
2555
|
if (!err) {
|
|
2556
|
-
|
|
2557
|
-
|
|
2556
|
+
cov_29ajiy3676().b[18][0]++;
|
|
2557
|
+
cov_29ajiy3676().s[58]++;
|
|
2558
2558
|
return resolve();
|
|
2559
2559
|
} else {
|
|
2560
|
-
|
|
2560
|
+
cov_29ajiy3676().b[18][1]++;
|
|
2561
2561
|
}
|
|
2562
2562
|
// Here we got a non-null err object.
|
|
2563
2563
|
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
2564
2564
|
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
2565
2565
|
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
2566
2566
|
// There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
|
|
2567
|
-
let locales = (
|
|
2568
|
-
|
|
2569
|
-
|
|
2567
|
+
let locales = (cov_29ajiy3676().s[59]++, this.getLanguageList().map(thisLocale => {
|
|
2568
|
+
cov_29ajiy3676().f[15]++;
|
|
2569
|
+
cov_29ajiy3676().s[60]++;
|
|
2570
2570
|
return `/${thisLocale}/`;
|
|
2571
2571
|
}));
|
|
2572
|
-
|
|
2572
|
+
cov_29ajiy3676().s[61]++;
|
|
2573
2573
|
try {
|
|
2574
|
-
|
|
2574
|
+
cov_29ajiy3676().s[62]++;
|
|
2575
2575
|
for (const thisError of err) {
|
|
2576
|
-
|
|
2576
|
+
cov_29ajiy3676().s[63]++;
|
|
2577
2577
|
if (typeof thisError === "string") {
|
|
2578
|
-
|
|
2579
|
-
|
|
2578
|
+
cov_29ajiy3676().b[19][0]++;
|
|
2579
|
+
cov_29ajiy3676().s[64]++;
|
|
2580
2580
|
locales = locales.filter(thisLocale => {
|
|
2581
|
-
|
|
2582
|
-
|
|
2581
|
+
cov_29ajiy3676().f[16]++;
|
|
2582
|
+
cov_29ajiy3676().s[65]++;
|
|
2583
2583
|
return !thisError.includes(thisLocale);
|
|
2584
2584
|
});
|
|
2585
2585
|
} else {
|
|
2586
|
-
|
|
2586
|
+
cov_29ajiy3676().b[19][1]++;
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
} catch (e) {
|
|
2590
|
-
|
|
2590
|
+
cov_29ajiy3676().s[66]++;
|
|
2591
2591
|
locales = [];
|
|
2592
2592
|
}
|
|
2593
2593
|
// if we removed every locale from the array, it wasn't loaded.
|
|
2594
|
-
|
|
2594
|
+
cov_29ajiy3676().s[67]++;
|
|
2595
2595
|
if (locales.length === 0) {
|
|
2596
|
-
|
|
2597
|
-
|
|
2596
|
+
cov_29ajiy3676().b[20][0]++;
|
|
2597
|
+
cov_29ajiy3676().s[68]++;
|
|
2598
2598
|
core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
|
|
2599
2599
|
} else {
|
|
2600
|
-
|
|
2600
|
+
cov_29ajiy3676().b[20][1]++;
|
|
2601
2601
|
}
|
|
2602
|
-
|
|
2602
|
+
cov_29ajiy3676().s[69]++;
|
|
2603
2603
|
resolve();
|
|
2604
2604
|
});
|
|
2605
2605
|
}));
|
|
2606
|
-
|
|
2606
|
+
cov_29ajiy3676().s[70]++;
|
|
2607
2607
|
this._namespaces.set(name, theReadPromise);
|
|
2608
|
-
|
|
2608
|
+
cov_29ajiy3676().s[71]++;
|
|
2609
2609
|
return theReadPromise;
|
|
2610
2610
|
}
|
|
2611
2611
|
/** @internal */
|
|
2612
2612
|
unregisterNamespace(name) {
|
|
2613
|
-
|
|
2614
|
-
|
|
2613
|
+
cov_29ajiy3676().f[17]++;
|
|
2614
|
+
cov_29ajiy3676().s[72]++;
|
|
2615
2615
|
this._namespaces.delete(name);
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
2618
|
-
|
|
2618
|
+
cov_29ajiy3676().s[73]++;
|
|
2619
2619
|
exports.ITwinLocalization = ITwinLocalization;
|
|
2620
2620
|
class TranslationLogger {
|
|
2621
2621
|
log(args) {
|
|
2622
|
-
|
|
2623
|
-
|
|
2622
|
+
cov_29ajiy3676().f[18]++;
|
|
2623
|
+
cov_29ajiy3676().s[74]++;
|
|
2624
2624
|
core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
|
|
2625
2625
|
}
|
|
2626
2626
|
warn(args) {
|
|
2627
|
-
|
|
2628
|
-
|
|
2627
|
+
cov_29ajiy3676().f[19]++;
|
|
2628
|
+
cov_29ajiy3676().s[75]++;
|
|
2629
2629
|
core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
|
|
2630
2630
|
}
|
|
2631
2631
|
error(args) {
|
|
2632
|
-
|
|
2633
|
-
|
|
2632
|
+
cov_29ajiy3676().f[20]++;
|
|
2633
|
+
cov_29ajiy3676().s[76]++;
|
|
2634
2634
|
core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
|
|
2635
2635
|
}
|
|
2636
2636
|
createLogMessage(args) {
|
|
2637
|
-
|
|
2638
|
-
let message = (
|
|
2639
|
-
|
|
2640
|
-
for (let i = (
|
|
2641
|
-
|
|
2637
|
+
cov_29ajiy3676().f[21]++;
|
|
2638
|
+
let message = (cov_29ajiy3676().s[77]++, args[0]);
|
|
2639
|
+
cov_29ajiy3676().s[78]++;
|
|
2640
|
+
for (let i = (cov_29ajiy3676().s[79]++, 1); i < args.length; ++i) {
|
|
2641
|
+
cov_29ajiy3676().s[80]++;
|
|
2642
2642
|
if (typeof args[i] === "string") {
|
|
2643
|
-
|
|
2644
|
-
|
|
2643
|
+
cov_29ajiy3676().b[21][0]++;
|
|
2644
|
+
cov_29ajiy3676().s[81]++;
|
|
2645
2645
|
message += `\n ${args[i]}`;
|
|
2646
2646
|
} else {
|
|
2647
|
-
|
|
2647
|
+
cov_29ajiy3676().b[21][1]++;
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
|
|
2650
|
+
cov_29ajiy3676().s[82]++;
|
|
2651
2651
|
return message;
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
|
|
2654
|
+
cov_29ajiy3676().s[83]++;
|
|
2655
2655
|
TranslationLogger.type = "logger";
|
|
2656
2656
|
|
|
2657
2657
|
/***/ }),
|
|
@@ -13478,8 +13478,8 @@ module.exports = getFuncName;
|
|
|
13478
13478
|
"use strict";
|
|
13479
13479
|
|
|
13480
13480
|
|
|
13481
|
-
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13482
|
-
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13481
|
+
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
13482
|
+
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/createClass.js");
|
|
13483
13483
|
|
|
13484
13484
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13485
13485
|
|
|
@@ -13911,15 +13911,15 @@ module.exports = Browser;
|
|
|
13911
13911
|
"use strict";
|
|
13912
13912
|
|
|
13913
13913
|
|
|
13914
|
-
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13915
|
-
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13916
|
-
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13917
|
-
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13918
|
-
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13919
|
-
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13920
|
-
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13921
|
-
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13922
|
-
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
13914
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js");
|
|
13915
|
+
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
13916
|
+
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/createClass.js");
|
|
13917
|
+
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
13918
|
+
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/inherits.js");
|
|
13919
|
+
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
|
|
13920
|
+
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
|
|
13921
|
+
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/defineProperty.js");
|
|
13922
|
+
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toArray.js");
|
|
13923
13923
|
|
|
13924
13924
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13925
13925
|
|
|
@@ -18399,7 +18399,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18399
18399
|
"use strict";
|
|
18400
18400
|
__webpack_require__.r(__webpack_exports__);
|
|
18401
18401
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18402
|
-
/* harmony export */
|
|
18402
|
+
/* harmony export */ assert: () => (/* binding */ assert)
|
|
18403
18403
|
/* harmony export */ });
|
|
18404
18404
|
/*---------------------------------------------------------------------------------------------
|
|
18405
18405
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -18455,9 +18455,9 @@ function assert(condition, message) {
|
|
|
18455
18455
|
"use strict";
|
|
18456
18456
|
__webpack_require__.r(__webpack_exports__);
|
|
18457
18457
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18458
|
-
/* harmony export */
|
|
18459
|
-
/* harmony export */
|
|
18460
|
-
/* harmony export */
|
|
18458
|
+
/* harmony export */ BeEvent: () => (/* binding */ BeEvent),
|
|
18459
|
+
/* harmony export */ BeEventList: () => (/* binding */ BeEventList),
|
|
18460
|
+
/* harmony export */ BeUiEvent: () => (/* binding */ BeUiEvent)
|
|
18461
18461
|
/* harmony export */ });
|
|
18462
18462
|
/* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
|
|
18463
18463
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -18623,9 +18623,9 @@ class BeEventList {
|
|
|
18623
18623
|
"use strict";
|
|
18624
18624
|
__webpack_require__.r(__webpack_exports__);
|
|
18625
18625
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18626
|
-
/* harmony export */
|
|
18627
|
-
/* harmony export */
|
|
18628
|
-
/* harmony export */
|
|
18626
|
+
/* harmony export */ DbOpcode: () => (/* binding */ DbOpcode),
|
|
18627
|
+
/* harmony export */ DbResult: () => (/* binding */ DbResult),
|
|
18628
|
+
/* harmony export */ OpenMode: () => (/* binding */ OpenMode)
|
|
18629
18629
|
/* harmony export */ });
|
|
18630
18630
|
/*---------------------------------------------------------------------------------------------
|
|
18631
18631
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -18822,17 +18822,17 @@ var DbResult;
|
|
|
18822
18822
|
"use strict";
|
|
18823
18823
|
__webpack_require__.r(__webpack_exports__);
|
|
18824
18824
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18825
|
-
/* harmony export */
|
|
18826
|
-
/* harmony export */
|
|
18827
|
-
/* harmony export */
|
|
18828
|
-
/* harmony export */
|
|
18829
|
-
/* harmony export */
|
|
18830
|
-
/* harmony export */
|
|
18831
|
-
/* harmony export */
|
|
18832
|
-
/* harmony export */
|
|
18833
|
-
/* harmony export */
|
|
18834
|
-
/* harmony export */
|
|
18835
|
-
/* harmony export */
|
|
18825
|
+
/* harmony export */ BentleyError: () => (/* binding */ BentleyError),
|
|
18826
|
+
/* harmony export */ BentleyStatus: () => (/* binding */ BentleyStatus),
|
|
18827
|
+
/* harmony export */ BriefcaseStatus: () => (/* binding */ BriefcaseStatus),
|
|
18828
|
+
/* harmony export */ ChangeSetStatus: () => (/* binding */ ChangeSetStatus),
|
|
18829
|
+
/* harmony export */ GeoServiceStatus: () => (/* binding */ GeoServiceStatus),
|
|
18830
|
+
/* harmony export */ HttpStatus: () => (/* binding */ HttpStatus),
|
|
18831
|
+
/* harmony export */ IModelHubStatus: () => (/* binding */ IModelHubStatus),
|
|
18832
|
+
/* harmony export */ IModelStatus: () => (/* binding */ IModelStatus),
|
|
18833
|
+
/* harmony export */ RealityDataStatus: () => (/* binding */ RealityDataStatus),
|
|
18834
|
+
/* harmony export */ RepositoryStatus: () => (/* binding */ RepositoryStatus),
|
|
18835
|
+
/* harmony export */ RpcInterfaceStatus: () => (/* binding */ RpcInterfaceStatus)
|
|
18836
18836
|
/* harmony export */ });
|
|
18837
18837
|
/* harmony import */ var _BeSQLite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeSQLite */ "../bentley/lib/esm/BeSQLite.js");
|
|
18838
18838
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -19547,7 +19547,7 @@ class BentleyError extends Error {
|
|
|
19547
19547
|
"use strict";
|
|
19548
19548
|
__webpack_require__.r(__webpack_exports__);
|
|
19549
19549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19550
|
-
/* harmony export */
|
|
19550
|
+
/* harmony export */ BentleyLoggerCategory: () => (/* binding */ BentleyLoggerCategory)
|
|
19551
19551
|
/* harmony export */ });
|
|
19552
19552
|
/*---------------------------------------------------------------------------------------------
|
|
19553
19553
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -19578,7 +19578,7 @@ var BentleyLoggerCategory;
|
|
|
19578
19578
|
"use strict";
|
|
19579
19579
|
__webpack_require__.r(__webpack_exports__);
|
|
19580
19580
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19581
|
-
/* harmony export */
|
|
19581
|
+
/* harmony export */ ByteStream: () => (/* binding */ ByteStream)
|
|
19582
19582
|
/* harmony export */ });
|
|
19583
19583
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
19584
19584
|
/* harmony import */ var _Id__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Id */ "../bentley/lib/esm/Id.js");
|
|
@@ -19750,27 +19750,32 @@ class ByteStream {
|
|
|
19750
19750
|
"use strict";
|
|
19751
19751
|
__webpack_require__.r(__webpack_exports__);
|
|
19752
19752
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19753
|
-
/* harmony export */
|
|
19754
|
-
/* harmony export */
|
|
19753
|
+
/* harmony export */ isProperSubclassOf: () => (/* binding */ isProperSubclassOf),
|
|
19754
|
+
/* harmony export */ isSubclassOf: () => (/* binding */ isSubclassOf)
|
|
19755
19755
|
/* harmony export */ });
|
|
19756
19756
|
/*---------------------------------------------------------------------------------------------
|
|
19757
19757
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
19758
19758
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
19759
19759
|
*--------------------------------------------------------------------------------------------*/
|
|
19760
|
+
/** @packageDocumentation
|
|
19761
|
+
* @module Utils
|
|
19762
|
+
*/
|
|
19760
19763
|
/** Check if class `subclass` is a different class from `superclass` but extends from `superclass`
|
|
19761
|
-
* @internal
|
|
19762
19764
|
* @param subclass the class that may be a subclass of `superclass`
|
|
19763
19765
|
* @param superclass the class that may be a base class of `subclass`
|
|
19766
|
+
* @note The constructors of all types must be `public`.
|
|
19764
19767
|
* @returns whether `subclass` is a proper subclass of `superclass`
|
|
19768
|
+
* @public
|
|
19765
19769
|
*/
|
|
19766
19770
|
function isProperSubclassOf(subclass, superclass) {
|
|
19767
19771
|
return subclass.prototype instanceof superclass;
|
|
19768
19772
|
}
|
|
19769
19773
|
/** Check if class `subclass` is `superclass` or extends from `superclass`
|
|
19770
|
-
* @
|
|
19771
|
-
* @param
|
|
19772
|
-
* @
|
|
19774
|
+
* @param subclass the class that may be a subclass of `superclass`.
|
|
19775
|
+
* @param superclass the class that may be a base class of `subclass`.
|
|
19776
|
+
* @note The constructors of all types must be `public`.
|
|
19773
19777
|
* @returns whether `subclass` is a subclass of `superclass`
|
|
19778
|
+
* @public
|
|
19774
19779
|
*/
|
|
19775
19780
|
function isSubclassOf(subclass, superclass) {
|
|
19776
19781
|
return subclass === superclass || isProperSubclassOf(subclass, superclass);
|
|
@@ -19788,15 +19793,15 @@ function isSubclassOf(subclass, superclass) {
|
|
|
19788
19793
|
"use strict";
|
|
19789
19794
|
__webpack_require__.r(__webpack_exports__);
|
|
19790
19795
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19791
|
-
/* harmony export */
|
|
19792
|
-
/* harmony export */
|
|
19793
|
-
/* harmony export */
|
|
19794
|
-
/* harmony export */
|
|
19795
|
-
/* harmony export */
|
|
19796
|
-
/* harmony export */
|
|
19797
|
-
/* harmony export */
|
|
19798
|
-
/* harmony export */
|
|
19799
|
-
/* harmony export */
|
|
19796
|
+
/* harmony export */ areEqualPossiblyUndefined: () => (/* binding */ areEqualPossiblyUndefined),
|
|
19797
|
+
/* harmony export */ compareBooleans: () => (/* binding */ compareBooleans),
|
|
19798
|
+
/* harmony export */ compareBooleansOrUndefined: () => (/* binding */ compareBooleansOrUndefined),
|
|
19799
|
+
/* harmony export */ compareNumbers: () => (/* binding */ compareNumbers),
|
|
19800
|
+
/* harmony export */ compareNumbersOrUndefined: () => (/* binding */ compareNumbersOrUndefined),
|
|
19801
|
+
/* harmony export */ comparePossiblyUndefined: () => (/* binding */ comparePossiblyUndefined),
|
|
19802
|
+
/* harmony export */ compareStrings: () => (/* binding */ compareStrings),
|
|
19803
|
+
/* harmony export */ compareStringsOrUndefined: () => (/* binding */ compareStringsOrUndefined),
|
|
19804
|
+
/* harmony export */ compareWithTolerance: () => (/* binding */ compareWithTolerance)
|
|
19800
19805
|
/* harmony export */ });
|
|
19801
19806
|
/*---------------------------------------------------------------------------------------------
|
|
19802
19807
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -19874,9 +19879,9 @@ function areEqualPossiblyUndefined(t, u, areEqual) {
|
|
|
19874
19879
|
"use strict";
|
|
19875
19880
|
__webpack_require__.r(__webpack_exports__);
|
|
19876
19881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19877
|
-
/* harmony export */
|
|
19878
|
-
/* harmony export */
|
|
19879
|
-
/* harmony export */
|
|
19882
|
+
/* harmony export */ CompressedId64Set: () => (/* binding */ CompressedId64Set),
|
|
19883
|
+
/* harmony export */ MutableCompressedId64Set: () => (/* binding */ MutableCompressedId64Set),
|
|
19884
|
+
/* harmony export */ OrderedId64Array: () => (/* binding */ OrderedId64Array)
|
|
19880
19885
|
/* harmony export */ });
|
|
19881
19886
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
19882
19887
|
/* harmony import */ var _Id__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Id */ "../bentley/lib/esm/Id.js");
|
|
@@ -20318,7 +20323,7 @@ class MutableCompressedId64Set {
|
|
|
20318
20323
|
"use strict";
|
|
20319
20324
|
__webpack_require__.r(__webpack_exports__);
|
|
20320
20325
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20321
|
-
/* harmony export */
|
|
20326
|
+
/* harmony export */ Dictionary: () => (/* binding */ Dictionary)
|
|
20322
20327
|
/* harmony export */ });
|
|
20323
20328
|
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
|
|
20324
20329
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -20533,11 +20538,11 @@ class Dictionary {
|
|
|
20533
20538
|
"use strict";
|
|
20534
20539
|
__webpack_require__.r(__webpack_exports__);
|
|
20535
20540
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20536
|
-
/* harmony export */
|
|
20537
|
-
/* harmony export */
|
|
20538
|
-
/* harmony export */
|
|
20539
|
-
/* harmony export */
|
|
20540
|
-
/* harmony export */
|
|
20541
|
+
/* harmony export */ DisposableList: () => (/* binding */ DisposableList),
|
|
20542
|
+
/* harmony export */ dispose: () => (/* binding */ dispose),
|
|
20543
|
+
/* harmony export */ disposeArray: () => (/* binding */ disposeArray),
|
|
20544
|
+
/* harmony export */ isIDisposable: () => (/* binding */ isIDisposable),
|
|
20545
|
+
/* harmony export */ using: () => (/* binding */ using)
|
|
20541
20546
|
/* harmony export */ });
|
|
20542
20547
|
/*---------------------------------------------------------------------------------------------
|
|
20543
20548
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -20664,9 +20669,9 @@ class DisposableList {
|
|
|
20664
20669
|
"use strict";
|
|
20665
20670
|
__webpack_require__.r(__webpack_exports__);
|
|
20666
20671
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20667
|
-
/* harmony export */
|
|
20668
|
-
/* harmony export */
|
|
20669
|
-
/* harmony export */
|
|
20672
|
+
/* harmony export */ Guid: () => (/* binding */ Guid),
|
|
20673
|
+
/* harmony export */ Id64: () => (/* binding */ Id64),
|
|
20674
|
+
/* harmony export */ TransientIdSequence: () => (/* binding */ TransientIdSequence)
|
|
20670
20675
|
/* harmony export */ });
|
|
20671
20676
|
/*---------------------------------------------------------------------------------------------
|
|
20672
20677
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -21320,8 +21325,8 @@ var Guid;
|
|
|
21320
21325
|
"use strict";
|
|
21321
21326
|
__webpack_require__.r(__webpack_exports__);
|
|
21322
21327
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21323
|
-
/* harmony export */
|
|
21324
|
-
/* harmony export */
|
|
21328
|
+
/* harmony export */ IndexMap: () => (/* binding */ IndexMap),
|
|
21329
|
+
/* harmony export */ IndexedValue: () => (/* binding */ IndexedValue)
|
|
21325
21330
|
/* harmony export */ });
|
|
21326
21331
|
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
|
|
21327
21332
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -21443,7 +21448,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21443
21448
|
"use strict";
|
|
21444
21449
|
__webpack_require__.r(__webpack_exports__);
|
|
21445
21450
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21446
|
-
/* harmony export */
|
|
21451
|
+
/* harmony export */ JsonUtils: () => (/* binding */ JsonUtils)
|
|
21447
21452
|
/* harmony export */ });
|
|
21448
21453
|
/*---------------------------------------------------------------------------------------------
|
|
21449
21454
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -21606,10 +21611,10 @@ var JsonUtils;
|
|
|
21606
21611
|
"use strict";
|
|
21607
21612
|
__webpack_require__.r(__webpack_exports__);
|
|
21608
21613
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21609
|
-
/* harmony export */
|
|
21610
|
-
/* harmony export */
|
|
21611
|
-
/* harmony export */
|
|
21612
|
-
/* harmony export */
|
|
21614
|
+
/* harmony export */ Entry: () => (/* binding */ Entry),
|
|
21615
|
+
/* harmony export */ LRUCache: () => (/* binding */ LRUCache),
|
|
21616
|
+
/* harmony export */ LRUDictionary: () => (/* binding */ LRUDictionary),
|
|
21617
|
+
/* harmony export */ LRUMap: () => (/* binding */ LRUMap)
|
|
21613
21618
|
/* harmony export */ });
|
|
21614
21619
|
/* harmony import */ var _Dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dictionary */ "../bentley/lib/esm/Dictionary.js");
|
|
21615
21620
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -21951,9 +21956,9 @@ class LRUDictionary extends LRUCache {
|
|
|
21951
21956
|
"use strict";
|
|
21952
21957
|
__webpack_require__.r(__webpack_exports__);
|
|
21953
21958
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21954
|
-
/* harmony export */
|
|
21955
|
-
/* harmony export */
|
|
21956
|
-
/* harmony export */
|
|
21959
|
+
/* harmony export */ LogLevel: () => (/* binding */ LogLevel),
|
|
21960
|
+
/* harmony export */ Logger: () => (/* binding */ Logger),
|
|
21961
|
+
/* harmony export */ PerfLogger: () => (/* binding */ PerfLogger)
|
|
21957
21962
|
/* harmony export */ });
|
|
21958
21963
|
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
21959
21964
|
/* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../bentley/lib/esm/BentleyLoggerCategory.js");
|
|
@@ -22223,7 +22228,7 @@ PerfLogger._severity = LogLevel.Info;
|
|
|
22223
22228
|
"use strict";
|
|
22224
22229
|
__webpack_require__.r(__webpack_exports__);
|
|
22225
22230
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22226
|
-
/* harmony export */
|
|
22231
|
+
/* harmony export */ ObservableSet: () => (/* binding */ ObservableSet)
|
|
22227
22232
|
/* harmony export */ });
|
|
22228
22233
|
/* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeEvent */ "../bentley/lib/esm/BeEvent.js");
|
|
22229
22234
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -22286,8 +22291,8 @@ class ObservableSet extends Set {
|
|
|
22286
22291
|
"use strict";
|
|
22287
22292
|
__webpack_require__.r(__webpack_exports__);
|
|
22288
22293
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22289
|
-
/* harmony export */
|
|
22290
|
-
/* harmony export */
|
|
22294
|
+
/* harmony export */ AbandonedError: () => (/* binding */ AbandonedError),
|
|
22295
|
+
/* harmony export */ OneAtATimeAction: () => (/* binding */ OneAtATimeAction)
|
|
22291
22296
|
/* harmony export */ });
|
|
22292
22297
|
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
22293
22298
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -22392,7 +22397,7 @@ class OneAtATimeAction {
|
|
|
22392
22397
|
"use strict";
|
|
22393
22398
|
__webpack_require__.r(__webpack_exports__);
|
|
22394
22399
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22395
|
-
/* harmony export */
|
|
22400
|
+
/* harmony export */ OrderedId64Iterable: () => (/* binding */ OrderedId64Iterable)
|
|
22396
22401
|
/* harmony export */ });
|
|
22397
22402
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
22398
22403
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -22640,8 +22645,8 @@ var OrderedId64Iterable;
|
|
|
22640
22645
|
"use strict";
|
|
22641
22646
|
__webpack_require__.r(__webpack_exports__);
|
|
22642
22647
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22643
|
-
/* harmony export */
|
|
22644
|
-
/* harmony export */
|
|
22648
|
+
/* harmony export */ OrderedSet: () => (/* binding */ OrderedSet),
|
|
22649
|
+
/* harmony export */ ReadonlyOrderedSet: () => (/* binding */ ReadonlyOrderedSet)
|
|
22645
22650
|
/* harmony export */ });
|
|
22646
22651
|
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
|
|
22647
22652
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -22716,7 +22721,7 @@ class OrderedSet extends ReadonlyOrderedSet {
|
|
|
22716
22721
|
"use strict";
|
|
22717
22722
|
__webpack_require__.r(__webpack_exports__);
|
|
22718
22723
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22719
|
-
/* harmony export */
|
|
22724
|
+
/* harmony export */ PriorityQueue: () => (/* binding */ PriorityQueue)
|
|
22720
22725
|
/* harmony export */ });
|
|
22721
22726
|
/* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
|
|
22722
22727
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -22868,7 +22873,7 @@ class PriorityQueue {
|
|
|
22868
22873
|
"use strict";
|
|
22869
22874
|
__webpack_require__.r(__webpack_exports__);
|
|
22870
22875
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22871
|
-
/* harmony export */
|
|
22876
|
+
/* harmony export */ ProcessDetector: () => (/* binding */ ProcessDetector)
|
|
22872
22877
|
/* harmony export */ });
|
|
22873
22878
|
/*---------------------------------------------------------------------------------------------
|
|
22874
22879
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -22950,11 +22955,11 @@ class ProcessDetector {
|
|
|
22950
22955
|
"use strict";
|
|
22951
22956
|
__webpack_require__.r(__webpack_exports__);
|
|
22952
22957
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22953
|
-
/* harmony export */
|
|
22954
|
-
/* harmony export */
|
|
22955
|
-
/* harmony export */
|
|
22956
|
-
/* harmony export */
|
|
22957
|
-
/* harmony export */
|
|
22958
|
+
/* harmony export */ DuplicatePolicy: () => (/* binding */ DuplicatePolicy),
|
|
22959
|
+
/* harmony export */ ReadonlySortedArray: () => (/* binding */ ReadonlySortedArray),
|
|
22960
|
+
/* harmony export */ SortedArray: () => (/* binding */ SortedArray),
|
|
22961
|
+
/* harmony export */ lowerBound: () => (/* binding */ lowerBound),
|
|
22962
|
+
/* harmony export */ shallowClone: () => (/* binding */ shallowClone)
|
|
22958
22963
|
/* harmony export */ });
|
|
22959
22964
|
/*---------------------------------------------------------------------------------------------
|
|
22960
22965
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -23277,9 +23282,9 @@ class SortedArray extends ReadonlySortedArray {
|
|
|
23277
23282
|
"use strict";
|
|
23278
23283
|
__webpack_require__.r(__webpack_exports__);
|
|
23279
23284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23280
|
-
/* harmony export */
|
|
23281
|
-
/* harmony export */
|
|
23282
|
-
/* harmony export */
|
|
23285
|
+
/* harmony export */ ErrorCategory: () => (/* binding */ ErrorCategory),
|
|
23286
|
+
/* harmony export */ StatusCategory: () => (/* binding */ StatusCategory),
|
|
23287
|
+
/* harmony export */ SuccessCategory: () => (/* binding */ SuccessCategory)
|
|
23283
23288
|
/* harmony export */ });
|
|
23284
23289
|
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
23285
23290
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -23750,9 +23755,9 @@ function lookupCategory(error) {
|
|
|
23750
23755
|
"use strict";
|
|
23751
23756
|
__webpack_require__.r(__webpack_exports__);
|
|
23752
23757
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23753
|
-
/* harmony export */
|
|
23754
|
-
/* harmony export */
|
|
23755
|
-
/* harmony export */
|
|
23758
|
+
/* harmony export */ base64StringToUint8Array: () => (/* binding */ base64StringToUint8Array),
|
|
23759
|
+
/* harmony export */ utf8ToString: () => (/* binding */ utf8ToString),
|
|
23760
|
+
/* harmony export */ utf8ToStringPolyfill: () => (/* binding */ utf8ToStringPolyfill)
|
|
23756
23761
|
/* harmony export */ });
|
|
23757
23762
|
/*---------------------------------------------------------------------------------------------
|
|
23758
23763
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -23909,9 +23914,9 @@ function base64StringToUint8Array(base64) {
|
|
|
23909
23914
|
"use strict";
|
|
23910
23915
|
__webpack_require__.r(__webpack_exports__);
|
|
23911
23916
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23912
|
-
/* harmony export */
|
|
23913
|
-
/* harmony export */
|
|
23914
|
-
/* harmony export */
|
|
23917
|
+
/* harmony export */ BeDuration: () => (/* binding */ BeDuration),
|
|
23918
|
+
/* harmony export */ BeTimePoint: () => (/* binding */ BeTimePoint),
|
|
23919
|
+
/* harmony export */ StopWatch: () => (/* binding */ StopWatch)
|
|
23915
23920
|
/* harmony export */ });
|
|
23916
23921
|
/*---------------------------------------------------------------------------------------------
|
|
23917
23922
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -24072,8 +24077,8 @@ class StopWatch {
|
|
|
24072
24077
|
"use strict";
|
|
24073
24078
|
__webpack_require__.r(__webpack_exports__);
|
|
24074
24079
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24075
|
-
/* harmony export */
|
|
24076
|
-
/* harmony export */
|
|
24080
|
+
/* harmony export */ SpanKind: () => (/* binding */ SpanKind),
|
|
24081
|
+
/* harmony export */ Tracing: () => (/* binding */ Tracing)
|
|
24077
24082
|
/* harmony export */ });
|
|
24078
24083
|
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../bentley/lib/esm/Logger.js");
|
|
24079
24084
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -24219,7 +24224,7 @@ class Tracing {
|
|
|
24219
24224
|
"use strict";
|
|
24220
24225
|
__webpack_require__.r(__webpack_exports__);
|
|
24221
24226
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24222
|
-
/* harmony export */
|
|
24227
|
+
/* harmony export */ TupleKeyedMap: () => (/* binding */ TupleKeyedMap)
|
|
24223
24228
|
/* harmony export */ });
|
|
24224
24229
|
/*---------------------------------------------------------------------------------------------
|
|
24225
24230
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -24332,11 +24337,11 @@ class TupleKeyedMap {
|
|
|
24332
24337
|
"use strict";
|
|
24333
24338
|
__webpack_require__.r(__webpack_exports__);
|
|
24334
24339
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24335
|
-
/* harmony export */
|
|
24336
|
-
/* harmony export */
|
|
24337
|
-
/* harmony export */
|
|
24338
|
-
/* harmony export */
|
|
24339
|
-
/* harmony export */
|
|
24340
|
+
/* harmony export */ TypedArrayBuilder: () => (/* binding */ TypedArrayBuilder),
|
|
24341
|
+
/* harmony export */ Uint16ArrayBuilder: () => (/* binding */ Uint16ArrayBuilder),
|
|
24342
|
+
/* harmony export */ Uint32ArrayBuilder: () => (/* binding */ Uint32ArrayBuilder),
|
|
24343
|
+
/* harmony export */ Uint8ArrayBuilder: () => (/* binding */ Uint8ArrayBuilder),
|
|
24344
|
+
/* harmony export */ UintArrayBuilder: () => (/* binding */ UintArrayBuilder)
|
|
24340
24345
|
/* harmony export */ });
|
|
24341
24346
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
24342
24347
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -24550,7 +24555,7 @@ class UintArrayBuilder extends TypedArrayBuilder {
|
|
|
24550
24555
|
"use strict";
|
|
24551
24556
|
__webpack_require__.r(__webpack_exports__);
|
|
24552
24557
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24553
|
-
/* harmony export */
|
|
24558
|
+
/* harmony export */ UnexpectedErrors: () => (/* binding */ UnexpectedErrors)
|
|
24554
24559
|
/* harmony export */ });
|
|
24555
24560
|
/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "../bentley/lib/esm/Logger.js");
|
|
24556
24561
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -24631,9 +24636,9 @@ UnexpectedErrors._handler = _a.errorLog; // default to error logging
|
|
|
24631
24636
|
"use strict";
|
|
24632
24637
|
__webpack_require__.r(__webpack_exports__);
|
|
24633
24638
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24634
|
-
/* harmony export */
|
|
24635
|
-
/* harmony export */
|
|
24636
|
-
/* harmony export */
|
|
24639
|
+
/* harmony export */ asInstanceOf: () => (/* binding */ asInstanceOf),
|
|
24640
|
+
/* harmony export */ isInstanceOf: () => (/* binding */ isInstanceOf),
|
|
24641
|
+
/* harmony export */ omit: () => (/* binding */ omit)
|
|
24637
24642
|
/* harmony export */ });
|
|
24638
24643
|
/*---------------------------------------------------------------------------------------------
|
|
24639
24644
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -24682,34 +24687,42 @@ function omit(t, keys) {
|
|
|
24682
24687
|
"use strict";
|
|
24683
24688
|
__webpack_require__.r(__webpack_exports__);
|
|
24684
24689
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24685
|
-
/* harmony export */
|
|
24690
|
+
/* harmony export */ YieldManager: () => (/* binding */ YieldManager)
|
|
24686
24691
|
/* harmony export */ });
|
|
24687
24692
|
/*---------------------------------------------------------------------------------------------
|
|
24688
24693
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
24689
24694
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
24690
24695
|
*--------------------------------------------------------------------------------------------*/
|
|
24691
|
-
/** @
|
|
24696
|
+
/** @packageDocumentation
|
|
24697
|
+
* @module Utils
|
|
24698
|
+
*/
|
|
24692
24699
|
const defaultYieldManagerOptions = {
|
|
24693
24700
|
iterationsBeforeYield: 1000,
|
|
24694
24701
|
};
|
|
24695
|
-
/**
|
|
24696
|
-
*
|
|
24697
|
-
*
|
|
24698
|
-
*
|
|
24699
|
-
*
|
|
24700
|
-
*
|
|
24702
|
+
/** Provides a mechanism by which a loop can be made to periodically yield control back to the browser/node environment.
|
|
24703
|
+
* This can alleviate [performance and memory consumption issues](https://github.com/nodejs/node-addon-api/issues/1140).
|
|
24704
|
+
* It maintains a count of the number of iterations that have occurred since the last yield.
|
|
24705
|
+
* The constructor specifies how many iterations of the loop are permitted before yielding.
|
|
24706
|
+
* The loop should `await` [[allowYield]] on each iteration.
|
|
24707
|
+
* [[allowYield]] will yield (and reset the iteration counter) if the counter exceeds the specified maximum.
|
|
24708
|
+
* @public
|
|
24701
24709
|
*/
|
|
24702
24710
|
class YieldManager {
|
|
24711
|
+
/** Constructor.
|
|
24712
|
+
* @param options Options customizing the yield behavior. Omitted properties are assigned their default values.
|
|
24713
|
+
*/
|
|
24703
24714
|
constructor(options = {}) {
|
|
24704
24715
|
this._counter = 0;
|
|
24705
24716
|
this.options = { ...defaultYieldManagerOptions, ...options };
|
|
24706
24717
|
}
|
|
24718
|
+
/** Increment the iteration counter, yielding control and resetting the counter if [[options.iterationsBeforeYield]] is exceeded. */
|
|
24707
24719
|
async allowYield() {
|
|
24708
24720
|
this._counter = (this._counter + 1) % this.options.iterationsBeforeYield;
|
|
24709
24721
|
if (this._counter === 0) {
|
|
24710
24722
|
await this.actualYield();
|
|
24711
24723
|
}
|
|
24712
24724
|
}
|
|
24725
|
+
/** @internal */
|
|
24713
24726
|
async actualYield() {
|
|
24714
24727
|
await new Promise((r) => setTimeout(r, 0));
|
|
24715
24728
|
}
|
|
@@ -24727,95 +24740,95 @@ class YieldManager {
|
|
|
24727
24740
|
"use strict";
|
|
24728
24741
|
__webpack_require__.r(__webpack_exports__);
|
|
24729
24742
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24730
|
-
/* harmony export */
|
|
24731
|
-
/* harmony export */
|
|
24732
|
-
/* harmony export */
|
|
24733
|
-
/* harmony export */
|
|
24734
|
-
/* harmony export */
|
|
24735
|
-
/* harmony export */
|
|
24736
|
-
/* harmony export */
|
|
24737
|
-
/* harmony export */
|
|
24738
|
-
/* harmony export */
|
|
24739
|
-
/* harmony export */
|
|
24740
|
-
/* harmony export */
|
|
24741
|
-
/* harmony export */
|
|
24742
|
-
/* harmony export */
|
|
24743
|
-
/* harmony export */
|
|
24744
|
-
/* harmony export */
|
|
24745
|
-
/* harmony export */
|
|
24746
|
-
/* harmony export */
|
|
24747
|
-
/* harmony export */
|
|
24748
|
-
/* harmony export */
|
|
24749
|
-
/* harmony export */
|
|
24750
|
-
/* harmony export */
|
|
24751
|
-
/* harmony export */
|
|
24752
|
-
/* harmony export */
|
|
24753
|
-
/* harmony export */
|
|
24754
|
-
/* harmony export */
|
|
24755
|
-
/* harmony export */
|
|
24756
|
-
/* harmony export */
|
|
24757
|
-
/* harmony export */
|
|
24758
|
-
/* harmony export */
|
|
24759
|
-
/* harmony export */
|
|
24760
|
-
/* harmony export */
|
|
24761
|
-
/* harmony export */
|
|
24762
|
-
/* harmony export */
|
|
24763
|
-
/* harmony export */
|
|
24764
|
-
/* harmony export */
|
|
24765
|
-
/* harmony export */
|
|
24766
|
-
/* harmony export */
|
|
24767
|
-
/* harmony export */
|
|
24768
|
-
/* harmony export */
|
|
24769
|
-
/* harmony export */
|
|
24770
|
-
/* harmony export */
|
|
24771
|
-
/* harmony export */
|
|
24772
|
-
/* harmony export */
|
|
24773
|
-
/* harmony export */
|
|
24774
|
-
/* harmony export */
|
|
24775
|
-
/* harmony export */
|
|
24776
|
-
/* harmony export */
|
|
24777
|
-
/* harmony export */
|
|
24778
|
-
/* harmony export */
|
|
24779
|
-
/* harmony export */
|
|
24780
|
-
/* harmony export */
|
|
24781
|
-
/* harmony export */
|
|
24782
|
-
/* harmony export */
|
|
24783
|
-
/* harmony export */
|
|
24784
|
-
/* harmony export */
|
|
24785
|
-
/* harmony export */
|
|
24786
|
-
/* harmony export */
|
|
24787
|
-
/* harmony export */
|
|
24788
|
-
/* harmony export */
|
|
24789
|
-
/* harmony export */
|
|
24790
|
-
/* harmony export */
|
|
24791
|
-
/* harmony export */
|
|
24792
|
-
/* harmony export */
|
|
24793
|
-
/* harmony export */
|
|
24794
|
-
/* harmony export */
|
|
24795
|
-
/* harmony export */
|
|
24796
|
-
/* harmony export */
|
|
24797
|
-
/* harmony export */
|
|
24798
|
-
/* harmony export */
|
|
24799
|
-
/* harmony export */
|
|
24800
|
-
/* harmony export */
|
|
24801
|
-
/* harmony export */
|
|
24802
|
-
/* harmony export */
|
|
24803
|
-
/* harmony export */
|
|
24804
|
-
/* harmony export */
|
|
24805
|
-
/* harmony export */
|
|
24806
|
-
/* harmony export */
|
|
24807
|
-
/* harmony export */
|
|
24808
|
-
/* harmony export */
|
|
24809
|
-
/* harmony export */
|
|
24810
|
-
/* harmony export */
|
|
24811
|
-
/* harmony export */
|
|
24812
|
-
/* harmony export */
|
|
24813
|
-
/* harmony export */
|
|
24814
|
-
/* harmony export */
|
|
24815
|
-
/* harmony export */
|
|
24816
|
-
/* harmony export */
|
|
24817
|
-
/* harmony export */
|
|
24818
|
-
/* harmony export */
|
|
24743
|
+
/* harmony export */ AbandonedError: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.AbandonedError),
|
|
24744
|
+
/* harmony export */ BeDuration: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeDuration),
|
|
24745
|
+
/* harmony export */ BeEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEvent),
|
|
24746
|
+
/* harmony export */ BeEventList: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEventList),
|
|
24747
|
+
/* harmony export */ BeTimePoint: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.BeTimePoint),
|
|
24748
|
+
/* harmony export */ BeUiEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUiEvent),
|
|
24749
|
+
/* harmony export */ BentleyError: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyError),
|
|
24750
|
+
/* harmony export */ BentleyLoggerCategory: () => (/* reexport safe */ _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_4__.BentleyLoggerCategory),
|
|
24751
|
+
/* harmony export */ BentleyStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BentleyStatus),
|
|
24752
|
+
/* harmony export */ BriefcaseStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.BriefcaseStatus),
|
|
24753
|
+
/* harmony export */ ByteStream: () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
|
|
24754
|
+
/* harmony export */ ChangeSetStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
|
|
24755
|
+
/* harmony export */ CompressedId64Set: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
|
|
24756
|
+
/* harmony export */ DbOpcode: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
|
|
24757
|
+
/* harmony export */ DbResult: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
|
|
24758
|
+
/* harmony export */ Dictionary: () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
|
|
24759
|
+
/* harmony export */ DisposableList: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
|
|
24760
|
+
/* harmony export */ DuplicatePolicy: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
|
|
24761
|
+
/* harmony export */ Entry: () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.Entry),
|
|
24762
|
+
/* harmony export */ ErrorCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.ErrorCategory),
|
|
24763
|
+
/* harmony export */ GeoServiceStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.GeoServiceStatus),
|
|
24764
|
+
/* harmony export */ Guid: () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Guid),
|
|
24765
|
+
/* harmony export */ HttpStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.HttpStatus),
|
|
24766
|
+
/* harmony export */ IModelHubStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelHubStatus),
|
|
24767
|
+
/* harmony export */ IModelStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.IModelStatus),
|
|
24768
|
+
/* harmony export */ Id64: () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.Id64),
|
|
24769
|
+
/* harmony export */ IndexMap: () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexMap),
|
|
24770
|
+
/* harmony export */ IndexedValue: () => (/* reexport safe */ _IndexMap__WEBPACK_IMPORTED_MODULE_14__.IndexedValue),
|
|
24771
|
+
/* harmony export */ JsonUtils: () => (/* reexport safe */ _JsonUtils__WEBPACK_IMPORTED_MODULE_16__.JsonUtils),
|
|
24772
|
+
/* harmony export */ LRUCache: () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUCache),
|
|
24773
|
+
/* harmony export */ LRUDictionary: () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUDictionary),
|
|
24774
|
+
/* harmony export */ LRUMap: () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_18__.LRUMap),
|
|
24775
|
+
/* harmony export */ LogLevel: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.LogLevel),
|
|
24776
|
+
/* harmony export */ Logger: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.Logger),
|
|
24777
|
+
/* harmony export */ MutableCompressedId64Set: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.MutableCompressedId64Set),
|
|
24778
|
+
/* harmony export */ ObservableSet: () => (/* reexport safe */ _ObservableSet__WEBPACK_IMPORTED_MODULE_19__.ObservableSet),
|
|
24779
|
+
/* harmony export */ OneAtATimeAction: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_20__.OneAtATimeAction),
|
|
24780
|
+
/* harmony export */ OpenMode: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.OpenMode),
|
|
24781
|
+
/* harmony export */ OrderedId64Array: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.OrderedId64Array),
|
|
24782
|
+
/* harmony export */ OrderedId64Iterable: () => (/* reexport safe */ _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_21__.OrderedId64Iterable),
|
|
24783
|
+
/* harmony export */ OrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.OrderedSet),
|
|
24784
|
+
/* harmony export */ PerfLogger: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_17__.PerfLogger),
|
|
24785
|
+
/* harmony export */ PriorityQueue: () => (/* reexport safe */ _PriorityQueue__WEBPACK_IMPORTED_MODULE_24__.PriorityQueue),
|
|
24786
|
+
/* harmony export */ ProcessDetector: () => (/* reexport safe */ _ProcessDetector__WEBPACK_IMPORTED_MODULE_25__.ProcessDetector),
|
|
24787
|
+
/* harmony export */ ReadonlyOrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
|
|
24788
|
+
/* harmony export */ ReadonlySortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
|
|
24789
|
+
/* harmony export */ RealityDataStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
|
|
24790
|
+
/* harmony export */ RepositoryStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RepositoryStatus),
|
|
24791
|
+
/* harmony export */ RpcInterfaceStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
|
|
24792
|
+
/* harmony export */ SortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
|
|
24793
|
+
/* harmony export */ SpanKind: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
|
|
24794
|
+
/* harmony export */ StatusCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.StatusCategory),
|
|
24795
|
+
/* harmony export */ StopWatch: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_28__.StopWatch),
|
|
24796
|
+
/* harmony export */ SuccessCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.SuccessCategory),
|
|
24797
|
+
/* harmony export */ Tracing: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.Tracing),
|
|
24798
|
+
/* harmony export */ TransientIdSequence: () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_13__.TransientIdSequence),
|
|
24799
|
+
/* harmony export */ TupleKeyedMap: () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_30__.TupleKeyedMap),
|
|
24800
|
+
/* harmony export */ TypedArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.TypedArrayBuilder),
|
|
24801
|
+
/* harmony export */ Uint16ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint16ArrayBuilder),
|
|
24802
|
+
/* harmony export */ Uint32ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint32ArrayBuilder),
|
|
24803
|
+
/* harmony export */ Uint8ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint8ArrayBuilder),
|
|
24804
|
+
/* harmony export */ UintArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.UintArrayBuilder),
|
|
24805
|
+
/* harmony export */ UnexpectedErrors: () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__.UnexpectedErrors),
|
|
24806
|
+
/* harmony export */ YieldManager: () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_34__.YieldManager),
|
|
24807
|
+
/* harmony export */ areEqualPossiblyUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.areEqualPossiblyUndefined),
|
|
24808
|
+
/* harmony export */ asInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
|
|
24809
|
+
/* harmony export */ assert: () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
|
|
24810
|
+
/* harmony export */ base64StringToUint8Array: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.base64StringToUint8Array),
|
|
24811
|
+
/* harmony export */ compareBooleans: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleans),
|
|
24812
|
+
/* harmony export */ compareBooleansOrUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleansOrUndefined),
|
|
24813
|
+
/* harmony export */ compareNumbers: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbers),
|
|
24814
|
+
/* harmony export */ compareNumbersOrUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareNumbersOrUndefined),
|
|
24815
|
+
/* harmony export */ comparePossiblyUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.comparePossiblyUndefined),
|
|
24816
|
+
/* harmony export */ compareStrings: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStrings),
|
|
24817
|
+
/* harmony export */ compareStringsOrUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareStringsOrUndefined),
|
|
24818
|
+
/* harmony export */ compareWithTolerance: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareWithTolerance),
|
|
24819
|
+
/* harmony export */ dispose: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.dispose),
|
|
24820
|
+
/* harmony export */ disposeArray: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.disposeArray),
|
|
24821
|
+
/* harmony export */ isIDisposable: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.isIDisposable),
|
|
24822
|
+
/* harmony export */ isInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.isInstanceOf),
|
|
24823
|
+
/* harmony export */ isProperSubclassOf: () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isProperSubclassOf),
|
|
24824
|
+
/* harmony export */ isSubclassOf: () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isSubclassOf),
|
|
24825
|
+
/* harmony export */ lowerBound: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.lowerBound),
|
|
24826
|
+
/* harmony export */ omit: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
|
|
24827
|
+
/* harmony export */ partitionArray: () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
|
|
24828
|
+
/* harmony export */ shallowClone: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
|
|
24829
|
+
/* harmony export */ using: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
|
|
24830
|
+
/* harmony export */ utf8ToString: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString),
|
|
24831
|
+
/* harmony export */ utf8ToStringPolyfill: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToStringPolyfill)
|
|
24819
24832
|
/* harmony export */ });
|
|
24820
24833
|
/* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../bentley/lib/esm/AccessToken.js");
|
|
24821
24834
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
@@ -24943,7 +24956,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24943
24956
|
"use strict";
|
|
24944
24957
|
__webpack_require__.r(__webpack_exports__);
|
|
24945
24958
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24946
|
-
/* harmony export */
|
|
24959
|
+
/* harmony export */ partitionArray: () => (/* binding */ partitionArray)
|
|
24947
24960
|
/* harmony export */ });
|
|
24948
24961
|
/*---------------------------------------------------------------------------------------------
|
|
24949
24962
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -24998,9 +25011,9 @@ function partitionArray(array, criterion) {
|
|
|
24998
25011
|
|
|
24999
25012
|
/***/ }),
|
|
25000
25013
|
|
|
25001
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25014
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
|
25002
25015
|
/*!**************************************************************************************************************************!*\
|
|
25003
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25016
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
|
25004
25017
|
\**************************************************************************************************************************/
|
|
25005
25018
|
/***/ ((module) => {
|
|
25006
25019
|
|
|
@@ -25013,9 +25026,9 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
25013
25026
|
|
|
25014
25027
|
/***/ }),
|
|
25015
25028
|
|
|
25016
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25029
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
|
|
25017
25030
|
/*!************************************************************************************************************************!*\
|
|
25018
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25031
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
|
25019
25032
|
\************************************************************************************************************************/
|
|
25020
25033
|
/***/ ((module) => {
|
|
25021
25034
|
|
|
@@ -25026,9 +25039,9 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
|
|
|
25026
25039
|
|
|
25027
25040
|
/***/ }),
|
|
25028
25041
|
|
|
25029
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25042
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
|
|
25030
25043
|
/*!*******************************************************************************************************************************!*\
|
|
25031
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25044
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
|
|
25032
25045
|
\*******************************************************************************************************************************/
|
|
25033
25046
|
/***/ ((module) => {
|
|
25034
25047
|
|
|
@@ -25042,9 +25055,9 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
|
|
|
25042
25055
|
|
|
25043
25056
|
/***/ }),
|
|
25044
25057
|
|
|
25045
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25058
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/classCallCheck.js":
|
|
25046
25059
|
/*!************************************************************************************************************************!*\
|
|
25047
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25060
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
|
|
25048
25061
|
\************************************************************************************************************************/
|
|
25049
25062
|
/***/ ((module) => {
|
|
25050
25063
|
|
|
@@ -25057,13 +25070,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
25057
25070
|
|
|
25058
25071
|
/***/ }),
|
|
25059
25072
|
|
|
25060
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25073
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/createClass.js":
|
|
25061
25074
|
/*!*********************************************************************************************************************!*\
|
|
25062
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25075
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/createClass.js ***!
|
|
25063
25076
|
\*********************************************************************************************************************/
|
|
25064
25077
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25065
25078
|
|
|
25066
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25079
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
25067
25080
|
function _defineProperties(target, props) {
|
|
25068
25081
|
for (var i = 0; i < props.length; i++) {
|
|
25069
25082
|
var descriptor = props[i];
|
|
@@ -25085,13 +25098,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
25085
25098
|
|
|
25086
25099
|
/***/ }),
|
|
25087
25100
|
|
|
25088
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25101
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/defineProperty.js":
|
|
25089
25102
|
/*!************************************************************************************************************************!*\
|
|
25090
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25103
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
|
25091
25104
|
\************************************************************************************************************************/
|
|
25092
25105
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25093
25106
|
|
|
25094
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25107
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
25095
25108
|
function _defineProperty(obj, key, value) {
|
|
25096
25109
|
key = toPropertyKey(key);
|
|
25097
25110
|
if (key in obj) {
|
|
@@ -25110,9 +25123,9 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
25110
25123
|
|
|
25111
25124
|
/***/ }),
|
|
25112
25125
|
|
|
25113
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25126
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
|
|
25114
25127
|
/*!************************************************************************************************************************!*\
|
|
25115
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25128
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
|
|
25116
25129
|
\************************************************************************************************************************/
|
|
25117
25130
|
/***/ ((module) => {
|
|
25118
25131
|
|
|
@@ -25126,13 +25139,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
25126
25139
|
|
|
25127
25140
|
/***/ }),
|
|
25128
25141
|
|
|
25129
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25142
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/inherits.js":
|
|
25130
25143
|
/*!******************************************************************************************************************!*\
|
|
25131
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25144
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/inherits.js ***!
|
|
25132
25145
|
\******************************************************************************************************************/
|
|
25133
25146
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25134
25147
|
|
|
25135
|
-
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25148
|
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
25136
25149
|
function _inherits(subClass, superClass) {
|
|
25137
25150
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
25138
25151
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -25153,9 +25166,9 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
|
|
|
25153
25166
|
|
|
25154
25167
|
/***/ }),
|
|
25155
25168
|
|
|
25156
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25169
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/iterableToArray.js":
|
|
25157
25170
|
/*!*************************************************************************************************************************!*\
|
|
25158
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25171
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
|
|
25159
25172
|
\*************************************************************************************************************************/
|
|
25160
25173
|
/***/ ((module) => {
|
|
25161
25174
|
|
|
@@ -25166,9 +25179,9 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
|
|
|
25166
25179
|
|
|
25167
25180
|
/***/ }),
|
|
25168
25181
|
|
|
25169
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25182
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/nonIterableRest.js":
|
|
25170
25183
|
/*!*************************************************************************************************************************!*\
|
|
25171
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25184
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
|
25172
25185
|
\*************************************************************************************************************************/
|
|
25173
25186
|
/***/ ((module) => {
|
|
25174
25187
|
|
|
@@ -25179,14 +25192,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
25179
25192
|
|
|
25180
25193
|
/***/ }),
|
|
25181
25194
|
|
|
25182
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25195
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
|
|
25183
25196
|
/*!***********************************************************************************************************************************!*\
|
|
25184
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25197
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
|
|
25185
25198
|
\***********************************************************************************************************************************/
|
|
25186
25199
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25187
25200
|
|
|
25188
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25189
|
-
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25201
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25202
|
+
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
25190
25203
|
function _possibleConstructorReturn(self, call) {
|
|
25191
25204
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
25192
25205
|
return call;
|
|
@@ -25199,9 +25212,9 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
|
|
|
25199
25212
|
|
|
25200
25213
|
/***/ }),
|
|
25201
25214
|
|
|
25202
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25215
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
|
|
25203
25216
|
/*!************************************************************************************************************************!*\
|
|
25204
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25217
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
|
|
25205
25218
|
\************************************************************************************************************************/
|
|
25206
25219
|
/***/ ((module) => {
|
|
25207
25220
|
|
|
@@ -25216,16 +25229,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
25216
25229
|
|
|
25217
25230
|
/***/ }),
|
|
25218
25231
|
|
|
25219
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25232
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toArray.js":
|
|
25220
25233
|
/*!*****************************************************************************************************************!*\
|
|
25221
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25234
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toArray.js ***!
|
|
25222
25235
|
\*****************************************************************************************************************/
|
|
25223
25236
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25224
25237
|
|
|
25225
|
-
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25226
|
-
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25227
|
-
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25228
|
-
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25238
|
+
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
|
25239
|
+
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/iterableToArray.js");
|
|
25240
|
+
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
25241
|
+
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
25229
25242
|
function _toArray(arr) {
|
|
25230
25243
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
|
25231
25244
|
}
|
|
@@ -25233,13 +25246,13 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
|
|
|
25233
25246
|
|
|
25234
25247
|
/***/ }),
|
|
25235
25248
|
|
|
25236
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25249
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPrimitive.js":
|
|
25237
25250
|
/*!*********************************************************************************************************************!*\
|
|
25238
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25251
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
|
|
25239
25252
|
\*********************************************************************************************************************/
|
|
25240
25253
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25241
25254
|
|
|
25242
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25255
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25243
25256
|
function _toPrimitive(input, hint) {
|
|
25244
25257
|
if (_typeof(input) !== "object" || input === null) return input;
|
|
25245
25258
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -25254,14 +25267,14 @@ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports[
|
|
|
25254
25267
|
|
|
25255
25268
|
/***/ }),
|
|
25256
25269
|
|
|
25257
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25270
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPropertyKey.js":
|
|
25258
25271
|
/*!***********************************************************************************************************************!*\
|
|
25259
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25272
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
|
25260
25273
|
\***********************************************************************************************************************/
|
|
25261
25274
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25262
25275
|
|
|
25263
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25264
|
-
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25276
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
25277
|
+
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/toPrimitive.js");
|
|
25265
25278
|
function _toPropertyKey(arg) {
|
|
25266
25279
|
var key = toPrimitive(arg, "string");
|
|
25267
25280
|
return _typeof(key) === "symbol" ? key : String(key);
|
|
@@ -25270,9 +25283,9 @@ module.exports = _toPropertyKey, module.exports.__esModule = true, module.export
|
|
|
25270
25283
|
|
|
25271
25284
|
/***/ }),
|
|
25272
25285
|
|
|
25273
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25286
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js":
|
|
25274
25287
|
/*!****************************************************************************************************************!*\
|
|
25275
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25288
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
25276
25289
|
\****************************************************************************************************************/
|
|
25277
25290
|
/***/ ((module) => {
|
|
25278
25291
|
|
|
@@ -25289,13 +25302,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
25289
25302
|
|
|
25290
25303
|
/***/ }),
|
|
25291
25304
|
|
|
25292
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25305
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
|
|
25293
25306
|
/*!************************************************************************************************************************************!*\
|
|
25294
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25307
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
|
25295
25308
|
\************************************************************************************************************************************/
|
|
25296
25309
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
25297
25310
|
|
|
25298
|
-
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
25311
|
+
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.22.5/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
25299
25312
|
function _unsupportedIterableToArray(o, minLen) {
|
|
25300
25313
|
if (!o) return;
|
|
25301
25314
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|