@startinblox/core 2.0.0-beta.7 → 2.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2;
5
- import { d as defineComponent, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, a as fuzzyCompare, b as asyncQuerySelector, i as importInlineCSS, h as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-Ae979zFb.js";
6
- import { j } from "./helpers-Ae979zFb.js";
5
+ import { d as defineComponent, a as doesResourceContainList, u as uniqID, e as evalTemplateString, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, i as importInlineCSS, j as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-DH22C8s9.js";
6
+ import { k } from "./helpers-DH22C8s9.js";
7
7
  if (!("flat" in Array.prototype)) {
8
8
  Object.defineProperty(Array.prototype, "flat", {
9
9
  configurable: true,
@@ -56,12 +56,12 @@ function getAugmentedNamespace(n3) {
56
56
  a2.prototype = f2.prototype;
57
57
  } else a2 = {};
58
58
  Object.defineProperty(a2, "__esModule", { value: true });
59
- Object.keys(n3).forEach(function(k2) {
60
- var d2 = Object.getOwnPropertyDescriptor(n3, k2);
61
- Object.defineProperty(a2, k2, d2.get ? d2 : {
59
+ Object.keys(n3).forEach(function(k3) {
60
+ var d2 = Object.getOwnPropertyDescriptor(n3, k3);
61
+ Object.defineProperty(a2, k3, d2.get ? d2 : {
62
62
  enumerable: true,
63
63
  get: function() {
64
- return n3[k2];
64
+ return n3[k3];
65
65
  }
66
66
  });
67
67
  });
@@ -758,14 +758,14 @@ function requireRelativeToAbsoluteIri() {
758
758
  if (hasRequiredRelativeToAbsoluteIri) return relativeToAbsoluteIri;
759
759
  hasRequiredRelativeToAbsoluteIri = 1;
760
760
  (function(exports2) {
761
- var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
762
- if (k22 === void 0) k22 = k2;
761
+ var __createBinding = relativeToAbsoluteIri && relativeToAbsoluteIri.__createBinding || (Object.create ? function(o2, m2, k3, k22) {
762
+ if (k22 === void 0) k22 = k3;
763
763
  Object.defineProperty(o2, k22, { enumerable: true, get: function() {
764
- return m2[k2];
764
+ return m2[k3];
765
765
  } });
766
- } : function(o2, m2, k2, k22) {
767
- if (k22 === void 0) k22 = k2;
768
- o2[k22] = m2[k2];
766
+ } : function(o2, m2, k3, k22) {
767
+ if (k22 === void 0) k22 = k3;
768
+ o2[k22] = m2[k3];
769
769
  });
770
770
  var __exportStar = relativeToAbsoluteIri && relativeToAbsoluteIri.__exportStar || function(m2, exports3) {
771
771
  for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
@@ -2578,25 +2578,25 @@ function requirePermuter() {
2578
2578
  next() {
2579
2579
  const { current, dir } = this;
2580
2580
  const rval = current.slice();
2581
- let k2 = null;
2581
+ let k3 = null;
2582
2582
  let pos = 0;
2583
2583
  const length = current.length;
2584
2584
  for (let i3 = 0; i3 < length; ++i3) {
2585
2585
  const element = current[i3];
2586
2586
  const left = dir.get(element);
2587
- if ((k2 === null || element > k2) && (left && i3 > 0 && element > current[i3 - 1] || !left && i3 < length - 1 && element > current[i3 + 1])) {
2588
- k2 = element;
2587
+ if ((k3 === null || element > k3) && (left && i3 > 0 && element > current[i3 - 1] || !left && i3 < length - 1 && element > current[i3 + 1])) {
2588
+ k3 = element;
2589
2589
  pos = i3;
2590
2590
  }
2591
2591
  }
2592
- if (k2 === null) {
2592
+ if (k3 === null) {
2593
2593
  this.done = true;
2594
2594
  } else {
2595
- const swap = dir.get(k2) ? pos - 1 : pos + 1;
2595
+ const swap = dir.get(k3) ? pos - 1 : pos + 1;
2596
2596
  current[pos] = current[swap];
2597
- current[swap] = k2;
2597
+ current[swap] = k3;
2598
2598
  for (const element of current) {
2599
- if (element > k2) {
2599
+ if (element > k3) {
2600
2600
  dir.set(element, !dir.get(element));
2601
2601
  }
2602
2602
  }
@@ -3911,8 +3911,8 @@ function requireUtil() {
3911
3911
  }
3912
3912
  } else if (value instanceof Map) {
3913
3913
  rval = /* @__PURE__ */ new Map();
3914
- for (const [k2, v2] of value) {
3915
- rval.set(k2, api.clone(v2));
3914
+ for (const [k3, v2] of value) {
3915
+ rval.set(k3, api.clone(v2));
3916
3916
  }
3917
3917
  } else if (value instanceof Set) {
3918
3918
  rval = /* @__PURE__ */ new Set();
@@ -4490,8 +4490,8 @@ function requireXhr() {
4490
4490
  req.onload = () => resolve(req);
4491
4491
  req.onerror = (err) => reject(err);
4492
4492
  req.open("GET", url2, true);
4493
- for (const k2 in headers) {
4494
- req.setRequestHeader(k2, headers[k2]);
4493
+ for (const k3 in headers) {
4494
+ req.setRequestHeader(k3, headers[k3]);
4495
4495
  }
4496
4496
  req.send();
4497
4497
  });
@@ -5009,10 +5009,10 @@ function requireLruCache() {
5009
5009
  }
5010
5010
  }
5011
5011
  keys() {
5012
- return this[LRU_LIST].toArray().map((k2) => k2.key);
5012
+ return this[LRU_LIST].toArray().map((k3) => k3.key);
5013
5013
  }
5014
5014
  values() {
5015
- return this[LRU_LIST].toArray().map((k2) => k2.value);
5015
+ return this[LRU_LIST].toArray().map((k3) => k3.value);
5016
5016
  }
5017
5017
  reset() {
5018
5018
  if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
@@ -5921,7 +5921,7 @@ function requireContext() {
5921
5921
  if (term === "@type" && _isObject(value) && (value["@container"] || "@set") === "@set" && api.processingMode(activeCtx, 1.1)) {
5922
5922
  const validKeys2 = ["@container", "@id", "@protected"];
5923
5923
  const keys2 = Object.keys(value);
5924
- if (keys2.length === 0 || keys2.some((k2) => !validKeys2.includes(k2))) {
5924
+ if (keys2.length === 0 || keys2.some((k3) => !validKeys2.includes(k3))) {
5925
5925
  throw new JsonLdError(
5926
5926
  "Invalid JSON-LD syntax; keywords cannot be overridden.",
5927
5927
  "jsonld.SyntaxError",
@@ -7236,8 +7236,8 @@ function requireExpand() {
7236
7236
  }
7237
7237
  if (expandedProperty === "@type") {
7238
7238
  if (_isObject(value)) {
7239
- value = Object.fromEntries(Object.entries(value).map(([k2, v2]) => [
7240
- _expandIri(typeScopedContext, k2, { vocab: true }),
7239
+ value = Object.fromEntries(Object.entries(value).map(([k3, v2]) => [
7240
+ _expandIri(typeScopedContext, k3, { vocab: true }),
7241
7241
  _asArray(v2).map(
7242
7242
  (vv) => _expandIri(
7243
7243
  typeScopedContext,
@@ -7583,7 +7583,7 @@ function requireExpand() {
7583
7583
  for (const key of nests) {
7584
7584
  const nestedValues = _isArray(element[key]) ? element[key] : [element[key]];
7585
7585
  for (const nv of nestedValues) {
7586
- if (!_isObject(nv) || Object.keys(nv).some((k2) => _expandIri(activeCtx, k2, { vocab: true }, options) === "@value")) {
7586
+ if (!_isObject(nv) || Object.keys(nv).some((k3) => _expandIri(activeCtx, k3, { vocab: true }, options) === "@value")) {
7587
7587
  throw new JsonLdError(
7588
7588
  "Invalid JSON-LD syntax; nested value must be a node object.",
7589
7589
  "jsonld.SyntaxError",
@@ -10812,7 +10812,7 @@ class CustomGetter {
10812
10812
  // context given by the server
10813
10813
  __publicField(this, "parentId");
10814
10814
  // id of the parent resource, used to get the absolute url of the current resource
10815
- __publicField(this, "containerTypes");
10815
+ __publicField(this, "listTypes");
10816
10816
  // types of resources interpreted as containers
10817
10817
  __publicField(this, "serverPagination");
10818
10818
  // pagination attributes to give to server
@@ -10824,8 +10824,9 @@ class CustomGetter {
10824
10824
  this.resourceId = resourceId;
10825
10825
  this.serverPagination = serverPagination;
10826
10826
  this.serverSearch = serverSearch;
10827
- this.containerTypes = [
10827
+ this.listTypes = [
10828
10828
  this.getExpandedPredicate("ldp:Container"),
10829
+ this.getExpandedPredicate("dcat:Catalog"),
10829
10830
  this.getExpandedPredicate("ldp:BasicContainer"),
10830
10831
  this.getExpandedPredicate("ldp:DirectContainer"),
10831
10832
  this.getExpandedPredicate("ldp:IndirectContainer"),
@@ -10845,8 +10846,9 @@ class CustomGetter {
10845
10846
  if (!isUrl.protocol.startsWith("http"))
10846
10847
  throw new Error("Not a valid HTTP url");
10847
10848
  if (isUrl) {
10848
- let resources = this.resource[this.getExpandedPredicate(path)];
10849
- if (!resources) return void 0;
10849
+ let resources = this.getList(path);
10850
+ if (!resources || Array.isArray(resources) && resources.length === 0)
10851
+ return void 0;
10850
10852
  if (!Array.isArray(resources)) resources = [resources];
10851
10853
  const result = resources ? resources.map((res) => {
10852
10854
  let resource = store.get(res["@id"]);
@@ -10876,7 +10878,7 @@ class CustomGetter {
10876
10878
  );
10877
10879
  }
10878
10880
  while (true) {
10879
- value = await this.resource[this.getExpandedPredicate(path1[0])];
10881
+ value = await this.getList(path1[0]);
10880
10882
  if (path1.length <= 1) break;
10881
10883
  const lastPath1El = path1.pop();
10882
10884
  if (lastPath1El) path2.unshift(lastPath1El);
@@ -10905,7 +10907,7 @@ class CustomGetter {
10905
10907
  * @returns
10906
10908
  */
10907
10909
  getLiteralValue(value) {
10908
- if (typeof value !== "object") return value;
10910
+ if (typeof value !== "object" || value === null) return value;
10909
10911
  if (value["@value"]) return value["@value"];
10910
10912
  if (!Array.isArray(value)) return value;
10911
10913
  if (value.length === 0) return null;
@@ -10936,17 +10938,15 @@ class CustomGetter {
10936
10938
  isContainer() {
10937
10939
  if (this.resource["@type"]) {
10938
10940
  if (Array.isArray(this.resource["@type"]))
10939
- return this.containerTypes.some(
10941
+ return this.listTypes.some(
10940
10942
  (type) => this.resource["@type"].includes(type)
10941
10943
  );
10942
- return this.containerTypes.includes(this.resource["@type"]);
10944
+ return this.listTypes.includes(this.resource["@type"]);
10943
10945
  }
10944
10946
  if (!this.resource.type) return false;
10945
10947
  if (Array.isArray(this.resource.type))
10946
- return this.containerTypes.some(
10947
- (type) => this.resource.type.includes(type)
10948
- );
10949
- return this.containerTypes.includes(this.resource.type);
10948
+ return this.listTypes.some((type) => this.resource.type.includes(type));
10949
+ return this.listTypes.includes(this.resource.type);
10950
10950
  }
10951
10951
  /**
10952
10952
  * Return true if the given key in the current resource in an array
@@ -10966,14 +10966,18 @@ class CustomGetter {
10966
10966
  /**
10967
10967
  * Get children of container as objects
10968
10968
  */
10969
- getChildren(predicateName) {
10970
- return this.resource[this.getExpandedPredicate(predicateName)] || [];
10969
+ getList(predicateName) {
10970
+ let value = this.resource[predicateName];
10971
+ if (!value) {
10972
+ value = this.resource[this.getExpandedPredicate(predicateName)];
10973
+ }
10974
+ if (value === void 0 || value === null) {
10975
+ return [];
10976
+ }
10977
+ return value;
10971
10978
  }
10972
- /**
10973
- * Get children of container as Proxys
10974
- */
10975
- getLdpContains() {
10976
- let children = this.resource[this.getExpandedPredicate("ldp:contains")];
10979
+ getListAndCacheIt(predicate) {
10980
+ let children = this.getList(predicate);
10977
10981
  if (!children) return null;
10978
10982
  if (!Array.isArray(children)) children = [children];
10979
10983
  const result = children ? children.map((res) => {
@@ -10991,6 +10995,15 @@ class CustomGetter {
10991
10995
  }) : [];
10992
10996
  return result;
10993
10997
  }
10998
+ getDcatDataset() {
10999
+ return this.getListAndCacheIt("dcat:dataset");
11000
+ }
11001
+ /**
11002
+ * Get children of container as Proxys
11003
+ */
11004
+ getLdpContains() {
11005
+ return this.getListAndCacheIt("ldp:contains");
11006
+ }
10994
11007
  merge(resource) {
10995
11008
  this.resource = {
10996
11009
  ...this.getResourceData(),
@@ -11000,6 +11013,15 @@ class CustomGetter {
11000
11013
  getResourceData() {
11001
11014
  return this.resource;
11002
11015
  }
11016
+ getContainerList() {
11017
+ if (this.getType() === "ldp:Container") {
11018
+ return this.getLdpContains();
11019
+ }
11020
+ if (this.getType() === "dcat:Catalog") {
11021
+ return this.getDcatDataset();
11022
+ }
11023
+ return null;
11024
+ }
11003
11025
  /**
11004
11026
  * return true resource seems complete
11005
11027
  * @param prop
@@ -11020,7 +11042,7 @@ class CustomGetter {
11020
11042
  * @returns
11021
11043
  */
11022
11044
  async getPermissions() {
11023
- let permissions = this.resource[this.getExpandedPredicate("permissions")];
11045
+ let permissions = this.getList("permissions").map((p2) => String(p2));
11024
11046
  if (!permissions) {
11025
11047
  await this.getResource(
11026
11048
  this.resourceId,
@@ -11028,7 +11050,7 @@ class CustomGetter {
11028
11050
  this.parentId,
11029
11051
  true
11030
11052
  );
11031
- permissions = this.resource[this.getExpandedPredicate("permissions")];
11053
+ permissions = this.getList("permissions").map((p2) => String(p2));
11032
11054
  }
11033
11055
  if (!Array.isArray(permissions)) permissions = [permissions];
11034
11056
  return permissions ? permissions : [];
@@ -11091,8 +11113,8 @@ class CustomGetter {
11091
11113
  // return synchronously
11092
11114
  case "properties":
11093
11115
  return this.getProperties();
11094
- case "ldp:contains":
11095
- return this.getLdpContains();
11116
+ case "listPredicate":
11117
+ return this.getContainerList();
11096
11118
  // returns standard arrays synchronously
11097
11119
  case "permissions":
11098
11120
  return this.getPermissions();
@@ -11126,6 +11148,7 @@ const base_context = {
11126
11148
  acl: "http://www.w3.org/ns/auth/acl#",
11127
11149
  hd: "http://cdn.startinblox.com/owl/ttl/vocab.ttl#",
11128
11150
  sib: "http://cdn.startinblox.com/owl/ttl/vocab.ttl#",
11151
+ dcat: "https://www.w3.org/ns/dcat#",
11129
11152
  name: "rdfs:label",
11130
11153
  deadline: "xsd:dateTime",
11131
11154
  lat: "geo:lat",
@@ -11319,7 +11342,7 @@ class Store {
11319
11342
  if (!key) console.log("No key or id for resource:", resource2);
11320
11343
  if (key === "/") key = parentId;
11321
11344
  if (key.startsWith("_:b")) key = key + parentId;
11322
- if (key === id && resource2["@type"] === this.getExpandedPredicate("ldp:Container", clientContext)) {
11345
+ if (key === id && resource2["@type"] === this.getExpandedPredicate("ldp:Container", clientContext) || resource2["@type"] === this.getExpandedPredicate("dcat:Catalog", clientContext)) {
11323
11346
  if (serverPagination)
11324
11347
  key = appendServerPaginationToIri(key, serverPagination);
11325
11348
  if (serverSearch) key = appendServerSearchToIri(key, serverSearch);
@@ -11376,8 +11399,9 @@ class Store {
11376
11399
  * @param container
11377
11400
  */
11378
11401
  subscribeChildren(container, containerId) {
11379
- if (!container["ldp:contains"]) return;
11380
- for (const res of container["ldp:contains"]) {
11402
+ const children = container["listPredicate"];
11403
+ if (!children) return;
11404
+ for (const res of children) {
11381
11405
  this.subscribeResourceTo(containerId, res["@id"] || res.id);
11382
11406
  }
11383
11407
  }
@@ -11491,9 +11515,10 @@ class Store {
11491
11515
  clearCache(id) {
11492
11516
  if (this.cache.has(id)) {
11493
11517
  const resource = this.cache.get(id);
11494
- if (resource["@type"] === "ldp:Container") {
11495
- for (const child of resource["ldp:contains"]) {
11496
- if (child && child["@type"] === "ldp:Container")
11518
+ const predicate = resource["listPredicate"];
11519
+ if (predicate) {
11520
+ for (const child of predicate) {
11521
+ if ((child == null ? void 0 : child["@type"]) && doesResourceContainList(child))
11497
11522
  this.cache.delete(child["@id"]);
11498
11523
  }
11499
11524
  }
@@ -11602,7 +11627,7 @@ class Store {
11602
11627
  * @returns boolean
11603
11628
  */
11604
11629
  _isLocalId(id) {
11605
- return id.startsWith("store://local.");
11630
+ return id == null ? void 0 : id.startsWith("store://local.");
11606
11631
  }
11607
11632
  /**
11608
11633
  * Make a resource listen changes of another one
@@ -12105,7 +12130,7 @@ class N {
12105
12130
  if (1 === r3.nodeType) {
12106
12131
  if (r3.hasAttributes()) for (const t3 of r3.getAttributeNames()) if (t3.endsWith(e$2)) {
12107
12132
  const i3 = v2[a2++], s3 = r3.getAttribute(t3).split(h$2), e2 = /([.?@])?(.*)/.exec(i3);
12108
- d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r3.removeAttribute(t3);
12133
+ d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k2 }), r3.removeAttribute(t3);
12109
12134
  } else t3.startsWith(h$2) && (d2.push({ type: 6, index: c2 }), r3.removeAttribute(t3));
12110
12135
  if ($.test(r3.tagName)) {
12111
12136
  const t3 = r3.textContent.split(h$2), s3 = t3.length - 1;
@@ -12226,7 +12251,7 @@ class R {
12226
12251
  void 0 === this._$AM && (this._$Cv = t2, (_a3 = this._$AP) == null ? void 0 : _a3.call(this, t2));
12227
12252
  }
12228
12253
  }
12229
- class k {
12254
+ class k2 {
12230
12255
  get tagName() {
12231
12256
  return this.element.tagName;
12232
12257
  }
@@ -12251,7 +12276,7 @@ class k {
12251
12276
  t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
12252
12277
  }
12253
12278
  }
12254
- class H extends k {
12279
+ class H extends k2 {
12255
12280
  constructor() {
12256
12281
  super(...arguments), this.type = 3;
12257
12282
  }
@@ -12259,7 +12284,7 @@ class H extends k {
12259
12284
  this.element[this.name] = t2 === E ? void 0 : t2;
12260
12285
  }
12261
12286
  }
12262
- class I extends k {
12287
+ class I extends k2 {
12263
12288
  constructor() {
12264
12289
  super(...arguments), this.type = 4;
12265
12290
  }
@@ -12267,7 +12292,7 @@ class I extends k {
12267
12292
  this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
12268
12293
  }
12269
12294
  }
12270
- class L extends k {
12295
+ class L extends k2 {
12271
12296
  constructor(t2, i3, s2, e2, h2) {
12272
12297
  super(t2, i3, s2, e2, h2), this.type = 5;
12273
12298
  }
@@ -12292,8 +12317,8 @@ class z {
12292
12317
  S(this, t2);
12293
12318
  }
12294
12319
  }
12295
- const j2 = t$1.litHtmlPolyfillSupport;
12296
- j2 == null ? void 0 : j2(N, R), (t$1.litHtmlVersions ?? (t$1.litHtmlVersions = [])).push("3.2.1");
12320
+ const j = t$1.litHtmlPolyfillSupport;
12321
+ j == null ? void 0 : j(N, R), (t$1.litHtmlVersions ?? (t$1.litHtmlVersions = [])).push("3.2.1");
12297
12322
  const B = (t2, i3, s2) => {
12298
12323
  const e2 = (s2 == null ? void 0 : s2.renderBefore) ?? i3;
12299
12324
  let h2 = e2._$litPart$;
@@ -12683,8 +12708,8 @@ function safeDispatchEvent(target, event) {
12683
12708
  function createsStackingContext(el) {
12684
12709
  while (el && el !== document.body) {
12685
12710
  var s2 = window.getComputedStyle(el);
12686
- var invalid = function(k2, ok) {
12687
- return !(s2[k2] === void 0 || s2[k2] === ok);
12711
+ var invalid = function(k3, ok) {
12712
+ return !(s2[k3] === void 0 || s2[k3] === ok);
12688
12713
  };
12689
12714
  if (s2.opacity < 1 || invalid("zIndex", "auto") || invalid("transform", "none") || invalid("mixBlendMode", "normal") || invalid("filter", "none") || invalid("perspective", "none") || s2["isolation"] === "isolate" || s2.position === "fixed" || s2.webkitOverflowScrolling === "touch") {
12690
12715
  return true;
@@ -13032,8 +13057,8 @@ dialogPolyfill.isInlinePositionSetByStylesheet = function(element) {
13032
13057
  if (!cssRules) {
13033
13058
  continue;
13034
13059
  }
13035
- for (var j3 = 0; j3 < cssRules.length; ++j3) {
13036
- var rule = cssRules[j3];
13060
+ for (var j2 = 0; j2 < cssRules.length; ++j2) {
13061
+ var rule = cssRules[j2];
13037
13062
  var selectedNodes = null;
13038
13063
  try {
13039
13064
  selectedNodes = document.querySelectorAll(rule.selectorText);
@@ -13785,11 +13810,11 @@ const FederationMixin = {
13785
13810
  },
13786
13811
  async fetchSource(containerId) {
13787
13812
  const cachedContainer = store.get(containerId);
13788
- if (!cachedContainer || cachedContainer["ldp:contains"] === null) {
13813
+ if (!cachedContainer || cachedContainer.getContainerList() === null) {
13789
13814
  store.clearCache(containerId);
13790
13815
  }
13791
13816
  const container = await store.getData(containerId, this.context);
13792
- return container ? container["ldp:contains"] : null;
13817
+ return container == null ? void 0 : container["listPredicate"];
13793
13818
  }
13794
13819
  };
13795
13820
  const isSet$1 = (field, fields) => {
@@ -13835,7 +13860,7 @@ const matchValue = async (val, query, throwOn) => {
13835
13860
  }
13836
13861
  if ((_a3 = subject.isContainer) == null ? void 0 : _a3.call(subject)) {
13837
13862
  let ret = Promise.resolve(query.value === "");
13838
- for (const value of subject["ldp:contains"]) {
13863
+ for (const value of subject["listPredicate"]) {
13839
13864
  ret = await ret || await matchValue(value, query);
13840
13865
  if (ret) return orThrow(throwOn, true);
13841
13866
  }
@@ -13883,7 +13908,7 @@ const traversePath = async (resource, path, targetedType) => {
13883
13908
  let targetsRes = await res[remainingPath[0]];
13884
13909
  if (!targetsRes) return [];
13885
13910
  if ((_a3 = targetsRes.isContainer) == null ? void 0 : _a3.call(targetsRes)) {
13886
- targetsRes = targetsRes["ldp:contains"];
13911
+ targetsRes = targetsRes["listPredicate"];
13887
13912
  }
13888
13913
  if (!Array.isArray(targetsRes)) targetsRes = [targetsRes];
13889
13914
  for (const targetRes of targetsRes) {
@@ -13909,7 +13934,7 @@ const matchFilter = async (resource, filter, query, fieldsAttr, searchForm, filt
13909
13934
  } else if (window.cachePropsSearchFilter[cacheKey].setSearchFields !== null) {
13910
13935
  fields = window.cachePropsSearchFilter[cacheKey].setSearchFields;
13911
13936
  } else {
13912
- if (!await resource[filter] && filter.includes("ldp:contains")) {
13937
+ if (!await resource[filter] && doesResourceContainList(filter)) {
13913
13938
  const path1 = filter.split(".");
13914
13939
  const targetedType = path1[path1.length - 1];
13915
13940
  let targetIds = [];
@@ -14092,7 +14117,7 @@ const FilterMixin = {
14092
14117
  await this.populate();
14093
14118
  },
14094
14119
  async getValuesOfField(field) {
14095
- const arrayOfDataObjects = this.resource["ldp:contains"];
14120
+ const arrayOfDataObjects = this.resource["listPredicate"];
14096
14121
  const arrayOfDataIds = [];
14097
14122
  for (const obj of arrayOfDataObjects) {
14098
14123
  const nextArrayOfObjects = await obj[field];
@@ -14105,12 +14130,11 @@ const FilterMixin = {
14105
14130
  }
14106
14131
  if (!nextArrayOfObjects.isContainer()) {
14107
14132
  arrayOfDataIds.push(nextArrayOfObjects["@id"]);
14108
- } else {
14109
- if (!nextArrayOfObjects["ldp:contains"]) continue;
14110
- for (const obj2 of nextArrayOfObjects["ldp:contains"]) {
14111
- arrayOfDataIds.push(obj2["@id"]);
14112
- }
14133
+ continue;
14113
14134
  }
14135
+ const children = nextArrayOfObjects["listPredicate"];
14136
+ if (!children) continue;
14137
+ arrayOfDataIds.push(...children.map((child) => child["@id"]));
14114
14138
  }
14115
14139
  return arrayOfDataIds;
14116
14140
  },
@@ -14386,7 +14410,7 @@ const ListMixin = {
14386
14410
  );
14387
14411
  const nextProcessor = listPostProcessorsCopy.shift();
14388
14412
  await nextProcessor(
14389
- this.resource["ldp:contains"],
14413
+ this.resource["listPredicate"],
14390
14414
  listPostProcessorsCopy,
14391
14415
  div,
14392
14416
  this.dataSrc
@@ -14584,7 +14608,7 @@ const RequiredMixin = {
14584
14608
  let hasProps = true;
14585
14609
  for (const field of requiredFields) {
14586
14610
  const res = await resource[field];
14587
- if (!res) {
14611
+ if (!res || typeof res === "object" && "@value" in res && !res["@value"]) {
14588
14612
  hasProps = false;
14589
14613
  break;
14590
14614
  }
@@ -17429,8 +17453,8 @@ function requireTinymce() {
17429
17453
  const hasOwnProperty$22 = Object.hasOwnProperty;
17430
17454
  const each$f = (obj, f2) => {
17431
17455
  const props = keys2(obj);
17432
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
17433
- const i3 = props[k2];
17456
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
17457
+ const i3 = props[k3];
17434
17458
  const x2 = obj[i3];
17435
17459
  f2(x2, i3);
17436
17460
  }
@@ -18093,8 +18117,8 @@ function requireTinymce() {
18093
18117
  };
18094
18118
  const setAll$1 = (element, attrs) => {
18095
18119
  const dom3 = element.dom;
18096
- each$f(attrs, (v2, k2) => {
18097
- rawSet(dom3, k2, v2);
18120
+ each$f(attrs, (v2, k3) => {
18121
+ rawSet(dom3, k3, v2);
18098
18122
  });
18099
18123
  };
18100
18124
  const get$9 = (element, key) => {
@@ -18355,8 +18379,8 @@ function requireTinymce() {
18355
18379
  };
18356
18380
  const setAll = (element, css) => {
18357
18381
  const dom3 = element.dom;
18358
- each$f(css, (v2, k2) => {
18359
- internalSet(dom3, k2, v2);
18382
+ each$f(css, (v2, k3) => {
18383
+ internalSet(dom3, k3, v2);
18360
18384
  });
18361
18385
  };
18362
18386
  const get$7 = (element, property) => {
@@ -32441,9 +32465,9 @@ function requireTinymce() {
32441
32465
  const tr = /\/$/.test(path) ? "/" : "";
32442
32466
  let normalizedBase = base2.split("/");
32443
32467
  const normalizedPath = path.split("/");
32444
- each$5(normalizedBase, (k2) => {
32445
- if (k2) {
32446
- o2.push(k2);
32468
+ each$5(normalizedBase, (k3) => {
32469
+ if (k3) {
32470
+ o2.push(k3);
32447
32471
  }
32448
32472
  });
32449
32473
  normalizedBase = o2;
@@ -33215,15 +33239,15 @@ function requireTinymce() {
33215
33239
  const middle = getMiddleSnake(start1, end1, start2, end2);
33216
33240
  if (middle === null || middle.start === end1 && middle.diag === end1 - end2 || middle.end === start1 && middle.diag === start1 - start2) {
33217
33241
  let i3 = start1;
33218
- let j3 = start2;
33219
- while (i3 < end1 || j3 < end2) {
33220
- if (i3 < end1 && j3 < end2 && left[i3] === right[j3]) {
33242
+ let j2 = start2;
33243
+ while (i3 < end1 || j2 < end2) {
33244
+ if (i3 < end1 && j2 < end2 && left[i3] === right[j2]) {
33221
33245
  script2.push([
33222
33246
  KEEP,
33223
33247
  left[i3]
33224
33248
  ]);
33225
33249
  ++i3;
33226
- ++j3;
33250
+ ++j2;
33227
33251
  } else {
33228
33252
  if (end1 - start1 > end2 - start2) {
33229
33253
  script2.push([
@@ -33234,9 +33258,9 @@ function requireTinymce() {
33234
33258
  } else {
33235
33259
  script2.push([
33236
33260
  INSERT,
33237
- right[j3]
33261
+ right[j2]
33238
33262
  ]);
33239
- ++j3;
33263
+ ++j2;
33240
33264
  }
33241
33265
  }
33242
33266
  }
@@ -33269,43 +33293,43 @@ function requireTinymce() {
33269
33293
  const offset = (sum % 2 === 0 ? sum : sum + 1) / 2;
33270
33294
  vDown[1 + offset] = start1;
33271
33295
  vUp[1 + offset] = end1 + 1;
33272
- let d2, k2, i3, x2, y2;
33296
+ let d2, k3, i3, x2, y2;
33273
33297
  for (d2 = 0; d2 <= offset; ++d2) {
33274
- for (k2 = -d2; k2 <= d2; k2 += 2) {
33275
- i3 = k2 + offset;
33276
- if (k2 === -d2 || k2 !== d2 && vDown[i3 - 1] < vDown[i3 + 1]) {
33298
+ for (k3 = -d2; k3 <= d2; k3 += 2) {
33299
+ i3 = k3 + offset;
33300
+ if (k3 === -d2 || k3 !== d2 && vDown[i3 - 1] < vDown[i3 + 1]) {
33277
33301
  vDown[i3] = vDown[i3 + 1];
33278
33302
  } else {
33279
33303
  vDown[i3] = vDown[i3 - 1] + 1;
33280
33304
  }
33281
33305
  x2 = vDown[i3];
33282
- y2 = x2 - start1 + start2 - k2;
33306
+ y2 = x2 - start1 + start2 - k3;
33283
33307
  while (x2 < end1 && y2 < end2 && left[x2] === right[y2]) {
33284
33308
  vDown[i3] = ++x2;
33285
33309
  ++y2;
33286
33310
  }
33287
- if (delta % 2 !== 0 && delta - d2 <= k2 && k2 <= delta + d2) {
33311
+ if (delta % 2 !== 0 && delta - d2 <= k3 && k3 <= delta + d2) {
33288
33312
  if (vUp[i3 - delta] <= vDown[i3]) {
33289
- return buildSnake(vUp[i3 - delta], k2 + start1 - start2, end1, end2);
33313
+ return buildSnake(vUp[i3 - delta], k3 + start1 - start2, end1, end2);
33290
33314
  }
33291
33315
  }
33292
33316
  }
33293
- for (k2 = delta - d2; k2 <= delta + d2; k2 += 2) {
33294
- i3 = k2 + offset - delta;
33295
- if (k2 === delta - d2 || k2 !== delta + d2 && vUp[i3 + 1] <= vUp[i3 - 1]) {
33317
+ for (k3 = delta - d2; k3 <= delta + d2; k3 += 2) {
33318
+ i3 = k3 + offset - delta;
33319
+ if (k3 === delta - d2 || k3 !== delta + d2 && vUp[i3 + 1] <= vUp[i3 - 1]) {
33296
33320
  vUp[i3] = vUp[i3 + 1] - 1;
33297
33321
  } else {
33298
33322
  vUp[i3] = vUp[i3 - 1];
33299
33323
  }
33300
33324
  x2 = vUp[i3] - 1;
33301
- y2 = x2 - start1 + start2 - k2;
33325
+ y2 = x2 - start1 + start2 - k3;
33302
33326
  while (x2 >= start1 && y2 >= start2 && left[x2] === right[y2]) {
33303
33327
  vUp[i3] = x2--;
33304
33328
  y2--;
33305
33329
  }
33306
- if (delta % 2 === 0 && -d2 <= k2 && k2 <= d2) {
33330
+ if (delta % 2 === 0 && -d2 <= k3 && k3 <= d2) {
33307
33331
  if (vUp[i3] <= vDown[i3 + delta]) {
33308
- return buildSnake(vUp[i3], k2 + start1 - start2, end1, end2);
33332
+ return buildSnake(vUp[i3], k3 + start1 - start2, end1, end2);
33309
33333
  }
33310
33334
  }
33311
33335
  }
@@ -38605,8 +38629,8 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
38605
38629
  throw new Error(`Can't merge zero objects`);
38606
38630
  }
38607
38631
  const ret = {};
38608
- for (let j3 = 0; j3 < objects.length; j3++) {
38609
- const curObject = objects[j3];
38632
+ for (let j2 = 0; j2 < objects.length; j2++) {
38633
+ const curObject = objects[j2];
38610
38634
  for (const key in curObject) {
38611
38635
  if (has$2(curObject, key)) {
38612
38636
  ret[key] = merger(ret[key], curObject[key]);
@@ -45470,7 +45494,7 @@ Options:${listJoiner}${removedOptions2.join(listJoiner)}` : "";
45470
45494
  return keys3[index2];
45471
45495
  },
45472
45496
  removeItem: (key) => {
45473
- keys3 = keys3.filter((k2) => k2 === key);
45497
+ keys3 = keys3.filter((k3) => k3 === key);
45474
45498
  delete data2[key];
45475
45499
  },
45476
45500
  clear: () => {
@@ -45942,8 +45966,8 @@ function requireTheme() {
45942
45966
  const hasOwnProperty2 = Object.hasOwnProperty;
45943
45967
  const each = (obj, f2) => {
45944
45968
  const props = keys2(obj);
45945
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
45946
- const i3 = props[k2];
45969
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
45970
+ const i3 = props[k3];
45947
45971
  const x2 = obj[i3];
45948
45972
  f2(x2, i3);
45949
45973
  }
@@ -45995,8 +46019,8 @@ function requireTheme() {
45995
46019
  };
45996
46020
  const find$4 = (obj, pred) => {
45997
46021
  const props = keys2(obj);
45998
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
45999
- const i3 = props[k2];
46022
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
46023
+ const i3 = props[k3];
46000
46024
  const x2 = obj[i3];
46001
46025
  if (pred(x2, i3, obj)) {
46002
46026
  return Optional.some(x2);
@@ -46229,8 +46253,8 @@ function requireTheme() {
46229
46253
  };
46230
46254
  const setAll$1 = (element2, attrs) => {
46231
46255
  const dom3 = element2.dom;
46232
- each(attrs, (v2, k2) => {
46233
- rawSet(dom3, k2, v2);
46256
+ each(attrs, (v2, k3) => {
46257
+ rawSet(dom3, k3, v2);
46234
46258
  });
46235
46259
  };
46236
46260
  const get$f = (element2, key) => {
@@ -46269,17 +46293,17 @@ function requireTheme() {
46269
46293
  };
46270
46294
  const setAll = (element2, css) => {
46271
46295
  const dom3 = element2.dom;
46272
- each(css, (v2, k2) => {
46273
- internalSet(dom3, k2, v2);
46296
+ each(css, (v2, k3) => {
46297
+ internalSet(dom3, k3, v2);
46274
46298
  });
46275
46299
  };
46276
46300
  const setOptions = (element2, css) => {
46277
46301
  const dom3 = element2.dom;
46278
- each(css, (v2, k2) => {
46302
+ each(css, (v2, k3) => {
46279
46303
  v2.fold(() => {
46280
- internalRemove(dom3, k2);
46304
+ internalRemove(dom3, k3);
46281
46305
  }, (value2) => {
46282
- internalSet(dom3, k2, value2);
46306
+ internalSet(dom3, k3, value2);
46283
46307
  });
46284
46308
  });
46285
46309
  };
@@ -47102,8 +47126,8 @@ function requireTheme() {
47102
47126
  throw new Error(`Can't merge zero objects`);
47103
47127
  }
47104
47128
  const ret = {};
47105
- for (let j3 = 0; j3 < objects.length; j3++) {
47106
- const curObject = objects[j3];
47129
+ for (let j2 = 0; j2 < objects.length; j2++) {
47130
+ const curObject = objects[j2];
47107
47131
  for (const key in curObject) {
47108
47132
  if (has$2(curObject, key)) {
47109
47133
  ret[key] = merger(ret[key], curObject[key]);
@@ -47247,7 +47271,7 @@ function requireTheme() {
47247
47271
  }, {});
47248
47272
  const extract2 = (path2, o2) => {
47249
47273
  const keys3 = isBoolean2(o2) ? [] : getSetKeys(o2);
47250
- const extra = filter$2(keys3, (k2) => !hasNonNullableKey(fieldNames, k2));
47274
+ const extra = filter$2(keys3, (k3) => !hasNonNullableKey(fieldNames, k3));
47251
47275
  return extra.length === 0 ? delegate.extract(path2, o2) : unsupportedFields(path2, extra);
47252
47276
  };
47253
47277
  return {
@@ -47552,9 +47576,9 @@ function requireTheme() {
47552
47576
  };
47553
47577
  const exclude$1 = (obj, fields) => {
47554
47578
  const r4 = {};
47555
- each(obj, (v2, k2) => {
47556
- if (!contains$2(fields, k2)) {
47557
- r4[k2] = v2;
47579
+ each(obj, (v2, k3) => {
47580
+ if (!contains$2(fields, k3)) {
47581
+ r4[k3] = v2;
47558
47582
  }
47559
47583
  });
47560
47584
  return r4;
@@ -48313,8 +48337,8 @@ function requireTheme() {
48313
48337
  const newKeys = keys2(newObj);
48314
48338
  const oldKeys = keys2(oldObj);
48315
48339
  const toRemove = difference(oldKeys, newKeys);
48316
- const toSet = bifilter(newObj, (v2, k2) => {
48317
- return !has$2(oldObj, k2) || v2 !== oldObj[k2];
48340
+ const toSet = bifilter(newObj, (v2, k3) => {
48341
+ return !has$2(oldObj, k3) || v2 !== oldObj[k3];
48318
48342
  }).t;
48319
48343
  return {
48320
48344
  toRemove,
@@ -51043,7 +51067,7 @@ function requireTheme() {
51043
51067
  const config3 = asRawOrDie$1("Sketcher for " + rawConfig.name, singleSchema, rawConfig);
51044
51068
  const sketch2 = (spec) => single$1(config3.name, config3.configFields, config3.factory, spec);
51045
51069
  const apis = map$1(config3.apis, makeApi);
51046
- const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
51070
+ const extraApis = map$1(config3.extraApis, (f2, k3) => markAsExtraApi(f2, k3));
51047
51071
  return {
51048
51072
  name: config3.name,
51049
51073
  configFields: config3.configFields,
@@ -51057,7 +51081,7 @@ function requireTheme() {
51057
51081
  const sketch2 = (spec) => composite$1(config3.name, config3.configFields, config3.partFields, config3.factory, spec);
51058
51082
  const parts2 = generate$3(config3.name, config3.partFields);
51059
51083
  const apis = map$1(config3.apis, makeApi);
51060
- const extraApis = map$1(config3.extraApis, (f2, k2) => markAsExtraApi(f2, k2));
51084
+ const extraApis = map$1(config3.extraApis, (f2, k3) => markAsExtraApi(f2, k3));
51061
51085
  return {
51062
51086
  name: config3.name,
51063
51087
  partFields: config3.partFields,
@@ -52469,9 +52493,9 @@ function requireTheme() {
52469
52493
  partFields: parts$g(),
52470
52494
  factory: make$7
52471
52495
  });
52472
- const transpose$1 = (obj) => tupleMap(obj, (v2, k2) => ({
52496
+ const transpose$1 = (obj) => tupleMap(obj, (v2, k3) => ({
52473
52497
  k: v2,
52474
- v: k2
52498
+ v: k3
52475
52499
  }));
52476
52500
  const trace = (items, byItem, byMenu, finish) => get$g(byMenu, finish).bind((triggerItem) => get$g(items, triggerItem).bind((triggerMenu) => {
52477
52501
  const rest = trace(items, byItem, byMenu, triggerMenu);
@@ -52635,8 +52659,8 @@ function requireTheme() {
52635
52659
  });
52636
52660
  const updateAriaExpansions = (container, path2) => {
52637
52661
  const parentItems = getSubmenuParents(container);
52638
- each(parentItems, (v2, k2) => {
52639
- const expanded = contains$2(path2, k2);
52662
+ each(parentItems, (v2, k3) => {
52663
+ const expanded = contains$2(path2, k3);
52640
52664
  set$9(v2.element, "aria-expanded", expanded);
52641
52665
  });
52642
52666
  };
@@ -55554,8 +55578,8 @@ function requireTheme() {
55554
55578
  const cells = [];
55555
55579
  for (let i3 = 0; i3 < numRows; i3++) {
55556
55580
  const row = [];
55557
- for (let j3 = 0; j3 < numCols; j3++) {
55558
- row.push(makeCell(i3, j3, labelId));
55581
+ for (let j2 = 0; j2 < numCols; j2++) {
55582
+ row.push(makeCell(i3, j2, labelId));
55559
55583
  }
55560
55584
  cells.push(row);
55561
55585
  }
@@ -55563,8 +55587,8 @@ function requireTheme() {
55563
55587
  };
55564
55588
  const selectCells = (cells, selectedRow, selectedColumn, numRows, numColumns) => {
55565
55589
  for (let i3 = 0; i3 < numRows; i3++) {
55566
- for (let j3 = 0; j3 < numColumns; j3++) {
55567
- Toggling.set(cells[i3][j3], i3 <= selectedRow && j3 <= selectedColumn);
55590
+ for (let j2 = 0; j2 < numColumns; j2++) {
55591
+ Toggling.set(cells[i3][j2], i3 <= selectedRow && j2 <= selectedColumn);
55568
55592
  }
55569
55593
  }
55570
55594
  };
@@ -56227,10 +56251,10 @@ function requireTheme() {
56227
56251
  const EventRegistry = () => {
56228
56252
  const registry = {};
56229
56253
  const registerId = (extraArgs, id, events3) => {
56230
- each(events3, (v2, k2) => {
56231
- const handlers2 = registry[k2] !== void 0 ? registry[k2] : {};
56254
+ each(events3, (v2, k3) => {
56255
+ const handlers2 = registry[k3] !== void 0 ? registry[k3] : {};
56232
56256
  handlers2[id] = curryArgs(v2, extraArgs);
56233
- registry[k2] = handlers2;
56257
+ registry[k3] = handlers2;
56234
56258
  });
56235
56259
  };
56236
56260
  const findHandler = (handlers2, elem) => read$1(elem).bind((id) => get$g(handlers2, id)).map((descHandler) => eventHandler(elem, descHandler));
@@ -70360,9 +70384,9 @@ function requireTheme() {
70360
70384
  const newInternalData = validateData$1(access, mergedData);
70361
70385
  const form = access.getFormWrapper();
70362
70386
  Representing.setValue(form, newInternalData);
70363
- each(menuItemStates, (v2, k2) => {
70364
- if (has$2(mergedData, k2)) {
70365
- v2.set(mergedData[k2]);
70387
+ each(menuItemStates, (v2, k3) => {
70388
+ if (has$2(mergedData, k3)) {
70389
+ v2.set(mergedData[k3]);
70366
70390
  }
70367
70391
  });
70368
70392
  });
@@ -71294,8 +71318,8 @@ function requireModel() {
71294
71318
  const hasOwnProperty2 = Object.hasOwnProperty;
71295
71319
  const each$1 = (obj, f2) => {
71296
71320
  const props = keys2(obj);
71297
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
71298
- const i3 = props[k2];
71321
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
71322
+ const i3 = props[k3];
71299
71323
  const x2 = obj[i3];
71300
71324
  f2(x2, i3);
71301
71325
  }
@@ -71383,16 +71407,16 @@ function requireModel() {
71383
71407
  };
71384
71408
  const setAll$1 = (element, attrs) => {
71385
71409
  const dom2 = element.dom;
71386
- each$1(attrs, (v2, k2) => {
71387
- rawSet(dom2, k2, v2);
71410
+ each$1(attrs, (v2, k3) => {
71411
+ rawSet(dom2, k3, v2);
71388
71412
  });
71389
71413
  };
71390
71414
  const setOptions = (element, attrs) => {
71391
- each$1(attrs, (v2, k2) => {
71415
+ each$1(attrs, (v2, k3) => {
71392
71416
  v2.fold(() => {
71393
- remove$7(element, k2);
71417
+ remove$7(element, k3);
71394
71418
  }, (value2) => {
71395
- rawSet(element.dom, k2, value2);
71419
+ rawSet(element.dom, k3, value2);
71396
71420
  });
71397
71421
  });
71398
71422
  };
@@ -71832,8 +71856,8 @@ function requireModel() {
71832
71856
  };
71833
71857
  const setAll = (element, css2) => {
71834
71858
  const dom2 = element.dom;
71835
- each$1(css2, (v2, k2) => {
71836
- internalSet(dom2, k2, v2);
71859
+ each$1(css2, (v2, k3) => {
71860
+ internalSet(dom2, k3, v2);
71837
71861
  });
71838
71862
  };
71839
71863
  const get$a = (element, property) => {
@@ -72979,9 +73003,9 @@ function requireModel() {
72979
73003
  const totalRows = house.grid.rows;
72980
73004
  for (let i3 = 0; i3 < totalRows; i3++) {
72981
73005
  let seenSelected = false;
72982
- for (let j3 = 0; j3 < totalColumns; j3++) {
72983
- if (!(i3 < stats.minRow || i3 > stats.maxRow || j3 < stats.minCol || j3 > stats.maxCol)) {
72984
- const needCell = Warehouse.getAt(house, i3, j3).filter(isSelected).isNone();
73006
+ for (let j2 = 0; j2 < totalColumns; j2++) {
73007
+ if (!(i3 < stats.minRow || i3 > stats.maxRow || j2 < stats.minCol || j2 > stats.maxCol)) {
73008
+ const needCell = Warehouse.getAt(house, i3, j2).filter(isSelected).isNone();
72985
73009
  if (needCell) {
72986
73010
  makeCell(rows2, seenSelected, i3);
72987
73011
  } else {
@@ -73113,11 +73137,11 @@ function requireModel() {
73113
73137
  };
73114
73138
  const replace$1 = (cell2, tag, attrs) => {
73115
73139
  const replica = copy$2(cell2, tag);
73116
- each$1(attrs, (v2, k2) => {
73140
+ each$1(attrs, (v2, k3) => {
73117
73141
  if (v2 === null) {
73118
- remove$7(replica, k2);
73142
+ remove$7(replica, k3);
73119
73143
  } else {
73120
- set$2(replica, k2, v2);
73144
+ set$2(replica, k3, v2);
73121
73145
  }
73122
73146
  });
73123
73147
  return replica;
@@ -73242,8 +73266,8 @@ function requireModel() {
73242
73266
  let isRect = true;
73243
73267
  const detailIsWithin = curry(isWithin, bounds2);
73244
73268
  for (let i3 = bounds2.startRow; i3 <= bounds2.finishRow; i3++) {
73245
- for (let j3 = bounds2.startCol; j3 <= bounds2.finishCol; j3++) {
73246
- isRect = isRect && Warehouse.getAt(warehouse, i3, j3).exists(detailIsWithin);
73269
+ for (let j2 = bounds2.startCol; j2 <= bounds2.finishCol; j2++) {
73270
+ isRect = isRect && Warehouse.getAt(warehouse, i3, j2).exists(detailIsWithin);
73247
73271
  }
73248
73272
  }
73249
73273
  return isRect ? Optional.some(bounds2) : Optional.none();
@@ -74269,10 +74293,10 @@ function requireModel() {
74269
74293
  return grid2;
74270
74294
  }
74271
74295
  for (let i3 = bounds2.startRow; i3 <= bounds2.finishRow; i3++) {
74272
- for (let j3 = bounds2.startCol; j3 <= bounds2.finishCol; j3++) {
74296
+ for (let j2 = bounds2.startCol; j2 <= bounds2.finishCol; j2++) {
74273
74297
  const row2 = rows2[i3];
74274
- const isLocked = getCell(row2, j3).isLocked;
74275
- mutateCell(row2, j3, elementnew(substitution(), false, isLocked));
74298
+ const isLocked = getCell(row2, j2).isLocked;
74299
+ mutateCell(row2, j2, elementnew(substitution(), false, isLocked));
74276
74300
  }
74277
74301
  }
74278
74302
  return grid2;
@@ -74281,13 +74305,13 @@ function requireModel() {
74281
74305
  const rows2 = extractGridDetails(grid2).rows;
74282
74306
  let first2 = true;
74283
74307
  for (let i3 = 0; i3 < rows2.length; i3++) {
74284
- for (let j3 = 0; j3 < cellLength(rows2[0]); j3++) {
74308
+ for (let j2 = 0; j2 < cellLength(rows2[0]); j2++) {
74285
74309
  const row2 = rows2[i3];
74286
- const currentCell = getCell(row2, j3);
74310
+ const currentCell = getCell(row2, j2);
74287
74311
  const currentCellElm = currentCell.element;
74288
74312
  const isToReplace = comparator(currentCellElm, target);
74289
74313
  if (isToReplace && !first2) {
74290
- mutateCell(row2, j3, elementnew(substitution(), true, currentCell.isLocked));
74314
+ mutateCell(row2, j2, elementnew(substitution(), true, currentCell.isLocked));
74291
74315
  } else if (isToReplace) {
74292
74316
  first2 = false;
74293
74317
  }
@@ -74323,16 +74347,16 @@ function requireModel() {
74323
74347
  each$2(cells2, (cell2) => {
74324
74348
  let replacement = Optional.none();
74325
74349
  for (let i3 = index2; i3 < rows2.length; i3++) {
74326
- for (let j3 = 0; j3 < cellLength(rows2[0]); j3++) {
74350
+ for (let j2 = 0; j2 < cellLength(rows2[0]); j2++) {
74327
74351
  const row2 = rows2[i3];
74328
- const current = getCell(row2, j3);
74352
+ const current = getCell(row2, j2);
74329
74353
  const isToReplace = comparator(current.element, cell2.element);
74330
74354
  if (isToReplace) {
74331
74355
  if (replacement.isNone()) {
74332
74356
  replacement = Optional.some(substitution());
74333
74357
  }
74334
74358
  replacement.each((sub) => {
74335
- mutateCell(row2, j3, elementnew(sub, true, current.isLocked));
74359
+ mutateCell(row2, j2, elementnew(sub, true, current.isLocked));
74336
74360
  });
74337
74361
  }
74338
74362
  }
@@ -75946,9 +75970,9 @@ function requireModel() {
75946
75970
  const tableColumn = () => SugarElement.fromTag("col");
75947
75971
  const createRow = (columns2, rowHeaders, columnHeaders, rowIndex) => {
75948
75972
  const tr = SugarElement.fromTag("tr");
75949
- for (let j3 = 0; j3 < columns2; j3++) {
75950
- const td = rowIndex < rowHeaders || j3 < columnHeaders ? tableHeaderCell() : tableCell();
75951
- if (j3 < columnHeaders) {
75973
+ for (let j2 = 0; j2 < columns2; j2++) {
75974
+ const td = rowIndex < rowHeaders || j2 < columnHeaders ? tableHeaderCell() : tableCell();
75975
+ if (j2 < columnHeaders) {
75952
75976
  set$2(td, "scope", "row");
75953
75977
  }
75954
75978
  if (rowIndex < rowHeaders) {
@@ -79279,8 +79303,8 @@ function requirePlugin$2() {
79279
79303
  const keys2 = Object.keys;
79280
79304
  const each = (obj, f2) => {
79281
79305
  const props = keys2(obj);
79282
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
79283
- const i3 = props[k2];
79306
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
79307
+ const i3 = props[k3];
79284
79308
  const x2 = obj[i3];
79285
79309
  f2(x2, i3);
79286
79310
  }
@@ -79310,8 +79334,8 @@ function requirePlugin$2() {
79310
79334
  };
79311
79335
  const setAll = (element, attrs) => {
79312
79336
  const dom2 = element.dom;
79313
- each(attrs, (v2, k2) => {
79314
- rawSet(dom2, k2, v2);
79337
+ each(attrs, (v2, k3) => {
79338
+ rawSet(dom2, k3, v2);
79315
79339
  });
79316
79340
  };
79317
79341
  const clone$1 = (element) => foldl(element.dom.attributes, (acc, attr) => {
@@ -80361,7 +80385,7 @@ function requirePlugin$2() {
80361
80385
  editor.dom.setStyles(parentList, update.styles);
80362
80386
  }
80363
80387
  if (isObject2(update.attrs)) {
80364
- each(update.attrs, (v2, k2) => editor.dom.setAttrib(parentList, k2, v2));
80388
+ each(update.attrs, (v2, k3) => editor.dom.setAttrib(parentList, k3, v2));
80365
80389
  }
80366
80390
  });
80367
80391
  };
@@ -80926,8 +80950,8 @@ function requirePlugin$1() {
80926
80950
  const hasOwnProperty2 = Object.hasOwnProperty;
80927
80951
  const each = (obj, f2) => {
80928
80952
  const props = keys2(obj);
80929
- for (let k2 = 0, len = props.length; k2 < len; k2++) {
80930
- const i3 = props[k2];
80953
+ for (let k3 = 0, len = props.length; k3 < len; k3++) {
80954
+ const i3 = props[k3];
80931
80955
  const x2 = obj[i3];
80932
80956
  f2(x2, i3);
80933
80957
  }
@@ -85787,11 +85811,11 @@ Url.prototype.parse = function(url2, slashesDenoteHost) {
85787
85811
  }
85788
85812
  if (!part.match(hostnamePartPattern)) {
85789
85813
  let newpart = "";
85790
- for (let j3 = 0, k2 = part.length; j3 < k2; j3++) {
85791
- if (part.charCodeAt(j3) > 127) {
85814
+ for (let j2 = 0, k3 = part.length; j2 < k3; j2++) {
85815
+ if (part.charCodeAt(j2) > 127) {
85792
85816
  newpart += "x";
85793
85817
  } else {
85794
- newpart += part[j3];
85818
+ newpart += part[j2];
85795
85819
  }
85796
85820
  }
85797
85821
  if (!newpart.match(hostnamePartPattern)) {
@@ -87089,11 +87113,11 @@ function linkify$1(state) {
87089
87113
  if (!state.md.options.linkify) {
87090
87114
  return;
87091
87115
  }
87092
- for (let j3 = 0, l2 = blockTokens.length; j3 < l2; j3++) {
87093
- if (blockTokens[j3].type !== "inline" || !state.md.linkify.pretest(blockTokens[j3].content)) {
87116
+ for (let j2 = 0, l2 = blockTokens.length; j2 < l2; j2++) {
87117
+ if (blockTokens[j2].type !== "inline" || !state.md.linkify.pretest(blockTokens[j2].content)) {
87094
87118
  continue;
87095
87119
  }
87096
- let tokens = blockTokens[j3].children;
87120
+ let tokens = blockTokens[j2].children;
87097
87121
  let htmlLinkLevel = 0;
87098
87122
  for (let i3 = tokens.length - 1; i3 >= 0; i3--) {
87099
87123
  const currentToken = tokens[i3];
@@ -87168,7 +87192,7 @@ function linkify$1(state) {
87168
87192
  token.level = level2;
87169
87193
  nodes.push(token);
87170
87194
  }
87171
- blockTokens[j3].children = tokens = arrayReplaceAt(tokens, i3, nodes);
87195
+ blockTokens[j2].children = tokens = arrayReplaceAt(tokens, i3, nodes);
87172
87196
  }
87173
87197
  }
87174
87198
  }
@@ -87240,17 +87264,17 @@ function replaceAt(str, index2, ch) {
87240
87264
  return str.slice(0, index2) + ch + str.slice(index2 + 1);
87241
87265
  }
87242
87266
  function process_inlines(tokens, state) {
87243
- let j3;
87267
+ let j2;
87244
87268
  const stack = [];
87245
87269
  for (let i3 = 0; i3 < tokens.length; i3++) {
87246
87270
  const token = tokens[i3];
87247
87271
  const thisLevel = tokens[i3].level;
87248
- for (j3 = stack.length - 1; j3 >= 0; j3--) {
87249
- if (stack[j3].level <= thisLevel) {
87272
+ for (j2 = stack.length - 1; j2 >= 0; j2--) {
87273
+ if (stack[j2].level <= thisLevel) {
87250
87274
  break;
87251
87275
  }
87252
87276
  }
87253
- stack.length = j3 + 1;
87277
+ stack.length = j2 + 1;
87254
87278
  if (token.type !== "text") {
87255
87279
  continue;
87256
87280
  }
@@ -87272,10 +87296,10 @@ function process_inlines(tokens, state) {
87272
87296
  if (t2.index - 1 >= 0) {
87273
87297
  lastChar = text2.charCodeAt(t2.index - 1);
87274
87298
  } else {
87275
- for (j3 = i3 - 1; j3 >= 0; j3--) {
87276
- if (tokens[j3].type === "softbreak" || tokens[j3].type === "hardbreak") break;
87277
- if (!tokens[j3].content) continue;
87278
- lastChar = tokens[j3].content.charCodeAt(tokens[j3].content.length - 1);
87299
+ for (j2 = i3 - 1; j2 >= 0; j2--) {
87300
+ if (tokens[j2].type === "softbreak" || tokens[j2].type === "hardbreak") break;
87301
+ if (!tokens[j2].content) continue;
87302
+ lastChar = tokens[j2].content.charCodeAt(tokens[j2].content.length - 1);
87279
87303
  break;
87280
87304
  }
87281
87305
  }
@@ -87283,10 +87307,10 @@ function process_inlines(tokens, state) {
87283
87307
  if (pos < max) {
87284
87308
  nextChar = text2.charCodeAt(pos);
87285
87309
  } else {
87286
- for (j3 = i3 + 1; j3 < tokens.length; j3++) {
87287
- if (tokens[j3].type === "softbreak" || tokens[j3].type === "hardbreak") break;
87288
- if (!tokens[j3].content) continue;
87289
- nextChar = tokens[j3].content.charCodeAt(0);
87310
+ for (j2 = i3 + 1; j2 < tokens.length; j2++) {
87311
+ if (tokens[j2].type === "softbreak" || tokens[j2].type === "hardbreak") break;
87312
+ if (!tokens[j2].content) continue;
87313
+ nextChar = tokens[j2].content.charCodeAt(0);
87290
87314
  break;
87291
87315
  }
87292
87316
  }
@@ -87324,13 +87348,13 @@ function process_inlines(tokens, state) {
87324
87348
  continue;
87325
87349
  }
87326
87350
  if (canClose) {
87327
- for (j3 = stack.length - 1; j3 >= 0; j3--) {
87328
- let item = stack[j3];
87329
- if (stack[j3].level < thisLevel) {
87351
+ for (j2 = stack.length - 1; j2 >= 0; j2--) {
87352
+ let item = stack[j2];
87353
+ if (stack[j2].level < thisLevel) {
87330
87354
  break;
87331
87355
  }
87332
- if (item.single === isSingle && stack[j3].level === thisLevel) {
87333
- item = stack[j3];
87356
+ if (item.single === isSingle && stack[j2].level === thisLevel) {
87357
+ item = stack[j2];
87334
87358
  let openQuote;
87335
87359
  let closeQuote;
87336
87360
  if (isSingle) {
@@ -87352,7 +87376,7 @@ function process_inlines(tokens, state) {
87352
87376
  }
87353
87377
  text2 = token.content;
87354
87378
  max = text2.length;
87355
- stack.length = j3;
87379
+ stack.length = j2;
87356
87380
  continue OUTER;
87357
87381
  }
87358
87382
  }
@@ -87385,9 +87409,9 @@ function text_join(state) {
87385
87409
  let curr, last;
87386
87410
  const blockTokens = state.tokens;
87387
87411
  const l2 = blockTokens.length;
87388
- for (let j3 = 0; j3 < l2; j3++) {
87389
- if (blockTokens[j3].type !== "inline") continue;
87390
- const tokens = blockTokens[j3].children;
87412
+ for (let j2 = 0; j2 < l2; j2++) {
87413
+ if (blockTokens[j2].type !== "inline") continue;
87414
+ const tokens = blockTokens[j2].children;
87391
87415
  const max = tokens.length;
87392
87416
  for (curr = 0; curr < max; curr++) {
87393
87417
  if (tokens[curr].type === "text_special") {
@@ -89093,14 +89117,14 @@ function postProcess$1(state, delimiters) {
89093
89117
  }
89094
89118
  while (loneMarkers.length) {
89095
89119
  const i3 = loneMarkers.pop();
89096
- let j3 = i3 + 1;
89097
- while (j3 < state.tokens.length && state.tokens[j3].type === "s_close") {
89098
- j3++;
89099
- }
89100
- j3--;
89101
- if (i3 !== j3) {
89102
- token = state.tokens[j3];
89103
- state.tokens[j3] = state.tokens[i3];
89120
+ let j2 = i3 + 1;
89121
+ while (j2 < state.tokens.length && state.tokens[j2].type === "s_close") {
89122
+ j2++;
89123
+ }
89124
+ j2--;
89125
+ if (i3 !== j2) {
89126
+ token = state.tokens[j2];
89127
+ state.tokens[j2] = state.tokens[i3];
89104
89128
  state.tokens[i3] = token;
89105
89129
  }
89106
89130
  }
@@ -89816,8 +89840,8 @@ const defaultOptions$1 = {
89816
89840
  fuzzyIP: false
89817
89841
  };
89818
89842
  function isOptionsObj(obj) {
89819
- return Object.keys(obj || {}).reduce(function(acc, k2) {
89820
- return acc || defaultOptions$1.hasOwnProperty(k2);
89843
+ return Object.keys(obj || {}).reduce(function(acc, k3) {
89844
+ return acc || defaultOptions$1.hasOwnProperty(k3);
89821
89845
  }, false);
89822
89846
  }
89823
89847
  const defaultSchemas = {
@@ -90210,13 +90234,13 @@ const digitToBasic = function(digit, flag) {
90210
90234
  return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
90211
90235
  };
90212
90236
  const adapt = function(delta, numPoints, firstTime) {
90213
- let k2 = 0;
90237
+ let k3 = 0;
90214
90238
  delta = firstTime ? floor(delta / damp) : delta >> 1;
90215
90239
  delta += floor(delta / numPoints);
90216
- for (; delta > baseMinusTMin * tMax >> 1; k2 += base) {
90240
+ for (; delta > baseMinusTMin * tMax >> 1; k3 += base) {
90217
90241
  delta = floor(delta / baseMinusTMin);
90218
90242
  }
90219
- return floor(k2 + (baseMinusTMin + 1) * delta / (delta + skew));
90243
+ return floor(k3 + (baseMinusTMin + 1) * delta / (delta + skew));
90220
90244
  };
90221
90245
  const decode = function(input) {
90222
90246
  const output = [];
@@ -90228,15 +90252,15 @@ const decode = function(input) {
90228
90252
  if (basic < 0) {
90229
90253
  basic = 0;
90230
90254
  }
90231
- for (let j3 = 0; j3 < basic; ++j3) {
90232
- if (input.charCodeAt(j3) >= 128) {
90255
+ for (let j2 = 0; j2 < basic; ++j2) {
90256
+ if (input.charCodeAt(j2) >= 128) {
90233
90257
  error("not-basic");
90234
90258
  }
90235
- output.push(input.charCodeAt(j3));
90259
+ output.push(input.charCodeAt(j2));
90236
90260
  }
90237
90261
  for (let index2 = basic > 0 ? basic + 1 : 0; index2 < inputLength; ) {
90238
90262
  const oldi = i3;
90239
- for (let w = 1, k2 = base; ; k2 += base) {
90263
+ for (let w = 1, k3 = base; ; k3 += base) {
90240
90264
  if (index2 >= inputLength) {
90241
90265
  error("invalid-input");
90242
90266
  }
@@ -90248,7 +90272,7 @@ const decode = function(input) {
90248
90272
  error("overflow");
90249
90273
  }
90250
90274
  i3 += digit * w;
90251
- const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
90275
+ const t2 = k3 <= bias ? tMin : k3 >= bias + tMax ? tMax : k3 - bias;
90252
90276
  if (digit < t2) {
90253
90277
  break;
90254
90278
  }
@@ -90305,8 +90329,8 @@ const encode = function(input) {
90305
90329
  }
90306
90330
  if (currentValue === n3) {
90307
90331
  let q = delta;
90308
- for (let k2 = base; ; k2 += base) {
90309
- const t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
90332
+ for (let k3 = base; ; k3 += base) {
90333
+ const t2 = k3 <= bias ? tMin : k3 >= bias + tMax ? tMax : k3 - bias;
90310
90334
  if (q < t2) {
90311
90335
  break;
90312
90336
  }
@@ -92839,15 +92863,15 @@ function requireDiff() {
92839
92863
  }
92840
92864
  }
92841
92865
  }
92842
- for (var k2 = -d2 + k2start; k2 <= d2 - k2end; k2 += 2) {
92843
- var k2_offset = v_offset + k2;
92866
+ for (var k22 = -d2 + k2start; k22 <= d2 - k2end; k22 += 2) {
92867
+ var k2_offset = v_offset + k22;
92844
92868
  var x22;
92845
- if (k2 === -d2 || k2 !== d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
92869
+ if (k22 === -d2 || k22 !== d2 && v2[k2_offset - 1] < v2[k2_offset + 1]) {
92846
92870
  x22 = v2[k2_offset + 1];
92847
92871
  } else {
92848
92872
  x22 = v2[k2_offset - 1] + 1;
92849
92873
  }
92850
- var y2 = x22 - k2;
92874
+ var y2 = x22 - k22;
92851
92875
  while (x22 < text1_length && y2 < text2_length && text1.charAt(text1_length - x22 - 1) === text2.charAt(text2_length - y2 - 1)) {
92852
92876
  x22++;
92853
92877
  y2++;
@@ -92858,7 +92882,7 @@ function requireDiff() {
92858
92882
  } else if (y2 > text2_length) {
92859
92883
  k2start += 2;
92860
92884
  } else if (!front) {
92861
- var k1_offset = v_offset + delta - k2;
92885
+ var k1_offset = v_offset + delta - k22;
92862
92886
  if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {
92863
92887
  var x1 = v1[k1_offset];
92864
92888
  var y1 = v_offset + x1 - k1_offset;
@@ -92966,24 +92990,24 @@ function requireDiff() {
92966
92990
  }
92967
92991
  function diff_halfMatchI_(longtext2, shorttext2, i3) {
92968
92992
  var seed = longtext2.substring(i3, i3 + Math.floor(longtext2.length / 4));
92969
- var j3 = -1;
92993
+ var j2 = -1;
92970
92994
  var best_common = "";
92971
92995
  var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
92972
- while ((j3 = shorttext2.indexOf(seed, j3 + 1)) !== -1) {
92996
+ while ((j2 = shorttext2.indexOf(seed, j2 + 1)) !== -1) {
92973
92997
  var prefixLength = diff_commonPrefix(
92974
92998
  longtext2.substring(i3),
92975
- shorttext2.substring(j3)
92999
+ shorttext2.substring(j2)
92976
93000
  );
92977
93001
  var suffixLength = diff_commonSuffix(
92978
93002
  longtext2.substring(0, i3),
92979
- shorttext2.substring(0, j3)
93003
+ shorttext2.substring(0, j2)
92980
93004
  );
92981
93005
  if (best_common.length < suffixLength + prefixLength) {
92982
- best_common = shorttext2.substring(j3 - suffixLength, j3) + shorttext2.substring(j3, j3 + prefixLength);
93006
+ best_common = shorttext2.substring(j2 - suffixLength, j2) + shorttext2.substring(j2, j2 + prefixLength);
92983
93007
  best_longtext_a = longtext2.substring(0, i3 - suffixLength);
92984
93008
  best_longtext_b = longtext2.substring(i3 + prefixLength);
92985
- best_shorttext_a = shorttext2.substring(0, j3 - suffixLength);
92986
- best_shorttext_b = shorttext2.substring(j3 + prefixLength);
93009
+ best_shorttext_a = shorttext2.substring(0, j2 - suffixLength);
93010
+ best_shorttext_b = shorttext2.substring(j2 + prefixLength);
92987
93011
  }
92988
93012
  }
92989
93013
  if (best_common.length * 2 >= longtext2.length) {
@@ -93240,18 +93264,18 @@ function requireDiff() {
93240
93264
  if (!diffs[previous_equality][1]) {
93241
93265
  diffs.splice(previous_equality, 1);
93242
93266
  pointer--;
93243
- var k2 = previous_equality - 1;
93244
- if (diffs[k2] && diffs[k2][0] === DIFF_INSERT) {
93267
+ var k3 = previous_equality - 1;
93268
+ if (diffs[k3] && diffs[k3][0] === DIFF_INSERT) {
93245
93269
  count_insert++;
93246
- text_insert = diffs[k2][1] + text_insert;
93247
- k2--;
93270
+ text_insert = diffs[k3][1] + text_insert;
93271
+ k3--;
93248
93272
  }
93249
- if (diffs[k2] && diffs[k2][0] === DIFF_DELETE) {
93273
+ if (diffs[k3] && diffs[k3][0] === DIFF_DELETE) {
93250
93274
  count_delete++;
93251
- text_delete = diffs[k2][1] + text_delete;
93252
- k2--;
93275
+ text_delete = diffs[k3][1] + text_delete;
93276
+ k3--;
93253
93277
  }
93254
- previous_equality = k2;
93278
+ previous_equality = k3;
93255
93279
  }
93256
93280
  }
93257
93281
  if (starts_with_pair_end(diffs[pointer][1])) {
@@ -95834,7 +95858,7 @@ function requireEventemitter3() {
95834
95858
  }
95835
95859
  listeners.fn.apply(listeners.context, args);
95836
95860
  } else {
95837
- var length = listeners.length, j3;
95861
+ var length = listeners.length, j2;
95838
95862
  for (i3 = 0; i3 < length; i3++) {
95839
95863
  if (listeners[i3].once) this.removeListener(event, listeners[i3].fn, void 0, true);
95840
95864
  switch (len) {
@@ -95851,8 +95875,8 @@ function requireEventemitter3() {
95851
95875
  listeners[i3].fn.call(listeners[i3].context, a1, a2, a3);
95852
95876
  break;
95853
95877
  default:
95854
- if (!args) for (j3 = 1, args = new Array(len - 1); j3 < len; j3++) {
95855
- args[j3 - 1] = arguments[j3];
95878
+ if (!args) for (j2 = 1, args = new Array(len - 1); j2 < len; j2++) {
95879
+ args[j2 - 1] = arguments[j2];
95856
95880
  }
95857
95881
  listeners[i3].fn.apply(listeners[i3].context, args);
95858
95882
  }
@@ -102301,9 +102325,11 @@ const MultipleFormMixin = {
102301
102325
  if (nextProcessor) nextProcessor(value, listValueTransformations);
102302
102326
  },
102303
102327
  populate() {
102304
- if (!this.resource || !this.resource["ldp:contains"]) return;
102328
+ var _a3;
102329
+ const resources = (_a3 = this.resource) == null ? void 0 : _a3["listPredicate"];
102330
+ if (!resources) return;
102305
102331
  this.listAttributes.children = [];
102306
- for (const resource of this.resource["ldp:contains"]) {
102332
+ for (const resource of resources) {
102307
102333
  this.insertWidget(resource["@id"]);
102308
102334
  }
102309
102335
  this.planRender();
@@ -102404,9 +102430,10 @@ const MultipleselectFormMixin = {
102404
102430
  if (nextProcessor) nextProcessor(value, listValueTransformations);
102405
102431
  },
102406
102432
  populate() {
102407
- if (!this.resource || !this.resource["ldp:contains"] && !Array.isArray(this.resource))
102408
- return;
102409
- this.setValue(this.resource["ldp:contains"]);
102433
+ var _a3;
102434
+ const resources = (_a3 = this.resource) == null ? void 0 : _a3["listPredicate"];
102435
+ if (!this.resource || !resources && !Array.isArray(this.resource)) return;
102436
+ this.setValue(resources);
102410
102437
  this.planRender();
102411
102438
  },
102412
102439
  setValue(values) {
@@ -102497,7 +102524,7 @@ const RangeMixin = {
102497
102524
  this.listAttributes.optionValue = this.optionValue;
102498
102525
  },
102499
102526
  async populate() {
102500
- const resources = this.resource ? this.resource["ldp:contains"] : [];
102527
+ const resources = this.resource ? this.resource["listPredicate"] : [];
102501
102528
  const listPostProcessorsCopy = this.listPostProcessors.deepCopy();
102502
102529
  listPostProcessorsCopy.attach(
102503
102530
  this.setRangeAttribute.bind(this),
@@ -102876,7 +102903,7 @@ function requireOpLinkSanitizer() {
102876
102903
  if (mod && mod.__esModule) return mod;
102877
102904
  var result = {};
102878
102905
  if (mod != null) {
102879
- for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
102906
+ for (var k3 in mod) if (Object.hasOwnProperty.call(mod, k3)) result[k3] = mod[k3];
102880
102907
  }
102881
102908
  result["default"] = mod;
102882
102909
  return result;
@@ -103135,9 +103162,9 @@ function requireOpAttributeSanitizer() {
103135
103162
  cleanAttrs.mention = mention;
103136
103163
  }
103137
103164
  }
103138
- return Object.keys(dirtyAttrs).reduce(function(cleaned, k2) {
103139
- if (sanitizedAttrs.indexOf(k2) === -1) {
103140
- cleaned[k2] = dirtyAttrs[k2];
103165
+ return Object.keys(dirtyAttrs).reduce(function(cleaned, k3) {
103166
+ if (sanitizedAttrs.indexOf(k3) === -1) {
103167
+ cleaned[k3] = dirtyAttrs[k3];
103141
103168
  }
103142
103169
  return cleaned;
103143
103170
  }, cleanAttrs);
@@ -103249,7 +103276,7 @@ function requireInsertOpDenormalizer() {
103249
103276
  if (mod && mod.__esModule) return mod;
103250
103277
  var result = {};
103251
103278
  if (mod != null) {
103252
- for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
103279
+ for (var k3 in mod) if (Object.hasOwnProperty.call(mod, k3)) result[k3] = mod[k3];
103253
103280
  }
103254
103281
  result["default"] = mod;
103255
103282
  return result;
@@ -103350,7 +103377,7 @@ function requireOpToHtmlConverter() {
103350
103377
  if (mod && mod.__esModule) return mod;
103351
103378
  var result = {};
103352
103379
  if (mod != null) {
103353
- for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
103380
+ for (var k3 in mod) if (Object.hasOwnProperty.call(mod, k3)) result[k3] = mod[k3];
103354
103381
  }
103355
103382
  result["default"] = mod;
103356
103383
  return result;
@@ -103508,8 +103535,8 @@ function requireOpToHtmlConverter() {
103508
103535
  }
103509
103536
  var makeAttr = this.makeAttr.bind(this);
103510
103537
  var customTagAttributes = this.getCustomTagAttributes();
103511
- var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(k2) {
103512
- return makeAttr(k2, customTagAttributes[k2]);
103538
+ var customAttr = customTagAttributes ? Object.keys(this.getCustomTagAttributes()).map(function(k3) {
103539
+ return makeAttr(k3, customTagAttributes[k3]);
103513
103540
  }) : [];
103514
103541
  var classes = this.getCssClasses();
103515
103542
  var tagAttrs = classes.length ? customAttr.concat([makeAttr("class", classes.join(" "))]) : customAttr;
@@ -103556,8 +103583,8 @@ function requireOpToHtmlConverter() {
103556
103583
  }
103557
103584
  return tagAttrs;
103558
103585
  };
103559
- OpToHtmlConverter2.prototype.makeAttr = function(k2, v2) {
103560
- return { key: k2, value: v2 };
103586
+ OpToHtmlConverter2.prototype.makeAttr = function(k3, v2) {
103587
+ return { key: k3, value: v2 };
103561
103588
  };
103562
103589
  OpToHtmlConverter2.prototype.getLinkAttrs = function() {
103563
103590
  var tagAttrs = [];
@@ -104003,7 +104030,7 @@ function requireQuillDeltaToHtmlConverter() {
104003
104030
  if (mod && mod.__esModule) return mod;
104004
104031
  var result = {};
104005
104032
  if (mod != null) {
104006
- for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
104033
+ for (var k3 in mod) if (Object.hasOwnProperty.call(mod, k3)) result[k3] = mod[k3];
104007
104034
  }
104008
104035
  result["default"] = mod;
104009
104036
  return result;
@@ -107354,7 +107381,8 @@ const WidgetMixin = {
107354
107381
  if (attr) return parseFieldsString(attr);
107355
107382
  let resource = this.resource;
107356
107383
  if ((_a3 = resource == null ? void 0 : resource.isContainer) == null ? void 0 : _a3.call(resource)) {
107357
- for (const res of resource["ldp:contains"]) {
107384
+ const resources = resource["listPredicate"];
107385
+ for (const res of resources) {
107358
107386
  resource = res;
107359
107387
  break;
107360
107388
  }
@@ -107455,7 +107483,7 @@ const WidgetMixin = {
107455
107483
  }
107456
107484
  if (fieldValue === null || fieldValue === void 0 || fieldValue === "")
107457
107485
  return void 0;
107458
- if (Array.isArray(fieldValue) && !fieldValue["ldp:contains"]) {
107486
+ if (Array.isArray(fieldValue) && !doesResourceContainList(fieldValue)) {
107459
107487
  return JSON.stringify(fieldValue);
107460
107488
  }
107461
107489
  if (typeof fieldValue === "object" && fieldValue["@id"] && Object.keys(fieldValue).length === 1) {
@@ -108157,10 +108185,7 @@ const SolidForm = {
108157
108185
  const value = this.value;
108158
108186
  if (this.resource && !((_b = (_a3 = this.resource).isContainer) == null ? void 0 : _b.call(_a3))) {
108159
108187
  for (const predicate of Object.keys(this.value)) {
108160
- let object2 = await this.resource[predicate];
108161
- if (!object2) {
108162
- object2 = await this.resource[store.getExpandedPredicate(predicate, this.context)];
108163
- }
108188
+ const object2 = await this.resource.getList(predicate);
108164
108189
  if ((object2 == null ? void 0 : object2["@id"]) && !value[predicate]["@id"])
108165
108190
  value[predicate]["@id"] = object2["@id"];
108166
108191
  if (object2 && !object2["@id"] && Array.isArray(object2) && value[predicate].length === 0 && object2.length > 0) {
@@ -109506,13 +109531,14 @@ class BaseWidget extends HTMLElement {
109506
109531
  }
109507
109532
  async fetchSources(resource) {
109508
109533
  var _a3;
109509
- if (!resource || !resource["ldp:contains"]) return null;
109534
+ const data = resource["listPredicate"];
109535
+ if (!data) return null;
109510
109536
  const resources = [];
109511
109537
  let index2 = 0;
109512
- for (let res of resource["ldp:contains"]) {
109538
+ for (let res of data) {
109513
109539
  if (!res) {
109514
109540
  try {
109515
- const resourceId = resource.getChildren("ldp:contains")[index2]["@id"];
109541
+ const resourceId = data[index2]["@id"];
109516
109542
  res = await store.getData(resourceId, this.context);
109517
109543
  } catch {
109518
109544
  continue;
@@ -109524,8 +109550,9 @@ class BaseWidget extends HTMLElement {
109524
109550
  this.context
109525
109551
  );
109526
109552
  this._listen(res["@id"]);
109527
- if (resourcesFromContainer)
109528
- resources.push(...resourcesFromContainer["ldp:contains"]);
109553
+ if (resourcesFromContainer) {
109554
+ resources.push(...resourcesFromContainer["listPredicate"]);
109555
+ }
109529
109556
  } else {
109530
109557
  resources.push(res);
109531
109558
  }
@@ -109544,7 +109571,7 @@ class BaseWidget extends HTMLElement {
109544
109571
  let selected;
109545
109572
  if ((_b = (_a3 = this._value) == null ? void 0 : _a3.isContainer) == null ? void 0 : _b.call(_a3)) {
109546
109573
  selected = false;
109547
- for await (const value of this._value["ldp:contains"]) {
109574
+ for await (const value of this._value["listPredicate"]) {
109548
109575
  if (value["@id"] === element["@id"]) {
109549
109576
  selected = true;
109550
109577
  break;
@@ -109649,7 +109676,7 @@ export {
109649
109676
  FederationMixin,
109650
109677
  FilterMixin,
109651
109678
  GrouperMixin,
109652
- j as Helpers,
109679
+ k as Helpers,
109653
109680
  HighlighterMixin,
109654
109681
  ListMixin,
109655
109682
  NextMixin,