@ts4nfdi/terminology-service-suite 7.4.2 → 7.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,12 @@ import { DataSet as cr } from "vis-data";
11
11
  import { Network as Ko } from "vis-network";
12
12
  import "@google/model-viewer";
13
13
  import { css as xi } from "@emotion/react";
14
- const Nt = ["class", "term", "skos:Concept"], Gr = [
14
+ const Nt = [
15
+ "class",
16
+ "term",
17
+ "skos:Concept",
18
+ "http://www.w3.org/2004/02/skos/core#Concept"
19
+ ], Gr = [
15
20
  "property",
16
21
  "annotationProperty",
17
22
  "dataProperty",
@@ -1179,6 +1184,7 @@ function ws(e, t, n) {
1179
1184
  return n ? new hs(e) : new ms(e);
1180
1185
  case "term":
1181
1186
  case "skos:Concept":
1187
+ case "http://www.w3.org/2004/02/skos/core#Concept":
1182
1188
  case "class":
1183
1189
  return n ? new cs(
1184
1190
  At(
@@ -1291,13 +1297,13 @@ class ze extends Fi {
1291
1297
  * @param abortSignal
1292
1298
  */
1293
1299
  $(this, "getTerm", async (n, o, r, s, a, c) => {
1294
- const d = r != null && r.ontologyId ? "ontologies/" + (r == null ? void 0 : r.ontologyId) + "/" : "", h = Ve(a) ? "terms" : "classes", m = {
1300
+ const d = r != null && r.ontologyId ? "ontologies/" + (r == null ? void 0 : r.ontologyId) + "/" : "", h = Ve(a) ? "terms" : "classes", g = {
1295
1301
  iri: r == null ? void 0 : r.termIri,
1296
1302
  ...He(s)
1297
1303
  };
1298
1304
  return this.makeCall(
1299
1305
  d + h,
1300
- { params: m, signal: c },
1306
+ { params: g, signal: c },
1301
1307
  Ve(a)
1302
1308
  );
1303
1309
  });
@@ -1802,10 +1808,10 @@ function Ss(e) {
1802
1808
  parameter: c,
1803
1809
  useLegacy: d,
1804
1810
  onNavigateToOntology: h,
1805
- className: m
1806
- } = e, y = new ze(t), { data: S, isLoading: w, isSuccess: I, isError: p, error: C } = xe(
1811
+ className: g
1812
+ } = e, m = new ze(t), { data: S, isLoading: w, isSuccess: I, isError: p, error: C } = xe(
1807
1813
  ["breadcrumb", t, c, r, o, n, d],
1808
- async () => await y.getEntityObject(
1814
+ async () => await m.getEntityObject(
1809
1815
  o,
1810
1816
  r,
1811
1817
  n,
@@ -1842,7 +1848,7 @@ function Ss(e) {
1842
1848
  colorFirst: s,
1843
1849
  colorSecond: a,
1844
1850
  onNavigateToOntology: h,
1845
- className: m
1851
+ className: g
1846
1852
  }
1847
1853
  ),
1848
1854
  p && /* @__PURE__ */ i(
@@ -1853,7 +1859,7 @@ function Ss(e) {
1853
1859
  colorFirst: s || (e.ontologyId || S && S.getOntologyId() ? "primary" : "danger"),
1854
1860
  colorSecond: a || (S && S.getShortForm() ? "success" : "danger"),
1855
1861
  onNavigateToOntology: h,
1856
- className: m
1862
+ className: g
1857
1863
  }
1858
1864
  )
1859
1865
  ] });
@@ -2028,9 +2034,9 @@ function Os(e) {
2028
2034
  useLegacy: c,
2029
2035
  className: d,
2030
2036
  ...h
2031
- } = e, m = new ji(t), { data: y, isLoading: S, isError: w, error: I } = xe(
2037
+ } = e, g = new ji(t), { data: m, isLoading: S, isError: w, error: I } = xe(
2032
2038
  ["description", t, a, s, o, n, c],
2033
- async () => m.getThingObject(
2039
+ async () => g.getThingObject(
2034
2040
  o,
2035
2041
  s,
2036
2042
  n,
@@ -2041,7 +2047,7 @@ function Os(e) {
2041
2047
  return /* @__PURE__ */ i(
2042
2048
  eo,
2043
2049
  {
2044
- description: y ? y.getDescription() : Cs,
2050
+ description: m ? m.getDescription() : Cs,
2045
2051
  descText: r,
2046
2052
  className: d,
2047
2053
  isLoading: S,
@@ -2104,36 +2110,36 @@ function Wi(e) {
2104
2110
  ] }) });
2105
2111
  }
2106
2112
  function Cl(e) {
2107
- const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: m, isSuccess: y, isError: S, error: w } = xe(
2113
+ const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: g, isSuccess: m, isError: S, error: w } = xe(
2108
2114
  ["entityDefinedBy", n, o, r, t, s, a],
2109
2115
  async () => {
2110
2116
  let I, p, C;
2111
2117
  if (a) {
2112
- const g = (await d.getEntityResponse(
2118
+ const y = (await d.getEntityResponse(
2113
2119
  t,
2114
2120
  r,
2115
2121
  void 0,
2116
2122
  o,
2117
2123
  a
2118
2124
  ))._embedded;
2119
- I = g[Object.keys(g)[0]].filter(
2125
+ I = y[Object.keys(y)[0]].filter(
2120
2126
  (R) => R.is_defining_ontology
2121
- ).map((R) => R.ontology_name), p = r || Xr(Object.keys(g)[0]), C = g[Object.keys(g)[0]][0].label;
2127
+ ).map((R) => R.ontology_name), p = r || Xr(Object.keys(y)[0]), C = y[Object.keys(y)[0]][0].label;
2122
2128
  } else {
2123
- const g = await d.getEntityObject(
2129
+ const y = await d.getEntityObject(
2124
2130
  t,
2125
2131
  r,
2126
2132
  s,
2127
2133
  o,
2128
2134
  a
2129
2135
  );
2130
- I = g.getDefinedBy().filter((R) => R != g.getOntologyId()), p = r || g.getType(), C = g.getLabel() || "";
2136
+ I = y.getDefinedBy().filter((R) => R != y.getOntologyId()), p = r || y.getType(), C = y.getLabel() || "";
2131
2137
  }
2132
2138
  return I = I.sort(), { ontoList: I, entityType: p, label: C };
2133
2139
  }
2134
2140
  );
2135
2141
  return /* @__PURE__ */ u("div", { "data-testid": "entity-defined-by", children: [
2136
- y && h && /* @__PURE__ */ i(
2142
+ m && h && /* @__PURE__ */ i(
2137
2143
  Wi,
2138
2144
  {
2139
2145
  ontolist: h.ontoList,
@@ -2144,7 +2150,7 @@ function Cl(e) {
2144
2150
  className: c
2145
2151
  }
2146
2152
  ),
2147
- m && /* @__PURE__ */ i(Le, {}),
2153
+ g && /* @__PURE__ */ i(Le, {}),
2148
2154
  S && /* @__PURE__ */ i(le, { children: ot(w, "ontology list") })
2149
2155
  ] });
2150
2156
  }
@@ -2165,36 +2171,36 @@ function Hi(e) {
2165
2171
  ] }) });
2166
2172
  }
2167
2173
  function Ol(e) {
2168
- const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: m, isSuccess: y, isError: S, error: w } = xe(
2174
+ const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: g, isSuccess: m, isError: S, error: w } = xe(
2169
2175
  ["entityOntoList", n, o, r, t, s, a],
2170
2176
  async () => {
2171
2177
  let I, p, C;
2172
2178
  if (a) {
2173
- const g = (await d.getEntityResponse(
2179
+ const y = (await d.getEntityResponse(
2174
2180
  t,
2175
2181
  r,
2176
2182
  void 0,
2177
2183
  o,
2178
2184
  a
2179
- ))._embedded, R = g[Object.keys(g)[0]].filter(
2185
+ ))._embedded, R = y[Object.keys(y)[0]].filter(
2180
2186
  (E) => E.is_defining_ontology
2181
2187
  ).map((E) => E.ontology_name);
2182
- I = g[Object.keys(g)[0]].map((E) => E.ontology_name).filter((E) => !R.includes(E)), p = r || Xr(Object.keys(g)[0]), C = g[Object.keys(g)[0]][0].label;
2188
+ I = y[Object.keys(y)[0]].map((E) => E.ontology_name).filter((E) => !R.includes(E)), p = r || Xr(Object.keys(y)[0]), C = y[Object.keys(y)[0]][0].label;
2183
2189
  } else {
2184
- const g = await d.getEntityObject(
2190
+ const y = await d.getEntityObject(
2185
2191
  t,
2186
2192
  r,
2187
2193
  s,
2188
2194
  o,
2189
2195
  a
2190
2196
  );
2191
- I = g.getAppearsIn().filter((R) => !g.getDefinedBy().includes(R)), p = r || g.getType(), C = g.getLabel() || "";
2197
+ I = y.getAppearsIn().filter((R) => !y.getDefinedBy().includes(R)), p = r || y.getType(), C = y.getLabel() || "";
2192
2198
  }
2193
- return I = I.filter((g) => g != s).sort(), { ontoList: I, entityType: p, label: C };
2199
+ return I = I.filter((y) => y != s).sort(), { ontoList: I, entityType: p, label: C };
2194
2200
  }
2195
2201
  );
2196
2202
  return /* @__PURE__ */ u("div", { "data-testid": "entity-onto-list", children: [
2197
- y && h && /* @__PURE__ */ i(
2203
+ m && h && /* @__PURE__ */ i(
2198
2204
  Hi,
2199
2205
  {
2200
2206
  ontolist: h.ontoList,
@@ -2205,7 +2211,7 @@ function Ol(e) {
2205
2211
  className: c
2206
2212
  }
2207
2213
  ),
2208
- m && /* @__PURE__ */ i(Le, {}),
2214
+ g && /* @__PURE__ */ i(Le, {}),
2209
2215
  S && /* @__PURE__ */ i(le, { children: ot(w, "ontology list") })
2210
2216
  ] });
2211
2217
  }
@@ -2218,7 +2224,7 @@ function to(e) {
2218
2224
  urlPrefix: s,
2219
2225
  copyButton: a,
2220
2226
  className: c
2221
- } = e, [d, h] = Q(!1), y = typeof s < "u" && s !== "" ? s + encodeURIComponent(t) : t, S = c || "ts4nfdi-iri-style", w = () => d ? /* @__PURE__ */ i(
2227
+ } = e, [d, h] = Q(!1), m = typeof s < "u" && s !== "" ? s + encodeURIComponent(t) : t, S = c || "ts4nfdi-iri-style", w = () => d ? /* @__PURE__ */ i(
2222
2228
  wn,
2223
2229
  {
2224
2230
  style: {
@@ -2242,7 +2248,7 @@ function to(e) {
2242
2248
  },
2243
2249
  color: o && o,
2244
2250
  onClick: () => {
2245
- navigator.clipboard.writeText(y), h(!0), setTimeout(() => {
2251
+ navigator.clipboard.writeText(m), h(!0), setTimeout(() => {
2246
2252
  h(!1);
2247
2253
  }, 2e3);
2248
2254
  }
@@ -2254,7 +2260,7 @@ function to(e) {
2254
2260
  /* @__PURE__ */ i(
2255
2261
  jt,
2256
2262
  {
2257
- href: y,
2263
+ href: m,
2258
2264
  target: "_blank",
2259
2265
  style: {
2260
2266
  color: o && (li(o) || ci(o)) ? o : ""
@@ -2272,25 +2278,25 @@ var vi = function() {
2272
2278
  for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
2273
2279
  return e;
2274
2280
  }).apply(this, arguments);
2275
- }, Xt, Kt, Qt, Si = No(void 0), hr = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML", fr = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js", pr = "https://cdn.jsdelivr.net/npm/mathjax@4.1.0/tex-mml-chtml.js", _s = function(y) {
2276
- var t = y.config, n = y.version, n = n === void 0 ? 4 : n, o = y.src, o = o === void 0 ? n === 2 ? hr : n === 3 ? fr : pr : o, r = y.onStartup, s = y.onLoad, d = y.asyncLoad, a = d !== void 0 && d, c = y.onError, d = y.typesettingOptions, h = y.renderMode, h = h === void 0 ? "post" : h, m = y.hideUntilTypeset, y = y.children, w = jr(Si);
2281
+ }, Xt, Kt, Qt, Si = No(void 0), hr = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML", fr = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js", pr = "https://cdn.jsdelivr.net/npm/mathjax@4.1.0/tex-mml-chtml.js", _s = function(m) {
2282
+ var t = m.config, n = m.version, n = n === void 0 ? 4 : n, o = m.src, o = o === void 0 ? n === 2 ? hr : n === 3 ? fr : pr : o, r = m.onStartup, s = m.onLoad, d = m.asyncLoad, a = d !== void 0 && d, c = m.onError, d = m.typesettingOptions, h = m.renderMode, h = h === void 0 ? "post" : h, g = m.hideUntilTypeset, m = m.children, w = jr(Si);
2277
2283
  if ((w == null ? void 0 : w.version) !== void 0 && (w == null ? void 0 : w.version) !== n) throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");
2278
2284
  if (n === 2 && (Kt !== void 0 || Qt !== void 0) || n === 3 && (Xt !== void 0 || Qt !== void 0) || n === 4 && (Xt !== void 0 || Kt !== void 0)) throw Error("Cannot use two MathJax versions simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");
2279
2285
  var S = ut(w), w = ut((w == null ? void 0 : w.version) || null);
2280
2286
  if (w.current === null) w.current = n;
2281
2287
  else if (w.current !== n) throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");
2282
2288
  var I = o || (n === 2 ? hr : n === 3 ? fr : pr);
2283
- function p(C, g) {
2289
+ function p(C, y) {
2284
2290
  t && (window.MathJax = t);
2285
2291
  var R = document.createElement("script");
2286
2292
  R.type = "text/javascript", R.src = I, R.async = a, R.addEventListener("load", function() {
2287
2293
  var E = window.MathJax;
2288
2294
  r && r(E), C(E), s && s();
2289
2295
  }), R.addEventListener("error", function(E) {
2290
- return g(E);
2296
+ return y(E);
2291
2297
  }), document.getElementsByTagName("head")[0].appendChild(R);
2292
2298
  }
2293
- return S.current === void 0 && (w = { typesettingOptions: d, renderMode: h, hideUntilTypeset: m }, n === 2 ? Xt === void 0 && (typeof window < "u" ? (Xt = new Promise(p)).catch(function(C) {
2299
+ return S.current === void 0 && (w = { typesettingOptions: d, renderMode: h, hideUntilTypeset: g }, n === 2 ? Xt === void 0 && (typeof window < "u" ? (Xt = new Promise(p)).catch(function(C) {
2294
2300
  if (!c) throw Error("Failed to download MathJax version 2 from '".concat(I, "' due to: ").concat(JSON.stringify(C)));
2295
2301
  c(C);
2296
2302
  }) : (Xt = Promise.reject()).catch(function(C) {
@@ -2302,7 +2308,7 @@ var vi = function() {
2302
2308
  if (!c) throw Error("Failed to download MathJax version 4 from '".concat(I, "' due to: ").concat(C));
2303
2309
  c(C);
2304
2310
  }) : (Qt = Promise.reject()).catch(function(C) {
2305
- })), S.current = vi(vi({}, w), n === 2 ? { version: 2, promise: Xt } : n === 3 ? { version: 3, promise: Kt } : { version: 4, promise: Qt })), Lt.createElement(Si.Provider, { value: S.current }, y);
2311
+ })), S.current = vi(vi({}, w), n === 2 ? { version: 2, promise: Xt } : n === 3 ? { version: 3, promise: Kt } : { version: 4, promise: Qt })), Lt.createElement(Si.Provider, { value: S.current }, m);
2306
2312
  }, xt = function() {
2307
2313
  return (xt = Object.assign || function(e) {
2308
2314
  for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
@@ -2318,27 +2324,27 @@ var vi = function() {
2318
2324
  }, As = function(e) {
2319
2325
  function t() {
2320
2326
  var _;
2321
- p === "every" && R && C === "post" && w.current !== null && (w.current.style.visibility = (_ = (_ = y.style) == null ? void 0 : _.visibility) != null ? _ : "visible"), E.current || (p === "first" && w.current !== null && (w.current.style.visibility = "visible"), r && r(), E.current = !0), s && s(), T.current = !1;
2327
+ p === "every" && R && C === "post" && w.current !== null && (w.current.style.visibility = (_ = (_ = m.style) == null ? void 0 : _.visibility) != null ? _ : "visible"), E.current || (p === "first" && w.current !== null && (w.current.style.visibility = "visible"), r && r(), E.current = !0), s && s(), T.current = !1;
2322
2328
  }
2323
- var o = e.inline, n = o !== void 0 && o, o = e.hideUntilTypeset, r = e.onInitTypeset, s = e.onTypeset, a = e.text, c = e.dynamic, d = e.typesettingOptions, h = e.renderMode, m = e.children, y = xs(e, ["inline", "hideUntilTypeset", "onInitTypeset", "onTypeset", "text", "dynamic", "typesettingOptions", "renderMode", "children"]), S = ut(""), w = ut(null), I = jr(Si), p = o ?? (I == null ? void 0 : I.hideUntilTypeset), C = h ?? (I == null ? void 0 : I.renderMode), g = d ?? (I == null ? void 0 : I.typesettingOptions), R = c !== !1 && (c || process.env.NODE_ENV !== "production"), E = ut(!1), T = ut(!1);
2329
+ var o = e.inline, n = o !== void 0 && o, o = e.hideUntilTypeset, r = e.onInitTypeset, s = e.onTypeset, a = e.text, c = e.dynamic, d = e.typesettingOptions, h = e.renderMode, g = e.children, m = xs(e, ["inline", "hideUntilTypeset", "onInitTypeset", "onTypeset", "text", "dynamic", "typesettingOptions", "renderMode", "children"]), S = ut(""), w = ut(null), I = jr(Si), p = o ?? (I == null ? void 0 : I.hideUntilTypeset), C = h ?? (I == null ? void 0 : I.renderMode), y = d ?? (I == null ? void 0 : I.typesettingOptions), R = c !== !1 && (c || process.env.NODE_ENV !== "production"), E = ut(!1), T = ut(!1);
2324
2330
  return !T.current && w.current !== null && R && p === "every" && C === "post" && (w.current.style.visibility = "hidden"), (typeof window < "u" ? Lo : Fe)(function() {
2325
2331
  if ((R || !E.current) && w.current !== null) {
2326
2332
  if (!I) throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");
2327
2333
  if (C === "pre") {
2328
2334
  if (!(typeof (_ = a) == "string" && 0 < _.length)) throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(a, '"'));
2329
- if (!g || !g.fn) throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");
2335
+ if (!y || !y.fn) throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");
2330
2336
  if (I.version === 2) throw Error("Render mode 'pre' only available with MathJax 3 and 4, and version 2 is currently in use");
2331
2337
  }
2332
2338
  C !== "post" && a === S.current || T.current || (T.current = !0, I.version === 3 || I.version === 4 ? I.promise.then(function(L) {
2333
2339
  var D;
2334
2340
  C === "pre" ? (D = function(x) {
2335
2341
  w.current === null ? T.current = !1 : (S.current = a, L.startup.document.clear(), L.startup.document.updateDocument(), w.current.innerHTML = x.outerHTML, t());
2336
- }, g.fn.endsWith("Promise") ? L.startup.promise.then(function() {
2337
- return L[g.fn](a, xt(xt({}, (g == null ? void 0 : g.options) || {}), { display: !n }));
2342
+ }, y.fn.endsWith("Promise") ? L.startup.promise.then(function() {
2343
+ return L[y.fn](a, xt(xt({}, (y == null ? void 0 : y.options) || {}), { display: !n }));
2338
2344
  }).then(D).catch(function(x) {
2339
2345
  throw t(), Error(un(x));
2340
2346
  }) : L.startup.promise.then(function() {
2341
- var x = L[g.fn](a, xt(xt({}, (g == null ? void 0 : g.options) || {}), { display: !n }));
2347
+ var x = L[y.fn](a, xt(xt({}, (y == null ? void 0 : y.options) || {}), { display: !n }));
2342
2348
  D(x);
2343
2349
  }).catch(function(x) {
2344
2350
  throw t(), Error(un(x));
@@ -2357,7 +2363,7 @@ var vi = function() {
2357
2363
  }));
2358
2364
  }
2359
2365
  var _;
2360
- }), Lt.createElement("span", xt({}, y, { style: xt(xt({ display: n ? "inline" : "block" }, y.style), { visibility: p ? "hidden" : (e = y.style) == null ? void 0 : e.visibility }), ref: w }), m);
2366
+ }), Lt.createElement("span", xt({}, m, { style: xt(xt({ display: n ? "inline" : "block" }, m.style), { visibility: p ? "hidden" : (e = m.style) == null ? void 0 : e.visibility }), ref: w }), g);
2361
2367
  };
2362
2368
  /*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */
2363
2369
  function gr(e, t) {
@@ -2374,8 +2380,8 @@ function Ls(e, t) {
2374
2380
  var o, r, s, a, c = [], d = !0, h = !1;
2375
2381
  try {
2376
2382
  if (s = (n = n.call(e)).next, t !== 0) for (; !(d = (o = s.call(n)).done) && (c.push(o.value), c.length !== t); d = !0) ;
2377
- } catch (m) {
2378
- h = !0, r = m;
2383
+ } catch (g) {
2384
+ h = !0, r = g;
2379
2385
  } finally {
2380
2386
  try {
2381
2387
  if (!d && n.return != null && (a = n.return(), Object(a) !== a)) return;
@@ -2591,7 +2597,7 @@ function oo() {
2591
2597
  e.DocumentFragment;
2592
2598
  const s = e.HTMLTemplateElement, a = e.Node, c = e.Element, d = e.NodeFilter, h = e.NamedNodeMap;
2593
2599
  h === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
2594
- const m = e.DOMParser, y = e.trustedTypes, S = c.prototype, w = mt(S, "cloneNode"), I = mt(S, "remove"), p = mt(S, "nextSibling"), C = mt(S, "childNodes"), g = mt(S, "parentNode"), R = mt(S, "shadowRoot"), E = mt(S, "attributes"), T = a && a.prototype ? mt(a.prototype, "nodeType") : null, _ = a && a.prototype ? mt(a.prototype, "nodeName") : null, L = a && a.prototype ? mt(a.prototype, "ownerDocument") : null, D = function(l) {
2600
+ const g = e.DOMParser, m = e.trustedTypes, S = c.prototype, w = mt(S, "cloneNode"), I = mt(S, "remove"), p = mt(S, "nextSibling"), C = mt(S, "childNodes"), y = mt(S, "parentNode"), R = mt(S, "shadowRoot"), E = mt(S, "attributes"), T = a && a.prototype ? mt(a.prototype, "nodeType") : null, _ = a && a.prototype ? mt(a.prototype, "nodeName") : null, L = a && a.prototype ? mt(a.prototype, "ownerDocument") : null, D = function(l) {
2595
2601
  return T ? T(l) : l.nodeType;
2596
2602
  }, x = function(l) {
2597
2603
  return _ ? _(l) : l.nodeName;
@@ -2619,10 +2625,10 @@ function oo() {
2619
2625
  ie--;
2620
2626
  }
2621
2627
  }, M = function() {
2622
- return J || (ee = ca(y, r), J = !0), ee;
2628
+ return J || (ee = ca(m, r), J = !0), ee;
2623
2629
  }, oe = n, Ce = oe.implementation, Ae = oe.createNodeIterator, ye = oe.createDocumentFragment, je = oe.getElementsByTagName, De = o.importNode;
2624
2630
  let F = Ar();
2625
- t.isSupported = typeof no == "function" && typeof g == "function" && Ce && Ce.createHTMLDocument !== void 0;
2631
+ t.isSupported = typeof no == "function" && typeof y == "function" && Ce && Ce.createHTMLDocument !== void 0;
2626
2632
  const me = qs, ne = Xs, ve = Ks, A = Qs, H = Zs, se = ea, G = ta, P = ia;
2627
2633
  let he = Or, te = null;
2628
2634
  const z = Te({}, [...Er, ...hi, ...fi, ...pi, ...vr]);
@@ -2773,7 +2779,7 @@ function oo() {
2773
2779
  }, wo = function(l, f, N) {
2774
2780
  return f.namespaceURI === lt && !ni[N] || f.namespaceURI === tt && !ti[N] ? !1 : !Qi[l] && (fo[l] || !Ki[l]);
2775
2781
  }, To = function(l) {
2776
- let f = g(l);
2782
+ let f = y(l);
2777
2783
  (!f || !f.tagName) && (f = {
2778
2784
  namespaceURI: yt,
2779
2785
  tagName: "template"
@@ -2785,9 +2791,9 @@ function oo() {
2785
2791
  element: l
2786
2792
  });
2787
2793
  try {
2788
- g(l).removeChild(l);
2794
+ y(l).removeChild(l);
2789
2795
  } catch {
2790
- if (I(l), !g(l))
2796
+ if (I(l), !y(l))
2791
2797
  throw Mt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
2792
2798
  }
2793
2799
  }, Zi = function(l, f, N) {
@@ -2905,7 +2911,7 @@ function oo() {
2905
2911
  const j = O ? pe(l) : l;
2906
2912
  if (yt === Je)
2907
2913
  try {
2908
- f = new m().parseFromString(j, cn);
2914
+ f = new g().parseFromString(j, cn);
2909
2915
  } catch {
2910
2916
  }
2911
2917
  if (!f || !f.documentElement) {
@@ -3008,7 +3014,7 @@ function oo() {
3008
3014
  if (!de[f] && ar(f) && Dn(ge.tagNameCheck, f))
3009
3015
  return !1;
3010
3016
  if (ln && !ae[f]) {
3011
- const j = g(l), q = C(l);
3017
+ const j = y(l), q = C(l);
3012
3018
  if (q && j) {
3013
3019
  const re = q.length;
3014
3020
  for (let _e = re - 1; _e >= 0; --_e) {
@@ -3021,7 +3027,7 @@ function oo() {
3021
3027
  }, ir = function(l, f, N, j) {
3022
3028
  return l.length === 0 ? f : f === N || f === j ? dt(f) : f;
3023
3029
  }, rr = function(l, f) {
3024
- return l === f || g(l) !== null ? !1 : (U && Nn(l), !0);
3030
+ return l === f || y(l) !== null ? !1 : (U && Nn(l), !0);
3025
3031
  }, or = function(l, f) {
3026
3032
  if (wt(F.beforeSanitizeElements, l, null), rr(l, f))
3027
3033
  return !0;
@@ -3064,8 +3070,8 @@ function oo() {
3064
3070
  }, Co = Te({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ar = function(l) {
3065
3071
  return !Co[yn(l)] && Xe(P, l);
3066
3072
  }, Oo = function(l, f, N, j) {
3067
- if (O && typeof y == "object" && typeof y.getAttributeType == "function" && !N)
3068
- switch (y.getAttributeType(l, f)) {
3073
+ if (O && typeof m == "object" && typeof m.getAttributeType == "function" && !N)
3074
+ switch (m.getAttributeType(l, f)) {
3069
3075
  case "TrustedHTML":
3070
3076
  return pe(j);
3071
3077
  case "TrustedScriptURL":
@@ -3291,7 +3297,7 @@ const ua = [
3291
3297
  "class"
3292
3298
  ];
3293
3299
  function mi(e) {
3294
- const { api: t, ontologyId: n, iri: o, mathProperty: r, mathML: s } = e, a = typeof s == "string" && s.trim() !== "", c = new ze(t), { data: d, isLoading: h, isSuccess: m, isLoadingError: y, error: S } = xe(
3300
+ const { api: t, ontologyId: n, iri: o, mathProperty: r, mathML: s } = e, a = typeof s == "string" && s.trim() !== "", c = new ze(t), { data: d, isLoading: h, isSuccess: g, isLoadingError: m, error: S } = xe(
3295
3301
  ["mathFormula", o, n, r],
3296
3302
  async () => {
3297
3303
  if (!(!o || !n))
@@ -3325,7 +3331,7 @@ function mi(e) {
3325
3331
  });
3326
3332
  }
3327
3333
  let I = a ? s.trim() : "";
3328
- if (d && m && !a && r) {
3334
+ if (d && g && !a && r) {
3329
3335
  let p = d.getAnnotationById(r);
3330
3336
  p && p.length && "value" in p[0] && (I = p[0].value, I = w(I));
3331
3337
  }
@@ -3343,7 +3349,7 @@ function mi(e) {
3343
3349
  }
3344
3350
  ) }) }),
3345
3351
  !h && !S && I === "" && /* @__PURE__ */ i("div", { children: "No math formula available." }),
3346
- y && /* @__PURE__ */ i("div", { children: "Error loading math formula." })
3352
+ m && /* @__PURE__ */ i("div", { children: "Error loading math formula." })
3347
3353
  ]
3348
3354
  }
3349
3355
  );
@@ -3356,7 +3362,7 @@ function so(e) {
3356
3362
  return /* @__PURE__ */ i("div", { className: t, children: /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ye, { style: { padding: 10 }, direction: "column", children: n() }) }) });
3357
3363
  }
3358
3364
  function _l(e) {
3359
- const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: m, error: y } = xe(
3365
+ const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: g, error: m } = xe(
3360
3366
  [
3361
3367
  "alternativeNameTab",
3362
3368
  n,
@@ -3378,8 +3384,8 @@ function _l(e) {
3378
3384
  so,
3379
3385
  {
3380
3386
  synonyms: h ? sn(h) ? h.getSynonyms().map((S) => S.value) : [] : [],
3381
- isLoading: m,
3382
- error: y,
3387
+ isLoading: g,
3388
+ error: m,
3383
3389
  className: c
3384
3390
  }
3385
3391
  ) });
@@ -3392,7 +3398,7 @@ function ao(e) {
3392
3398
  return /* @__PURE__ */ i("div", { className: t, children: /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(b, { children: /* @__PURE__ */ i(Ye, { style: { padding: 7 }, direction: "column", children: n(e.crossrefs) }) }) }) });
3393
3399
  }
3394
3400
  function xl(e) {
3395
- const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: m, error: y } = xe(
3401
+ const { iri: t, api: n, parameter: o, entityType: r, ontologyId: s, useLegacy: a, className: c } = e, d = new ze(n), { data: h, isLoading: g, error: m } = xe(
3396
3402
  ["crossRefTab", n, o, r, t, s, a],
3397
3403
  async () => d.getEntityObject(
3398
3404
  t,
@@ -3406,8 +3412,8 @@ function xl(e) {
3406
3412
  ao,
3407
3413
  {
3408
3414
  crossrefs: h ? sn(h) ? X.fromJson(h.getCrossReferences()).map((S) => S.value) : [] : [],
3409
- isLoading: m,
3410
- error: y,
3415
+ isLoading: g,
3416
+ error: m,
3411
3417
  className: c
3412
3418
  }
3413
3419
  ) });
@@ -3455,12 +3461,12 @@ class rn {
3455
3461
  keepExpansionStates: c,
3456
3462
  api: d,
3457
3463
  mainEntityIri: h,
3458
- entityType: m,
3459
- ontologyId: y,
3464
+ entityType: g,
3465
+ ontologyId: m,
3460
3466
  useLegacy: S,
3461
3467
  parameter: w
3462
3468
  } = t;
3463
- this.parentChildRelations = n, this.entitiesData = o, this.allChildrenPresent = r, this.roots = s, a != null && (this.includeObsoleteEntities = a), c != null && (this.keepExpansionStates = c), this.api = d, this.mainEntityIri = h, this.entityType = m, this.ontologyId = y, S != null && (this.useLegacy = S), this.parameter = w;
3469
+ this.parentChildRelations = n, this.entitiesData = o, this.allChildrenPresent = r, this.roots = s, a != null && (this.includeObsoleteEntities = a), c != null && (this.keepExpansionStates = c), this.api = d, this.mainEntityIri = h, this.entityType = g, this.ontologyId = m, S != null && (this.useLegacy = S), this.parameter = w;
3464
3470
  }
3465
3471
  /**
3466
3472
  * Merges the entries of `this.parentChildRelations(nodeToExpand.entityData.iri)` into `nodeToExpand.loadedChildren`. Here,
@@ -3580,12 +3586,12 @@ function ya(e, t, n) {
3580
3586
  c.add(a.iri);
3581
3587
  const h = new Wt(a);
3582
3588
  h.childRelationToParent = d, a.color && e.colorEntity(h, a.color);
3583
- const m = n.get(a.iri) || [];
3584
- for (const y of m) {
3585
- if (c.has(y.childIri)) continue;
3586
- const S = t.get(y.childIri);
3589
+ const g = n.get(a.iri) || [];
3590
+ for (const m of g) {
3591
+ if (c.has(m.childIri)) continue;
3592
+ const S = t.get(m.childIri);
3587
3593
  S && h.addChild(
3588
- o(S, c, y.childRelationToParent)
3594
+ o(S, c, m.childRelationToParent)
3589
3595
  );
3590
3596
  }
3591
3597
  return h.loadedChildren.length > 0 && (h.expanded = !0), c.delete(a.iri), h;
@@ -3693,9 +3699,9 @@ class En {
3693
3699
  default:
3694
3700
  throw Error("Entity type could not be correctly inferred.");
3695
3701
  }
3696
- return c._embedded[h].map((m) => {
3702
+ return c._embedded[h].map((g) => {
3697
3703
  d.push(
3698
- ht({ _embedded: { [h]: [m] } })
3704
+ ht({ _embedded: { [h]: [g] } })
3699
3705
  );
3700
3706
  }), d;
3701
3707
  }
@@ -3839,20 +3845,20 @@ class En {
3839
3845
  keepExpansionStates: c = !0,
3840
3846
  showSiblingsOnInit: d = !1,
3841
3847
  useLegacy: h = !1,
3842
- parameter: m
3848
+ parameter: g
3843
3849
  } = t;
3844
3850
  if (n)
3845
- return await this.entityService.getEntityObject(n, r, o, m, h).then(
3846
- (y) => this.buildHierarchyWithEntity({
3847
- entityType: r || y.getType(),
3848
- ontologyId: o || y.getOntologyId(),
3851
+ return await this.entityService.getEntityObject(n, r, o, g, h).then(
3852
+ (m) => this.buildHierarchyWithEntity({
3853
+ entityType: r || m.getType(),
3854
+ ontologyId: o || m.getOntologyId(),
3849
3855
  includeObsoleteEntities: a,
3850
3856
  preferredRoots: s,
3851
- mainEntity: y,
3857
+ mainEntity: m,
3852
3858
  keepExpansionStates: c,
3853
3859
  showSiblingsOnInit: d,
3854
3860
  useLegacy: h,
3855
- parameter: m
3861
+ parameter: g
3856
3862
  })
3857
3863
  );
3858
3864
  if (r == null || o == null)
@@ -3867,7 +3873,7 @@ class En {
3867
3873
  keepExpansionStates: c,
3868
3874
  showSiblingsOnInit: d,
3869
3875
  useLegacy: h,
3870
- parameter: m
3876
+ parameter: g
3871
3877
  });
3872
3878
  }
3873
3879
  jsTreeNodeToEntityData(t) {
@@ -3903,15 +3909,15 @@ class En {
3903
3909
  s,
3904
3910
  a,
3905
3911
  c
3906
- )).map((y) => this.entityToEntityData(y)).filter((y) => !Mn(y.iri)), h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
3907
- for (const y of d)
3908
- h.set(y.iri, []), m.set(y.iri, y);
3912
+ )).map((m) => this.entityToEntityData(m)).filter((m) => !Mn(m.iri)), h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
3913
+ for (const m of d)
3914
+ h.set(m.iri, []), g.set(m.iri, m);
3909
3915
  return new rn({
3910
3916
  parentChildRelations: h,
3911
- entitiesData: m,
3917
+ entitiesData: g,
3912
3918
  allChildrenPresent: /* @__PURE__ */ new Set(),
3913
- roots: d.map((y) => new Wt(y)).sort(
3914
- (y, S) => (y.entityData.label || y.entityData.iri).localeCompare(
3919
+ roots: d.map((m) => new Wt(m)).sort(
3920
+ (m, S) => (m.entityData.label || m.entityData.iri).localeCompare(
3915
3921
  S.entityData.label || S.entityData.iri
3916
3922
  )
3917
3923
  ),
@@ -3925,7 +3931,7 @@ class En {
3925
3931
  });
3926
3932
  }
3927
3933
  async buildHierarchyWithEntity(t) {
3928
- var g, R;
3934
+ var y, R;
3929
3935
  const {
3930
3936
  mainEntity: n,
3931
3937
  ontologyId: o,
@@ -3936,7 +3942,7 @@ class En {
3936
3942
  useLegacy: d = We.USE_LEGACY,
3937
3943
  parameter: h
3938
3944
  } = t;
3939
- let m = [];
3945
+ let g = [];
3940
3946
  if (d) {
3941
3947
  const E = await this.getJSTree(
3942
3948
  n.getIri(),
@@ -3950,13 +3956,13 @@ class En {
3950
3956
  const x = _.get(D.iri), O = T.get(D.parent);
3951
3957
  x != null && O != null && x.add(O);
3952
3958
  }
3953
- m = [];
3959
+ g = [];
3954
3960
  const L = /* @__PURE__ */ new Set();
3955
3961
  for (const D of E)
3956
3962
  if (!L.has(D.iri)) {
3957
- L.add(D.iri), m.push(this.jsTreeNodeToEntityData(D));
3963
+ L.add(D.iri), g.push(this.jsTreeNodeToEntityData(D));
3958
3964
  const x = _.get(D.iri);
3959
- x != null && (m[m.length - 1].parents = X.fromJson(Array.from(x.values())) || []);
3965
+ x != null && (g[g.length - 1].parents = X.fromJson(Array.from(x.values())) || []);
3960
3966
  }
3961
3967
  } else {
3962
3968
  const E = await this.getAncestors(
@@ -3967,18 +3973,18 @@ class En {
3967
3973
  a,
3968
3974
  h
3969
3975
  );
3970
- m = [
3976
+ g = [
3971
3977
  this.entityToEntityData(n),
3972
3978
  ...E.map((T) => this.entityToEntityData(T))
3973
3979
  ];
3974
3980
  }
3975
- m = m.filter((E) => !Mn(E.iri));
3976
- const y = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Map();
3977
- for (const E of m)
3978
- y.set(E.iri, []), w.set(E.iri, E);
3981
+ g = g.filter((E) => !Mn(E.iri));
3982
+ const m = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Map();
3983
+ for (const E of g)
3984
+ m.set(E.iri, []), w.set(E.iri, E);
3979
3985
  if (c) {
3980
3986
  const E = r || n.getType(), T = E == "individual" ? "class" : E, _ = [];
3981
- for (const L of m)
3987
+ for (const L of g)
3982
3988
  L.iri != n.getIri() && _.push(
3983
3989
  new Promise(
3984
3990
  (D) => this.getChildren(
@@ -4002,7 +4008,7 @@ class En {
4002
4008
  childRelationToParent: ee.length > 0 && ee[0].getMetadata() ? ee[0].getMetadata().childRelationToParent : void 0
4003
4009
  });
4004
4010
  }
4005
- y.set(L.iri, O), S.add(L.iri);
4011
+ m.set(L.iri, O), S.add(L.iri);
4006
4012
  }).then(D)
4007
4013
  )
4008
4014
  );
@@ -4021,28 +4027,28 @@ class En {
4021
4027
  childIri: O.iri,
4022
4028
  childRelationToParent: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
4023
4029
  });
4024
- y.set(L.value, x);
4030
+ m.set(L.value, x);
4025
4031
  }
4026
4032
  } else
4027
- for (const E of m)
4033
+ for (const E of g)
4028
4034
  if (E.parents) {
4029
4035
  const T = E.parents.filter(
4030
4036
  (_) => !Mn(_.value)
4031
4037
  );
4032
4038
  if (E.iri == (n == null ? void 0 : n.getIri()) && It(r || n.getType()))
4033
4039
  for (const _ of T)
4034
- y.has(_.value) && ((g = y.get(_.value)) == null || g.push({
4040
+ m.has(_.value) && ((y = m.get(_.value)) == null || y.push({
4035
4041
  childIri: E.iri,
4036
4042
  childRelationToParent: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
4037
4043
  }));
4038
4044
  else
4039
4045
  for (const _ of T)
4040
- y.has(_.value) && ((R = y.get(_.value)) == null || R.push({
4046
+ m.has(_.value) && ((R = m.get(_.value)) == null || R.push({
4041
4047
  childIri: E.iri,
4042
4048
  childRelationToParent: _.getMetadata() ? _.getMetadata().childRelationToParent : void 0
4043
4049
  }));
4044
4050
  }
4045
- for (const E of y.values())
4051
+ for (const E of m.values())
4046
4052
  E.sort(
4047
4053
  (T, _) => {
4048
4054
  var L, D;
@@ -4061,7 +4067,7 @@ class En {
4061
4067
  for (const T of E)
4062
4068
  w.has(T) && I.push(T);
4063
4069
  } else
4064
- for (const E of m)
4070
+ for (const E of g)
4065
4071
  E.parents && E.parents.filter(
4066
4072
  (_) => !Mn(_.value)
4067
4073
  ).length == 0 && I.push(E.iri);
@@ -4069,7 +4075,7 @@ class En {
4069
4075
  T.add(E.iri);
4070
4076
  const L = new Wt(E);
4071
4077
  L.childRelationToParent = _;
4072
- const D = y.get(E.iri) || [];
4078
+ const D = m.get(E.iri) || [];
4073
4079
  for (const x of D) {
4074
4080
  if (T.has(x.childIri)) {
4075
4081
  console.error(`Cyclic tree at entity "${x.childIri}".`);
@@ -4084,7 +4090,7 @@ class En {
4084
4090
  }
4085
4091
  const C = /* @__PURE__ */ new Set();
4086
4092
  return new rn({
4087
- parentChildRelations: y,
4093
+ parentChildRelations: m,
4088
4094
  entitiesData: w,
4089
4095
  allChildrenPresent: S,
4090
4096
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -4147,15 +4153,15 @@ class Bi {
4147
4153
  throw Error("ontologyId has to be specified for OntoPortal API.");
4148
4154
  if (!r)
4149
4155
  throw Error("entityType has to be specified for OntoPortal API.");
4150
- const a = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
4151
- function y(p) {
4156
+ const a = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set();
4157
+ function m(p) {
4152
4158
  if (c.set(p["@id"], Nr(p)), p.hasChildren && p.children.length > 0) {
4153
4159
  d.set(
4154
4160
  p["@id"],
4155
4161
  p.children.map((C) => ({ childIri: C["@id"] }))
4156
- ), h.add(p["@id"]), m.add(p["@id"]);
4162
+ ), h.add(p["@id"]), g.add(p["@id"]);
4157
4163
  for (const C of p.children)
4158
- y(C);
4164
+ m(C);
4159
4165
  }
4160
4166
  }
4161
4167
  if (n) {
@@ -4172,8 +4178,8 @@ class Bi {
4172
4178
  }
4173
4179
  );
4174
4180
  for (const C of p)
4175
- a.push(C["@id"]), m.add(C["@id"]), y(C);
4176
- m.add(n);
4181
+ a.push(C["@id"]), g.add(C["@id"]), m(C);
4182
+ g.add(n);
4177
4183
  } else {
4178
4184
  const p = await this.makeCall(
4179
4185
  `/ontologies/${o.toUpperCase()}/${pt(
@@ -4188,18 +4194,18 @@ class Bi {
4188
4194
  }
4189
4195
  );
4190
4196
  for (const C of p)
4191
- a.push(C["@id"]), m.add(C["@id"]);
4197
+ a.push(C["@id"]), g.add(C["@id"]);
4192
4198
  }
4193
4199
  function S(p, C) {
4194
4200
  C.add(p.iri);
4195
- const g = new Wt(p), R = d.get(p.iri) || [];
4201
+ const y = new Wt(p), R = d.get(p.iri) || [];
4196
4202
  if (s)
4197
4203
  for (const E of R) {
4198
4204
  if (C.has(E.childIri)) {
4199
4205
  console.error(`Cyclic tree at entity "${E.childIri}".`);
4200
4206
  continue;
4201
4207
  }
4202
- g.addChild(
4208
+ y.addChild(
4203
4209
  S(c.get(E.childIri), C)
4204
4210
  );
4205
4211
  }
@@ -4209,11 +4215,11 @@ class Bi {
4209
4215
  console.error(`Cyclic tree at entity "${E.childIri}".`);
4210
4216
  continue;
4211
4217
  }
4212
- m.has(E.childIri) && g.addChild(
4218
+ g.has(E.childIri) && y.addChild(
4213
4219
  S(c.get(E.childIri), C)
4214
4220
  );
4215
4221
  }
4216
- return g.loadedChildren.length > 0 && (g.expanded = !0), C.delete(p.iri), g;
4222
+ return y.loadedChildren.length > 0 && (y.expanded = !0), C.delete(p.iri), y;
4217
4223
  }
4218
4224
  const w = /* @__PURE__ */ new Set(), I = a.map(
4219
4225
  (p) => S(c.get(p), w)
@@ -4307,7 +4313,7 @@ class $i {
4307
4313
  const { iri: n, ontologyId: o, showSiblingsOnInit: r, parameter: s } = t;
4308
4314
  if (!o)
4309
4315
  throw Error("ontologyId has to be specified for SKOS API.");
4310
- const a = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
4316
+ const a = [], c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set();
4311
4317
  if (n) {
4312
4318
  const C = await this.makeCall(
4313
4319
  `/${o}/hierarchy`,
@@ -4320,32 +4326,32 @@ class $i {
4320
4326
  }
4321
4327
  }
4322
4328
  ).then(
4323
- (g) => Object.keys(g.broaderTransitive).map(
4324
- (R) => g.broaderTransitive[R]
4329
+ (y) => Object.keys(y.broaderTransitive).map(
4330
+ (R) => y.broaderTransitive[R]
4325
4331
  )
4326
4332
  );
4327
- for (const g of C) {
4328
- const R = bi.fromHierarchyResult(g);
4329
- d.set(R.iri, R), g.top && a.push(R.iri), r || m.add(R.iri);
4333
+ for (const y of C) {
4334
+ const R = bi.fromHierarchyResult(y);
4335
+ d.set(R.iri, R), y.top && a.push(R.iri), r || g.add(R.iri);
4330
4336
  }
4331
- for (const g of C)
4332
- if (g.narrower != null) {
4337
+ for (const y of C)
4338
+ if (y.narrower != null) {
4333
4339
  const R = [];
4334
- for (const E of g.narrower) {
4340
+ for (const E of y.narrower) {
4335
4341
  let T = d.get(E.uri);
4336
4342
  T == null ? (T = bi.fromLabelAndUriAndChildren(
4337
4343
  E,
4338
- [g.uri]
4339
- ), d.set(T.iri, T)) : (I = T == null ? void 0 : T.parents) != null && I.map((_) => _.value).includes(g.uri) || T != null && T.parents && ((p = T == null ? void 0 : T.parents) == null || p.push(
4340
- ...X.fromJson(g.uri)
4344
+ [y.uri]
4345
+ ), d.set(T.iri, T)) : (I = T == null ? void 0 : T.parents) != null && I.map((_) => _.value).includes(y.uri) || T != null && T.parents && ((p = T == null ? void 0 : T.parents) == null || p.push(
4346
+ ...X.fromJson(y.uri)
4341
4347
  )), R.push(T);
4342
4348
  }
4343
4349
  R.sort(
4344
4350
  (E, T) => (E.label || E.iri).localeCompare(T.label || T.iri)
4345
4351
  ), c.set(
4346
- g.uri,
4352
+ y.uri,
4347
4353
  R.map((E) => ({ childIri: E.iri }))
4348
- ), h.add(g.uri);
4354
+ ), h.add(y.uri);
4349
4355
  }
4350
4356
  } else {
4351
4357
  const C = await this.makeCall(
@@ -4357,38 +4363,38 @@ class $i {
4357
4363
  ...di(s)
4358
4364
  }
4359
4365
  }
4360
- ).then((g) => g.topconcepts);
4361
- for (const g of C)
4362
- a.push(g.uri);
4366
+ ).then((y) => y.topconcepts);
4367
+ for (const y of C)
4368
+ a.push(y.uri);
4363
4369
  }
4364
- function y(C, g) {
4365
- g.add(C.iri);
4370
+ function m(C, y) {
4371
+ y.add(C.iri);
4366
4372
  const R = new Wt(C), E = c.get(C.iri) || [];
4367
4373
  if (r)
4368
4374
  for (const T of E) {
4369
- if (g.has(T.childIri)) {
4375
+ if (y.has(T.childIri)) {
4370
4376
  console.error(`Cyclic tree at entity "${T.childIri}".`);
4371
4377
  continue;
4372
4378
  }
4373
4379
  const _ = d.get(T.childIri);
4374
- _ != null && R.addChild(y(_, g));
4380
+ _ != null && R.addChild(m(_, y));
4375
4381
  }
4376
4382
  else
4377
4383
  for (const T of E) {
4378
- if (g.has(T.childIri)) {
4384
+ if (y.has(T.childIri)) {
4379
4385
  console.error(`Cyclic tree at entity "${T.childIri}".`);
4380
4386
  continue;
4381
4387
  }
4382
4388
  const _ = d.get(T.childIri);
4383
- _ != null && m.has(T.childIri) && R.addChild(y(_, g));
4389
+ _ != null && g.has(T.childIri) && R.addChild(m(_, y));
4384
4390
  }
4385
- return R.loadedChildren.length > 0 && (R.expanded = !0), g.delete(C.iri), R;
4391
+ return R.loadedChildren.length > 0 && (R.expanded = !0), y.delete(C.iri), R;
4386
4392
  }
4387
4393
  const S = /* @__PURE__ */ new Set(), w = a.map(
4388
- (C) => y(d.get(C), S)
4394
+ (C) => m(d.get(C), S)
4389
4395
  ).sort(
4390
- (C, g) => (C.entityData.label || C.entityData.iri).localeCompare(
4391
- g.entityData.label || g.entityData.iri
4396
+ (C, y) => (C.entityData.label || C.entityData.iri).localeCompare(
4397
+ y.entityData.label || y.entityData.iri
4392
4398
  )
4393
4399
  );
4394
4400
  return new rn({
@@ -4431,14 +4437,14 @@ function ma(e) {
4431
4437
  targetIri: c,
4432
4438
  ontologyId: d,
4433
4439
  entityType: h,
4434
- includeObsoleteEntities: m = We.INCLUDE_OBSOLETE_ENTITIES,
4435
- preferredRoots: y = We.PREFERRED_ROOTS,
4440
+ includeObsoleteEntities: g = We.INCLUDE_OBSOLETE_ENTITIES,
4441
+ preferredRoots: m = We.PREFERRED_ROOTS,
4436
4442
  keepExpansionStates: S = We.KEEP_EXPANSION_STATES,
4437
4443
  showSiblingsOnInit: w = We.SHOW_SIBLINGS_ON_INIT,
4438
4444
  useLegacy: I = We.USE_LEGACY,
4439
4445
  hierarchyWrap: p = We.WRAP,
4440
4446
  showHeader: C = We.SHOW_HEADER,
4441
- showComparisonTitleInHeader: g = We.SHOW_COMPARISON_TITLE_IN_HEADER,
4447
+ showComparisonTitleInHeader: y = We.SHOW_COMPARISON_TITLE_IN_HEADER,
4442
4448
  className: R,
4443
4449
  parameter: E
4444
4450
  } = e, T = R || "ts4nfdi-hierarchy-style", [_, L] = Q(a), [D, x] = Q(c);
@@ -4537,8 +4543,8 @@ function ma(e) {
4537
4543
  _,
4538
4544
  h,
4539
4545
  d,
4540
- y,
4541
4546
  m,
4547
+ g,
4542
4548
  S,
4543
4549
  w,
4544
4550
  I,
@@ -4552,8 +4558,8 @@ function ma(e) {
4552
4558
  ontologyId: d,
4553
4559
  iri: _,
4554
4560
  entityType: h,
4555
- preferredRoots: y,
4556
- includeObsoleteEntities: m,
4561
+ preferredRoots: m,
4562
+ includeObsoleteEntities: g,
4557
4563
  keepExpansionStates: S,
4558
4564
  showSiblingsOnInit: !1,
4559
4565
  useLegacy: I,
@@ -4563,8 +4569,8 @@ function ma(e) {
4563
4569
  ontologyId: d,
4564
4570
  iri: D,
4565
4571
  entityType: h,
4566
- preferredRoots: y,
4567
- includeObsoleteEntities: m,
4572
+ preferredRoots: m,
4573
+ includeObsoleteEntities: g,
4568
4574
  keepExpansionStates: S,
4569
4575
  showSiblingsOnInit: !1,
4570
4576
  useLegacy: I,
@@ -4574,8 +4580,8 @@ function ma(e) {
4574
4580
  ontologyId: d,
4575
4581
  iri: _,
4576
4582
  entityType: h,
4577
- preferredRoots: y,
4578
- includeObsoleteEntities: m,
4583
+ preferredRoots: m,
4584
+ includeObsoleteEntities: g,
4579
4585
  keepExpansionStates: S,
4580
4586
  showSiblingsOnInit: w,
4581
4587
  useLegacy: I,
@@ -4687,7 +4693,7 @@ function ma(e) {
4687
4693
  paddingSize: "m",
4688
4694
  children: /* @__PURE__ */ i(Ye, { alignItems: "center", justifyContent: "spaceBetween", children: /* @__PURE__ */ u(V, { grow: 7, alignItems: "center", children: [
4689
4695
  /* @__PURE__ */ u(Ye, { children: [
4690
- /* @__PURE__ */ i(V, { children: _ && D && g && /* @__PURE__ */ i(Qn, { size: "s", children: /* @__PURE__ */ u(
4696
+ /* @__PURE__ */ i(V, { children: _ && D && y && /* @__PURE__ */ i(Qn, { size: "s", children: /* @__PURE__ */ u(
4691
4697
  "h2",
4692
4698
  {
4693
4699
  style: {
@@ -4809,7 +4815,7 @@ function ft({
4809
4815
  return /* @__PURE__ */ i("span", { className: "highlight", children: e.getLabel() });
4810
4816
  if (!c)
4811
4817
  return s.startsWith("http") ? /* @__PURE__ */ i("a", { className: "clickable", href: s, children: a }) : /* @__PURE__ */ i("span", { children: a });
4812
- const h = c.definedBy ? c.definedBy.filter((y) => y !== d) : [], m = c.type ? Kr(c.type) : e.getType();
4818
+ const h = c.definedBy ? c.definedBy.filter((m) => m !== d) : [], g = c.type ? Kr(c.type) : e.getType();
4813
4819
  return h.length === 1 ? c.hasLocalDefinition ? /* @__PURE__ */ u(b, { children: [
4814
4820
  /* @__PURE__ */ i(
4815
4821
  "button",
@@ -4818,7 +4824,7 @@ function ft({
4818
4824
  onClick: () => {
4819
4825
  typeof r.onNavigateToEntity == "function" && r.onNavigateToEntity(
4820
4826
  d,
4821
- m,
4827
+ g,
4822
4828
  { iri: n, label: a }
4823
4829
  );
4824
4830
  },
@@ -4834,7 +4840,7 @@ function ft({
4834
4840
  label: a,
4835
4841
  ontolist: h,
4836
4842
  onNavigateToOntology: r.onNavigateToOntology,
4837
- entityType: m
4843
+ entityType: g
4838
4844
  }
4839
4845
  )
4840
4846
  ] }) : /* @__PURE__ */ i(b, {})
@@ -4846,7 +4852,7 @@ function ft({
4846
4852
  onClick: () => {
4847
4853
  typeof r.onNavigateToEntity == "function" && r.onNavigateToEntity(
4848
4854
  h[0],
4849
- m,
4855
+ g,
4850
4856
  { iri: n, label: a }
4851
4857
  );
4852
4858
  },
@@ -4862,7 +4868,7 @@ function ft({
4862
4868
  label: a,
4863
4869
  ontolist: h,
4864
4870
  onNavigateToOntology: r.onNavigateToOntology,
4865
- entityType: m
4871
+ entityType: g
4866
4872
  }
4867
4873
  )
4868
4874
  ] }) : /* @__PURE__ */ i(b, {})
@@ -4874,7 +4880,7 @@ function ft({
4874
4880
  onClick: () => {
4875
4881
  typeof r.onNavigateToEntity == "function" && r.onNavigateToEntity(
4876
4882
  d,
4877
- m,
4883
+ g,
4878
4884
  { iri: n, label: a }
4879
4885
  );
4880
4886
  },
@@ -4890,7 +4896,7 @@ function ft({
4890
4896
  label: a,
4891
4897
  ontolist: h,
4892
4898
  onNavigateToOntology: r.onNavigateToOntology,
4893
- entityType: m
4899
+ entityType: g
4894
4900
  }
4895
4901
  )
4896
4902
  ] }) : /* @__PURE__ */ i(b, {})
@@ -4902,7 +4908,7 @@ function ft({
4902
4908
  nn,
4903
4909
  {
4904
4910
  onClick: () => {
4905
- typeof r.onNavigateToDisambiguate == "function" && r.onNavigateToDisambiguate(m, {
4911
+ typeof r.onNavigateToDisambiguate == "function" && r.onNavigateToDisambiguate(g, {
4906
4912
  iri: n,
4907
4913
  label: a
4908
4914
  });
@@ -4924,7 +4930,7 @@ function ft({
4924
4930
  onClick: () => {
4925
4931
  typeof r.onNavigateToEntity == "function" && r.onNavigateToEntity(
4926
4932
  d,
4927
- m,
4933
+ g,
4928
4934
  { iri: n, label: a }
4929
4935
  );
4930
4936
  },
@@ -4938,7 +4944,7 @@ function ft({
4938
4944
  nn,
4939
4945
  {
4940
4946
  onClick: () => {
4941
- typeof r.onNavigateToDisambiguate == "function" && r.onNavigateToDisambiguate(m, {
4947
+ typeof r.onNavigateToDisambiguate == "function" && r.onNavigateToDisambiguate(g, {
4942
4948
  iri: n,
4943
4949
  label: a
4944
4950
  });
@@ -4964,11 +4970,11 @@ function St({
4964
4970
  function r({ value: a }) {
4965
4971
  const c = e.getLinkedEntities();
4966
4972
  function d(h) {
4967
- const m = [];
4973
+ const g = [];
4968
4974
  if (c)
4969
4975
  for (const I of Object.keys(c.linkedEntities))
4970
4976
  for (let p = h.indexOf(I, 0); p !== -1; p = h.indexOf(I, p))
4971
- m.push({
4977
+ g.push({
4972
4978
  start: p,
4973
4979
  end: p + I.length,
4974
4980
  link: /* @__PURE__ */ i(
@@ -4982,30 +4988,30 @@ function St({
4982
4988
  }
4983
4989
  )
4984
4990
  }), p += I.length;
4985
- const y = /[A-z]+:\/\/[^\s]+/g;
4986
- for (let I = y.exec(h); I; I = y.exec(h)) {
4991
+ const m = /[A-z]+:\/\/[^\s]+/g;
4992
+ for (let I = m.exec(h); I; I = m.exec(h)) {
4987
4993
  const p = I[0];
4988
- m.push({
4994
+ g.push({
4989
4995
  start: I.index,
4990
4996
  end: I.index + p.length,
4991
4997
  link: /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i("a", { className: "clickable", href: p, children: p }) }, be())
4992
4998
  });
4993
4999
  }
4994
- m.sort((I, p) => I.start - p.start);
4995
- e: for (let I = 0; I < m.length; ) {
4996
- for (let p = I + 1; p < m.length; ++p) {
4997
- const C = m[I], g = m[p];
4998
- if (C !== g && C.end >= g.start && g.end >= C.start) {
4999
- C.end - C.start < g.end - g.start ? m.splice(I, 1) : m.splice(p, 1);
5000
+ g.sort((I, p) => I.start - p.start);
5001
+ e: for (let I = 0; I < g.length; ) {
5002
+ for (let p = I + 1; p < g.length; ++p) {
5003
+ const C = g[I], y = g[p];
5004
+ if (C !== y && C.end >= y.start && y.end >= C.start) {
5005
+ C.end - C.start < y.end - y.start ? g.splice(I, 1) : g.splice(p, 1);
5000
5006
  continue e;
5001
5007
  }
5002
5008
  }
5003
5009
  ++I;
5004
5010
  }
5005
- if (m.length === 0) return /* @__PURE__ */ i(b, { children: h });
5011
+ if (g.length === 0) return /* @__PURE__ */ i(b, { children: h });
5006
5012
  const S = [];
5007
5013
  let w = 0;
5008
- for (const I of m)
5014
+ for (const I of g)
5009
5015
  S.push(
5010
5016
  /* @__PURE__ */ i("span", { children: h.substring(w, I.start) }, be())
5011
5017
  ), S.push(I.link), w = I.end;
@@ -5112,9 +5118,9 @@ function we({
5112
5118
  n["http://www.w3.org/2002/07/owl#intersectionOf"]
5113
5119
  ), h = W(
5114
5120
  n["http://www.w3.org/2002/07/owl#unionOf"]
5115
- ), m = n["http://www.w3.org/2002/07/owl#hasValue"], y = n["http://www.w3.org/2002/07/owl#minCardinality"] || n["http://www.w3.org/2002/07/owl#minQualifiedCardinality"], S = n["http://www.w3.org/2002/07/owl#maxCardinality"] || n["http://www.w3.org/2002/07/owl#maxQualifiedCardinality"], w = n["http://www.w3.org/2002/07/owl#cardinality"] || n["http://www.w3.org/2002/07/owl#qualifiedCardinality"], I = n["http://www.w3.org/2002/07/owl#hasSelf"], p = n["http://www.w3.org/2002/07/owl#complementOf"], C = W(
5121
+ ), g = n["http://www.w3.org/2002/07/owl#hasValue"], m = n["http://www.w3.org/2002/07/owl#minCardinality"] || n["http://www.w3.org/2002/07/owl#minQualifiedCardinality"], S = n["http://www.w3.org/2002/07/owl#maxCardinality"] || n["http://www.w3.org/2002/07/owl#maxQualifiedCardinality"], w = n["http://www.w3.org/2002/07/owl#cardinality"] || n["http://www.w3.org/2002/07/owl#qualifiedCardinality"], I = n["http://www.w3.org/2002/07/owl#hasSelf"], p = n["http://www.w3.org/2002/07/owl#complementOf"], C = W(
5116
5122
  n["http://www.w3.org/2002/07/owl#oneOf"]
5117
- ), g = n["http://www.w3.org/2002/07/owl#inverseOf"], R = n["http://www.w3.org/2002/07/owl#onProperty"], E = n["http://www.w3.org/2002/07/owl#onDatatype"];
5123
+ ), y = n["http://www.w3.org/2002/07/owl#inverseOf"], R = n["http://www.w3.org/2002/07/owl#onProperty"], E = n["http://www.w3.org/2002/07/owl#onDatatype"];
5118
5124
  if (E) {
5119
5125
  const T = [];
5120
5126
  T.push(
@@ -5239,7 +5245,7 @@ function we({
5239
5245
  )
5240
5246
  );
5241
5247
  T.push(/* @__PURE__ */ i("span", { className: "text-neutral-default", children: ")" })), s = /* @__PURE__ */ i("span", { children: T.map((_) => /* @__PURE__ */ i("span", { children: _ }, be())) });
5242
- } else if (m)
5248
+ } else if (g)
5243
5249
  s = /* @__PURE__ */ u(b, { children: [
5244
5250
  /* @__PURE__ */ i(
5245
5251
  we,
@@ -5257,13 +5263,13 @@ function we({
5257
5263
  {
5258
5264
  parentEntity: e,
5259
5265
  linkedEntities: t,
5260
- currentResponsePath: W(m)[0],
5266
+ currentResponsePath: W(g)[0],
5261
5267
  showBadges: o,
5262
5268
  onNavigates: r
5263
5269
  }
5264
5270
  )
5265
5271
  ] });
5266
- else if (y)
5272
+ else if (m)
5267
5273
  s = /* @__PURE__ */ u(b, { children: [
5268
5274
  /* @__PURE__ */ i(
5269
5275
  we,
@@ -5281,7 +5287,7 @@ function we({
5281
5287
  {
5282
5288
  parentEntity: e,
5283
5289
  linkedEntities: t,
5284
- currentResponsePath: W(y)[0],
5290
+ currentResponsePath: W(m)[0],
5285
5291
  showBadges: o,
5286
5292
  onNavigates: r
5287
5293
  }
@@ -5393,7 +5399,7 @@ function we({
5393
5399
  )
5394
5400
  );
5395
5401
  T.push(/* @__PURE__ */ i("span", { className: "text-neutral-default", children: "}" })), s = /* @__PURE__ */ i("span", { children: T.map((_) => /* @__PURE__ */ i("span", { children: _ }, be())) });
5396
- } else g && (s = /* @__PURE__ */ u(b, { children: [
5402
+ } else y && (s = /* @__PURE__ */ u(b, { children: [
5397
5403
  /* @__PURE__ */ i("i", { style: { color: "purple" }, children: "inverse " }),
5398
5404
  /* @__PURE__ */ i("span", { className: "text-neutral-default", children: "(" }, be()),
5399
5405
  /* @__PURE__ */ i(
@@ -5401,7 +5407,7 @@ function we({
5401
5407
  {
5402
5408
  parentEntity: e,
5403
5409
  linkedEntities: t,
5404
- currentResponsePath: g,
5410
+ currentResponsePath: y,
5405
5411
  showBadges: o,
5406
5412
  onNavigates: r
5407
5413
  }
@@ -5426,17 +5432,17 @@ function wa(e) {
5426
5432
  showBadges: c,
5427
5433
  useLegacy: d,
5428
5434
  onNavigateToEntity: h,
5429
- onNavigateToOntology: m,
5430
- onNavigateToDisambiguate: y,
5435
+ onNavigateToOntology: g,
5436
+ onNavigateToDisambiguate: m,
5431
5437
  ...S
5432
5438
  } = e, w = {
5433
5439
  onNavigateToEntity: h,
5434
- onNavigateToOntology: m,
5435
- onNavigateToDisambiguate: y
5440
+ onNavigateToOntology: g,
5441
+ onNavigateToDisambiguate: m
5436
5442
  }, I = new ze(t), {
5437
5443
  data: p,
5438
5444
  isLoading: C,
5439
- isSuccess: g,
5445
+ isSuccess: y,
5440
5446
  isError: R,
5441
5447
  error: E
5442
5448
  } = xe(["entityInfo", e], () => I.getEntityObject(
@@ -5980,11 +5986,11 @@ function wa(e) {
5980
5986
  vn,
5981
5987
  {
5982
5988
  "data-testid": "entity-info",
5983
- title: r ? (s ? vt(qr(s)) : g && p ? vt(p.getType()) : "") + " Information" : "",
5989
+ title: r ? (s ? vt(qr(s)) : y && p ? vt(p.getType()) : "") + " Information" : "",
5984
5990
  layout: "horizontal",
5985
5991
  children: [
5986
5992
  C && /* @__PURE__ */ i(Le, { size: "s" }),
5987
- g && p !== void 0 && /* @__PURE__ */ u(le, { ...S, children: [
5993
+ y && p !== void 0 && /* @__PURE__ */ u(le, { ...S, children: [
5988
5994
  T(p),
5989
5995
  _(p),
5990
5996
  L(p),
@@ -6198,17 +6204,17 @@ function La(e) {
6198
6204
  parameter: c,
6199
6205
  onNavigateToEntity: d,
6200
6206
  onNavigateToOntology: h,
6201
- onNavigateToDisambiguate: m,
6202
- ...y
6207
+ onNavigateToDisambiguate: g,
6208
+ ...m
6203
6209
  } = e, S = {
6204
6210
  onNavigateToEntity: d,
6205
6211
  onNavigateToOntology: h,
6206
- onNavigateToDisambiguate: m
6212
+ onNavigateToDisambiguate: g
6207
6213
  }, w = new ze(t), {
6208
6214
  data: I,
6209
6215
  isLoading: p,
6210
6216
  isSuccess: C,
6211
- isError: g
6217
+ isError: y
6212
6218
  } = xe(
6213
6219
  ["entityJson", t, n, o, a, c, s],
6214
6220
  async () => w.getEntityObject(
@@ -6246,7 +6252,7 @@ function La(e) {
6246
6252
  Na(L, D, s, S)
6247
6253
  ), x = x.filter(
6248
6254
  (O) => O != null
6249
- ), x.length > 0 ? /* @__PURE__ */ i(le, { ...y, children: x }) : /* @__PURE__ */ i(le, { ...y, children: "No relations available." });
6255
+ ), x.length > 0 ? /* @__PURE__ */ i(le, { ...m, children: x }) : /* @__PURE__ */ i(le, { ...m, children: "No relations available." });
6250
6256
  }
6251
6257
  return /* @__PURE__ */ i(b, { children: /* @__PURE__ */ u(
6252
6258
  vn,
@@ -6256,7 +6262,7 @@ function La(e) {
6256
6262
  layout: "horizontal",
6257
6263
  children: [
6258
6264
  (p || E) && /* @__PURE__ */ i(Le, { size: "s" }),
6259
- g && /* @__PURE__ */ i(le, { children: "Requested resource not available" }),
6265
+ y && /* @__PURE__ */ i(le, { children: "Requested resource not available" }),
6260
6266
  C && T && I !== void 0 && R !== void 0 && _(I, R)
6261
6267
  ]
6262
6268
  }
@@ -6377,7 +6383,7 @@ async function ka(e) {
6377
6383
  { ontologyId: n, termIri: r },
6378
6384
  { viewMode: "All", siblings: !1 },
6379
6385
  e.parameter
6380
- ), m = await a.getTermRelations(
6386
+ ), g = await a.getTermRelations(
6381
6387
  {
6382
6388
  ontologyId: n,
6383
6389
  termIri: r
@@ -6388,7 +6394,7 @@ async function ka(e) {
6388
6394
  treeData: c,
6389
6395
  termRelations: d,
6390
6396
  targetTreeData: h,
6391
- targetTermRelations: m
6397
+ targetTermRelations: g
6392
6398
  };
6393
6399
  }
6394
6400
  return { treeData: c, termRelations: d };
@@ -6445,10 +6451,10 @@ function Ma(e) {
6445
6451
  edgeLabel: c,
6446
6452
  onNodeClick: d,
6447
6453
  onNavigateTo: h,
6448
- parameter: m,
6449
- stopFullWidth: y,
6454
+ parameter: g,
6455
+ stopFullWidth: m,
6450
6456
  hideLegend: S
6451
- } = e, [w, I] = Q(n), [p, C] = Q(!0), [g, R] = Q(!1), [E, T] = Q(!1), [_, L] = Q(!1), [D, x] = Q(Math.floor(Math.random() * 100)), [O, Y] = Q({
6457
+ } = e, [w, I] = Q(n), [p, C] = Q(!0), [y, R] = Q(!1), [E, T] = Q(!1), [_, L] = Q(!1), [D, x] = Q(Math.floor(Math.random() * 100)), [O, Y] = Q({
6452
6458
  nodes: [],
6453
6459
  edges: []
6454
6460
  }), [ee, J] = Q(""), [ie, ue] = Q({ bgColor: "", color: "" }), [pe, v] = Q(!1), [M, oe] = Q(!1), [Ce, Ae] = Q(!1), [ye, je] = Q(e.targetIri ?? ""), [De, F] = Q(""), [me, ne] = Q(""), ve = s || "ts4nfdi-graph-style", A = !c || c === "undefined" ? "is a" : c, H = typeof d == "function" && !d.name.includes("actionHandler"), se = "#139ec4", G = "#708238", P = "#00a86b", he = "#ff991c", te = "white", { data: z, isLoading: B, isError: Ne, error: ge } = xe(
@@ -6462,7 +6468,7 @@ function Ma(e) {
6462
6468
  ontologyId: o,
6463
6469
  targetIri: ye,
6464
6470
  dbClicked: E,
6465
- parameter: m
6471
+ parameter: g
6466
6472
  });
6467
6473
  if (r && (p || E) && a)
6468
6474
  return await ka({
@@ -6471,7 +6477,7 @@ function Ma(e) {
6471
6477
  ontologyId: o,
6472
6478
  targetIri: ye,
6473
6479
  dbClicked: E,
6474
- parameter: m
6480
+ parameter: g
6475
6481
  });
6476
6482
  if (p || E)
6477
6483
  return await Pa({
@@ -6480,7 +6486,7 @@ function Ma(e) {
6480
6486
  ontologyId: o,
6481
6487
  targetIri: ye,
6482
6488
  dbClicked: E,
6483
- parameter: m
6489
+ parameter: g
6484
6490
  });
6485
6491
  }
6486
6492
  ), de = ut(new cr([])), fe = ut(new cr([])), ce = ut({}), ke = ut(null), Oe = ut(null), $e = ut(/* @__PURE__ */ new Map());
@@ -6740,7 +6746,7 @@ function Ma(e) {
6740
6746
  );
6741
6747
  }
6742
6748
  Fe(() => {
6743
- if (!g)
6749
+ if (!y)
6744
6750
  return;
6745
6751
  let U = { nodes: de.current, edges: fe.current }, Z = JSON.parse(JSON.stringify(zn));
6746
6752
  ce.current = new Ko(
@@ -6751,8 +6757,8 @@ function Ma(e) {
6751
6757
  ), setTimeout(() => {
6752
6758
  ce.current.setOptions({ physics: !1 });
6753
6759
  }, 4e3);
6754
- }, [D, g]), Fe(() => {
6755
- ce.current && g && (ce.current.on("click", function(U) {
6760
+ }, [D, y]), Fe(() => {
6761
+ ce.current && y && (ce.current.on("click", function(U) {
6756
6762
  U.nodes.length > 0 ? J(U.nodes[0]) : J("");
6757
6763
  }), ce.current.on("doubleClick", function(U) {
6758
6764
  var Z, ae, Se, K;
@@ -6788,7 +6794,7 @@ function Ma(e) {
6788
6794
  "div",
6789
6795
  {
6790
6796
  className: ve,
6791
- style: y ? {} : { width: "100%", height: "100vh", overflow: "hidden" },
6797
+ style: m ? {} : { width: "100%", height: "100vh", overflow: "hidden" },
6792
6798
  ref: Oe,
6793
6799
  children: /* @__PURE__ */ u(Qe, { style: { height: "100vh" }, "data-testid": "graph-widget", children: [
6794
6800
  Ne && /* @__PURE__ */ i(le, { children: ot(ge, "graph") }),
@@ -6898,7 +6904,7 @@ function Ma(e) {
6898
6904
  {
6899
6905
  ref: ke,
6900
6906
  className: "graph-container",
6901
- style: y ? {} : { width: "100%", height: "100vh", margin: "auto" }
6907
+ style: m ? {} : { width: "100%", height: "100vh", margin: "auto" }
6902
6908
  }
6903
6909
  ),
6904
6910
  /* @__PURE__ */ i(
@@ -6939,16 +6945,16 @@ function za(e) {
6939
6945
  className: c,
6940
6946
  onNavigateToEntity: d,
6941
6947
  onNavigateToOntology: h,
6942
- onNavigateToDisambiguate: m,
6943
- ...y
6948
+ onNavigateToDisambiguate: g,
6949
+ ...m
6944
6950
  } = e, S = new Cn(n), w = {
6945
6951
  onNavigateToEntity: d,
6946
6952
  onNavigateToOntology: h,
6947
- onNavigateToDisambiguate: m
6953
+ onNavigateToDisambiguate: g
6948
6954
  }, I = c || "ts4nfdi-ontologyy-info-style", {
6949
6955
  data: p,
6950
6956
  isLoading: C,
6951
- isSuccess: g,
6957
+ isSuccess: y,
6952
6958
  isError: R,
6953
6959
  error: E
6954
6960
  } = xe(["ontologyInfo", e], () => S.getOntologyObject(t, o, s));
@@ -7060,7 +7066,7 @@ function za(e) {
7060
7066
  style: e.width ? { width: e.width } : {},
7061
7067
  children: [
7062
7068
  C && /* @__PURE__ */ i(Le, { size: "s" }),
7063
- g && p !== void 0 && /* @__PURE__ */ u(le, { ...y, children: [
7069
+ y && p !== void 0 && /* @__PURE__ */ u(le, { ...m, children: [
7064
7070
  T(p),
7065
7071
  _(p),
7066
7072
  L(p),
@@ -7080,7 +7086,7 @@ function za(e) {
7080
7086
  ) });
7081
7087
  }
7082
7088
  function Ua(e) {
7083
- const { api: t, iri: n, ontologyId: o, useLegacy: r } = e, s = new ji(t), { data: a, isLoading: c, isSuccess: d, isLoadingError: h, error: m } = xe(
7089
+ const { api: t, iri: n, ontologyId: o, useLegacy: r } = e, s = new ji(t), { data: a, isLoading: c, isSuccess: d, isLoadingError: h, error: g } = xe(
7084
7090
  ["termDepiction", t, n, o, r],
7085
7091
  async () => s.getThingObject(
7086
7092
  n,
@@ -7092,7 +7098,7 @@ function Ua(e) {
7092
7098
  );
7093
7099
  return /* @__PURE__ */ u("div", { "data-testid": "term-depiction", children: [
7094
7100
  c && /* @__PURE__ */ i(Le, { size: "s" }),
7095
- d && a && a.getDepictionUrl().length !== 0 && /* @__PURE__ */ i(b, { children: a.getDepictionUrl().map((y) => y.includes(".glb") ? /* @__PURE__ */ i(
7101
+ d && a && a.getDepictionUrl().length !== 0 && /* @__PURE__ */ i(b, { children: a.getDepictionUrl().map((m) => m.includes(".glb") ? /* @__PURE__ */ i(
7096
7102
  "model-viewer",
7097
7103
  {
7098
7104
  style: {
@@ -7100,7 +7106,7 @@ function Ua(e) {
7100
7106
  height: "300px",
7101
7107
  display: "inline-block"
7102
7108
  },
7103
- src: y,
7109
+ src: m,
7104
7110
  "shadow-intensity": "1",
7105
7111
  "camera-controls": !0,
7106
7112
  "touch-action": "pan-y"
@@ -7112,13 +7118,13 @@ function Ua(e) {
7112
7118
  size: "m",
7113
7119
  hasShadow: !0,
7114
7120
  allowFullScreen: !0,
7115
- alt: y,
7116
- src: y
7121
+ alt: m,
7122
+ src: m
7117
7123
  }
7118
7124
  ),
7119
7125
  /* @__PURE__ */ i("p", { children: /* @__PURE__ */ i("small", { children: "Click to expand." }) })
7120
7126
  ] })) }),
7121
- h && /* @__PURE__ */ i(le, { children: ot(m, "depiction") })
7127
+ h && /* @__PURE__ */ i(le, { children: ot(g, "depiction") })
7122
7128
  ] });
7123
7129
  }
7124
7130
  function Mr({
@@ -7130,8 +7136,8 @@ function Mr({
7130
7136
  const [r, s] = Q(n || ""), [a, c] = Q(
7131
7137
  n
7132
7138
  ), d = Wr(() => {
7133
- const m = r.trim() || void 0;
7134
- c(m), t(m);
7139
+ const g = r.trim() || void 0;
7140
+ c(g), t(g);
7135
7141
  }, [r, t]);
7136
7142
  return Lt.useEffect(() => {
7137
7143
  s(n || ""), n !== a && c(n);
@@ -7173,7 +7179,7 @@ function Mr({
7173
7179
  }
7174
7180
  function ja(e) {
7175
7181
  function t(n) {
7176
- var h, m, y;
7182
+ var h, g, m;
7177
7183
  const o = e.className || "ts4nfdi-tab-style", r = [];
7178
7184
  (e.altNamesTab === void 0 || e.altNamesTab) && r.push({
7179
7185
  content: /* @__PURE__ */ i(
@@ -7261,7 +7267,7 @@ function ja(e) {
7261
7267
  }
7262
7268
  ),
7263
7269
  id: "ontology",
7264
- name: `About ${(m = e.ontologyId) == null ? void 0 : m.toUpperCase()}`
7270
+ name: `About ${(g = e.ontologyId) == null ? void 0 : g.toUpperCase()}`
7265
7271
  }), (e.graphViewTab === void 0 || e.graphViewTab) && r.push({
7266
7272
  content: /* @__PURE__ */ u(Ye, { direction: "column", gutterSize: "xs", children: [
7267
7273
  /* @__PURE__ */ i(V, { children: /* @__PURE__ */ i(Ye, { justifyContent: "flexEnd", responsive: !1, children: /* @__PURE__ */ i(V, { grow: !1, children: e.enableComparisonMode && /* @__PURE__ */ u(b, { children: [
@@ -7279,7 +7285,7 @@ function ja(e) {
7279
7285
  /* @__PURE__ */ i(V, { children: e.enableComparisonMode && s && /* @__PURE__ */ i(
7280
7286
  Mr,
7281
7287
  {
7282
- entityLabel: (y = n.getLabel) == null ? void 0 : y.call(n),
7288
+ entityLabel: (m = n.getLabel) == null ? void 0 : m.call(n),
7283
7289
  initialTargetIri: e.targetIri,
7284
7290
  onTargetIriChange: e.onTargetIriChange
7285
7291
  }
@@ -7387,11 +7393,11 @@ function Wa(e) {
7387
7393
  hierarchyTab: c,
7388
7394
  crossRefTab: d,
7389
7395
  terminologyInfoTab: h,
7390
- altNamesTab: m,
7391
- enableComparisonMode: y = !1,
7396
+ altNamesTab: g,
7397
+ enableComparisonMode: m = !1,
7392
7398
  className: S,
7393
7399
  ...w
7394
- } = e, I = new ze(n), p = S || "ts4nfdi-tab-style", { data: C, isLoading: g, isSuccess: R, isError: E, error: T } = xe(
7400
+ } = e, I = new ze(n), p = S || "ts4nfdi-tab-style", { data: C, isLoading: y, isSuccess: R, isError: E, error: T } = xe(
7395
7401
  ["tabdata", n, s, r, t, o, a],
7396
7402
  async () => I.getEntityObject(
7397
7403
  t,
@@ -7417,7 +7423,7 @@ function Wa(e) {
7417
7423
  hierarchyTab: c,
7418
7424
  crossRefTab: d,
7419
7425
  terminologyInfoTab: h,
7420
- altNamesTab: m,
7426
+ altNamesTab: g,
7421
7427
  entityRelationTab: e.entityRelationTab,
7422
7428
  entityInfoTab: e.entityInfoTab,
7423
7429
  onNavigateToEntity: e.onNavigateToEntity,
@@ -7436,7 +7442,7 @@ function Wa(e) {
7436
7442
  ) });
7437
7443
  }
7438
7444
  return /* @__PURE__ */ u(b, { children: [
7439
- g && /* @__PURE__ */ i(Le, {}),
7445
+ y && /* @__PURE__ */ i(Le, {}),
7440
7446
  E && /* @__PURE__ */ i(le, { children: ot(T, "description") }),
7441
7447
  R && C && /* @__PURE__ */ i(b, { children: sn(C) ? D(C) : null })
7442
7448
  ] });
@@ -7452,15 +7458,15 @@ function _i(e) {
7452
7458
  onNavigateTo: c,
7453
7459
  iri: d,
7454
7460
  ontologyId: h,
7455
- thingType: m,
7456
- href: y
7461
+ thingType: g,
7462
+ href: m
7457
7463
  } = e;
7458
- return /* @__PURE__ */ i("div", { className: a || "ts4nfdi-title-style", children: n ? /* @__PURE__ */ i(le, { children: n }) : o ? s ? /* @__PURE__ */ i(le, { children: s }) : /* @__PURE__ */ i(Le, { size: "s" }) : r ? s ? /* @__PURE__ */ i(le, { children: s }) : /* @__PURE__ */ i(le, { children: ot(r, "title") }) : y ? /* @__PURE__ */ i(jt, { href: y, children: /* @__PURE__ */ i(le, { children: t }) }) : typeof c == "function" && !c.name.includes("mockConstructor") ? /* @__PURE__ */ i(
7464
+ return /* @__PURE__ */ i("div", { className: a || "ts4nfdi-title-style", children: n ? /* @__PURE__ */ i(le, { children: n }) : o ? s ? /* @__PURE__ */ i(le, { children: s }) : /* @__PURE__ */ i(Le, { size: "s" }) : r ? s ? /* @__PURE__ */ i(le, { children: s }) : /* @__PURE__ */ i(le, { children: ot(r, "title") }) : m ? /* @__PURE__ */ i(jt, { href: m, children: /* @__PURE__ */ i(le, { children: t }) }) : typeof c == "function" && !c.name.includes("mockConstructor") ? /* @__PURE__ */ i(
7459
7465
  jt,
7460
7466
  {
7461
7467
  href: "",
7462
7468
  onClick: (I) => {
7463
- I.preventDefault(), c && c(d || "", h || "", m || "");
7469
+ I.preventDefault(), c && c(d || "", h || "", g || "");
7464
7470
  },
7465
7471
  children: /* @__PURE__ */ i(le, { children: t })
7466
7472
  }
@@ -7477,13 +7483,13 @@ function Al(e) {
7477
7483
  onNavigateToOntology: c,
7478
7484
  hierarchyTab: d,
7479
7485
  crossRefTab: h,
7480
- terminologyInfoTab: m,
7481
- graphViewTab: y,
7486
+ terminologyInfoTab: g,
7487
+ graphViewTab: m,
7482
7488
  termDepictionTab: S,
7483
7489
  altNamesTab: w,
7484
7490
  termLink: I,
7485
7491
  className: p
7486
- } = e, C = new ze(n), g = p || "ts4nfdi-metadata-style", { data: R, isLoading: E, isSuccess: T, isError: _, error: L } = xe(
7492
+ } = e, C = new ze(n), y = p || "ts4nfdi-metadata-style", { data: R, isLoading: E, isSuccess: T, isError: _, error: L } = xe(
7487
7493
  ["metadata", n, s, r, t, o, a],
7488
7494
  async () => {
7489
7495
  let x, O, Y;
@@ -7526,12 +7532,12 @@ function Al(e) {
7526
7532
  }
7527
7533
  );
7528
7534
  function D(x) {
7529
- return /* @__PURE__ */ i("div", { className: g, "data-testid": "metadata", children: /* @__PURE__ */ u(Ye, { direction: "column", gutterSize: "m", children: [
7535
+ return /* @__PURE__ */ i("div", { className: y, "data-testid": "metadata", children: /* @__PURE__ */ u(Ye, { direction: "column", gutterSize: "m", children: [
7530
7536
  /* @__PURE__ */ i(V, { grow: !1, children: I ? /* @__PURE__ */ i(jt, { href: I, target: "_blank", external: !1, children: /* @__PURE__ */ i(
7531
7537
  _i,
7532
7538
  {
7533
7539
  title: x.entity.getLabel(),
7534
- className: `${g}-title`,
7540
+ className: `${y}-title`,
7535
7541
  isLoading: E,
7536
7542
  error: L
7537
7543
  }
@@ -7539,7 +7545,7 @@ function Al(e) {
7539
7545
  _i,
7540
7546
  {
7541
7547
  title: x.entity.getLabel(),
7542
- className: `${g}-title`,
7548
+ className: `${y}-title`,
7543
7549
  isLoading: E,
7544
7550
  error: L
7545
7551
  }
@@ -7550,7 +7556,7 @@ function Al(e) {
7550
7556
  onNavigateToOntology: e.onNavigateToOntology,
7551
7557
  ontologyId: o || x.entity.getOntologyId(),
7552
7558
  shortForm: x.entity.getShortForm(),
7553
- className: `${g}-breadcrumb`,
7559
+ className: `${y}-breadcrumb`,
7554
7560
  colorFirst: e.colorFirst,
7555
7561
  colorSecond: e.colorSecond
7556
7562
  }
@@ -7559,7 +7565,7 @@ function Al(e) {
7559
7565
  to,
7560
7566
  {
7561
7567
  iri: t,
7562
- className: `${g}-iri`,
7568
+ className: `${y}-iri`,
7563
7569
  iriText: e.iriText,
7564
7570
  urlPrefix: e.urlPrefix,
7565
7571
  externalIcon: e.externalIcon,
@@ -7570,7 +7576,7 @@ function Al(e) {
7570
7576
  eo,
7571
7577
  {
7572
7578
  description: x.entity.getDescription(),
7573
- className: `${g}-description`,
7579
+ className: `${y}-description`,
7574
7580
  isLoading: E,
7575
7581
  error: L,
7576
7582
  descText: e.descText
@@ -7585,7 +7591,7 @@ function Al(e) {
7585
7591
  ontolist: x.ontoList,
7586
7592
  entityType: r || x.entity.getType(),
7587
7593
  onNavigateToOntology: c,
7588
- className: `${g}-entity-onto-list`
7594
+ className: `${y}-entity-onto-list`
7589
7595
  }
7590
7596
  ),
7591
7597
  /* @__PURE__ */ i(
@@ -7596,7 +7602,7 @@ function Al(e) {
7596
7602
  label: x.entity.getLabel() || "",
7597
7603
  entityType: r || x.entity.getType(),
7598
7604
  onNavigateToOntology: c,
7599
- className: `${g}-entity-defined-by`
7605
+ className: `${y}-entity-defined-by`
7600
7606
  }
7601
7607
  )
7602
7608
  ] }),
@@ -7610,9 +7616,9 @@ function Al(e) {
7610
7616
  useLegacy: a,
7611
7617
  hierarchyTab: d,
7612
7618
  crossRefTab: h,
7613
- terminologyInfoTab: m,
7619
+ terminologyInfoTab: g,
7614
7620
  termDepictionTab: S,
7615
- graphViewTab: y,
7621
+ graphViewTab: m,
7616
7622
  altNamesTab: w,
7617
7623
  entityInfoTab: e.entityInfoTab,
7618
7624
  entityRelationTab: e.entityRelationTab,
@@ -7622,7 +7628,7 @@ function Al(e) {
7622
7628
  onNavigateToEntity: e.onNavigateToEntity,
7623
7629
  onNavigateToOntology: e.onNavigateToOntology,
7624
7630
  onNavigateToDisambiguate: e.onNavigateToDisambiguate,
7625
- className: `${g}-tab`,
7631
+ className: `${y}-tab`,
7626
7632
  hierarchyWrap: e.hierarchyWrap,
7627
7633
  rootWalk: e.rootWalk,
7628
7634
  edgeLabel: e.edgeLabel,
@@ -7654,9 +7660,9 @@ function Nl(e) {
7654
7660
  useLegacy: c,
7655
7661
  defaultValue: d,
7656
7662
  className: h,
7657
- onNavigateTo: m,
7658
- href: y
7659
- } = e, S = new ji(o), { data: w, isLoading: I, isSuccess: p, isError: C, error: g } = xe(
7663
+ onNavigateTo: g,
7664
+ href: m
7665
+ } = e, S = new ji(o), { data: w, isLoading: I, isSuccess: p, isError: C, error: y } = xe(
7660
7666
  ["titleData", o, a, s, t, n, c],
7661
7667
  async () => S.getThingObject(
7662
7668
  t,
@@ -7674,12 +7680,12 @@ function Nl(e) {
7674
7680
  defaultValue: d,
7675
7681
  className: h,
7676
7682
  isLoading: I,
7677
- error: C ? g : null,
7683
+ error: C ? y : null,
7678
7684
  iri: t || (w ? w.getIri() : null),
7679
- onNavigateTo: m,
7685
+ onNavigateTo: g,
7680
7686
  ontologyId: n || (w ? w.getOntologyId() : void 0),
7681
7687
  thingType: s || (w ? w.getType() : void 0),
7682
- href: y
7688
+ href: m
7683
7689
  }
7684
7690
  ) });
7685
7691
  }
@@ -7725,7 +7731,7 @@ const Fr = (e, t) => {
7725
7731
  synonyms: []
7726
7732
  };
7727
7733
  function Ii(e, t = {}) {
7728
- var n, o, r, s, a, c, d, h, m, y;
7734
+ var n, o, r, s, a, c, d, h, g, m;
7729
7735
  return {
7730
7736
  iri: ((n = e == null ? void 0 : e.getIri) == null ? void 0 : n.call(e)) ?? "",
7731
7737
  label: ((o = e == null ? void 0 : e.getLabel) == null ? void 0 : o.call(e)) ?? "",
@@ -7735,8 +7741,8 @@ function Ii(e, t = {}) {
7735
7741
  description: ((c = e == null ? void 0 : e.getDescription) == null ? void 0 : c.call(e)) ?? "",
7736
7742
  provider_name: ((d = e == null ? void 0 : e.getProviderName) == null ? void 0 : d.call(e)) ?? "",
7737
7743
  provider_type: ((h = e == null ? void 0 : e.getProviderType) == null ? void 0 : h.call(e)) ?? "",
7738
- provider_api: ((m = e == null ? void 0 : e.getProviderApi) == null ? void 0 : m.call(e)) ?? "",
7739
- synonyms: ((y = e == null ? void 0 : e.getSynonyms) == null ? void 0 : y.call(e)) ?? [],
7744
+ provider_api: ((g = e == null ? void 0 : e.getProviderApi) == null ? void 0 : g.call(e)) ?? "",
7745
+ synonyms: ((m = e == null ? void 0 : e.getSynonyms) == null ? void 0 : m.call(e)) ?? [],
7740
7746
  ...t
7741
7747
  };
7742
7748
  }
@@ -7766,19 +7772,19 @@ function Ll(e) {
7766
7772
  placeholder: c,
7767
7773
  singleSelection: d,
7768
7774
  singleSuggestionRow: h,
7769
- showApiSource: m = !0,
7770
- className: y,
7775
+ showApiSource: g = !0,
7776
+ className: m,
7771
7777
  useLegacy: S,
7772
7778
  initialSearchQuery: w,
7773
7779
  onNavigateToOntology: I,
7774
7780
  showApiRequestButton: p = !0,
7775
7781
  ...C
7776
- } = e, g = new Zn(t), R = new ze(t), E = Wo(), [T, _] = Q(
7782
+ } = e, y = new Zn(t), R = new ze(t), E = Wo(), [T, _] = Q(
7777
7783
  w ?? ""
7778
- ), [L, D] = Q([]), [x, O] = Q([]), Y = y || "ts4nfdi-autocomplete-style", [ee, J] = Q(!1), [ie, ue] = Q("");
7784
+ ), [L, D] = Q([]), [x, O] = Q([]), Y = m || "ts4nfdi-autocomplete-style", [ee, J] = Q(!1), [ie, ue] = Q("");
7779
7785
  Fe(() => {
7780
7786
  T.length > 0 ? ue(
7781
- g.getSelectRequestUrl(
7787
+ y.getSelectRequestUrl(
7782
7788
  { query: T },
7783
7789
  void 0,
7784
7790
  void 0,
@@ -7808,7 +7814,7 @@ Label: ${G.label}
7808
7814
  ${z}`;
7809
7815
  G.description && (B += `
7810
7816
 
7811
- Description: ${G.description}`), m && G.source_url && G.source_url !== "" && (B += `
7817
+ Description: ${G.description}`), g && G.source_url && G.source_url !== "" && (B += `
7812
7818
 
7813
7819
  Source: ` + G.source, B += `
7814
7820
 
@@ -7939,7 +7945,7 @@ Synonyms: ` + G.synonyms.join(", "));
7939
7945
  }
7940
7946
  async function ye(A, H) {
7941
7947
  try {
7942
- const se = await g.getSelectData(
7948
+ const se = await y.getSelectData(
7943
7949
  { query: A.iri },
7944
7950
  void 0,
7945
7951
  void 0,
@@ -7990,7 +7996,7 @@ Synonyms: ` + G.synonyms.join(", "));
7990
7996
  ["onSearchChange", T],
7991
7997
  async () => {
7992
7998
  if (T.length > 0)
7993
- return g.getSelectData(
7999
+ return y.getSelectData(
7994
8000
  { query: T },
7995
8001
  void 0,
7996
8002
  void 0,
@@ -8161,13 +8167,13 @@ function Ga(e) {
8161
8167
  }, [a]), d = bt(() => {
8162
8168
  if (a)
8163
8169
  return new Zn(a);
8164
- }, [a]), [h, m] = Q(0), [y, S] = Q(10), [w, I] = Q(""), [p, C] = Q(""), [g, R] = Q("name"), [E, T] = Q("asc"), _ = ut(new AbortController());
8165
- Fe(() => (_.current.abort(), _.current = new AbortController(), m(0), S(10), I(""), C(""), R("name"), T("asc"), () => {
8170
+ }, [a]), [h, g] = Q(0), [m, S] = Q(10), [w, I] = Q(""), [p, C] = Q(""), [y, R] = Q("name"), [E, T] = Q("asc"), _ = ut(new AbortController());
8171
+ Fe(() => (_.current.abort(), _.current = new AbortController(), g(0), S(10), I(""), C(""), R("name"), T("asc"), () => {
8166
8172
  _.current.abort();
8167
8173
  }), [t, n, o, r]), Fe(() => {
8168
8174
  const M = setTimeout(() => {
8169
8175
  const oe = co(w);
8170
- m(0), C(oe);
8176
+ g(0), C(oe);
8171
8177
  }, 300);
8172
8178
  return () => clearTimeout(M);
8173
8179
  }, [w]), Fe(() => (_.current.abort(), _.current = new AbortController(), () => {
@@ -8177,7 +8183,7 @@ function Ga(e) {
8177
8183
  n,
8178
8184
  o,
8179
8185
  h,
8180
- y,
8186
+ m,
8181
8187
  p,
8182
8188
  s
8183
8189
  ]);
@@ -8188,7 +8194,7 @@ function Ga(e) {
8188
8194
  n,
8189
8195
  o,
8190
8196
  h,
8191
- y,
8197
+ m,
8192
8198
  p,
8193
8199
  s
8194
8200
  ],
@@ -8197,7 +8203,7 @@ function Ga(e) {
8197
8203
  n,
8198
8204
  o,
8199
8205
  h,
8200
- y,
8206
+ m,
8201
8207
  p,
8202
8208
  s
8203
8209
  ]
@@ -8213,7 +8219,7 @@ function Ga(e) {
8213
8219
  oe,
8214
8220
  s,
8215
8221
  h,
8216
- y,
8222
+ m,
8217
8223
  M
8218
8224
  );
8219
8225
  }
@@ -8223,7 +8229,7 @@ function Ga(e) {
8223
8229
  o ?? "",
8224
8230
  s,
8225
8231
  h,
8226
- y,
8232
+ m,
8227
8233
  M
8228
8234
  );
8229
8235
  }, { data: x, isLoading: O, isFetching: Y, isError: ee, error: J } = xe(
@@ -8236,9 +8242,9 @@ function Ga(e) {
8236
8242
  retry: !1
8237
8243
  }
8238
8244
  ), ie = (x == null ? void 0 : x.totalItemCount) ?? 0, ue = bt(() => [...(x == null ? void 0 : x.rows) ?? []].sort((Ce, Ae) => {
8239
- const ye = Ja(Ce[g], Ae[g]);
8245
+ const ye = Ja(Ce[y], Ae[y]);
8240
8246
  return E === "asc" ? ye : -ye;
8241
- }), [x == null ? void 0 : x.rows, g, E]), pe = bt(() => {
8247
+ }), [x == null ? void 0 : x.rows, y, E]), pe = bt(() => {
8242
8248
  const M = [
8243
8249
  { field: "name", name: "Name", truncateText: !0, sortable: !0 },
8244
8250
  { field: "id", name: "ID", truncateText: !0, sortable: !0 }
@@ -8263,7 +8269,7 @@ function Ga(e) {
8263
8269
  }) => {
8264
8270
  if (M) {
8265
8271
  const Ce = zr.includes(M.size) ? M.size : 10;
8266
- Ce !== y ? (S(Ce), m(0)) : M.index !== h && m(M.index);
8272
+ Ce !== m ? (S(Ce), g(0)) : M.index !== h && g(M.index);
8267
8273
  }
8268
8274
  oe && (R(oe.field), T(oe.direction));
8269
8275
  };
@@ -8309,12 +8315,12 @@ function Ga(e) {
8309
8315
  onChange: v,
8310
8316
  pagination: {
8311
8317
  pageIndex: h,
8312
- pageSize: y,
8318
+ pageSize: m,
8313
8319
  totalItemCount: ie,
8314
8320
  pageSizeOptions: [...zr]
8315
8321
  },
8316
8322
  sorting: {
8317
- sort: { field: g, direction: E }
8323
+ sort: { field: y, direction: E }
8318
8324
  }
8319
8325
  }
8320
8326
  )
@@ -8349,15 +8355,15 @@ function Ka(e) {
8349
8355
  const s = (c = e == null ? void 0 : e.linkedEntities) == null ? void 0 : c[r];
8350
8356
  if (s != null && s.label) {
8351
8357
  const d = Array.isArray(s.label) ? s.label : [s.label], h = Array.from(
8352
- new Set(d.map((m) => String(m).trim()).filter(Boolean))
8358
+ new Set(d.map((g) => String(g).trim()).filter(Boolean))
8353
8359
  );
8354
8360
  if (h.length === 0)
8355
8361
  console.log(`No label was found for the IRI: ${r}`);
8356
8362
  else {
8357
8363
  if (h.length > 1) {
8358
- const m = h.filter((y) => y !== "NamedIndividual");
8359
- if (m.length > 0)
8360
- return m.join(", ");
8364
+ const g = h.filter((m) => m !== "NamedIndividual");
8365
+ if (g.length > 0)
8366
+ return g.join(", ");
8361
8367
  }
8362
8368
  return h.join(", ");
8363
8369
  }
@@ -8397,7 +8403,7 @@ function Za(e, t) {
8397
8403
  return typeof n == "number" && Number.isFinite(n) ? n : (typeof n == "string" || typeof n == "bigint") && Number.isFinite(Number(n)) ? Number(n) : t;
8398
8404
  }
8399
8405
  async function Ur(e, t, n, o, r, s, a) {
8400
- const c = { page: String(r), size: String(s) }, d = o ?? "class", h = Zo(d), m = await Ts(
8406
+ const c = { page: String(r), size: String(s) }, d = o ?? "class", h = Zo(d), g = await Ts(
8401
8407
  e,
8402
8408
  h,
8403
8409
  t,
@@ -8405,9 +8411,9 @@ async function Ur(e, t, n, o, r, s, a) {
8405
8411
  !1,
8406
8412
  c,
8407
8413
  a
8408
- ), y = Qa(m, d), S = r * s;
8414
+ ), m = Qa(g, d), S = r * s;
8409
8415
  return {
8410
- rows: y.map((w, I) => ({
8416
+ rows: m.map((w, I) => ({
8411
8417
  name: Va(w),
8412
8418
  id: Ya(w),
8413
8419
  rowIndex: S + I,
@@ -8415,7 +8421,7 @@ async function Ur(e, t, n, o, r, s, a) {
8415
8421
  range: Xn(d) ? Xa(w) : void 0,
8416
8422
  type: Ji(d) ? Ka(w) : void 0
8417
8423
  })),
8418
- totalItemCount: Za(m, y.length)
8424
+ totalItemCount: Za(g, m.length)
8419
8425
  };
8420
8426
  }
8421
8427
  const el = new qo();
@@ -8442,18 +8448,18 @@ function tl(e) {
8442
8448
  };
8443
8449
  }
8444
8450
  async function Vi(e, t) {
8445
- const { iri: n, ontologyId: o, api: r } = e;
8451
+ const { iri: n, ontologyId: o, api: r, parameter: s } = e;
8446
8452
  if (!n) throw Error("No IRI provided");
8447
- const a = await new ze(r || lo).getEntity(
8453
+ const c = await new ze(r || lo).getEntity(
8448
8454
  void 0,
8449
8455
  void 0,
8450
8456
  { ontologyId: o, termIri: n },
8451
- "",
8457
+ s || "",
8452
8458
  !1,
8453
8459
  t
8454
8460
  );
8455
- return ((a == null ? void 0 : a.elements) || []).map((d) => ({ element: d, provider: tl(d) })).filter(
8456
- (d) => d.provider !== void 0
8461
+ return ((c == null ? void 0 : c.elements) || []).map((h) => ({ element: h, provider: tl(h) })).filter(
8462
+ (h) => h.provider !== void 0
8457
8463
  );
8458
8464
  }
8459
8465
  function uo(e) {
@@ -8480,36 +8486,39 @@ const jn = {
8480
8486
  error: void 0
8481
8487
  };
8482
8488
  function Ml(e) {
8483
- const { iri: t, ontologyId: n, api: o, enabled: r = !0 } = e, [s, a] = Q(jn);
8489
+ const { iri: t, ontologyId: n, api: o, parameter: r, enabled: s = !0 } = e, [a, c] = Q(jn);
8484
8490
  return Fe(() => {
8485
- if (!r || !t) {
8486
- a(jn);
8491
+ if (!s || !t) {
8492
+ c(jn);
8487
8493
  return;
8488
8494
  }
8489
- let c = !1;
8490
- const d = new AbortController();
8491
- return a({ ...jn, isLoading: !0 }), Vi({ iri: t, ontologyId: n, api: o }, d.signal).then(
8492
- (h) => {
8493
- c || a({
8494
- providers: h.map((m) => m.provider),
8495
- provider: uo(h),
8495
+ let d = !1;
8496
+ const h = new AbortController();
8497
+ return c({ ...jn, isLoading: !0 }), Vi(
8498
+ { iri: t, ontologyId: n, api: o, parameter: r },
8499
+ h.signal
8500
+ ).then(
8501
+ (g) => {
8502
+ d || c({
8503
+ providers: g.map((m) => m.provider),
8504
+ provider: uo(g),
8496
8505
  isLoading: !1,
8497
8506
  isSuccess: !0,
8498
8507
  isError: !1,
8499
8508
  error: void 0
8500
8509
  });
8501
8510
  },
8502
- (h) => {
8503
- c || d.signal.aborted || a({
8511
+ (g) => {
8512
+ d || h.signal.aborted || c({
8504
8513
  ...jn,
8505
8514
  isError: !0,
8506
- error: h instanceof Error ? h : Error(String(h))
8515
+ error: g instanceof Error ? g : Error(String(g))
8507
8516
  });
8508
8517
  }
8509
8518
  ), () => {
8510
- c = !0, d.abort();
8519
+ d = !0, h.abort();
8511
8520
  };
8512
- }, [t, n, o, r]), s;
8521
+ }, [t, n, o, r, s]), a;
8513
8522
  }
8514
8523
  function Fl(e) {
8515
8524
  const { apiQuery: t, buttonText: n, buttonSize: o } = e;
@@ -8594,9 +8603,9 @@ function al(e) {
8594
8603
  const { api: t, source: n } = e, o = bt(() => new nl(t), [t]), r = bt(() => new ze(lo), []), { data: s, isLoading: a, isError: c, error: d } = xe(
8595
8604
  ["mappings", n],
8596
8605
  () => o.getMappingsByFrom(n)
8597
- ), [h, m] = Q({}), [y, S] = Q({}), [w, I] = Q(!1), [p, C] = Q(""), [g, R] = Q([]), [E, T] = Q([]), _ = (P) => {
8598
- g.includes(P) ? R(
8599
- g.filter((he) => he !== P)
8606
+ ), [h, g] = Q({}), [m, S] = Q({}), [w, I] = Q(!1), [p, C] = Q(""), [y, R] = Q([]), [E, T] = Q([]), _ = (P) => {
8607
+ y.includes(P) ? R(
8608
+ y.filter((he) => he !== P)
8600
8609
  ) : R((he) => [...he, P]);
8601
8610
  };
8602
8611
  function L(P) {
@@ -8684,7 +8693,7 @@ function al(e) {
8684
8693
  ]
8685
8694
  }
8686
8695
  ),
8687
- checked: g.includes("exactMatch"),
8696
+ checked: y.includes("exactMatch"),
8688
8697
  onChange: () => _("exactMatch")
8689
8698
  }
8690
8699
  ),
@@ -8707,7 +8716,7 @@ function al(e) {
8707
8716
  ]
8708
8717
  }
8709
8718
  ),
8710
- checked: g.includes("closeMatch"),
8719
+ checked: y.includes("closeMatch"),
8711
8720
  onChange: () => _("closeMatch")
8712
8721
  }
8713
8722
  ),
@@ -8730,7 +8739,7 @@ function al(e) {
8730
8739
  ]
8731
8740
  }
8732
8741
  ),
8733
- checked: g.includes("broadMatch"),
8742
+ checked: y.includes("broadMatch"),
8734
8743
  onChange: () => _("broadMatch")
8735
8744
  }
8736
8745
  ),
@@ -8753,7 +8762,7 @@ function al(e) {
8753
8762
  ]
8754
8763
  }
8755
8764
  ),
8756
- checked: g.includes("narrowMatch"),
8765
+ checked: y.includes("narrowMatch"),
8757
8766
  onChange: () => _("narrowMatch")
8758
8767
  }
8759
8768
  ),
@@ -8776,7 +8785,7 @@ function al(e) {
8776
8785
  ]
8777
8786
  }
8778
8787
  ),
8779
- checked: g.includes("relatedMatch"),
8788
+ checked: y.includes("relatedMatch"),
8780
8789
  onChange: () => _("relatedMatch")
8781
8790
  }
8782
8791
  ),
@@ -8799,7 +8808,7 @@ function al(e) {
8799
8808
  ]
8800
8809
  }
8801
8810
  ),
8802
- checked: g.includes("mappingRelation"),
8811
+ checked: y.includes("mappingRelation"),
8803
8812
  onChange: () => _("mappingRelation")
8804
8813
  }
8805
8814
  ),
@@ -8824,7 +8833,7 @@ function al(e) {
8824
8833
  color: "success",
8825
8834
  style: { minWidth: "72px" },
8826
8835
  onClick: () => {
8827
- T(g), I(!1);
8836
+ T(y), I(!1);
8828
8837
  },
8829
8838
  children: "Apply"
8830
8839
  }
@@ -8902,7 +8911,7 @@ function al(e) {
8902
8911
  !1
8903
8912
  ), $e = ((ke = (ce = Oe == null ? void 0 : Oe.elements) == null ? void 0 : ce[0]) == null ? void 0 : ke.label) ?? null;
8904
8913
  if (!$e) return;
8905
- m((gt) => ({ ...gt, [he]: $e }));
8914
+ g((gt) => ({ ...gt, [he]: $e }));
8906
8915
  } catch {
8907
8916
  }
8908
8917
  });
@@ -8910,7 +8919,7 @@ function al(e) {
8910
8919
  s && s.forEach(async (P) => {
8911
8920
  var z, B, Ne, ge, de, fe, ce, ke;
8912
8921
  const he = (Ne = (B = (z = P.from) == null ? void 0 : z.memberSet) == null ? void 0 : B[0]) == null ? void 0 : Ne.uri, te = (fe = (de = (ge = P.fromScheme) == null ? void 0 : ge.notation) == null ? void 0 : de[0]) == null ? void 0 : fe.toLowerCase();
8913
- if (!(!te || !he || y[he]))
8922
+ if (!(!te || !he || m[he]))
8914
8923
  try {
8915
8924
  const Oe = await r.getEntity(
8916
8925
  void 0,
@@ -8924,7 +8933,7 @@ function al(e) {
8924
8933
  } catch {
8925
8934
  }
8926
8935
  });
8927
- }, [s, y, r]);
8936
+ }, [s, m, r]);
8928
8937
  const J = bt(
8929
8938
  () => (s ?? []).map((P) => {
8930
8939
  var z, B, Ne, ge, de, fe, ce, ke, Oe, $e, gt, st;
@@ -8955,7 +8964,7 @@ function al(e) {
8955
8964
  const te = E.length === 0 || E.includes(he.type), z = P === "" || he.targetFromColiConc.toLowerCase().includes(P) || he.creator.toLowerCase().includes(P);
8956
8965
  return te && z;
8957
8966
  });
8958
- }, [J, E, p]), pe = ((ne = (me = (F = (De = s == null ? void 0 : s[0]) == null ? void 0 : De.from) == null ? void 0 : F.memberSet) == null ? void 0 : me[0]) == null ? void 0 : ne.uri) ?? "—", v = ((G = (se = (H = (A = (ve = s == null ? void 0 : s[0]) == null ? void 0 : ve.from) == null ? void 0 : A.memberSet) == null ? void 0 : H[0]) == null ? void 0 : se.notation) == null ? void 0 : G[0]) ?? "—", M = y[pe] ?? v, [oe, Ce] = Q(!1);
8967
+ }, [J, E, p]), pe = ((ne = (me = (F = (De = s == null ? void 0 : s[0]) == null ? void 0 : De.from) == null ? void 0 : F.memberSet) == null ? void 0 : me[0]) == null ? void 0 : ne.uri) ?? "—", v = ((G = (se = (H = (A = (ve = s == null ? void 0 : s[0]) == null ? void 0 : ve.from) == null ? void 0 : A.memberSet) == null ? void 0 : H[0]) == null ? void 0 : se.notation) == null ? void 0 : G[0]) ?? "—", M = m[pe] ?? v, [oe, Ce] = Q(!1);
8959
8968
  return a ? /* @__PURE__ */ i(Qe, { paddingSize: "m", children: /* @__PURE__ */ i(le, { children: "Loading mappings..." }) }) : c ? /* @__PURE__ */ i(Qe, { paddingSize: "m", children: /* @__PURE__ */ u(le, { color: "danger", children: [
8960
8969
  "Failed to load mappings:",
8961
8970
  " ",
@@ -9153,7 +9162,7 @@ function Ul(e) {
9153
9162
  actions: s,
9154
9163
  className: a,
9155
9164
  ...c
9156
- } = e, d = new Cn(t), [h, m] = Q({}), [y, S] = Q(""), w = a || "ts4nfdi-resources-style", I = [
9165
+ } = e, d = new Cn(t), [h, g] = Q({}), [m, S] = Q(""), w = a || "ts4nfdi-resources-style", I = [
9157
9166
  {
9158
9167
  name: "Logo",
9159
9168
  field: "config.logo",
@@ -9254,7 +9263,7 @@ function Ul(e) {
9254
9263
  ], {
9255
9264
  data: p,
9256
9265
  isSuccess: C,
9257
- isError: g,
9266
+ isError: y,
9258
9267
  isLoading: R
9259
9268
  } = xe(
9260
9269
  ["ontologiesData", t, o, r],
@@ -9311,7 +9320,7 @@ function Ul(e) {
9311
9320
  )
9312
9321
  }), Y[O.ontologyId] = /* @__PURE__ */ i(Vo, { listItems: v });
9313
9322
  }
9314
- m(Y);
9323
+ g(Y);
9315
9324
  }, L = [
9316
9325
  ...I,
9317
9326
  {
@@ -9344,10 +9353,10 @@ function Ul(e) {
9344
9353
  }
9345
9354
  }, x = T.filter((O) => {
9346
9355
  var Y;
9347
- if (y === "")
9356
+ if (m === "")
9348
9357
  return !0;
9349
9358
  {
9350
- const ee = y.trim().toLowerCase(), J = (O.ontologyId || "").toLowerCase();
9359
+ const ee = m.trim().toLowerCase(), J = (O.ontologyId || "").toLowerCase();
9351
9360
  return (((Y = O.config) == null ? void 0 : Y.title) || "").toLowerCase().includes(ee) || J.includes(ee);
9352
9361
  }
9353
9362
  });
@@ -9389,7 +9398,7 @@ function Ul(e) {
9389
9398
  ...c
9390
9399
  }
9391
9400
  ),
9392
- g && /* @__PURE__ */ i(
9401
+ y && /* @__PURE__ */ i(
9393
9402
  Wn,
9394
9403
  {
9395
9404
  columns: I,
@@ -9403,7 +9412,7 @@ function Ul(e) {
9403
9412
  ] });
9404
9413
  }
9405
9414
  function cl(e) {
9406
- const { api: t, query: n, selectionChangedEvent: o, ...r } = e, s = new Zn(t), [a, c] = Q(), [d, h] = Q([]), [m, y] = Q(n), S = (p) => {
9415
+ const { api: t, query: n, selectionChangedEvent: o, ...r } = e, s = new Zn(t), [a, c] = Q(), [d, h] = Q([]), [g, m] = Q(n), S = (p) => {
9407
9416
  h(p);
9408
9417
  }, w = (p) => {
9409
9418
  if (!p.trim().toLowerCase())
@@ -9413,11 +9422,11 @@ function cl(e) {
9413
9422
  label: p
9414
9423
  }
9415
9424
  ]);
9416
- }, { isLoading: I } = xe(["suggestions", m], async () => {
9417
- if (m.trim())
9425
+ }, { isLoading: I } = xe(["suggestions", g], async () => {
9426
+ if (g.trim())
9418
9427
  return s.suggest(
9419
9428
  {
9420
- query: m
9429
+ query: g
9421
9430
  },
9422
9431
  void 0,
9423
9432
  void 0,
@@ -9426,11 +9435,11 @@ function cl(e) {
9426
9435
  if (p.response && p.response.docs) {
9427
9436
  const C = /* @__PURE__ */ new Set();
9428
9437
  c(
9429
- p.response.docs.map((g) => ({
9430
- label: g.autosuggest,
9438
+ p.response.docs.map((y) => ({
9439
+ label: y.autosuggest,
9431
9440
  type: { color: "tint1", iconType: "" }
9432
- })).filter((g) => {
9433
- const R = g.label.trim().toLowerCase();
9441
+ })).filter((y) => {
9442
+ const R = y.label.trim().toLowerCase();
9434
9443
  return C.has(R) ? !1 : (C.add(R), !0);
9435
9444
  })
9436
9445
  );
@@ -9459,7 +9468,7 @@ function cl(e) {
9459
9468
  onChange: S,
9460
9469
  onCreateOption: w,
9461
9470
  onSearchChange: (p) => {
9462
- y(p);
9471
+ m(p);
9463
9472
  }
9464
9473
  }
9465
9474
  ) });
@@ -9492,8 +9501,8 @@ function ul(e) {
9492
9501
  iri: c,
9493
9502
  ontologyId: d,
9494
9503
  useLegacy: h,
9495
- onNavigateToOntology: m,
9496
- OnNavigateToSearchResult: y,
9504
+ onNavigateToOntology: g,
9505
+ OnNavigateToSearchResult: m,
9497
9506
  ...S
9498
9507
  } = e, w = new ze(t), { data: I, isError: p, error: C } = xe(
9499
9508
  ["metadata", t, s, a, c, d, h],
@@ -9536,13 +9545,13 @@ function ul(e) {
9536
9545
  definedBy: L
9537
9546
  };
9538
9547
  }
9539
- ), g = o ? o + "ontologies/" + n.ontology_name : void 0, R = n.type != "ontology" ? ns(n.type, !0) : void 0, E = g && R ? g + "/" + R + "?iri=" + encodeURIComponent(n.iri) : g;
9548
+ ), y = o ? o + "ontologies/" + n.ontology_name : void 0, R = n.type != "ontology" ? ns(n.type, !0) : void 0, E = y && R ? y + "/" + R + "?iri=" + encodeURIComponent(n.iri) : y;
9540
9549
  return /* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ u(
9541
9550
  vn,
9542
9551
  {
9543
9552
  textAlign: "left",
9544
- onClick: typeof y == "function" ? (T) => {
9545
- T.preventDefault(), T.stopPropagation(), y(n);
9553
+ onClick: typeof m == "function" ? (T) => {
9554
+ T.preventDefault(), T.stopPropagation(), m(n);
9546
9555
  } : void 0,
9547
9556
  ...S,
9548
9557
  href: E,
@@ -9560,7 +9569,7 @@ function ul(e) {
9560
9569
  entityType: n.type,
9561
9570
  ontologyId: n.ontology_name,
9562
9571
  className: `${r}-breadcrumb`,
9563
- onNavigateToOntology: m,
9572
+ onNavigateToOntology: g,
9564
9573
  useLegacy: h,
9565
9574
  parameter: s
9566
9575
  }
@@ -9578,7 +9587,7 @@ function ul(e) {
9578
9587
  ontolist: I.ontoList,
9579
9588
  entityType: n.type || "class",
9580
9589
  className: `${r}-entity-onto-list`,
9581
- onNavigateToOntology: m
9590
+ onNavigateToOntology: g
9582
9591
  }
9583
9592
  ),
9584
9593
  /* @__PURE__ */ i(
@@ -9589,7 +9598,7 @@ function ul(e) {
9589
9598
  label: n.label || "",
9590
9599
  entityType: n.type || "class",
9591
9600
  className: `${r}-entity-defined-by`,
9592
- onNavigateToOntology: m
9601
+ onNavigateToOntology: g
9593
9602
  }
9594
9603
  )
9595
9604
  ] }),
@@ -9622,10 +9631,10 @@ function jl(e) {
9622
9631
  preselected: c,
9623
9632
  onNavigateToOntology: d,
9624
9633
  OnNavigateToSearchResult: h,
9625
- useLegacy: m = !0,
9626
- className: y,
9634
+ useLegacy: g = !0,
9635
+ className: m,
9627
9636
  ...S
9628
- } = e, w = new Zn(t), I = y || "ts4nfdi-searchResult-style", [p, C] = Q(n), [g, R] = Q(0), [E, T] = Q(0), [_, L] = Q(r), [D, x] = Q(0), [O, Y] = Q(!1), [ee, J] = Q(!1), [ie, ue] = Q([]), [pe, v] = Q([]), M = e.query || "*";
9637
+ } = e, w = new Zn(t), I = m || "ts4nfdi-searchResult-style", [p, C] = Q(n), [y, R] = Q(0), [E, T] = Q(0), [_, L] = Q(r), [D, x] = Q(0), [O, Y] = Q(!1), [ee, J] = Q(!1), [ie, ue] = Q([]), [pe, v] = Q([]), M = e.query || "*";
9629
9638
  Fe(() => {
9630
9639
  C(n);
9631
9640
  }, [n]), Fe(() => {
@@ -9690,7 +9699,7 @@ function jl(e) {
9690
9699
  p,
9691
9700
  O,
9692
9701
  ee,
9693
- g,
9702
+ y,
9694
9703
  _,
9695
9704
  ie.filter(je).map((z) => z.key),
9696
9705
  pe.filter(je).map((z) => z.key),
@@ -9706,7 +9715,7 @@ function jl(e) {
9706
9715
  groupByIri: !0
9707
9716
  },
9708
9717
  {
9709
- page: g.toString(),
9718
+ page: y.toString(),
9710
9719
  size: _.toString()
9711
9720
  },
9712
9721
  void 0,
@@ -9720,7 +9729,7 @@ function jl(e) {
9720
9729
  B.facet_counts.facet_fields.type,
9721
9730
  ue,
9722
9731
  (ge) => `${ge[0].toUpperCase()}${ge.slice(1)}`
9723
- ) : ue([]), m)
9732
+ ) : ue([]), g)
9724
9733
  B.facet_counts.facet_fields.ontology_name ? ye(
9725
9734
  pe,
9726
9735
  B.facet_counts.facet_fields.ontology_name,
@@ -9751,7 +9760,7 @@ function jl(e) {
9751
9760
  const Ne = Math.ceil(
9752
9761
  B.response.numFound / _
9753
9762
  );
9754
- return T(Ne), g >= Ne && R(0), B.response.docs;
9763
+ return T(Ne), y >= Ne && R(0), B.response.docs;
9755
9764
  } else
9756
9765
  throw new Error("Unexpected API response");
9757
9766
  }),
@@ -9762,7 +9771,7 @@ function jl(e) {
9762
9771
  );
9763
9772
  function H(z) {
9764
9773
  R(
9765
- Math.floor((g * _ + 1) / z)
9774
+ Math.floor((y * _ + 1) / z)
9766
9775
  ), L(z);
9767
9776
  }
9768
9777
  function se() {
@@ -9883,13 +9892,13 @@ function jl(e) {
9883
9892
  ) })
9884
9893
  ] }),
9885
9894
  /* @__PURE__ */ i(Ie, { size: "m" }),
9886
- /* @__PURE__ */ i(le, { size: "xs", style: { padding: "0 8px" }, children: Number.isFinite(g) && Number.isFinite(_) && Number.isFinite(D) ? /* @__PURE__ */ u(b, { children: [
9895
+ /* @__PURE__ */ i(le, { size: "xs", style: { padding: "0 8px" }, children: Number.isFinite(y) && Number.isFinite(_) && Number.isFinite(D) ? /* @__PURE__ */ u(b, { children: [
9887
9896
  "Showing",
9888
9897
  " ",
9889
- Math.min(g * _ + 1, D),
9898
+ Math.min(y * _ + 1, D),
9890
9899
  " to",
9891
9900
  " ",
9892
- Math.min((g + 1) * _, D),
9901
+ Math.min((y + 1) * _, D),
9893
9902
  " of",
9894
9903
  " ",
9895
9904
  D,
@@ -9903,7 +9912,7 @@ function jl(e) {
9903
9912
  {
9904
9913
  "aria-label": "Search result pagination",
9905
9914
  pageCount: E,
9906
- activePage: g,
9915
+ activePage: y,
9907
9916
  onChangePage: R,
9908
9917
  itemsPerPage: _,
9909
9918
  onChangeItemsPerPage: H,
@@ -9949,7 +9958,7 @@ function jl(e) {
9949
9958
  entityType: z.type,
9950
9959
  iri: z.iri,
9951
9960
  ontologyId: z.ontology_name,
9952
- useLegacy: m,
9961
+ useLegacy: g,
9953
9962
  onNavigateToOntology: d,
9954
9963
  OnNavigateToSearchResult: h
9955
9964
  }