@learncard/idx-plugin 1.0.30 → 1.0.32
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/dist/defaults.d.ts +3 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/idx-plugin.cjs.development.js +252 -98
- package/dist/idx-plugin.cjs.development.js.map +4 -4
- package/dist/idx-plugin.cjs.production.min.js +99 -98
- package/dist/idx-plugin.cjs.production.min.js.map +4 -4
- package/dist/idx-plugin.esm.js +252 -98
- package/dist/idx-plugin.esm.js.map +4 -4
- package/dist/idx.d.ts +1 -1
- package/dist/idx.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/idx-plugin.esm.js
CHANGED
|
@@ -1427,9 +1427,9 @@ var require_random = __commonJS({
|
|
|
1427
1427
|
}
|
|
1428
1428
|
});
|
|
1429
1429
|
|
|
1430
|
-
// ../../../node_modules/.pnpm/dataloader@2.2.
|
|
1430
|
+
// ../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js
|
|
1431
1431
|
var require_dataloader = __commonJS({
|
|
1432
|
-
"../../../node_modules/.pnpm/dataloader@2.2.
|
|
1432
|
+
"../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module) {
|
|
1433
1433
|
"use strict";
|
|
1434
1434
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
1435
1435
|
function DataLoader3(batchLoadFn, options) {
|
|
@@ -1452,8 +1452,9 @@ var require_dataloader = __commonJS({
|
|
|
1452
1452
|
}
|
|
1453
1453
|
var batch = getCurrentBatch(this);
|
|
1454
1454
|
var cacheMap = this._cacheMap;
|
|
1455
|
-
var cacheKey
|
|
1455
|
+
var cacheKey;
|
|
1456
1456
|
if (cacheMap) {
|
|
1457
|
+
cacheKey = this._cacheKeyFn(key2);
|
|
1457
1458
|
var cachedPromise = cacheMap.get(cacheKey);
|
|
1458
1459
|
if (cachedPromise) {
|
|
1459
1460
|
var cacheHits = batch.cacheHits || (batch.cacheHits = []);
|
|
@@ -1577,11 +1578,11 @@ var require_dataloader = __commonJS({
|
|
|
1577
1578
|
}
|
|
1578
1579
|
resolveCacheHits(batch);
|
|
1579
1580
|
for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
|
|
1580
|
-
var
|
|
1581
|
-
if (
|
|
1582
|
-
batch.callbacks[i2].reject(
|
|
1581
|
+
var _value = values[i2];
|
|
1582
|
+
if (_value instanceof Error) {
|
|
1583
|
+
batch.callbacks[i2].reject(_value);
|
|
1583
1584
|
} else {
|
|
1584
|
-
batch.callbacks[i2].resolve(
|
|
1585
|
+
batch.callbacks[i2].resolve(_value);
|
|
1585
1586
|
}
|
|
1586
1587
|
}
|
|
1587
1588
|
})["catch"](function(error) {
|
|
@@ -5945,13 +5946,13 @@ function __spreadArray(to, from4, pack) {
|
|
|
5945
5946
|
}
|
|
5946
5947
|
__name(__spreadArray, "__spreadArray");
|
|
5947
5948
|
|
|
5948
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5949
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
5949
5950
|
function isFunction(value) {
|
|
5950
5951
|
return typeof value === "function";
|
|
5951
5952
|
}
|
|
5952
5953
|
__name(isFunction, "isFunction");
|
|
5953
5954
|
|
|
5954
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5955
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
|
|
5955
5956
|
function createErrorClass(createImpl) {
|
|
5956
5957
|
var _super = /* @__PURE__ */ __name(function(instance) {
|
|
5957
5958
|
Error.call(instance);
|
|
@@ -5964,7 +5965,7 @@ function createErrorClass(createImpl) {
|
|
|
5964
5965
|
}
|
|
5965
5966
|
__name(createErrorClass, "createErrorClass");
|
|
5966
5967
|
|
|
5967
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5968
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
|
|
5968
5969
|
var UnsubscriptionError = createErrorClass(function(_super) {
|
|
5969
5970
|
return /* @__PURE__ */ __name(function UnsubscriptionErrorImpl(errors) {
|
|
5970
5971
|
_super(this);
|
|
@@ -5976,7 +5977,7 @@ var UnsubscriptionError = createErrorClass(function(_super) {
|
|
|
5976
5977
|
}, "UnsubscriptionErrorImpl");
|
|
5977
5978
|
});
|
|
5978
5979
|
|
|
5979
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5980
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
|
|
5980
5981
|
function arrRemove(arr, item) {
|
|
5981
5982
|
if (arr) {
|
|
5982
5983
|
var index = arr.indexOf(item);
|
|
@@ -5985,7 +5986,7 @@ function arrRemove(arr, item) {
|
|
|
5985
5986
|
}
|
|
5986
5987
|
__name(arrRemove, "arrRemove");
|
|
5987
5988
|
|
|
5988
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
5989
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js
|
|
5989
5990
|
var Subscription = function() {
|
|
5990
5991
|
function Subscription3(initialTeardown) {
|
|
5991
5992
|
this.initialTeardown = initialTeardown;
|
|
@@ -6125,7 +6126,7 @@ function execFinalizer(finalizer) {
|
|
|
6125
6126
|
}
|
|
6126
6127
|
__name(execFinalizer, "execFinalizer");
|
|
6127
6128
|
|
|
6128
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6129
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js
|
|
6129
6130
|
var config = {
|
|
6130
6131
|
onUnhandledError: null,
|
|
6131
6132
|
onStoppedNotification: null,
|
|
@@ -6134,7 +6135,7 @@ var config = {
|
|
|
6134
6135
|
useDeprecatedNextContext: false
|
|
6135
6136
|
};
|
|
6136
6137
|
|
|
6137
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6138
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js
|
|
6138
6139
|
var timeoutProvider = {
|
|
6139
6140
|
setTimeout: function(handler, timeout) {
|
|
6140
6141
|
var args = [];
|
|
@@ -6154,7 +6155,7 @@ var timeoutProvider = {
|
|
|
6154
6155
|
delegate: void 0
|
|
6155
6156
|
};
|
|
6156
6157
|
|
|
6157
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6158
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
|
|
6158
6159
|
function reportUnhandledError(err) {
|
|
6159
6160
|
timeoutProvider.setTimeout(function() {
|
|
6160
6161
|
var onUnhandledError = config.onUnhandledError;
|
|
@@ -6167,12 +6168,12 @@ function reportUnhandledError(err) {
|
|
|
6167
6168
|
}
|
|
6168
6169
|
__name(reportUnhandledError, "reportUnhandledError");
|
|
6169
6170
|
|
|
6170
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6171
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js
|
|
6171
6172
|
function noop() {
|
|
6172
6173
|
}
|
|
6173
6174
|
__name(noop, "noop");
|
|
6174
6175
|
|
|
6175
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6176
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
|
|
6176
6177
|
var COMPLETE_NOTIFICATION = function() {
|
|
6177
6178
|
return createNotification("C", void 0, void 0);
|
|
6178
6179
|
}();
|
|
@@ -6193,7 +6194,7 @@ function createNotification(kind, value, error) {
|
|
|
6193
6194
|
}
|
|
6194
6195
|
__name(createNotification, "createNotification");
|
|
6195
6196
|
|
|
6196
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6197
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js
|
|
6197
6198
|
var context = null;
|
|
6198
6199
|
function errorContext(cb) {
|
|
6199
6200
|
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
@@ -6222,7 +6223,7 @@ function captureError(err) {
|
|
|
6222
6223
|
}
|
|
6223
6224
|
__name(captureError, "captureError");
|
|
6224
6225
|
|
|
6225
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6226
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js
|
|
6226
6227
|
var Subscriber = function(_super) {
|
|
6227
6228
|
__extends2(Subscriber3, _super);
|
|
6228
6229
|
function Subscriber3(destination) {
|
|
@@ -6394,18 +6395,18 @@ var EMPTY_OBSERVER = {
|
|
|
6394
6395
|
complete: noop
|
|
6395
6396
|
};
|
|
6396
6397
|
|
|
6397
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6398
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js
|
|
6398
6399
|
var observable = function() {
|
|
6399
6400
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
6400
6401
|
}();
|
|
6401
6402
|
|
|
6402
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6403
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js
|
|
6403
6404
|
function identity3(x) {
|
|
6404
6405
|
return x;
|
|
6405
6406
|
}
|
|
6406
6407
|
__name(identity3, "identity");
|
|
6407
6408
|
|
|
6408
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6409
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js
|
|
6409
6410
|
function pipeFromArray(fns) {
|
|
6410
6411
|
if (fns.length === 0) {
|
|
6411
6412
|
return identity3;
|
|
@@ -6421,7 +6422,7 @@ function pipeFromArray(fns) {
|
|
|
6421
6422
|
}
|
|
6422
6423
|
__name(pipeFromArray, "pipeFromArray");
|
|
6423
6424
|
|
|
6424
|
-
// ../../../node_modules/.pnpm/rxjs@7.8.
|
|
6425
|
+
// ../../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
6425
6426
|
var Observable = function() {
|
|
6426
6427
|
function Observable3(subscribe) {
|
|
6427
6428
|
if (subscribe) {
|
|
@@ -11563,7 +11564,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11563
11564
|
frontDoorBoostUri: mod.string().optional(),
|
|
11564
11565
|
createdAt: mod.string(),
|
|
11565
11566
|
updatedAt: mod.string(),
|
|
11566
|
-
expiresAt: mod.string().optional()
|
|
11567
|
+
expiresAt: mod.string().optional(),
|
|
11568
|
+
autoBoosts: mod.string().array().optional()
|
|
11567
11569
|
});
|
|
11568
11570
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11569
11571
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -47476,24 +47478,25 @@ var require_lodash22 = __commonJS2({
|
|
|
47476
47478
|
}
|
|
47477
47479
|
});
|
|
47478
47480
|
var require_browser_ponyfill = __commonJS2({
|
|
47479
|
-
"../../../node_modules/.pnpm/cross-fetch@3.
|
|
47480
|
-
var
|
|
47481
|
-
var
|
|
47481
|
+
"../../../node_modules/.pnpm/cross-fetch@3.2.0/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module) {
|
|
47482
|
+
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof global !== "undefined" && global;
|
|
47483
|
+
var __globalThis__ = function() {
|
|
47482
47484
|
function F() {
|
|
47483
47485
|
this.fetch = false;
|
|
47484
|
-
this.DOMException =
|
|
47486
|
+
this.DOMException = __global__.DOMException;
|
|
47485
47487
|
}
|
|
47486
47488
|
__name(F, "F");
|
|
47487
47489
|
__name3(F, "F");
|
|
47488
|
-
F.prototype =
|
|
47490
|
+
F.prototype = __global__;
|
|
47489
47491
|
return new F();
|
|
47490
47492
|
}();
|
|
47491
|
-
(function(
|
|
47493
|
+
(function(globalThis2) {
|
|
47492
47494
|
var irrelevant = function(exports2) {
|
|
47495
|
+
var g = typeof globalThis2 !== "undefined" && globalThis2 || typeof self !== "undefined" && self || typeof global !== "undefined" && global || {};
|
|
47493
47496
|
var support = {
|
|
47494
|
-
searchParams: "URLSearchParams" in
|
|
47495
|
-
iterable: "Symbol" in
|
|
47496
|
-
blob: "FileReader" in
|
|
47497
|
+
searchParams: "URLSearchParams" in g,
|
|
47498
|
+
iterable: "Symbol" in g && "iterator" in Symbol,
|
|
47499
|
+
blob: "FileReader" in g && "Blob" in g && function() {
|
|
47497
47500
|
try {
|
|
47498
47501
|
new Blob();
|
|
47499
47502
|
return true;
|
|
@@ -47501,8 +47504,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47501
47504
|
return false;
|
|
47502
47505
|
}
|
|
47503
47506
|
}(),
|
|
47504
|
-
formData: "FormData" in
|
|
47505
|
-
arrayBuffer: "ArrayBuffer" in
|
|
47507
|
+
formData: "FormData" in g,
|
|
47508
|
+
arrayBuffer: "ArrayBuffer" in g
|
|
47506
47509
|
};
|
|
47507
47510
|
function isDataView(obj) {
|
|
47508
47511
|
return obj && DataView.prototype.isPrototypeOf(obj);
|
|
@@ -47529,8 +47532,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47529
47532
|
if (typeof name32 !== "string") {
|
|
47530
47533
|
name32 = String(name32);
|
|
47531
47534
|
}
|
|
47532
|
-
if (/[^a-z0-9\-#$%&'*+.^_
|
|
47533
|
-
throw new TypeError(
|
|
47535
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name32) || name32 === "") {
|
|
47536
|
+
throw new TypeError('Invalid character in header field name: "' + name32 + '"');
|
|
47534
47537
|
}
|
|
47535
47538
|
return name32.toLowerCase();
|
|
47536
47539
|
}
|
|
@@ -47568,6 +47571,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47568
47571
|
}, this);
|
|
47569
47572
|
} else if (Array.isArray(headers)) {
|
|
47570
47573
|
headers.forEach(function(header) {
|
|
47574
|
+
if (header.length != 2) {
|
|
47575
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + header.length);
|
|
47576
|
+
}
|
|
47571
47577
|
this.append(header[0], header[1]);
|
|
47572
47578
|
}, this);
|
|
47573
47579
|
} else if (headers) {
|
|
@@ -47629,6 +47635,8 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47629
47635
|
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
47630
47636
|
}
|
|
47631
47637
|
function consumed(body) {
|
|
47638
|
+
if (body._noBody)
|
|
47639
|
+
return;
|
|
47632
47640
|
if (body.bodyUsed) {
|
|
47633
47641
|
return Promise.reject(new TypeError("Already read"));
|
|
47634
47642
|
}
|
|
@@ -47659,7 +47667,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47659
47667
|
function readBlobAsText(blob) {
|
|
47660
47668
|
var reader = new FileReader();
|
|
47661
47669
|
var promise = fileReaderReady(reader);
|
|
47662
|
-
|
|
47670
|
+
var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
|
|
47671
|
+
var encoding = match ? match[1] : "utf-8";
|
|
47672
|
+
reader.readAsText(blob, encoding);
|
|
47663
47673
|
return promise;
|
|
47664
47674
|
}
|
|
47665
47675
|
__name(readBlobAsText, "readBlobAsText");
|
|
@@ -47688,8 +47698,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47688
47698
|
function Body() {
|
|
47689
47699
|
this.bodyUsed = false;
|
|
47690
47700
|
this._initBody = function(body) {
|
|
47701
|
+
this.bodyUsed = this.bodyUsed;
|
|
47691
47702
|
this._bodyInit = body;
|
|
47692
47703
|
if (!body) {
|
|
47704
|
+
this._noBody = true;
|
|
47693
47705
|
this._bodyText = "";
|
|
47694
47706
|
} else if (typeof body === "string") {
|
|
47695
47707
|
this._bodyText = body;
|
|
@@ -47733,14 +47745,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47733
47745
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
47734
47746
|
}
|
|
47735
47747
|
};
|
|
47736
|
-
|
|
47737
|
-
|
|
47738
|
-
|
|
47748
|
+
}
|
|
47749
|
+
this.arrayBuffer = function() {
|
|
47750
|
+
if (this._bodyArrayBuffer) {
|
|
47751
|
+
var isConsumed = consumed(this);
|
|
47752
|
+
if (isConsumed) {
|
|
47753
|
+
return isConsumed;
|
|
47754
|
+
} else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
|
|
47755
|
+
return Promise.resolve(
|
|
47756
|
+
this._bodyArrayBuffer.buffer.slice(
|
|
47757
|
+
this._bodyArrayBuffer.byteOffset,
|
|
47758
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
47759
|
+
)
|
|
47760
|
+
);
|
|
47739
47761
|
} else {
|
|
47740
|
-
return
|
|
47762
|
+
return Promise.resolve(this._bodyArrayBuffer);
|
|
47741
47763
|
}
|
|
47742
|
-
}
|
|
47743
|
-
|
|
47764
|
+
} else if (support.blob) {
|
|
47765
|
+
return this.blob().then(readBlobAsArrayBuffer);
|
|
47766
|
+
} else {
|
|
47767
|
+
throw new Error("could not read as ArrayBuffer");
|
|
47768
|
+
}
|
|
47769
|
+
};
|
|
47744
47770
|
this.text = function() {
|
|
47745
47771
|
var rejected = consumed(this);
|
|
47746
47772
|
if (rejected) {
|
|
@@ -47768,7 +47794,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47768
47794
|
}
|
|
47769
47795
|
__name(Body, "Body");
|
|
47770
47796
|
__name3(Body, "Body");
|
|
47771
|
-
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
47797
|
+
var methods = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
47772
47798
|
function normalizeMethod(method) {
|
|
47773
47799
|
var upcased = method.toUpperCase();
|
|
47774
47800
|
return methods.indexOf(upcased) > -1 ? upcased : method;
|
|
@@ -47776,6 +47802,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47776
47802
|
__name(normalizeMethod, "normalizeMethod");
|
|
47777
47803
|
__name3(normalizeMethod, "normalizeMethod");
|
|
47778
47804
|
function Request(input, options) {
|
|
47805
|
+
if (!(this instanceof Request)) {
|
|
47806
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
47807
|
+
}
|
|
47779
47808
|
options = options || {};
|
|
47780
47809
|
var body = options.body;
|
|
47781
47810
|
if (input instanceof Request) {
|
|
@@ -47803,12 +47832,28 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47803
47832
|
}
|
|
47804
47833
|
this.method = normalizeMethod(options.method || this.method || "GET");
|
|
47805
47834
|
this.mode = options.mode || this.mode || null;
|
|
47806
|
-
this.signal = options.signal || this.signal
|
|
47835
|
+
this.signal = options.signal || this.signal || function() {
|
|
47836
|
+
if ("AbortController" in g) {
|
|
47837
|
+
var ctrl = new AbortController();
|
|
47838
|
+
return ctrl.signal;
|
|
47839
|
+
}
|
|
47840
|
+
}();
|
|
47807
47841
|
this.referrer = null;
|
|
47808
47842
|
if ((this.method === "GET" || this.method === "HEAD") && body) {
|
|
47809
47843
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
47810
47844
|
}
|
|
47811
47845
|
this._initBody(body);
|
|
47846
|
+
if (this.method === "GET" || this.method === "HEAD") {
|
|
47847
|
+
if (options.cache === "no-store" || options.cache === "no-cache") {
|
|
47848
|
+
var reParamSearch = /([?&])_=[^&]*/;
|
|
47849
|
+
if (reParamSearch.test(this.url)) {
|
|
47850
|
+
this.url = this.url.replace(reParamSearch, "$1_=" + new Date().getTime());
|
|
47851
|
+
} else {
|
|
47852
|
+
var reQueryString = /\?/;
|
|
47853
|
+
this.url += (reQueryString.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
|
|
47854
|
+
}
|
|
47855
|
+
}
|
|
47856
|
+
}
|
|
47812
47857
|
}
|
|
47813
47858
|
__name(Request, "Request");
|
|
47814
47859
|
__name3(Request, "Request");
|
|
@@ -47832,12 +47877,18 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47832
47877
|
function parseHeaders(rawHeaders) {
|
|
47833
47878
|
var headers = new Headers();
|
|
47834
47879
|
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
|
|
47835
|
-
preProcessedHeaders.split(
|
|
47880
|
+
preProcessedHeaders.split("\r").map(function(header) {
|
|
47881
|
+
return header.indexOf("\n") === 0 ? header.substr(1, header.length) : header;
|
|
47882
|
+
}).forEach(function(line) {
|
|
47836
47883
|
var parts = line.split(":");
|
|
47837
47884
|
var key2 = parts.shift().trim();
|
|
47838
47885
|
if (key2) {
|
|
47839
47886
|
var value = parts.join(":").trim();
|
|
47840
|
-
|
|
47887
|
+
try {
|
|
47888
|
+
headers.append(key2, value);
|
|
47889
|
+
} catch (error) {
|
|
47890
|
+
console.warn("Response " + error.message);
|
|
47891
|
+
}
|
|
47841
47892
|
}
|
|
47842
47893
|
});
|
|
47843
47894
|
return headers;
|
|
@@ -47846,13 +47897,19 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47846
47897
|
__name3(parseHeaders, "parseHeaders");
|
|
47847
47898
|
Body.call(Request.prototype);
|
|
47848
47899
|
function Response(bodyInit, options) {
|
|
47900
|
+
if (!(this instanceof Response)) {
|
|
47901
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
47902
|
+
}
|
|
47849
47903
|
if (!options) {
|
|
47850
47904
|
options = {};
|
|
47851
47905
|
}
|
|
47852
47906
|
this.type = "default";
|
|
47853
47907
|
this.status = options.status === void 0 ? 200 : options.status;
|
|
47908
|
+
if (this.status < 200 || this.status > 599) {
|
|
47909
|
+
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
47910
|
+
}
|
|
47854
47911
|
this.ok = this.status >= 200 && this.status < 300;
|
|
47855
|
-
this.statusText =
|
|
47912
|
+
this.statusText = options.statusText === void 0 ? "" : "" + options.statusText;
|
|
47856
47913
|
this.headers = new Headers(options.headers);
|
|
47857
47914
|
this.url = options.url || "";
|
|
47858
47915
|
this._initBody(bodyInit);
|
|
@@ -47869,7 +47926,9 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47869
47926
|
});
|
|
47870
47927
|
};
|
|
47871
47928
|
Response.error = function() {
|
|
47872
|
-
var response = new Response(null, { status:
|
|
47929
|
+
var response = new Response(null, { status: 200, statusText: "" });
|
|
47930
|
+
response.ok = false;
|
|
47931
|
+
response.status = 0;
|
|
47873
47932
|
response.type = "error";
|
|
47874
47933
|
return response;
|
|
47875
47934
|
};
|
|
@@ -47880,7 +47939,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47880
47939
|
}
|
|
47881
47940
|
return new Response(null, { status, headers: { location: url } });
|
|
47882
47941
|
};
|
|
47883
|
-
exports2.DOMException =
|
|
47942
|
+
exports2.DOMException = g.DOMException;
|
|
47884
47943
|
try {
|
|
47885
47944
|
new exports2.DOMException();
|
|
47886
47945
|
} catch (err) {
|
|
@@ -47907,35 +47966,73 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47907
47966
|
__name3(abortXhr, "abortXhr");
|
|
47908
47967
|
xhr.onload = function() {
|
|
47909
47968
|
var options = {
|
|
47910
|
-
status: xhr.status,
|
|
47911
47969
|
statusText: xhr.statusText,
|
|
47912
47970
|
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
|
|
47913
47971
|
};
|
|
47972
|
+
if (request.url.indexOf("file://") === 0 && (xhr.status < 200 || xhr.status > 599)) {
|
|
47973
|
+
options.status = 200;
|
|
47974
|
+
} else {
|
|
47975
|
+
options.status = xhr.status;
|
|
47976
|
+
}
|
|
47914
47977
|
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
|
|
47915
47978
|
var body = "response" in xhr ? xhr.response : xhr.responseText;
|
|
47916
|
-
|
|
47979
|
+
setTimeout(function() {
|
|
47980
|
+
resolve(new Response(body, options));
|
|
47981
|
+
}, 0);
|
|
47917
47982
|
};
|
|
47918
47983
|
xhr.onerror = function() {
|
|
47919
|
-
|
|
47984
|
+
setTimeout(function() {
|
|
47985
|
+
reject(new TypeError("Network request failed"));
|
|
47986
|
+
}, 0);
|
|
47920
47987
|
};
|
|
47921
47988
|
xhr.ontimeout = function() {
|
|
47922
|
-
|
|
47989
|
+
setTimeout(function() {
|
|
47990
|
+
reject(new TypeError("Network request timed out"));
|
|
47991
|
+
}, 0);
|
|
47923
47992
|
};
|
|
47924
47993
|
xhr.onabort = function() {
|
|
47925
|
-
|
|
47994
|
+
setTimeout(function() {
|
|
47995
|
+
reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
47996
|
+
}, 0);
|
|
47926
47997
|
};
|
|
47927
|
-
|
|
47998
|
+
function fixUrl(url) {
|
|
47999
|
+
try {
|
|
48000
|
+
return url === "" && g.location.href ? g.location.href : url;
|
|
48001
|
+
} catch (e2) {
|
|
48002
|
+
return url;
|
|
48003
|
+
}
|
|
48004
|
+
}
|
|
48005
|
+
__name(fixUrl, "fixUrl");
|
|
48006
|
+
__name3(fixUrl, "fixUrl");
|
|
48007
|
+
xhr.open(request.method, fixUrl(request.url), true);
|
|
47928
48008
|
if (request.credentials === "include") {
|
|
47929
48009
|
xhr.withCredentials = true;
|
|
47930
48010
|
} else if (request.credentials === "omit") {
|
|
47931
48011
|
xhr.withCredentials = false;
|
|
47932
48012
|
}
|
|
47933
|
-
if ("responseType" in xhr
|
|
47934
|
-
|
|
48013
|
+
if ("responseType" in xhr) {
|
|
48014
|
+
if (support.blob) {
|
|
48015
|
+
xhr.responseType = "blob";
|
|
48016
|
+
} else if (support.arrayBuffer) {
|
|
48017
|
+
xhr.responseType = "arraybuffer";
|
|
48018
|
+
}
|
|
48019
|
+
}
|
|
48020
|
+
if (init2 && typeof init2.headers === "object" && !(init2.headers instanceof Headers || g.Headers && init2.headers instanceof g.Headers)) {
|
|
48021
|
+
var names = [];
|
|
48022
|
+
Object.getOwnPropertyNames(init2.headers).forEach(function(name32) {
|
|
48023
|
+
names.push(normalizeName(name32));
|
|
48024
|
+
xhr.setRequestHeader(name32, normalizeValue(init2.headers[name32]));
|
|
48025
|
+
});
|
|
48026
|
+
request.headers.forEach(function(value, name32) {
|
|
48027
|
+
if (names.indexOf(name32) === -1) {
|
|
48028
|
+
xhr.setRequestHeader(name32, value);
|
|
48029
|
+
}
|
|
48030
|
+
});
|
|
48031
|
+
} else {
|
|
48032
|
+
request.headers.forEach(function(value, name32) {
|
|
48033
|
+
xhr.setRequestHeader(name32, value);
|
|
48034
|
+
});
|
|
47935
48035
|
}
|
|
47936
|
-
request.headers.forEach(function(value, name32) {
|
|
47937
|
-
xhr.setRequestHeader(name32, value);
|
|
47938
|
-
});
|
|
47939
48036
|
if (request.signal) {
|
|
47940
48037
|
request.signal.addEventListener("abort", abortXhr);
|
|
47941
48038
|
xhr.onreadystatechange = function() {
|
|
@@ -47950,11 +48047,11 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47950
48047
|
__name(fetch2, "fetch2");
|
|
47951
48048
|
__name3(fetch2, "fetch");
|
|
47952
48049
|
fetch2.polyfill = true;
|
|
47953
|
-
if (!
|
|
47954
|
-
|
|
47955
|
-
|
|
47956
|
-
|
|
47957
|
-
|
|
48050
|
+
if (!g.fetch) {
|
|
48051
|
+
g.fetch = fetch2;
|
|
48052
|
+
g.Headers = Headers;
|
|
48053
|
+
g.Request = Request;
|
|
48054
|
+
g.Response = Response;
|
|
47958
48055
|
}
|
|
47959
48056
|
exports2.Headers = Headers;
|
|
47960
48057
|
exports2.Request = Request;
|
|
@@ -47963,10 +48060,10 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47963
48060
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
47964
48061
|
return exports2;
|
|
47965
48062
|
}({});
|
|
47966
|
-
})(
|
|
47967
|
-
|
|
47968
|
-
delete
|
|
47969
|
-
var ctx =
|
|
48063
|
+
})(__globalThis__);
|
|
48064
|
+
__globalThis__.fetch.ponyfill = true;
|
|
48065
|
+
delete __globalThis__.fetch.polyfill;
|
|
48066
|
+
var ctx = __global__.fetch ? __global__ : __globalThis__;
|
|
47970
48067
|
exports = ctx.fetch;
|
|
47971
48068
|
exports.default = ctx.fetch;
|
|
47972
48069
|
exports.fetch = ctx.fetch;
|
|
@@ -47977,7 +48074,7 @@ var require_browser_ponyfill = __commonJS2({
|
|
|
47977
48074
|
}
|
|
47978
48075
|
});
|
|
47979
48076
|
var require_dataloader2 = __commonJS2({
|
|
47980
|
-
"../../../node_modules/.pnpm/dataloader@2.2.
|
|
48077
|
+
"../../../node_modules/.pnpm/dataloader@2.2.3/node_modules/dataloader/index.js"(exports, module) {
|
|
47981
48078
|
"use strict";
|
|
47982
48079
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
47983
48080
|
function DataLoader3(batchLoadFn, options) {
|
|
@@ -48001,8 +48098,9 @@ var require_dataloader2 = __commonJS2({
|
|
|
48001
48098
|
}
|
|
48002
48099
|
var batch = getCurrentBatch(this);
|
|
48003
48100
|
var cacheMap = this._cacheMap;
|
|
48004
|
-
var cacheKey
|
|
48101
|
+
var cacheKey;
|
|
48005
48102
|
if (cacheMap) {
|
|
48103
|
+
cacheKey = this._cacheKeyFn(key2);
|
|
48006
48104
|
var cachedPromise = cacheMap.get(cacheKey);
|
|
48007
48105
|
if (cachedPromise) {
|
|
48008
48106
|
var cacheHits = batch.cacheHits || (batch.cacheHits = []);
|
|
@@ -48127,11 +48225,11 @@ var require_dataloader2 = __commonJS2({
|
|
|
48127
48225
|
}
|
|
48128
48226
|
resolveCacheHits(batch);
|
|
48129
48227
|
for (var i2 = 0; i2 < batch.callbacks.length; i2++) {
|
|
48130
|
-
var
|
|
48131
|
-
if (
|
|
48132
|
-
batch.callbacks[i2].reject(
|
|
48228
|
+
var _value = values[i2];
|
|
48229
|
+
if (_value instanceof Error) {
|
|
48230
|
+
batch.callbacks[i2].reject(_value);
|
|
48133
48231
|
} else {
|
|
48134
|
-
batch.callbacks[i2].resolve(
|
|
48232
|
+
batch.callbacks[i2].resolve(_value);
|
|
48135
48233
|
}
|
|
48136
48234
|
}
|
|
48137
48235
|
})["catch"](function(error) {
|
|
@@ -53620,7 +53718,7 @@ function verifyTimeChecks(cacao, options) {
|
|
|
53620
53718
|
}
|
|
53621
53719
|
__name(verifyTimeChecks, "verifyTimeChecks");
|
|
53622
53720
|
__name3(verifyTimeChecks, "verifyTimeChecks");
|
|
53623
|
-
var version22 = "logger/5.
|
|
53721
|
+
var version22 = "logger/5.8.0";
|
|
53624
53722
|
var _permanentCensorErrors = false;
|
|
53625
53723
|
var _censorErrors = false;
|
|
53626
53724
|
var LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
|
|
@@ -53910,7 +54008,7 @@ var Logger = /* @__PURE__ */ __name(class {
|
|
|
53910
54008
|
__name3(Logger, "Logger");
|
|
53911
54009
|
Logger.errors = ErrorCode;
|
|
53912
54010
|
Logger.levels = LogLevel;
|
|
53913
|
-
var version3 = "bytes/5.
|
|
54011
|
+
var version3 = "bytes/5.8.0";
|
|
53914
54012
|
var logger = new Logger(version3);
|
|
53915
54013
|
function isHexable(value) {
|
|
53916
54014
|
return !!value.toHexString;
|
|
@@ -54253,7 +54351,7 @@ function splitSignature(signature2) {
|
|
|
54253
54351
|
__name(splitSignature, "splitSignature");
|
|
54254
54352
|
__name3(splitSignature, "splitSignature");
|
|
54255
54353
|
var import_bn = __toESM2(require_bn2());
|
|
54256
|
-
var version4 = "bignumber/5.
|
|
54354
|
+
var version4 = "bignumber/5.8.0";
|
|
54257
54355
|
var BN = import_bn.default.BN;
|
|
54258
54356
|
var logger2 = new Logger(version4);
|
|
54259
54357
|
function _base36To16(value) {
|
|
@@ -54267,7 +54365,7 @@ function keccak256(data) {
|
|
|
54267
54365
|
}
|
|
54268
54366
|
__name(keccak256, "keccak256");
|
|
54269
54367
|
__name3(keccak256, "keccak256");
|
|
54270
|
-
var version5 = "address/5.
|
|
54368
|
+
var version5 = "address/5.8.0";
|
|
54271
54369
|
var logger3 = new Logger(version5);
|
|
54272
54370
|
function getChecksumAddress(address) {
|
|
54273
54371
|
if (!isHexString(address, 20)) {
|
|
@@ -54356,7 +54454,7 @@ function getAddress(address) {
|
|
|
54356
54454
|
}
|
|
54357
54455
|
__name(getAddress, "getAddress");
|
|
54358
54456
|
__name3(getAddress, "getAddress");
|
|
54359
|
-
var version6 = "properties/5.
|
|
54457
|
+
var version6 = "properties/5.8.0";
|
|
54360
54458
|
var logger4 = new Logger(version6);
|
|
54361
54459
|
function defineReadOnly(object, name32, value) {
|
|
54362
54460
|
Object.defineProperty(object, name32, {
|
|
@@ -54367,7 +54465,7 @@ function defineReadOnly(object, name32, value) {
|
|
|
54367
54465
|
}
|
|
54368
54466
|
__name(defineReadOnly, "defineReadOnly");
|
|
54369
54467
|
__name3(defineReadOnly, "defineReadOnly");
|
|
54370
|
-
var version7 = "strings/5.
|
|
54468
|
+
var version7 = "strings/5.8.0";
|
|
54371
54469
|
var logger5 = new Logger(version7);
|
|
54372
54470
|
var UnicodeNormalizationForm;
|
|
54373
54471
|
(function(UnicodeNormalizationForm2) {
|
|
@@ -54572,10 +54670,13 @@ var utils_1$1 = createCommonjsModule(function(module, exports) {
|
|
|
54572
54670
|
utils.encode = utils_1.encode;
|
|
54573
54671
|
function getNAF2(num, w, bits) {
|
|
54574
54672
|
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
|
|
54575
|
-
|
|
54673
|
+
var i2;
|
|
54674
|
+
for (i2 = 0; i2 < naf.length; i2 += 1) {
|
|
54675
|
+
naf[i2] = 0;
|
|
54676
|
+
}
|
|
54576
54677
|
var ws = 1 << w + 1;
|
|
54577
54678
|
var k = num.clone();
|
|
54578
|
-
for (
|
|
54679
|
+
for (i2 = 0; i2 < naf.length; i2++) {
|
|
54579
54680
|
var z;
|
|
54580
54681
|
var mod22 = k.andln(ws - 1);
|
|
54581
54682
|
if (k.isOdd()) {
|
|
@@ -56040,8 +56141,8 @@ KeyPair.prototype.derive = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functi
|
|
|
56040
56141
|
KeyPair.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign2(msg, enc, options) {
|
|
56041
56142
|
return this.ec.sign(msg, this, enc, options);
|
|
56042
56143
|
}, "sign2"), "sign");
|
|
56043
|
-
KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2) {
|
|
56044
|
-
return this.ec.verify(msg, signature2, this);
|
|
56144
|
+
KeyPair.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify2(msg, signature2, options) {
|
|
56145
|
+
return this.ec.verify(msg, signature2, this, void 0, options);
|
|
56045
56146
|
}, "verify2"), "verify");
|
|
56046
56147
|
KeyPair.prototype.inspect = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function inspect3() {
|
|
56047
56148
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
@@ -56077,6 +56178,9 @@ function getLength(buf22, p) {
|
|
|
56077
56178
|
if (octetLen === 0 || octetLen > 4) {
|
|
56078
56179
|
return false;
|
|
56079
56180
|
}
|
|
56181
|
+
if (buf22[p.place] === 0) {
|
|
56182
|
+
return false;
|
|
56183
|
+
}
|
|
56080
56184
|
var val = 0;
|
|
56081
56185
|
for (var i2 = 0, off = p.place; i2 < octetLen; i2++, off++) {
|
|
56082
56186
|
val <<= 8;
|
|
@@ -56124,6 +56228,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56124
56228
|
if (rlen === false) {
|
|
56125
56229
|
return false;
|
|
56126
56230
|
}
|
|
56231
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56232
|
+
return false;
|
|
56233
|
+
}
|
|
56127
56234
|
var r2 = data.slice(p.place, rlen + p.place);
|
|
56128
56235
|
p.place += rlen;
|
|
56129
56236
|
if (data[p.place++] !== 2) {
|
|
@@ -56136,6 +56243,9 @@ Signature.prototype._importDER = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(
|
|
|
56136
56243
|
if (data.length !== slen + p.place) {
|
|
56137
56244
|
return false;
|
|
56138
56245
|
}
|
|
56246
|
+
if ((data[p.place] & 128) !== 0) {
|
|
56247
|
+
return false;
|
|
56248
|
+
}
|
|
56139
56249
|
var s2 = data.slice(p.place, slen + p.place);
|
|
56140
56250
|
if (r2[0] === 0) {
|
|
56141
56251
|
if (r2[1] & 128) {
|
|
@@ -56250,8 +56360,23 @@ EC.prototype.genKeyPair = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(functio
|
|
|
56250
56360
|
return this.keyFromPrivate(priv);
|
|
56251
56361
|
}
|
|
56252
56362
|
}, "genKeyPair"), "genKeyPair");
|
|
56253
|
-
EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly) {
|
|
56254
|
-
var
|
|
56363
|
+
EC.prototype._truncateToN = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function _truncateToN(msg, truncOnly, bitLength) {
|
|
56364
|
+
var byteLength;
|
|
56365
|
+
if (import_bn2.default.isBN(msg) || typeof msg === "number") {
|
|
56366
|
+
msg = new import_bn2.default(msg, 16);
|
|
56367
|
+
byteLength = msg.byteLength();
|
|
56368
|
+
} else if (typeof msg === "object") {
|
|
56369
|
+
byteLength = msg.length;
|
|
56370
|
+
msg = new import_bn2.default(msg, 16);
|
|
56371
|
+
} else {
|
|
56372
|
+
var str = msg.toString();
|
|
56373
|
+
byteLength = str.length + 1 >>> 1;
|
|
56374
|
+
msg = new import_bn2.default(str, 16);
|
|
56375
|
+
}
|
|
56376
|
+
if (typeof bitLength !== "number") {
|
|
56377
|
+
bitLength = byteLength * 8;
|
|
56378
|
+
}
|
|
56379
|
+
var delta = bitLength - this.n.bitLength();
|
|
56255
56380
|
if (delta > 0)
|
|
56256
56381
|
msg = msg.ushrn(delta);
|
|
56257
56382
|
if (!truncOnly && msg.cmp(this.n) >= 0)
|
|
@@ -56266,11 +56391,22 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56266
56391
|
}
|
|
56267
56392
|
if (!options)
|
|
56268
56393
|
options = {};
|
|
56394
|
+
if (typeof msg !== "string" && typeof msg !== "number" && !import_bn2.default.isBN(msg)) {
|
|
56395
|
+
assert$5(
|
|
56396
|
+
typeof msg === "object" && msg && typeof msg.length === "number",
|
|
56397
|
+
"Expected message to be an array-like, a hex string, or a BN instance"
|
|
56398
|
+
);
|
|
56399
|
+
assert$5(msg.length >>> 0 === msg.length);
|
|
56400
|
+
for (var i2 = 0; i2 < msg.length; i2++)
|
|
56401
|
+
assert$5((msg[i2] & 255) === msg[i2]);
|
|
56402
|
+
}
|
|
56269
56403
|
key2 = this.keyFromPrivate(key2, enc);
|
|
56270
|
-
msg = this._truncateToN(
|
|
56404
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
56405
|
+
assert$5(!msg.isNeg(), "Can not sign a negative message");
|
|
56271
56406
|
var bytes = this.n.byteLength();
|
|
56272
56407
|
var bkey = key2.getPrivate().toArray("be", bytes);
|
|
56273
56408
|
var nonce = msg.toArray("be", bytes);
|
|
56409
|
+
assert$5(new import_bn2.default(nonce).eq(msg), "Can not sign message");
|
|
56274
56410
|
var drbg = new hmacDrbg({
|
|
56275
56411
|
hash: this.hash,
|
|
56276
56412
|
entropy: bkey,
|
|
@@ -56303,8 +56439,10 @@ EC.prototype.sign = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function sign
|
|
|
56303
56439
|
return new signature({ r: r2, s: s2, recoveryParam });
|
|
56304
56440
|
}
|
|
56305
56441
|
}, "sign3"), "sign");
|
|
56306
|
-
EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc) {
|
|
56307
|
-
|
|
56442
|
+
EC.prototype.verify = /* @__PURE__ */ __name3(/* @__PURE__ */ __name(function verify3(msg, signature$1, key2, enc, options) {
|
|
56443
|
+
if (!options)
|
|
56444
|
+
options = {};
|
|
56445
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
56308
56446
|
key2 = this.keyFromPublic(key2, enc);
|
|
56309
56447
|
signature$1 = new signature(signature$1, "hex");
|
|
56310
56448
|
var r2 = signature$1.r;
|
|
@@ -56367,7 +56505,7 @@ EC.prototype.getKeyRecoveryParam = function(e2, signature$1, Q, enc) {
|
|
|
56367
56505
|
var elliptic_1 = createCommonjsModule(function(module, exports) {
|
|
56368
56506
|
"use strict";
|
|
56369
56507
|
var elliptic = exports;
|
|
56370
|
-
elliptic.version = { version: "6.
|
|
56508
|
+
elliptic.version = { version: "6.6.1" }.version;
|
|
56371
56509
|
elliptic.utils = utils_1$1;
|
|
56372
56510
|
elliptic.rand = function() {
|
|
56373
56511
|
throw new Error("unsupported");
|
|
@@ -56378,7 +56516,7 @@ var elliptic_1 = createCommonjsModule(function(module, exports) {
|
|
|
56378
56516
|
elliptic.eddsa = null;
|
|
56379
56517
|
});
|
|
56380
56518
|
var EC$1 = elliptic_1.ec;
|
|
56381
|
-
var version8 = "signing-key/5.
|
|
56519
|
+
var version8 = "signing-key/5.8.0";
|
|
56382
56520
|
var logger6 = new Logger(version8);
|
|
56383
56521
|
var _curve = null;
|
|
56384
56522
|
function getCurve() {
|
|
@@ -56459,7 +56597,7 @@ function computePublicKey(key2, compressed) {
|
|
|
56459
56597
|
}
|
|
56460
56598
|
__name(computePublicKey, "computePublicKey");
|
|
56461
56599
|
__name3(computePublicKey, "computePublicKey");
|
|
56462
|
-
var version9 = "transactions/5.
|
|
56600
|
+
var version9 = "transactions/5.8.0";
|
|
56463
56601
|
var logger7 = new Logger(version9);
|
|
56464
56602
|
var TransactionTypes;
|
|
56465
56603
|
(function(TransactionTypes2) {
|
|
@@ -56478,7 +56616,7 @@ function recoverAddress(digest22, signature2) {
|
|
|
56478
56616
|
}
|
|
56479
56617
|
__name(recoverAddress, "recoverAddress");
|
|
56480
56618
|
__name3(recoverAddress, "recoverAddress");
|
|
56481
|
-
var version10 = "wallet/5.
|
|
56619
|
+
var version10 = "wallet/5.8.0";
|
|
56482
56620
|
var logger8 = new Logger(version10);
|
|
56483
56621
|
function verifyMessage(message, signature2) {
|
|
56484
56622
|
return recoverAddress(hashMessage(message), signature2);
|
|
@@ -66442,7 +66580,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
66442
66580
|
frontDoorBoostUri: mod2.string().optional(),
|
|
66443
66581
|
createdAt: mod2.string(),
|
|
66444
66582
|
updatedAt: mod2.string(),
|
|
66445
|
-
expiresAt: mod2.string().optional()
|
|
66583
|
+
expiresAt: mod2.string().optional(),
|
|
66584
|
+
autoBoosts: mod2.string().array().optional()
|
|
66446
66585
|
});
|
|
66447
66586
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
66448
66587
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -66621,8 +66760,23 @@ var BackwardsCompatCredentialsListValidator = mod.object({
|
|
|
66621
66760
|
credentials: CredentialRecordValidator.or(BackwardsCompatIDXCredentialValidator).array()
|
|
66622
66761
|
}).strict();
|
|
66623
66762
|
|
|
66763
|
+
// src/defaults.ts
|
|
66764
|
+
var DEFAULT_IDX_ARGS = {
|
|
66765
|
+
modelData: {
|
|
66766
|
+
definitions: {
|
|
66767
|
+
MyVerifiableCredentials: "kjzl6cwe1jw14am5tu5hh412s19o4zm8aq3g2lpd6s4paxj2nly2lj4drp3pun2"
|
|
66768
|
+
},
|
|
66769
|
+
schemas: {
|
|
66770
|
+
AchievementVerifiableCredential: "ceramic://k3y52l7qbv1frylibw2725v8gem3hxs1onoh6pvux0szdduugczh0hddxo6qsd6o0",
|
|
66771
|
+
VerifiableCredentialsList: "ceramic://k3y52l7qbv1frxkcwfpyauky3fyl4n44izridy3blvjjzgftis40sk9w8g3remghs"
|
|
66772
|
+
},
|
|
66773
|
+
tiles: {}
|
|
66774
|
+
},
|
|
66775
|
+
credentialAlias: "MyVerifiableCredentials"
|
|
66776
|
+
};
|
|
66777
|
+
|
|
66624
66778
|
// src/idx.ts
|
|
66625
|
-
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias }) => {
|
|
66779
|
+
var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credentialAlias } = DEFAULT_IDX_ARGS) => {
|
|
66626
66780
|
const ceramic = learnCard.invoke.getCeramicClient();
|
|
66627
66781
|
const dataStore = new DIDDataStore({ ceramic, model: modelData });
|
|
66628
66782
|
const getCredentialsListFromIdx = /* @__PURE__ */ __name(async (alias = credentialAlias) => {
|