@itwin/rpcinterface-full-stack-tests 3.4.0-dev.10 → 3.4.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/{_c41d.bundled-tests.js → _c5fe.bundled-tests.js} +3 -3
- package/lib/dist/_c5fe.bundled-tests.js.map +1 -0
- package/lib/dist/bundled-tests.js +381 -1193
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js} +67 -67
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js.map → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js.map} +1 -1
- package/package.json +14 -14
- package/lib/dist/_c41d.bundled-tests.js.map +0 -1
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
/***/ }),
|
|
23
23
|
|
|
24
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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 +=
|
|
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 +=
|
|
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 +=
|
|
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 +=
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
/**
|
|
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 {
|
|
@@ -69268,12 +68929,21 @@ var Gradient;
|
|
|
69268
68929
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
|
|
69269
68930
|
return imageBuffer;
|
|
69270
68931
|
}
|
|
69271
|
-
/**
|
|
68932
|
+
/** Produces a bitmap image from this gradient.
|
|
69272
68933
|
* @param width Width of the image
|
|
69273
68934
|
* @param height Height of the image
|
|
69274
|
-
* @
|
|
68935
|
+
* @note If this gradient uses [[Gradient.Mode.Thematic]], then the width of the image will be 1 and the margin color will be included in the top and bottom rows.
|
|
68936
|
+
* @see [[produceImage]] for more customization.
|
|
69275
68937
|
*/
|
|
69276
68938
|
getImage(width, height) {
|
|
68939
|
+
if (this.mode === Mode.Thematic)
|
|
68940
|
+
width = 1;
|
|
68941
|
+
return this.produceImage({ width, height, includeThematicMargin: true });
|
|
68942
|
+
}
|
|
68943
|
+
/** Produces a bitmap image from this gradient. */
|
|
68944
|
+
produceImage(args) {
|
|
68945
|
+
var _a;
|
|
68946
|
+
const { width, height, includeThematicMargin } = { ...args };
|
|
69277
68947
|
const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
|
|
69278
68948
|
const cosA = Math.cos(thisAngle);
|
|
69279
68949
|
const sinA = Math.sin(thisAngle);
|
|
@@ -69379,27 +69049,29 @@ var Gradient;
|
|
|
69379
69049
|
break;
|
|
69380
69050
|
}
|
|
69381
69051
|
case Mode.Thematic: {
|
|
69382
|
-
|
|
69383
|
-
if (settings === undefined) {
|
|
69384
|
-
settings = _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
69385
|
-
}
|
|
69052
|
+
const settings = (_a = this.thematicSettings) !== null && _a !== void 0 ? _a : _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
69386
69053
|
for (let j = 0; j < height; j++) {
|
|
69387
69054
|
let f = 1 - j / height;
|
|
69388
69055
|
let color;
|
|
69389
|
-
|
|
69390
|
-
|
|
69391
|
-
|
|
69392
|
-
|
|
69393
|
-
|
|
69394
|
-
|
|
69395
|
-
|
|
69396
|
-
|
|
69056
|
+
if (includeThematicMargin && (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax)) {
|
|
69057
|
+
color = settings.marginColor;
|
|
69058
|
+
}
|
|
69059
|
+
else {
|
|
69060
|
+
f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
|
|
69061
|
+
switch (settings.mode) {
|
|
69062
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
|
|
69063
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
|
|
69064
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
|
|
69065
|
+
if (settings.stepCount > 1) {
|
|
69066
|
+
const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
|
|
69067
|
+
color = this.mapColor(fStep);
|
|
69068
|
+
}
|
|
69069
|
+
break;
|
|
69397
69070
|
}
|
|
69398
|
-
|
|
69071
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
|
|
69072
|
+
color = this.mapColor(f);
|
|
69073
|
+
break;
|
|
69399
69074
|
}
|
|
69400
|
-
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
|
|
69401
|
-
color = this.mapColor(f);
|
|
69402
|
-
break;
|
|
69403
69075
|
}
|
|
69404
69076
|
for (let i = 0; i < width; i++) {
|
|
69405
69077
|
image[currentIdx--] = color.getAlpha();
|
|
@@ -90272,6 +89944,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
90272
89944
|
const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
|
|
90273
89945
|
const operationComponent = components.slice(-1)[0];
|
|
90274
89946
|
const encodedRequest = url.searchParams.get("parameters") || "";
|
|
89947
|
+
// The encodedRequest should be base64 - fail now if any other characters detected.
|
|
89948
|
+
if (/[^A-z0-9=+\/]/.test(encodedRequest))
|
|
89949
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Malformed URL parameters detected.`);
|
|
90275
89950
|
const firstHyphen = operationComponent.indexOf("-");
|
|
90276
89951
|
const lastHyphen = operationComponent.lastIndexOf("-");
|
|
90277
89952
|
const interfaceDefinition = operationComponent.slice(0, firstHyphen);
|
|
@@ -90663,11 +90338,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90663
90338
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
90664
90339
|
/* harmony export */ "WebAppRpcProtocol": () => (/* binding */ WebAppRpcProtocol)
|
|
90665
90340
|
/* harmony export */ });
|
|
90666
|
-
/* harmony import */ var
|
|
90667
|
-
/* harmony import */ var
|
|
90668
|
-
/* harmony import */ var
|
|
90669
|
-
/* harmony import */ var
|
|
90670
|
-
/* harmony import */ var
|
|
90341
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
90342
|
+
/* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonLoggerCategory */ "../../core/common/lib/esm/CommonLoggerCategory.js");
|
|
90343
|
+
/* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
|
|
90344
|
+
/* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
|
|
90345
|
+
/* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
|
|
90346
|
+
/* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
|
|
90347
|
+
/* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
|
|
90671
90348
|
/*---------------------------------------------------------------------------------------------
|
|
90672
90349
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
90673
90350
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -90680,10 +90357,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90680
90357
|
|
|
90681
90358
|
|
|
90682
90359
|
|
|
90360
|
+
|
|
90361
|
+
|
|
90683
90362
|
/** The HTTP application protocol.
|
|
90684
90363
|
* @internal
|
|
90685
90364
|
*/
|
|
90686
|
-
class WebAppRpcProtocol extends
|
|
90365
|
+
class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__.RpcProtocol {
|
|
90687
90366
|
/** Constructs an HTTP protocol. */
|
|
90688
90367
|
constructor(configuration) {
|
|
90689
90368
|
super(configuration);
|
|
@@ -90691,9 +90370,9 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90691
90370
|
/** An optional prefix for RPC operation URI paths. */
|
|
90692
90371
|
this.pathPrefix = "";
|
|
90693
90372
|
/** The RPC request class for this protocol. */
|
|
90694
|
-
this.requestType =
|
|
90373
|
+
this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest;
|
|
90695
90374
|
this.supportsStatusCategory = true;
|
|
90696
|
-
this.events.addListener(
|
|
90375
|
+
this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__.WebAppRpcLogging.logProtocolEvent);
|
|
90697
90376
|
}
|
|
90698
90377
|
/** Convenience handler for an RPC operation get request for an HTTP server. */
|
|
90699
90378
|
async handleOperationGetRequest(req, res) {
|
|
@@ -90701,9 +90380,19 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90701
90380
|
}
|
|
90702
90381
|
/** Convenience handler for an RPC operation post request for an HTTP server. */
|
|
90703
90382
|
async handleOperationPostRequest(req, res) {
|
|
90704
|
-
|
|
90383
|
+
let request;
|
|
90384
|
+
try {
|
|
90385
|
+
request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.parseRequest(this, req);
|
|
90386
|
+
}
|
|
90387
|
+
catch (error) {
|
|
90388
|
+
const message = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(error);
|
|
90389
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(error));
|
|
90390
|
+
res.status(400);
|
|
90391
|
+
res.send(JSON.stringify({ message, isError: true }));
|
|
90392
|
+
return;
|
|
90393
|
+
}
|
|
90705
90394
|
const fulfillment = await this.fulfill(request);
|
|
90706
|
-
await
|
|
90395
|
+
await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
|
|
90707
90396
|
}
|
|
90708
90397
|
/** Convenience handler for an OpenAPI description request for an HTTP server. */
|
|
90709
90398
|
handleOpenApiDescriptionRequest(_req, res) {
|
|
@@ -90713,45 +90402,45 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90713
90402
|
/** Converts an HTTP content type value to an RPC content type value. */
|
|
90714
90403
|
static computeContentType(httpType) {
|
|
90715
90404
|
if (!httpType)
|
|
90716
|
-
return
|
|
90717
|
-
if (httpType.indexOf(
|
|
90718
|
-
return
|
|
90405
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90406
|
+
if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
|
|
90407
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Text;
|
|
90719
90408
|
}
|
|
90720
|
-
else if (httpType.indexOf(
|
|
90721
|
-
return
|
|
90409
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.BINARY) === 0) {
|
|
90410
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Binary;
|
|
90722
90411
|
}
|
|
90723
|
-
else if (httpType.indexOf(
|
|
90724
|
-
return
|
|
90412
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
|
|
90413
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Multipart;
|
|
90725
90414
|
}
|
|
90726
90415
|
else {
|
|
90727
|
-
return
|
|
90416
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90728
90417
|
}
|
|
90729
90418
|
}
|
|
90730
90419
|
/** Supplies the status corresponding to a protocol-specific code value. */
|
|
90731
90420
|
getStatus(code) {
|
|
90732
90421
|
switch (code) {
|
|
90733
|
-
case 404: return
|
|
90734
|
-
case 202: return
|
|
90735
|
-
case 200: return
|
|
90736
|
-
case 500: return
|
|
90737
|
-
case 204: return
|
|
90738
|
-
case 502: return
|
|
90739
|
-
case 503: return
|
|
90740
|
-
case 504: return
|
|
90741
|
-
default: return
|
|
90422
|
+
case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound;
|
|
90423
|
+
case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending;
|
|
90424
|
+
case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved;
|
|
90425
|
+
case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected;
|
|
90426
|
+
case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent;
|
|
90427
|
+
case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway;
|
|
90428
|
+
case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable;
|
|
90429
|
+
case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout;
|
|
90430
|
+
default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Unknown;
|
|
90742
90431
|
}
|
|
90743
90432
|
}
|
|
90744
90433
|
/** Supplies the protocol-specific code corresponding to a status value. */
|
|
90745
90434
|
getCode(status) {
|
|
90746
90435
|
switch (status) {
|
|
90747
|
-
case
|
|
90748
|
-
case
|
|
90749
|
-
case
|
|
90750
|
-
case
|
|
90751
|
-
case
|
|
90752
|
-
case
|
|
90753
|
-
case
|
|
90754
|
-
case
|
|
90436
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound: return 404;
|
|
90437
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending: return 202;
|
|
90438
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved: return 200;
|
|
90439
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected: return 500;
|
|
90440
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent: return 204;
|
|
90441
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway: return 502;
|
|
90442
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable: return 503;
|
|
90443
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout: return 504;
|
|
90755
90444
|
default: return 501;
|
|
90756
90445
|
}
|
|
90757
90446
|
}
|
|
@@ -90762,7 +90451,7 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90762
90451
|
/** An OpenAPI-compatible description of this protocol.
|
|
90763
90452
|
* @internal
|
|
90764
90453
|
*/
|
|
90765
|
-
get openAPIDescription() { return new
|
|
90454
|
+
get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_4__.RpcOpenAPIDescription(this); }
|
|
90766
90455
|
}
|
|
90767
90456
|
|
|
90768
90457
|
|
|
@@ -90863,7 +90552,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__.Rpc
|
|
|
90863
90552
|
}
|
|
90864
90553
|
}
|
|
90865
90554
|
if (!request.id) {
|
|
90866
|
-
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request.`);
|
|
90555
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Missing required activity ID.`);
|
|
90867
90556
|
}
|
|
90868
90557
|
return request;
|
|
90869
90558
|
}
|
|
@@ -136982,8 +136671,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
|
|
|
136982
136671
|
}
|
|
136983
136672
|
get techniqueId() { return 7 /* RealityMesh */; }
|
|
136984
136673
|
getPass(target) {
|
|
136985
|
-
if (target.isDrawingShadowMap)
|
|
136986
|
-
return "none";
|
|
136987
136674
|
if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
|
|
136988
136675
|
return "translucent";
|
|
136989
136676
|
return "opaque";
|
|
@@ -142597,6 +142284,7 @@ class SolarShadowMap {
|
|
|
142597
142284
|
this.onGraphicsChanged(this._graphics);
|
|
142598
142285
|
}
|
|
142599
142286
|
update(context) {
|
|
142287
|
+
var _a;
|
|
142600
142288
|
this._isReady = false;
|
|
142601
142289
|
this.clearGraphics(false);
|
|
142602
142290
|
if (undefined === context || !context.viewport.view.isSpatialView()) {
|
|
@@ -142606,9 +142294,7 @@ class SolarShadowMap {
|
|
|
142606
142294
|
}
|
|
142607
142295
|
const view = context.viewport.view;
|
|
142608
142296
|
const style = view.getDisplayStyle3d();
|
|
142609
|
-
|
|
142610
|
-
if (undefined === sunDirection)
|
|
142611
|
-
sunDirection = defaultSunDirection;
|
|
142297
|
+
const sunDirection = (_a = style.sunDirection) !== null && _a !== void 0 ? _a : defaultSunDirection;
|
|
142612
142298
|
const minimumHorizonDirection = -.01;
|
|
142613
142299
|
if (sunDirection.z > minimumHorizonDirection) {
|
|
142614
142300
|
this.notifyGraphicsChanged();
|
|
@@ -142630,8 +142316,21 @@ class SolarShadowMap {
|
|
|
142630
142316
|
// Limit the map to only displayed models.
|
|
142631
142317
|
const viewTileRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
142632
142318
|
view.forEachTileTreeRef((ref) => {
|
|
142633
|
-
if (ref.castsShadows)
|
|
142634
|
-
ref.
|
|
142319
|
+
if (ref.castsShadows) {
|
|
142320
|
+
if (ref.isGlobal) {
|
|
142321
|
+
// A shadow-casting tile tree that spans the globe. Limit its range to the viewed extents.
|
|
142322
|
+
for (const p3 of viewFrustum.points) {
|
|
142323
|
+
const p4 = worldToMap.multiplyPoint3d(p3, 1);
|
|
142324
|
+
if (p4.w > 0.0001)
|
|
142325
|
+
viewTileRange.extendXYZW(p4.x, p4.y, p4.z, p4.w);
|
|
142326
|
+
else
|
|
142327
|
+
viewTileRange.high.z = Math.max(1.0, viewTileRange.high.z); // behind eye plane.
|
|
142328
|
+
}
|
|
142329
|
+
}
|
|
142330
|
+
else {
|
|
142331
|
+
ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
|
|
142332
|
+
}
|
|
142333
|
+
}
|
|
142635
142334
|
});
|
|
142636
142335
|
if (!viewTileRange.isNull)
|
|
142637
142336
|
viewTileRange.clone(shadowRange);
|
|
@@ -143862,7 +143561,15 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_7__.RenderSystem {
|
|
|
143862
143561
|
}
|
|
143863
143562
|
/** Attempt to create a texture using gradient symbology. */
|
|
143864
143563
|
getGradientTexture(symb, iModel) {
|
|
143865
|
-
|
|
143564
|
+
let width = 0x100;
|
|
143565
|
+
let height = 0x100;
|
|
143566
|
+
if (symb.mode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Gradient.Mode.Thematic) {
|
|
143567
|
+
// Pixels in each row are identical, no point in having width > 1.
|
|
143568
|
+
width = 1;
|
|
143569
|
+
// We want maximum height to minimize bleeding of margin color.
|
|
143570
|
+
height = this.maxTextureSize;
|
|
143571
|
+
}
|
|
143572
|
+
const source = symb.produceImage({ width, height, includeThematicMargin: true });
|
|
143866
143573
|
return this.createTexture({
|
|
143867
143574
|
image: {
|
|
143868
143575
|
source,
|
|
@@ -158097,7 +157804,7 @@ class GltfReader {
|
|
|
158097
157804
|
if (dracoMeshes.length === 0)
|
|
158098
157805
|
return;
|
|
158099
157806
|
try {
|
|
158100
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
157807
|
+
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;
|
|
158101
157808
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
158102
157809
|
}
|
|
158103
157810
|
catch (err) {
|
|
@@ -161224,7 +160931,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
161224
160931
|
async function decodeDracoPointCloud(buf) {
|
|
161225
160932
|
var _a, _b, _c, _d, _e, _f;
|
|
161226
160933
|
try {
|
|
161227
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
160934
|
+
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;
|
|
161228
160935
|
const mesh = await dracoLoader.parse(buf, {});
|
|
161229
160936
|
if (mesh.topology !== "point-list")
|
|
161230
160937
|
return undefined;
|
|
@@ -163409,6 +163116,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
163409
163116
|
const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
|
|
163410
163117
|
const graphicTypeBranches = new Map();
|
|
163411
163118
|
const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
|
|
163119
|
+
args.processSelectedTiles(selectedTiles);
|
|
163412
163120
|
let sortIndices;
|
|
163413
163121
|
if (!this.parentsAndChildrenExclusive) {
|
|
163414
163122
|
sortIndices = selectedTiles.map((_x, i) => i);
|
|
@@ -167669,28 +167377,6 @@ class ArcGisUtilities {
|
|
|
167669
167377
|
return undefined;
|
|
167670
167378
|
}
|
|
167671
167379
|
}
|
|
167672
|
-
static async getFootprintJson(url, credentials) {
|
|
167673
|
-
const cached = ArcGisUtilities._footprintCache.get(url);
|
|
167674
|
-
if (cached !== undefined)
|
|
167675
|
-
return cached;
|
|
167676
|
-
try {
|
|
167677
|
-
const tmpUrl = new URL(url);
|
|
167678
|
-
tmpUrl.searchParams.append("f", "json");
|
|
167679
|
-
tmpUrl.searchParams.append("option", "footprints");
|
|
167680
|
-
tmpUrl.searchParams.append("outSR", "4326");
|
|
167681
|
-
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.mapLayerFormatRegistry.getAccessClient("ArcGIS");
|
|
167682
|
-
if (accessClient) {
|
|
167683
|
-
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 });
|
|
167684
|
-
}
|
|
167685
|
-
const json = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_1__.getJson)(tmpUrl.toString());
|
|
167686
|
-
ArcGisUtilities._footprintCache.set(url, json);
|
|
167687
|
-
return json;
|
|
167688
|
-
}
|
|
167689
|
-
catch (_error) {
|
|
167690
|
-
ArcGisUtilities._footprintCache.set(url, undefined);
|
|
167691
|
-
return undefined;
|
|
167692
|
-
}
|
|
167693
|
-
}
|
|
167694
167380
|
// return the appended access token if available.
|
|
167695
167381
|
static async appendSecurityToken(url, accessClient, accessTokenParams) {
|
|
167696
167382
|
// Append security token if available
|
|
@@ -167707,7 +167393,6 @@ class ArcGisUtilities {
|
|
|
167707
167393
|
}
|
|
167708
167394
|
}
|
|
167709
167395
|
ArcGisUtilities._serviceCache = new Map();
|
|
167710
|
-
ArcGisUtilities._footprintCache = new Map();
|
|
167711
167396
|
|
|
167712
167397
|
|
|
167713
167398
|
/***/ }),
|
|
@@ -168586,18 +168271,9 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_4
|
|
|
168586
168271
|
if (this._usesCachedTiles && this._tileMapSupported) {
|
|
168587
168272
|
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);
|
|
168588
168273
|
}
|
|
168589
|
-
|
|
168590
|
-
if (
|
|
168591
|
-
|
|
168592
|
-
if (layer.layerDefinition && layer.layerDefinition.extent) {
|
|
168593
|
-
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);
|
|
168594
|
-
break;
|
|
168595
|
-
}
|
|
168596
|
-
}
|
|
168597
|
-
}
|
|
168598
|
-
// Sometimes footprint request doesnt work, fallback to dataset fullextent
|
|
168599
|
-
if (this.cartoRange === undefined && json.fullExtent) {
|
|
168600
|
-
if (json.fullExtent.spatialReference.latestWkid === 3857) {
|
|
168274
|
+
// Read range using fullextent from service metadata
|
|
168275
|
+
if (json.fullExtent) {
|
|
168276
|
+
if (json.fullExtent.spatialReference.latestWkid === 3857 || json.fullExtent.spatialReference.wkid === 102100) {
|
|
168601
168277
|
const range3857 = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_6__.Range2d.createFrom({
|
|
168602
168278
|
low: { x: json.fullExtent.xmin, y: json.fullExtent.ymin },
|
|
168603
168279
|
high: { x: json.fullExtent.xmax, y: json.fullExtent.ymax }
|
|
@@ -266071,9 +265747,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
266071
265747
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
266072
265748
|
/* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
|
|
266073
265749
|
/* harmony export */ });
|
|
266074
|
-
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.
|
|
266075
|
-
/* 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.
|
|
266076
|
-
/* harmony import */ var
|
|
265750
|
+
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js");
|
|
265751
|
+
/* 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");
|
|
265752
|
+
/* 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");
|
|
266077
265753
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
266078
265754
|
/*---------------------------------------------------------------------------------------------
|
|
266079
265755
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -266109,14 +265785,13 @@ class ITwinLocalization {
|
|
|
266109
265785
|
this._initOptions = {
|
|
266110
265786
|
interpolation: { escapeValue: true },
|
|
266111
265787
|
fallbackLng: "en",
|
|
266112
|
-
maxRetries: 1,
|
|
266113
265788
|
backend: this._backendOptions,
|
|
266114
265789
|
detection: this._detectionOptions,
|
|
266115
265790
|
...options === null || options === void 0 ? void 0 : options.initOptions,
|
|
266116
265791
|
};
|
|
266117
265792
|
this.i18next
|
|
266118
265793
|
.use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
266119
|
-
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c :
|
|
265794
|
+
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
|
|
266120
265795
|
.use(TranslationLogger);
|
|
266121
265796
|
}
|
|
266122
265797
|
async initialize(namespaces) {
|
|
@@ -266237,10 +265912,10 @@ class ITwinLocalization {
|
|
|
266237
265912
|
if (!err)
|
|
266238
265913
|
return resolve();
|
|
266239
265914
|
// Here we got a non-null err object.
|
|
266240
|
-
// This method is called when the system has attempted to load the resources for the
|
|
266241
|
-
// For example 'fr-ca' might be the most specific
|
|
266242
|
-
//
|
|
266243
|
-
//
|
|
265915
|
+
// This method is called when the system has attempted to load the resources for the namespace for each
|
|
265916
|
+
// possible locale. For example 'fr-ca' might be the most specific local, in which case 'fr' ) and 'en are fallback locales.
|
|
265917
|
+
// using i18next-xhr-backend, err will be an array of strings that includes the namespace it tried to read and the locale. There
|
|
265918
|
+
// 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.
|
|
266244
265919
|
let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
|
|
266245
265920
|
try {
|
|
266246
265921
|
for (const thisError of err) {
|
|
@@ -287470,7 +287145,7 @@ class TestContext {
|
|
|
287470
287145
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287471
287146
|
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` } });
|
|
287472
287147
|
await core_frontend_1.NoRenderApp.startup({
|
|
287473
|
-
applicationVersion: "3.4.0-dev.
|
|
287148
|
+
applicationVersion: "3.4.0-dev.15",
|
|
287474
287149
|
applicationId: this.settings.gprid,
|
|
287475
287150
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287476
287151
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -301115,31 +300790,6 @@ var WidgetState;
|
|
|
301115
300790
|
|
|
301116
300791
|
/* (ignored) */
|
|
301117
300792
|
|
|
301118
|
-
/***/ }),
|
|
301119
|
-
|
|
301120
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
|
|
301121
|
-
/*!**************************************************************************************************************************!*\
|
|
301122
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
|
|
301123
|
-
\**************************************************************************************************************************/
|
|
301124
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
301125
|
-
|
|
301126
|
-
var fetchApi
|
|
301127
|
-
if (typeof fetch === 'function') {
|
|
301128
|
-
if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
|
|
301129
|
-
fetchApi = __webpack_require__.g.fetch
|
|
301130
|
-
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
301131
|
-
fetchApi = window.fetch
|
|
301132
|
-
}
|
|
301133
|
-
}
|
|
301134
|
-
|
|
301135
|
-
if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
|
|
301136
|
-
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")
|
|
301137
|
-
if (f.default) f = f.default
|
|
301138
|
-
exports["default"] = f
|
|
301139
|
-
module.exports = exports.default
|
|
301140
|
-
}
|
|
301141
|
-
|
|
301142
|
-
|
|
301143
300793
|
/***/ }),
|
|
301144
300794
|
|
|
301145
300795
|
/***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
|
|
@@ -303094,441 +302744,9 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
303094
302744
|
|
|
303095
302745
|
/***/ }),
|
|
303096
302746
|
|
|
303097
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next
|
|
303098
|
-
/*!**********************************************************************************************************************!*\
|
|
303099
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
|
|
303100
|
-
\**********************************************************************************************************************/
|
|
303101
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303102
|
-
|
|
303103
|
-
"use strict";
|
|
303104
|
-
__webpack_require__.r(__webpack_exports__);
|
|
303105
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303106
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303107
|
-
/* harmony export */ });
|
|
303108
|
-
/* 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");
|
|
303109
|
-
/* 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");
|
|
303110
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
303111
|
-
|
|
303112
|
-
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); } }
|
|
303113
|
-
|
|
303114
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
303115
|
-
|
|
303116
|
-
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; }
|
|
303117
|
-
|
|
303118
|
-
|
|
303119
|
-
|
|
303120
|
-
|
|
303121
|
-
var getDefaults = function getDefaults() {
|
|
303122
|
-
return {
|
|
303123
|
-
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
303124
|
-
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
303125
|
-
allowMultiLoading: false,
|
|
303126
|
-
parse: function parse(data) {
|
|
303127
|
-
return JSON.parse(data);
|
|
303128
|
-
},
|
|
303129
|
-
stringify: JSON.stringify,
|
|
303130
|
-
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
303131
|
-
return _defineProperty({}, key, fallbackValue || '');
|
|
303132
|
-
},
|
|
303133
|
-
request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
303134
|
-
reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
|
|
303135
|
-
customHeaders: {},
|
|
303136
|
-
queryStringParams: {},
|
|
303137
|
-
crossDomain: false,
|
|
303138
|
-
withCredentials: false,
|
|
303139
|
-
overrideMimeType: false,
|
|
303140
|
-
requestOptions: {
|
|
303141
|
-
mode: 'cors',
|
|
303142
|
-
credentials: 'same-origin',
|
|
303143
|
-
cache: 'default'
|
|
303144
|
-
}
|
|
303145
|
-
};
|
|
303146
|
-
};
|
|
303147
|
-
|
|
303148
|
-
var Backend = function () {
|
|
303149
|
-
function Backend(services) {
|
|
303150
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
303151
|
-
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
303152
|
-
|
|
303153
|
-
_classCallCheck(this, Backend);
|
|
303154
|
-
|
|
303155
|
-
this.services = services;
|
|
303156
|
-
this.options = options;
|
|
303157
|
-
this.allOptions = allOptions;
|
|
303158
|
-
this.type = 'backend';
|
|
303159
|
-
this.init(services, options, allOptions);
|
|
303160
|
-
}
|
|
303161
|
-
|
|
303162
|
-
_createClass(Backend, [{
|
|
303163
|
-
key: "init",
|
|
303164
|
-
value: function init(services) {
|
|
303165
|
-
var _this = this;
|
|
303166
|
-
|
|
303167
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
303168
|
-
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
303169
|
-
this.services = services;
|
|
303170
|
-
this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
|
|
303171
|
-
this.allOptions = allOptions;
|
|
303172
|
-
|
|
303173
|
-
if (this.services && this.options.reloadInterval) {
|
|
303174
|
-
setInterval(function () {
|
|
303175
|
-
return _this.reload();
|
|
303176
|
-
}, this.options.reloadInterval);
|
|
303177
|
-
}
|
|
303178
|
-
}
|
|
303179
|
-
}, {
|
|
303180
|
-
key: "readMulti",
|
|
303181
|
-
value: function readMulti(languages, namespaces, callback) {
|
|
303182
|
-
this._readAny(languages, languages, namespaces, namespaces, callback);
|
|
303183
|
-
}
|
|
303184
|
-
}, {
|
|
303185
|
-
key: "read",
|
|
303186
|
-
value: function read(language, namespace, callback) {
|
|
303187
|
-
this._readAny([language], language, [namespace], namespace, callback);
|
|
303188
|
-
}
|
|
303189
|
-
}, {
|
|
303190
|
-
key: "_readAny",
|
|
303191
|
-
value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
|
|
303192
|
-
var _this2 = this;
|
|
303193
|
-
|
|
303194
|
-
var loadPath = this.options.loadPath;
|
|
303195
|
-
|
|
303196
|
-
if (typeof this.options.loadPath === 'function') {
|
|
303197
|
-
loadPath = this.options.loadPath(languages, namespaces);
|
|
303198
|
-
}
|
|
303199
|
-
|
|
303200
|
-
loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
|
|
303201
|
-
loadPath.then(function (resolvedLoadPath) {
|
|
303202
|
-
if (!resolvedLoadPath) return callback(null, {});
|
|
303203
|
-
|
|
303204
|
-
var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
|
|
303205
|
-
lng: languages.join('+'),
|
|
303206
|
-
ns: namespaces.join('+')
|
|
303207
|
-
});
|
|
303208
|
-
|
|
303209
|
-
_this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
|
|
303210
|
-
});
|
|
303211
|
-
}
|
|
303212
|
-
}, {
|
|
303213
|
-
key: "loadUrl",
|
|
303214
|
-
value: function loadUrl(url, callback, languages, namespaces) {
|
|
303215
|
-
var _this3 = this;
|
|
303216
|
-
|
|
303217
|
-
this.options.request(this.options, url, undefined, function (err, res) {
|
|
303218
|
-
if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
|
|
303219
|
-
if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
|
|
303220
|
-
if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
|
|
303221
|
-
if (err) return callback(err, false);
|
|
303222
|
-
var ret, parseErr;
|
|
303223
|
-
|
|
303224
|
-
try {
|
|
303225
|
-
if (typeof res.data === 'string') {
|
|
303226
|
-
ret = _this3.options.parse(res.data, languages, namespaces);
|
|
303227
|
-
} else {
|
|
303228
|
-
ret = res.data;
|
|
303229
|
-
}
|
|
303230
|
-
} catch (e) {
|
|
303231
|
-
parseErr = 'failed parsing ' + url + ' to json';
|
|
303232
|
-
}
|
|
303233
|
-
|
|
303234
|
-
if (parseErr) return callback(parseErr, false);
|
|
303235
|
-
callback(null, ret);
|
|
303236
|
-
});
|
|
303237
|
-
}
|
|
303238
|
-
}, {
|
|
303239
|
-
key: "create",
|
|
303240
|
-
value: function create(languages, namespace, key, fallbackValue, callback) {
|
|
303241
|
-
var _this4 = this;
|
|
303242
|
-
|
|
303243
|
-
if (!this.options.addPath) return;
|
|
303244
|
-
if (typeof languages === 'string') languages = [languages];
|
|
303245
|
-
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
303246
|
-
var finished = 0;
|
|
303247
|
-
var dataArray = [];
|
|
303248
|
-
var resArray = [];
|
|
303249
|
-
languages.forEach(function (lng) {
|
|
303250
|
-
var addPath = _this4.options.addPath;
|
|
303251
|
-
|
|
303252
|
-
if (typeof _this4.options.addPath === 'function') {
|
|
303253
|
-
addPath = _this4.options.addPath(lng, namespace);
|
|
303254
|
-
}
|
|
303255
|
-
|
|
303256
|
-
var url = _this4.services.interpolator.interpolate(addPath, {
|
|
303257
|
-
lng: lng,
|
|
303258
|
-
ns: namespace
|
|
303259
|
-
});
|
|
303260
|
-
|
|
303261
|
-
_this4.options.request(_this4.options, url, payload, function (data, res) {
|
|
303262
|
-
finished += 1;
|
|
303263
|
-
dataArray.push(data);
|
|
303264
|
-
resArray.push(res);
|
|
303265
|
-
|
|
303266
|
-
if (finished === languages.length) {
|
|
303267
|
-
if (callback) callback(dataArray, resArray);
|
|
303268
|
-
}
|
|
303269
|
-
});
|
|
303270
|
-
});
|
|
303271
|
-
}
|
|
303272
|
-
}, {
|
|
303273
|
-
key: "reload",
|
|
303274
|
-
value: function reload() {
|
|
303275
|
-
var _this5 = this;
|
|
303276
|
-
|
|
303277
|
-
var _this$services = this.services,
|
|
303278
|
-
backendConnector = _this$services.backendConnector,
|
|
303279
|
-
languageUtils = _this$services.languageUtils,
|
|
303280
|
-
logger = _this$services.logger;
|
|
303281
|
-
var currentLanguage = backendConnector.language;
|
|
303282
|
-
if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
|
|
303283
|
-
var toLoad = [];
|
|
303284
|
-
|
|
303285
|
-
var append = function append(lng) {
|
|
303286
|
-
var lngs = languageUtils.toResolveHierarchy(lng);
|
|
303287
|
-
lngs.forEach(function (l) {
|
|
303288
|
-
if (toLoad.indexOf(l) < 0) toLoad.push(l);
|
|
303289
|
-
});
|
|
303290
|
-
};
|
|
303291
|
-
|
|
303292
|
-
append(currentLanguage);
|
|
303293
|
-
if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
|
|
303294
|
-
return append(l);
|
|
303295
|
-
});
|
|
303296
|
-
toLoad.forEach(function (lng) {
|
|
303297
|
-
_this5.allOptions.ns.forEach(function (ns) {
|
|
303298
|
-
backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
|
|
303299
|
-
if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
|
|
303300
|
-
if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
|
|
303301
|
-
backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
|
|
303302
|
-
});
|
|
303303
|
-
});
|
|
303304
|
-
});
|
|
303305
|
-
}
|
|
303306
|
-
}]);
|
|
303307
|
-
|
|
303308
|
-
return Backend;
|
|
303309
|
-
}();
|
|
303310
|
-
|
|
303311
|
-
Backend.type = 'backend';
|
|
303312
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
303313
|
-
|
|
303314
|
-
/***/ }),
|
|
303315
|
-
|
|
303316
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
|
|
303317
|
-
/*!************************************************************************************************************************!*\
|
|
303318
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
|
|
303319
|
-
\************************************************************************************************************************/
|
|
303320
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303321
|
-
|
|
303322
|
-
"use strict";
|
|
303323
|
-
var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
303324
|
-
__webpack_require__.r(__webpack_exports__);
|
|
303325
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303326
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303327
|
-
/* harmony export */ });
|
|
303328
|
-
/* 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");
|
|
303329
|
-
/* 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");
|
|
303330
|
-
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); }
|
|
303331
|
-
|
|
303332
|
-
|
|
303333
|
-
|
|
303334
|
-
var fetchApi;
|
|
303335
|
-
|
|
303336
|
-
if (typeof fetch === 'function') {
|
|
303337
|
-
if (typeof global !== 'undefined' && global.fetch) {
|
|
303338
|
-
fetchApi = global.fetch;
|
|
303339
|
-
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
303340
|
-
fetchApi = window.fetch;
|
|
303341
|
-
}
|
|
303342
|
-
}
|
|
303343
|
-
|
|
303344
|
-
var XmlHttpRequestApi;
|
|
303345
|
-
|
|
303346
|
-
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
|
|
303347
|
-
if (typeof global !== 'undefined' && global.XMLHttpRequest) {
|
|
303348
|
-
XmlHttpRequestApi = global.XMLHttpRequest;
|
|
303349
|
-
} else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
|
|
303350
|
-
XmlHttpRequestApi = window.XMLHttpRequest;
|
|
303351
|
-
}
|
|
303352
|
-
}
|
|
303353
|
-
|
|
303354
|
-
var ActiveXObjectApi;
|
|
303355
|
-
|
|
303356
|
-
if (typeof ActiveXObject === 'function') {
|
|
303357
|
-
if (typeof global !== 'undefined' && global.ActiveXObject) {
|
|
303358
|
-
ActiveXObjectApi = global.ActiveXObject;
|
|
303359
|
-
} else if (typeof window !== 'undefined' && window.ActiveXObject) {
|
|
303360
|
-
ActiveXObjectApi = window.ActiveXObject;
|
|
303361
|
-
}
|
|
303362
|
-
}
|
|
303363
|
-
|
|
303364
|
-
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)));
|
|
303365
|
-
if (typeof fetchApi !== 'function') fetchApi = undefined;
|
|
303366
|
-
|
|
303367
|
-
var addQueryString = function addQueryString(url, params) {
|
|
303368
|
-
if (params && _typeof(params) === 'object') {
|
|
303369
|
-
var queryString = '';
|
|
303370
|
-
|
|
303371
|
-
for (var paramName in params) {
|
|
303372
|
-
queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
|
|
303373
|
-
}
|
|
303374
|
-
|
|
303375
|
-
if (!queryString) return url;
|
|
303376
|
-
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
303377
|
-
}
|
|
303378
|
-
|
|
303379
|
-
return url;
|
|
303380
|
-
};
|
|
303381
|
-
|
|
303382
|
-
var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
|
|
303383
|
-
if (options.queryStringParams) {
|
|
303384
|
-
url = addQueryString(url, options.queryStringParams);
|
|
303385
|
-
}
|
|
303386
|
-
|
|
303387
|
-
var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
|
|
303388
|
-
if (payload) headers['Content-Type'] = 'application/json';
|
|
303389
|
-
fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
|
|
303390
|
-
method: payload ? 'POST' : 'GET',
|
|
303391
|
-
body: payload ? options.stringify(payload) : undefined,
|
|
303392
|
-
headers: headers
|
|
303393
|
-
}, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
|
|
303394
|
-
if (!response.ok) return callback(response.statusText || 'Error', {
|
|
303395
|
-
status: response.status
|
|
303396
|
-
});
|
|
303397
|
-
response.text().then(function (data) {
|
|
303398
|
-
callback(null, {
|
|
303399
|
-
status: response.status,
|
|
303400
|
-
data: data
|
|
303401
|
-
});
|
|
303402
|
-
}).catch(callback);
|
|
303403
|
-
}).catch(callback);
|
|
303404
|
-
};
|
|
303405
|
-
|
|
303406
|
-
var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
|
|
303407
|
-
if (payload && _typeof(payload) === 'object') {
|
|
303408
|
-
payload = addQueryString('', payload).slice(1);
|
|
303409
|
-
}
|
|
303410
|
-
|
|
303411
|
-
if (options.queryStringParams) {
|
|
303412
|
-
url = addQueryString(url, options.queryStringParams);
|
|
303413
|
-
}
|
|
303414
|
-
|
|
303415
|
-
try {
|
|
303416
|
-
var x;
|
|
303417
|
-
|
|
303418
|
-
if (XmlHttpRequestApi) {
|
|
303419
|
-
x = new XmlHttpRequestApi();
|
|
303420
|
-
} else {
|
|
303421
|
-
x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
|
|
303422
|
-
}
|
|
303423
|
-
|
|
303424
|
-
x.open(payload ? 'POST' : 'GET', url, 1);
|
|
303425
|
-
|
|
303426
|
-
if (!options.crossDomain) {
|
|
303427
|
-
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
303428
|
-
}
|
|
303429
|
-
|
|
303430
|
-
x.withCredentials = !!options.withCredentials;
|
|
303431
|
-
|
|
303432
|
-
if (payload) {
|
|
303433
|
-
x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
303434
|
-
}
|
|
303435
|
-
|
|
303436
|
-
if (x.overrideMimeType) {
|
|
303437
|
-
x.overrideMimeType('application/json');
|
|
303438
|
-
}
|
|
303439
|
-
|
|
303440
|
-
var h = options.customHeaders;
|
|
303441
|
-
h = typeof h === 'function' ? h() : h;
|
|
303442
|
-
|
|
303443
|
-
if (h) {
|
|
303444
|
-
for (var i in h) {
|
|
303445
|
-
x.setRequestHeader(i, h[i]);
|
|
303446
|
-
}
|
|
303447
|
-
}
|
|
303448
|
-
|
|
303449
|
-
x.onreadystatechange = function () {
|
|
303450
|
-
x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
|
|
303451
|
-
status: x.status,
|
|
303452
|
-
data: x.responseText
|
|
303453
|
-
});
|
|
303454
|
-
};
|
|
303455
|
-
|
|
303456
|
-
x.send(payload);
|
|
303457
|
-
} catch (e) {
|
|
303458
|
-
console && console.log(e);
|
|
303459
|
-
}
|
|
303460
|
-
};
|
|
303461
|
-
|
|
303462
|
-
var request = function request(options, url, payload, callback) {
|
|
303463
|
-
if (typeof payload === 'function') {
|
|
303464
|
-
callback = payload;
|
|
303465
|
-
payload = undefined;
|
|
303466
|
-
}
|
|
303467
|
-
|
|
303468
|
-
callback = callback || function () {};
|
|
303469
|
-
|
|
303470
|
-
if (fetchApi) {
|
|
303471
|
-
return requestWithFetch(options, url, payload, callback);
|
|
303472
|
-
}
|
|
303473
|
-
|
|
303474
|
-
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
|
|
303475
|
-
return requestWithXmlHttpRequest(options, url, payload, callback);
|
|
303476
|
-
}
|
|
303477
|
-
};
|
|
303478
|
-
|
|
303479
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
|
|
303480
|
-
|
|
303481
|
-
/***/ }),
|
|
303482
|
-
|
|
303483
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
|
|
303484
|
-
/*!**********************************************************************************************************************!*\
|
|
303485
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
|
|
303486
|
-
\**********************************************************************************************************************/
|
|
303487
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303488
|
-
|
|
303489
|
-
"use strict";
|
|
303490
|
-
__webpack_require__.r(__webpack_exports__);
|
|
303491
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303492
|
-
/* harmony export */ "defaults": () => (/* binding */ defaults),
|
|
303493
|
-
/* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
|
|
303494
|
-
/* harmony export */ "makePromise": () => (/* binding */ makePromise)
|
|
303495
|
-
/* harmony export */ });
|
|
303496
|
-
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); }
|
|
303497
|
-
|
|
303498
|
-
var arr = [];
|
|
303499
|
-
var each = arr.forEach;
|
|
303500
|
-
var slice = arr.slice;
|
|
303501
|
-
function defaults(obj) {
|
|
303502
|
-
each.call(slice.call(arguments, 1), function (source) {
|
|
303503
|
-
if (source) {
|
|
303504
|
-
for (var prop in source) {
|
|
303505
|
-
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
303506
|
-
}
|
|
303507
|
-
}
|
|
303508
|
-
});
|
|
303509
|
-
return obj;
|
|
303510
|
-
}
|
|
303511
|
-
function hasXMLHttpRequest() {
|
|
303512
|
-
return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
|
|
303513
|
-
}
|
|
303514
|
-
|
|
303515
|
-
function isPromise(maybePromise) {
|
|
303516
|
-
return !!maybePromise && typeof maybePromise.then === 'function';
|
|
303517
|
-
}
|
|
303518
|
-
|
|
303519
|
-
function makePromise(maybePromise) {
|
|
303520
|
-
if (isPromise(maybePromise)) {
|
|
303521
|
-
return maybePromise;
|
|
303522
|
-
}
|
|
303523
|
-
|
|
303524
|
-
return Promise.resolve(maybePromise);
|
|
303525
|
-
}
|
|
303526
|
-
|
|
303527
|
-
/***/ }),
|
|
303528
|
-
|
|
303529
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
|
|
302747
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js":
|
|
303530
302748
|
/*!****************************************************************************************************!*\
|
|
303531
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.
|
|
302749
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js ***!
|
|
303532
302750
|
\****************************************************************************************************/
|
|
303533
302751
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303534
302752
|
|
|
@@ -305806,7 +305024,7 @@ var I18n = function (_EventEmitter) {
|
|
|
305806
305024
|
options = {};
|
|
305807
305025
|
}
|
|
305808
305026
|
|
|
305809
|
-
if (!options.defaultNS && options.ns) {
|
|
305027
|
+
if (!options.defaultNS && options.defaultNS !== false && options.ns) {
|
|
305810
305028
|
if (typeof options.ns === 'string') {
|
|
305811
305029
|
options.defaultNS = options.ns;
|
|
305812
305030
|
} else if (options.ns.indexOf('translation') < 0) {
|
|
@@ -306386,7 +305604,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
306386
305604
|
/***/ ((module) => {
|
|
306387
305605
|
|
|
306388
305606
|
"use strict";
|
|
306389
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
305607
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.15","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.15","@itwin/core-bentley":"workspace:^3.4.0-dev.15","@itwin/core-common":"workspace:^3.4.0-dev.15","@itwin/core-geometry":"workspace:^3.4.0-dev.15","@itwin/core-orbitgt":"workspace:^3.4.0-dev.15","@itwin/core-quantity":"workspace:^3.4.0-dev.15","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.15"},"//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"}}]}}');
|
|
306390
305608
|
|
|
306391
305609
|
/***/ }),
|
|
306392
305610
|
|
|
@@ -306446,36 +305664,6 @@ module.exports = JSON.parse('{"$schema":"../../../node_modules/@itwin/presentati
|
|
|
306446
305664
|
/******/ };
|
|
306447
305665
|
/******/ })();
|
|
306448
305666
|
/******/
|
|
306449
|
-
/******/ /* webpack/runtime/create fake namespace object */
|
|
306450
|
-
/******/ (() => {
|
|
306451
|
-
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
306452
|
-
/******/ var leafPrototypes;
|
|
306453
|
-
/******/ // create a fake namespace object
|
|
306454
|
-
/******/ // mode & 1: value is a module id, require it
|
|
306455
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
306456
|
-
/******/ // mode & 4: return value when already ns object
|
|
306457
|
-
/******/ // mode & 16: return value when it's Promise-like
|
|
306458
|
-
/******/ // mode & 8|1: behave like require
|
|
306459
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
306460
|
-
/******/ if(mode & 1) value = this(value);
|
|
306461
|
-
/******/ if(mode & 8) return value;
|
|
306462
|
-
/******/ if(typeof value === 'object' && value) {
|
|
306463
|
-
/******/ if((mode & 4) && value.__esModule) return value;
|
|
306464
|
-
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
306465
|
-
/******/ }
|
|
306466
|
-
/******/ var ns = Object.create(null);
|
|
306467
|
-
/******/ __webpack_require__.r(ns);
|
|
306468
|
-
/******/ var def = {};
|
|
306469
|
-
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
306470
|
-
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
306471
|
-
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
306472
|
-
/******/ }
|
|
306473
|
-
/******/ def['default'] = () => (value);
|
|
306474
|
-
/******/ __webpack_require__.d(ns, def);
|
|
306475
|
-
/******/ return ns;
|
|
306476
|
-
/******/ };
|
|
306477
|
-
/******/ })();
|
|
306478
|
-
/******/
|
|
306479
305667
|
/******/ /* webpack/runtime/define property getters */
|
|
306480
305668
|
/******/ (() => {
|
|
306481
305669
|
/******/ // define getter functions for harmony exports
|