@pod-os/core 0.11.2-4ffc440.0 → 0.11.2-540870d.0

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.
@@ -120,7 +120,7 @@ var require_regeneratorRuntime = __commonJS({
120
120
  var o2 = h;
121
121
  return function(i2, a2) {
122
122
  if (o2 === f)
123
- throw new Error("Generator is already running");
123
+ throw Error("Generator is already running");
124
124
  if (o2 === s) {
125
125
  if ("throw" === i2)
126
126
  throw a2;
@@ -281,7 +281,7 @@ var require_regeneratorRuntime = __commonJS({
281
281
  return handle(i2.catchLoc, true);
282
282
  } else {
283
283
  if (!u2)
284
- throw new Error("try statement without catch or finally");
284
+ throw Error("try statement without catch or finally");
285
285
  if (this.prev < i2.finallyLoc)
286
286
  return handle(i2.finallyLoc);
287
287
  }
@@ -324,7 +324,7 @@ var require_regeneratorRuntime = __commonJS({
324
324
  return o2;
325
325
  }
326
326
  }
327
- throw new Error("illegal catch attempt");
327
+ throw Error("illegal catch attempt");
328
328
  },
329
329
  delegateYield: function delegateYield(e2, r2, n2) {
330
330
  return this.delegate = {
@@ -5169,6 +5169,62 @@ var require_punycode = __commonJS({
5169
5169
  }
5170
5170
  });
5171
5171
 
5172
+ // ../node_modules/es-errors/index.js
5173
+ var require_es_errors = __commonJS({
5174
+ "../node_modules/es-errors/index.js"(exports, module2) {
5175
+ "use strict";
5176
+ module2.exports = Error;
5177
+ }
5178
+ });
5179
+
5180
+ // ../node_modules/es-errors/eval.js
5181
+ var require_eval = __commonJS({
5182
+ "../node_modules/es-errors/eval.js"(exports, module2) {
5183
+ "use strict";
5184
+ module2.exports = EvalError;
5185
+ }
5186
+ });
5187
+
5188
+ // ../node_modules/es-errors/range.js
5189
+ var require_range = __commonJS({
5190
+ "../node_modules/es-errors/range.js"(exports, module2) {
5191
+ "use strict";
5192
+ module2.exports = RangeError;
5193
+ }
5194
+ });
5195
+
5196
+ // ../node_modules/es-errors/ref.js
5197
+ var require_ref = __commonJS({
5198
+ "../node_modules/es-errors/ref.js"(exports, module2) {
5199
+ "use strict";
5200
+ module2.exports = ReferenceError;
5201
+ }
5202
+ });
5203
+
5204
+ // ../node_modules/es-errors/syntax.js
5205
+ var require_syntax = __commonJS({
5206
+ "../node_modules/es-errors/syntax.js"(exports, module2) {
5207
+ "use strict";
5208
+ module2.exports = SyntaxError;
5209
+ }
5210
+ });
5211
+
5212
+ // ../node_modules/es-errors/type.js
5213
+ var require_type = __commonJS({
5214
+ "../node_modules/es-errors/type.js"(exports, module2) {
5215
+ "use strict";
5216
+ module2.exports = TypeError;
5217
+ }
5218
+ });
5219
+
5220
+ // ../node_modules/es-errors/uri.js
5221
+ var require_uri = __commonJS({
5222
+ "../node_modules/es-errors/uri.js"(exports, module2) {
5223
+ "use strict";
5224
+ module2.exports = URIError;
5225
+ }
5226
+ });
5227
+
5172
5228
  // ../node_modules/has-symbols/shams.js
5173
5229
  var require_shams = __commonJS({
5174
5230
  "../node_modules/has-symbols/shams.js"(exports, module2) {
@@ -5250,11 +5306,12 @@ var require_has_proto = __commonJS({
5250
5306
  "../node_modules/has-proto/index.js"(exports, module2) {
5251
5307
  "use strict";
5252
5308
  var test = {
5309
+ __proto__: null,
5253
5310
  foo: {}
5254
5311
  };
5255
5312
  var $Object = Object;
5256
5313
  module2.exports = function hasProto() {
5257
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
5314
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
5258
5315
  };
5259
5316
  }
5260
5317
  });
@@ -5360,9 +5417,14 @@ var require_get_intrinsic = __commonJS({
5360
5417
  "../node_modules/get-intrinsic/index.js"(exports, module2) {
5361
5418
  "use strict";
5362
5419
  var undefined2;
5363
- var $SyntaxError = SyntaxError;
5420
+ var $Error = require_es_errors();
5421
+ var $EvalError = require_eval();
5422
+ var $RangeError = require_range();
5423
+ var $ReferenceError = require_ref();
5424
+ var $SyntaxError = require_syntax();
5425
+ var $TypeError = require_type();
5426
+ var $URIError = require_uri();
5364
5427
  var $Function = Function;
5365
- var $TypeError = TypeError;
5366
5428
  var getEvalledConstructor = function(expressionSyntax) {
5367
5429
  try {
5368
5430
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
@@ -5400,6 +5462,7 @@ var require_get_intrinsic = __commonJS({
5400
5462
  var needsEval = {};
5401
5463
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
5402
5464
  var INTRINSICS = {
5465
+ __proto__: null,
5403
5466
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
5404
5467
  "%Array%": Array,
5405
5468
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
@@ -5420,10 +5483,10 @@ var require_get_intrinsic = __commonJS({
5420
5483
  "%decodeURIComponent%": decodeURIComponent,
5421
5484
  "%encodeURI%": encodeURI,
5422
5485
  "%encodeURIComponent%": encodeURIComponent,
5423
- "%Error%": Error,
5486
+ "%Error%": $Error,
5424
5487
  "%eval%": eval,
5425
5488
  // eslint-disable-line no-eval
5426
- "%EvalError%": EvalError,
5489
+ "%EvalError%": $EvalError,
5427
5490
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
5428
5491
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
5429
5492
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
@@ -5445,8 +5508,8 @@ var require_get_intrinsic = __commonJS({
5445
5508
  "%parseInt%": parseInt,
5446
5509
  "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
5447
5510
  "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
5448
- "%RangeError%": RangeError,
5449
- "%ReferenceError%": ReferenceError,
5511
+ "%RangeError%": $RangeError,
5512
+ "%ReferenceError%": $ReferenceError,
5450
5513
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
5451
5514
  "%RegExp%": RegExp,
5452
5515
  "%Set%": typeof Set === "undefined" ? undefined2 : Set,
@@ -5463,7 +5526,7 @@ var require_get_intrinsic = __commonJS({
5463
5526
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
5464
5527
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
5465
5528
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
5466
- "%URIError%": URIError,
5529
+ "%URIError%": $URIError,
5467
5530
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
5468
5531
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
5469
5532
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
@@ -5500,6 +5563,7 @@ var require_get_intrinsic = __commonJS({
5500
5563
  return value;
5501
5564
  };
5502
5565
  var LEGACY_ALIASES = {
5566
+ __proto__: null,
5503
5567
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
5504
5568
  "%ArrayPrototype%": ["Array", "prototype"],
5505
5569
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -5662,34 +5726,20 @@ var require_get_intrinsic = __commonJS({
5662
5726
  }
5663
5727
  });
5664
5728
 
5665
- // ../node_modules/has-property-descriptors/index.js
5666
- var require_has_property_descriptors = __commonJS({
5667
- "../node_modules/has-property-descriptors/index.js"(exports, module2) {
5729
+ // ../node_modules/es-define-property/index.js
5730
+ var require_es_define_property = __commonJS({
5731
+ "../node_modules/es-define-property/index.js"(exports, module2) {
5668
5732
  "use strict";
5669
5733
  var GetIntrinsic = require_get_intrinsic();
5670
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
5671
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
5672
- if ($defineProperty) {
5673
- try {
5674
- $defineProperty({}, "a", { value: 1 });
5675
- return true;
5676
- } catch (e) {
5677
- return false;
5678
- }
5679
- }
5680
- return false;
5681
- };
5682
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
5683
- if (!hasPropertyDescriptors()) {
5684
- return null;
5685
- }
5734
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
5735
+ if ($defineProperty) {
5686
5736
  try {
5687
- return $defineProperty([], "length", { value: 1 }).length !== 1;
5737
+ $defineProperty({}, "a", { value: 1 });
5688
5738
  } catch (e) {
5689
- return true;
5739
+ $defineProperty = false;
5690
5740
  }
5691
- };
5692
- module2.exports = hasPropertyDescriptors;
5741
+ }
5742
+ module2.exports = $defineProperty;
5693
5743
  }
5694
5744
  });
5695
5745
 
@@ -5714,18 +5764,9 @@ var require_gopd = __commonJS({
5714
5764
  var require_define_data_property = __commonJS({
5715
5765
  "../node_modules/define-data-property/index.js"(exports, module2) {
5716
5766
  "use strict";
5717
- var hasPropertyDescriptors = require_has_property_descriptors()();
5718
- var GetIntrinsic = require_get_intrinsic();
5719
- var $defineProperty = hasPropertyDescriptors && GetIntrinsic("%Object.defineProperty%", true);
5720
- if ($defineProperty) {
5721
- try {
5722
- $defineProperty({}, "a", { value: 1 });
5723
- } catch (e) {
5724
- $defineProperty = false;
5725
- }
5726
- }
5727
- var $SyntaxError = GetIntrinsic("%SyntaxError%");
5728
- var $TypeError = GetIntrinsic("%TypeError%");
5767
+ var $defineProperty = require_es_define_property();
5768
+ var $SyntaxError = require_syntax();
5769
+ var $TypeError = require_type();
5729
5770
  var gopd = require_gopd();
5730
5771
  module2.exports = function defineDataProperty(obj, property, value) {
5731
5772
  if (!obj || typeof obj !== "object" && typeof obj !== "function") {
@@ -5767,6 +5808,28 @@ var require_define_data_property = __commonJS({
5767
5808
  }
5768
5809
  });
5769
5810
 
5811
+ // ../node_modules/has-property-descriptors/index.js
5812
+ var require_has_property_descriptors = __commonJS({
5813
+ "../node_modules/has-property-descriptors/index.js"(exports, module2) {
5814
+ "use strict";
5815
+ var $defineProperty = require_es_define_property();
5816
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
5817
+ return !!$defineProperty;
5818
+ };
5819
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
5820
+ if (!$defineProperty) {
5821
+ return null;
5822
+ }
5823
+ try {
5824
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
5825
+ } catch (e) {
5826
+ return true;
5827
+ }
5828
+ };
5829
+ module2.exports = hasPropertyDescriptors;
5830
+ }
5831
+ });
5832
+
5770
5833
  // ../node_modules/set-function-length/index.js
5771
5834
  var require_set_function_length = __commonJS({
5772
5835
  "../node_modules/set-function-length/index.js"(exports, module2) {
@@ -5775,7 +5838,7 @@ var require_set_function_length = __commonJS({
5775
5838
  var define2 = require_define_data_property();
5776
5839
  var hasDescriptors = require_has_property_descriptors()();
5777
5840
  var gOPD = require_gopd();
5778
- var $TypeError = GetIntrinsic("%TypeError%");
5841
+ var $TypeError = require_type();
5779
5842
  var $floor = GetIntrinsic("%Math.floor%");
5780
5843
  module2.exports = function setFunctionLength(fn, length) {
5781
5844
  if (typeof fn !== "function") {
@@ -5827,19 +5890,12 @@ var require_call_bind = __commonJS({
5827
5890
  var bind = require_function_bind();
5828
5891
  var GetIntrinsic = require_get_intrinsic();
5829
5892
  var setFunctionLength = require_set_function_length();
5830
- var $TypeError = GetIntrinsic("%TypeError%");
5893
+ var $TypeError = require_type();
5831
5894
  var $apply = GetIntrinsic("%Function.prototype.apply%");
5832
5895
  var $call = GetIntrinsic("%Function.prototype.call%");
5833
5896
  var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
5834
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
5897
+ var $defineProperty = require_es_define_property();
5835
5898
  var $max = GetIntrinsic("%Math.max%");
5836
- if ($defineProperty) {
5837
- try {
5838
- $defineProperty({}, "a", { value: 1 });
5839
- } catch (e) {
5840
- $defineProperty = null;
5841
- }
5842
- }
5843
5899
  module2.exports = function callBind(originalFunction) {
5844
5900
  if (typeof originalFunction !== "function") {
5845
5901
  throw new $TypeError("a function is required");
@@ -6407,7 +6463,7 @@ var require_side_channel = __commonJS({
6407
6463
  var GetIntrinsic = require_get_intrinsic();
6408
6464
  var callBound = require_callBound();
6409
6465
  var inspect = require_object_inspect();
6410
- var $TypeError = GetIntrinsic("%TypeError%");
6466
+ var $TypeError = require_type();
6411
6467
  var $WeakMap = GetIntrinsic("%WeakMap%", true);
6412
6468
  var $Map = GetIntrinsic("%Map%", true);
6413
6469
  var $weakMapGet = callBound("WeakMap.prototype.get", true);
@@ -6417,10 +6473,13 @@ var require_side_channel = __commonJS({
6417
6473
  var $mapSet = callBound("Map.prototype.set", true);
6418
6474
  var $mapHas = callBound("Map.prototype.has", true);
6419
6475
  var listGetNode = function(list, key) {
6420
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
6476
+ var prev = list;
6477
+ var curr;
6478
+ for (; (curr = prev.next) !== null; prev = curr) {
6421
6479
  if (curr.key === key) {
6422
6480
  prev.next = curr.next;
6423
- curr.next = list.next;
6481
+ curr.next = /** @type {NonNullable<typeof list.next>} */
6482
+ list.next;
6424
6483
  list.next = curr;
6425
6484
  return curr;
6426
6485
  }
@@ -6435,8 +6494,9 @@ var require_side_channel = __commonJS({
6435
6494
  if (node) {
6436
6495
  node.value = value;
6437
6496
  } else {
6438
- objects.next = {
6439
- // eslint-disable-line no-param-reassign
6497
+ objects.next = /** @type {import('.').ListNode<typeof value>} */
6498
+ {
6499
+ // eslint-disable-line no-param-reassign, no-extra-parens
6440
6500
  key,
6441
6501
  next: objects.next,
6442
6502
  value
@@ -6640,6 +6700,7 @@ var require_utils = __commonJS({
6640
6700
  return strWithoutPlus;
6641
6701
  }
6642
6702
  };
6703
+ var limit = 1024;
6643
6704
  var encode2 = function encode3(str, defaultEncoder, charset, kind, format) {
6644
6705
  if (str.length === 0) {
6645
6706
  return str;
@@ -6656,27 +6717,32 @@ var require_utils = __commonJS({
6656
6717
  });
6657
6718
  }
6658
6719
  var out = "";
6659
- for (var i = 0; i < string.length; ++i) {
6660
- var c = string.charCodeAt(i);
6661
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
6662
- out += string.charAt(i);
6663
- continue;
6664
- }
6665
- if (c < 128) {
6666
- out = out + hexTable[c];
6667
- continue;
6668
- }
6669
- if (c < 2048) {
6670
- out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
6671
- continue;
6672
- }
6673
- if (c < 55296 || c >= 57344) {
6674
- out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
6675
- continue;
6720
+ for (var j = 0; j < string.length; j += limit) {
6721
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
6722
+ var arr = [];
6723
+ for (var i = 0; i < segment.length; ++i) {
6724
+ var c = segment.charCodeAt(i);
6725
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
6726
+ arr[arr.length] = segment.charAt(i);
6727
+ continue;
6728
+ }
6729
+ if (c < 128) {
6730
+ arr[arr.length] = hexTable[c];
6731
+ continue;
6732
+ }
6733
+ if (c < 2048) {
6734
+ arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
6735
+ continue;
6736
+ }
6737
+ if (c < 55296 || c >= 57344) {
6738
+ arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6739
+ continue;
6740
+ }
6741
+ i += 1;
6742
+ c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
6743
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6676
6744
  }
6677
- i += 1;
6678
- c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
6679
- out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
6745
+ out += arr.join("");
6680
6746
  }
6681
6747
  return out;
6682
6748
  };
@@ -6766,10 +6832,13 @@ var require_stringify = __commonJS({
6766
6832
  var defaults = {
6767
6833
  addQueryPrefix: false,
6768
6834
  allowDots: false,
6835
+ allowEmptyArrays: false,
6836
+ arrayFormat: "indices",
6769
6837
  charset: "utf-8",
6770
6838
  charsetSentinel: false,
6771
6839
  delimiter: "&",
6772
6840
  encode: true,
6841
+ encodeDotInKeys: false,
6773
6842
  encoder: utils.encode,
6774
6843
  encodeValuesOnly: false,
6775
6844
  format: defaultFormat,
@@ -6786,7 +6855,7 @@ var require_stringify = __commonJS({
6786
6855
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
6787
6856
  };
6788
6857
  var sentinel = {};
6789
- var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
6858
+ var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
6790
6859
  var obj = object;
6791
6860
  var tmpSc = sideChannel;
6792
6861
  var step = 0;
@@ -6846,14 +6915,19 @@ var require_stringify = __commonJS({
6846
6915
  var keys = Object.keys(obj);
6847
6916
  objKeys = sort ? keys.sort(sort) : keys;
6848
6917
  }
6849
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix;
6918
+ var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
6919
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
6920
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
6921
+ return adjustedPrefix + "[]";
6922
+ }
6850
6923
  for (var j = 0; j < objKeys.length; ++j) {
6851
6924
  var key = objKeys[j];
6852
6925
  var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
6853
6926
  if (skipNulls && value === null) {
6854
6927
  continue;
6855
6928
  }
6856
- var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
6929
+ var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
6930
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
6857
6931
  sideChannel.set(object, step);
6858
6932
  var valueSideChannel = getSideChannel();
6859
6933
  valueSideChannel.set(sentinel, sideChannel);
@@ -6862,8 +6936,10 @@ var require_stringify = __commonJS({
6862
6936
  keyPrefix,
6863
6937
  generateArrayPrefix,
6864
6938
  commaRoundTrip,
6939
+ allowEmptyArrays,
6865
6940
  strictNullHandling,
6866
6941
  skipNulls,
6942
+ encodeDotInKeys,
6867
6943
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
6868
6944
  filter,
6869
6945
  sort,
@@ -6882,6 +6958,12 @@ var require_stringify = __commonJS({
6882
6958
  if (!opts) {
6883
6959
  return defaults;
6884
6960
  }
6961
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
6962
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
6963
+ }
6964
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
6965
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
6966
+ }
6885
6967
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
6886
6968
  throw new TypeError("Encoder has to be a function.");
6887
6969
  }
@@ -6901,13 +6983,29 @@ var require_stringify = __commonJS({
6901
6983
  if (typeof opts.filter === "function" || isArray(opts.filter)) {
6902
6984
  filter = opts.filter;
6903
6985
  }
6986
+ var arrayFormat;
6987
+ if (opts.arrayFormat in arrayPrefixGenerators) {
6988
+ arrayFormat = opts.arrayFormat;
6989
+ } else if ("indices" in opts) {
6990
+ arrayFormat = opts.indices ? "indices" : "repeat";
6991
+ } else {
6992
+ arrayFormat = defaults.arrayFormat;
6993
+ }
6994
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
6995
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
6996
+ }
6997
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
6904
6998
  return {
6905
6999
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
6906
- allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
7000
+ allowDots,
7001
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
7002
+ arrayFormat,
6907
7003
  charset,
6908
7004
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
7005
+ commaRoundTrip: opts.commaRoundTrip,
6909
7006
  delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
6910
7007
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
7008
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
6911
7009
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
6912
7010
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
6913
7011
  filter,
@@ -6935,19 +7033,8 @@ var require_stringify = __commonJS({
6935
7033
  if (typeof obj !== "object" || obj === null) {
6936
7034
  return "";
6937
7035
  }
6938
- var arrayFormat;
6939
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
6940
- arrayFormat = opts.arrayFormat;
6941
- } else if (opts && "indices" in opts) {
6942
- arrayFormat = opts.indices ? "indices" : "repeat";
6943
- } else {
6944
- arrayFormat = "indices";
6945
- }
6946
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
6947
- if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
6948
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
6949
- }
6950
- var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
7036
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
7037
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
6951
7038
  if (!objKeys) {
6952
7039
  objKeys = Object.keys(obj);
6953
7040
  }
@@ -6965,8 +7052,10 @@ var require_stringify = __commonJS({
6965
7052
  key,
6966
7053
  generateArrayPrefix,
6967
7054
  commaRoundTrip,
7055
+ options.allowEmptyArrays,
6968
7056
  options.strictNullHandling,
6969
7057
  options.skipNulls,
7058
+ options.encodeDotInKeys,
6970
7059
  options.encode ? options.encoder : null,
6971
7060
  options.filter,
6972
7061
  options.sort,
@@ -7002,15 +7091,18 @@ var require_parse = __commonJS({
7002
7091
  var isArray = Array.isArray;
7003
7092
  var defaults = {
7004
7093
  allowDots: false,
7094
+ allowEmptyArrays: false,
7005
7095
  allowPrototypes: false,
7006
7096
  allowSparse: false,
7007
7097
  arrayLimit: 20,
7008
7098
  charset: "utf-8",
7009
7099
  charsetSentinel: false,
7010
7100
  comma: false,
7101
+ decodeDotInKeys: false,
7011
7102
  decoder: utils.decode,
7012
7103
  delimiter: "&",
7013
7104
  depth: 5,
7105
+ duplicates: "combine",
7014
7106
  ignoreQueryPrefix: false,
7015
7107
  interpretNumericEntities: false,
7016
7108
  parameterLimit: 1e3,
@@ -7078,9 +7170,10 @@ var require_parse = __commonJS({
7078
7170
  if (part.indexOf("[]=") > -1) {
7079
7171
  val = isArray(val) ? [val] : val;
7080
7172
  }
7081
- if (has.call(obj, key)) {
7173
+ var existing = has.call(obj, key);
7174
+ if (existing && options.duplicates === "combine") {
7082
7175
  obj[key] = utils.combine(obj[key], val);
7083
- } else {
7176
+ } else if (!existing || options.duplicates === "last") {
7084
7177
  obj[key] = val;
7085
7178
  }
7086
7179
  }
@@ -7092,18 +7185,19 @@ var require_parse = __commonJS({
7092
7185
  var obj;
7093
7186
  var root = chain[i];
7094
7187
  if (root === "[]" && options.parseArrays) {
7095
- obj = [].concat(leaf);
7188
+ obj = options.allowEmptyArrays && leaf === "" ? [] : [].concat(leaf);
7096
7189
  } else {
7097
7190
  obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
7098
7191
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
7099
- var index = parseInt(cleanRoot, 10);
7100
- if (!options.parseArrays && cleanRoot === "") {
7192
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
7193
+ var index = parseInt(decodedRoot, 10);
7194
+ if (!options.parseArrays && decodedRoot === "") {
7101
7195
  obj = { 0: leaf };
7102
- } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
7196
+ } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
7103
7197
  obj = [];
7104
7198
  obj[index] = leaf;
7105
- } else if (cleanRoot !== "__proto__") {
7106
- obj[cleanRoot] = leaf;
7199
+ } else if (decodedRoot !== "__proto__") {
7200
+ obj[decodedRoot] = leaf;
7107
7201
  }
7108
7202
  }
7109
7203
  leaf = obj;
@@ -7147,25 +7241,39 @@ var require_parse = __commonJS({
7147
7241
  if (!opts) {
7148
7242
  return defaults;
7149
7243
  }
7150
- if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
7244
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
7245
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
7246
+ }
7247
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
7248
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
7249
+ }
7250
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
7151
7251
  throw new TypeError("Decoder has to be a function.");
7152
7252
  }
7153
7253
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
7154
7254
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
7155
7255
  }
7156
7256
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
7257
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
7258
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
7259
+ throw new TypeError("The duplicates option must be either combine, first, or last");
7260
+ }
7261
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
7157
7262
  return {
7158
- allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
7263
+ allowDots,
7264
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
7159
7265
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
7160
7266
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
7161
7267
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
7162
7268
  charset,
7163
7269
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
7164
7270
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
7271
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
7165
7272
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
7166
7273
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
7167
7274
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
7168
7275
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
7276
+ duplicates,
7169
7277
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
7170
7278
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
7171
7279
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
@@ -13047,7 +13155,7 @@ function toPrimitive(t, r) {
13047
13155
  // ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
13048
13156
  function toPropertyKey(t) {
13049
13157
  var i = toPrimitive(t, "string");
13050
- return "symbol" == _typeof(i) ? i : String(i);
13158
+ return "symbol" == _typeof(i) ? i : i + "";
13051
13159
  }
13052
13160
 
13053
13161
  // ../node_modules/@babel/runtime/helpers/esm/createClass.js
@@ -13099,6 +13207,24 @@ function _assertThisInitialized(self2) {
13099
13207
  return self2;
13100
13208
  }
13101
13209
 
13210
+ // ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
13211
+ function _possibleConstructorReturn(self2, call) {
13212
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
13213
+ return call;
13214
+ } else if (call !== void 0) {
13215
+ throw new TypeError("Derived constructors may only return object or undefined");
13216
+ }
13217
+ return _assertThisInitialized(self2);
13218
+ }
13219
+
13220
+ // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
13221
+ function _getPrototypeOf(o) {
13222
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
13223
+ return o2.__proto__ || Object.getPrototypeOf(o2);
13224
+ };
13225
+ return _getPrototypeOf(o);
13226
+ }
13227
+
13102
13228
  // ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
13103
13229
  function _setPrototypeOf(o, p) {
13104
13230
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
@@ -13127,24 +13253,6 @@ function _inherits(subClass, superClass) {
13127
13253
  _setPrototypeOf(subClass, superClass);
13128
13254
  }
13129
13255
 
13130
- // ../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
13131
- function _possibleConstructorReturn(self2, call) {
13132
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
13133
- return call;
13134
- } else if (call !== void 0) {
13135
- throw new TypeError("Derived constructors may only return object or undefined");
13136
- }
13137
- return _assertThisInitialized(self2);
13138
- }
13139
-
13140
- // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
13141
- function _getPrototypeOf(o) {
13142
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
13143
- return o2.__proto__ || Object.getPrototypeOf(o2);
13144
- };
13145
- return _getPrototypeOf(o);
13146
- }
13147
-
13148
13256
  // ../node_modules/rdflib/esm/class-order.js
13149
13257
  var ClassOrder = {
13150
13258
  "Literal": 1,
@@ -13165,7 +13273,7 @@ var Node2 = /* @__PURE__ */ function() {
13165
13273
  _defineProperty(this, "value", void 0);
13166
13274
  this.value = value;
13167
13275
  }
13168
- _createClass(Node3, [{
13276
+ return _createClass(Node3, [{
13169
13277
  key: "substitute",
13170
13278
  value: function substitute(bindings) {
13171
13279
  return this;
@@ -13255,54 +13363,37 @@ var Node2 = /* @__PURE__ */ function() {
13255
13363
  throw new Error("Node.toString() is abstract - see the subclasses instead");
13256
13364
  }
13257
13365
  }]);
13258
- return Node3;
13259
13366
  }();
13260
13367
  _defineProperty(Node2, "fromValue", void 0);
13261
13368
  _defineProperty(Node2, "toJS", void 0);
13262
13369
 
13263
13370
  // ../node_modules/rdflib/esm/blank-node.js
13264
- function _createSuper(Derived) {
13265
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
13266
- return function _createSuperInternal() {
13267
- var Super = _getPrototypeOf(Derived), result;
13268
- if (hasNativeReflectConstruct) {
13269
- var NewTarget = _getPrototypeOf(this).constructor;
13270
- result = Reflect.construct(Super, arguments, NewTarget);
13271
- } else {
13272
- result = Super.apply(this, arguments);
13273
- }
13274
- return _possibleConstructorReturn(this, result);
13275
- };
13371
+ function _callSuper(t, o, e) {
13372
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13276
13373
  }
13277
13374
  function _isNativeReflectConstruct() {
13278
- if (typeof Reflect === "undefined" || !Reflect.construct)
13279
- return false;
13280
- if (Reflect.construct.sham)
13281
- return false;
13282
- if (typeof Proxy === "function")
13283
- return true;
13284
13375
  try {
13285
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13376
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13286
13377
  }));
13287
- return true;
13288
- } catch (e) {
13289
- return false;
13378
+ } catch (t2) {
13290
13379
  }
13380
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct10() {
13381
+ return !!t;
13382
+ })();
13291
13383
  }
13292
13384
  var BlankNode = /* @__PURE__ */ function(_Node) {
13293
- _inherits(BlankNode3, _Node);
13294
- var _super = _createSuper(BlankNode3);
13295
13385
  function BlankNode3(id3) {
13296
13386
  var _this;
13297
13387
  _classCallCheck(this, BlankNode3);
13298
- _this = _super.call(this, BlankNode3.getId(id3));
13299
- _defineProperty(_assertThisInitialized(_this), "termType", BlankNodeTermType);
13300
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.BlankNode);
13301
- _defineProperty(_assertThisInitialized(_this), "isBlank", 1);
13302
- _defineProperty(_assertThisInitialized(_this), "isVar", 1);
13388
+ _this = _callSuper(this, BlankNode3, [BlankNode3.getId(id3)]);
13389
+ _defineProperty(_this, "termType", BlankNodeTermType);
13390
+ _defineProperty(_this, "classOrder", class_order_default.BlankNode);
13391
+ _defineProperty(_this, "isBlank", 1);
13392
+ _defineProperty(_this, "isVar", 1);
13303
13393
  return _this;
13304
13394
  }
13305
- _createClass(BlankNode3, [{
13395
+ _inherits(BlankNode3, _Node);
13396
+ return _createClass(BlankNode3, [{
13306
13397
  key: "id",
13307
13398
  get: function get() {
13308
13399
  return this.value;
@@ -13364,7 +13455,6 @@ var BlankNode = /* @__PURE__ */ function(_Node) {
13364
13455
  return "n" + BlankNode3.nextId++;
13365
13456
  }
13366
13457
  }]);
13367
- return BlankNode3;
13368
13458
  }(Node2);
13369
13459
  _defineProperty(BlankNode, "nextId", 0);
13370
13460
  _defineProperty(BlankNode, "NTAnonymousNodePrefix", "_:");
@@ -13378,43 +13468,26 @@ function termValue(node) {
13378
13468
  }
13379
13469
 
13380
13470
  // ../node_modules/rdflib/esm/named-node.js
13381
- function _createSuper2(Derived) {
13382
- var hasNativeReflectConstruct = _isNativeReflectConstruct2();
13383
- return function _createSuperInternal() {
13384
- var Super = _getPrototypeOf(Derived), result;
13385
- if (hasNativeReflectConstruct) {
13386
- var NewTarget = _getPrototypeOf(this).constructor;
13387
- result = Reflect.construct(Super, arguments, NewTarget);
13388
- } else {
13389
- result = Super.apply(this, arguments);
13390
- }
13391
- return _possibleConstructorReturn(this, result);
13392
- };
13471
+ function _callSuper2(t, o, e) {
13472
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13393
13473
  }
13394
13474
  function _isNativeReflectConstruct2() {
13395
- if (typeof Reflect === "undefined" || !Reflect.construct)
13396
- return false;
13397
- if (Reflect.construct.sham)
13398
- return false;
13399
- if (typeof Proxy === "function")
13400
- return true;
13401
13475
  try {
13402
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13476
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13403
13477
  }));
13404
- return true;
13405
- } catch (e) {
13406
- return false;
13478
+ } catch (t2) {
13407
13479
  }
13480
+ return (_isNativeReflectConstruct2 = function _isNativeReflectConstruct10() {
13481
+ return !!t;
13482
+ })();
13408
13483
  }
13409
13484
  var NamedNode = /* @__PURE__ */ function(_Node) {
13410
- _inherits(NamedNode3, _Node);
13411
- var _super = _createSuper2(NamedNode3);
13412
13485
  function NamedNode3(iri) {
13413
13486
  var _this;
13414
13487
  _classCallCheck(this, NamedNode3);
13415
- _this = _super.call(this, termValue(iri));
13416
- _defineProperty(_assertThisInitialized(_this), "termType", NamedNodeTermType);
13417
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.NamedNode);
13488
+ _this = _callSuper2(this, NamedNode3, [termValue(iri)]);
13489
+ _defineProperty(_this, "termType", NamedNodeTermType);
13490
+ _defineProperty(_this, "classOrder", class_order_default.NamedNode);
13418
13491
  if (!_this.value) {
13419
13492
  throw new Error("Missing IRI for NamedNode");
13420
13493
  }
@@ -13427,7 +13500,8 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
13427
13500
  }
13428
13501
  return _this;
13429
13502
  }
13430
- _createClass(NamedNode3, [{
13503
+ _inherits(NamedNode3, _Node);
13504
+ return _createClass(NamedNode3, [{
13431
13505
  key: "dir",
13432
13506
  value: function dir() {
13433
13507
  var str = this.value.split("#")[0];
@@ -13507,7 +13581,6 @@ var NamedNode = /* @__PURE__ */ function(_Node) {
13507
13581
  return new NamedNode3(value);
13508
13582
  }
13509
13583
  }]);
13510
- return NamedNode3;
13511
13584
  }(Node2);
13512
13585
 
13513
13586
  // ../node_modules/rdflib/esm/xsd-internal.js
@@ -13522,46 +13595,29 @@ var xsd_internal_default = {
13522
13595
  };
13523
13596
 
13524
13597
  // ../node_modules/rdflib/esm/literal.js
13525
- function _createSuper3(Derived) {
13526
- var hasNativeReflectConstruct = _isNativeReflectConstruct3();
13527
- return function _createSuperInternal() {
13528
- var Super = _getPrototypeOf(Derived), result;
13529
- if (hasNativeReflectConstruct) {
13530
- var NewTarget = _getPrototypeOf(this).constructor;
13531
- result = Reflect.construct(Super, arguments, NewTarget);
13532
- } else {
13533
- result = Super.apply(this, arguments);
13534
- }
13535
- return _possibleConstructorReturn(this, result);
13536
- };
13598
+ function _callSuper3(t, o, e) {
13599
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13537
13600
  }
13538
13601
  function _isNativeReflectConstruct3() {
13539
- if (typeof Reflect === "undefined" || !Reflect.construct)
13540
- return false;
13541
- if (Reflect.construct.sham)
13542
- return false;
13543
- if (typeof Proxy === "function")
13544
- return true;
13545
13602
  try {
13546
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13603
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13547
13604
  }));
13548
- return true;
13549
- } catch (e) {
13550
- return false;
13605
+ } catch (t2) {
13551
13606
  }
13607
+ return (_isNativeReflectConstruct3 = function _isNativeReflectConstruct10() {
13608
+ return !!t;
13609
+ })();
13552
13610
  }
13553
13611
  var Literal = /* @__PURE__ */ function(_Node) {
13554
- _inherits(Literal3, _Node);
13555
- var _super = _createSuper3(Literal3);
13556
13612
  function Literal3(value, language, datatype) {
13557
13613
  var _this;
13558
13614
  _classCallCheck(this, Literal3);
13559
- _this = _super.call(this, value);
13560
- _defineProperty(_assertThisInitialized(_this), "termType", LiteralTermType);
13561
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Literal);
13562
- _defineProperty(_assertThisInitialized(_this), "datatype", xsd_internal_default.string);
13563
- _defineProperty(_assertThisInitialized(_this), "isVar", 0);
13564
- _defineProperty(_assertThisInitialized(_this), "language", "");
13615
+ _this = _callSuper3(this, Literal3, [value]);
13616
+ _defineProperty(_this, "termType", LiteralTermType);
13617
+ _defineProperty(_this, "classOrder", class_order_default.Literal);
13618
+ _defineProperty(_this, "datatype", xsd_internal_default.string);
13619
+ _defineProperty(_this, "isVar", 0);
13620
+ _defineProperty(_this, "language", "");
13565
13621
  if (language) {
13566
13622
  _this.language = language;
13567
13623
  _this.datatype = xsd_internal_default.langString;
@@ -13572,7 +13628,8 @@ var Literal = /* @__PURE__ */ function(_Node) {
13572
13628
  }
13573
13629
  return _this;
13574
13630
  }
13575
- _createClass(Literal3, [{
13631
+ _inherits(Literal3, _Node);
13632
+ return _createClass(Literal3, [{
13576
13633
  key: "copy",
13577
13634
  value: function copy() {
13578
13635
  return new Literal3(this.value, this.lang, this.datatype);
@@ -13703,7 +13760,6 @@ var Literal = /* @__PURE__ */ function(_Node) {
13703
13760
  throw new Error("Can't make literal from " + value + " of type " + _typeof(value));
13704
13761
  }
13705
13762
  }]);
13706
- return Literal3;
13707
13763
  }(Node2);
13708
13764
 
13709
13765
  // ../node_modules/rdflib/esm/utils/default-graph-uri.js
@@ -13711,47 +13767,31 @@ var defaultGraphURI = "chrome:theSession";
13711
13767
  var defaultGraphNode = new NamedNode(defaultGraphURI);
13712
13768
 
13713
13769
  // ../node_modules/rdflib/esm/default-graph.js
13714
- function _createSuper4(Derived) {
13715
- var hasNativeReflectConstruct = _isNativeReflectConstruct4();
13716
- return function _createSuperInternal() {
13717
- var Super = _getPrototypeOf(Derived), result;
13718
- if (hasNativeReflectConstruct) {
13719
- var NewTarget = _getPrototypeOf(this).constructor;
13720
- result = Reflect.construct(Super, arguments, NewTarget);
13721
- } else {
13722
- result = Super.apply(this, arguments);
13723
- }
13724
- return _possibleConstructorReturn(this, result);
13725
- };
13770
+ function _callSuper4(t, o, e) {
13771
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
13726
13772
  }
13727
13773
  function _isNativeReflectConstruct4() {
13728
- if (typeof Reflect === "undefined" || !Reflect.construct)
13729
- return false;
13730
- if (Reflect.construct.sham)
13731
- return false;
13732
- if (typeof Proxy === "function")
13733
- return true;
13734
13774
  try {
13735
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13775
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
13736
13776
  }));
13737
- return true;
13738
- } catch (e) {
13739
- return false;
13777
+ } catch (t2) {
13740
13778
  }
13779
+ return (_isNativeReflectConstruct4 = function _isNativeReflectConstruct10() {
13780
+ return !!t;
13781
+ })();
13741
13782
  }
13742
13783
  var DefaultGraph = /* @__PURE__ */ function(_Node) {
13743
- _inherits(DefaultGraph3, _Node);
13744
- var _super = _createSuper4(DefaultGraph3);
13745
13784
  function DefaultGraph3() {
13746
13785
  var _this;
13747
13786
  _classCallCheck(this, DefaultGraph3);
13748
- _this = _super.call(this, "");
13749
- _defineProperty(_assertThisInitialized(_this), "value", "");
13750
- _defineProperty(_assertThisInitialized(_this), "termType", DefaultGraphTermType);
13751
- _defineProperty(_assertThisInitialized(_this), "uri", defaultGraphURI);
13787
+ _this = _callSuper4(this, DefaultGraph3, [""]);
13788
+ _defineProperty(_this, "value", "");
13789
+ _defineProperty(_this, "termType", DefaultGraphTermType);
13790
+ _defineProperty(_this, "uri", defaultGraphURI);
13752
13791
  return _this;
13753
13792
  }
13754
- _createClass(DefaultGraph3, [{
13793
+ _inherits(DefaultGraph3, _Node);
13794
+ return _createClass(DefaultGraph3, [{
13755
13795
  key: "toCanonical",
13756
13796
  value: function toCanonical() {
13757
13797
  return this.value;
@@ -13762,7 +13802,6 @@ var DefaultGraph = /* @__PURE__ */ function(_Node) {
13762
13802
  return "DefaultGraph";
13763
13803
  }
13764
13804
  }]);
13765
- return DefaultGraph3;
13766
13805
  }(Node2);
13767
13806
  function isDefaultGraph(object) {
13768
13807
  return !!object && object.termType === DefaultGraphTermType;
@@ -13782,7 +13821,7 @@ var Statement = /* @__PURE__ */ function() {
13782
13821
  this.object = Node2.fromValue(object);
13783
13822
  this.graph = graph3 == void 0 ? defaultGraph : Node2.fromValue(graph3);
13784
13823
  }
13785
- _createClass(Statement2, [{
13824
+ return _createClass(Statement2, [{
13786
13825
  key: "why",
13787
13826
  get: function get() {
13788
13827
  return this.graph;
@@ -13838,7 +13877,6 @@ var Statement = /* @__PURE__ */ function() {
13838
13877
  return this.toNT();
13839
13878
  }
13840
13879
  }]);
13841
- return Statement2;
13842
13880
  }();
13843
13881
 
13844
13882
  // ../node_modules/rdflib/esm/uri.js
@@ -14011,52 +14049,36 @@ function refTo(base, uri) {
14011
14049
  }
14012
14050
 
14013
14051
  // ../node_modules/rdflib/esm/variable.js
14014
- function _createSuper5(Derived) {
14015
- var hasNativeReflectConstruct = _isNativeReflectConstruct5();
14016
- return function _createSuperInternal() {
14017
- var Super = _getPrototypeOf(Derived), result;
14018
- if (hasNativeReflectConstruct) {
14019
- var NewTarget = _getPrototypeOf(this).constructor;
14020
- result = Reflect.construct(Super, arguments, NewTarget);
14021
- } else {
14022
- result = Super.apply(this, arguments);
14023
- }
14024
- return _possibleConstructorReturn(this, result);
14025
- };
14052
+ function _callSuper5(t, o, e) {
14053
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
14026
14054
  }
14027
14055
  function _isNativeReflectConstruct5() {
14028
- if (typeof Reflect === "undefined" || !Reflect.construct)
14029
- return false;
14030
- if (Reflect.construct.sham)
14031
- return false;
14032
- if (typeof Proxy === "function")
14033
- return true;
14034
14056
  try {
14035
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14057
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14036
14058
  }));
14037
- return true;
14038
- } catch (e) {
14039
- return false;
14059
+ } catch (t2) {
14040
14060
  }
14061
+ return (_isNativeReflectConstruct5 = function _isNativeReflectConstruct10() {
14062
+ return !!t;
14063
+ })();
14041
14064
  }
14042
14065
  var Variable = /* @__PURE__ */ function(_Node) {
14043
- _inherits(Variable3, _Node);
14044
- var _super = _createSuper5(Variable3);
14045
14066
  function Variable3() {
14046
14067
  var _this;
14047
14068
  var name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
14048
14069
  _classCallCheck(this, Variable3);
14049
- _this = _super.call(this, name);
14050
- _defineProperty(_assertThisInitialized(_this), "termType", VariableTermType);
14051
- _defineProperty(_assertThisInitialized(_this), "base", "varid:");
14052
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Variable);
14053
- _defineProperty(_assertThisInitialized(_this), "isVar", 1);
14054
- _defineProperty(_assertThisInitialized(_this), "uri", void 0);
14070
+ _this = _callSuper5(this, Variable3, [name]);
14071
+ _defineProperty(_this, "termType", VariableTermType);
14072
+ _defineProperty(_this, "base", "varid:");
14073
+ _defineProperty(_this, "classOrder", class_order_default.Variable);
14074
+ _defineProperty(_this, "isVar", 1);
14075
+ _defineProperty(_this, "uri", void 0);
14055
14076
  _this.base = "varid:";
14056
14077
  _this.uri = join(name, _this.base);
14057
14078
  return _this;
14058
14079
  }
14059
- _createClass(Variable3, [{
14080
+ _inherits(Variable3, _Node);
14081
+ return _createClass(Variable3, [{
14060
14082
  key: "equals",
14061
14083
  value: function equals2(other) {
14062
14084
  if (!other) {
@@ -14089,7 +14111,6 @@ var Variable = /* @__PURE__ */ function(_Node) {
14089
14111
  return "?".concat(variable4.uri);
14090
14112
  }
14091
14113
  }]);
14092
- return Variable3;
14093
14114
  }(Node2);
14094
14115
 
14095
14116
  // ../node_modules/rdflib/esm/factories/factory-types.js
@@ -14105,10 +14126,9 @@ var Feature = /* @__PURE__ */ function(Feature2) {
14105
14126
  }({});
14106
14127
 
14107
14128
  // ../node_modules/rdflib/esm/factories/canonical-data-factory.js
14108
- var _supports;
14109
14129
  var _defaultGraph = new DefaultGraph();
14110
14130
  var CanonicalDataFactory = {
14111
- supports: (_supports = {}, _defineProperty(_supports, Feature.collections, false), _defineProperty(_supports, Feature.defaultGraphType, false), _defineProperty(_supports, Feature.equalsMethod, true), _defineProperty(_supports, Feature.identity, false), _defineProperty(_supports, Feature.id, true), _defineProperty(_supports, Feature.reversibleId, false), _defineProperty(_supports, Feature.variableType, true), _supports),
14131
+ supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, false), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
14112
14132
  /**
14113
14133
  * Creates a new blank node
14114
14134
  * @param value - The blank node's identifier
@@ -14259,33 +14279,18 @@ var CanonicalDataFactory = {
14259
14279
  var canonical_data_factory_default = CanonicalDataFactory;
14260
14280
 
14261
14281
  // ../node_modules/rdflib/esm/collection.js
14262
- function _createSuper6(Derived) {
14263
- var hasNativeReflectConstruct = _isNativeReflectConstruct6();
14264
- return function _createSuperInternal() {
14265
- var Super = _getPrototypeOf(Derived), result;
14266
- if (hasNativeReflectConstruct) {
14267
- var NewTarget = _getPrototypeOf(this).constructor;
14268
- result = Reflect.construct(Super, arguments, NewTarget);
14269
- } else {
14270
- result = Super.apply(this, arguments);
14271
- }
14272
- return _possibleConstructorReturn(this, result);
14273
- };
14282
+ function _callSuper6(t, o, e) {
14283
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
14274
14284
  }
14275
14285
  function _isNativeReflectConstruct6() {
14276
- if (typeof Reflect === "undefined" || !Reflect.construct)
14277
- return false;
14278
- if (Reflect.construct.sham)
14279
- return false;
14280
- if (typeof Proxy === "function")
14281
- return true;
14282
14286
  try {
14283
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14287
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
14284
14288
  }));
14285
- return true;
14286
- } catch (e) {
14287
- return false;
14289
+ } catch (t2) {
14288
14290
  }
14291
+ return (_isNativeReflectConstruct6 = function _isNativeReflectConstruct10() {
14292
+ return !!t;
14293
+ })();
14289
14294
  }
14290
14295
  function fromValue(value) {
14291
14296
  if (typeof value === "undefined" || value === null) {
@@ -14300,18 +14305,16 @@ function fromValue(value) {
14300
14305
  return Literal.fromValue(value);
14301
14306
  }
14302
14307
  var Collection = /* @__PURE__ */ function(_Node) {
14303
- _inherits(Collection2, _Node);
14304
- var _super = _createSuper6(Collection2);
14305
14308
  function Collection2(initial) {
14306
14309
  var _this;
14307
14310
  _classCallCheck(this, Collection2);
14308
- _this = _super.call(this, (BlankNode.nextId++).toString());
14309
- _defineProperty(_assertThisInitialized(_this), "termType", CollectionTermType);
14310
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Collection);
14311
- _defineProperty(_assertThisInitialized(_this), "closed", false);
14312
- _defineProperty(_assertThisInitialized(_this), "compareTerm", BlankNode.prototype.compareTerm);
14313
- _defineProperty(_assertThisInitialized(_this), "elements", []);
14314
- _defineProperty(_assertThisInitialized(_this), "isVar", 0);
14311
+ _this = _callSuper6(this, Collection2, [(BlankNode.nextId++).toString()]);
14312
+ _defineProperty(_this, "termType", CollectionTermType);
14313
+ _defineProperty(_this, "classOrder", class_order_default.Collection);
14314
+ _defineProperty(_this, "closed", false);
14315
+ _defineProperty(_this, "compareTerm", BlankNode.prototype.compareTerm);
14316
+ _defineProperty(_this, "elements", []);
14317
+ _defineProperty(_this, "isVar", 0);
14315
14318
  if (initial && initial.length > 0) {
14316
14319
  initial.forEach(function(element) {
14317
14320
  _this.elements.push(fromValue(element));
@@ -14319,7 +14322,8 @@ var Collection = /* @__PURE__ */ function(_Node) {
14319
14322
  }
14320
14323
  return _this;
14321
14324
  }
14322
- _createClass(Collection2, [{
14325
+ _inherits(Collection2, _Node);
14326
+ return _createClass(Collection2, [{
14323
14327
  key: "id",
14324
14328
  get: function get() {
14325
14329
  return this.value;
@@ -14396,7 +14400,6 @@ var Collection = /* @__PURE__ */ function(_Node) {
14396
14400
  return BlankNode.NTAnonymousNodePrefix + collection2.id;
14397
14401
  }
14398
14402
  }]);
14399
- return Collection2;
14400
14403
  }(Node2);
14401
14404
  _defineProperty(Collection, "termType", CollectionTermType);
14402
14405
 
@@ -14686,7 +14689,7 @@ var Serializer = /* @__PURE__ */ function() {
14686
14689
  this.rdfFactory = store.rdfFactory || canonical_data_factory_default;
14687
14690
  this.xsd = createXSD(this.rdfFactory);
14688
14691
  }
14689
- _createClass(Serializer2, [{
14692
+ return _createClass(Serializer2, [{
14690
14693
  key: "setBase",
14691
14694
  value: function setBase(base) {
14692
14695
  this.base = base;
@@ -15555,7 +15558,6 @@ var Serializer = /* @__PURE__ */ function() {
15555
15558
  return JSON.stringify(jsonldObj, null, 2);
15556
15559
  }
15557
15560
  }]);
15558
- return Serializer2;
15559
15561
  }();
15560
15562
  function hexify(str) {
15561
15563
  return encodeURI(str);
@@ -15734,37 +15736,20 @@ function _arrayLikeToArray(arr, len) {
15734
15736
  arr2[i] = arr[i];
15735
15737
  return arr2;
15736
15738
  }
15737
- function _createSuper7(Derived) {
15738
- var hasNativeReflectConstruct = _isNativeReflectConstruct7();
15739
- return function _createSuperInternal() {
15740
- var Super = _getPrototypeOf(Derived), result;
15741
- if (hasNativeReflectConstruct) {
15742
- var NewTarget = _getPrototypeOf(this).constructor;
15743
- result = Reflect.construct(Super, arguments, NewTarget);
15744
- } else {
15745
- result = Super.apply(this, arguments);
15746
- }
15747
- return _possibleConstructorReturn(this, result);
15748
- };
15739
+ function _callSuper7(t, o, e) {
15740
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
15749
15741
  }
15750
15742
  function _isNativeReflectConstruct7() {
15751
- if (typeof Reflect === "undefined" || !Reflect.construct)
15752
- return false;
15753
- if (Reflect.construct.sham)
15754
- return false;
15755
- if (typeof Proxy === "function")
15756
- return true;
15757
15743
  try {
15758
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15744
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15759
15745
  }));
15760
- return true;
15761
- } catch (e) {
15762
- return false;
15746
+ } catch (t2) {
15763
15747
  }
15748
+ return (_isNativeReflectConstruct7 = function _isNativeReflectConstruct10() {
15749
+ return !!t;
15750
+ })();
15764
15751
  }
15765
15752
  var Formula = /* @__PURE__ */ function(_Node) {
15766
- _inherits(Formula2, _Node);
15767
- var _super = _createSuper7(Formula2);
15768
15753
  function Formula2() {
15769
15754
  var _this;
15770
15755
  var statements = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
@@ -15773,17 +15758,17 @@ var Formula = /* @__PURE__ */ function(_Node) {
15773
15758
  var optional = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [];
15774
15759
  var opts = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {};
15775
15760
  _classCallCheck(this, Formula2);
15776
- _this = _super.call(this, "");
15761
+ _this = _callSuper7(this, Formula2, [""]);
15777
15762
  _this.statements = statements;
15778
15763
  _this.constraints = constraints;
15779
15764
  _this.initBindings = initBindings;
15780
15765
  _this.optional = optional;
15781
- _defineProperty(_assertThisInitialized(_this), "termType", GraphTermType);
15782
- _defineProperty(_assertThisInitialized(_this), "classOrder", class_order_default.Graph);
15783
- _defineProperty(_assertThisInitialized(_this), "fetcher", void 0);
15784
- _defineProperty(_assertThisInitialized(_this), "isVar", 0);
15785
- _defineProperty(_assertThisInitialized(_this), "ns", Namespace);
15786
- _defineProperty(_assertThisInitialized(_this), "rdfFactory", void 0);
15766
+ _defineProperty(_this, "termType", GraphTermType);
15767
+ _defineProperty(_this, "classOrder", class_order_default.Graph);
15768
+ _defineProperty(_this, "fetcher", void 0);
15769
+ _defineProperty(_this, "isVar", 0);
15770
+ _defineProperty(_this, "ns", Namespace);
15771
+ _defineProperty(_this, "rdfFactory", void 0);
15787
15772
  _this.rdfFactory = opts && opts.rdfFactory || canonical_data_factory_default;
15788
15773
  var _iterator = _createForOfIteratorHelper(appliedFactoryMethods), _step;
15789
15774
  try {
@@ -15804,7 +15789,8 @@ var Formula = /* @__PURE__ */ function(_Node) {
15804
15789
  }
15805
15790
  return _this;
15806
15791
  }
15807
- _createClass(Formula2, [{
15792
+ _inherits(Formula2, _Node);
15793
+ return _createClass(Formula2, [{
15808
15794
  key: "add",
15809
15795
  value: function add(subject, predicate, object, graph3) {
15810
15796
  var _this2 = this;
@@ -16531,7 +16517,6 @@ var Formula = /* @__PURE__ */ function(_Node) {
16531
16517
  return this.statementsMatching(s, p, o, g, false).length;
16532
16518
  }
16533
16519
  }]);
16534
- return Formula2;
16535
16520
  }(Node2);
16536
16521
 
16537
16522
  // ../node_modules/rdflib/esm/node.js
@@ -17317,7 +17302,7 @@ var SinkParser = /* @__PURE__ */ function() {
17317
17302
  this._context = this._formula;
17318
17303
  this._parentContext = null;
17319
17304
  }
17320
- _createClass(SinkParser2, [{
17305
+ return _createClass(SinkParser2, [{
17321
17306
  key: "here",
17322
17307
  value: function here(i) {
17323
17308
  return this._genPrefix + "_L" + this.lines + "C" + (i - this.startOfLine + 1);
@@ -18443,7 +18428,6 @@ var SinkParser = /* @__PURE__ */ function() {
18443
18428
  return new pyjslib_Tuple([j, uch]);
18444
18429
  }
18445
18430
  }]);
18446
- return SinkParser2;
18447
18431
  }();
18448
18432
  function __OLD_BadSyntax(uri, lines, str, i, why) {
18449
18433
  this._str = str.encode("utf-8");
@@ -18481,30 +18465,29 @@ function BadSyntax(uri, lines, str, i, why) {
18481
18465
  }
18482
18466
 
18483
18467
  // ../node_modules/rdflib/esm/factories/extended-term-factory.js
18484
- var _supports2;
18485
- function ownKeys(object, enumerableOnly) {
18486
- var keys = Object.keys(object);
18468
+ function ownKeys(e, r) {
18469
+ var t = Object.keys(e);
18487
18470
  if (Object.getOwnPropertySymbols) {
18488
- var symbols = Object.getOwnPropertySymbols(object);
18489
- enumerableOnly && (symbols = symbols.filter(function(sym) {
18490
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
18491
- })), keys.push.apply(keys, symbols);
18471
+ var o = Object.getOwnPropertySymbols(e);
18472
+ r && (o = o.filter(function(r2) {
18473
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
18474
+ })), t.push.apply(t, o);
18492
18475
  }
18493
- return keys;
18476
+ return t;
18494
18477
  }
18495
- function _objectSpread(target) {
18496
- for (var i = 1; i < arguments.length; i++) {
18497
- var source = null != arguments[i] ? arguments[i] : {};
18498
- i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
18499
- _defineProperty(target, key, source[key]);
18500
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
18501
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
18478
+ function _objectSpread(e) {
18479
+ for (var r = 1; r < arguments.length; r++) {
18480
+ var t = null != arguments[r] ? arguments[r] : {};
18481
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
18482
+ _defineProperty(e, r2, t[r2]);
18483
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
18484
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
18502
18485
  });
18503
18486
  }
18504
- return target;
18487
+ return e;
18505
18488
  }
18506
18489
  var ExtendedTermFactory = _objectSpread(_objectSpread({}, canonical_data_factory_default), {}, {
18507
- supports: (_supports2 = {}, _defineProperty(_supports2, Feature.collections, true), _defineProperty(_supports2, Feature.defaultGraphType, false), _defineProperty(_supports2, Feature.equalsMethod, true), _defineProperty(_supports2, Feature.identity, false), _defineProperty(_supports2, Feature.id, true), _defineProperty(_supports2, Feature.reversibleId, false), _defineProperty(_supports2, Feature.variableType, true), _supports2),
18490
+ supports: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Feature.collections, true), Feature.defaultGraphType, false), Feature.equalsMethod, true), Feature.identity, false), Feature.id, true), Feature.reversibleId, false), Feature.variableType, true),
18508
18491
  /**
18509
18492
  * Creates a new collection
18510
18493
  * @param elements - The initial element
@@ -18631,6 +18614,9 @@ function createStatement(kb, id3, property, value, base) {
18631
18614
  return kb.rdfFactory.quad(id3, predicate, object, kb.rdfFactory.namedNode(base));
18632
18615
  }
18633
18616
 
18617
+ // ../node_modules/n3/src/N3Lexer.js
18618
+ var import_queue_microtask = __toESM(require_queue_microtask());
18619
+
18634
18620
  // ../node_modules/n3/src/IRIs.js
18635
18621
  var RDF2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
18636
18622
  var XSD = "http://www.w3.org/2001/XMLSchema#";
@@ -18663,7 +18649,6 @@ var IRIs_default = {
18663
18649
  };
18664
18650
 
18665
18651
  // ../node_modules/n3/src/N3Lexer.js
18666
- var import_queue_microtask = __toESM(require_queue_microtask());
18667
18652
  var { xsd } = IRIs_default;
18668
18653
  var escapeSequence = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;
18669
18654
  var escapeReplacements = {
@@ -20212,7 +20197,7 @@ var RDFaProcessor = /* @__PURE__ */ function() {
20212
20197
  this.finishedHandlers = [];
20213
20198
  this.init();
20214
20199
  }
20215
- _createClass(RDFaProcessor2, [{
20200
+ return _createClass(RDFaProcessor2, [{
20216
20201
  key: "addTriple",
20217
20202
  value: function addTriple(origin, subject, predicate, object) {
20218
20203
  var su, ob, pr, or;
@@ -21088,7 +21073,6 @@ var RDFaProcessor = /* @__PURE__ */ function() {
21088
21073
  return str.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
21089
21074
  }
21090
21075
  }]);
21091
- return RDFaProcessor2;
21092
21076
  }();
21093
21077
  RDFaProcessor.XMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral";
21094
21078
  RDFaProcessor.HTMLLiteralURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML";
@@ -21128,7 +21112,7 @@ var RDFParser = /* @__PURE__ */ function() {
21128
21112
  this.why = null;
21129
21113
  this.reify = false;
21130
21114
  }
21131
- _createClass(RDFParser2, [{
21115
+ return _createClass(RDFParser2, [{
21132
21116
  key: "frameFactory",
21133
21117
  value: (
21134
21118
  /**
@@ -21394,7 +21378,7 @@ var RDFParser = /* @__PURE__ */ function() {
21394
21378
  if (nv === "Literal") {
21395
21379
  frame.datatype = RDFParser2.ns.RDF + "XMLLiteral";
21396
21380
  frame = this.buildFrame(frame);
21397
- frame.addLiteral(dom.childNodes);
21381
+ frame.addLiteral(dom.innerHTML || dom.childNodes);
21398
21382
  dig = false;
21399
21383
  } else if (nv === "Resource") {
21400
21384
  frame = this.buildFrame(frame, frame.element);
@@ -21511,7 +21495,6 @@ var RDFParser = /* @__PURE__ */ function() {
21511
21495
  return frame;
21512
21496
  }
21513
21497
  }]);
21514
- return RDFParser2;
21515
21498
  }();
21516
21499
  _defineProperty(RDFParser, "ns", {
21517
21500
  "RDF": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
@@ -21755,33 +21738,18 @@ function _arrayLikeToArray3(arr, len) {
21755
21738
  arr2[i] = arr[i];
21756
21739
  return arr2;
21757
21740
  }
21758
- function _createSuper8(Derived) {
21759
- var hasNativeReflectConstruct = _isNativeReflectConstruct8();
21760
- return function _createSuperInternal() {
21761
- var Super = _getPrototypeOf(Derived), result;
21762
- if (hasNativeReflectConstruct) {
21763
- var NewTarget = _getPrototypeOf(this).constructor;
21764
- result = Reflect.construct(Super, arguments, NewTarget);
21765
- } else {
21766
- result = Super.apply(this, arguments);
21767
- }
21768
- return _possibleConstructorReturn(this, result);
21769
- };
21741
+ function _callSuper8(t, o, e) {
21742
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
21770
21743
  }
21771
21744
  function _isNativeReflectConstruct8() {
21772
- if (typeof Reflect === "undefined" || !Reflect.construct)
21773
- return false;
21774
- if (Reflect.construct.sham)
21775
- return false;
21776
- if (typeof Proxy === "function")
21777
- return true;
21778
21745
  try {
21779
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
21746
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
21780
21747
  }));
21781
- return true;
21782
- } catch (e) {
21783
- return false;
21748
+ } catch (t2) {
21784
21749
  }
21750
+ return (_isNativeReflectConstruct8 = function _isNativeReflectConstruct10() {
21751
+ return !!t;
21752
+ })();
21785
21753
  }
21786
21754
  var Parsable = {
21787
21755
  "text/n3": true,
@@ -21822,14 +21790,13 @@ var Handler = /* @__PURE__ */ _createClass(function Handler2(response, dom) {
21822
21790
  this.dom = dom;
21823
21791
  });
21824
21792
  _defineProperty(Handler, "pattern", void 0);
21825
- var RDFXMLHandler = /* @__PURE__ */ function(_Handler) {
21826
- _inherits(RDFXMLHandler2, _Handler);
21827
- var _super = _createSuper8(RDFXMLHandler2);
21793
+ var RDFXMLHandler = /* @__PURE__ */ function(_Handler2) {
21828
21794
  function RDFXMLHandler2() {
21829
21795
  _classCallCheck(this, RDFXMLHandler2);
21830
- return _super.apply(this, arguments);
21796
+ return _callSuper8(this, RDFXMLHandler2, arguments);
21831
21797
  }
21832
- _createClass(RDFXMLHandler2, [{
21798
+ _inherits(RDFXMLHandler2, _Handler2);
21799
+ return _createClass(RDFXMLHandler2, [{
21833
21800
  key: "parse",
21834
21801
  value: function parse3(fetcher3, responseText, options) {
21835
21802
  var kb = fetcher3.store;
@@ -21864,17 +21831,15 @@ var RDFXMLHandler = /* @__PURE__ */ function(_Handler) {
21864
21831
  };
21865
21832
  }
21866
21833
  }]);
21867
- return RDFXMLHandler2;
21868
21834
  }(Handler);
21869
21835
  RDFXMLHandler.pattern = new RegExp("application/rdf\\+xml");
21870
- var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
21871
- _inherits(XHTMLHandler2, _Handler2);
21872
- var _super2 = _createSuper8(XHTMLHandler2);
21836
+ var XHTMLHandler = /* @__PURE__ */ function(_Handler3) {
21873
21837
  function XHTMLHandler2() {
21874
21838
  _classCallCheck(this, XHTMLHandler2);
21875
- return _super2.apply(this, arguments);
21839
+ return _callSuper8(this, XHTMLHandler2, arguments);
21876
21840
  }
21877
- _createClass(XHTMLHandler2, [{
21841
+ _inherits(XHTMLHandler2, _Handler3);
21842
+ return _createClass(XHTMLHandler2, [{
21878
21843
  key: "parse",
21879
21844
  value: function parse3(fetcher3, responseText, options) {
21880
21845
  var relation, reverse;
@@ -21930,17 +21895,15 @@ var XHTMLHandler = /* @__PURE__ */ function(_Handler2) {
21930
21895
  fetcher3.mediatypes[XHTMLContentType] = {};
21931
21896
  }
21932
21897
  }]);
21933
- return XHTMLHandler2;
21934
21898
  }(Handler);
21935
21899
  XHTMLHandler.pattern = new RegExp("application/xhtml");
21936
- var XMLHandler = /* @__PURE__ */ function(_Handler3) {
21937
- _inherits(XMLHandler2, _Handler3);
21938
- var _super3 = _createSuper8(XMLHandler2);
21900
+ var XMLHandler = /* @__PURE__ */ function(_Handler4) {
21939
21901
  function XMLHandler2() {
21940
21902
  _classCallCheck(this, XMLHandler2);
21941
- return _super3.apply(this, arguments);
21903
+ return _callSuper8(this, XMLHandler2, arguments);
21942
21904
  }
21943
- _createClass(XMLHandler2, [{
21905
+ _inherits(XMLHandler2, _Handler4);
21906
+ return _createClass(XMLHandler2, [{
21944
21907
  key: "parse",
21945
21908
  value: function parse3(fetcher3, responseText, options) {
21946
21909
  var dom = parseXML(responseText);
@@ -21995,17 +21958,15 @@ var XMLHandler = /* @__PURE__ */ function(_Handler3) {
21995
21958
  return node.nodeType === Node.ELEMENT_NODE;
21996
21959
  }
21997
21960
  }]);
21998
- return XMLHandler2;
21999
21961
  }(Handler);
22000
21962
  XMLHandler.pattern = new RegExp("(text|application)/(.*)xml");
22001
- var HTMLHandler = /* @__PURE__ */ function(_Handler4) {
22002
- _inherits(HTMLHandler2, _Handler4);
22003
- var _super4 = _createSuper8(HTMLHandler2);
21963
+ var HTMLHandler = /* @__PURE__ */ function(_Handler5) {
22004
21964
  function HTMLHandler2() {
22005
21965
  _classCallCheck(this, HTMLHandler2);
22006
- return _super4.apply(this, arguments);
21966
+ return _callSuper8(this, HTMLHandler2, arguments);
22007
21967
  }
22008
- _createClass(HTMLHandler2, [{
21968
+ _inherits(HTMLHandler2, _Handler5);
21969
+ return _createClass(HTMLHandler2, [{
22009
21970
  key: "parse",
22010
21971
  value: function parse3(fetcher3, responseText, options) {
22011
21972
  var kb = fetcher3.store;
@@ -22045,17 +22006,15 @@ var HTMLHandler = /* @__PURE__ */ function(_Handler4) {
22045
22006
  };
22046
22007
  }
22047
22008
  }]);
22048
- return HTMLHandler2;
22049
22009
  }(Handler);
22050
22010
  HTMLHandler.pattern = new RegExp("text/html");
22051
- var JsonLdHandler = /* @__PURE__ */ function(_Handler5) {
22052
- _inherits(JsonLdHandler2, _Handler5);
22053
- var _super5 = _createSuper8(JsonLdHandler2);
22011
+ var JsonLdHandler = /* @__PURE__ */ function(_Handler6) {
22054
22012
  function JsonLdHandler2() {
22055
22013
  _classCallCheck(this, JsonLdHandler2);
22056
- return _super5.apply(this, arguments);
22014
+ return _callSuper8(this, JsonLdHandler2, arguments);
22057
22015
  }
22058
- _createClass(JsonLdHandler2, [{
22016
+ _inherits(JsonLdHandler2, _Handler6);
22017
+ return _createClass(JsonLdHandler2, [{
22059
22018
  key: "parse",
22060
22019
  value: function parse3(fetcher3, responseText, options, response) {
22061
22020
  var kb = fetcher3.store;
@@ -22083,17 +22042,15 @@ var JsonLdHandler = /* @__PURE__ */ function(_Handler5) {
22083
22042
  };
22084
22043
  }
22085
22044
  }]);
22086
- return JsonLdHandler2;
22087
22045
  }(Handler);
22088
22046
  JsonLdHandler.pattern = /application\/ld\+json/;
22089
- var TextHandler = /* @__PURE__ */ function(_Handler6) {
22090
- _inherits(TextHandler2, _Handler6);
22091
- var _super6 = _createSuper8(TextHandler2);
22047
+ var TextHandler = /* @__PURE__ */ function(_Handler7) {
22092
22048
  function TextHandler2() {
22093
22049
  _classCallCheck(this, TextHandler2);
22094
- return _super6.apply(this, arguments);
22050
+ return _callSuper8(this, TextHandler2, arguments);
22095
22051
  }
22096
- _createClass(TextHandler2, [{
22052
+ _inherits(TextHandler2, _Handler7);
22053
+ return _createClass(TextHandler2, [{
22097
22054
  key: "parse",
22098
22055
  value: function parse3(fetcher3, responseText, options) {
22099
22056
  if (isXML(responseText)) {
@@ -22122,17 +22079,15 @@ var TextHandler = /* @__PURE__ */ function(_Handler6) {
22122
22079
  };
22123
22080
  }
22124
22081
  }]);
22125
- return TextHandler2;
22126
22082
  }(Handler);
22127
22083
  TextHandler.pattern = new RegExp("text/plain");
22128
- var N3Handler = /* @__PURE__ */ function(_Handler7) {
22129
- _inherits(N3Handler2, _Handler7);
22130
- var _super7 = _createSuper8(N3Handler2);
22084
+ var N3Handler = /* @__PURE__ */ function(_Handler8) {
22131
22085
  function N3Handler2() {
22132
22086
  _classCallCheck(this, N3Handler2);
22133
- return _super7.apply(this, arguments);
22087
+ return _callSuper8(this, N3Handler2, arguments);
22134
22088
  }
22135
- _createClass(N3Handler2, [{
22089
+ _inherits(N3Handler2, _Handler8);
22090
+ return _createClass(N3Handler2, [{
22136
22091
  key: "parse",
22137
22092
  value: function parse3(fetcher3, responseText, options, response) {
22138
22093
  var kb = fetcher3.store;
@@ -22163,7 +22118,6 @@ var N3Handler = /* @__PURE__ */ function(_Handler7) {
22163
22118
  };
22164
22119
  }
22165
22120
  }]);
22166
- return N3Handler2;
22167
22121
  }(Handler);
22168
22122
  N3Handler.pattern = new RegExp("(application|text)/(x-)?(rdf\\+)?(n3|turtle)");
22169
22123
  var defaultHandlers = {
@@ -22242,7 +22196,7 @@ var Fetcher = /* @__PURE__ */ function() {
22242
22196
  return _this.addHandler(defaultHandlers[key]);
22243
22197
  });
22244
22198
  }
22245
- _createClass(Fetcher2, [{
22199
+ return _createClass(Fetcher2, [{
22246
22200
  key: "load",
22247
22201
  value: (
22248
22202
  /**
@@ -22313,7 +22267,7 @@ var Fetcher = /* @__PURE__ */ function() {
22313
22267
  for (_iterator.s(); !(_step = _iterator.n()).done; ) {
22314
22268
  var request = _step.value;
22315
22269
  var _response = kb.any(request, this.ns.link("response"), null, meta);
22316
- if (_response !== void 0) {
22270
+ if (_response != void 0) {
22317
22271
  var quad4 = kb.statementsMatching(_response, this.ns.link("outOfDate"), true, meta);
22318
22272
  kb.remove(quad4);
22319
22273
  options.force = true;
@@ -22816,11 +22770,6 @@ var Fetcher = /* @__PURE__ */ function() {
22816
22770
  }
22817
22771
  return createIfNotExists;
22818
22772
  }()
22819
- /**
22820
- * @param parentURI URI of parent container
22821
- * @param folderName - Optional folder name (slug)
22822
- * @param data - Optional folder metadata
22823
- */
22824
22773
  }, {
22825
22774
  key: "createContainer",
22826
22775
  value: function createContainer(parentURI, folderName, data) {
@@ -23219,7 +23168,10 @@ var Fetcher = /* @__PURE__ */ function() {
23219
23168
  this.addType(this.ns.link("Document"), reqNode, kb, diffLocation);
23220
23169
  }
23221
23170
  if (options.clearPreviousData) {
23222
- kb.removeDocument(options.resource);
23171
+ var sts = kb.statementsMatching(void 0, void 0, void 0, options.resource).slice();
23172
+ for (var i = 0; i < sts.length; i++) {
23173
+ kb.removeStatement(sts[i]);
23174
+ }
23223
23175
  }
23224
23176
  var isImage = contentType.includes("image/") || contentType.includes("application/pdf");
23225
23177
  if (contentType && isImage) {
@@ -23441,7 +23393,6 @@ var Fetcher = /* @__PURE__ */ function() {
23441
23393
  }
23442
23394
  }
23443
23395
  }]);
23444
- return Fetcher2;
23445
23396
  }();
23446
23397
  _defineProperty(Fetcher, "HANDLERS", void 0);
23447
23398
  _defineProperty(Fetcher, "CONTENT_TYPE_BY_EXT", void 0);
@@ -23450,26 +23401,26 @@ Fetcher.HANDLERS = defaultHandlers;
23450
23401
  Fetcher.CONTENT_TYPE_BY_EXT = CONTENT_TYPE_BY_EXT;
23451
23402
 
23452
23403
  // ../node_modules/rdflib/esm/factories/rdflib-data-factory.js
23453
- function ownKeys2(object, enumerableOnly) {
23454
- var keys = Object.keys(object);
23404
+ function ownKeys2(e, r) {
23405
+ var t = Object.keys(e);
23455
23406
  if (Object.getOwnPropertySymbols) {
23456
- var symbols = Object.getOwnPropertySymbols(object);
23457
- enumerableOnly && (symbols = symbols.filter(function(sym) {
23458
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23459
- })), keys.push.apply(keys, symbols);
23407
+ var o = Object.getOwnPropertySymbols(e);
23408
+ r && (o = o.filter(function(r2) {
23409
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
23410
+ })), t.push.apply(t, o);
23460
23411
  }
23461
- return keys;
23412
+ return t;
23462
23413
  }
23463
- function _objectSpread2(target) {
23464
- for (var i = 1; i < arguments.length; i++) {
23465
- var source = null != arguments[i] ? arguments[i] : {};
23466
- i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
23467
- _defineProperty(target, key, source[key]);
23468
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
23469
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
23414
+ function _objectSpread2(e) {
23415
+ for (var r = 1; r < arguments.length; r++) {
23416
+ var t = null != arguments[r] ? arguments[r] : {};
23417
+ r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
23418
+ _defineProperty(e, r2, t[r2]);
23419
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
23420
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
23470
23421
  });
23471
23422
  }
23472
- return target;
23423
+ return e;
23473
23424
  }
23474
23425
  var RDFlibDataFactory = _objectSpread2(_objectSpread2({}, extended_term_factory_default), {}, {
23475
23426
  /**
@@ -23535,26 +23486,26 @@ var term = node_default.fromValue;
23535
23486
  var NextId = BlankNode.nextId;
23536
23487
 
23537
23488
  // ../node_modules/rdflib/esm/store.js
23538
- function ownKeys3(object, enumerableOnly) {
23539
- var keys = Object.keys(object);
23489
+ function ownKeys3(e, r) {
23490
+ var t = Object.keys(e);
23540
23491
  if (Object.getOwnPropertySymbols) {
23541
- var symbols = Object.getOwnPropertySymbols(object);
23542
- enumerableOnly && (symbols = symbols.filter(function(sym) {
23543
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23544
- })), keys.push.apply(keys, symbols);
23492
+ var o = Object.getOwnPropertySymbols(e);
23493
+ r && (o = o.filter(function(r2) {
23494
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
23495
+ })), t.push.apply(t, o);
23545
23496
  }
23546
- return keys;
23497
+ return t;
23547
23498
  }
23548
- function _objectSpread3(target) {
23549
- for (var i = 1; i < arguments.length; i++) {
23550
- var source = null != arguments[i] ? arguments[i] : {};
23551
- i % 2 ? ownKeys3(Object(source), true).forEach(function(key) {
23552
- _defineProperty(target, key, source[key]);
23553
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys3(Object(source)).forEach(function(key) {
23554
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
23499
+ function _objectSpread3(e) {
23500
+ for (var r = 1; r < arguments.length; r++) {
23501
+ var t = null != arguments[r] ? arguments[r] : {};
23502
+ r % 2 ? ownKeys3(Object(t), true).forEach(function(r2) {
23503
+ _defineProperty(e, r2, t[r2]);
23504
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r2) {
23505
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
23555
23506
  });
23556
23507
  }
23557
- return target;
23508
+ return e;
23558
23509
  }
23559
23510
  function _createForOfIteratorHelper4(o, allowArrayLike) {
23560
23511
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
@@ -23615,33 +23566,18 @@ function _arrayLikeToArray4(arr, len) {
23615
23566
  arr2[i] = arr[i];
23616
23567
  return arr2;
23617
23568
  }
23618
- function _createSuper9(Derived) {
23619
- var hasNativeReflectConstruct = _isNativeReflectConstruct9();
23620
- return function _createSuperInternal() {
23621
- var Super = _getPrototypeOf(Derived), result;
23622
- if (hasNativeReflectConstruct) {
23623
- var NewTarget = _getPrototypeOf(this).constructor;
23624
- result = Reflect.construct(Super, arguments, NewTarget);
23625
- } else {
23626
- result = Super.apply(this, arguments);
23627
- }
23628
- return _possibleConstructorReturn(this, result);
23629
- };
23569
+ function _callSuper9(t, o, e) {
23570
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
23630
23571
  }
23631
23572
  function _isNativeReflectConstruct9() {
23632
- if (typeof Reflect === "undefined" || !Reflect.construct)
23633
- return false;
23634
- if (Reflect.construct.sham)
23635
- return false;
23636
- if (typeof Proxy === "function")
23637
- return true;
23638
23573
  try {
23639
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23574
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23640
23575
  }));
23641
- return true;
23642
- } catch (e) {
23643
- return false;
23576
+ } catch (t2) {
23644
23577
  }
23578
+ return (_isNativeReflectConstruct9 = function _isNativeReflectConstruct10() {
23579
+ return !!t;
23580
+ })();
23645
23581
  }
23646
23582
  var owlNamespaceURI = "http://www.w3.org/2002/07/owl#";
23647
23583
  function handleFP(formula2, subj, pred, obj) {
@@ -23674,30 +23610,28 @@ function handleRDFType(formula2, subj, pred, obj, why) {
23674
23610
  return done;
23675
23611
  }
23676
23612
  var IndexedFormula = /* @__PURE__ */ function(_Formula) {
23677
- _inherits(IndexedFormula2, _Formula);
23678
- var _super = _createSuper9(IndexedFormula2);
23679
23613
  function IndexedFormula2(features) {
23680
23614
  var _this;
23681
23615
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
23682
23616
  _classCallCheck(this, IndexedFormula2);
23683
- _this = _super.call(this, void 0, void 0, void 0, void 0, opts);
23684
- _defineProperty(_assertThisInitialized(_this), "updater", void 0);
23685
- _defineProperty(_assertThisInitialized(_this), "namespaces", void 0);
23686
- _defineProperty(_assertThisInitialized(_this), "classActions", void 0);
23687
- _defineProperty(_assertThisInitialized(_this), "propertyActions", void 0);
23688
- _defineProperty(_assertThisInitialized(_this), "redirections", void 0);
23689
- _defineProperty(_assertThisInitialized(_this), "aliases", void 0);
23690
- _defineProperty(_assertThisInitialized(_this), "HTTPRedirects", void 0);
23691
- _defineProperty(_assertThisInitialized(_this), "subjectIndex", void 0);
23692
- _defineProperty(_assertThisInitialized(_this), "predicateIndex", void 0);
23693
- _defineProperty(_assertThisInitialized(_this), "objectIndex", void 0);
23694
- _defineProperty(_assertThisInitialized(_this), "whyIndex", void 0);
23695
- _defineProperty(_assertThisInitialized(_this), "index", void 0);
23696
- _defineProperty(_assertThisInitialized(_this), "features", void 0);
23697
- _defineProperty(_assertThisInitialized(_this), "_universalVariables", void 0);
23698
- _defineProperty(_assertThisInitialized(_this), "_existentialVariables", void 0);
23699
- _defineProperty(_assertThisInitialized(_this), "rdfArrayRemove", void 0);
23700
- _defineProperty(_assertThisInitialized(_this), "dataCallbacks", void 0);
23617
+ _this = _callSuper9(this, IndexedFormula2, [void 0, void 0, void 0, void 0, opts]);
23618
+ _defineProperty(_this, "updater", void 0);
23619
+ _defineProperty(_this, "namespaces", void 0);
23620
+ _defineProperty(_this, "classActions", void 0);
23621
+ _defineProperty(_this, "propertyActions", void 0);
23622
+ _defineProperty(_this, "redirections", void 0);
23623
+ _defineProperty(_this, "aliases", void 0);
23624
+ _defineProperty(_this, "HTTPRedirects", void 0);
23625
+ _defineProperty(_this, "subjectIndex", void 0);
23626
+ _defineProperty(_this, "predicateIndex", void 0);
23627
+ _defineProperty(_this, "objectIndex", void 0);
23628
+ _defineProperty(_this, "whyIndex", void 0);
23629
+ _defineProperty(_this, "index", void 0);
23630
+ _defineProperty(_this, "features", void 0);
23631
+ _defineProperty(_this, "_universalVariables", void 0);
23632
+ _defineProperty(_this, "_existentialVariables", void 0);
23633
+ _defineProperty(_this, "rdfArrayRemove", void 0);
23634
+ _defineProperty(_this, "dataCallbacks", void 0);
23701
23635
  _this.propertyActions = {};
23702
23636
  _this.classActions = {};
23703
23637
  _this.redirections = [];
@@ -23723,7 +23657,8 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
23723
23657
  _this.initPropertyActions(_this.features);
23724
23658
  return _this;
23725
23659
  }
23726
- _createClass(IndexedFormula2, [{
23660
+ _inherits(IndexedFormula2, _Formula);
23661
+ return _createClass(IndexedFormula2, [{
23727
23662
  key: "substitute",
23728
23663
  value: (
23729
23664
  /**
@@ -24301,12 +24236,23 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24301
24236
  return this;
24302
24237
  }
24303
24238
  /**
24304
- * Removes all statements in a doc, along with the related metadata including request/response
24239
+ * Removes all statements in a doc, along with the related metadata including request/response/status
24305
24240
  * @param doc - The document / graph
24306
24241
  */
24307
24242
  }, {
24308
24243
  key: "removeDocument",
24309
24244
  value: function removeDocument(doc) {
24245
+ this.removeMetadata(doc);
24246
+ var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
24247
+ for (var i = 0; i < sts.length; i++) {
24248
+ this.removeStatement(sts[i]);
24249
+ }
24250
+ this.removeMatches(doc, null, null);
24251
+ return this;
24252
+ }
24253
+ }, {
24254
+ key: "removeMetadata",
24255
+ value: function removeMetadata(doc) {
24310
24256
  var meta = this.sym("chrome://TheCurrentSession");
24311
24257
  var linkNamespaceURI = "http://www.w3.org/2007/ont/link#";
24312
24258
  var requests = this.statementsMatching(void 0, this.sym("".concat(linkNamespaceURI, "requestedURI")), this.rdfFactory.literal(doc.value), meta).map(function(st3) {
@@ -24314,19 +24260,29 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24314
24260
  });
24315
24261
  for (var r = 0; r < requests.length; r++) {
24316
24262
  var request = requests[r];
24317
- if (request !== void 0) {
24318
- this.removeMatches(request, null, null, meta);
24263
+ if (request != void 0) {
24264
+ var sts = void 0;
24265
+ var status = this.any(request, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
24266
+ if (status != void 0) {
24267
+ sts = this.statementsMatching(status, this.sym("".concat(linkNamespaceURI, "status")), null, meta).slice();
24268
+ for (var i = 0; i < sts.length; i++) {
24269
+ this.removeStatement(sts[i]);
24270
+ }
24271
+ }
24319
24272
  var response = this.any(request, this.sym("".concat(linkNamespaceURI, "response")), null, meta);
24320
- if (response !== void 0) {
24321
- this.removeMatches(response, null, null, meta);
24273
+ if (response != void 0) {
24274
+ sts = this.statementsMatching(response, null, null, meta).slice();
24275
+ for (var i = 0; i < sts.length; i++) {
24276
+ this.removeStatement(sts[i]);
24277
+ }
24278
+ }
24279
+ sts = this.statementsMatching(request, null, null, meta).slice();
24280
+ for (var i = 0; i < sts.length; i++) {
24281
+ this.removeStatement(sts[i]);
24322
24282
  }
24323
24283
  }
24324
24284
  }
24325
24285
  this.removeMatches(this.sym(doc.value), null, null, meta);
24326
- var sts = this.statementsMatching(void 0, void 0, void 0, doc).slice();
24327
- for (var i = 0; i < sts.length; i++) {
24328
- this.removeStatement(sts[i]);
24329
- }
24330
24286
  return this;
24331
24287
  }
24332
24288
  /**
@@ -24600,7 +24556,6 @@ var IndexedFormula = /* @__PURE__ */ function(_Formula) {
24600
24556
  return defaultGraphURI;
24601
24557
  }
24602
24558
  }]);
24603
- return IndexedFormula2;
24604
24559
  }(Formula);
24605
24560
  _defineProperty(IndexedFormula, "handleRDFType", void 0);
24606
24561
  IndexedFormula.handleRDFType = handleRDFType;
@@ -24695,7 +24650,7 @@ var UpdateManager = /* @__PURE__ */ function() {
24695
24650
  this.ns.owl = Namespace("http://www.w3.org/2002/07/owl#");
24696
24651
  this.patchControl = [];
24697
24652
  }
24698
- _createClass(UpdateManager2, [{
24653
+ return _createClass(UpdateManager2, [{
24699
24654
  key: "patchControlFor",
24700
24655
  value: function patchControlFor(doc) {
24701
24656
  if (!this.patchControl[doc.value]) {
@@ -24730,7 +24685,7 @@ var UpdateManager = /* @__PURE__ */ function() {
24730
24685
  for (_iterator.s(); !(_step = _iterator.n()).done; ) {
24731
24686
  var request = _step.value;
24732
24687
  var _response = kb.any(request, this.ns.link("response"), null, meta);
24733
- if (_response !== void 0) {
24688
+ if (_response != void 0) {
24734
24689
  kb.add(_response, this.ns.link("outOfDate"), true, meta);
24735
24690
  }
24736
24691
  }
@@ -24793,17 +24748,6 @@ var UpdateManager = /* @__PURE__ */ function() {
24793
24748
  }
24794
24749
  return checkEditable;
24795
24750
  }()
24796
- /**
24797
- * Tests whether a file is editable.
24798
- * If the file has a specific annotation that it is machine written,
24799
- * for safety, it is editable (this doesn't actually check for write access)
24800
- * If the file has wac-allow and accept patch headers, those are respected.
24801
- * and local write access is determined by those headers.
24802
- * This synchronous version only looks at past HTTP requests, does not make new ones.
24803
- *
24804
- * @returns The method string SPARQL or DAV or
24805
- * LOCALFILE or false if known, undefined if not known.
24806
- */
24807
24751
  }, {
24808
24752
  key: "editable",
24809
24753
  value: function editable(uri, kb) {
@@ -25237,7 +25181,7 @@ var UpdateManager = /* @__PURE__ */ function() {
25237
25181
  }
25238
25182
  } else {
25239
25183
  control.reloading = false;
25240
- if (response.status === 0) {
25184
+ if (response && response.status === 0) {
25241
25185
  control.reloading = true;
25242
25186
  retryTimeout = retryTimeout * 2;
25243
25187
  setTimeout(tryReload2, retryTimeout);
@@ -25774,59 +25718,9 @@ var UpdateManager = /* @__PURE__ */ function() {
25774
25718
  });
25775
25719
  }
25776
25720
  }]);
25777
- return UpdateManager2;
25778
25721
  }();
25779
25722
 
25780
- // ../node_modules/uuid/dist/esm-browser/native.js
25781
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
25782
- var native_default = {
25783
- randomUUID
25784
- };
25785
-
25786
- // ../node_modules/uuid/dist/esm-browser/rng.js
25787
- var getRandomValues;
25788
- var rnds8 = new Uint8Array(16);
25789
- function rng() {
25790
- if (!getRandomValues) {
25791
- getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
25792
- if (!getRandomValues) {
25793
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
25794
- }
25795
- }
25796
- return getRandomValues(rnds8);
25797
- }
25798
-
25799
- // ../node_modules/uuid/dist/esm-browser/stringify.js
25800
- var byteToHex = [];
25801
- for (let i = 0; i < 256; ++i) {
25802
- byteToHex.push((i + 256).toString(16).slice(1));
25803
- }
25804
- function unsafeStringify(arr, offset = 0) {
25805
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
25806
- }
25807
-
25808
- // ../node_modules/uuid/dist/esm-browser/v4.js
25809
- function v4(options, buf, offset) {
25810
- if (native_default.randomUUID && !buf && !options) {
25811
- return native_default.randomUUID();
25812
- }
25813
- options = options || {};
25814
- const rnds = options.random || (options.rng || rng)();
25815
- rnds[6] = rnds[6] & 15 | 64;
25816
- rnds[8] = rnds[8] & 63 | 128;
25817
- if (buf) {
25818
- offset = offset || 0;
25819
- for (let i = 0; i < 16; ++i) {
25820
- buf[offset + i] = rnds[i];
25821
- }
25822
- return buf;
25823
- }
25824
- return unsafeStringify(rnds);
25825
- }
25826
- var v4_default = v4;
25827
-
25828
25723
  export {
25829
- v4_default,
25830
25724
  isLiteral,
25831
25725
  isNamedNode,
25832
25726
  isBlankNode,