@learncard/react 2.3.8 → 2.3.9
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/cjs/{VCCard-319ad765.js → VCCard-d11c11b7.js} +37 -490
- package/dist/cjs/VCCard-d11c11b7.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index14.js +1 -1
- package/dist/cjs/index5.js +1 -1
- package/dist/esm/{VCCard-2657bab7.js → VCCard-8fd71fba.js} +37 -490
- package/dist/{cjs/VCCard-319ad765.js.map → esm/VCCard-8fd71fba.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index14.js +1 -1
- package/dist/esm/index5.js +1 -1
- package/package.json +2 -2
- package/dist/esm/VCCard-2657bab7.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var MiniVCThumbnail = require('./MiniVCThumbnail-ea29644e.js');
|
|
|
12
12
|
var Notification = require('./Notification-cf0cdc81.js');
|
|
13
13
|
var QRCodeCard = require('./QRCodeCard-9f777402.js');
|
|
14
14
|
var RoundedSquare = require('./RoundedSquare-a577d49f.js');
|
|
15
|
-
var VCCard = require('./VCCard-
|
|
15
|
+
var VCCard = require('./VCCard-d11c11b7.js');
|
|
16
16
|
var VCDisplayBackFace = require('./VCDisplayBackFace-d0d79b7a.js');
|
|
17
17
|
var VCDisplayCard = require('./VCDisplayCard-36a39706.js');
|
|
18
18
|
var VCThumbnail = require('./VCThumbnail-b45b8244.js');
|
package/dist/cjs/index14.js
CHANGED
package/dist/cjs/index5.js
CHANGED
|
@@ -12,7 +12,7 @@ var MiniVCThumbnail = require('./MiniVCThumbnail-ea29644e.js');
|
|
|
12
12
|
var Notification = require('./Notification-cf0cdc81.js');
|
|
13
13
|
var QRCodeCard = require('./QRCodeCard-9f777402.js');
|
|
14
14
|
var RoundedSquare = require('./RoundedSquare-a577d49f.js');
|
|
15
|
-
var VCCard = require('./VCCard-
|
|
15
|
+
var VCCard = require('./VCCard-d11c11b7.js');
|
|
16
16
|
var VCDisplayBackFace = require('./VCDisplayBackFace-d0d79b7a.js');
|
|
17
17
|
var VCDisplayCard = require('./VCDisplayCard-36a39706.js');
|
|
18
18
|
var VCThumbnail = require('./VCThumbnail-b45b8244.js');
|
|
@@ -79812,7 +79812,7 @@ const Readable = Stream$1.Readable;
|
|
|
79812
79812
|
const BUFFER = Symbol('buffer');
|
|
79813
79813
|
const TYPE = Symbol('type');
|
|
79814
79814
|
|
|
79815
|
-
class Blob
|
|
79815
|
+
class Blob {
|
|
79816
79816
|
constructor() {
|
|
79817
79817
|
this[TYPE] = '';
|
|
79818
79818
|
|
|
@@ -79834,7 +79834,7 @@ class Blob$1 {
|
|
|
79834
79834
|
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
|
79835
79835
|
} else if (element instanceof ArrayBuffer) {
|
|
79836
79836
|
buffer = Buffer.from(element);
|
|
79837
|
-
} else if (element instanceof Blob
|
|
79837
|
+
} else if (element instanceof Blob) {
|
|
79838
79838
|
buffer = element[BUFFER];
|
|
79839
79839
|
} else {
|
|
79840
79840
|
buffer = Buffer.from(typeof element === 'string' ? element : String(element));
|
|
@@ -79899,19 +79899,19 @@ class Blob$1 {
|
|
|
79899
79899
|
|
|
79900
79900
|
const buffer = this[BUFFER];
|
|
79901
79901
|
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
|
79902
|
-
const blob = new Blob
|
|
79902
|
+
const blob = new Blob([], { type: arguments[2] });
|
|
79903
79903
|
blob[BUFFER] = slicedBuffer;
|
|
79904
79904
|
return blob;
|
|
79905
79905
|
}
|
|
79906
79906
|
}
|
|
79907
79907
|
|
|
79908
|
-
Object.defineProperties(Blob
|
|
79908
|
+
Object.defineProperties(Blob.prototype, {
|
|
79909
79909
|
size: { enumerable: true },
|
|
79910
79910
|
type: { enumerable: true },
|
|
79911
79911
|
slice: { enumerable: true }
|
|
79912
79912
|
});
|
|
79913
79913
|
|
|
79914
|
-
Object.defineProperty(Blob
|
|
79914
|
+
Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
|
|
79915
79915
|
value: 'Blob',
|
|
79916
79916
|
writable: false,
|
|
79917
79917
|
enumerable: false,
|
|
@@ -80043,7 +80043,7 @@ Body.prototype = {
|
|
|
80043
80043
|
return consumeBody.call(this).then(function (buf) {
|
|
80044
80044
|
return Object.assign(
|
|
80045
80045
|
// Prevent copying
|
|
80046
|
-
new Blob
|
|
80046
|
+
new Blob([], {
|
|
80047
80047
|
type: ct.toLowerCase()
|
|
80048
80048
|
}), {
|
|
80049
80049
|
[BUFFER]: buf
|
|
@@ -90199,6 +90199,35 @@ class Crypto extends Crypto$1 {
|
|
|
90199
90199
|
|
|
90200
90200
|
var crypto2 = new Crypto();
|
|
90201
90201
|
|
|
90202
|
+
var nodePonyfill = {exports: {}};
|
|
90203
|
+
|
|
90204
|
+
(function (module, exports) {
|
|
90205
|
+
const nodeFetch = require$$0;
|
|
90206
|
+
const realFetch = nodeFetch.default || nodeFetch;
|
|
90207
|
+
|
|
90208
|
+
const fetch = function (url, options) {
|
|
90209
|
+
// Support schemaless URIs on the server for parity with the browser.
|
|
90210
|
+
// Ex: //github.com/ -> https://github.com/
|
|
90211
|
+
if (/^\/\//.test(url)) {
|
|
90212
|
+
url = 'https:' + url;
|
|
90213
|
+
}
|
|
90214
|
+
return realFetch.call(this, url, options)
|
|
90215
|
+
};
|
|
90216
|
+
|
|
90217
|
+
fetch.ponyfill = true;
|
|
90218
|
+
|
|
90219
|
+
module.exports = exports = fetch;
|
|
90220
|
+
exports.fetch = fetch;
|
|
90221
|
+
exports.Headers = nodeFetch.Headers;
|
|
90222
|
+
exports.Request = nodeFetch.Request;
|
|
90223
|
+
exports.Response = nodeFetch.Response;
|
|
90224
|
+
|
|
90225
|
+
// Needed for TypeScript consumers without esModuleInterop.
|
|
90226
|
+
exports.default = fetch;
|
|
90227
|
+
} (nodePonyfill, nodePonyfill.exports));
|
|
90228
|
+
|
|
90229
|
+
var fetch2 = nodePonyfill.exports;
|
|
90230
|
+
|
|
90202
90231
|
var __create = Object.create;
|
|
90203
90232
|
var __defProp = Object.defineProperty;
|
|
90204
90233
|
var __defProps = Object.defineProperties;
|
|
@@ -119337,487 +119366,6 @@ var require_tslib = __commonJS({
|
|
|
119337
119366
|
});
|
|
119338
119367
|
}
|
|
119339
119368
|
});
|
|
119340
|
-
var require_browser_ponyfill = __commonJS({
|
|
119341
|
-
"../../node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js"(exports, module) {
|
|
119342
|
-
var global2 = typeof self !== "undefined" ? self : exports;
|
|
119343
|
-
var __self__ = function() {
|
|
119344
|
-
function F() {
|
|
119345
|
-
this.fetch = false;
|
|
119346
|
-
this.DOMException = global2.DOMException;
|
|
119347
|
-
}
|
|
119348
|
-
__name(F, "F");
|
|
119349
|
-
F.prototype = global2;
|
|
119350
|
-
return new F();
|
|
119351
|
-
}();
|
|
119352
|
-
(function(self2) {
|
|
119353
|
-
(function(exports2) {
|
|
119354
|
-
var support = {
|
|
119355
|
-
searchParams: "URLSearchParams" in self2,
|
|
119356
|
-
iterable: "Symbol" in self2 && "iterator" in Symbol,
|
|
119357
|
-
blob: "FileReader" in self2 && "Blob" in self2 && function() {
|
|
119358
|
-
try {
|
|
119359
|
-
new Blob();
|
|
119360
|
-
return true;
|
|
119361
|
-
} catch (e) {
|
|
119362
|
-
return false;
|
|
119363
|
-
}
|
|
119364
|
-
}(),
|
|
119365
|
-
formData: "FormData" in self2,
|
|
119366
|
-
arrayBuffer: "ArrayBuffer" in self2
|
|
119367
|
-
};
|
|
119368
|
-
function isDataView(obj) {
|
|
119369
|
-
return obj && DataView.prototype.isPrototypeOf(obj);
|
|
119370
|
-
}
|
|
119371
|
-
__name(isDataView, "isDataView");
|
|
119372
|
-
if (support.arrayBuffer) {
|
|
119373
|
-
var viewClasses = [
|
|
119374
|
-
"[object Int8Array]",
|
|
119375
|
-
"[object Uint8Array]",
|
|
119376
|
-
"[object Uint8ClampedArray]",
|
|
119377
|
-
"[object Int16Array]",
|
|
119378
|
-
"[object Uint16Array]",
|
|
119379
|
-
"[object Int32Array]",
|
|
119380
|
-
"[object Uint32Array]",
|
|
119381
|
-
"[object Float32Array]",
|
|
119382
|
-
"[object Float64Array]"
|
|
119383
|
-
];
|
|
119384
|
-
var isArrayBufferView = ArrayBuffer.isView || function(obj) {
|
|
119385
|
-
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1;
|
|
119386
|
-
};
|
|
119387
|
-
}
|
|
119388
|
-
function normalizeName(name5) {
|
|
119389
|
-
if (typeof name5 !== "string") {
|
|
119390
|
-
name5 = String(name5);
|
|
119391
|
-
}
|
|
119392
|
-
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name5)) {
|
|
119393
|
-
throw new TypeError("Invalid character in header field name");
|
|
119394
|
-
}
|
|
119395
|
-
return name5.toLowerCase();
|
|
119396
|
-
}
|
|
119397
|
-
__name(normalizeName, "normalizeName");
|
|
119398
|
-
function normalizeValue(value) {
|
|
119399
|
-
if (typeof value !== "string") {
|
|
119400
|
-
value = String(value);
|
|
119401
|
-
}
|
|
119402
|
-
return value;
|
|
119403
|
-
}
|
|
119404
|
-
__name(normalizeValue, "normalizeValue");
|
|
119405
|
-
function iteratorFor(items) {
|
|
119406
|
-
var iterator2 = {
|
|
119407
|
-
next: function() {
|
|
119408
|
-
var value = items.shift();
|
|
119409
|
-
return { done: value === void 0, value };
|
|
119410
|
-
}
|
|
119411
|
-
};
|
|
119412
|
-
if (support.iterable) {
|
|
119413
|
-
iterator2[Symbol.iterator] = function() {
|
|
119414
|
-
return iterator2;
|
|
119415
|
-
};
|
|
119416
|
-
}
|
|
119417
|
-
return iterator2;
|
|
119418
|
-
}
|
|
119419
|
-
__name(iteratorFor, "iteratorFor");
|
|
119420
|
-
function Headers2(headers) {
|
|
119421
|
-
this.map = {};
|
|
119422
|
-
if (headers instanceof Headers2) {
|
|
119423
|
-
headers.forEach(function(value, name5) {
|
|
119424
|
-
this.append(name5, value);
|
|
119425
|
-
}, this);
|
|
119426
|
-
} else if (Array.isArray(headers)) {
|
|
119427
|
-
headers.forEach(function(header) {
|
|
119428
|
-
this.append(header[0], header[1]);
|
|
119429
|
-
}, this);
|
|
119430
|
-
} else if (headers) {
|
|
119431
|
-
Object.getOwnPropertyNames(headers).forEach(function(name5) {
|
|
119432
|
-
this.append(name5, headers[name5]);
|
|
119433
|
-
}, this);
|
|
119434
|
-
}
|
|
119435
|
-
}
|
|
119436
|
-
__name(Headers2, "Headers");
|
|
119437
|
-
Headers2.prototype.append = function(name5, value) {
|
|
119438
|
-
name5 = normalizeName(name5);
|
|
119439
|
-
value = normalizeValue(value);
|
|
119440
|
-
var oldValue = this.map[name5];
|
|
119441
|
-
this.map[name5] = oldValue ? oldValue + ", " + value : value;
|
|
119442
|
-
};
|
|
119443
|
-
Headers2.prototype["delete"] = function(name5) {
|
|
119444
|
-
delete this.map[normalizeName(name5)];
|
|
119445
|
-
};
|
|
119446
|
-
Headers2.prototype.get = function(name5) {
|
|
119447
|
-
name5 = normalizeName(name5);
|
|
119448
|
-
return this.has(name5) ? this.map[name5] : null;
|
|
119449
|
-
};
|
|
119450
|
-
Headers2.prototype.has = function(name5) {
|
|
119451
|
-
return this.map.hasOwnProperty(normalizeName(name5));
|
|
119452
|
-
};
|
|
119453
|
-
Headers2.prototype.set = function(name5, value) {
|
|
119454
|
-
this.map[normalizeName(name5)] = normalizeValue(value);
|
|
119455
|
-
};
|
|
119456
|
-
Headers2.prototype.forEach = function(callback, thisArg) {
|
|
119457
|
-
for (var name5 in this.map) {
|
|
119458
|
-
if (this.map.hasOwnProperty(name5)) {
|
|
119459
|
-
callback.call(thisArg, this.map[name5], name5, this);
|
|
119460
|
-
}
|
|
119461
|
-
}
|
|
119462
|
-
};
|
|
119463
|
-
Headers2.prototype.keys = function() {
|
|
119464
|
-
var items = [];
|
|
119465
|
-
this.forEach(function(value, name5) {
|
|
119466
|
-
items.push(name5);
|
|
119467
|
-
});
|
|
119468
|
-
return iteratorFor(items);
|
|
119469
|
-
};
|
|
119470
|
-
Headers2.prototype.values = function() {
|
|
119471
|
-
var items = [];
|
|
119472
|
-
this.forEach(function(value) {
|
|
119473
|
-
items.push(value);
|
|
119474
|
-
});
|
|
119475
|
-
return iteratorFor(items);
|
|
119476
|
-
};
|
|
119477
|
-
Headers2.prototype.entries = function() {
|
|
119478
|
-
var items = [];
|
|
119479
|
-
this.forEach(function(value, name5) {
|
|
119480
|
-
items.push([name5, value]);
|
|
119481
|
-
});
|
|
119482
|
-
return iteratorFor(items);
|
|
119483
|
-
};
|
|
119484
|
-
if (support.iterable) {
|
|
119485
|
-
Headers2.prototype[Symbol.iterator] = Headers2.prototype.entries;
|
|
119486
|
-
}
|
|
119487
|
-
function consumed(body) {
|
|
119488
|
-
if (body.bodyUsed) {
|
|
119489
|
-
return Promise.reject(new TypeError("Already read"));
|
|
119490
|
-
}
|
|
119491
|
-
body.bodyUsed = true;
|
|
119492
|
-
}
|
|
119493
|
-
__name(consumed, "consumed");
|
|
119494
|
-
function fileReaderReady(reader) {
|
|
119495
|
-
return new Promise(function(resolve, reject) {
|
|
119496
|
-
reader.onload = function() {
|
|
119497
|
-
resolve(reader.result);
|
|
119498
|
-
};
|
|
119499
|
-
reader.onerror = function() {
|
|
119500
|
-
reject(reader.error);
|
|
119501
|
-
};
|
|
119502
|
-
});
|
|
119503
|
-
}
|
|
119504
|
-
__name(fileReaderReady, "fileReaderReady");
|
|
119505
|
-
function readBlobAsArrayBuffer(blob) {
|
|
119506
|
-
var reader = new FileReader();
|
|
119507
|
-
var promise = fileReaderReady(reader);
|
|
119508
|
-
reader.readAsArrayBuffer(blob);
|
|
119509
|
-
return promise;
|
|
119510
|
-
}
|
|
119511
|
-
__name(readBlobAsArrayBuffer, "readBlobAsArrayBuffer");
|
|
119512
|
-
function readBlobAsText(blob) {
|
|
119513
|
-
var reader = new FileReader();
|
|
119514
|
-
var promise = fileReaderReady(reader);
|
|
119515
|
-
reader.readAsText(blob);
|
|
119516
|
-
return promise;
|
|
119517
|
-
}
|
|
119518
|
-
__name(readBlobAsText, "readBlobAsText");
|
|
119519
|
-
function readArrayBufferAsText(buf2) {
|
|
119520
|
-
var view = new Uint8Array(buf2);
|
|
119521
|
-
var chars = new Array(view.length);
|
|
119522
|
-
for (var i = 0; i < view.length; i++) {
|
|
119523
|
-
chars[i] = String.fromCharCode(view[i]);
|
|
119524
|
-
}
|
|
119525
|
-
return chars.join("");
|
|
119526
|
-
}
|
|
119527
|
-
__name(readArrayBufferAsText, "readArrayBufferAsText");
|
|
119528
|
-
function bufferClone(buf2) {
|
|
119529
|
-
if (buf2.slice) {
|
|
119530
|
-
return buf2.slice(0);
|
|
119531
|
-
} else {
|
|
119532
|
-
var view = new Uint8Array(buf2.byteLength);
|
|
119533
|
-
view.set(new Uint8Array(buf2));
|
|
119534
|
-
return view.buffer;
|
|
119535
|
-
}
|
|
119536
|
-
}
|
|
119537
|
-
__name(bufferClone, "bufferClone");
|
|
119538
|
-
function Body() {
|
|
119539
|
-
this.bodyUsed = false;
|
|
119540
|
-
this._initBody = function(body) {
|
|
119541
|
-
this._bodyInit = body;
|
|
119542
|
-
if (!body) {
|
|
119543
|
-
this._bodyText = "";
|
|
119544
|
-
} else if (typeof body === "string") {
|
|
119545
|
-
this._bodyText = body;
|
|
119546
|
-
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
119547
|
-
this._bodyBlob = body;
|
|
119548
|
-
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
119549
|
-
this._bodyFormData = body;
|
|
119550
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
119551
|
-
this._bodyText = body.toString();
|
|
119552
|
-
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
119553
|
-
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
119554
|
-
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
119555
|
-
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
119556
|
-
this._bodyArrayBuffer = bufferClone(body);
|
|
119557
|
-
} else {
|
|
119558
|
-
this._bodyText = body = Object.prototype.toString.call(body);
|
|
119559
|
-
}
|
|
119560
|
-
if (!this.headers.get("content-type")) {
|
|
119561
|
-
if (typeof body === "string") {
|
|
119562
|
-
this.headers.set("content-type", "text/plain;charset=UTF-8");
|
|
119563
|
-
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
119564
|
-
this.headers.set("content-type", this._bodyBlob.type);
|
|
119565
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
119566
|
-
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8");
|
|
119567
|
-
}
|
|
119568
|
-
}
|
|
119569
|
-
};
|
|
119570
|
-
if (support.blob) {
|
|
119571
|
-
this.blob = function() {
|
|
119572
|
-
var rejected = consumed(this);
|
|
119573
|
-
if (rejected) {
|
|
119574
|
-
return rejected;
|
|
119575
|
-
}
|
|
119576
|
-
if (this._bodyBlob) {
|
|
119577
|
-
return Promise.resolve(this._bodyBlob);
|
|
119578
|
-
} else if (this._bodyArrayBuffer) {
|
|
119579
|
-
return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
119580
|
-
} else if (this._bodyFormData) {
|
|
119581
|
-
throw new Error("could not read FormData body as blob");
|
|
119582
|
-
} else {
|
|
119583
|
-
return Promise.resolve(new Blob([this._bodyText]));
|
|
119584
|
-
}
|
|
119585
|
-
};
|
|
119586
|
-
this.arrayBuffer = function() {
|
|
119587
|
-
if (this._bodyArrayBuffer) {
|
|
119588
|
-
return consumed(this) || Promise.resolve(this._bodyArrayBuffer);
|
|
119589
|
-
} else {
|
|
119590
|
-
return this.blob().then(readBlobAsArrayBuffer);
|
|
119591
|
-
}
|
|
119592
|
-
};
|
|
119593
|
-
}
|
|
119594
|
-
this.text = function() {
|
|
119595
|
-
var rejected = consumed(this);
|
|
119596
|
-
if (rejected) {
|
|
119597
|
-
return rejected;
|
|
119598
|
-
}
|
|
119599
|
-
if (this._bodyBlob) {
|
|
119600
|
-
return readBlobAsText(this._bodyBlob);
|
|
119601
|
-
} else if (this._bodyArrayBuffer) {
|
|
119602
|
-
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));
|
|
119603
|
-
} else if (this._bodyFormData) {
|
|
119604
|
-
throw new Error("could not read FormData body as text");
|
|
119605
|
-
} else {
|
|
119606
|
-
return Promise.resolve(this._bodyText);
|
|
119607
|
-
}
|
|
119608
|
-
};
|
|
119609
|
-
if (support.formData) {
|
|
119610
|
-
this.formData = function() {
|
|
119611
|
-
return this.text().then(decode12);
|
|
119612
|
-
};
|
|
119613
|
-
}
|
|
119614
|
-
this.json = function() {
|
|
119615
|
-
return this.text().then(JSON.parse);
|
|
119616
|
-
};
|
|
119617
|
-
return this;
|
|
119618
|
-
}
|
|
119619
|
-
__name(Body, "Body");
|
|
119620
|
-
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
119621
|
-
function normalizeMethod(method) {
|
|
119622
|
-
var upcased = method.toUpperCase();
|
|
119623
|
-
return methods.indexOf(upcased) > -1 ? upcased : method;
|
|
119624
|
-
}
|
|
119625
|
-
__name(normalizeMethod, "normalizeMethod");
|
|
119626
|
-
function Request2(input, options) {
|
|
119627
|
-
options = options || {};
|
|
119628
|
-
var body = options.body;
|
|
119629
|
-
if (input instanceof Request2) {
|
|
119630
|
-
if (input.bodyUsed) {
|
|
119631
|
-
throw new TypeError("Already read");
|
|
119632
|
-
}
|
|
119633
|
-
this.url = input.url;
|
|
119634
|
-
this.credentials = input.credentials;
|
|
119635
|
-
if (!options.headers) {
|
|
119636
|
-
this.headers = new Headers2(input.headers);
|
|
119637
|
-
}
|
|
119638
|
-
this.method = input.method;
|
|
119639
|
-
this.mode = input.mode;
|
|
119640
|
-
this.signal = input.signal;
|
|
119641
|
-
if (!body && input._bodyInit != null) {
|
|
119642
|
-
body = input._bodyInit;
|
|
119643
|
-
input.bodyUsed = true;
|
|
119644
|
-
}
|
|
119645
|
-
} else {
|
|
119646
|
-
this.url = String(input);
|
|
119647
|
-
}
|
|
119648
|
-
this.credentials = options.credentials || this.credentials || "same-origin";
|
|
119649
|
-
if (options.headers || !this.headers) {
|
|
119650
|
-
this.headers = new Headers2(options.headers);
|
|
119651
|
-
}
|
|
119652
|
-
this.method = normalizeMethod(options.method || this.method || "GET");
|
|
119653
|
-
this.mode = options.mode || this.mode || null;
|
|
119654
|
-
this.signal = options.signal || this.signal;
|
|
119655
|
-
this.referrer = null;
|
|
119656
|
-
if ((this.method === "GET" || this.method === "HEAD") && body) {
|
|
119657
|
-
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
119658
|
-
}
|
|
119659
|
-
this._initBody(body);
|
|
119660
|
-
}
|
|
119661
|
-
__name(Request2, "Request");
|
|
119662
|
-
Request2.prototype.clone = function() {
|
|
119663
|
-
return new Request2(this, { body: this._bodyInit });
|
|
119664
|
-
};
|
|
119665
|
-
function decode12(body) {
|
|
119666
|
-
var form = new FormData();
|
|
119667
|
-
body.trim().split("&").forEach(function(bytes) {
|
|
119668
|
-
if (bytes) {
|
|
119669
|
-
var split = bytes.split("=");
|
|
119670
|
-
var name5 = split.shift().replace(/\+/g, " ");
|
|
119671
|
-
var value = split.join("=").replace(/\+/g, " ");
|
|
119672
|
-
form.append(decodeURIComponent(name5), decodeURIComponent(value));
|
|
119673
|
-
}
|
|
119674
|
-
});
|
|
119675
|
-
return form;
|
|
119676
|
-
}
|
|
119677
|
-
__name(decode12, "decode");
|
|
119678
|
-
function parseHeaders(rawHeaders) {
|
|
119679
|
-
var headers = new Headers2();
|
|
119680
|
-
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
|
|
119681
|
-
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
119682
|
-
var parts = line.split(":");
|
|
119683
|
-
var key2 = parts.shift().trim();
|
|
119684
|
-
if (key2) {
|
|
119685
|
-
var value = parts.join(":").trim();
|
|
119686
|
-
headers.append(key2, value);
|
|
119687
|
-
}
|
|
119688
|
-
});
|
|
119689
|
-
return headers;
|
|
119690
|
-
}
|
|
119691
|
-
__name(parseHeaders, "parseHeaders");
|
|
119692
|
-
Body.call(Request2.prototype);
|
|
119693
|
-
function Response2(bodyInit, options) {
|
|
119694
|
-
if (!options) {
|
|
119695
|
-
options = {};
|
|
119696
|
-
}
|
|
119697
|
-
this.type = "default";
|
|
119698
|
-
this.status = options.status === void 0 ? 200 : options.status;
|
|
119699
|
-
this.ok = this.status >= 200 && this.status < 300;
|
|
119700
|
-
this.statusText = "statusText" in options ? options.statusText : "OK";
|
|
119701
|
-
this.headers = new Headers2(options.headers);
|
|
119702
|
-
this.url = options.url || "";
|
|
119703
|
-
this._initBody(bodyInit);
|
|
119704
|
-
}
|
|
119705
|
-
__name(Response2, "Response");
|
|
119706
|
-
Body.call(Response2.prototype);
|
|
119707
|
-
Response2.prototype.clone = function() {
|
|
119708
|
-
return new Response2(this._bodyInit, {
|
|
119709
|
-
status: this.status,
|
|
119710
|
-
statusText: this.statusText,
|
|
119711
|
-
headers: new Headers2(this.headers),
|
|
119712
|
-
url: this.url
|
|
119713
|
-
});
|
|
119714
|
-
};
|
|
119715
|
-
Response2.error = function() {
|
|
119716
|
-
var response = new Response2(null, { status: 0, statusText: "" });
|
|
119717
|
-
response.type = "error";
|
|
119718
|
-
return response;
|
|
119719
|
-
};
|
|
119720
|
-
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
119721
|
-
Response2.redirect = function(url, status) {
|
|
119722
|
-
if (redirectStatuses.indexOf(status) === -1) {
|
|
119723
|
-
throw new RangeError("Invalid status code");
|
|
119724
|
-
}
|
|
119725
|
-
return new Response2(null, { status, headers: { location: url } });
|
|
119726
|
-
};
|
|
119727
|
-
exports2.DOMException = self2.DOMException;
|
|
119728
|
-
try {
|
|
119729
|
-
new exports2.DOMException();
|
|
119730
|
-
} catch (err) {
|
|
119731
|
-
exports2.DOMException = function(message, name5) {
|
|
119732
|
-
this.message = message;
|
|
119733
|
-
this.name = name5;
|
|
119734
|
-
var error = Error(message);
|
|
119735
|
-
this.stack = error.stack;
|
|
119736
|
-
};
|
|
119737
|
-
exports2.DOMException.prototype = Object.create(Error.prototype);
|
|
119738
|
-
exports2.DOMException.prototype.constructor = exports2.DOMException;
|
|
119739
|
-
}
|
|
119740
|
-
function fetch3(input, init4) {
|
|
119741
|
-
return new Promise(function(resolve, reject) {
|
|
119742
|
-
var request = new Request2(input, init4);
|
|
119743
|
-
if (request.signal && request.signal.aborted) {
|
|
119744
|
-
return reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
119745
|
-
}
|
|
119746
|
-
var xhr = new XMLHttpRequest();
|
|
119747
|
-
function abortXhr() {
|
|
119748
|
-
xhr.abort();
|
|
119749
|
-
}
|
|
119750
|
-
__name(abortXhr, "abortXhr");
|
|
119751
|
-
xhr.onload = function() {
|
|
119752
|
-
var options = {
|
|
119753
|
-
status: xhr.status,
|
|
119754
|
-
statusText: xhr.statusText,
|
|
119755
|
-
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
|
|
119756
|
-
};
|
|
119757
|
-
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
|
|
119758
|
-
var body = "response" in xhr ? xhr.response : xhr.responseText;
|
|
119759
|
-
resolve(new Response2(body, options));
|
|
119760
|
-
};
|
|
119761
|
-
xhr.onerror = function() {
|
|
119762
|
-
reject(new TypeError("Network request failed"));
|
|
119763
|
-
};
|
|
119764
|
-
xhr.ontimeout = function() {
|
|
119765
|
-
reject(new TypeError("Network request failed"));
|
|
119766
|
-
};
|
|
119767
|
-
xhr.onabort = function() {
|
|
119768
|
-
reject(new exports2.DOMException("Aborted", "AbortError"));
|
|
119769
|
-
};
|
|
119770
|
-
xhr.open(request.method, request.url, true);
|
|
119771
|
-
if (request.credentials === "include") {
|
|
119772
|
-
xhr.withCredentials = true;
|
|
119773
|
-
} else if (request.credentials === "omit") {
|
|
119774
|
-
xhr.withCredentials = false;
|
|
119775
|
-
}
|
|
119776
|
-
if ("responseType" in xhr && support.blob) {
|
|
119777
|
-
xhr.responseType = "blob";
|
|
119778
|
-
}
|
|
119779
|
-
request.headers.forEach(function(value, name5) {
|
|
119780
|
-
xhr.setRequestHeader(name5, value);
|
|
119781
|
-
});
|
|
119782
|
-
if (request.signal) {
|
|
119783
|
-
request.signal.addEventListener("abort", abortXhr);
|
|
119784
|
-
xhr.onreadystatechange = function() {
|
|
119785
|
-
if (xhr.readyState === 4) {
|
|
119786
|
-
request.signal.removeEventListener("abort", abortXhr);
|
|
119787
|
-
}
|
|
119788
|
-
};
|
|
119789
|
-
}
|
|
119790
|
-
xhr.send(typeof request._bodyInit === "undefined" ? null : request._bodyInit);
|
|
119791
|
-
});
|
|
119792
|
-
}
|
|
119793
|
-
__name(fetch3, "fetch");
|
|
119794
|
-
fetch3.polyfill = true;
|
|
119795
|
-
if (!self2.fetch) {
|
|
119796
|
-
self2.fetch = fetch3;
|
|
119797
|
-
self2.Headers = Headers2;
|
|
119798
|
-
self2.Request = Request2;
|
|
119799
|
-
self2.Response = Response2;
|
|
119800
|
-
}
|
|
119801
|
-
exports2.Headers = Headers2;
|
|
119802
|
-
exports2.Request = Request2;
|
|
119803
|
-
exports2.Response = Response2;
|
|
119804
|
-
exports2.fetch = fetch3;
|
|
119805
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
119806
|
-
return exports2;
|
|
119807
|
-
})({});
|
|
119808
|
-
})(__self__);
|
|
119809
|
-
__self__.fetch.ponyfill = true;
|
|
119810
|
-
delete __self__.fetch.polyfill;
|
|
119811
|
-
var ctx = __self__;
|
|
119812
|
-
exports = ctx.fetch;
|
|
119813
|
-
exports.default = ctx.fetch;
|
|
119814
|
-
exports.fetch = ctx.fetch;
|
|
119815
|
-
exports.Headers = ctx.Headers;
|
|
119816
|
-
exports.Request = ctx.Request;
|
|
119817
|
-
exports.Response = ctx.Response;
|
|
119818
|
-
module.exports = exports;
|
|
119819
|
-
}
|
|
119820
|
-
});
|
|
119821
119369
|
var require_dataloader = __commonJS({
|
|
119822
119370
|
"../../node_modules/.pnpm/dataloader@2.1.0/node_modules/dataloader/index.js"(exports, module) {
|
|
119823
119371
|
var DataLoader2 = /* @__PURE__ */ function() {
|
|
@@ -134741,7 +134289,6 @@ function StreamStatic() {
|
|
|
134741
134289
|
};
|
|
134742
134290
|
}
|
|
134743
134291
|
__name(StreamStatic, "StreamStatic");
|
|
134744
|
-
var import_cross_fetch = __toESM(require_browser_ponyfill(), 1);
|
|
134745
134292
|
function mergeAbortSignals(signals) {
|
|
134746
134293
|
const controller = new AbortController();
|
|
134747
134294
|
if (signals.length === 0) {
|
|
@@ -134803,7 +134350,7 @@ function fetchJson(_0) {
|
|
|
134803
134350
|
const timedAbortSignal = new TimedAbortSignal(timeoutLength);
|
|
134804
134351
|
const signal = opts.signal ? mergeAbortSignals([opts.signal, timedAbortSignal.signal]) : timedAbortSignal.signal;
|
|
134805
134352
|
const res = yield abortable2(signal, (abortSignal) => {
|
|
134806
|
-
return (
|
|
134353
|
+
return fetch2(String(url), __spreadProps(__spreadValues({}, opts), { signal: abortSignal }));
|
|
134807
134354
|
}).finally(() => timedAbortSignal.clear());
|
|
134808
134355
|
if (!res.ok) {
|
|
134809
134356
|
const text = yield res.text();
|
|
@@ -151329,4 +150876,4 @@ const VCCard = ({ credential, issueeOverride, className = "" }) => {
|
|
|
151329
150876
|
};
|
|
151330
150877
|
|
|
151331
150878
|
export { VCCard as V };
|
|
151332
|
-
//# sourceMappingURL=VCCard-
|
|
150879
|
+
//# sourceMappingURL=VCCard-8fd71fba.js.map
|