@itwin/core-i18n 5.14.0-dev.1 → 5.14.0-dev.11

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.
@@ -15442,6 +15442,8 @@ var DbResult;
15442
15442
  DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
15443
15443
  /** schema update require data transform */
15444
15444
  DbResult[DbResult["BE_SQLITE_ERROR_DataTransformRequired"] = 385875978] = "BE_SQLITE_ERROR_DataTransformRequired";
15445
+ /** schema update would destroy existing instances or property values */
15446
+ DbResult[DbResult["BE_SQLITE_ERROR_DataDeletionRequired"] = 402653194] = "BE_SQLITE_ERROR_DataDeletionRequired";
15445
15447
  /** Db not open */
15446
15448
  DbResult[DbResult["BE_SQLITE_ERROR_NOTOPEN"] = 16777217] = "BE_SQLITE_ERROR_NOTOPEN";
15447
15449
  /** Error propagating changes during commit */
@@ -15994,6 +15996,7 @@ class BentleyError extends Error {
15994
15996
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
15995
15997
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
15996
15998
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_DataTransformRequired: return "Schema update require to transform data";
15999
+ case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_DataDeletionRequired: return "Schema update would destroy existing data";
15997
16000
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
15998
16001
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
15999
16002
  case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
@@ -16667,7 +16670,7 @@ var CompressedId64Set;
16667
16670
  return (ch >= 48 && ch <= 57) || (ch >= 65 && ch <= 70);
16668
16671
  }
16669
16672
  function compactRange(increment, length) {
16670
- (0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(length > 0);
16673
+ ;(0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(length > 0);
16671
16674
  const inc = `+${increment.toString()}`;
16672
16675
  if (length <= 1)
16673
16676
  return inc;
@@ -16782,7 +16785,7 @@ var CompressedId64Set;
16782
16785
  isGreaterThan(rhs) { return this.compare(rhs) > 0; }
16783
16786
  get isZero() { return 0 === this.lower && 0 === this.upper; }
16784
16787
  setFromDifference(lhs, rhs) {
16785
- (0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(!rhs.isGreaterThan(lhs));
16788
+ ;(0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(!rhs.isGreaterThan(lhs));
16786
16789
  this.lower = lhs.lower - rhs.lower;
16787
16790
  this.upper = lhs.upper - rhs.upper;
16788
16791
  if (this.lower < 0) {
@@ -19203,6 +19206,122 @@ class PerfLogger {
19203
19206
  }
19204
19207
 
19205
19208
 
19209
+ /***/ },
19210
+
19211
+ /***/ "../bentley/lib/esm/ObservableMap.js"
19212
+ /*!*******************************************!*\
19213
+ !*** ../bentley/lib/esm/ObservableMap.js ***!
19214
+ \*******************************************/
19215
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19216
+
19217
+ "use strict";
19218
+ __webpack_require__.r(__webpack_exports__);
19219
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19220
+ /* harmony export */ ObservableMap: () => (/* binding */ ObservableMap)
19221
+ /* harmony export */ });
19222
+ /* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeEvent */ "../bentley/lib/esm/BeEvent.js");
19223
+ /*---------------------------------------------------------------------------------------------
19224
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19225
+ * See LICENSE.md in the project root for license terms and full copyright notice.
19226
+ *--------------------------------------------------------------------------------------------*/
19227
+ /** @packageDocumentation
19228
+ * @module Collections
19229
+ */
19230
+
19231
+ /** A standard [Map<K,V>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) that emits an event when its contents change.
19232
+ * @public
19233
+ */
19234
+ class ObservableMap extends Map {
19235
+ /** @internal */
19236
+ get [Symbol.toStringTag]() { return "ObservableMap"; }
19237
+ /** Emitted after any change to the contents of this map. */
19238
+ onChanged = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19239
+ /** Construct a new ObservableMap.
19240
+ * @param elements Optional elements with which to populate the new map.
19241
+ */
19242
+ constructor(elements) {
19243
+ // IMPORTANT: do not pass `elements` to `super()`. It will invoke `set` which is overridden to invoke `onChanged.raiseEvent`, but
19244
+ // `onChanged` is not initialized until `super()` returns.
19245
+ super();
19246
+ if (elements)
19247
+ this.setAll(elements);
19248
+ }
19249
+ /** Invokes [Map.set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set), raising
19250
+ * the [[onChanged]] event unless `key` is already present with the same `value`.
19251
+ */
19252
+ set(key, value) {
19253
+ const valueChanged = !this.has(key) || !Object.is(this.get(key), value);
19254
+ if (valueChanged)
19255
+ super.set(key, value);
19256
+ if (valueChanged) {
19257
+ this.onChanged.raiseEvent();
19258
+ }
19259
+ return this;
19260
+ }
19261
+ /** Invokes [Map.delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete), raising
19262
+ * the [[onChanged]] event if the key was removed from the map.
19263
+ */
19264
+ delete(key) {
19265
+ const ret = super.delete(key);
19266
+ if (ret) {
19267
+ this.onChanged.raiseEvent();
19268
+ }
19269
+ return ret;
19270
+ }
19271
+ /** If this map is not already empty, invokes [Map.clear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear)
19272
+ * and raises the [[onChanged]] event.
19273
+ */
19274
+ clear() {
19275
+ if (0 !== this.size) {
19276
+ super.clear();
19277
+ this.onChanged.raiseEvent();
19278
+ }
19279
+ }
19280
+ /** Add or update multiple entries in the map, raising [[onChanged]] only once after all items are set, if the contents of
19281
+ * the map changed as a result.
19282
+ * This is more efficient than calling [[set]] in a loop when listeners need not be notified of each individual change.
19283
+ * @param items The entries to add or update.
19284
+ */
19285
+ setAll(items) {
19286
+ let changed = false;
19287
+ try {
19288
+ for (const [key, value] of items) {
19289
+ if (!this.has(key) || !Object.is(this.get(key), value)) {
19290
+ super.set(key, value);
19291
+ changed = true;
19292
+ }
19293
+ }
19294
+ }
19295
+ finally {
19296
+ if (changed) {
19297
+ this.onChanged.raiseEvent();
19298
+ }
19299
+ }
19300
+ }
19301
+ /** Delete multiple keys from the map, raising [[onChanged]] only once after all keys are deleted.
19302
+ * This is more efficient than calling [[delete]] in a loop when listeners need not be notified of each individual deletion.
19303
+ * @param keys The keys to delete.
19304
+ * @returns The number of keys that were actually deleted (i.e., were present in the map).
19305
+ */
19306
+ deleteAll(keys) {
19307
+ const prevSize = this.size;
19308
+ let deletedAny = false;
19309
+ try {
19310
+ for (const key of keys) {
19311
+ if (super.delete(key))
19312
+ deletedAny = true;
19313
+ }
19314
+ }
19315
+ finally {
19316
+ if (deletedAny) {
19317
+ this.onChanged.raiseEvent();
19318
+ }
19319
+ }
19320
+ return prevSize - this.size;
19321
+ }
19322
+ }
19323
+
19324
+
19206
19325
  /***/ },
19207
19326
 
19208
19327
  /***/ "../bentley/lib/esm/ObservableSet.js"
@@ -19229,6 +19348,8 @@ __webpack_require__.r(__webpack_exports__);
19229
19348
  * @public
19230
19349
  */
19231
19350
  class ObservableSet extends Set {
19351
+ /** @internal */
19352
+ get [Symbol.toStringTag]() { return "ObservableSet"; }
19232
19353
  /** Emitted after `item` is added to this set. */
19233
19354
  onAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19234
19355
  /** Emitted after `item` is deleted from this set. */
@@ -19239,27 +19360,39 @@ class ObservableSet extends Set {
19239
19360
  onBatchAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19240
19361
  /** Emitted after multiple items are deleted from this set via [[deleteAll]]. */
19241
19362
  onBatchDeleted = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19363
+ /** Emitted after any change to the contents of this set. */
19364
+ onChanged = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19242
19365
  /** Construct a new ObservableSet.
19243
19366
  * @param elements Optional elements with which to populate the new set.
19244
19367
  */
19245
19368
  constructor(elements) {
19246
- // NB: Set constructor will invoke add(). Do not override until initialized.
19247
- super(elements);
19248
- this.add = (item) => {
19249
- const prevSize = this.size;
19250
- const ret = super.add(item);
19251
- if (this.size !== prevSize)
19252
- this.onAdded.raiseEvent(item);
19253
- return ret;
19254
- };
19369
+ // IMPORTANT: do not pass `elements` to `super()`. It will invoke `add` which is overridden to invoke `onAdded.raiseEvent`, but
19370
+ // `onAdded` is not initialized until `super()` returns.
19371
+ super();
19372
+ if (elements)
19373
+ this.addAll(elements);
19374
+ }
19375
+ /** Invokes [Set.add](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add), raising
19376
+ * the [[onAdded]] event if the item was not already present in the set.
19377
+ */
19378
+ add(item) {
19379
+ const prevSize = this.size;
19380
+ const ret = super.add(item);
19381
+ if (this.size !== prevSize) {
19382
+ this.onAdded.raiseEvent(item);
19383
+ this.onChanged.raiseEvent();
19384
+ }
19385
+ return ret;
19255
19386
  }
19256
19387
  /** Invokes [Set.delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete), raising
19257
19388
  * the [[onDeleted]] event if the item was removed from the set.
19258
19389
  */
19259
19390
  delete(item) {
19260
19391
  const ret = super.delete(item);
19261
- if (ret)
19392
+ if (ret) {
19262
19393
  this.onDeleted.raiseEvent(item);
19394
+ this.onChanged.raiseEvent();
19395
+ }
19263
19396
  return ret;
19264
19397
  }
19265
19398
  /** If this set is not already empty, invokes [Set.clear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear)
@@ -19269,6 +19402,7 @@ class ObservableSet extends Set {
19269
19402
  if (0 !== this.size) {
19270
19403
  super.clear();
19271
19404
  this.onCleared.raiseEvent();
19405
+ this.onChanged.raiseEvent();
19272
19406
  }
19273
19407
  }
19274
19408
  /** Add multiple items to the set, raising [[onBatchAdded]] only once after all items are added.
@@ -19278,10 +19412,21 @@ class ObservableSet extends Set {
19278
19412
  */
19279
19413
  addAll(items) {
19280
19414
  const prevSize = this.size;
19281
- for (const item of items)
19282
- super.add(item);
19283
- if (this.size !== prevSize)
19284
- this.onBatchAdded.raiseEvent();
19415
+ let addedAny = false;
19416
+ try {
19417
+ for (const item of items) {
19418
+ const prevSetSize = this.size;
19419
+ super.add(item);
19420
+ if (this.size !== prevSetSize)
19421
+ addedAny = true;
19422
+ }
19423
+ }
19424
+ finally {
19425
+ if (addedAny) {
19426
+ this.onBatchAdded.raiseEvent();
19427
+ this.onChanged.raiseEvent();
19428
+ }
19429
+ }
19285
19430
  return this.size - prevSize;
19286
19431
  }
19287
19432
  /** Delete multiple items from the set, raising [[onBatchDeleted]] only once after all items are deleted.
@@ -19291,10 +19436,21 @@ class ObservableSet extends Set {
19291
19436
  */
19292
19437
  deleteAll(items) {
19293
19438
  const prevSize = this.size;
19294
- for (const item of items)
19295
- super.delete(item);
19296
- if (this.size !== prevSize)
19297
- this.onBatchDeleted.raiseEvent();
19439
+ let deletedAny = false;
19440
+ try {
19441
+ for (const item of items) {
19442
+ const prevSetSize = this.size;
19443
+ super.delete(item);
19444
+ if (this.size !== prevSetSize)
19445
+ deletedAny = true;
19446
+ }
19447
+ }
19448
+ finally {
19449
+ if (deletedAny) {
19450
+ this.onBatchDeleted.raiseEvent();
19451
+ this.onChanged.raiseEvent();
19452
+ }
19453
+ }
19298
19454
  return prevSize - this.size;
19299
19455
  }
19300
19456
  }
@@ -21716,11 +21872,11 @@ class YieldManager {
21716
21872
  "use strict";
21717
21873
  __webpack_require__.r(__webpack_exports__);
21718
21874
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21719
- /* harmony export */ AbandonedError: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_21__.AbandonedError),
21720
- /* harmony export */ BeDuration: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_29__.BeDuration),
21875
+ /* harmony export */ AbandonedError: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_22__.AbandonedError),
21876
+ /* harmony export */ BeDuration: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_30__.BeDuration),
21721
21877
  /* harmony export */ BeEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEvent),
21722
21878
  /* harmony export */ BeEventList: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeEventList),
21723
- /* harmony export */ BeTimePoint: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_29__.BeTimePoint),
21879
+ /* harmony export */ BeTimePoint: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_30__.BeTimePoint),
21724
21880
  /* harmony export */ BeUiEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUiEvent),
21725
21881
  /* harmony export */ BeUnorderedEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUnorderedEvent),
21726
21882
  /* harmony export */ BeUnorderedUiEvent: () => (/* reexport safe */ _BeEvent__WEBPACK_IMPORTED_MODULE_2__.BeUnorderedUiEvent),
@@ -21731,15 +21887,15 @@ __webpack_require__.r(__webpack_exports__);
21731
21887
  /* harmony export */ ByteStream: () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
21732
21888
  /* harmony export */ ChangeSetStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
21733
21889
  /* harmony export */ CompressedId64Set: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
21734
- /* harmony export */ DbChangeStage: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__.DbChangeStage),
21735
- /* harmony export */ DbConflictCause: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__.DbConflictCause),
21736
- /* harmony export */ DbConflictResolution: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__.DbConflictResolution),
21890
+ /* harmony export */ DbChangeStage: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__.DbChangeStage),
21891
+ /* harmony export */ DbConflictCause: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__.DbConflictCause),
21892
+ /* harmony export */ DbConflictResolution: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__.DbConflictResolution),
21737
21893
  /* harmony export */ DbOpcode: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
21738
21894
  /* harmony export */ DbResult: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
21739
- /* harmony export */ DbValueType: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__.DbValueType),
21895
+ /* harmony export */ DbValueType: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__.DbValueType),
21740
21896
  /* harmony export */ Dictionary: () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
21741
21897
  /* harmony export */ DisposableList: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
21742
- /* harmony export */ DuplicatePolicy: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.DuplicatePolicy),
21898
+ /* harmony export */ DuplicatePolicy: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_28__.DuplicatePolicy),
21743
21899
  /* harmony export */ Entry: () => (/* reexport safe */ _LRUMap__WEBPACK_IMPORTED_MODULE_19__.Entry),
21744
21900
  /* harmony export */ ErrorCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.ErrorCategory),
21745
21901
  /* harmony export */ GeoServiceStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.GeoServiceStatus),
@@ -21758,39 +21914,40 @@ __webpack_require__.r(__webpack_exports__);
21758
21914
  /* harmony export */ LogLevel: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.LogLevel),
21759
21915
  /* harmony export */ Logger: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.Logger),
21760
21916
  /* harmony export */ MutableCompressedId64Set: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.MutableCompressedId64Set),
21761
- /* harmony export */ ObservableSet: () => (/* reexport safe */ _ObservableSet__WEBPACK_IMPORTED_MODULE_20__.ObservableSet),
21762
- /* harmony export */ OneAtATimeAction: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_21__.OneAtATimeAction),
21917
+ /* harmony export */ ObservableMap: () => (/* reexport safe */ _ObservableMap__WEBPACK_IMPORTED_MODULE_20__.ObservableMap),
21918
+ /* harmony export */ ObservableSet: () => (/* reexport safe */ _ObservableSet__WEBPACK_IMPORTED_MODULE_21__.ObservableSet),
21919
+ /* harmony export */ OneAtATimeAction: () => (/* reexport safe */ _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_22__.OneAtATimeAction),
21763
21920
  /* harmony export */ OpenMode: () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.OpenMode),
21764
21921
  /* harmony export */ OrderedId64Array: () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.OrderedId64Array),
21765
- /* harmony export */ OrderedId64Iterable: () => (/* reexport safe */ _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_22__.OrderedId64Iterable),
21766
- /* harmony export */ OrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_23__.OrderedSet),
21922
+ /* harmony export */ OrderedId64Iterable: () => (/* reexport safe */ _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_23__.OrderedId64Iterable),
21923
+ /* harmony export */ OrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_24__.OrderedSet),
21767
21924
  /* harmony export */ PerfLogger: () => (/* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.PerfLogger),
21768
- /* harmony export */ PriorityQueue: () => (/* reexport safe */ _PriorityQueue__WEBPACK_IMPORTED_MODULE_25__.PriorityQueue),
21769
- /* harmony export */ ProcessDetector: () => (/* reexport safe */ _ProcessDetector__WEBPACK_IMPORTED_MODULE_26__.ProcessDetector),
21770
- /* harmony export */ ReadonlyOrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_23__.ReadonlyOrderedSet),
21771
- /* harmony export */ ReadonlySortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.ReadonlySortedArray),
21925
+ /* harmony export */ PriorityQueue: () => (/* reexport safe */ _PriorityQueue__WEBPACK_IMPORTED_MODULE_26__.PriorityQueue),
21926
+ /* harmony export */ ProcessDetector: () => (/* reexport safe */ _ProcessDetector__WEBPACK_IMPORTED_MODULE_27__.ProcessDetector),
21927
+ /* harmony export */ ReadonlyOrderedSet: () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_24__.ReadonlyOrderedSet),
21928
+ /* harmony export */ ReadonlySortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_28__.ReadonlySortedArray),
21772
21929
  /* harmony export */ RealityDataStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
21773
- /* harmony export */ RepositoryStatus: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__.RepositoryStatus),
21930
+ /* harmony export */ RepositoryStatus: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__.RepositoryStatus),
21774
21931
  /* harmony export */ RpcInterfaceStatus: () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
21775
- /* harmony export */ SortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.SortedArray),
21776
- /* harmony export */ SpanKind: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_30__.SpanKind),
21932
+ /* harmony export */ SortedArray: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_28__.SortedArray),
21933
+ /* harmony export */ SpanKind: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_31__.SpanKind),
21777
21934
  /* harmony export */ StatusCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.StatusCategory),
21778
- /* harmony export */ StopWatch: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_29__.StopWatch),
21935
+ /* harmony export */ StopWatch: () => (/* reexport safe */ _Time__WEBPACK_IMPORTED_MODULE_30__.StopWatch),
21779
21936
  /* harmony export */ SuccessCategory: () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_5__.SuccessCategory),
21780
- /* harmony export */ Tracing: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_30__.Tracing),
21937
+ /* harmony export */ Tracing: () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_31__.Tracing),
21781
21938
  /* harmony export */ TransientIdSequence: () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_14__.TransientIdSequence),
21782
- /* harmony export */ TupleKeyedMap: () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__.TupleKeyedMap),
21783
- /* harmony export */ TypedArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.TypedArrayBuilder),
21784
- /* harmony export */ Uint16ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint16ArrayBuilder),
21785
- /* harmony export */ Uint32ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint32ArrayBuilder),
21786
- /* harmony export */ Uint8ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint8ArrayBuilder),
21787
- /* harmony export */ UintArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.UintArrayBuilder),
21788
- /* harmony export */ UnexpectedErrors: () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__.UnexpectedErrors),
21789
- /* harmony export */ YieldManager: () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_36__.YieldManager),
21939
+ /* harmony export */ TupleKeyedMap: () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_32__.TupleKeyedMap),
21940
+ /* harmony export */ TypedArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__.TypedArrayBuilder),
21941
+ /* harmony export */ Uint16ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__.Uint16ArrayBuilder),
21942
+ /* harmony export */ Uint32ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__.Uint32ArrayBuilder),
21943
+ /* harmony export */ Uint8ArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__.Uint8ArrayBuilder),
21944
+ /* harmony export */ UintArrayBuilder: () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__.UintArrayBuilder),
21945
+ /* harmony export */ UnexpectedErrors: () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_34__.UnexpectedErrors),
21946
+ /* harmony export */ YieldManager: () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_37__.YieldManager),
21790
21947
  /* harmony export */ areEqualPossiblyUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.areEqualPossiblyUndefined),
21791
- /* harmony export */ asInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_35__.asInstanceOf),
21948
+ /* harmony export */ asInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_36__.asInstanceOf),
21792
21949
  /* harmony export */ assert: () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
21793
- /* harmony export */ base64StringToUint8Array: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_28__.base64StringToUint8Array),
21950
+ /* harmony export */ base64StringToUint8Array: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_29__.base64StringToUint8Array),
21794
21951
  /* harmony export */ compareArrays: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareArrays),
21795
21952
  /* harmony export */ compareBooleans: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleans),
21796
21953
  /* harmony export */ compareBooleansOrUndefined: () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_9__.compareBooleansOrUndefined),
@@ -21808,16 +21965,16 @@ __webpack_require__.r(__webpack_exports__);
21808
21965
  /* harmony export */ expectNotNull: () => (/* reexport safe */ _Expect__WEBPACK_IMPORTED_MODULE_13__.expectNotNull),
21809
21966
  /* harmony export */ isDisposable: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.isDisposable),
21810
21967
  /* harmony export */ isIDisposable: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.isIDisposable),
21811
- /* harmony export */ isInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_35__.isInstanceOf),
21968
+ /* harmony export */ isInstanceOf: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_36__.isInstanceOf),
21812
21969
  /* harmony export */ isProperSubclassOf: () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isProperSubclassOf),
21813
21970
  /* harmony export */ isSubclassOf: () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_8__.isSubclassOf),
21814
- /* harmony export */ lowerBound: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.lowerBound),
21815
- /* harmony export */ omit: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_35__.omit),
21816
- /* harmony export */ partitionArray: () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_24__.partitionArray),
21817
- /* harmony export */ shallowClone: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.shallowClone),
21971
+ /* harmony export */ lowerBound: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_28__.lowerBound),
21972
+ /* harmony export */ omit: () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_36__.omit),
21973
+ /* harmony export */ partitionArray: () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_25__.partitionArray),
21974
+ /* harmony export */ shallowClone: () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_28__.shallowClone),
21818
21975
  /* harmony export */ using: () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
21819
- /* harmony export */ utf8ToString: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_28__.utf8ToString),
21820
- /* harmony export */ wrapTimerCallback: () => (/* reexport safe */ _UtilityFunctions__WEBPACK_IMPORTED_MODULE_34__.wrapTimerCallback)
21976
+ /* harmony export */ utf8ToString: () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_29__.utf8ToString),
21977
+ /* harmony export */ wrapTimerCallback: () => (/* reexport safe */ _UtilityFunctions__WEBPACK_IMPORTED_MODULE_35__.wrapTimerCallback)
21821
21978
  /* harmony export */ });
21822
21979
  /* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../bentley/lib/esm/AccessToken.js");
21823
21980
  /* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
@@ -21839,24 +21996,25 @@ __webpack_require__.r(__webpack_exports__);
21839
21996
  /* harmony import */ var _JsonUtils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./JsonUtils */ "../bentley/lib/esm/JsonUtils.js");
21840
21997
  /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Logger */ "../bentley/lib/esm/Logger.js");
21841
21998
  /* harmony import */ var _LRUMap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./LRUMap */ "../bentley/lib/esm/LRUMap.js");
21842
- /* harmony import */ var _ObservableSet__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ObservableSet */ "../bentley/lib/esm/ObservableSet.js");
21843
- /* harmony import */ var _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./OneAtATimeAction */ "../bentley/lib/esm/OneAtATimeAction.js");
21844
- /* harmony import */ var _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./OrderedId64Iterable */ "../bentley/lib/esm/OrderedId64Iterable.js");
21845
- /* harmony import */ var _OrderedSet__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./OrderedSet */ "../bentley/lib/esm/OrderedSet.js");
21846
- /* harmony import */ var _partitionArray__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./partitionArray */ "../bentley/lib/esm/partitionArray.js");
21847
- /* harmony import */ var _PriorityQueue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./PriorityQueue */ "../bentley/lib/esm/PriorityQueue.js");
21848
- /* harmony import */ var _ProcessDetector__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ProcessDetector */ "../bentley/lib/esm/ProcessDetector.js");
21849
- /* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
21850
- /* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./StringUtils */ "../bentley/lib/esm/StringUtils.js");
21851
- /* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Time */ "../bentley/lib/esm/Time.js");
21852
- /* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Tracing */ "../bentley/lib/esm/Tracing.js");
21853
- /* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TupleKeyedMap */ "../bentley/lib/esm/TupleKeyedMap.js");
21854
- /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
21855
- /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
21856
- /* harmony import */ var _UtilityFunctions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./UtilityFunctions */ "../bentley/lib/esm/UtilityFunctions.js");
21857
- /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
21858
- /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
21859
- /* harmony import */ var _internal_cross_package__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./internal/cross-package */ "../bentley/lib/esm/internal/cross-package.js");
21999
+ /* harmony import */ var _ObservableMap__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ObservableMap */ "../bentley/lib/esm/ObservableMap.js");
22000
+ /* harmony import */ var _ObservableSet__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./ObservableSet */ "../bentley/lib/esm/ObservableSet.js");
22001
+ /* harmony import */ var _OneAtATimeAction__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./OneAtATimeAction */ "../bentley/lib/esm/OneAtATimeAction.js");
22002
+ /* harmony import */ var _OrderedId64Iterable__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./OrderedId64Iterable */ "../bentley/lib/esm/OrderedId64Iterable.js");
22003
+ /* harmony import */ var _OrderedSet__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./OrderedSet */ "../bentley/lib/esm/OrderedSet.js");
22004
+ /* harmony import */ var _partitionArray__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./partitionArray */ "../bentley/lib/esm/partitionArray.js");
22005
+ /* harmony import */ var _PriorityQueue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./PriorityQueue */ "../bentley/lib/esm/PriorityQueue.js");
22006
+ /* harmony import */ var _ProcessDetector__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ProcessDetector */ "../bentley/lib/esm/ProcessDetector.js");
22007
+ /* harmony import */ var _SortedArray__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./SortedArray */ "../bentley/lib/esm/SortedArray.js");
22008
+ /* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./StringUtils */ "../bentley/lib/esm/StringUtils.js");
22009
+ /* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Time */ "../bentley/lib/esm/Time.js");
22010
+ /* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Tracing */ "../bentley/lib/esm/Tracing.js");
22011
+ /* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./TupleKeyedMap */ "../bentley/lib/esm/TupleKeyedMap.js");
22012
+ /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
22013
+ /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
22014
+ /* harmony import */ var _UtilityFunctions__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./UtilityFunctions */ "../bentley/lib/esm/UtilityFunctions.js");
22015
+ /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
22016
+ /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
22017
+ /* harmony import */ var _internal_cross_package__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./internal/cross-package */ "../bentley/lib/esm/internal/cross-package.js");
21860
22018
  /*---------------------------------------------------------------------------------------------
21861
22019
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21862
22020
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -21896,6 +22054,7 @@ __webpack_require__.r(__webpack_exports__);
21896
22054
 
21897
22055
 
21898
22056
 
22057
+
21899
22058
 
21900
22059
 
21901
22060
  // Temporarily (until 5.0) export top-level internal APIs to avoid breaking callers.
@@ -22321,23 +22480,9 @@ class ITwinLocalization {
22321
22480
  this.i18next.loadNamespaces(name, (err) => {
22322
22481
  if (!err)
22323
22482
  return resolve();
22324
- // Here we got a non-null err object.
22325
- // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
22326
- // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
22327
- // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
22328
- // 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.
22329
- let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
22330
- try {
22331
- for (const thisError of err) {
22332
- if (typeof thisError === "string")
22333
- locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));
22334
- }
22335
- }
22336
- catch {
22337
- locales = [];
22338
- }
22339
- // if we removed every locale from the array, it wasn't loaded.
22340
- if (locales.length === 0)
22483
+ // i18next can return errors from other concurrent namespace loads in this callback.
22484
+ const wasLoaded = this.getLanguageList().some((language) => this.i18next.hasResourceBundle(language, name));
22485
+ if (!wasLoaded)
22341
22486
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
22342
22487
  resolve();
22343
22488
  });
@@ -22684,7 +22829,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
22684
22829
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
22685
22830
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22686
22831
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22687
-
22832
+ ;
22688
22833
 
22689
22834
  var getDefaults = function getDefaults() {
22690
22835
  return {
@@ -22899,7 +23044,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
22899
23044
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22900
23045
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22901
23046
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
22902
-
23047
+ ;
22903
23048
  var fetchApi = typeof fetch === 'function' ? fetch : undefined;
22904
23049
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
22905
23050
  fetchApi = __webpack_require__.g.fetch;
@@ -22925,7 +23070,7 @@ if (typeof ActiveXObject === 'function') {
22925
23070
  if (typeof fetchApi !== 'function') fetchApi = undefined;
22926
23071
  if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
22927
23072
  try {
22928
- __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_cross-fetch_4_1_0_node_modules_cross-fetch_dist_browser-44272f").then(__webpack_require__.t.bind(__webpack_require__, /*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@4.1.0/node_modules/cross-fetch/dist/browser-ponyfill.js", 19)).then(function (mod) {
23073
+ __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_cross-fetch_4_1_0_node_modules_cross-fetch_dist_browser-44272f").then(() => (__webpack_require__.t(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@4.1.0/node_modules/cross-fetch/dist/browser-ponyfill.js", 19))).then(function (mod) {
22929
23074
  fetchApi = mod.default;
22930
23075
  }).catch(function () {});
22931
23076
  } catch (e) {}
@@ -23231,7 +23376,7 @@ function interpolateUrl(str, data) {
23231
23376
  /************************************************************************/
23232
23377
  /******/ /* webpack/runtime/create fake namespace object */
23233
23378
  /******/ (() => {
23234
- /******/ const getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
23379
+ /******/ const getProto = Object.getPrototypeOf;
23235
23380
  /******/ let leafPrototypes;
23236
23381
  /******/ // create a fake namespace object
23237
23382
  /******/ // mode & 1: value is a module id, require it
@@ -23260,70 +23405,42 @@ function interpolateUrl(str, data) {
23260
23405
  /******/ })();
23261
23406
  /******/
23262
23407
  /******/ /* webpack/runtime/define property getters */
23263
- /******/ (() => {
23264
- /******/ // define getter/value functions for harmony exports
23265
- /******/ __webpack_require__.d = (exports, definition) => {
23266
- /******/ if(Array.isArray(definition)) {
23267
- /******/ var i = 0;
23268
- /******/ while(i < definition.length) {
23269
- /******/ var key = definition[i++];
23270
- /******/ var binding = definition[i++];
23271
- /******/ if(!__webpack_require__.o(exports, key)) {
23272
- /******/ if(binding === 0) {
23273
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
23274
- /******/ } else {
23275
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
23276
- /******/ }
23277
- /******/ } else if(binding === 0) { i++; }
23278
- /******/ }
23279
- /******/ } else {
23280
- /******/ for(var key in definition) {
23281
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
23282
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
23283
- /******/ }
23284
- /******/ }
23408
+ /******/ // define getter/value functions for harmony exports
23409
+ /******/ __webpack_require__.d = (exports, definition) => {
23410
+ /******/ for(var key in definition) {
23411
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
23412
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
23285
23413
  /******/ }
23286
- /******/ };
23287
- /******/ })();
23414
+ /******/ }
23415
+ /******/ };
23288
23416
  /******/
23289
23417
  /******/ /* webpack/runtime/ensure chunk */
23290
- /******/ (() => {
23291
- /******/ __webpack_require__.f = {};
23292
- /******/ // This file contains only the entry chunk.
23293
- /******/ // The chunk loading function for additional chunks
23294
- /******/ __webpack_require__.e = (chunkId) => {
23295
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
23296
- /******/ __webpack_require__.f[key](chunkId, promises);
23297
- /******/ return promises;
23298
- /******/ }, []));
23299
- /******/ };
23300
- /******/ })();
23418
+ /******/ __webpack_require__.f = {};
23419
+ /******/ // This file contains only the entry chunk.
23420
+ /******/ // The chunk loading function for additional chunks
23421
+ /******/ __webpack_require__.e = (chunkId) => {
23422
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
23423
+ /******/ __webpack_require__.f[key](chunkId, promises);
23424
+ /******/ return promises;
23425
+ /******/ }, []));
23426
+ /******/ };
23301
23427
  /******/
23302
23428
  /******/ /* webpack/runtime/get javascript chunk filename */
23303
- /******/ (() => {
23304
- /******/ // This function allow to reference async chunks
23305
- /******/ __webpack_require__.u = (chunkId) => {
23306
- /******/ // return url for filenames based on template
23307
- /******/ return "" + chunkId + ".bundled-tests.js";
23308
- /******/ };
23309
- /******/ })();
23429
+ /******/ // This function allow to reference async chunks
23430
+ /******/ __webpack_require__.u = (chunkId) => (chunkId + ".bundled-tests.js");
23310
23431
  /******/
23311
23432
  /******/ /* webpack/runtime/global */
23312
- /******/ (() => {
23313
- /******/ __webpack_require__.g = (function() {
23314
- /******/ if (typeof globalThis === 'object') return globalThis;
23315
- /******/ try {
23316
- /******/ return this || new Function('return this')();
23317
- /******/ } catch (e) {
23318
- /******/ if (typeof window === 'object') return window;
23319
- /******/ }
23320
- /******/ })();
23433
+ /******/ __webpack_require__.g = (function() {
23434
+ /******/ if (typeof globalThis === 'object') return globalThis;
23435
+ /******/ try {
23436
+ /******/ return this || new Function('return this')();
23437
+ /******/ } catch (e) {
23438
+ /******/ if (typeof window === 'object') return window;
23439
+ /******/ }
23321
23440
  /******/ })();
23322
23441
  /******/
23323
23442
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
23324
- /******/ (() => {
23325
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
23326
- /******/ })();
23443
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
23327
23444
  /******/
23328
23445
  /******/ /* webpack/runtime/load script */
23329
23446
  /******/ (() => {
@@ -23371,15 +23488,11 @@ function interpolateUrl(str, data) {
23371
23488
  /******/ })();
23372
23489
  /******/
23373
23490
  /******/ /* webpack/runtime/make namespace object */
23374
- /******/ (() => {
23375
- /******/ // define __esModule on exports
23376
- /******/ __webpack_require__.r = (exports) => {
23377
- /******/ if(Symbol.toStringTag) {
23378
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
23379
- /******/ }
23380
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
23381
- /******/ };
23382
- /******/ })();
23491
+ /******/ // define __esModule on exports
23492
+ /******/ __webpack_require__.r = (exports) => {
23493
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
23494
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
23495
+ /******/ };
23383
23496
  /******/
23384
23497
  /******/ /* webpack/runtime/publicPath */
23385
23498
  /******/ (() => {
@@ -23393,14 +23506,14 @@ function interpolateUrl(str, data) {
23393
23506
  /******/ const scripts = document.getElementsByTagName("script");
23394
23507
  /******/ if(scripts.length) {
23395
23508
  /******/ let i = scripts.length - 1;
23396
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
23509
+ /******/ while (i > -1 && (!scriptUrl || !/^https?:/.test(scriptUrl))) scriptUrl = scripts[i--].src;
23397
23510
  /******/ }
23398
23511
  /******/ }
23399
23512
  /******/ }
23400
23513
  /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
23401
23514
  /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
23402
23515
  /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
23403
- /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
23516
+ /******/ scriptUrl = scriptUrl.replace(/^blob:|[?#].*$/g, "").replace(/\/[^/]+$/, "/");
23404
23517
  /******/ __webpack_require__.p = scriptUrl;
23405
23518
  /******/ })();
23406
23519
  /******/
@@ -23429,8 +23542,6 @@ function interpolateUrl(str, data) {
23429
23542
  /******/ const promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
23430
23543
  /******/ promises.push(installedChunkData[2] = promise);
23431
23544
  /******/
23432
- /******/ // start chunk loading
23433
- /******/ const url = __webpack_require__.p + __webpack_require__.u(chunkId);
23434
23545
  /******/ // create error before stack unwound to get useful stacktrace later
23435
23546
  /******/ const error = new Error();
23436
23547
  /******/ const loadingEnded = (event) => {
@@ -23444,11 +23555,12 @@ function interpolateUrl(str, data) {
23444
23555
  /******/ error.name = 'ChunkLoadError';
23445
23556
  /******/ error.type = errorType;
23446
23557
  /******/ error.request = realSrc;
23558
+ /******/ error.event = event;
23447
23559
  /******/ installedChunkData[1](error);
23448
23560
  /******/ }
23449
23561
  /******/ }
23450
23562
  /******/ };
23451
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
23563
+ /******/ __webpack_require__.l(__webpack_require__.p + __webpack_require__.u(chunkId), loadingEnded, "chunk-" + chunkId, chunkId);
23452
23564
  /******/ }
23453
23565
  /******/ }
23454
23566
  /******/ }
@@ -23510,6 +23622,7 @@ let exports = __webpack_exports__;
23510
23622
  *--------------------------------------------------------------------------------------------*/
23511
23623
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23512
23624
  const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.5.0/node_modules/chai/index.js");
23625
+ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js");
23513
23626
  const ITwinLocalization_1 = __webpack_require__(/*! ../ITwinLocalization */ "./lib/cjs/ITwinLocalization.js");
23514
23627
  describe("ITwinLocalization", () => {
23515
23628
  let localization;
@@ -24376,6 +24489,65 @@ describe("ITwinLocalization", () => {
24376
24489
  chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24377
24490
  chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
24378
24491
  });
24492
+ it("attributes errors from concurrent namespace loads to the namespace that failed", async () => {
24493
+ const pendingLoads = new Map();
24494
+ const backend = {
24495
+ type: "backend",
24496
+ init: () => { },
24497
+ read: (_language, namespace, callback) => pendingLoads.set(namespace, callback),
24498
+ };
24499
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({
24500
+ backendPlugin: backend,
24501
+ initOptions: { lng: "en", fallbackLng: false },
24502
+ });
24503
+ await itwinLocalization.initialize([]);
24504
+ const loggedErrors = [];
24505
+ // eslint-disable-next-line @typescript-eslint/unbound-method -- Preserve the exact method reference so the test can restore it.
24506
+ const originalLogError = core_bentley_1.Logger.logError;
24507
+ core_bentley_1.Logger.logError = (_category, message) => loggedErrors.push(String(message));
24508
+ try {
24509
+ const loadedPromise = itwinLocalization.registerNamespace("Loaded");
24510
+ const missingPromise = itwinLocalization.registerNamespace("Missing");
24511
+ chai_1.assert.sameMembers([...pendingLoads.keys()], ["Loaded", "Missing"]);
24512
+ pendingLoads.get("Missing")?.(new Error("Missing namespace"), false);
24513
+ pendingLoads.get("Loaded")?.(null, { key: "value" });
24514
+ await Promise.all([missingPromise, loadedPromise]);
24515
+ chai_1.assert.deepEqual(loggedErrors, ["No resources for namespace Missing could be loaded"]);
24516
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasResourceBundle("en", "Loaded"));
24517
+ }
24518
+ finally {
24519
+ core_bentley_1.Logger.logError = originalLogError;
24520
+ }
24521
+ });
24522
+ it("does not log an error when a namespace loads from a fallback language", async () => {
24523
+ const pendingLoads = new Map();
24524
+ const backend = {
24525
+ type: "backend",
24526
+ init: () => { },
24527
+ read: (language, namespace, callback) => pendingLoads.set(`${language}/${namespace}`, callback),
24528
+ };
24529
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({
24530
+ backendPlugin: backend,
24531
+ initOptions: { lng: "fr", fallbackLng: "en" },
24532
+ });
24533
+ await itwinLocalization.initialize([]);
24534
+ const loggedErrors = [];
24535
+ // eslint-disable-next-line @typescript-eslint/unbound-method -- Preserve the exact method reference so the test can restore it.
24536
+ const originalLogError = core_bentley_1.Logger.logError;
24537
+ core_bentley_1.Logger.logError = (_category, message) => loggedErrors.push(String(message));
24538
+ try {
24539
+ const loadPromise = itwinLocalization.registerNamespace("Fallback");
24540
+ chai_1.assert.sameMembers([...pendingLoads.keys()], ["fr/Fallback", "en/Fallback"]);
24541
+ pendingLoads.get("fr/Fallback")?.(new Error("Missing French namespace"), false);
24542
+ pendingLoads.get("en/Fallback")?.(null, { key: "value" });
24543
+ await loadPromise;
24544
+ chai_1.assert.isEmpty(loggedErrors);
24545
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasResourceBundle("en", "Fallback"));
24546
+ }
24547
+ finally {
24548
+ core_bentley_1.Logger.logError = originalLogError;
24549
+ }
24550
+ });
24379
24551
  });
24380
24552
  // unregisterNamespace() isn't used and basically does nothing
24381
24553
  // describe("#unregisterNamespace", () => {