@learncard/vpqr-plugin 1.0.1 → 1.0.3

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.
@@ -16,10 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
23
20
 
24
21
  // ../../../node_modules/.pnpm/base32-decode@1.0.0/node_modules/base32-decode/index.js
25
22
  var require_base32_decode = __commonJS({
@@ -72,532 +69,7 @@ var require_base32_decode = __commonJS({
72
69
  }
73
70
  });
74
71
 
75
- // ../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js
76
- var require_tslib = __commonJS({
77
- "../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js"(exports, module) {
78
- var __extends2;
79
- var __assign2;
80
- var __rest2;
81
- var __decorate2;
82
- var __param2;
83
- var __esDecorate2;
84
- var __runInitializers2;
85
- var __propKey2;
86
- var __setFunctionName2;
87
- var __metadata2;
88
- var __awaiter2;
89
- var __generator2;
90
- var __exportStar2;
91
- var __values2;
92
- var __read2;
93
- var __spread2;
94
- var __spreadArrays2;
95
- var __spreadArray2;
96
- var __await2;
97
- var __asyncGenerator2;
98
- var __asyncDelegator2;
99
- var __asyncValues2;
100
- var __makeTemplateObject2;
101
- var __importStar2;
102
- var __importDefault2;
103
- var __classPrivateFieldGet2;
104
- var __classPrivateFieldSet2;
105
- var __classPrivateFieldIn2;
106
- var __createBinding2;
107
- (function(factory) {
108
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
109
- if (typeof define === "function" && define.amd) {
110
- define("tslib", ["exports"], function(exports2) {
111
- factory(createExporter(root, createExporter(exports2)));
112
- });
113
- } else if (typeof module === "object" && typeof module.exports === "object") {
114
- factory(createExporter(root, createExporter(module.exports)));
115
- } else {
116
- factory(createExporter(root));
117
- }
118
- function createExporter(exports2, previous) {
119
- if (exports2 !== root) {
120
- if (typeof Object.create === "function") {
121
- Object.defineProperty(exports2, "__esModule", { value: true });
122
- } else {
123
- exports2.__esModule = true;
124
- }
125
- }
126
- return function(id, v) {
127
- return exports2[id] = previous ? previous(id, v) : v;
128
- };
129
- }
130
- __name(createExporter, "createExporter");
131
- })(function(exporter) {
132
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
133
- d.__proto__ = b;
134
- } || function(d, b) {
135
- for (var p in b)
136
- if (Object.prototype.hasOwnProperty.call(b, p))
137
- d[p] = b[p];
138
- };
139
- __extends2 = /* @__PURE__ */ __name(function(d, b) {
140
- if (typeof b !== "function" && b !== null)
141
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
142
- extendStatics(d, b);
143
- function __() {
144
- this.constructor = d;
145
- }
146
- __name(__, "__");
147
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
148
- }, "__extends");
149
- __assign2 = Object.assign || function(t) {
150
- for (var s, i = 1, n = arguments.length; i < n; i++) {
151
- s = arguments[i];
152
- for (var p in s)
153
- if (Object.prototype.hasOwnProperty.call(s, p))
154
- t[p] = s[p];
155
- }
156
- return t;
157
- };
158
- __rest2 = /* @__PURE__ */ __name(function(s, e) {
159
- var t = {};
160
- for (var p in s)
161
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
162
- t[p] = s[p];
163
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
164
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
165
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
166
- t[p[i]] = s[p[i]];
167
- }
168
- return t;
169
- }, "__rest");
170
- __decorate2 = /* @__PURE__ */ __name(function(decorators, target, key, desc) {
171
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
172
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
173
- r = Reflect.decorate(decorators, target, key, desc);
174
- else
175
- for (var i = decorators.length - 1; i >= 0; i--)
176
- if (d = decorators[i])
177
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
178
- return c > 3 && r && Object.defineProperty(target, key, r), r;
179
- }, "__decorate");
180
- __param2 = /* @__PURE__ */ __name(function(paramIndex, decorator) {
181
- return function(target, key) {
182
- decorator(target, key, paramIndex);
183
- };
184
- }, "__param");
185
- __esDecorate2 = /* @__PURE__ */ __name(function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
186
- function accept(f) {
187
- if (f !== void 0 && typeof f !== "function")
188
- throw new TypeError("Function expected");
189
- return f;
190
- }
191
- __name(accept, "accept");
192
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
193
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
194
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
195
- var _, done = false;
196
- for (var i = decorators.length - 1; i >= 0; i--) {
197
- var context = {};
198
- for (var p in contextIn)
199
- context[p] = p === "access" ? {} : contextIn[p];
200
- for (var p in contextIn.access)
201
- context.access[p] = contextIn.access[p];
202
- context.addInitializer = function(f) {
203
- if (done)
204
- throw new TypeError("Cannot add initializers after decoration has completed");
205
- extraInitializers.push(accept(f || null));
206
- };
207
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
208
- if (kind === "accessor") {
209
- if (result === void 0)
210
- continue;
211
- if (result === null || typeof result !== "object")
212
- throw new TypeError("Object expected");
213
- if (_ = accept(result.get))
214
- descriptor.get = _;
215
- if (_ = accept(result.set))
216
- descriptor.set = _;
217
- if (_ = accept(result.init))
218
- initializers.push(_);
219
- } else if (_ = accept(result)) {
220
- if (kind === "field")
221
- initializers.push(_);
222
- else
223
- descriptor[key] = _;
224
- }
225
- }
226
- if (target)
227
- Object.defineProperty(target, contextIn.name, descriptor);
228
- done = true;
229
- }, "__esDecorate");
230
- __runInitializers2 = /* @__PURE__ */ __name(function(thisArg, initializers, value) {
231
- var useValue = arguments.length > 2;
232
- for (var i = 0; i < initializers.length; i++) {
233
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
234
- }
235
- return useValue ? value : void 0;
236
- }, "__runInitializers");
237
- __propKey2 = /* @__PURE__ */ __name(function(x) {
238
- return typeof x === "symbol" ? x : "".concat(x);
239
- }, "__propKey");
240
- __setFunctionName2 = /* @__PURE__ */ __name(function(f, name, prefix) {
241
- if (typeof name === "symbol")
242
- name = name.description ? "[".concat(name.description, "]") : "";
243
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
244
- }, "__setFunctionName");
245
- __metadata2 = /* @__PURE__ */ __name(function(metadataKey, metadataValue) {
246
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
247
- return Reflect.metadata(metadataKey, metadataValue);
248
- }, "__metadata");
249
- __awaiter2 = /* @__PURE__ */ __name(function(thisArg, _arguments, P, generator) {
250
- function adopt(value) {
251
- return value instanceof P ? value : new P(function(resolve) {
252
- resolve(value);
253
- });
254
- }
255
- __name(adopt, "adopt");
256
- return new (P || (P = Promise))(function(resolve, reject) {
257
- function fulfilled(value) {
258
- try {
259
- step(generator.next(value));
260
- } catch (e) {
261
- reject(e);
262
- }
263
- }
264
- __name(fulfilled, "fulfilled");
265
- function rejected(value) {
266
- try {
267
- step(generator["throw"](value));
268
- } catch (e) {
269
- reject(e);
270
- }
271
- }
272
- __name(rejected, "rejected");
273
- function step(result) {
274
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
275
- }
276
- __name(step, "step");
277
- step((generator = generator.apply(thisArg, _arguments || [])).next());
278
- });
279
- }, "__awaiter");
280
- __generator2 = /* @__PURE__ */ __name(function(thisArg, body) {
281
- var _ = { label: 0, sent: function() {
282
- if (t[0] & 1)
283
- throw t[1];
284
- return t[1];
285
- }, trys: [], ops: [] }, f, y, t, g;
286
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
287
- return this;
288
- }), g;
289
- function verb(n) {
290
- return function(v) {
291
- return step([n, v]);
292
- };
293
- }
294
- __name(verb, "verb");
295
- function step(op) {
296
- if (f)
297
- throw new TypeError("Generator is already executing.");
298
- while (g && (g = 0, op[0] && (_ = 0)), _)
299
- try {
300
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
301
- return t;
302
- if (y = 0, t)
303
- op = [op[0] & 2, t.value];
304
- switch (op[0]) {
305
- case 0:
306
- case 1:
307
- t = op;
308
- break;
309
- case 4:
310
- _.label++;
311
- return { value: op[1], done: false };
312
- case 5:
313
- _.label++;
314
- y = op[1];
315
- op = [0];
316
- continue;
317
- case 7:
318
- op = _.ops.pop();
319
- _.trys.pop();
320
- continue;
321
- default:
322
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
323
- _ = 0;
324
- continue;
325
- }
326
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
327
- _.label = op[1];
328
- break;
329
- }
330
- if (op[0] === 6 && _.label < t[1]) {
331
- _.label = t[1];
332
- t = op;
333
- break;
334
- }
335
- if (t && _.label < t[2]) {
336
- _.label = t[2];
337
- _.ops.push(op);
338
- break;
339
- }
340
- if (t[2])
341
- _.ops.pop();
342
- _.trys.pop();
343
- continue;
344
- }
345
- op = body.call(thisArg, _);
346
- } catch (e) {
347
- op = [6, e];
348
- y = 0;
349
- } finally {
350
- f = t = 0;
351
- }
352
- if (op[0] & 5)
353
- throw op[1];
354
- return { value: op[0] ? op[1] : void 0, done: true };
355
- }
356
- __name(step, "step");
357
- }, "__generator");
358
- __exportStar2 = /* @__PURE__ */ __name(function(m, o) {
359
- for (var p in m)
360
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
361
- __createBinding2(o, m, p);
362
- }, "__exportStar");
363
- __createBinding2 = Object.create ? function(o, m, k, k2) {
364
- if (k2 === void 0)
365
- k2 = k;
366
- var desc = Object.getOwnPropertyDescriptor(m, k);
367
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
368
- desc = { enumerable: true, get: function() {
369
- return m[k];
370
- } };
371
- }
372
- Object.defineProperty(o, k2, desc);
373
- } : function(o, m, k, k2) {
374
- if (k2 === void 0)
375
- k2 = k;
376
- o[k2] = m[k];
377
- };
378
- __values2 = /* @__PURE__ */ __name(function(o) {
379
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
380
- if (m)
381
- return m.call(o);
382
- if (o && typeof o.length === "number")
383
- return {
384
- next: function() {
385
- if (o && i >= o.length)
386
- o = void 0;
387
- return { value: o && o[i++], done: !o };
388
- }
389
- };
390
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
391
- }, "__values");
392
- __read2 = /* @__PURE__ */ __name(function(o, n) {
393
- var m = typeof Symbol === "function" && o[Symbol.iterator];
394
- if (!m)
395
- return o;
396
- var i = m.call(o), r, ar = [], e;
397
- try {
398
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
399
- ar.push(r.value);
400
- } catch (error) {
401
- e = { error };
402
- } finally {
403
- try {
404
- if (r && !r.done && (m = i["return"]))
405
- m.call(i);
406
- } finally {
407
- if (e)
408
- throw e.error;
409
- }
410
- }
411
- return ar;
412
- }, "__read");
413
- __spread2 = /* @__PURE__ */ __name(function() {
414
- for (var ar = [], i = 0; i < arguments.length; i++)
415
- ar = ar.concat(__read2(arguments[i]));
416
- return ar;
417
- }, "__spread");
418
- __spreadArrays2 = /* @__PURE__ */ __name(function() {
419
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
420
- s += arguments[i].length;
421
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
422
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
423
- r[k] = a[j];
424
- return r;
425
- }, "__spreadArrays");
426
- __spreadArray2 = /* @__PURE__ */ __name(function(to, from, pack) {
427
- if (pack || arguments.length === 2)
428
- for (var i = 0, l = from.length, ar; i < l; i++) {
429
- if (ar || !(i in from)) {
430
- if (!ar)
431
- ar = Array.prototype.slice.call(from, 0, i);
432
- ar[i] = from[i];
433
- }
434
- }
435
- return to.concat(ar || Array.prototype.slice.call(from));
436
- }, "__spreadArray");
437
- __await2 = /* @__PURE__ */ __name(function(v) {
438
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
439
- }, "__await");
440
- __asyncGenerator2 = /* @__PURE__ */ __name(function(thisArg, _arguments, generator) {
441
- if (!Symbol.asyncIterator)
442
- throw new TypeError("Symbol.asyncIterator is not defined.");
443
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
444
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
445
- return this;
446
- }, i;
447
- function verb(n) {
448
- if (g[n])
449
- i[n] = function(v) {
450
- return new Promise(function(a, b) {
451
- q.push([n, v, a, b]) > 1 || resume(n, v);
452
- });
453
- };
454
- }
455
- __name(verb, "verb");
456
- function resume(n, v) {
457
- try {
458
- step(g[n](v));
459
- } catch (e) {
460
- settle(q[0][3], e);
461
- }
462
- }
463
- __name(resume, "resume");
464
- function step(r) {
465
- r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
466
- }
467
- __name(step, "step");
468
- function fulfill(value) {
469
- resume("next", value);
470
- }
471
- __name(fulfill, "fulfill");
472
- function reject(value) {
473
- resume("throw", value);
474
- }
475
- __name(reject, "reject");
476
- function settle(f, v) {
477
- if (f(v), q.shift(), q.length)
478
- resume(q[0][0], q[0][1]);
479
- }
480
- __name(settle, "settle");
481
- }, "__asyncGenerator");
482
- __asyncDelegator2 = /* @__PURE__ */ __name(function(o) {
483
- var i, p;
484
- return i = {}, verb("next"), verb("throw", function(e) {
485
- throw e;
486
- }), verb("return"), i[Symbol.iterator] = function() {
487
- return this;
488
- }, i;
489
- function verb(n, f) {
490
- i[n] = o[n] ? function(v) {
491
- return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v;
492
- } : f;
493
- }
494
- __name(verb, "verb");
495
- }, "__asyncDelegator");
496
- __asyncValues2 = /* @__PURE__ */ __name(function(o) {
497
- if (!Symbol.asyncIterator)
498
- throw new TypeError("Symbol.asyncIterator is not defined.");
499
- var m = o[Symbol.asyncIterator], i;
500
- return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
501
- return this;
502
- }, i);
503
- function verb(n) {
504
- i[n] = o[n] && function(v) {
505
- return new Promise(function(resolve, reject) {
506
- v = o[n](v), settle(resolve, reject, v.done, v.value);
507
- });
508
- };
509
- }
510
- __name(verb, "verb");
511
- function settle(resolve, reject, d, v) {
512
- Promise.resolve(v).then(function(v2) {
513
- resolve({ value: v2, done: d });
514
- }, reject);
515
- }
516
- __name(settle, "settle");
517
- }, "__asyncValues");
518
- __makeTemplateObject2 = /* @__PURE__ */ __name(function(cooked, raw) {
519
- if (Object.defineProperty) {
520
- Object.defineProperty(cooked, "raw", { value: raw });
521
- } else {
522
- cooked.raw = raw;
523
- }
524
- return cooked;
525
- }, "__makeTemplateObject");
526
- var __setModuleDefault = Object.create ? function(o, v) {
527
- Object.defineProperty(o, "default", { enumerable: true, value: v });
528
- } : function(o, v) {
529
- o["default"] = v;
530
- };
531
- __importStar2 = /* @__PURE__ */ __name(function(mod) {
532
- if (mod && mod.__esModule)
533
- return mod;
534
- var result = {};
535
- if (mod != null) {
536
- for (var k in mod)
537
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
538
- __createBinding2(result, mod, k);
539
- }
540
- __setModuleDefault(result, mod);
541
- return result;
542
- }, "__importStar");
543
- __importDefault2 = /* @__PURE__ */ __name(function(mod) {
544
- return mod && mod.__esModule ? mod : { "default": mod };
545
- }, "__importDefault");
546
- __classPrivateFieldGet2 = /* @__PURE__ */ __name(function(receiver, state, kind, f) {
547
- if (kind === "a" && !f)
548
- throw new TypeError("Private accessor was defined without a getter");
549
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
550
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
551
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
552
- }, "__classPrivateFieldGet");
553
- __classPrivateFieldSet2 = /* @__PURE__ */ __name(function(receiver, state, value, kind, f) {
554
- if (kind === "m")
555
- throw new TypeError("Private method is not writable");
556
- if (kind === "a" && !f)
557
- throw new TypeError("Private accessor was defined without a setter");
558
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
559
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
560
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
561
- }, "__classPrivateFieldSet");
562
- __classPrivateFieldIn2 = /* @__PURE__ */ __name(function(state, receiver) {
563
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
564
- throw new TypeError("Cannot use 'in' operator on non-object");
565
- return typeof state === "function" ? receiver === state : state.has(receiver);
566
- }, "__classPrivateFieldIn");
567
- exporter("__extends", __extends2);
568
- exporter("__assign", __assign2);
569
- exporter("__rest", __rest2);
570
- exporter("__decorate", __decorate2);
571
- exporter("__param", __param2);
572
- exporter("__esDecorate", __esDecorate2);
573
- exporter("__runInitializers", __runInitializers2);
574
- exporter("__propKey", __propKey2);
575
- exporter("__setFunctionName", __setFunctionName2);
576
- exporter("__metadata", __metadata2);
577
- exporter("__awaiter", __awaiter2);
578
- exporter("__generator", __generator2);
579
- exporter("__exportStar", __exportStar2);
580
- exporter("__createBinding", __createBinding2);
581
- exporter("__values", __values2);
582
- exporter("__read", __read2);
583
- exporter("__spread", __spread2);
584
- exporter("__spreadArrays", __spreadArrays2);
585
- exporter("__spreadArray", __spreadArray2);
586
- exporter("__await", __await2);
587
- exporter("__asyncGenerator", __asyncGenerator2);
588
- exporter("__asyncDelegator", __asyncDelegator2);
589
- exporter("__asyncValues", __asyncValues2);
590
- exporter("__makeTemplateObject", __makeTemplateObject2);
591
- exporter("__importStar", __importStar2);
592
- exporter("__importDefault", __importDefault2);
593
- exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
594
- exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
595
- exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
596
- });
597
- }
598
- });
599
-
600
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/is.js
72
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/is.js
601
73
  var typeofs = [
602
74
  "string",
603
75
  "number",
@@ -683,7 +155,7 @@ function getObjectType(value) {
683
155
  }
684
156
  __name(getObjectType, "getObjectType");
685
157
 
686
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/token.js
158
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/token.js
687
159
  var Type = class {
688
160
  constructor(major, name, terminal) {
689
161
  this.major = major;
@@ -726,7 +198,7 @@ var Token = class {
726
198
  };
727
199
  __name(Token, "Token");
728
200
 
729
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/byte-utils.js
201
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/byte-utils.js
730
202
  var useBuffer = globalThis.process && !globalThis.process.browser && globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function";
731
203
  var textDecoder = new TextDecoder();
732
204
  var textEncoder = new TextEncoder();
@@ -925,7 +397,7 @@ function decodeCodePointsArray(codePoints) {
925
397
  }
926
398
  __name(decodeCodePointsArray, "decodeCodePointsArray");
927
399
 
928
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/bl.js
400
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/bl.js
929
401
  var defaultChunkSize = 256;
930
402
  var Bl = class {
931
403
  constructor(chunkSize = defaultChunkSize) {
@@ -997,7 +469,7 @@ var Bl = class {
997
469
  };
998
470
  __name(Bl, "Bl");
999
471
 
1000
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/common.js
472
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/common.js
1001
473
  var decodeErrPrefix = "CBOR decode error:";
1002
474
  var encodeErrPrefix = "CBOR encode error:";
1003
475
  var uintMinorPrefixBytes = [];
@@ -1013,7 +485,7 @@ function assertEnoughData(data, pos, need) {
1013
485
  }
1014
486
  __name(assertEnoughData, "assertEnoughData");
1015
487
 
1016
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/0uint.js
488
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/0uint.js
1017
489
  var uintBoundaries = [
1018
490
  24,
1019
491
  256,
@@ -1169,7 +641,7 @@ encodeUint.compareTokens = /* @__PURE__ */ __name(function compareTokens(tok1, t
1169
641
  return tok1.value < tok2.value ? -1 : tok1.value > tok2.value ? 1 : 0;
1170
642
  }, "compareTokens");
1171
643
 
1172
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/1negint.js
644
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/1negint.js
1173
645
  function decodeNegint8(data, pos, _minor, options) {
1174
646
  return new Token(Type.negint, -1 - readUint8(data, pos + 1, options), 2);
1175
647
  }
@@ -1225,7 +697,7 @@ encodeNegint.compareTokens = /* @__PURE__ */ __name(function compareTokens2(tok1
1225
697
  return tok1.value < tok2.value ? 1 : tok1.value > tok2.value ? -1 : 0;
1226
698
  }, "compareTokens");
1227
699
 
1228
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/2bytes.js
700
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/2bytes.js
1229
701
  function toToken(data, pos, prefix, length) {
1230
702
  assertEnoughData(data, pos, prefix + length);
1231
703
  const buf2 = slice(data, pos + prefix, pos + prefix + length);
@@ -1281,7 +753,7 @@ function compareBytes(b1, b2) {
1281
753
  }
1282
754
  __name(compareBytes, "compareBytes");
1283
755
 
1284
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/3string.js
756
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/3string.js
1285
757
  function toToken2(data, pos, prefix, length, options) {
1286
758
  const totLength = prefix + length;
1287
759
  assertEnoughData(data, pos, totLength);
@@ -1318,7 +790,7 @@ function decodeString64(data, pos, _minor, options) {
1318
790
  __name(decodeString64, "decodeString64");
1319
791
  var encodeString = encodeBytes;
1320
792
 
1321
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/4array.js
793
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/4array.js
1322
794
  function toToken3(_data, _pos, prefix, length) {
1323
795
  return new Token(Type.array, length, prefix);
1324
796
  }
@@ -1363,7 +835,7 @@ encodeArray.encodedSize = /* @__PURE__ */ __name(function encodedSize5(token) {
1363
835
  return encodeUintValue.encodedSize(token.value);
1364
836
  }, "encodedSize");
1365
837
 
1366
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/5map.js
838
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/5map.js
1367
839
  function toToken4(_data, _pos, prefix, length) {
1368
840
  return new Token(Type.map, length, prefix);
1369
841
  }
@@ -1408,7 +880,7 @@ encodeMap.encodedSize = /* @__PURE__ */ __name(function encodedSize6(token) {
1408
880
  return encodeUintValue.encodedSize(token.value);
1409
881
  }, "encodedSize");
1410
882
 
1411
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/6tag.js
883
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/6tag.js
1412
884
  function decodeTagCompact(_data, _pos, minor, _options) {
1413
885
  return new Token(Type.tag, minor, 1);
1414
886
  }
@@ -1438,7 +910,7 @@ encodeTag.encodedSize = /* @__PURE__ */ __name(function encodedSize7(token) {
1438
910
  return encodeUintValue.encodedSize(token.value);
1439
911
  }, "encodedSize");
1440
912
 
1441
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/7float.js
913
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/7float.js
1442
914
  var MINOR_FALSE = 20;
1443
915
  var MINOR_TRUE = 21;
1444
916
  var MINOR_NULL = 22;
@@ -1626,7 +1098,7 @@ function readFloat64(ui8a2, pos) {
1626
1098
  __name(readFloat64, "readFloat64");
1627
1099
  encodeFloat.compareTokens = encodeUint.compareTokens;
1628
1100
 
1629
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/jump.js
1101
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/jump.js
1630
1102
  function invalidMinor(data, pos, minor) {
1631
1103
  throw new Error(`${decodeErrPrefix} encountered invalid minor (${minor}) for major ${data[pos] >>> 5}`);
1632
1104
  }
@@ -1785,7 +1257,7 @@ function quickEncodeToken(token) {
1785
1257
  }
1786
1258
  __name(quickEncodeToken, "quickEncodeToken");
1787
1259
 
1788
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/encode.js
1260
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/encode.js
1789
1261
  var defaultEncodeOptions = {
1790
1262
  float64: false,
1791
1263
  mapSorter,
@@ -2018,7 +1490,7 @@ function encode(data, options) {
2018
1490
  }
2019
1491
  __name(encode, "encode");
2020
1492
 
2021
- // ../../../node_modules/.pnpm/cborg@1.10.0/node_modules/cborg/esm/lib/decode.js
1493
+ // ../../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/decode.js
2022
1494
  var defaultDecodeOptions = {
2023
1495
  strict: false,
2024
1496
  allowIndefinite: true,
@@ -2214,10 +1686,7 @@ var ContextDecoder = class extends CborldDecoder {
2214
1686
  }
2215
1687
  const url = ID_TO_URL.get(value) || this.reverseAppContextMap.get(value);
2216
1688
  if (url === void 0) {
2217
- throw new CborldError(
2218
- "ERR_UNDEFINED_COMPRESSED_CONTEXT",
2219
- `Undefined compressed context "${value}".`
2220
- );
1689
+ throw new CborldError("ERR_UNDEFINED_COMPRESSED_CONTEXT", `Undefined compressed context "${value}".`);
2221
1690
  }
2222
1691
  return url;
2223
1692
  }
@@ -2575,9 +2044,7 @@ var Transformer = class {
2575
2044
  this._beforeTypeScopedContexts({ activeCtx, obj, transformMap });
2576
2045
  activeCtx = await this._applyTypeScopedContexts({ obj, contextStack });
2577
2046
  const { aliases, scopedContextMap, termMap } = activeCtx;
2578
- const termEntries = this._getEntries(
2579
- { obj, transformMap, transformer: this, termMap }
2580
- );
2047
+ const termEntries = this._getEntries({ obj, transformMap, transformer: this, termMap });
2581
2048
  for (const [termInfo, value] of termEntries) {
2582
2049
  const { term } = termInfo;
2583
2050
  if (term === "@id" || aliases.id.has(term)) {
@@ -2599,9 +2066,7 @@ var Transformer = class {
2599
2066
  propertyContextStack = contextStack.slice();
2600
2067
  }
2601
2068
  const { plural, def } = termInfo;
2602
- const termType = this._getTermType(
2603
- { activeCtx: newActiveCtx || activeCtx, def }
2604
- );
2069
+ const termType = this._getTermType({ activeCtx: newActiveCtx || activeCtx, def });
2605
2070
  const values = plural ? value : [value];
2606
2071
  const entries = [];
2607
2072
  for (const value2 of values) {
@@ -2617,9 +2082,7 @@ var Transformer = class {
2617
2082
  continue;
2618
2083
  }
2619
2084
  if (Array.isArray(value2)) {
2620
- await this._transformArray(
2621
- { entries, contextStack: propertyContextStack, value: value2 }
2622
- );
2085
+ await this._transformArray({ entries, contextStack: propertyContextStack, value: value2 });
2623
2086
  continue;
2624
2087
  }
2625
2088
  await this._transformObject({
@@ -2760,12 +2223,8 @@ var Transformer = class {
2760
2223
  if (importUrl) {
2761
2224
  let importEntry = contextMap.get(importUrl);
2762
2225
  if (!importEntry) {
2763
- const { "@context": importCtx } = await this._getDocument(
2764
- { url: importUrl }
2765
- );
2766
- importEntry = await this._addContext(
2767
- { context: importCtx, contextUrl: importUrl }
2768
- );
2226
+ const { "@context": importCtx } = await this._getDocument({ url: importUrl });
2227
+ importEntry = await this._addContext({ context: importCtx, contextUrl: importUrl });
2769
2228
  }
2770
2229
  context = { ...importEntry.context, ...context };
2771
2230
  }
@@ -2829,20 +2288,14 @@ var Transformer = class {
2829
2288
  return prefixDef + suffix.join(":");
2830
2289
  }
2831
2290
  if (!(typeof prefixDef === "object" && typeof prefixDef["@id"] === "string")) {
2832
- throw new CborldError(
2833
- "ERR_INVALID_TERM_DEFINITION",
2834
- 'JSON-LD term definitions must be strings or objects with "@id".'
2835
- );
2291
+ throw new CborldError("ERR_INVALID_TERM_DEFINITION", 'JSON-LD term definitions must be strings or objects with "@id".');
2836
2292
  }
2837
2293
  return prefixDef["@id"] + suffix.join(":");
2838
2294
  }
2839
2295
  _getIdForTerm({ term, plural }) {
2840
2296
  const id = this.termToId.get(term);
2841
2297
  if (id === void 0) {
2842
- throw new CborldError(
2843
- "ERR_UNDEFINED_TERM",
2844
- "CBOR-LD compression requires all terms to be defined in a JSON-LD context."
2845
- );
2298
+ throw new CborldError("ERR_UNDEFINED_TERM", "CBOR-LD compression requires all terms to be defined in a JSON-LD context.");
2846
2299
  }
2847
2300
  return plural ? id + 1 : id;
2848
2301
  }
@@ -3105,30 +2558,20 @@ var Decompressor = class extends Transformer {
3105
2558
  _beforeObjectContexts({ obj, transformMap }) {
3106
2559
  const encodedContext = transformMap.get(CONTEXT_TERM_ID);
3107
2560
  if (encodedContext) {
3108
- const decoder = ContextDecoder.createDecoder(
3109
- { value: encodedContext, transformer: this }
3110
- );
2561
+ const decoder = ContextDecoder.createDecoder({ value: encodedContext, transformer: this });
3111
2562
  obj["@context"] = decoder ? decoder.decode({ value: encodedContext }) : encodedContext;
3112
2563
  }
3113
2564
  const encodedContexts = transformMap.get(CONTEXT_TERM_ID_PLURAL);
3114
2565
  if (encodedContexts) {
3115
2566
  if (encodedContext) {
3116
- throw new CborldError(
3117
- "ERR_INVALID_ENCODED_CONTEXT",
3118
- "Both singular and plural context IDs were found in the CBOR-LD input."
3119
- );
2567
+ throw new CborldError("ERR_INVALID_ENCODED_CONTEXT", "Both singular and plural context IDs were found in the CBOR-LD input.");
3120
2568
  }
3121
2569
  if (!Array.isArray(encodedContexts)) {
3122
- throw new CborldError(
3123
- "ERR_INVALID_ENCODED_CONTEXT",
3124
- "Encoded plural context value must be an array."
3125
- );
2570
+ throw new CborldError("ERR_INVALID_ENCODED_CONTEXT", "Encoded plural context value must be an array.");
3126
2571
  }
3127
2572
  const entries = [];
3128
2573
  for (const value of encodedContexts) {
3129
- const decoder = ContextDecoder.createDecoder(
3130
- { value, transformer: this }
3131
- );
2574
+ const decoder = ContextDecoder.createDecoder({ value, transformer: this });
3132
2575
  entries.push(decoder ? decoder.decode({ value }) : value);
3133
2576
  }
3134
2577
  obj["@context"] = entries;
@@ -3146,15 +2589,11 @@ var Decompressor = class extends Transformer {
3146
2589
  if (value !== void 0) {
3147
2590
  if (Array.isArray(value)) {
3148
2591
  obj[term] = value.map((value2) => {
3149
- const decoder = VocabTermDecoder.createDecoder(
3150
- { value: value2, transformer: this }
3151
- );
2592
+ const decoder = VocabTermDecoder.createDecoder({ value: value2, transformer: this });
3152
2593
  return decoder ? decoder.decode({ value: value2 }) : value2;
3153
2594
  });
3154
2595
  } else {
3155
- const decoder = VocabTermDecoder.createDecoder(
3156
- { value, transformer: this }
3157
- );
2596
+ const decoder = VocabTermDecoder.createDecoder({ value, transformer: this });
3158
2597
  obj[term] = decoder ? decoder.decode({ value }) : value;
3159
2598
  }
3160
2599
  }
@@ -3168,17 +2607,11 @@ var Decompressor = class extends Transformer {
3168
2607
  }
3169
2608
  const { term, plural } = this._getTermForId({ id: key });
3170
2609
  if (term === void 0) {
3171
- throw new CborldError(
3172
- "ERR_UNKNOWN_CBORLD_TERM_ID",
3173
- `Unknown term ID '${key}' was detected in the CBOR-LD input.`
3174
- );
2610
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM_ID", `Unknown term ID '${key}' was detected in the CBOR-LD input.`);
3175
2611
  }
3176
2612
  const def = termMap.get(term);
3177
2613
  if (def === void 0 && !(term.startsWith("@") && KEYWORDS.has(term))) {
3178
- throw new CborldError(
3179
- "ERR_UNKNOWN_CBORLD_TERM",
3180
- `Unknown term "${term}" was detected in the CBOR-LD input.`
3181
- );
2614
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term "${term}" was detected in the CBOR-LD input.`);
3182
2615
  }
3183
2616
  entries.push([{ term, termId: key, plural, def }, value]);
3184
2617
  }
@@ -3187,17 +2620,11 @@ var Decompressor = class extends Transformer {
3187
2620
  _getTermInfo({ termMap, key }) {
3188
2621
  const { term, plural } = this._getTermForId({ id: key });
3189
2622
  if (term === void 0) {
3190
- throw new CborldError(
3191
- "ERR_UNKNOWN_CBORLD_TERM_ID",
3192
- `Unknown term ID '${key}' was detected in the CBOR-LD input.`
3193
- );
2623
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM_ID", `Unknown term ID '${key}' was detected in the CBOR-LD input.`);
3194
2624
  }
3195
2625
  const def = termMap.get(term);
3196
2626
  if (def === void 0 && !(term.startsWith("@") && KEYWORDS.has(term))) {
3197
- throw new CborldError(
3198
- "ERR_UNKNOWN_CBORLD_TERM",
3199
- `Unknown term "${term}" was detected in the CBOR-LD input.`
3200
- );
2627
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term "${term}" was detected in the CBOR-LD input.`);
3201
2628
  }
3202
2629
  return { term, termId: key, plural, def };
3203
2630
  }
@@ -3210,18 +2637,14 @@ var Decompressor = class extends Transformer {
3210
2637
  const values = plural ? value : [value];
3211
2638
  const entries = [];
3212
2639
  for (const value2 of values) {
3213
- const decoder = VocabTermDecoder.createDecoder(
3214
- { value: value2, transformer: this }
3215
- );
2640
+ const decoder = VocabTermDecoder.createDecoder({ value: value2, transformer: this });
3216
2641
  entries.push(decoder ? decoder.decode({ value: value2 }) : value2);
3217
2642
  }
3218
2643
  obj[term] = plural ? entries : entries[0];
3219
2644
  }
3220
2645
  _transformTypedValue({ entries, termType, value }) {
3221
2646
  const DecoderClass = TYPE_DECODERS.get(termType);
3222
- const decoder = DecoderClass && DecoderClass.createDecoder(
3223
- { value, transformer: this }
3224
- );
2647
+ const decoder = DecoderClass && DecoderClass.createDecoder({ value, transformer: this });
3225
2648
  if (decoder) {
3226
2649
  entries.push(decoder.decode({ value }));
3227
2650
  return true;
@@ -3264,29 +2687,17 @@ async function decode5({
3264
2687
  }
3265
2688
  let index = 0;
3266
2689
  if (cborldBytes[index++] !== 217) {
3267
- throw new CborldError(
3268
- "ERR_NOT_CBORLD",
3269
- 'CBOR-LD must start with a CBOR major type "Tag" header of `0xd9`.'
3270
- );
2690
+ throw new CborldError("ERR_NOT_CBORLD", 'CBOR-LD must start with a CBOR major type "Tag" header of `0xd9`.');
3271
2691
  }
3272
2692
  if (cborldBytes[index++] !== 5) {
3273
- throw new CborldError(
3274
- "ERR_NOT_CBORLD",
3275
- "CBOR-LD 16-bit tag must start with `0x05`."
3276
- );
2693
+ throw new CborldError("ERR_NOT_CBORLD", "CBOR-LD 16-bit tag must start with `0x05`.");
3277
2694
  }
3278
2695
  const compressionMode = cborldBytes[index];
3279
2696
  if (compressionMode === void 0) {
3280
- throw new CborldError(
3281
- "ERR_NOT_CBORLD",
3282
- "Truncated CBOR-LD 16-bit tag."
3283
- );
2697
+ throw new CborldError("ERR_NOT_CBORLD", "Truncated CBOR-LD 16-bit tag.");
3284
2698
  }
3285
2699
  if (!(compressionMode === 0 || compressionMode === 1)) {
3286
- throw new CborldError(
3287
- "ERR_NOT_CBORLD",
3288
- `Unsupported CBOR-LD compression mode "${compressionMode}".`
3289
- );
2700
+ throw new CborldError("ERR_NOT_CBORLD", `Unsupported CBOR-LD compression mode "${compressionMode}".`);
3290
2701
  }
3291
2702
  index++;
3292
2703
  const { buffer: buffer2, byteOffset, length } = cborldBytes;
@@ -3295,9 +2706,7 @@ async function decode5({
3295
2706
  return decode(suffix, { useMaps: false });
3296
2707
  }
3297
2708
  const decompressor = new Decompressor({ documentLoader, appContextMap });
3298
- const result = await decompressor.decompress(
3299
- { compressedBytes: suffix, diagnose }
3300
- );
2709
+ const result = await decompressor.decompress({ compressedBytes: suffix, diagnose });
3301
2710
  if (diagnose) {
3302
2711
  diagnose("Diagnostic JSON-LD result:");
3303
2712
  diagnose(inspect(result, { depth: null, colors: true }));
@@ -3568,18 +2977,14 @@ var XsdDateTimeEncoder = class extends CborldEncoder {
3568
2977
  const secondsToken = new Token(Type.uint, secondsSinceEpoch);
3569
2978
  const millisecondIndex = value.indexOf(".");
3570
2979
  if (millisecondIndex === -1) {
3571
- const expectedDate2 = new Date(
3572
- secondsSinceEpoch * 1e3
3573
- ).toISOString().replace(".000Z", "Z");
2980
+ const expectedDate2 = new Date(secondsSinceEpoch * 1e3).toISOString().replace(".000Z", "Z");
3574
2981
  if (value !== expectedDate2) {
3575
2982
  return new Token(Type.string, value);
3576
2983
  }
3577
2984
  return secondsToken;
3578
2985
  }
3579
2986
  const milliseconds = parseInt(value.substr(millisecondIndex + 1), 10);
3580
- const expectedDate = new Date(
3581
- secondsSinceEpoch * 1e3 + milliseconds
3582
- ).toISOString();
2987
+ const expectedDate = new Date(secondsSinceEpoch * 1e3 + milliseconds).toISOString();
3583
2988
  if (value !== expectedDate) {
3584
2989
  return new Token(Type.string, value);
3585
2990
  }
@@ -3654,9 +3059,7 @@ var Compressor = class extends Transformer {
3654
3059
  const isArray = Array.isArray(context);
3655
3060
  const contexts = isArray ? context : [context];
3656
3061
  for (const value of contexts) {
3657
- const encoder = ContextEncoder.createEncoder(
3658
- { value, transformer: this }
3659
- );
3062
+ const encoder = ContextEncoder.createEncoder({ value, transformer: this });
3660
3063
  entries.push(encoder || value);
3661
3064
  }
3662
3065
  const id = isArray ? CONTEXT_TERM_ID_PLURAL2 : CONTEXT_TERM_ID2;
@@ -3671,10 +3074,7 @@ var Compressor = class extends Transformer {
3671
3074
  }
3672
3075
  const def = termMap.get(key);
3673
3076
  if (def === void 0 && !(key.startsWith("@") && KEYWORDS.has(key))) {
3674
- throw new CborldError(
3675
- "ERR_UNKNOWN_CBORLD_TERM",
3676
- `Unknown term '${key}' was detected in the JSON-LD input.`
3677
- );
3077
+ throw new CborldError("ERR_UNKNOWN_CBORLD_TERM", `Unknown term '${key}' was detected in the JSON-LD input.`);
3678
3078
  }
3679
3079
  const value = obj[key];
3680
3080
  const plural = Array.isArray(value);
@@ -3685,9 +3085,7 @@ var Compressor = class extends Transformer {
3685
3085
  }
3686
3086
  _transformObjectId({ transformMap, termInfo, value }) {
3687
3087
  const { termId } = termInfo;
3688
- const encoder = UriEncoder.createEncoder(
3689
- { value, transformer: this, termInfo }
3690
- );
3088
+ const encoder = UriEncoder.createEncoder({ value, transformer: this, termInfo });
3691
3089
  transformMap.set(termId, encoder || value);
3692
3090
  }
3693
3091
  _transformObjectType({ transformMap, termInfo, value }) {
@@ -3695,18 +3093,14 @@ var Compressor = class extends Transformer {
3695
3093
  const values = plural ? value : [value];
3696
3094
  const entries = [];
3697
3095
  for (const value2 of values) {
3698
- const encoder = VocabTermEncoder.createEncoder(
3699
- { value: value2, transformer: this, termInfo }
3700
- );
3096
+ const encoder = VocabTermEncoder.createEncoder({ value: value2, transformer: this, termInfo });
3701
3097
  entries.push(encoder || value2);
3702
3098
  }
3703
3099
  transformMap.set(termId, plural ? entries : entries[0]);
3704
3100
  }
3705
3101
  _transformTypedValue({ entries, termType, value, termInfo }) {
3706
3102
  const EncoderClass = TYPE_ENCODERS.get(termType);
3707
- const encoder = EncoderClass && EncoderClass.createEncoder(
3708
- { value, transformer: this, termInfo }
3709
- );
3103
+ const encoder = EncoderClass && EncoderClass.createEncoder({ value, transformer: this, termInfo });
3710
3104
  if (encoder) {
3711
3105
  entries.push(encoder);
3712
3106
  return true;
@@ -3742,9 +3136,7 @@ async function encode5({
3742
3136
  diagnose
3743
3137
  } = {}) {
3744
3138
  if (!(compressionMode === 0 || compressionMode === 1)) {
3745
- throw new TypeError(
3746
- '"compressionMode" must be "0" (no compression) or "1" for compression mode version 1.'
3747
- );
3139
+ throw new TypeError('"compressionMode" must be "0" (no compression) or "1" for compression mode version 1.');
3748
3140
  }
3749
3141
  const prefix = new Uint8Array([217, 5, compressionMode]);
3750
3142
  let suffix;
@@ -3830,7 +3222,7 @@ __name(base32Encode, "base32Encode");
3830
3222
  // ../../../node_modules/.pnpm/@digitalbazaar+vpqr@3.0.0/node_modules/@digitalbazaar/vpqr/lib/vpqr.js
3831
3223
  var import_base32_decode = __toESM(require_base32_decode(), 1);
3832
3224
 
3833
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/Mode.js
3225
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/Mode.js
3834
3226
  var Mode;
3835
3227
  (function(Mode2) {
3836
3228
  Mode2[Mode2["Terminator"] = 0] = "Terminator";
@@ -3842,41 +3234,30 @@ var Mode;
3842
3234
  Mode2[Mode2["ECI"] = 7] = "ECI";
3843
3235
  })(Mode || (Mode = {}));
3844
3236
 
3845
- // ../../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/modules/index.js
3846
- var import_tslib = __toESM(require_tslib(), 1);
3847
- var {
3848
- __extends,
3849
- __assign,
3850
- __rest,
3851
- __decorate,
3852
- __param,
3853
- __esDecorate,
3854
- __runInitializers,
3855
- __propKey,
3856
- __setFunctionName,
3857
- __metadata,
3858
- __awaiter,
3859
- __generator,
3860
- __exportStar,
3861
- __createBinding,
3862
- __values,
3863
- __read,
3864
- __spread,
3865
- __spreadArrays,
3866
- __spreadArray,
3867
- __await,
3868
- __asyncGenerator,
3869
- __asyncDelegator,
3870
- __asyncValues,
3871
- __makeTemplateObject,
3872
- __importStar,
3873
- __importDefault,
3874
- __classPrivateFieldGet,
3875
- __classPrivateFieldSet,
3876
- __classPrivateFieldIn
3877
- } = import_tslib.default;
3237
+ // ../../../node_modules/.pnpm/tslib@2.5.3/node_modules/tslib/tslib.es6.mjs
3238
+ var extendStatics = /* @__PURE__ */ __name(function(d, b) {
3239
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
3240
+ d2.__proto__ = b2;
3241
+ } || function(d2, b2) {
3242
+ for (var p in b2)
3243
+ if (Object.prototype.hasOwnProperty.call(b2, p))
3244
+ d2[p] = b2[p];
3245
+ };
3246
+ return extendStatics(d, b);
3247
+ }, "extendStatics");
3248
+ function __extends(d, b) {
3249
+ if (typeof b !== "function" && b !== null)
3250
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3251
+ extendStatics(d, b);
3252
+ function __() {
3253
+ this.constructor = d;
3254
+ }
3255
+ __name(__, "__");
3256
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3257
+ }
3258
+ __name(__extends, "__extends");
3878
3259
 
3879
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRData.js
3260
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRData.js
3880
3261
  var QRData = /* @__PURE__ */ function() {
3881
3262
  function QRData2(mode, data) {
3882
3263
  this.bytes = [];
@@ -3936,7 +3317,7 @@ var QRData = /* @__PURE__ */ function() {
3936
3317
  return QRData2;
3937
3318
  }();
3938
3319
 
3939
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/encoding/UTF8.js
3320
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/encoding/UTF8.js
3940
3321
  function encode6(text) {
3941
3322
  var pos = 0;
3942
3323
  var length = text.length;
@@ -3964,7 +3345,7 @@ function encode6(text) {
3964
3345
  }
3965
3346
  __name(encode6, "encode");
3966
3347
 
3967
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRByte.js
3348
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRByte.js
3968
3349
  var QRByte = /* @__PURE__ */ function(_super) {
3969
3350
  __extends(QRByte2, _super);
3970
3351
  function QRByte2(data, encode$1) {
@@ -3991,7 +3372,7 @@ var QRByte = /* @__PURE__ */ function(_super) {
3991
3372
  return QRByte2;
3992
3373
  }(QRData);
3993
3374
 
3994
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRMath.js
3375
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRMath.js
3995
3376
  var EXP_TABLE = [];
3996
3377
  var LOG_TABLE = [];
3997
3378
  for (i = 0; i < 256; i++) {
@@ -4021,7 +3402,7 @@ function gexp(n) {
4021
3402
  }
4022
3403
  __name(gexp, "gexp");
4023
3404
 
4024
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Polynomial.js
3405
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Polynomial.js
4025
3406
  var Polynomial = /* @__PURE__ */ function() {
4026
3407
  function Polynomial2(num, shift) {
4027
3408
  if (shift === void 0) {
@@ -4083,7 +3464,7 @@ var Polynomial = /* @__PURE__ */ function() {
4083
3464
  return Polynomial2;
4084
3465
  }();
4085
3466
 
4086
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRUtil.js
3467
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRUtil.js
4087
3468
  var N1 = 3;
4088
3469
  var N2 = 3;
4089
3470
  var N3 = 40;
@@ -4262,7 +3643,7 @@ function calculateMaskPenalty(qrcode) {
4262
3643
  }
4263
3644
  __name(calculateMaskPenalty, "calculateMaskPenalty");
4264
3645
 
4265
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/ErrorCorrectionLevel.js
3646
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/ErrorCorrectionLevel.js
4266
3647
  var ErrorCorrectionLevel;
4267
3648
  (function(ErrorCorrectionLevel2) {
4268
3649
  ErrorCorrectionLevel2[ErrorCorrectionLevel2["L"] = 1] = "L";
@@ -4271,7 +3652,7 @@ var ErrorCorrectionLevel;
4271
3652
  ErrorCorrectionLevel2[ErrorCorrectionLevel2["H"] = 2] = "H";
4272
3653
  })(ErrorCorrectionLevel || (ErrorCorrectionLevel = {}));
4273
3654
 
4274
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/RSBlock.js
3655
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/RSBlock.js
4275
3656
  var RSBlock = /* @__PURE__ */ function() {
4276
3657
  function RSBlock2(totalCount, dataCount) {
4277
3658
  this.dataCount = dataCount;
@@ -4477,7 +3858,7 @@ var RSBlock = /* @__PURE__ */ function() {
4477
3858
  return RSBlock2;
4478
3859
  }();
4479
3860
 
4480
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/BitBuffer.js
3861
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/BitBuffer.js
4481
3862
  var BitBuffer = /* @__PURE__ */ function() {
4482
3863
  function BitBuffer2() {
4483
3864
  this.length = 0;
@@ -4511,7 +3892,7 @@ var BitBuffer = /* @__PURE__ */ function() {
4511
3892
  return BitBuffer2;
4512
3893
  }();
4513
3894
 
4514
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/OutputStream.js
3895
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/OutputStream.js
4515
3896
  var OutputStream = /* @__PURE__ */ function() {
4516
3897
  function OutputStream2() {
4517
3898
  }
@@ -4535,7 +3916,7 @@ var OutputStream = /* @__PURE__ */ function() {
4535
3916
  return OutputStream2;
4536
3917
  }();
4537
3918
 
4538
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/ByteArrayOutputStream.js
3919
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/ByteArrayOutputStream.js
4539
3920
  var ByteArrayOutputStream = /* @__PURE__ */ function(_super) {
4540
3921
  __extends(ByteArrayOutputStream2, _super);
4541
3922
  function ByteArrayOutputStream2() {
@@ -4556,7 +3937,7 @@ var ByteArrayOutputStream = /* @__PURE__ */ function(_super) {
4556
3937
  return ByteArrayOutputStream2;
4557
3938
  }(OutputStream);
4558
3939
 
4559
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/io/Base64EncodeOutputStream.js
3940
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/io/Base64EncodeOutputStream.js
4560
3941
  function encode7(ch) {
4561
3942
  if (ch >= 0) {
4562
3943
  if (ch < 26) {
@@ -4614,7 +3995,7 @@ var Base64EncodeOutputStream = /* @__PURE__ */ function(_super) {
4614
3995
  return Base64EncodeOutputStream2;
4615
3996
  }(OutputStream);
4616
3997
 
4617
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/image/GIFImage.js
3998
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/image/GIFImage.js
4618
3999
  function encodeToBase64(data) {
4619
4000
  var output = new ByteArrayOutputStream();
4620
4001
  var stream = new Base64EncodeOutputStream(output);
@@ -4807,7 +4188,7 @@ var GIFImage = /* @__PURE__ */ function() {
4807
4188
  return GIFImage2;
4808
4189
  }();
4809
4190
 
4810
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/common/MaskPattern.js
4191
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/common/MaskPattern.js
4811
4192
  function getMaskFunc(maskPattern) {
4812
4193
  switch (maskPattern) {
4813
4194
  case 0:
@@ -4848,7 +4229,7 @@ function getMaskFunc(maskPattern) {
4848
4229
  }
4849
4230
  __name(getMaskFunc, "getMaskFunc");
4850
4231
 
4851
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Writer.js
4232
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/Writer.js
4852
4233
  var PAD0 = 236;
4853
4234
  var PAD1 = 17;
4854
4235
  var toString2 = Object.prototype.toString;
@@ -5232,7 +4613,7 @@ var Encoder = /* @__PURE__ */ function() {
5232
4613
  return Encoder2;
5233
4614
  }();
5234
4615
 
5235
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/encoding/UTF16.js
4616
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/encoding/UTF16.js
5236
4617
  function encode8(text) {
5237
4618
  var length = text.length;
5238
4619
  var bytes = [];
@@ -5243,7 +4624,7 @@ function encode8(text) {
5243
4624
  }
5244
4625
  __name(encode8, "encode");
5245
4626
 
5246
- // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.0/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRAlphanumeric.js
4627
+ // ../../../node_modules/.pnpm/@nuintun+qrcode@3.3.5/node_modules/@nuintun/qrcode/esm/qrcode/encoder/QRAlphanumeric.js
5247
4628
  function getByte(byte) {
5248
4629
  if (48 <= byte && byte <= 57) {
5249
4630
  return byte - 48;
@@ -5414,7 +4795,7 @@ export {
5414
4795
  * @module QRCode
5415
4796
  * @package @nuintun/qrcode
5416
4797
  * @license MIT
5417
- * @version 3.3.0
4798
+ * @version 3.3.5
5418
4799
  * @author nuintun <nuintun@qq.com>
5419
4800
  * @description A pure JavaScript QRCode encode and decode library.
5420
4801
  * @see https://github.com/nuintun/qrcode#readme