@itwin/rpcinterface-full-stack-tests 3.4.0-dev.12 → 3.4.0-dev.14

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.
@@ -21,9 +21,9 @@
21
21
 
22
22
  /***/ }),
23
23
 
24
- /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
24
+ /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
25
25
  /*!********************************************************************************************************************!*\
26
- !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
26
+ !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
27
27
  \********************************************************************************************************************/
28
28
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
29
29
 
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
2296
2296
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2297
2297
  * See LICENSE.md in the project root for license terms and full copyright notice.
2298
2298
  *--------------------------------------------------------------------------------------------*/
2299
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2299
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2300
2300
  // Shared by both the frontend and backend side of the tests
2301
2301
  exports.getTokenCallbackName = "getToken";
2302
2302
  async function getAccessTokenFromBackend(user, oidcConfig) {
@@ -19352,570 +19352,6 @@ Emitter.prototype.hasListeners = function(event){
19352
19352
  };
19353
19353
 
19354
19354
 
19355
- /***/ }),
19356
-
19357
- /***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
19358
- /*!****************************************************************************************************************!*\
19359
- !*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
19360
- \****************************************************************************************************************/
19361
- /***/ (function(module, exports) {
19362
-
19363
- var global = typeof self !== 'undefined' ? self : this;
19364
- var __self__ = (function () {
19365
- function F() {
19366
- this.fetch = false;
19367
- this.DOMException = global.DOMException
19368
- }
19369
- F.prototype = global;
19370
- return new F();
19371
- })();
19372
- (function(self) {
19373
-
19374
- var irrelevant = (function (exports) {
19375
-
19376
- var support = {
19377
- searchParams: 'URLSearchParams' in self,
19378
- iterable: 'Symbol' in self && 'iterator' in Symbol,
19379
- blob:
19380
- 'FileReader' in self &&
19381
- 'Blob' in self &&
19382
- (function() {
19383
- try {
19384
- new Blob();
19385
- return true
19386
- } catch (e) {
19387
- return false
19388
- }
19389
- })(),
19390
- formData: 'FormData' in self,
19391
- arrayBuffer: 'ArrayBuffer' in self
19392
- };
19393
-
19394
- function isDataView(obj) {
19395
- return obj && DataView.prototype.isPrototypeOf(obj)
19396
- }
19397
-
19398
- if (support.arrayBuffer) {
19399
- var viewClasses = [
19400
- '[object Int8Array]',
19401
- '[object Uint8Array]',
19402
- '[object Uint8ClampedArray]',
19403
- '[object Int16Array]',
19404
- '[object Uint16Array]',
19405
- '[object Int32Array]',
19406
- '[object Uint32Array]',
19407
- '[object Float32Array]',
19408
- '[object Float64Array]'
19409
- ];
19410
-
19411
- var isArrayBufferView =
19412
- ArrayBuffer.isView ||
19413
- function(obj) {
19414
- return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
19415
- };
19416
- }
19417
-
19418
- function normalizeName(name) {
19419
- if (typeof name !== 'string') {
19420
- name = String(name);
19421
- }
19422
- if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
19423
- throw new TypeError('Invalid character in header field name')
19424
- }
19425
- return name.toLowerCase()
19426
- }
19427
-
19428
- function normalizeValue(value) {
19429
- if (typeof value !== 'string') {
19430
- value = String(value);
19431
- }
19432
- return value
19433
- }
19434
-
19435
- // Build a destructive iterator for the value list
19436
- function iteratorFor(items) {
19437
- var iterator = {
19438
- next: function() {
19439
- var value = items.shift();
19440
- return {done: value === undefined, value: value}
19441
- }
19442
- };
19443
-
19444
- if (support.iterable) {
19445
- iterator[Symbol.iterator] = function() {
19446
- return iterator
19447
- };
19448
- }
19449
-
19450
- return iterator
19451
- }
19452
-
19453
- function Headers(headers) {
19454
- this.map = {};
19455
-
19456
- if (headers instanceof Headers) {
19457
- headers.forEach(function(value, name) {
19458
- this.append(name, value);
19459
- }, this);
19460
- } else if (Array.isArray(headers)) {
19461
- headers.forEach(function(header) {
19462
- this.append(header[0], header[1]);
19463
- }, this);
19464
- } else if (headers) {
19465
- Object.getOwnPropertyNames(headers).forEach(function(name) {
19466
- this.append(name, headers[name]);
19467
- }, this);
19468
- }
19469
- }
19470
-
19471
- Headers.prototype.append = function(name, value) {
19472
- name = normalizeName(name);
19473
- value = normalizeValue(value);
19474
- var oldValue = this.map[name];
19475
- this.map[name] = oldValue ? oldValue + ', ' + value : value;
19476
- };
19477
-
19478
- Headers.prototype['delete'] = function(name) {
19479
- delete this.map[normalizeName(name)];
19480
- };
19481
-
19482
- Headers.prototype.get = function(name) {
19483
- name = normalizeName(name);
19484
- return this.has(name) ? this.map[name] : null
19485
- };
19486
-
19487
- Headers.prototype.has = function(name) {
19488
- return this.map.hasOwnProperty(normalizeName(name))
19489
- };
19490
-
19491
- Headers.prototype.set = function(name, value) {
19492
- this.map[normalizeName(name)] = normalizeValue(value);
19493
- };
19494
-
19495
- Headers.prototype.forEach = function(callback, thisArg) {
19496
- for (var name in this.map) {
19497
- if (this.map.hasOwnProperty(name)) {
19498
- callback.call(thisArg, this.map[name], name, this);
19499
- }
19500
- }
19501
- };
19502
-
19503
- Headers.prototype.keys = function() {
19504
- var items = [];
19505
- this.forEach(function(value, name) {
19506
- items.push(name);
19507
- });
19508
- return iteratorFor(items)
19509
- };
19510
-
19511
- Headers.prototype.values = function() {
19512
- var items = [];
19513
- this.forEach(function(value) {
19514
- items.push(value);
19515
- });
19516
- return iteratorFor(items)
19517
- };
19518
-
19519
- Headers.prototype.entries = function() {
19520
- var items = [];
19521
- this.forEach(function(value, name) {
19522
- items.push([name, value]);
19523
- });
19524
- return iteratorFor(items)
19525
- };
19526
-
19527
- if (support.iterable) {
19528
- Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
19529
- }
19530
-
19531
- function consumed(body) {
19532
- if (body.bodyUsed) {
19533
- return Promise.reject(new TypeError('Already read'))
19534
- }
19535
- body.bodyUsed = true;
19536
- }
19537
-
19538
- function fileReaderReady(reader) {
19539
- return new Promise(function(resolve, reject) {
19540
- reader.onload = function() {
19541
- resolve(reader.result);
19542
- };
19543
- reader.onerror = function() {
19544
- reject(reader.error);
19545
- };
19546
- })
19547
- }
19548
-
19549
- function readBlobAsArrayBuffer(blob) {
19550
- var reader = new FileReader();
19551
- var promise = fileReaderReady(reader);
19552
- reader.readAsArrayBuffer(blob);
19553
- return promise
19554
- }
19555
-
19556
- function readBlobAsText(blob) {
19557
- var reader = new FileReader();
19558
- var promise = fileReaderReady(reader);
19559
- reader.readAsText(blob);
19560
- return promise
19561
- }
19562
-
19563
- function readArrayBufferAsText(buf) {
19564
- var view = new Uint8Array(buf);
19565
- var chars = new Array(view.length);
19566
-
19567
- for (var i = 0; i < view.length; i++) {
19568
- chars[i] = String.fromCharCode(view[i]);
19569
- }
19570
- return chars.join('')
19571
- }
19572
-
19573
- function bufferClone(buf) {
19574
- if (buf.slice) {
19575
- return buf.slice(0)
19576
- } else {
19577
- var view = new Uint8Array(buf.byteLength);
19578
- view.set(new Uint8Array(buf));
19579
- return view.buffer
19580
- }
19581
- }
19582
-
19583
- function Body() {
19584
- this.bodyUsed = false;
19585
-
19586
- this._initBody = function(body) {
19587
- this._bodyInit = body;
19588
- if (!body) {
19589
- this._bodyText = '';
19590
- } else if (typeof body === 'string') {
19591
- this._bodyText = body;
19592
- } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
19593
- this._bodyBlob = body;
19594
- } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
19595
- this._bodyFormData = body;
19596
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19597
- this._bodyText = body.toString();
19598
- } else if (support.arrayBuffer && support.blob && isDataView(body)) {
19599
- this._bodyArrayBuffer = bufferClone(body.buffer);
19600
- // IE 10-11 can't handle a DataView body.
19601
- this._bodyInit = new Blob([this._bodyArrayBuffer]);
19602
- } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
19603
- this._bodyArrayBuffer = bufferClone(body);
19604
- } else {
19605
- this._bodyText = body = Object.prototype.toString.call(body);
19606
- }
19607
-
19608
- if (!this.headers.get('content-type')) {
19609
- if (typeof body === 'string') {
19610
- this.headers.set('content-type', 'text/plain;charset=UTF-8');
19611
- } else if (this._bodyBlob && this._bodyBlob.type) {
19612
- this.headers.set('content-type', this._bodyBlob.type);
19613
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19614
- this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
19615
- }
19616
- }
19617
- };
19618
-
19619
- if (support.blob) {
19620
- this.blob = function() {
19621
- var rejected = consumed(this);
19622
- if (rejected) {
19623
- return rejected
19624
- }
19625
-
19626
- if (this._bodyBlob) {
19627
- return Promise.resolve(this._bodyBlob)
19628
- } else if (this._bodyArrayBuffer) {
19629
- return Promise.resolve(new Blob([this._bodyArrayBuffer]))
19630
- } else if (this._bodyFormData) {
19631
- throw new Error('could not read FormData body as blob')
19632
- } else {
19633
- return Promise.resolve(new Blob([this._bodyText]))
19634
- }
19635
- };
19636
-
19637
- this.arrayBuffer = function() {
19638
- if (this._bodyArrayBuffer) {
19639
- return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
19640
- } else {
19641
- return this.blob().then(readBlobAsArrayBuffer)
19642
- }
19643
- };
19644
- }
19645
-
19646
- this.text = function() {
19647
- var rejected = consumed(this);
19648
- if (rejected) {
19649
- return rejected
19650
- }
19651
-
19652
- if (this._bodyBlob) {
19653
- return readBlobAsText(this._bodyBlob)
19654
- } else if (this._bodyArrayBuffer) {
19655
- return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
19656
- } else if (this._bodyFormData) {
19657
- throw new Error('could not read FormData body as text')
19658
- } else {
19659
- return Promise.resolve(this._bodyText)
19660
- }
19661
- };
19662
-
19663
- if (support.formData) {
19664
- this.formData = function() {
19665
- return this.text().then(decode)
19666
- };
19667
- }
19668
-
19669
- this.json = function() {
19670
- return this.text().then(JSON.parse)
19671
- };
19672
-
19673
- return this
19674
- }
19675
-
19676
- // HTTP methods whose capitalization should be normalized
19677
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
19678
-
19679
- function normalizeMethod(method) {
19680
- var upcased = method.toUpperCase();
19681
- return methods.indexOf(upcased) > -1 ? upcased : method
19682
- }
19683
-
19684
- function Request(input, options) {
19685
- options = options || {};
19686
- var body = options.body;
19687
-
19688
- if (input instanceof Request) {
19689
- if (input.bodyUsed) {
19690
- throw new TypeError('Already read')
19691
- }
19692
- this.url = input.url;
19693
- this.credentials = input.credentials;
19694
- if (!options.headers) {
19695
- this.headers = new Headers(input.headers);
19696
- }
19697
- this.method = input.method;
19698
- this.mode = input.mode;
19699
- this.signal = input.signal;
19700
- if (!body && input._bodyInit != null) {
19701
- body = input._bodyInit;
19702
- input.bodyUsed = true;
19703
- }
19704
- } else {
19705
- this.url = String(input);
19706
- }
19707
-
19708
- this.credentials = options.credentials || this.credentials || 'same-origin';
19709
- if (options.headers || !this.headers) {
19710
- this.headers = new Headers(options.headers);
19711
- }
19712
- this.method = normalizeMethod(options.method || this.method || 'GET');
19713
- this.mode = options.mode || this.mode || null;
19714
- this.signal = options.signal || this.signal;
19715
- this.referrer = null;
19716
-
19717
- if ((this.method === 'GET' || this.method === 'HEAD') && body) {
19718
- throw new TypeError('Body not allowed for GET or HEAD requests')
19719
- }
19720
- this._initBody(body);
19721
- }
19722
-
19723
- Request.prototype.clone = function() {
19724
- return new Request(this, {body: this._bodyInit})
19725
- };
19726
-
19727
- function decode(body) {
19728
- var form = new FormData();
19729
- body
19730
- .trim()
19731
- .split('&')
19732
- .forEach(function(bytes) {
19733
- if (bytes) {
19734
- var split = bytes.split('=');
19735
- var name = split.shift().replace(/\+/g, ' ');
19736
- var value = split.join('=').replace(/\+/g, ' ');
19737
- form.append(decodeURIComponent(name), decodeURIComponent(value));
19738
- }
19739
- });
19740
- return form
19741
- }
19742
-
19743
- function parseHeaders(rawHeaders) {
19744
- var headers = new Headers();
19745
- // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
19746
- // https://tools.ietf.org/html/rfc7230#section-3.2
19747
- var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
19748
- preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
19749
- var parts = line.split(':');
19750
- var key = parts.shift().trim();
19751
- if (key) {
19752
- var value = parts.join(':').trim();
19753
- headers.append(key, value);
19754
- }
19755
- });
19756
- return headers
19757
- }
19758
-
19759
- Body.call(Request.prototype);
19760
-
19761
- function Response(bodyInit, options) {
19762
- if (!options) {
19763
- options = {};
19764
- }
19765
-
19766
- this.type = 'default';
19767
- this.status = options.status === undefined ? 200 : options.status;
19768
- this.ok = this.status >= 200 && this.status < 300;
19769
- this.statusText = 'statusText' in options ? options.statusText : 'OK';
19770
- this.headers = new Headers(options.headers);
19771
- this.url = options.url || '';
19772
- this._initBody(bodyInit);
19773
- }
19774
-
19775
- Body.call(Response.prototype);
19776
-
19777
- Response.prototype.clone = function() {
19778
- return new Response(this._bodyInit, {
19779
- status: this.status,
19780
- statusText: this.statusText,
19781
- headers: new Headers(this.headers),
19782
- url: this.url
19783
- })
19784
- };
19785
-
19786
- Response.error = function() {
19787
- var response = new Response(null, {status: 0, statusText: ''});
19788
- response.type = 'error';
19789
- return response
19790
- };
19791
-
19792
- var redirectStatuses = [301, 302, 303, 307, 308];
19793
-
19794
- Response.redirect = function(url, status) {
19795
- if (redirectStatuses.indexOf(status) === -1) {
19796
- throw new RangeError('Invalid status code')
19797
- }
19798
-
19799
- return new Response(null, {status: status, headers: {location: url}})
19800
- };
19801
-
19802
- exports.DOMException = self.DOMException;
19803
- try {
19804
- new exports.DOMException();
19805
- } catch (err) {
19806
- exports.DOMException = function(message, name) {
19807
- this.message = message;
19808
- this.name = name;
19809
- var error = Error(message);
19810
- this.stack = error.stack;
19811
- };
19812
- exports.DOMException.prototype = Object.create(Error.prototype);
19813
- exports.DOMException.prototype.constructor = exports.DOMException;
19814
- }
19815
-
19816
- function fetch(input, init) {
19817
- return new Promise(function(resolve, reject) {
19818
- var request = new Request(input, init);
19819
-
19820
- if (request.signal && request.signal.aborted) {
19821
- return reject(new exports.DOMException('Aborted', 'AbortError'))
19822
- }
19823
-
19824
- var xhr = new XMLHttpRequest();
19825
-
19826
- function abortXhr() {
19827
- xhr.abort();
19828
- }
19829
-
19830
- xhr.onload = function() {
19831
- var options = {
19832
- status: xhr.status,
19833
- statusText: xhr.statusText,
19834
- headers: parseHeaders(xhr.getAllResponseHeaders() || '')
19835
- };
19836
- options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
19837
- var body = 'response' in xhr ? xhr.response : xhr.responseText;
19838
- resolve(new Response(body, options));
19839
- };
19840
-
19841
- xhr.onerror = function() {
19842
- reject(new TypeError('Network request failed'));
19843
- };
19844
-
19845
- xhr.ontimeout = function() {
19846
- reject(new TypeError('Network request failed'));
19847
- };
19848
-
19849
- xhr.onabort = function() {
19850
- reject(new exports.DOMException('Aborted', 'AbortError'));
19851
- };
19852
-
19853
- xhr.open(request.method, request.url, true);
19854
-
19855
- if (request.credentials === 'include') {
19856
- xhr.withCredentials = true;
19857
- } else if (request.credentials === 'omit') {
19858
- xhr.withCredentials = false;
19859
- }
19860
-
19861
- if ('responseType' in xhr && support.blob) {
19862
- xhr.responseType = 'blob';
19863
- }
19864
-
19865
- request.headers.forEach(function(value, name) {
19866
- xhr.setRequestHeader(name, value);
19867
- });
19868
-
19869
- if (request.signal) {
19870
- request.signal.addEventListener('abort', abortXhr);
19871
-
19872
- xhr.onreadystatechange = function() {
19873
- // DONE (success or failure)
19874
- if (xhr.readyState === 4) {
19875
- request.signal.removeEventListener('abort', abortXhr);
19876
- }
19877
- };
19878
- }
19879
-
19880
- xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
19881
- })
19882
- }
19883
-
19884
- fetch.polyfill = true;
19885
-
19886
- if (!self.fetch) {
19887
- self.fetch = fetch;
19888
- self.Headers = Headers;
19889
- self.Request = Request;
19890
- self.Response = Response;
19891
- }
19892
-
19893
- exports.Headers = Headers;
19894
- exports.Request = Request;
19895
- exports.Response = Response;
19896
- exports.fetch = fetch;
19897
-
19898
- Object.defineProperty(exports, '__esModule', { value: true });
19899
-
19900
- return exports;
19901
-
19902
- })({});
19903
- })(__self__);
19904
- __self__.fetch.ponyfill = true;
19905
- // Remove "polyfill" property added by whatwg-fetch
19906
- delete __self__.fetch.polyfill;
19907
- // Choose between native implementation (global) or custom implementation (__self__)
19908
- // var ctx = global.fetch ? global : __self__;
19909
- var ctx = __self__; // this line disable service worker support temporarily
19910
- exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
19911
- exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
19912
- exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
19913
- exports.Headers = ctx.Headers
19914
- exports.Request = ctx.Request
19915
- exports.Response = ctx.Response
19916
- module.exports = exports
19917
-
19918
-
19919
19355
  /***/ }),
19920
19356
 
19921
19357
  /***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
@@ -21800,9 +21236,9 @@ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
21800
21236
 
21801
21237
  /***/ }),
21802
21238
 
21803
- /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
21239
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
21804
21240
  /*!****************************************************************************************************************************************************************************!*\
21805
- !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
21241
+ !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
21806
21242
  \****************************************************************************************************************************************************************************/
21807
21243
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21808
21244
 
@@ -21837,12 +21273,12 @@ var serializeCookie = function serializeCookie(name, val, options) {
21837
21273
  var opt = options || {};
21838
21274
  opt.path = opt.path || '/';
21839
21275
  var value = encodeURIComponent(val);
21840
- var str = name + '=' + value;
21276
+ var str = "".concat(name, "=").concat(value);
21841
21277
 
21842
21278
  if (opt.maxAge > 0) {
21843
21279
  var maxAge = opt.maxAge - 0;
21844
- if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
21845
- str += '; Max-Age=' + Math.floor(maxAge);
21280
+ if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
21281
+ str += "; Max-Age=".concat(Math.floor(maxAge));
21846
21282
  }
21847
21283
 
21848
21284
  if (opt.domain) {
@@ -21850,7 +21286,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21850
21286
  throw new TypeError('option domain is invalid');
21851
21287
  }
21852
21288
 
21853
- str += '; Domain=' + opt.domain;
21289
+ str += "; Domain=".concat(opt.domain);
21854
21290
  }
21855
21291
 
21856
21292
  if (opt.path) {
@@ -21858,7 +21294,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21858
21294
  throw new TypeError('option path is invalid');
21859
21295
  }
21860
21296
 
21861
- str += '; Path=' + opt.path;
21297
+ str += "; Path=".concat(opt.path);
21862
21298
  }
21863
21299
 
21864
21300
  if (opt.expires) {
@@ -21866,7 +21302,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21866
21302
  throw new TypeError('option expires is invalid');
21867
21303
  }
21868
21304
 
21869
- str += '; Expires=' + opt.expires.toUTCString();
21305
+ str += "; Expires=".concat(opt.expires.toUTCString());
21870
21306
  }
21871
21307
 
21872
21308
  if (opt.httpOnly) str += '; HttpOnly';
@@ -21916,7 +21352,7 @@ var cookie = {
21916
21352
  document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);
21917
21353
  },
21918
21354
  read: function read(name) {
21919
- var nameEQ = name + '=';
21355
+ var nameEQ = "".concat(name, "=");
21920
21356
  var ca = document.cookie.split(';');
21921
21357
 
21922
21358
  for (var i = 0; i < ca.length; i++) {
@@ -22126,21 +21562,16 @@ var path = {
22126
21562
  var subdomain = {
22127
21563
  name: 'subdomain',
22128
21564
  lookup: function lookup(options) {
22129
- var found;
21565
+ // If given get the subdomain index else 1
21566
+ var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1; // get all matches if window.location. is existing
21567
+ // first item of match is the match itself and the second is the first group macht which sould be the first subdomain match
21568
+ // is the hostname no public domain get the or option of localhost
22130
21569
 
22131
- if (typeof window !== 'undefined') {
22132
- var language = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
21570
+ var language = typeof window !== 'undefined' && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i); // if there is no match (null) return undefined
22133
21571
 
22134
- if (language instanceof Array) {
22135
- if (typeof options.lookupFromSubdomainIndex === 'number') {
22136
- found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');
22137
- } else {
22138
- found = language[0].replace('http://', '').replace('https://', '').replace('.', '');
22139
- }
22140
- }
22141
- }
21572
+ if (!language) return undefined; // return the given group match
22142
21573
 
22143
- return found;
21574
+ return language[lookupFromSubdomainIndex];
22144
21575
  }
22145
21576
  };
22146
21577
 
@@ -22153,8 +21584,8 @@ function getDefaults() {
22153
21584
  lookupSessionStorage: 'i18nextLng',
22154
21585
  // cache user language
22155
21586
  caches: ['localStorage'],
22156
- excludeCacheFor: ['cimode'] //cookieMinutes: 10,
22157
- //cookieDomain: 'myDomain'
21587
+ excludeCacheFor: ['cimode'] // cookieMinutes: 10,
21588
+ // cookieDomain: 'myDomain'
22158
21589
 
22159
21590
  };
22160
21591
  }
@@ -22235,6 +21666,235 @@ Browser.type = 'languageDetector';
22235
21666
 
22236
21667
 
22237
21668
 
21669
+ /***/ }),
21670
+
21671
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
21672
+ /*!*************************************************************************************************************************************!*\
21673
+ !*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
21674
+ \*************************************************************************************************************************************/
21675
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21676
+
21677
+ "use strict";
21678
+ __webpack_require__.r(__webpack_exports__);
21679
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21680
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21681
+ /* harmony export */ });
21682
+ /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
21683
+ /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js");
21684
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
21685
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
21686
+
21687
+
21688
+
21689
+
21690
+
21691
+ var arr = [];
21692
+ var each = arr.forEach;
21693
+ var slice = arr.slice;
21694
+ function defaults(obj) {
21695
+ each.call(slice.call(arguments, 1), function (source) {
21696
+ if (source) {
21697
+ for (var prop in source) {
21698
+ if (obj[prop] === undefined) obj[prop] = source[prop];
21699
+ }
21700
+ }
21701
+ });
21702
+ return obj;
21703
+ }
21704
+
21705
+ function addQueryString(url, params) {
21706
+ if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
21707
+ var queryString = '',
21708
+ e = encodeURIComponent; // Must encode data
21709
+
21710
+ for (var paramName in params) {
21711
+ queryString += '&' + e(paramName) + '=' + e(params[paramName]);
21712
+ }
21713
+
21714
+ if (!queryString) {
21715
+ return url;
21716
+ }
21717
+
21718
+ url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
21719
+ }
21720
+
21721
+ return url;
21722
+ } // https://gist.github.com/Xeoncross/7663273
21723
+
21724
+
21725
+ function ajax(url, options, callback, data, cache) {
21726
+ if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
21727
+ if (!cache) {
21728
+ data['_t'] = new Date();
21729
+ } // URL encoded form data must be in querystring format
21730
+
21731
+
21732
+ data = addQueryString('', data).slice(1);
21733
+ }
21734
+
21735
+ if (options.queryStringParams) {
21736
+ url = addQueryString(url, options.queryStringParams);
21737
+ }
21738
+
21739
+ try {
21740
+ var x;
21741
+
21742
+ if (XMLHttpRequest) {
21743
+ x = new XMLHttpRequest();
21744
+ } else {
21745
+ x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
21746
+ }
21747
+
21748
+ x.open(data ? 'POST' : 'GET', url, 1);
21749
+
21750
+ if (!options.crossDomain) {
21751
+ x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
21752
+ }
21753
+
21754
+ x.withCredentials = !!options.withCredentials;
21755
+
21756
+ if (data) {
21757
+ x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
21758
+ }
21759
+
21760
+ if (x.overrideMimeType) {
21761
+ x.overrideMimeType("application/json");
21762
+ }
21763
+
21764
+ var h = options.customHeaders;
21765
+ h = typeof h === 'function' ? h() : h;
21766
+
21767
+ if (h) {
21768
+ for (var i in h) {
21769
+ x.setRequestHeader(i, h[i]);
21770
+ }
21771
+ }
21772
+
21773
+ x.onreadystatechange = function () {
21774
+ x.readyState > 3 && callback && callback(x.responseText, x);
21775
+ };
21776
+
21777
+ x.send(data);
21778
+ } catch (e) {
21779
+ console && console.log(e);
21780
+ }
21781
+ }
21782
+
21783
+ function getDefaults() {
21784
+ return {
21785
+ loadPath: '/locales/{{lng}}/{{ns}}.json',
21786
+ addPath: '/locales/add/{{lng}}/{{ns}}',
21787
+ allowMultiLoading: false,
21788
+ parse: JSON.parse,
21789
+ parsePayload: function parsePayload(namespace, key, fallbackValue) {
21790
+ return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
21791
+ },
21792
+ crossDomain: false,
21793
+ ajax: ajax
21794
+ };
21795
+ }
21796
+
21797
+ var Backend =
21798
+ /*#__PURE__*/
21799
+ function () {
21800
+ function Backend(services) {
21801
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21802
+
21803
+ (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
21804
+
21805
+ this.init(services, options);
21806
+ this.type = 'backend';
21807
+ }
21808
+
21809
+ (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
21810
+ key: "init",
21811
+ value: function init(services) {
21812
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21813
+ this.services = services;
21814
+ this.options = defaults(options, this.options || {}, getDefaults());
21815
+ }
21816
+ }, {
21817
+ key: "readMulti",
21818
+ value: function readMulti(languages, namespaces, callback) {
21819
+ var loadPath = this.options.loadPath;
21820
+
21821
+ if (typeof this.options.loadPath === 'function') {
21822
+ loadPath = this.options.loadPath(languages, namespaces);
21823
+ }
21824
+
21825
+ var url = this.services.interpolator.interpolate(loadPath, {
21826
+ lng: languages.join('+'),
21827
+ ns: namespaces.join('+')
21828
+ });
21829
+ this.loadUrl(url, callback);
21830
+ }
21831
+ }, {
21832
+ key: "read",
21833
+ value: function read(language, namespace, callback) {
21834
+ var loadPath = this.options.loadPath;
21835
+
21836
+ if (typeof this.options.loadPath === 'function') {
21837
+ loadPath = this.options.loadPath([language], [namespace]);
21838
+ }
21839
+
21840
+ var url = this.services.interpolator.interpolate(loadPath, {
21841
+ lng: language,
21842
+ ns: namespace
21843
+ });
21844
+ this.loadUrl(url, callback);
21845
+ }
21846
+ }, {
21847
+ key: "loadUrl",
21848
+ value: function loadUrl(url, callback) {
21849
+ var _this = this;
21850
+
21851
+ this.options.ajax(url, this.options, function (data, xhr) {
21852
+ if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
21853
+ /* retry */
21854
+ );
21855
+ if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
21856
+ /* no retry */
21857
+ );
21858
+ var ret, err;
21859
+
21860
+ try {
21861
+ ret = _this.options.parse(data, url);
21862
+ } catch (e) {
21863
+ err = 'failed parsing ' + url + ' to json';
21864
+ }
21865
+
21866
+ if (err) return callback(err, false);
21867
+ callback(null, ret);
21868
+ });
21869
+ }
21870
+ }, {
21871
+ key: "create",
21872
+ value: function create(languages, namespace, key, fallbackValue) {
21873
+ var _this2 = this;
21874
+
21875
+ if (typeof languages === 'string') languages = [languages];
21876
+ var payload = this.options.parsePayload(namespace, key, fallbackValue);
21877
+ languages.forEach(function (lng) {
21878
+ var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
21879
+ lng: lng,
21880
+ ns: namespace
21881
+ });
21882
+
21883
+ _this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
21884
+ // TODO: if statusCode === 4xx do log
21885
+ }, payload);
21886
+ });
21887
+ }
21888
+ }]);
21889
+
21890
+ return Backend;
21891
+ }();
21892
+
21893
+ Backend.type = 'backend';
21894
+
21895
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
21896
+
21897
+
22238
21898
  /***/ }),
22239
21899
 
22240
21900
  /***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
@@ -61832,7 +61492,7 @@ class StopWatch {
61832
61492
  get current() { return BeDuration.fromMilliseconds(BeTimePoint.now().milliseconds - (!!this._start ? this._start.milliseconds : 0)); }
61833
61493
  /** Get the elapsed time, in seconds, since start() on a running timer. */
61834
61494
  get currentSeconds() { return this.current.seconds; }
61835
- /** Get the elapsed time between start() and stop() on this timer. */
61495
+ /** Get the elapsed time between start() and stop() on this timer in milliseconds. */
61836
61496
  get elapsed() { return BeDuration.fromMilliseconds((!!this._stop ? this._stop.milliseconds : BeTimePoint.now().milliseconds) - (!!this._start ? this._start.milliseconds : 0)); }
61837
61497
  /** Get the elapsed time, in seconds, between start() and stop() on this timer. */
61838
61498
  get elapsedSeconds() { return this.elapsed.seconds; }
@@ -63617,7 +63277,8 @@ __webpack_require__.r(__webpack_exports__);
63617
63277
  * @module Codes
63618
63278
  */
63619
63279
 
63620
- /** A three-part structure containing information about the [Code]($docs/bis/guide/fundamentals/codes) of an Element
63280
+ /**
63281
+ * A three-part structure containing information about the [Code]($docs/bis/guide/fundamentals/codes) of an Element
63621
63282
  * @public
63622
63283
  */
63623
63284
  class Code {
@@ -136993,8 +136654,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
136993
136654
  }
136994
136655
  get techniqueId() { return 7 /* RealityMesh */; }
136995
136656
  getPass(target) {
136996
- if (target.isDrawingShadowMap)
136997
- return "none";
136998
136657
  if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
136999
136658
  return "translucent";
137000
136659
  return "opaque";
@@ -142608,6 +142267,7 @@ class SolarShadowMap {
142608
142267
  this.onGraphicsChanged(this._graphics);
142609
142268
  }
142610
142269
  update(context) {
142270
+ var _a;
142611
142271
  this._isReady = false;
142612
142272
  this.clearGraphics(false);
142613
142273
  if (undefined === context || !context.viewport.view.isSpatialView()) {
@@ -142617,9 +142277,7 @@ class SolarShadowMap {
142617
142277
  }
142618
142278
  const view = context.viewport.view;
142619
142279
  const style = view.getDisplayStyle3d();
142620
- let sunDirection = style.sunDirection;
142621
- if (undefined === sunDirection)
142622
- sunDirection = defaultSunDirection;
142280
+ const sunDirection = (_a = style.sunDirection) !== null && _a !== void 0 ? _a : defaultSunDirection;
142623
142281
  const minimumHorizonDirection = -.01;
142624
142282
  if (sunDirection.z > minimumHorizonDirection) {
142625
142283
  this.notifyGraphicsChanged();
@@ -142641,8 +142299,21 @@ class SolarShadowMap {
142641
142299
  // Limit the map to only displayed models.
142642
142300
  const viewTileRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
142643
142301
  view.forEachTileTreeRef((ref) => {
142644
- if (ref.castsShadows)
142645
- ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
142302
+ if (ref.castsShadows) {
142303
+ if (ref.isGlobal) {
142304
+ // A shadow-casting tile tree that spans the globe. Limit its range to the viewed extents.
142305
+ for (const p3 of viewFrustum.points) {
142306
+ const p4 = worldToMap.multiplyPoint3d(p3, 1);
142307
+ if (p4.w > 0.0001)
142308
+ viewTileRange.extendXYZW(p4.x, p4.y, p4.z, p4.w);
142309
+ else
142310
+ viewTileRange.high.z = Math.max(1.0, viewTileRange.high.z); // behind eye plane.
142311
+ }
142312
+ }
142313
+ else {
142314
+ ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
142315
+ }
142316
+ }
142646
142317
  });
142647
142318
  if (!viewTileRange.isNull)
142648
142319
  viewTileRange.clone(shadowRange);
@@ -158116,7 +157787,7 @@ class GltfReader {
158116
157787
  if (dracoMeshes.length === 0)
158117
157788
  return;
158118
157789
  try {
158119
- const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc"), __webpack_require__.e("_c41d")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.5/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
157790
+ const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
158120
157791
  await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
158121
157792
  }
158122
157793
  catch (err) {
@@ -161243,7 +160914,7 @@ function readPnts(stream, dataOffset, pnts) {
161243
160914
  async function decodeDracoPointCloud(buf) {
161244
160915
  var _a, _b, _c, _d, _e, _f;
161245
160916
  try {
161246
- const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc"), __webpack_require__.e("_c41d")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.5/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
160917
+ const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
161247
160918
  const mesh = await dracoLoader.parse(buf, {});
161248
160919
  if (mesh.topology !== "point-list")
161249
160920
  return undefined;
@@ -163428,6 +163099,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
163428
163099
  const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
163429
163100
  const graphicTypeBranches = new Map();
163430
163101
  const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
163102
+ args.processSelectedTiles(selectedTiles);
163431
163103
  let sortIndices;
163432
163104
  if (!this.parentsAndChildrenExclusive) {
163433
163105
  sortIndices = selectedTiles.map((_x, i) => i);
@@ -167688,28 +167360,6 @@ class ArcGisUtilities {
167688
167360
  return undefined;
167689
167361
  }
167690
167362
  }
167691
- static async getFootprintJson(url, credentials) {
167692
- const cached = ArcGisUtilities._footprintCache.get(url);
167693
- if (cached !== undefined)
167694
- return cached;
167695
- try {
167696
- const tmpUrl = new URL(url);
167697
- tmpUrl.searchParams.append("f", "json");
167698
- tmpUrl.searchParams.append("option", "footprints");
167699
- tmpUrl.searchParams.append("outSR", "4326");
167700
- const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.mapLayerFormatRegistry.getAccessClient("ArcGIS");
167701
- if (accessClient) {
167702
- await ArcGisUtilities.appendSecurityToken(tmpUrl, accessClient, { mapLayerUrl: new URL(url), userName: credentials === null || credentials === void 0 ? void 0 : credentials.user, password: credentials === null || credentials === void 0 ? void 0 : credentials.password });
167703
- }
167704
- const json = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_1__.getJson)(tmpUrl.toString());
167705
- ArcGisUtilities._footprintCache.set(url, json);
167706
- return json;
167707
- }
167708
- catch (_error) {
167709
- ArcGisUtilities._footprintCache.set(url, undefined);
167710
- return undefined;
167711
- }
167712
- }
167713
167363
  // return the appended access token if available.
167714
167364
  static async appendSecurityToken(url, accessClient, accessTokenParams) {
167715
167365
  // Append security token if available
@@ -167726,7 +167376,6 @@ class ArcGisUtilities {
167726
167376
  }
167727
167377
  }
167728
167378
  ArcGisUtilities._serviceCache = new Map();
167729
- ArcGisUtilities._footprintCache = new Map();
167730
167379
 
167731
167380
 
167732
167381
  /***/ }),
@@ -168605,18 +168254,9 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_4
168605
168254
  if (this._usesCachedTiles && this._tileMapSupported) {
168606
168255
  this._tileMap = new _internal__WEBPACK_IMPORTED_MODULE_4__.ArcGISTileMap(this._settings.url, (_d = (_c = json.tileInfo) === null || _c === void 0 ? void 0 : _c.lods) === null || _d === void 0 ? void 0 : _d.length);
168607
168256
  }
168608
- const footprintJson = await _internal__WEBPACK_IMPORTED_MODULE_4__.ArcGisUtilities.getFootprintJson(this._settings.url, this.getRequestAuthorization());
168609
- if (undefined !== footprintJson && undefined !== footprintJson.featureCollection && Array.isArray(footprintJson.featureCollection.layers)) {
168610
- for (const layer of footprintJson.featureCollection.layers) {
168611
- if (layer.layerDefinition && layer.layerDefinition.extent) {
168612
- this.cartoRange = _internal__WEBPACK_IMPORTED_MODULE_4__.MapCartoRectangle.createFromDegrees(layer.layerDefinition.extent.xmin, layer.layerDefinition.extent.ymin, layer.layerDefinition.extent.xmax, layer.layerDefinition.extent.ymax);
168613
- break;
168614
- }
168615
- }
168616
- }
168617
- // Sometimes footprint request doesnt work, fallback to dataset fullextent
168618
- if (this.cartoRange === undefined && json.fullExtent) {
168619
- if (json.fullExtent.spatialReference.latestWkid === 3857) {
168257
+ // Read range using fullextent from service metadata
168258
+ if (json.fullExtent) {
168259
+ if (json.fullExtent.spatialReference.latestWkid === 3857 || json.fullExtent.spatialReference.wkid === 102100) {
168620
168260
  const range3857 = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_6__.Range2d.createFrom({
168621
168261
  low: { x: json.fullExtent.xmin, y: json.fullExtent.ymin },
168622
168262
  high: { x: json.fullExtent.xmax, y: json.fullExtent.ymax }
@@ -266091,8 +265731,8 @@ __webpack_require__.r(__webpack_exports__);
266091
265731
  /* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
266092
265732
  /* harmony export */ });
266093
265733
  /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js");
266094
- /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
266095
- /* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js");
265734
+ /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
265735
+ /* harmony import */ var i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-xhr-backend */ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js");
266096
265736
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
266097
265737
  /*---------------------------------------------------------------------------------------------
266098
265738
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -266128,14 +265768,13 @@ class ITwinLocalization {
266128
265768
  this._initOptions = {
266129
265769
  interpolation: { escapeValue: true },
266130
265770
  fallbackLng: "en",
266131
- maxRetries: 1,
266132
265771
  backend: this._backendOptions,
266133
265772
  detection: this._detectionOptions,
266134
265773
  ...options === null || options === void 0 ? void 0 : options.initOptions,
266135
265774
  };
266136
265775
  this.i18next
266137
265776
  .use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
266138
- .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
265777
+ .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
266139
265778
  .use(TranslationLogger);
266140
265779
  }
266141
265780
  async initialize(namespaces) {
@@ -266256,10 +265895,10 @@ class ITwinLocalization {
266256
265895
  if (!err)
266257
265896
  return resolve();
266258
265897
  // Here we got a non-null err object.
266259
- // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
266260
- // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
266261
- // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
266262
- // 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.
265898
+ // This method is called when the system has attempted to load the resources for the namespace for each
265899
+ // possible locale. For example 'fr-ca' might be the most specific local, in which case 'fr' ) and 'en are fallback locales.
265900
+ // using i18next-xhr-backend, err will be an array of strings that includes the namespace it tried to read and the locale. There
265901
+ // might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible language.
266263
265902
  let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
266264
265903
  try {
266265
265904
  for (const thisError of err) {
@@ -287489,7 +287128,7 @@ class TestContext {
287489
287128
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
287490
287129
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
287491
287130
  await core_frontend_1.NoRenderApp.startup({
287492
- applicationVersion: "3.4.0-dev.12",
287131
+ applicationVersion: "3.4.0-dev.14",
287493
287132
  applicationId: this.settings.gprid,
287494
287133
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
287495
287134
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -301134,31 +300773,6 @@ var WidgetState;
301134
300773
 
301135
300774
  /* (ignored) */
301136
300775
 
301137
- /***/ }),
301138
-
301139
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
301140
- /*!**************************************************************************************************************************!*\
301141
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
301142
- \**************************************************************************************************************************/
301143
- /***/ ((module, exports, __webpack_require__) => {
301144
-
301145
- var fetchApi
301146
- if (typeof fetch === 'function') {
301147
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
301148
- fetchApi = __webpack_require__.g.fetch
301149
- } else if (typeof window !== 'undefined' && window.fetch) {
301150
- fetchApi = window.fetch
301151
- }
301152
- }
301153
-
301154
- if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
301155
- var f = fetchApi || __webpack_require__(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js")
301156
- if (f.default) f = f.default
301157
- exports["default"] = f
301158
- module.exports = exports.default
301159
- }
301160
-
301161
-
301162
300776
  /***/ }),
301163
300777
 
301164
300778
  /***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
@@ -303113,438 +302727,6 @@ function _unsupportedIterableToArray(o, minLen) {
303113
302727
 
303114
302728
  /***/ }),
303115
302729
 
303116
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
303117
- /*!**********************************************************************************************************************!*\
303118
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
303119
- \**********************************************************************************************************************/
303120
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303121
-
303122
- "use strict";
303123
- __webpack_require__.r(__webpack_exports__);
303124
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303125
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
303126
- /* harmony export */ });
303127
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
303128
- /* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js");
303129
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
303130
-
303131
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
303132
-
303133
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
303134
-
303135
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
303136
-
303137
-
303138
-
303139
-
303140
- var getDefaults = function getDefaults() {
303141
- return {
303142
- loadPath: '/locales/{{lng}}/{{ns}}.json',
303143
- addPath: '/locales/add/{{lng}}/{{ns}}',
303144
- allowMultiLoading: false,
303145
- parse: function parse(data) {
303146
- return JSON.parse(data);
303147
- },
303148
- stringify: JSON.stringify,
303149
- parsePayload: function parsePayload(namespace, key, fallbackValue) {
303150
- return _defineProperty({}, key, fallbackValue || '');
303151
- },
303152
- request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
303153
- reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
303154
- customHeaders: {},
303155
- queryStringParams: {},
303156
- crossDomain: false,
303157
- withCredentials: false,
303158
- overrideMimeType: false,
303159
- requestOptions: {
303160
- mode: 'cors',
303161
- credentials: 'same-origin',
303162
- cache: 'default'
303163
- }
303164
- };
303165
- };
303166
-
303167
- var Backend = function () {
303168
- function Backend(services) {
303169
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
303170
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
303171
-
303172
- _classCallCheck(this, Backend);
303173
-
303174
- this.services = services;
303175
- this.options = options;
303176
- this.allOptions = allOptions;
303177
- this.type = 'backend';
303178
- this.init(services, options, allOptions);
303179
- }
303180
-
303181
- _createClass(Backend, [{
303182
- key: "init",
303183
- value: function init(services) {
303184
- var _this = this;
303185
-
303186
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
303187
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
303188
- this.services = services;
303189
- this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
303190
- this.allOptions = allOptions;
303191
-
303192
- if (this.services && this.options.reloadInterval) {
303193
- setInterval(function () {
303194
- return _this.reload();
303195
- }, this.options.reloadInterval);
303196
- }
303197
- }
303198
- }, {
303199
- key: "readMulti",
303200
- value: function readMulti(languages, namespaces, callback) {
303201
- this._readAny(languages, languages, namespaces, namespaces, callback);
303202
- }
303203
- }, {
303204
- key: "read",
303205
- value: function read(language, namespace, callback) {
303206
- this._readAny([language], language, [namespace], namespace, callback);
303207
- }
303208
- }, {
303209
- key: "_readAny",
303210
- value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
303211
- var _this2 = this;
303212
-
303213
- var loadPath = this.options.loadPath;
303214
-
303215
- if (typeof this.options.loadPath === 'function') {
303216
- loadPath = this.options.loadPath(languages, namespaces);
303217
- }
303218
-
303219
- loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
303220
- loadPath.then(function (resolvedLoadPath) {
303221
- if (!resolvedLoadPath) return callback(null, {});
303222
-
303223
- var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
303224
- lng: languages.join('+'),
303225
- ns: namespaces.join('+')
303226
- });
303227
-
303228
- _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
303229
- });
303230
- }
303231
- }, {
303232
- key: "loadUrl",
303233
- value: function loadUrl(url, callback, languages, namespaces) {
303234
- var _this3 = this;
303235
-
303236
- this.options.request(this.options, url, undefined, function (err, res) {
303237
- if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
303238
- if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
303239
- if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
303240
- if (err) return callback(err, false);
303241
- var ret, parseErr;
303242
-
303243
- try {
303244
- if (typeof res.data === 'string') {
303245
- ret = _this3.options.parse(res.data, languages, namespaces);
303246
- } else {
303247
- ret = res.data;
303248
- }
303249
- } catch (e) {
303250
- parseErr = 'failed parsing ' + url + ' to json';
303251
- }
303252
-
303253
- if (parseErr) return callback(parseErr, false);
303254
- callback(null, ret);
303255
- });
303256
- }
303257
- }, {
303258
- key: "create",
303259
- value: function create(languages, namespace, key, fallbackValue, callback) {
303260
- var _this4 = this;
303261
-
303262
- if (!this.options.addPath) return;
303263
- if (typeof languages === 'string') languages = [languages];
303264
- var payload = this.options.parsePayload(namespace, key, fallbackValue);
303265
- var finished = 0;
303266
- var dataArray = [];
303267
- var resArray = [];
303268
- languages.forEach(function (lng) {
303269
- var addPath = _this4.options.addPath;
303270
-
303271
- if (typeof _this4.options.addPath === 'function') {
303272
- addPath = _this4.options.addPath(lng, namespace);
303273
- }
303274
-
303275
- var url = _this4.services.interpolator.interpolate(addPath, {
303276
- lng: lng,
303277
- ns: namespace
303278
- });
303279
-
303280
- _this4.options.request(_this4.options, url, payload, function (data, res) {
303281
- finished += 1;
303282
- dataArray.push(data);
303283
- resArray.push(res);
303284
-
303285
- if (finished === languages.length) {
303286
- if (callback) callback(dataArray, resArray);
303287
- }
303288
- });
303289
- });
303290
- }
303291
- }, {
303292
- key: "reload",
303293
- value: function reload() {
303294
- var _this5 = this;
303295
-
303296
- var _this$services = this.services,
303297
- backendConnector = _this$services.backendConnector,
303298
- languageUtils = _this$services.languageUtils,
303299
- logger = _this$services.logger;
303300
- var currentLanguage = backendConnector.language;
303301
- if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
303302
- var toLoad = [];
303303
-
303304
- var append = function append(lng) {
303305
- var lngs = languageUtils.toResolveHierarchy(lng);
303306
- lngs.forEach(function (l) {
303307
- if (toLoad.indexOf(l) < 0) toLoad.push(l);
303308
- });
303309
- };
303310
-
303311
- append(currentLanguage);
303312
- if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
303313
- return append(l);
303314
- });
303315
- toLoad.forEach(function (lng) {
303316
- _this5.allOptions.ns.forEach(function (ns) {
303317
- backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
303318
- if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
303319
- if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
303320
- backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
303321
- });
303322
- });
303323
- });
303324
- }
303325
- }]);
303326
-
303327
- return Backend;
303328
- }();
303329
-
303330
- Backend.type = 'backend';
303331
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
303332
-
303333
- /***/ }),
303334
-
303335
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
303336
- /*!************************************************************************************************************************!*\
303337
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
303338
- \************************************************************************************************************************/
303339
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303340
-
303341
- "use strict";
303342
- var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
303343
- __webpack_require__.r(__webpack_exports__);
303344
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303345
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
303346
- /* harmony export */ });
303347
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
303348
- /* harmony import */ var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getFetch.cjs */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs");
303349
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
303350
-
303351
-
303352
-
303353
- var fetchApi;
303354
-
303355
- if (typeof fetch === 'function') {
303356
- if (typeof global !== 'undefined' && global.fetch) {
303357
- fetchApi = global.fetch;
303358
- } else if (typeof window !== 'undefined' && window.fetch) {
303359
- fetchApi = window.fetch;
303360
- }
303361
- }
303362
-
303363
- var XmlHttpRequestApi;
303364
-
303365
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
303366
- if (typeof global !== 'undefined' && global.XMLHttpRequest) {
303367
- XmlHttpRequestApi = global.XMLHttpRequest;
303368
- } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
303369
- XmlHttpRequestApi = window.XMLHttpRequest;
303370
- }
303371
- }
303372
-
303373
- var ActiveXObjectApi;
303374
-
303375
- if (typeof ActiveXObject === 'function') {
303376
- if (typeof global !== 'undefined' && global.ActiveXObject) {
303377
- ActiveXObjectApi = global.ActiveXObject;
303378
- } else if (typeof window !== 'undefined' && window.ActiveXObject) {
303379
- ActiveXObjectApi = window.ActiveXObject;
303380
- }
303381
- }
303382
-
303383
- if (!fetchApi && /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2))) && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ || /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2)));
303384
- if (typeof fetchApi !== 'function') fetchApi = undefined;
303385
-
303386
- var addQueryString = function addQueryString(url, params) {
303387
- if (params && _typeof(params) === 'object') {
303388
- var queryString = '';
303389
-
303390
- for (var paramName in params) {
303391
- queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
303392
- }
303393
-
303394
- if (!queryString) return url;
303395
- url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
303396
- }
303397
-
303398
- return url;
303399
- };
303400
-
303401
- var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
303402
- if (options.queryStringParams) {
303403
- url = addQueryString(url, options.queryStringParams);
303404
- }
303405
-
303406
- var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
303407
- if (payload) headers['Content-Type'] = 'application/json';
303408
- fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
303409
- method: payload ? 'POST' : 'GET',
303410
- body: payload ? options.stringify(payload) : undefined,
303411
- headers: headers
303412
- }, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
303413
- if (!response.ok) return callback(response.statusText || 'Error', {
303414
- status: response.status
303415
- });
303416
- response.text().then(function (data) {
303417
- callback(null, {
303418
- status: response.status,
303419
- data: data
303420
- });
303421
- }).catch(callback);
303422
- }).catch(callback);
303423
- };
303424
-
303425
- var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
303426
- if (payload && _typeof(payload) === 'object') {
303427
- payload = addQueryString('', payload).slice(1);
303428
- }
303429
-
303430
- if (options.queryStringParams) {
303431
- url = addQueryString(url, options.queryStringParams);
303432
- }
303433
-
303434
- try {
303435
- var x;
303436
-
303437
- if (XmlHttpRequestApi) {
303438
- x = new XmlHttpRequestApi();
303439
- } else {
303440
- x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
303441
- }
303442
-
303443
- x.open(payload ? 'POST' : 'GET', url, 1);
303444
-
303445
- if (!options.crossDomain) {
303446
- x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
303447
- }
303448
-
303449
- x.withCredentials = !!options.withCredentials;
303450
-
303451
- if (payload) {
303452
- x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
303453
- }
303454
-
303455
- if (x.overrideMimeType) {
303456
- x.overrideMimeType('application/json');
303457
- }
303458
-
303459
- var h = options.customHeaders;
303460
- h = typeof h === 'function' ? h() : h;
303461
-
303462
- if (h) {
303463
- for (var i in h) {
303464
- x.setRequestHeader(i, h[i]);
303465
- }
303466
- }
303467
-
303468
- x.onreadystatechange = function () {
303469
- x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
303470
- status: x.status,
303471
- data: x.responseText
303472
- });
303473
- };
303474
-
303475
- x.send(payload);
303476
- } catch (e) {
303477
- console && console.log(e);
303478
- }
303479
- };
303480
-
303481
- var request = function request(options, url, payload, callback) {
303482
- if (typeof payload === 'function') {
303483
- callback = payload;
303484
- payload = undefined;
303485
- }
303486
-
303487
- callback = callback || function () {};
303488
-
303489
- if (fetchApi) {
303490
- return requestWithFetch(options, url, payload, callback);
303491
- }
303492
-
303493
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
303494
- return requestWithXmlHttpRequest(options, url, payload, callback);
303495
- }
303496
- };
303497
-
303498
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
303499
-
303500
- /***/ }),
303501
-
303502
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
303503
- /*!**********************************************************************************************************************!*\
303504
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
303505
- \**********************************************************************************************************************/
303506
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303507
-
303508
- "use strict";
303509
- __webpack_require__.r(__webpack_exports__);
303510
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303511
- /* harmony export */ "defaults": () => (/* binding */ defaults),
303512
- /* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
303513
- /* harmony export */ "makePromise": () => (/* binding */ makePromise)
303514
- /* harmony export */ });
303515
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
303516
-
303517
- var arr = [];
303518
- var each = arr.forEach;
303519
- var slice = arr.slice;
303520
- function defaults(obj) {
303521
- each.call(slice.call(arguments, 1), function (source) {
303522
- if (source) {
303523
- for (var prop in source) {
303524
- if (obj[prop] === undefined) obj[prop] = source[prop];
303525
- }
303526
- }
303527
- });
303528
- return obj;
303529
- }
303530
- function hasXMLHttpRequest() {
303531
- return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
303532
- }
303533
-
303534
- function isPromise(maybePromise) {
303535
- return !!maybePromise && typeof maybePromise.then === 'function';
303536
- }
303537
-
303538
- function makePromise(maybePromise) {
303539
- if (isPromise(maybePromise)) {
303540
- return maybePromise;
303541
- }
303542
-
303543
- return Promise.resolve(maybePromise);
303544
- }
303545
-
303546
- /***/ }),
303547
-
303548
302730
  /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
303549
302731
  /*!****************************************************************************************************!*\
303550
302732
  !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
@@ -306405,7 +305587,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
306405
305587
  /***/ ((module) => {
306406
305588
 
306407
305589
  "use strict";
306408
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.12","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.12","@itwin/core-bentley":"workspace:^3.4.0-dev.12","@itwin/core-common":"workspace:^3.4.0-dev.12","@itwin/core-geometry":"workspace:^3.4.0-dev.12","@itwin/core-orbitgt":"workspace:^3.4.0-dev.12","@itwin/core-quantity":"workspace:^3.4.0-dev.12","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.12"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305590
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.14","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.14","@itwin/core-bentley":"workspace:^3.4.0-dev.14","@itwin/core-common":"workspace:^3.4.0-dev.14","@itwin/core-geometry":"workspace:^3.4.0-dev.14","@itwin/core-orbitgt":"workspace:^3.4.0-dev.14","@itwin/core-quantity":"workspace:^3.4.0-dev.14","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.14"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
306409
305591
 
306410
305592
  /***/ }),
306411
305593
 
@@ -306465,36 +305647,6 @@ module.exports = JSON.parse('{"$schema":"../../../node_modules/@itwin/presentati
306465
305647
  /******/ };
306466
305648
  /******/ })();
306467
305649
  /******/
306468
- /******/ /* webpack/runtime/create fake namespace object */
306469
- /******/ (() => {
306470
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
306471
- /******/ var leafPrototypes;
306472
- /******/ // create a fake namespace object
306473
- /******/ // mode & 1: value is a module id, require it
306474
- /******/ // mode & 2: merge all properties of value into the ns
306475
- /******/ // mode & 4: return value when already ns object
306476
- /******/ // mode & 16: return value when it's Promise-like
306477
- /******/ // mode & 8|1: behave like require
306478
- /******/ __webpack_require__.t = function(value, mode) {
306479
- /******/ if(mode & 1) value = this(value);
306480
- /******/ if(mode & 8) return value;
306481
- /******/ if(typeof value === 'object' && value) {
306482
- /******/ if((mode & 4) && value.__esModule) return value;
306483
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
306484
- /******/ }
306485
- /******/ var ns = Object.create(null);
306486
- /******/ __webpack_require__.r(ns);
306487
- /******/ var def = {};
306488
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
306489
- /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
306490
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
306491
- /******/ }
306492
- /******/ def['default'] = () => (value);
306493
- /******/ __webpack_require__.d(ns, def);
306494
- /******/ return ns;
306495
- /******/ };
306496
- /******/ })();
306497
- /******/
306498
305650
  /******/ /* webpack/runtime/define property getters */
306499
305651
  /******/ (() => {
306500
305652
  /******/ // define getter functions for harmony exports