@itwin/core-i18n 5.0.0-dev.56 → 5.0.0-dev.57

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.
@@ -15515,10 +15515,8 @@ __webpack_require__.r(__webpack_exports__);
15515
15515
  * @public
15516
15516
  */
15517
15517
  class BeEvent {
15518
- constructor() {
15519
- this._listeners = [];
15520
- this._insideRaiseEvent = false;
15521
- }
15518
+ _listeners = [];
15519
+ _insideRaiseEvent = false;
15522
15520
  /** The number of listeners currently subscribed to the event. */
15523
15521
  get numberOfListeners() { return this._listeners.length; }
15524
15522
  /**
@@ -15627,9 +15625,7 @@ class BeUiEvent extends BeEvent {
15627
15625
  * @public
15628
15626
  */
15629
15627
  class BeEventList {
15630
- constructor() {
15631
- this._events = {};
15632
- }
15628
+ _events = {};
15633
15629
  /**
15634
15630
  * Gets the event associated with the specified name, creating the event if it does not already exist.
15635
15631
  * @param name The name of the event.
@@ -16175,6 +16171,8 @@ function isObject(obj) {
16175
16171
  * @public
16176
16172
  */
16177
16173
  class BentleyError extends Error {
16174
+ errorNumber;
16175
+ _metaData;
16178
16176
  /**
16179
16177
  * @param errorNumber The a number that identifies of the problem.
16180
16178
  * @param message message that describes the problem (should not be localized).
@@ -16602,6 +16600,9 @@ __webpack_require__.r(__webpack_exports__);
16602
16600
  * @public
16603
16601
  */
16604
16602
  class ByteStream {
16603
+ _view;
16604
+ _byteOffset;
16605
+ _curPos = 0;
16605
16606
  /** Construct a new ByteStream with the read position set to the beginning.
16606
16607
  * @param buffer The underlying buffer from which data is to be extracted.
16607
16608
  * @param subView If defined, specifies the subset of the underlying buffer's data to use.
@@ -16616,7 +16617,6 @@ class ByteStream {
16616
16617
  * For both of the above reasons, this constructor is private, and [[fromUint8Array]] or [[fromArrayBuffer]] should be used to create a ByteStream.
16617
16618
  */
16618
16619
  constructor(buffer, subView) {
16619
- this._curPos = 0;
16620
16620
  if (undefined !== subView) {
16621
16621
  this._view = new DataView(buffer, subView.byteOffset, subView.byteLength);
16622
16622
  this._byteOffset = subView.byteOffset;
@@ -16994,7 +16994,9 @@ var CompressedId64Set;
16994
16994
  CompressedId64Set.compressIds = compressIds;
16995
16995
  /** This exists strictly for the purposes of compressed sets of 64-bit Ids, to avoid the overhead of BigInt for handling 64-bit integers. */
16996
16996
  class Uint64 {
16997
- static { this._base = 0x100000000; }
16997
+ lower;
16998
+ upper;
16999
+ static _base = 0x100000000;
16998
17000
  static assertUint32(num) {
16999
17001
  (0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(num >= 0);
17000
17002
  (0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(num < Uint64._base);
@@ -17199,10 +17201,11 @@ class OrderedId64Array extends _SortedArray__WEBPACK_IMPORTED_MODULE_3__.SortedA
17199
17201
  * @public
17200
17202
  */
17201
17203
  class MutableCompressedId64Set {
17204
+ _ids;
17205
+ _inserted = new OrderedId64Array();
17206
+ _deleted = new OrderedId64Array();
17202
17207
  /** Construct a new set, optionally initialized to contain the Ids represented by `ids`. */
17203
17208
  constructor(ids) {
17204
- this._inserted = new OrderedId64Array();
17205
- this._deleted = new OrderedId64Array();
17206
17209
  this._ids = ids ?? "";
17207
17210
  }
17208
17211
  /** Obtain the compact string representation of the contents of this set. If any insertions or removals are pending, they will be applied and the string recomputed. */
@@ -17322,8 +17325,10 @@ __webpack_require__.r(__webpack_exports__);
17322
17325
  */
17323
17326
 
17324
17327
  class DictionaryIterator {
17328
+ _keys;
17329
+ _values;
17330
+ _curIndex = -1;
17325
17331
  constructor(keys, values) {
17326
- this._curIndex = -1;
17327
17332
  this._keys = keys;
17328
17333
  this._values = values;
17329
17334
  }
@@ -17358,6 +17363,11 @@ class DictionaryIterator {
17358
17363
  * @public
17359
17364
  */
17360
17365
  class Dictionary {
17366
+ _keys = [];
17367
+ _compareKeys;
17368
+ _cloneKey;
17369
+ _values = [];
17370
+ _cloneValue;
17361
17371
  /**
17362
17372
  * Construct a new Dictionary<K, V>.
17363
17373
  * @param compareKeys The function used to compare keys within the dictionary.
@@ -17365,8 +17375,6 @@ class Dictionary {
17365
17375
  * @param cloneValue The function invoked to clone a value for insertion into the dictionary. The default implementation simply returns its input.
17366
17376
  */
17367
17377
  constructor(compareKeys, cloneKey = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone, cloneValue = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
17368
- this._keys = [];
17369
- this._values = [];
17370
17378
  this._compareKeys = compareKeys;
17371
17379
  this._cloneKey = cloneKey;
17372
17380
  this._cloneValue = cloneValue;
@@ -17604,6 +17612,7 @@ function using(resources, func) {
17604
17612
  }
17605
17613
  }
17606
17614
  class FuncDisposable {
17615
+ _disposeFunc;
17607
17616
  constructor(disposeFunc) { this._disposeFunc = disposeFunc; }
17608
17617
  dispose() { this._disposeFunc(); }
17609
17618
  }
@@ -17611,6 +17620,7 @@ class FuncDisposable {
17611
17620
  * @public
17612
17621
  */
17613
17622
  class DisposableList {
17623
+ _disposables;
17614
17624
  /** Creates a disposable list. */
17615
17625
  constructor(disposables = []) {
17616
17626
  this._disposables = [];
@@ -18076,11 +18086,11 @@ var Id64;
18076
18086
  * @public
18077
18087
  */
18078
18088
  class Uint32Set {
18089
+ _map = new Map();
18079
18090
  /** Construct a new Uint32Set.
18080
18091
  * @param ids If supplied, all of the specified Ids will be added to the new set.
18081
18092
  */
18082
18093
  constructor(ids) {
18083
- this._map = new Map();
18084
18094
  if (undefined !== ids)
18085
18095
  this.addIds(ids);
18086
18096
  }
@@ -18194,9 +18204,7 @@ var Id64;
18194
18204
  * @public
18195
18205
  */
18196
18206
  class Uint32Map {
18197
- constructor() {
18198
- this._map = new Map();
18199
- }
18207
+ _map = new Map();
18200
18208
  /** Remove all entries from the map. */
18201
18209
  clear() { this._map.clear(); }
18202
18210
  /** Find an entry in the map by Id. */
@@ -18247,6 +18255,9 @@ function validateLocalId(num) {
18247
18255
  * @public
18248
18256
  */
18249
18257
  class TransientIdSequence {
18258
+ /** The starting local Id provided to the constructor. The sequence begins at `initialLocalId + 1`. */
18259
+ initialLocalId;
18260
+ _localId;
18250
18261
  /** Constructor.
18251
18262
  * @param initialLocalId The starting local Id. The local Id of the first [[Id64String]] generated by [[getNext]] will be `initialLocalId + 1`.
18252
18263
  */
@@ -18409,6 +18420,8 @@ __webpack_require__.r(__webpack_exports__);
18409
18420
  * @public
18410
18421
  */
18411
18422
  class IndexedValue {
18423
+ value;
18424
+ index;
18412
18425
  constructor(value, index) {
18413
18426
  this.value = value;
18414
18427
  this.index = index;
@@ -18421,6 +18434,10 @@ class IndexedValue {
18421
18434
  * @public
18422
18435
  */
18423
18436
  class IndexMap {
18437
+ _array = [];
18438
+ _compareValues;
18439
+ _clone;
18440
+ _maximumSize;
18424
18441
  /**
18425
18442
  * Construct a new IndexMap<T>.
18426
18443
  * @param compare The function used to compare elements within the map.
@@ -18428,7 +18445,6 @@ class IndexMap {
18428
18445
  * @param clone The function invoked to clone a new element for insertion into the array. The default implementation simply returns its input.
18429
18446
  */
18430
18447
  constructor(compare, maximumSize = Number.MAX_SAFE_INTEGER, clone = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
18431
- this._array = [];
18432
18448
  this._compareValues = compare;
18433
18449
  this._clone = clone;
18434
18450
  this._maximumSize = maximumSize;
@@ -18702,12 +18718,17 @@ __webpack_require__.r(__webpack_exports__);
18702
18718
  * @public
18703
18719
  */
18704
18720
  class Entry {
18721
+ key;
18722
+ value;
18723
+ newer;
18724
+ older;
18705
18725
  constructor(key, value) {
18706
18726
  this.key = key;
18707
18727
  this.value = value;
18708
18728
  }
18709
18729
  }
18710
18730
  class EntryIterator {
18731
+ _entry;
18711
18732
  constructor(oldestEntry) {
18712
18733
  this._entry = oldestEntry;
18713
18734
  }
@@ -18721,6 +18742,7 @@ class EntryIterator {
18721
18742
  }
18722
18743
  }
18723
18744
  class KeyIterator {
18745
+ _entry;
18724
18746
  constructor(oldestEntry) {
18725
18747
  this._entry = oldestEntry;
18726
18748
  }
@@ -18733,6 +18755,7 @@ class KeyIterator {
18733
18755
  }
18734
18756
  }
18735
18757
  class ValueIterator {
18758
+ _entry;
18736
18759
  constructor(oldestEntry) {
18737
18760
  this._entry = oldestEntry;
18738
18761
  }
@@ -18765,6 +18788,15 @@ class ValueIterator {
18765
18788
  * @public
18766
18789
  */
18767
18790
  class LRUCache {
18791
+ _container;
18792
+ /** Current number of items */
18793
+ size;
18794
+ /** Maximum number of items this cache can hold */
18795
+ limit;
18796
+ /** Least recently-used entry. Invalidated when cache is modified. */
18797
+ oldest;
18798
+ /** Most recently-used entry. Invalidated when cache is modified. */
18799
+ newest;
18768
18800
  /**
18769
18801
  * Construct a new LRUCache to hold up to `limit` entries.
18770
18802
  */
@@ -19062,7 +19094,12 @@ var LogLevel;
19062
19094
  * @public
19063
19095
  */
19064
19096
  class Logger {
19065
- static { this._staticMetaData = new Map(); }
19097
+ static _logError;
19098
+ static _logWarning;
19099
+ static _logInfo;
19100
+ static _logTrace;
19101
+ static _onLogLevelChanged;
19102
+ static _staticMetaData = new Map();
19066
19103
  /** An event raised whenever [[setLevel]] or [[setLevelDefault]] is called. */
19067
19104
  static get onLogLevelChanged() {
19068
19105
  // We have to lazily initialize because it's static and BeEvent imports UnexpectedErrors which imports Logger which wants to instantiate BeEvent.
@@ -19071,7 +19108,7 @@ class Logger {
19071
19108
  }
19072
19109
  return Logger._onLogLevelChanged;
19073
19110
  }
19074
- static { this._categoryFilter = {}; }
19111
+ static _categoryFilter = {};
19075
19112
  /** Maps category names to the least severe level at which messages in that category should be displayed,
19076
19113
  * or `undefined` if a minimum has not been defined.
19077
19114
  * @see [[setLevel]] to change the minimum logging level for a category.
@@ -19080,6 +19117,7 @@ class Logger {
19080
19117
  // NOTE: this property is accessed by native code.
19081
19118
  return this._categoryFilter;
19082
19119
  }
19120
+ static _minLevel;
19083
19121
  /** The least severe level at which messages should be displayed by default.
19084
19122
  * @see [[setLevelDefault]] to change this default.
19085
19123
  * @see [[setLevel]] to override this default for specific categories.
@@ -19089,7 +19127,7 @@ class Logger {
19089
19127
  return this._minLevel;
19090
19128
  }
19091
19129
  /** Should the call stack be included when an exception is logged? */
19092
- static { this.logExceptionCallstacks = false; }
19130
+ static logExceptionCallstacks = false;
19093
19131
  /** Contains metadata that should be included with every logged message.
19094
19132
  * @beta
19095
19133
  */
@@ -19285,7 +19323,10 @@ class Logger {
19285
19323
  * @public
19286
19324
  */
19287
19325
  class PerfLogger {
19288
- static { this._severity = LogLevel.Info; }
19326
+ static _severity = LogLevel.Info;
19327
+ _operation;
19328
+ _metaData;
19329
+ _startTimeStamp;
19289
19330
  constructor(operation, metaData) {
19290
19331
  this._operation = operation;
19291
19332
  this._metaData = metaData;
@@ -19343,18 +19384,18 @@ __webpack_require__.r(__webpack_exports__);
19343
19384
  * @public
19344
19385
  */
19345
19386
  class ObservableSet extends Set {
19387
+ /** Emitted after `item` is added to this set. */
19388
+ onAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19389
+ /** Emitted after `item` is deleted from this set. */
19390
+ onDeleted = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19391
+ /** Emitted after this set's contents are cleared. */
19392
+ onCleared = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19346
19393
  /** Construct a new ObservableSet.
19347
19394
  * @param elements Optional elements with which to populate the new set.
19348
19395
  */
19349
19396
  constructor(elements) {
19350
19397
  // NB: Set constructor will invoke add(). Do not override until initialized.
19351
19398
  super(elements);
19352
- /** Emitted after `item` is added to this set. */
19353
- this.onAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19354
- /** Emitted after `item` is deleted from this set. */
19355
- this.onDeleted = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19356
- /** Emitted after this set's contents are cleared. */
19357
- this.onCleared = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
19358
19399
  this.add = (item) => {
19359
19400
  const prevSize = this.size;
19360
19401
  const ret = super.add(item);
@@ -19417,6 +19458,11 @@ class AbandonedError extends Error {
19417
19458
  * Promises involved that are chained together. That makes this class less efficient than just using a Promise directly.
19418
19459
  */
19419
19460
  class PromiseWithAbandon {
19461
+ _run;
19462
+ _args;
19463
+ /** Method to abandon the Promise created by [[init]] while it is outstanding. The promise will be rejected. */
19464
+ abandon;
19465
+ _resolve;
19420
19466
  /** Create a PromiseWithAbandon. After this call you must call [[init]] to create the underlying Promise.
19421
19467
  * @param _run The method that creates the underlying Promise.
19422
19468
  * @param _args An array of args to be passed to run when [[start]] is called.
@@ -19454,6 +19500,10 @@ class PromiseWithAbandon {
19454
19500
  * @beta
19455
19501
  */
19456
19502
  class OneAtATimeAction {
19503
+ _active;
19504
+ _pending;
19505
+ _run;
19506
+ msg;
19457
19507
  /** Ctor for OneAtATimePromise.
19458
19508
  * @param run The method that performs an action that creates the Promise.
19459
19509
  */
@@ -19767,6 +19817,7 @@ __webpack_require__.r(__webpack_exports__);
19767
19817
  * @public
19768
19818
  */
19769
19819
  class ReadonlyOrderedSet {
19820
+ _array;
19770
19821
  /** Construct a new ReadonlyOrderedSet<T>.
19771
19822
  * @param compare The function used to compare elements within the set, determining their ordering.
19772
19823
  * @param clone The function invoked to clone a new element for insertion into the set. The default implementation simply returns its input.
@@ -19842,6 +19893,9 @@ __webpack_require__.r(__webpack_exports__);
19842
19893
  * @public
19843
19894
  */
19844
19895
  class PriorityQueue {
19896
+ _array = [];
19897
+ _compare;
19898
+ _clone;
19845
19899
  /**
19846
19900
  * Constructor
19847
19901
  * @param compare The function used to compare values in the queue. If `compare(x, y)` returns a negative value, then x is placed before y in the queue.
@@ -19849,7 +19903,6 @@ class PriorityQueue {
19849
19903
  * @note If the criterion which control the result of the `compare` function changes, then [[PriorityQueue.sort]] should be used to reorder the queue according to the new criterion.
19850
19904
  */
19851
19905
  constructor(compare, clone = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
19852
- this._array = [];
19853
19906
  this._compare = compare;
19854
19907
  this._clone = clone;
19855
19908
  }
@@ -20147,6 +20200,10 @@ var DuplicatePolicy;
20147
20200
  * @public
20148
20201
  */
20149
20202
  class ReadonlySortedArray {
20203
+ _array = [];
20204
+ _compare;
20205
+ _clone;
20206
+ _duplicatePolicy;
20150
20207
  /**
20151
20208
  * Construct a new ReadonlySortedArray<T>.
20152
20209
  * @param compare The function used to compare elements within the array.
@@ -20154,7 +20211,6 @@ class ReadonlySortedArray {
20154
20211
  * @param clone The function invoked to clone a new element for insertion into the array. The default implementation simply returns its input.
20155
20212
  */
20156
20213
  constructor(compare, duplicatePolicy = false, clone = shallowClone) {
20157
- this._array = [];
20158
20214
  this._compare = compare;
20159
20215
  this._clone = clone;
20160
20216
  if (typeof duplicatePolicy === "boolean")
@@ -20405,7 +20461,7 @@ __webpack_require__.r(__webpack_exports__);
20405
20461
  * @alpha
20406
20462
  */
20407
20463
  class StatusCategory {
20408
- static { this.handlers = new Set(); }
20464
+ static handlers = new Set();
20409
20465
  static for(error) {
20410
20466
  for (const handler of this.handlers) {
20411
20467
  const category = handler(error);
@@ -20424,173 +20480,110 @@ class StatusCategory {
20424
20480
  * @alpha
20425
20481
  */
20426
20482
  class SuccessCategory extends StatusCategory {
20427
- constructor() {
20428
- super(...arguments);
20429
- this.error = false;
20430
- }
20483
+ error = false;
20431
20484
  }
20432
20485
  /**
20433
20486
  * An error status.
20434
20487
  * @alpha
20435
20488
  */
20436
20489
  class ErrorCategory extends StatusCategory {
20437
- constructor() {
20438
- super(...arguments);
20439
- this.error = true;
20440
- }
20490
+ error = true;
20441
20491
  }
20442
20492
  var HTTP;
20443
20493
  (function (HTTP) {
20444
20494
  class OK extends SuccessCategory {
20445
- constructor() {
20446
- super(...arguments);
20447
- this.name = "OK";
20448
- this.code = 200;
20449
- }
20495
+ name = "OK";
20496
+ code = 200;
20450
20497
  }
20451
20498
  HTTP.OK = OK;
20452
20499
  class Accepted extends SuccessCategory {
20453
- constructor() {
20454
- super(...arguments);
20455
- this.name = "Accepted";
20456
- this.code = 202;
20457
- }
20500
+ name = "Accepted";
20501
+ code = 202;
20458
20502
  }
20459
20503
  HTTP.Accepted = Accepted;
20460
20504
  class NoContent extends SuccessCategory {
20461
- constructor() {
20462
- super(...arguments);
20463
- this.name = "NoContent";
20464
- this.code = 204;
20465
- }
20505
+ name = "NoContent";
20506
+ code = 204;
20466
20507
  }
20467
20508
  HTTP.NoContent = NoContent;
20468
20509
  class BadRequest extends ErrorCategory {
20469
- constructor() {
20470
- super(...arguments);
20471
- this.name = "BadRequest";
20472
- this.code = 400;
20473
- }
20510
+ name = "BadRequest";
20511
+ code = 400;
20474
20512
  }
20475
20513
  HTTP.BadRequest = BadRequest;
20476
20514
  class Unauthorized extends ErrorCategory {
20477
- constructor() {
20478
- super(...arguments);
20479
- this.name = "Unauthorized";
20480
- this.code = 401;
20481
- }
20515
+ name = "Unauthorized";
20516
+ code = 401;
20482
20517
  }
20483
20518
  HTTP.Unauthorized = Unauthorized;
20484
20519
  class Forbidden extends ErrorCategory {
20485
- constructor() {
20486
- super(...arguments);
20487
- this.name = "Forbidden";
20488
- this.code = 403;
20489
- }
20520
+ name = "Forbidden";
20521
+ code = 403;
20490
20522
  }
20491
20523
  HTTP.Forbidden = Forbidden;
20492
20524
  class NotFound extends ErrorCategory {
20493
- constructor() {
20494
- super(...arguments);
20495
- this.name = "NotFound";
20496
- this.code = 404;
20497
- }
20525
+ name = "NotFound";
20526
+ code = 404;
20498
20527
  }
20499
20528
  HTTP.NotFound = NotFound;
20500
20529
  class RequestTimeout extends ErrorCategory {
20501
- constructor() {
20502
- super(...arguments);
20503
- this.name = "RequestTimeout";
20504
- this.code = 408;
20505
- }
20530
+ name = "RequestTimeout";
20531
+ code = 408;
20506
20532
  }
20507
20533
  HTTP.RequestTimeout = RequestTimeout;
20508
20534
  class Conflict extends ErrorCategory {
20509
- constructor() {
20510
- super(...arguments);
20511
- this.name = "Conflict";
20512
- this.code = 409;
20513
- }
20535
+ name = "Conflict";
20536
+ code = 409;
20514
20537
  }
20515
20538
  HTTP.Conflict = Conflict;
20516
20539
  class Gone extends ErrorCategory {
20517
- constructor() {
20518
- super(...arguments);
20519
- this.name = "Gone";
20520
- this.code = 410;
20521
- }
20540
+ name = "Gone";
20541
+ code = 410;
20522
20542
  }
20523
20543
  HTTP.Gone = Gone;
20524
20544
  class PreconditionFailed extends ErrorCategory {
20525
- constructor() {
20526
- super(...arguments);
20527
- this.name = "PreconditionFailed";
20528
- this.code = 412;
20529
- }
20545
+ name = "PreconditionFailed";
20546
+ code = 412;
20530
20547
  }
20531
20548
  HTTP.PreconditionFailed = PreconditionFailed;
20532
20549
  class ExpectationFailed extends ErrorCategory {
20533
- constructor() {
20534
- super(...arguments);
20535
- this.name = "ExpectationFailed";
20536
- this.code = 417;
20537
- }
20550
+ name = "ExpectationFailed";
20551
+ code = 417;
20538
20552
  }
20539
20553
  HTTP.ExpectationFailed = ExpectationFailed;
20540
20554
  class MisdirectedRequest extends ErrorCategory {
20541
- constructor() {
20542
- super(...arguments);
20543
- this.name = "MisdirectedRequest";
20544
- this.code = 421;
20545
- }
20555
+ name = "MisdirectedRequest";
20556
+ code = 421;
20546
20557
  }
20547
20558
  HTTP.MisdirectedRequest = MisdirectedRequest;
20548
20559
  class UnprocessableEntity extends ErrorCategory {
20549
- constructor() {
20550
- super(...arguments);
20551
- this.name = "UnprocessableEntity";
20552
- this.code = 422;
20553
- }
20560
+ name = "UnprocessableEntity";
20561
+ code = 422;
20554
20562
  }
20555
20563
  HTTP.UnprocessableEntity = UnprocessableEntity;
20556
20564
  class UpgradeRequired extends ErrorCategory {
20557
- constructor() {
20558
- super(...arguments);
20559
- this.name = "UpgradeRequired";
20560
- this.code = 426;
20561
- }
20565
+ name = "UpgradeRequired";
20566
+ code = 426;
20562
20567
  }
20563
20568
  HTTP.UpgradeRequired = UpgradeRequired;
20564
20569
  class PreconditionRequired extends ErrorCategory {
20565
- constructor() {
20566
- super(...arguments);
20567
- this.name = "PreconditionRequired";
20568
- this.code = 428;
20569
- }
20570
+ name = "PreconditionRequired";
20571
+ code = 428;
20570
20572
  }
20571
20573
  HTTP.PreconditionRequired = PreconditionRequired;
20572
20574
  class TooManyRequests extends ErrorCategory {
20573
- constructor() {
20574
- super(...arguments);
20575
- this.name = "TooManyRequests";
20576
- this.code = 429;
20577
- }
20575
+ name = "TooManyRequests";
20576
+ code = 429;
20578
20577
  }
20579
20578
  HTTP.TooManyRequests = TooManyRequests;
20580
20579
  class InternalServerError extends ErrorCategory {
20581
- constructor() {
20582
- super(...arguments);
20583
- this.name = "InternalServerError";
20584
- this.code = 500;
20585
- }
20580
+ name = "InternalServerError";
20581
+ code = 500;
20586
20582
  }
20587
20583
  HTTP.InternalServerError = InternalServerError;
20588
20584
  class NotImplemented extends ErrorCategory {
20589
- constructor() {
20590
- super(...arguments);
20591
- this.name = "NotImplemented";
20592
- this.code = 501;
20593
- }
20585
+ name = "NotImplemented";
20586
+ code = 501;
20594
20587
  }
20595
20588
  HTTP.NotImplemented = NotImplemented;
20596
20589
  })(HTTP || (HTTP = {}));
@@ -20925,6 +20918,7 @@ __webpack_require__.r(__webpack_exports__);
20925
20918
  * @public
20926
20919
  */
20927
20920
  class BeDuration {
20921
+ _milliseconds;
20928
20922
  constructor(milliseconds = 0) { this._milliseconds = milliseconds; }
20929
20923
  /** The duration in milliseconds */
20930
20924
  get milliseconds() { return this._milliseconds; }
@@ -20991,6 +20985,7 @@ class BeDuration {
20991
20985
  * @public
20992
20986
  */
20993
20987
  class BeTimePoint {
20988
+ _milliseconds;
20994
20989
  /** the time in milliseconds, of this BeTimePoint (relative to January 1, 1970 00:00:00 UTC.) */
20995
20990
  get milliseconds() { return this._milliseconds; }
20996
20991
  constructor(milliseconds) { this._milliseconds = milliseconds; }
@@ -21029,6 +21024,9 @@ class BeTimePoint {
21029
21024
  * @public
21030
21025
  */
21031
21026
  class StopWatch {
21027
+ description;
21028
+ _start;
21029
+ _stop;
21032
21030
  /** Get the elapsed time since start() on a running timer. */
21033
21031
  get current() { return BeDuration.fromMilliseconds(BeTimePoint.now().milliseconds - (!!this._start ? this._start.milliseconds : 0)); }
21034
21032
  /** Get the elapsed time, in seconds, since start() on a running timer. */
@@ -21151,6 +21149,8 @@ function flattenObject(obj) {
21151
21149
  * @deprecated in 4.4 - OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
21152
21150
  */
21153
21151
  class Tracing {
21152
+ static _tracer;
21153
+ static _openTelemetry;
21154
21154
  /**
21155
21155
  * If OpenTelemetry tracing is enabled, creates a new span and runs the provided function in it.
21156
21156
  * If OpenTelemetry tracing is _not_ enabled, runs the provided function.
@@ -21280,10 +21280,9 @@ __webpack_require__.r(__webpack_exports__);
21280
21280
  * @public
21281
21281
  */
21282
21282
  class TupleKeyedMap {
21283
+ _map = new Map();
21283
21284
  // argument types match those of Map
21284
21285
  constructor(entries) {
21285
- this._map = new Map();
21286
- this._size = 0;
21287
21286
  if (entries)
21288
21287
  for (const [k, v] of entries) {
21289
21288
  this.set(k, v);
@@ -21343,6 +21342,7 @@ class TupleKeyedMap {
21343
21342
  }
21344
21343
  yield* impl(this._map, []);
21345
21344
  }
21345
+ _size = 0;
21346
21346
  get size() {
21347
21347
  return this._size;
21348
21348
  }
@@ -21393,6 +21393,14 @@ __webpack_require__.r(__webpack_exports__);
21393
21393
  * @public
21394
21394
  */
21395
21395
  class TypedArrayBuilder {
21396
+ /** The constructor for the specific type of array being populated. */
21397
+ _constructor;
21398
+ /** The underlying typed array, to be reallocated and copied when its capacity is exceeded. */
21399
+ _data;
21400
+ /** The number of elements added to the array so far. */
21401
+ _length;
21402
+ /** Multiplier applied to required capacity by [[ensureCapacity]]. */
21403
+ growthFactor;
21396
21404
  /** Constructs a new builder from the specified options, with a [[length]] of zero. */
21397
21405
  constructor(constructor, options) {
21398
21406
  this._constructor = constructor;
@@ -21601,15 +21609,15 @@ __webpack_require__.r(__webpack_exports__);
21601
21609
  */
21602
21610
  class UnexpectedErrors {
21603
21611
  /** handler for re-throwing exceptions directly */
21604
- static { this.reThrowImmediate = (e) => { throw e; }; }
21612
+ static reThrowImmediate = (e) => { throw e; };
21605
21613
  /** handler for re-throwing exceptions from an asynchronous interval (so the current call stack is not aborted) */
21606
- static { this.reThrowDeferred = (e) => setTimeout(() => { throw e; }, 0); }
21614
+ static reThrowDeferred = (e) => setTimeout(() => { throw e; }, 0);
21607
21615
  /** handler for logging exception to console */
21608
- static { this.consoleLog = (e) => console.error(e); } // eslint-disable-line no-console
21616
+ static consoleLog = (e) => console.error(e); // eslint-disable-line no-console
21609
21617
  /** handler for logging exception with [[Logger]] */
21610
- static { this.errorLog = (e) => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logException("unhandled", e); }
21611
- static { this._telemetry = []; }
21612
- static { this._handler = this.errorLog; } // default to error logging
21618
+ static errorLog = (e) => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logException("unhandled", e);
21619
+ static _telemetry = [];
21620
+ static _handler = this.errorLog; // default to error logging
21613
21621
  constructor() { } // this is a singleton
21614
21622
  /** Add a "telemetry tracker" for unexpected errors. Useful for tracking/reporting errors without changing handler.
21615
21623
  * @returns a method to remove the tracker
@@ -21731,11 +21739,13 @@ const defaultYieldManagerOptions = {
21731
21739
  * @public
21732
21740
  */
21733
21741
  class YieldManager {
21742
+ /** Options controlling the yield behavior. */
21743
+ options;
21744
+ _counter = 0;
21734
21745
  /** Constructor.
21735
21746
  * @param options Options customizing the yield behavior. Omitted properties are assigned their default values.
21736
21747
  */
21737
21748
  constructor(options = {}) {
21738
- this._counter = 0;
21739
21749
  this.options = { ...defaultYieldManagerOptions, ...options };
21740
21750
  }
21741
21751
  /** Increment the iteration counter, yielding control and resetting the counter if [[options.iterationsBeforeYield]] is exceeded. */
@@ -22207,8 +22217,12 @@ const DEFAULT_MAX_RETRIES = 1; // a low number prevents wasted time and potentia
22207
22217
  * @public
22208
22218
  */
22209
22219
  class ITwinLocalization {
22220
+ i18next;
22221
+ _initOptions;
22222
+ _backendOptions;
22223
+ _detectionOptions;
22224
+ _namespaces = new Map();
22210
22225
  constructor(options) {
22211
- this._namespaces = new Map();
22212
22226
  this.i18next = i18next_1.default.createInstance();
22213
22227
  this._backendOptions = {
22214
22228
  loadPath: options?.urlTemplate ?? "locales/{{lng}}/{{ns}}.json",
@@ -22400,7 +22414,7 @@ class ITwinLocalization {
22400
22414
  }
22401
22415
  exports.ITwinLocalization = ITwinLocalization;
22402
22416
  class TranslationLogger {
22403
- static { this.type = "logger"; }
22417
+ static type = "logger";
22404
22418
  log(args) { core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args)); }
22405
22419
  warn(args) { core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args)); }
22406
22420
  error(args) { core_bentley_1.Logger.logError("i18n", this.createLogMessage(args)); }