@dracor/react 1.0.0-beta.1 → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,95 +1,77 @@
1
- import _1, { useState as M, useEffect as q, Fragment as c1, useRef as p1 } from "react";
2
- import { Helmet as i1 } from "react-helmet-async";
3
- import j1 from "swagger-ui-react";
4
- import b1 from "react-markdown";
5
- import { FontAwesomeIcon as A } from "@fortawesome/react-fontawesome";
6
- import { faClipboard as w1, faLanguage as E1, faCaretDown as M1, faPenFancy as N1, faTheaterMasks as y1, faBook as k1 } from "@fortawesome/free-solid-svg-icons";
7
- import { CopyToClipboard as Z1 } from "react-copy-to-clipboard";
8
- import { Menu as o1, MenuButton as h1, Transition as d1, MenuItems as v1, MenuItem as m1 } from "@headlessui/react";
9
- import { Link as I, useLocation as x1 } from "@tanstack/react-router";
10
- import { faGithub as A1 } from "@fortawesome/free-brands-svg-icons";
11
- import { useReactTable as T1, getFilteredRowModel as R1, getSortedRowModel as C1, getCoreRowModel as S1, flexRender as t1 } from "@tanstack/react-table";
12
- import P1 from "CETEIcean";
13
- var V = { exports: {} }, z = {};
14
- /**
15
- * @license React
16
- * react-jsx-runtime.production.js
17
- *
18
- * Copyright (c) Meta Platforms, Inc. and affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
- var r1;
24
- function H1() {
25
- if (r1) return z;
26
- r1 = 1;
27
- var s = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
28
- function l(t, c, n) {
29
- var o = null;
30
- if (n !== void 0 && (o = "" + n), c.key !== void 0 && (o = "" + c.key), "key" in c) {
1
+ import u1, { useState as j, useEffect as P, Fragment as n1, useRef as _1 } from "react";
2
+ import { Helmet as c1 } from "react-helmet-async";
3
+ import g1 from "swagger-ui-react";
4
+ import p1 from "react-markdown";
5
+ import { FontAwesomeIcon as M } from "@fortawesome/react-fontawesome";
6
+ import { faClipboard as j1, faLanguage as b1, faCaretDown as w1, faPenFancy as E1, faTheaterMasks as M1, faBook as N1 } from "@fortawesome/free-solid-svg-icons";
7
+ import { CopyToClipboard as y1 } from "react-copy-to-clipboard";
8
+ import { Menu as i1, MenuButton as o1, Transition as h1, MenuItems as d1, MenuItem as v1 } from "@headlessui/react";
9
+ import { Link as q, useLocation as k1 } from "@tanstack/react-router";
10
+ import { faGithub as Z1 } from "@fortawesome/free-brands-svg-icons";
11
+ import { useReactTable as T1, getFilteredRowModel as A1, getSortedRowModel as C1, getCoreRowModel as R1, flexRender as a1 } from "@tanstack/react-table";
12
+ import S1 from "CETEIcean";
13
+ var L = { exports: {} }, C = {};
14
+ var s1;
15
+ function P1() {
16
+ if (s1) return C;
17
+ s1 = 1;
18
+ var s = /* @__PURE__ */ Symbol.for("react.transitional.element"), l = /* @__PURE__ */ Symbol.for("react.fragment");
19
+ function r(t, c, n) {
20
+ var h = null;
21
+ if (n !== void 0 && (h = "" + n), c.key !== void 0 && (h = "" + c.key), "key" in c) {
31
22
  n = {};
32
- for (var m in c)
33
- m !== "key" && (n[m] = c[m]);
23
+ for (var v in c)
24
+ v !== "key" && (n[v] = c[v]);
34
25
  } else n = c;
35
26
  return c = n.ref, {
36
27
  $$typeof: s,
37
28
  type: t,
38
- key: o,
29
+ key: h,
39
30
  ref: c !== void 0 ? c : null,
40
31
  props: n
41
32
  };
42
33
  }
43
- return z.Fragment = r, z.jsx = l, z.jsxs = l, z;
34
+ return C.Fragment = l, C.jsx = r, C.jsxs = r, C;
44
35
  }
45
- var O = {};
46
- /**
47
- * @license React
48
- * react-jsx-runtime.development.js
49
- *
50
- * Copyright (c) Meta Platforms, Inc. and affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */
55
- var l1;
56
- function z1() {
57
- return l1 || (l1 = 1, process.env.NODE_ENV !== "production" && function() {
36
+ var R = {};
37
+ var t1;
38
+ function H1() {
39
+ return t1 || (t1 = 1, process.env.NODE_ENV !== "production" && (function() {
58
40
  function s(a) {
59
41
  if (a == null) return null;
60
42
  if (typeof a == "function")
61
- return a.$$typeof === R ? null : a.displayName || a.name || null;
43
+ return a.$$typeof === A ? null : a.displayName || a.name || null;
62
44
  if (typeof a == "string") return a;
63
45
  switch (a) {
64
- case P:
46
+ case Z:
65
47
  return "Fragment";
66
- case B:
48
+ case w:
67
49
  return "Profiler";
68
- case D:
50
+ case F:
69
51
  return "StrictMode";
70
- case Y:
52
+ case T:
71
53
  return "Suspense";
72
- case W:
54
+ case H:
73
55
  return "SuspenseList";
74
- case T:
56
+ case z:
75
57
  return "Activity";
76
58
  }
77
59
  if (typeof a == "object")
78
60
  switch (typeof a.tag == "number" && console.error(
79
61
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
80
62
  ), a.$$typeof) {
81
- case b:
63
+ case I:
82
64
  return "Portal";
83
- case N:
84
- return (a.displayName || "Context") + ".Provider";
85
- case L:
65
+ case D:
66
+ return a.displayName || "Context";
67
+ case U:
86
68
  return (a._context.displayName || "Context") + ".Consumer";
87
- case X:
69
+ case B:
88
70
  var i = a.render;
89
71
  return a = a.displayName, a || (a = i.displayName || i.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
90
- case y:
72
+ case $:
91
73
  return i = a.displayName || null, i !== null ? i : s(a.type) || "Memo";
92
- case k:
74
+ case N:
93
75
  i = a._payload, a = a._init;
94
76
  try {
95
77
  return s(a(i));
@@ -98,29 +80,29 @@ function z1() {
98
80
  }
99
81
  return null;
100
82
  }
101
- function r(a) {
83
+ function l(a) {
102
84
  return "" + a;
103
85
  }
104
- function l(a) {
86
+ function r(a) {
105
87
  try {
106
- r(a);
88
+ l(a);
107
89
  var i = !1;
108
90
  } catch {
109
91
  i = !0;
110
92
  }
111
93
  if (i) {
112
94
  i = console;
113
- var v = i.error, g = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
114
- return v.call(
95
+ var x = i.error, f = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
96
+ return x.call(
115
97
  i,
116
98
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
117
- g
118
- ), r(a);
99
+ f
100
+ ), l(a);
119
101
  }
120
102
  }
121
103
  function t(a) {
122
- if (a === P) return "<>";
123
- if (typeof a == "object" && a !== null && a.$$typeof === k)
104
+ if (a === Z) return "<>";
105
+ if (typeof a == "object" && a !== null && a.$$typeof === N)
124
106
  return "<...>";
125
107
  try {
126
108
  var i = s(a);
@@ -130,47 +112,48 @@ function z1() {
130
112
  }
131
113
  }
132
114
  function c() {
133
- var a = w.A;
115
+ var a = E.A;
134
116
  return a === null ? null : a.getOwner();
135
117
  }
136
118
  function n() {
137
119
  return Error("react-stack-top-frame");
138
120
  }
139
- function o(a) {
140
- if (C.call(a, "key")) {
121
+ function h(a) {
122
+ if (y.call(a, "key")) {
141
123
  var i = Object.getOwnPropertyDescriptor(a, "key").get;
142
124
  if (i && i.isReactWarning) return !1;
143
125
  }
144
126
  return a.key !== void 0;
145
127
  }
146
- function m(a, i) {
147
- function v() {
148
- Q || (Q = !0, console.error(
128
+ function v(a, i) {
129
+ function x() {
130
+ J || (J = !0, console.error(
149
131
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
150
132
  i
151
133
  ));
152
134
  }
153
- v.isReactWarning = !0, Object.defineProperty(a, "key", {
154
- get: v,
135
+ x.isReactWarning = !0, Object.defineProperty(a, "key", {
136
+ get: x,
155
137
  configurable: !0
156
138
  });
157
139
  }
158
- function f() {
140
+ function _() {
159
141
  var a = s(this.type);
160
- return K[a] || (K[a] = !0, console.error(
142
+ return X[a] || (X[a] = !0, console.error(
161
143
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
162
144
  )), a = this.props.ref, a !== void 0 ? a : null;
163
145
  }
164
- function h(a, i, v, g, E, j, G, U) {
165
- return v = j.ref, a = {
166
- $$typeof: x,
146
+ function o(a, i, x, f, O, Y) {
147
+ var u = x.ref;
148
+ return a = {
149
+ $$typeof: b,
167
150
  type: a,
168
151
  key: i,
169
- props: j,
170
- _owner: E
171
- }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(a, "ref", {
152
+ props: x,
153
+ _owner: f
154
+ }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(a, "ref", {
172
155
  enumerable: !1,
173
- get: f
156
+ get: _
174
157
  }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
175
158
  configurable: !1,
176
159
  enumerable: !1,
@@ -185,118 +168,115 @@ function z1() {
185
168
  configurable: !1,
186
169
  enumerable: !1,
187
170
  writable: !0,
188
- value: G
171
+ value: O
189
172
  }), Object.defineProperty(a, "_debugTask", {
190
173
  configurable: !1,
191
174
  enumerable: !1,
192
175
  writable: !0,
193
- value: U
176
+ value: Y
194
177
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
195
178
  }
196
- function d(a, i, v, g, E, j, G, U) {
197
- var _ = i.children;
198
- if (_ !== void 0)
199
- if (g)
200
- if (H(_)) {
201
- for (g = 0; g < _.length; g++)
202
- u(_[g]);
203
- Object.freeze && Object.freeze(_);
179
+ function d(a, i, x, f, O, Y) {
180
+ var u = i.children;
181
+ if (u !== void 0)
182
+ if (f)
183
+ if (x1(u)) {
184
+ for (f = 0; f < u.length; f++)
185
+ m(u[f]);
186
+ Object.freeze && Object.freeze(u);
204
187
  } else
205
188
  console.error(
206
189
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
207
190
  );
208
- else u(_);
209
- if (C.call(i, "key")) {
210
- _ = s(a);
211
- var S = Object.keys(i).filter(function(g1) {
212
- return g1 !== "key";
191
+ else m(u);
192
+ if (y.call(i, "key")) {
193
+ u = s(a);
194
+ var k = Object.keys(i).filter(function(f1) {
195
+ return f1 !== "key";
213
196
  });
214
- g = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", s1[_ + g] || (S = 0 < S.length ? "{" + S.join(": ..., ") + ": ...}" : "{}", console.error(
197
+ f = 0 < k.length ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}", e1[u + f] || (k = 0 < k.length ? "{" + k.join(": ..., ") + ": ...}" : "{}", console.error(
215
198
  `A props object containing a "key" prop is being spread into JSX:
216
199
  let props = %s;
217
200
  <%s {...props} />
218
201
  React keys must be passed directly to JSX without using spread:
219
202
  let props = %s;
220
203
  <%s key={someKey} {...props} />`,
221
- g,
222
- _,
223
- S,
224
- _
225
- ), s1[_ + g] = !0);
204
+ f,
205
+ u,
206
+ k,
207
+ u
208
+ ), e1[u + f] = !0);
226
209
  }
227
- if (_ = null, v !== void 0 && (l(v), _ = "" + v), o(i) && (l(i.key), _ = "" + i.key), "key" in i) {
228
- v = {};
229
- for (var J in i)
230
- J !== "key" && (v[J] = i[J]);
231
- } else v = i;
232
- return _ && m(
233
- v,
210
+ if (u = null, x !== void 0 && (r(x), u = "" + x), h(i) && (r(i.key), u = "" + i.key), "key" in i) {
211
+ x = {};
212
+ for (var G in i)
213
+ G !== "key" && (x[G] = i[G]);
214
+ } else x = i;
215
+ return u && v(
216
+ x,
234
217
  typeof a == "function" ? a.displayName || a.name || "Unknown" : a
235
- ), h(
218
+ ), o(
236
219
  a,
237
- _,
238
- j,
239
- E,
220
+ u,
221
+ x,
240
222
  c(),
241
- v,
242
- G,
243
- U
223
+ O,
224
+ Y
244
225
  );
245
226
  }
246
- function u(a) {
247
- typeof a == "object" && a !== null && a.$$typeof === x && a._store && (a._store.validated = 1);
227
+ function m(a) {
228
+ p(a) ? a._store && (a._store.validated = 1) : typeof a == "object" && a !== null && a.$$typeof === N && (a._payload.status === "fulfilled" ? p(a._payload.value) && a._payload.value._store && (a._payload.value._store.validated = 1) : a._store && (a._store.validated = 1));
229
+ }
230
+ function p(a) {
231
+ return typeof a == "object" && a !== null && a.$$typeof === b;
248
232
  }
249
- var p = _1, x = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), N = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), w = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, H = Array.isArray, Z = console.createTask ? console.createTask : function() {
233
+ var g = u1, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), I = /* @__PURE__ */ Symbol.for("react.portal"), Z = /* @__PURE__ */ Symbol.for("react.fragment"), F = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), U = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), B = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), N = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), A = /* @__PURE__ */ Symbol.for("react.client.reference"), E = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, x1 = Array.isArray, W = console.createTask ? console.createTask : function() {
250
234
  return null;
251
235
  };
252
- p = {
253
- "react-stack-bottom-frame": function(a) {
236
+ g = {
237
+ react_stack_bottom_frame: function(a) {
254
238
  return a();
255
239
  }
256
240
  };
257
- var Q, K = {}, e1 = p["react-stack-bottom-frame"].bind(
258
- p,
241
+ var J, X = {}, Q = g.react_stack_bottom_frame.bind(
242
+ g,
259
243
  n
260
- )(), a1 = Z(t(n)), s1 = {};
261
- O.Fragment = P, O.jsx = function(a, i, v, g, E) {
262
- var j = 1e4 > w.recentlyCreatedOwnerStacks++;
244
+ )(), K = W(t(n)), e1 = {};
245
+ R.Fragment = Z, R.jsx = function(a, i, x) {
246
+ var f = 1e4 > E.recentlyCreatedOwnerStacks++;
263
247
  return d(
264
248
  a,
265
249
  i,
266
- v,
250
+ x,
267
251
  !1,
268
- g,
269
- E,
270
- j ? Error("react-stack-top-frame") : e1,
271
- j ? Z(t(a)) : a1
252
+ f ? Error("react-stack-top-frame") : Q,
253
+ f ? W(t(a)) : K
272
254
  );
273
- }, O.jsxs = function(a, i, v, g, E) {
274
- var j = 1e4 > w.recentlyCreatedOwnerStacks++;
255
+ }, R.jsxs = function(a, i, x) {
256
+ var f = 1e4 > E.recentlyCreatedOwnerStacks++;
275
257
  return d(
276
258
  a,
277
259
  i,
278
- v,
260
+ x,
279
261
  !0,
280
- g,
281
- E,
282
- j ? Error("react-stack-top-frame") : e1,
283
- j ? Z(t(a)) : a1
262
+ f ? Error("react-stack-top-frame") : Q,
263
+ f ? W(t(a)) : K
284
264
  );
285
265
  };
286
- }()), O;
266
+ })()), R;
287
267
  }
288
- var n1;
289
- function O1() {
290
- return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? V.exports = H1() : V.exports = z1()), V.exports;
268
+ var r1;
269
+ function $1() {
270
+ return r1 || (r1 = 1, process.env.NODE_ENV === "production" ? L.exports = P1() : L.exports = H1()), L.exports;
291
271
  }
292
- var e = O1();
293
- function _0({ url: s, title: r }) {
272
+ var e = $1();
273
+ function u0({ url: s, title: l }) {
294
274
  return /* @__PURE__ */ e.jsxs("div", { children: [
295
- r !== void 0 && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: r }) }),
296
- /* @__PURE__ */ e.jsx(j1, { url: s, deepLinking: !0 })
275
+ l !== void 0 && /* @__PURE__ */ e.jsx(c1, { children: /* @__PURE__ */ e.jsx("title", { children: l }) }),
276
+ /* @__PURE__ */ e.jsx(g1, { url: s, deepLinking: !0 })
297
277
  ] });
298
278
  }
299
- const $1 = [
279
+ const z1 = [
300
280
  {
301
281
  schema: "wikidata",
302
282
  label: "Wikidata",
@@ -327,73 +307,72 @@ const $1 = [
327
307
  url: "https://d-nb.info/gnd"
328
308
  }
329
309
  ];
330
- function f1({ showLabel: s, children: r, className: l }) {
310
+ function m1({ showLabel: s, children: l, className: r }) {
331
311
  let t = "inline-flex bg-white bg-no-repeat bg-[5px] rounded-sm px-1.5 gap-1 align-text-bottom", c;
332
- const n = $1.find(({ pattern: h, url: d, schema: u }) => {
312
+ const n = z1.find(({ pattern: o, url: d, schema: m }) => {
333
313
  const p = new RegExp(
334
- `^(?:${h || d}/|${u}:)([a-z\\d]+)$`,
314
+ `^(?:${o || d}/|${m}:)([a-z\\d]+)$`,
335
315
  "i"
336
- ), x = r.match(p);
337
- return x ? (c = x[1], !0) : !1;
316
+ ), g = l.match(p);
317
+ return g ? (c = g[1], !0) : !1;
338
318
  });
339
319
  if (!n)
340
- return /* @__PURE__ */ e.jsx("span", { className: t, children: r });
341
- const { url: o, label: m, classes: f = "" } = n;
342
- return t += ` ${f}`, /* @__PURE__ */ e.jsxs("span", { className: t, children: [
343
- s && `${m}: `,
344
- /* @__PURE__ */ e.jsx("a", { className: l, href: `${o}/${c}`, title: m, children: c })
320
+ return /* @__PURE__ */ e.jsx("span", { className: t, children: l });
321
+ const { url: h, label: v, classes: _ = "" } = n;
322
+ return t += ` ${_}`, /* @__PURE__ */ e.jsxs("span", { className: t, children: [
323
+ s && `${v}: `,
324
+ /* @__PURE__ */ e.jsx("a", { className: r, href: `${h}/${c}`, title: v, children: c })
345
325
  ] });
346
326
  }
347
- function $(s, r = 0) {
327
+ function S(s, l = 0) {
348
328
  if (s === null)
349
329
  return "";
350
- const l = parseInt(s, 10);
351
- return l < 0 ? `${l * -1} BCE` : l < r ? `${l} CE` : String(l);
330
+ const r = parseInt(s, 10);
331
+ return r < 0 ? `${r * -1} BCE` : r < l ? `${r} CE` : String(r);
352
332
  }
353
- function F(s, r = "en-GB") {
354
- const l = `${s}`;
355
- if (l.match("^-[0-9]{4}/-[0-9]{4}$")) {
356
- const t = l.split("/").map((c) => parseInt(c, 10) * -1);
333
+ function V(s, l = "en-GB") {
334
+ const r = `${s}`;
335
+ if (r.match("^-[0-9]{4}/-[0-9]{4}$")) {
336
+ const t = r.split("/").map((c) => parseInt(c, 10) * -1);
357
337
  return `${t[0]}-${t[1]} BCE`;
358
338
  }
359
- if (l.match("^-?[0-9]{4}/-?[0-9]{4}$")) {
360
- const t = l.split("/");
361
- return `${$(t[0])}-${$(t[1], 1e3)}`;
339
+ if (r.match("^-?[0-9]{4}/-?[0-9]{4}$")) {
340
+ const t = r.split("/");
341
+ return `${S(t[0])}-${S(t[1], 1e3)}`;
362
342
  }
363
- if (l.match("^[0-9]{4}-[0-9]{2}$"))
364
- return new Date(l).toLocaleDateString(r, { month: "long", year: "numeric" });
365
- if (l.match("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"))
366
- return new Date(l).toLocaleDateString(r, {
343
+ if (r.match("^[0-9]{4}-[0-9]{2}$"))
344
+ return new Date(r).toLocaleDateString(l, { month: "long", year: "numeric" });
345
+ if (r.match("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"))
346
+ return new Date(r).toLocaleDateString(l, {
367
347
  day: "numeric",
368
348
  month: "long",
369
349
  year: "numeric"
370
350
  });
371
- if (l.match("^>-?[0-9]{4}")) {
372
- const t = l.substring(1);
373
- return `after ${$(t, 1e3)}`;
351
+ if (r.match("^>-?[0-9]{4}")) {
352
+ const t = r.substring(1);
353
+ return `after ${S(t, 1e3)}`;
374
354
  }
375
- if (l.match("^<-?[0-9]{4}")) {
376
- const t = l.substring(1);
377
- return `before ${$(t, 1e3)}`;
355
+ if (r.match("^<-?[0-9]{4}")) {
356
+ const t = r.substring(1);
357
+ return `before ${S(t, 1e3)}`;
378
358
  }
379
- return l.match("^-?[0-9]{4}") ? $(l, 1e3) : l;
359
+ return r.match("^-?[0-9]{4}") ? S(r, 1e3) : r;
380
360
  }
381
- const q1 = "https://query.wikidata.org/sparql", L1 = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='102' height='137' viewBox='-305 -516 610 820'%3E%3Ctitle%3EWikimedia Commons Logo%3C/title%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle r='298'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r='100' fill='%23900'/%3E%3Cg fill='%23069'%3E%3Cg id='arrow' clip-path='url(%23c)'%3E%3Cpath d='m-11 180v118h22v-118'/%3E%3Cpath d='m-43 185l43-75 43 75'/%3E%3C/g%3E%3Cg id='arrows3'%3E%3Cuse xlink:href='%23arrow' transform='rotate(45)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(90)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(135)'/%3E%3C/g%3E%3Cuse xlink:href='%23arrows3' transform='scale(-1 1)'/%3E%3Cpath id='blue_path' transform='rotate(-45)' stroke='%23069' stroke-width='84' fill='none' d='M 0,-256 A 256 256 0 1 0 256,0 C 256,-100 155,-150 250,-275'/%3E%3Cpath id='arrow_top' d='m-23-515s-36 135-80 185 116-62 170-5-90-180-90-180z'/%3E%3C/g%3E%3C/svg%3E";
382
- function p0({
361
+ const O1 = "https://query.wikidata.org/sparql", L1 = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='102' height='137' viewBox='-305 -516 610 820'%3E%3Ctitle%3EWikimedia Commons Logo%3C/title%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle r='298'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r='100' fill='%23900'/%3E%3Cg fill='%23069'%3E%3Cg id='arrow' clip-path='url(%23c)'%3E%3Cpath d='m-11 180v118h22v-118'/%3E%3Cpath d='m-43 185l43-75 43 75'/%3E%3C/g%3E%3Cg id='arrows3'%3E%3Cuse xlink:href='%23arrow' transform='rotate(45)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(90)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(135)'/%3E%3C/g%3E%3Cuse xlink:href='%23arrows3' transform='scale(-1 1)'/%3E%3Cpath id='blue_path' transform='rotate(-45)' stroke='%23069' stroke-width='84' fill='none' d='M 0,-256 A 256 256 0 1 0 256,0 C 256,-100 155,-150 250,-275'/%3E%3Cpath id='arrow_top' d='m-23-515s-36 135-80 185 116-62 170-5-90-180-90-180z'/%3E%3C/g%3E%3C/svg%3E";
362
+ function _0({
383
363
  wikidataId: s,
384
- name: r,
385
- birthLabel: l = "b.",
364
+ name: l,
365
+ birthLabel: r = "b.",
386
366
  deathLabel: t = "d.",
387
367
  unknownLabel: c = "unknown"
388
368
  }) {
389
- const [n, o] = M(null);
390
- q(() => {
369
+ const [n, h] = j(null);
370
+ P(() => {
391
371
  function p(b) {
392
- return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c : F(b.replace(/^(-?\d{4}).*$/, "$1"));
372
+ return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c : V(b.replace(/^(-?\d{4}).*$/, "$1"));
393
373
  }
394
- async function x(b) {
395
- var L;
396
- const P = `
374
+ async function g(b) {
375
+ const I = `
397
376
  SELECT ?author ?authorLabel ?birthDate ?deathDate ?gender ?genderLabel
398
377
  ?birthPlace ?birthPlaceLabel ?birthCoord
399
378
  ?deathPlace ?deathPlaceLabel ?deathCoord
@@ -410,36 +389,36 @@ WHERE {
410
389
  OPTIONAL { ?author wdt:P227 ?gnd. }
411
390
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
412
391
  }
413
- `, D = `${q1}?query=${encodeURIComponent(P)}`, B = {
392
+ `, Z = `${O1}?query=${encodeURIComponent(I)}`, F = {
414
393
  method: "GET",
415
394
  headers: {
416
395
  Accept: "application/json"
417
396
  }
418
397
  };
419
398
  try {
420
- const N = await fetch(D, B);
421
- if (N.status !== 200) {
422
- console.log(N.status);
399
+ const w = await fetch(Z, F);
400
+ if (w.status !== 200) {
401
+ console.log(w.status);
423
402
  return;
424
403
  }
425
- const Y = ((L = (await N.json()).results) == null ? void 0 : L.bindings) || [], {
426
- authorLabel: W,
427
- img: y,
428
- birthDate: k,
429
- birthPlaceLabel: T,
430
- deathDate: R,
431
- deathPlaceLabel: w
432
- } = Y[0], C = [], H = [];
433
- k != null && k.value && C.push(p(k.value)), T != null && T.value && C.push(T.value), R != null && R.value && H.push(p(R.value)), w != null && w.value && H.push(w.value);
434
- const Z = { name: W.value, birth: C, death: H };
435
- y != null && y.value && (Z.imageUrl = y.value.replace(/^http:/, "https:"), Z.commonsPage = y.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), o(Z);
436
- } catch (N) {
437
- console.log(N);
404
+ const D = (await w.json()).results?.bindings || [], {
405
+ authorLabel: B,
406
+ img: T,
407
+ birthDate: H,
408
+ birthPlaceLabel: $,
409
+ deathDate: N,
410
+ deathPlaceLabel: z
411
+ } = D[0], A = [], E = [];
412
+ H?.value && A.push(p(H.value)), $?.value && A.push($.value), N?.value && E.push(p(N.value)), z?.value && E.push(z.value);
413
+ const y = { name: B.value, birth: A, death: E };
414
+ T?.value && (y.imageUrl = T.value.replace(/^http:/, "https:"), y.commonsPage = T.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), h(y);
415
+ } catch (w) {
416
+ console.log(w);
438
417
  }
439
418
  }
440
- s && x(s);
419
+ s && g(s);
441
420
  }, [s, c]);
442
- const { name: m, imageUrl: f, commonsPage: h, birth: d = [], death: u = [] } = n || {};
421
+ const { name: v, imageUrl: _, commonsPage: o, birth: d = [], death: m = [] } = n || {};
443
422
  return /* @__PURE__ */ e.jsxs("div", { className: "flex whitespace-nowrap", children: [
444
423
  /* @__PURE__ */ e.jsxs(
445
424
  "div",
@@ -447,19 +426,19 @@ WHERE {
447
426
  className: "relative w-[5em] h-[6em] overflow-hidden bg-(image:--img-author) bg-no-repeat bg-center bg-primary rounded-md border-2 border-primary mr-4",
448
427
  style: { backgroundSize: "70%" },
449
428
  children: [
450
- f && /* @__PURE__ */ e.jsx(
429
+ _ && /* @__PURE__ */ e.jsx(
451
430
  "img",
452
431
  {
453
- src: f,
454
- title: m,
432
+ src: _,
433
+ title: v,
455
434
  alt: "",
456
435
  className: "object-cover object-top w-full h-full"
457
436
  }
458
437
  ),
459
- h && /* @__PURE__ */ e.jsx(
438
+ o && /* @__PURE__ */ e.jsx(
460
439
  "a",
461
440
  {
462
- href: h,
441
+ href: o,
463
442
  title: "© Wikimedia Commons",
464
443
  className: "absolute flex inset-0 z-10 bg-white/0 hover:bg-white/60",
465
444
  children: /* @__PURE__ */ e.jsx(
@@ -477,90 +456,90 @@ WHERE {
477
456
  }
478
457
  ),
479
458
  /* @__PURE__ */ e.jsxs("span", { children: [
480
- /* @__PURE__ */ e.jsx("div", { className: "text-lg", children: r || m }),
481
- s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(f1, { children: `wikidata:${s}` }) }),
459
+ /* @__PURE__ */ e.jsx("div", { className: "text-lg", children: l || v }),
460
+ s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(m1, { children: `wikidata:${s}` }) }),
482
461
  d.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
483
- l,
462
+ r,
484
463
  " ",
485
464
  d.join(", ")
486
465
  ] }),
487
- u.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
466
+ m.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
488
467
  t,
489
468
  " ",
490
- u.join(", ")
469
+ m.join(", ")
491
470
  ] })
492
471
  ] })
493
472
  ] });
494
473
  }
495
- const j0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((r, l) => /* @__PURE__ */ e.jsxs("span", { children: [
496
- l > 0 && /* @__PURE__ */ e.jsx("br", {}),
497
- r.name,
498
- r.pseudonym && /* @__PURE__ */ e.jsxs("i", { children: [
474
+ const g0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((l, r) => /* @__PURE__ */ e.jsxs("span", { children: [
475
+ r > 0 && /* @__PURE__ */ e.jsx("br", {}),
476
+ l.name,
477
+ l.pseudonym && /* @__PURE__ */ e.jsxs("i", { children: [
499
478
  " (",
500
- r.pseudonym,
479
+ l.pseudonym,
501
480
  ")"
502
481
  ] }),
503
- r.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
482
+ l.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
504
483
  " ",
505
- /* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(f1, { children: r.ref }) })
484
+ /* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(m1, { children: l.ref }) })
506
485
  ] })
507
- ] }, `${l}-${r.name}`)) });
486
+ ] }, `${r}-${l.name}`)) });
508
487
  function V1({
509
488
  value: s,
510
- onChange: r,
511
- debounce: l = 500,
489
+ onChange: l,
490
+ debounce: r = 500,
512
491
  ...t
513
492
  }) {
514
- const [c, n] = M(s);
515
- return q(() => {
493
+ const [c, n] = j(s);
494
+ return P(() => {
516
495
  n(s);
517
- }, [s]), q(() => {
518
- const o = setTimeout(() => {
519
- r(c);
520
- }, l);
521
- return () => clearTimeout(o);
496
+ }, [s]), P(() => {
497
+ const h = setTimeout(() => {
498
+ l(c);
499
+ }, r);
500
+ return () => clearTimeout(h);
522
501
  }, [c]), /* @__PURE__ */ e.jsx(
523
502
  "input",
524
503
  {
525
504
  ...t,
526
505
  value: c,
527
- onChange: (o) => n(o.target.value)
506
+ onChange: (h) => n(h.target.value)
528
507
  }
529
508
  );
530
509
  }
531
- function b0({ url: s, match: r }) {
532
- const [l, t] = M(""), [c, n] = M("");
533
- return q(() => {
534
- async function o(f) {
510
+ function p0({ url: s, match: l }) {
511
+ const [r, t] = j(""), [c, n] = j("");
512
+ return P(() => {
513
+ async function h(_) {
535
514
  try {
536
- const h = await fetch(f, { method: "GET" });
537
- if (h.status == 404) {
515
+ const o = await fetch(_, { method: "GET" });
516
+ if (o.status == 404) {
538
517
  t("Not Found"), n("Not Found");
539
518
  return;
540
519
  }
541
- if (h.status !== 200)
542
- throw console.log(h.status), new Error(`Request failed with status ${h.status}`);
543
- const d = h.headers.get("content-type");
520
+ if (o.status !== 200)
521
+ throw console.log(o.status), new Error(`Request failed with status ${o.status}`);
522
+ const d = o.headers.get("content-type");
544
523
  if (console.log({ contentType: d }), !d || !d.includes("text/markdown")) {
545
524
  t("Oops, we haven't got Markdown!"), n("No Markdown");
546
525
  return;
547
526
  }
548
- const u = await h.text();
549
- t(u);
550
- const x = u.replace(/^\s+/, "").split(/(\n|\r|\r\n){2,}/)[0].match(/^#\s*(.+)/);
551
- n(x ? x[1] : "...");
552
- } catch (h) {
553
- h instanceof Error && h.message === "Request failed with status code 404" ? (t("Not Found"), n("Not Found")) : (t("Something went wrong."), n("Error"), console.error(h));
527
+ const m = await o.text();
528
+ t(m);
529
+ const g = m.replace(/^\s+/, "").split(/(\n|\r|\r\n){2,}/)[0].match(/^#\s*(.+)/);
530
+ n(g ? g[1] : "...");
531
+ } catch (o) {
532
+ o instanceof Error && o.message === "Request failed with status code 404" ? (t("Not Found"), n("Not Found")) : (t("Something went wrong."), n("Error"), console.error(o));
554
533
  }
555
534
  }
556
- const m = s || (r ? r() : null);
557
- m && o(m);
558
- }, [s, r]), /* @__PURE__ */ e.jsxs("div", { children: [
559
- c && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
560
- /* @__PURE__ */ e.jsx(b1, { children: l })
535
+ const v = s || (l ? l() : null);
536
+ v && h(v);
537
+ }, [s, l]), /* @__PURE__ */ e.jsxs("div", { children: [
538
+ c && /* @__PURE__ */ e.jsx(c1, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
539
+ /* @__PURE__ */ e.jsx(p1, { children: r })
561
540
  ] });
562
541
  }
563
- const F1 = (s) => /* @__PURE__ */ e.jsxs(
542
+ const q1 = (s) => /* @__PURE__ */ e.jsxs(
564
543
  "svg",
565
544
  {
566
545
  xmlns: "http://www.w3.org/2000/svg",
@@ -703,7 +682,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
703
682
  ] }) })
704
683
  ]
705
684
  }
706
- ), D1 = (s) => /* @__PURE__ */ e.jsxs(
685
+ ), F1 = (s) => /* @__PURE__ */ e.jsxs(
707
686
  "svg",
708
687
  {
709
688
  xmlns: "http://www.w3.org/2000/svg",
@@ -757,7 +736,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
757
736
  ] }) })
758
737
  ]
759
738
  }
760
- ), B1 = (s) => /* @__PURE__ */ e.jsxs(
739
+ ), D1 = (s) => /* @__PURE__ */ e.jsxs(
761
740
  "svg",
762
741
  {
763
742
  xmlns: "http://www.w3.org/2000/svg",
@@ -821,7 +800,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
821
800
  ] }) })
822
801
  ]
823
802
  }
824
- ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
803
+ ), B1 = (s) => /* @__PURE__ */ e.jsxs(
825
804
  "svg",
826
805
  {
827
806
  xmlns: "http://www.w3.org/2000/svg",
@@ -937,7 +916,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
937
916
  ] }) })
938
917
  ]
939
918
  }
940
- ), G1 = (s) => /* @__PURE__ */ e.jsxs(
919
+ ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
941
920
  "svg",
942
921
  {
943
922
  xmlns: "http://www.w3.org/2000/svg",
@@ -990,7 +969,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
990
969
  ] }) })
991
970
  ]
992
971
  }
993
- ), U1 = (s) => /* @__PURE__ */ e.jsxs(
972
+ ), G1 = (s) => /* @__PURE__ */ e.jsxs(
994
973
  "svg",
995
974
  {
996
975
  xmlns: "http://www.w3.org/2000/svg",
@@ -1043,7 +1022,7 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
1043
1022
  ] }) })
1044
1023
  ]
1045
1024
  }
1046
- ), J1 = (s) => /* @__PURE__ */ e.jsxs(
1025
+ ), U1 = (s) => /* @__PURE__ */ e.jsxs(
1047
1026
  "svg",
1048
1027
  {
1049
1028
  xmlns: "http://www.w3.org/2000/svg",
@@ -1133,41 +1112,41 @@ const F1 = (s) => /* @__PURE__ */ e.jsxs(
1133
1112
  ]
1134
1113
  }
1135
1114
  );
1136
- function w0({ href: s, type: r, name: l }) {
1137
- const t = "w-14", c = l.match(/^[a-z0-9]/i) ? l : "download";
1115
+ function j0({ href: s, type: l, name: r }) {
1116
+ const t = "w-14", c = r.match(/^[a-z0-9]/i) ? r : "download";
1138
1117
  let n;
1139
- switch (r) {
1118
+ switch (l) {
1140
1119
  case "bibtex":
1141
- n = /* @__PURE__ */ e.jsx(F1, { className: t });
1120
+ n = /* @__PURE__ */ e.jsx(q1, { className: t });
1142
1121
  break;
1143
1122
  case "csv":
1144
1123
  n = /* @__PURE__ */ e.jsx(I1, { className: t });
1145
1124
  break;
1146
1125
  case "gexf":
1147
- n = /* @__PURE__ */ e.jsx(D1, { className: t });
1126
+ n = /* @__PURE__ */ e.jsx(F1, { className: t });
1148
1127
  break;
1149
1128
  case "graphml":
1150
- n = /* @__PURE__ */ e.jsx(B1, { className: t });
1129
+ n = /* @__PURE__ */ e.jsx(D1, { className: t });
1151
1130
  break;
1152
1131
  case "json":
1153
- n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1132
+ n = /* @__PURE__ */ e.jsx(B1, { className: t });
1154
1133
  break;
1155
1134
  case "rdf":
1156
1135
  n = /* @__PURE__ */ e.jsx(W1, { className: t });
1157
1136
  break;
1158
1137
  case "ris":
1159
- n = /* @__PURE__ */ e.jsx(G1, { className: t });
1138
+ n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1160
1139
  break;
1161
1140
  case "tei":
1162
- n = /* @__PURE__ */ e.jsx(U1, { className: t });
1141
+ n = /* @__PURE__ */ e.jsx(G1, { className: t });
1163
1142
  break;
1164
1143
  case "txt":
1165
- n = /* @__PURE__ */ e.jsx(J1, { className: t });
1144
+ n = /* @__PURE__ */ e.jsx(U1, { className: t });
1166
1145
  break;
1167
1146
  }
1168
1147
  return /* @__PURE__ */ e.jsx("a", { href: s, download: c, className: "inline-block", children: n || c });
1169
1148
  }
1170
- const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 384", ...s, children: [
1149
+ const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 384", ...s, children: [
1171
1150
  /* @__PURE__ */ e.jsxs("defs", { children: [
1172
1151
  /* @__PURE__ */ e.jsx("clipPath", { id: "dracor_svg__clip-path", children: /* @__PURE__ */ e.jsx(
1173
1152
  "path",
@@ -1190,7 +1169,7 @@ const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1190
1169
  }
1191
1170
  }
1192
1171
  ) }) }) })
1193
- ] }), Q1 = (s) => /* @__PURE__ */ e.jsx(
1172
+ ] }), X1 = (s) => /* @__PURE__ */ e.jsx(
1194
1173
  "svg",
1195
1174
  {
1196
1175
  xmlns: "http://www.w3.org/2000/svg",
@@ -1230,53 +1209,53 @@ const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1230
1209
  ] })
1231
1210
  ] })
1232
1211
  }
1233
- ), { protocol: K1, host: e0 } = window.location, a0 = `${K1}//${e0}/id/`;
1234
- function E0({
1212
+ ), { protocol: Q1, host: K1 } = window.location, e0 = `${Q1}//${K1}/id/`;
1213
+ function b0({
1235
1214
  children: s,
1236
- className: r = "",
1237
- uri: l,
1215
+ className: l = "",
1216
+ uri: r,
1238
1217
  prefix: t,
1239
1218
  icon: c
1240
1219
  }) {
1241
- const n = s, o = l || `${t || a0}${n}`;
1220
+ const n = s, h = r || `${t || e0}${n}`;
1242
1221
  return /* @__PURE__ */ e.jsxs(
1243
1222
  "span",
1244
1223
  {
1245
- className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${r}`,
1224
+ className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${l}`,
1246
1225
  children: [
1247
- c === "ein" && /* @__PURE__ */ e.jsx(Q1, { style: { width: "25px" } }),
1248
- c === "dracor" && /* @__PURE__ */ e.jsx(X1, { style: { width: "15px" } }),
1249
- /* @__PURE__ */ e.jsx(Z1, { text: o, children: /* @__PURE__ */ e.jsxs("span", { title: "copy to clipboard", children: [
1226
+ c === "ein" && /* @__PURE__ */ e.jsx(X1, { style: { width: "25px" } }),
1227
+ c === "dracor" && /* @__PURE__ */ e.jsx(J1, { style: { width: "15px" } }),
1228
+ /* @__PURE__ */ e.jsx(y1, { text: h, children: /* @__PURE__ */ e.jsxs("span", { title: "copy to clipboard", children: [
1250
1229
  /* @__PURE__ */ e.jsx("span", { className: "pr-1", children: n }),
1251
- /* @__PURE__ */ e.jsx(A, { icon: w1, size: "sm" })
1230
+ /* @__PURE__ */ e.jsx(M, { icon: j1, size: "sm" })
1252
1231
  ] }) })
1253
1232
  ]
1254
1233
  }
1255
1234
  );
1256
1235
  }
1257
- function M0({
1236
+ function w0({
1258
1237
  languages: s,
1259
- current: r = "",
1260
- onSelect: l
1238
+ current: l = "",
1239
+ onSelect: r
1261
1240
  }) {
1262
- return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1263
- /* @__PURE__ */ e.jsx(h1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(A, { icon: E1, size: "2x" }) }),
1241
+ return /* @__PURE__ */ e.jsxs(i1, { as: "div", className: "relative inline-block text-left", children: [
1242
+ /* @__PURE__ */ e.jsx(o1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(M, { icon: b1, size: "2x" }) }),
1264
1243
  /* @__PURE__ */ e.jsx(
1265
- d1,
1244
+ h1,
1266
1245
  {
1267
- as: c1,
1246
+ as: n1,
1268
1247
  enter: "transition ease-out duration-100",
1269
1248
  enterFrom: "transform opacity-0 scale-95",
1270
1249
  enterTo: "transform opacity-100 scale-100",
1271
1250
  leave: "transition ease-in duration-75",
1272
1251
  leaveFrom: "transform opacity-100 scale-100",
1273
1252
  leaveTo: "transform opacity-0 scale-95",
1274
- children: /* @__PURE__ */ e.jsx(v1, { className: "flex flex-col origin-top absolute top-6 mt-2 p-[0.2em] rounded-sm shadow-lg bg-white ring-1 ring-black/10 focus:outline-none z-10", children: s.map((t) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
1253
+ children: /* @__PURE__ */ e.jsx(d1, { className: "flex flex-col origin-top absolute top-6 mt-2 p-[0.2em] rounded-sm shadow-lg bg-white ring-1 ring-black/10 focus:outline-none z-10", children: s.map((t) => /* @__PURE__ */ e.jsx(v1, { children: /* @__PURE__ */ e.jsx(
1275
1254
  "button",
1276
1255
  {
1277
1256
  className: `group flex w-full items-center rounded-sm px-2 py-1
1278
- text-sm ${t === r ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1279
- onClick: () => l(t),
1257
+ text-sm ${t === l ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1258
+ onClick: () => r(t),
1280
1259
  children: t
1281
1260
  },
1282
1261
  t
@@ -1285,86 +1264,112 @@ function M0({
1285
1264
  )
1286
1265
  ] });
1287
1266
  }
1288
- function s0({ label: s, href: r, active: l, className: t }) {
1289
- return /* @__PURE__ */ e.jsx(I, { to: r, className: u1(l, t), children: s });
1290
- }
1291
- function u1(s = !1, r = "") {
1292
- return `block md:inline-block justify-center text-white hover:text-blue-100
1293
- uppercase
1294
- ${s ? "border-b-4" : ""} ${r}`;
1267
+ function a0({ label: s, to: l, params: r, href: t, className: c }) {
1268
+ const n = `block md:inline-block justify-center text-white hover:text-blue-100 uppercase ${c}`;
1269
+ return t?.startsWith("http") || t?.startsWith("mailto:") ? /* @__PURE__ */ e.jsx(
1270
+ "a",
1271
+ {
1272
+ href: t,
1273
+ className: n,
1274
+ target: "_blank",
1275
+ rel: "noopener noreferrer",
1276
+ children: s
1277
+ }
1278
+ ) : /* @__PURE__ */ e.jsx(
1279
+ q,
1280
+ {
1281
+ to: l,
1282
+ params: r,
1283
+ className: `[&.active]:border-b-4 ${n}`,
1284
+ children: s
1285
+ }
1286
+ );
1295
1287
  }
1296
- function t0({ label: s, items: r, menuClass: l }) {
1297
- const t = x1();
1298
- function c({ href: o, selected: m }) {
1299
- return m !== void 0 ? m : t.pathname.startsWith(o);
1288
+ const l1 = "group flex w-full items-center rounded-sm px-2 py-1 text-sm text-gray-900 hover:text-gray-900 hover:bg-blue-100";
1289
+ function s0({ label: s, items: l, menuClass: r }) {
1290
+ const t = k1();
1291
+ function c({ to: h }) {
1292
+ return h && t.pathname.startsWith(h);
1300
1293
  }
1301
- const n = !!r.find((o) => c(o));
1302
- return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1303
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(h1, { className: u1(n, l), children: [
1304
- s,
1305
- /* @__PURE__ */ e.jsx(
1306
- A,
1307
- {
1308
- icon: M1,
1309
- className: "ml-2 mt-1",
1310
- size: "sm",
1311
- "aria-hidden": "true"
1312
- }
1313
- )
1314
- ] }) }),
1294
+ const n = !!l.find((h) => c(h));
1295
+ return /* @__PURE__ */ e.jsxs(i1, { as: "div", className: "relative inline-block text-left", children: [
1296
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1297
+ o1,
1298
+ {
1299
+ className: `block md:inline-block justify-center text-white hover:text-blue-100 uppercase ${n ? "border-b-4" : ""} ${r}`,
1300
+ children: [
1301
+ s,
1302
+ /* @__PURE__ */ e.jsx(
1303
+ M,
1304
+ {
1305
+ icon: w1,
1306
+ className: "ml-2 mt-1",
1307
+ size: "sm",
1308
+ "aria-hidden": "true"
1309
+ }
1310
+ )
1311
+ ]
1312
+ }
1313
+ ) }),
1315
1314
  /* @__PURE__ */ e.jsx(
1316
- d1,
1315
+ h1,
1317
1316
  {
1318
- as: c1,
1317
+ as: n1,
1319
1318
  enter: "transition ease-out duration-100",
1320
1319
  enterFrom: "transform opacity-0 scale-95",
1321
1320
  enterTo: "transform opacity-100 scale-100",
1322
1321
  leave: "transition ease-in duration-75",
1323
1322
  leaveFrom: "transform opacity-100 scale-100",
1324
1323
  leaveTo: "transform opacity-0 scale-95",
1325
- children: /* @__PURE__ */ e.jsx(v1, { className: "absolute left-0 mt-2 min-w-fit whitespace-nowrap origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg focus:outline-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "px-1 py-1", children: r.map((o) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
1326
- I,
1324
+ children: /* @__PURE__ */ e.jsx(d1, { className: "absolute left-0 mt-2 min-w-fit whitespace-nowrap origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg focus:outline-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "px-1 py-1", children: l.map(({ to: h, href: v, params: _, label: o }) => /* @__PURE__ */ e.jsx(v1, { children: v?.startsWith("http") || v?.startsWith("mailto:") ? /* @__PURE__ */ e.jsx(
1325
+ "a",
1327
1326
  {
1328
- to: o.href,
1329
- className: `group flex w-full items-center rounded-sm px-2 py-1
1330
- text-sm ${c(o) ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1331
- children: o.label
1327
+ href: v,
1328
+ className: l1,
1329
+ target: "_blank",
1330
+ rel: "noopener noreferrer",
1331
+ children: o
1332
1332
  }
1333
- ) }, o.href)) }) })
1333
+ ) : /* @__PURE__ */ e.jsx(
1334
+ q,
1335
+ {
1336
+ to: h,
1337
+ params: _,
1338
+ className: l1 + " [&.active]:bg-blue-300 [&.active]:text-white [&.active]:font-medium [&.active]:hover:bg-blue-100 [&.active]:hover:text-gray-900",
1339
+ children: o
1340
+ }
1341
+ ) }, o)) }) })
1334
1342
  }
1335
1343
  )
1336
1344
  ] });
1337
1345
  }
1338
- function N0({
1346
+ function E0({
1339
1347
  title: s,
1340
- logo: r,
1341
- logoClass: l,
1348
+ logo: l,
1349
+ logoClass: r,
1342
1350
  version: t,
1343
1351
  gitHubUrl: c,
1344
1352
  gitHubIcon: n,
1345
- gitHubTitle: o,
1346
- addItem: m,
1347
- navItems: f
1353
+ gitHubTitle: h,
1354
+ addItem: v,
1355
+ navItems: _
1348
1356
  }) {
1349
- const [h, d] = M(!1), u = x1();
1350
- function p({ href: x, active: b }) {
1351
- return b !== void 0 ? b : u.pathname.startsWith(x);
1352
- }
1357
+ const [o, d] = j(!1);
1353
1358
  return /* @__PURE__ */ e.jsxs("nav", { className: "flex items-center justify-between flex-wrap p-4 bg-primary text-white font-medium", children: [
1354
- /* @__PURE__ */ e.jsx(I, { to: "/", children: /* @__PURE__ */ e.jsx(
1359
+ /* @__PURE__ */ e.jsx(q, { to: "/", children: l ? /* @__PURE__ */ e.jsx(
1355
1360
  "img",
1356
1361
  {
1357
1362
  alt: `${s} logo`,
1358
1363
  title: `${s}${t ? ` (${t})` : ""}`,
1359
- className: `h-12 ${l || ""}`,
1360
- src: r
1364
+ className: `h-12 ${r || ""}`,
1365
+ src: l
1361
1366
  }
1362
- ) }),
1367
+ ) : /* @__PURE__ */ e.jsx("span", { title: t, className: "text-white font-bold text-xl", children: s }) }),
1363
1368
  /* @__PURE__ */ e.jsx("div", { className: "block md:hidden", children: /* @__PURE__ */ e.jsx(
1364
1369
  "button",
1365
1370
  {
1366
1371
  className: "flex items-center px-3 py-2 hover:text-blue-100",
1367
- onClick: () => d(!h),
1372
+ onClick: () => d(!o),
1368
1373
  children: /* @__PURE__ */ e.jsxs(
1369
1374
  "svg",
1370
1375
  {
@@ -1382,34 +1387,26 @@ function N0({
1382
1387
  /* @__PURE__ */ e.jsxs(
1383
1388
  "div",
1384
1389
  {
1385
- className: `block md:flex grow md:items-center w-full md:w-auto ${h ? "" : "hidden"}`,
1390
+ className: `block md:flex grow md:items-center w-full md:w-auto ${o ? "" : "hidden"}`,
1386
1391
  children: [
1387
- (f == null ? void 0 : f.length) && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: f.map(
1388
- (x) => "items" in x ? /* @__PURE__ */ e.jsx(
1389
- t0,
1390
- {
1391
- label: x.label,
1392
- items: x.items
1393
- },
1394
- x.label
1395
- ) : /* @__PURE__ */ e.jsx(
1392
+ _?.length && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: _.map(
1393
+ (m) => "items" in m ? /* @__PURE__ */ e.jsx(
1396
1394
  s0,
1397
1395
  {
1398
- label: x.label,
1399
- href: x.href,
1400
- active: p(x)
1396
+ label: m.label,
1397
+ items: m.items
1401
1398
  },
1402
- x.label
1403
- )
1399
+ m.label
1400
+ ) : /* @__PURE__ */ e.jsx(a0, { label: m.label, to: m.to }, m.label)
1404
1401
  ) }),
1405
- m,
1402
+ v,
1406
1403
  c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1407
1404
  "a",
1408
1405
  {
1409
1406
  href: c,
1410
- title: o || "GitHub",
1407
+ title: h || "GitHub",
1411
1408
  className: "text-white text-2xl",
1412
- children: n || /* @__PURE__ */ e.jsx(A, { icon: A1, size: "2xl" })
1409
+ children: n || /* @__PURE__ */ e.jsx(M, { icon: Z1, size: "2xl" })
1413
1410
  }
1414
1411
  ) })
1415
1412
  ]
@@ -1417,19 +1414,19 @@ function N0({
1417
1414
  )
1418
1415
  ] });
1419
1416
  }
1420
- function y0({ columns: s, data: r, defaultSort: l = [] }) {
1421
- const [t, c] = M(l), [n, o] = M(""), [m] = M(r), f = T1({
1422
- data: m,
1417
+ function M0({ columns: s, data: l, defaultSort: r = [] }) {
1418
+ const [t, c] = j(r), [n, h] = j(""), [v] = j(l), _ = T1({
1419
+ data: v,
1423
1420
  columns: s,
1424
1421
  state: {
1425
1422
  sorting: t,
1426
1423
  globalFilter: n
1427
1424
  },
1428
1425
  onSortingChange: c,
1429
- onGlobalFilterChange: o,
1430
- getCoreRowModel: S1(),
1426
+ onGlobalFilterChange: h,
1427
+ getCoreRowModel: R1(),
1431
1428
  getSortedRowModel: C1(),
1432
- getFilteredRowModel: R1(),
1429
+ getFilteredRowModel: A1(),
1433
1430
  debugTable: !0
1434
1431
  });
1435
1432
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -1438,111 +1435,106 @@ function y0({ columns: s, data: r, defaultSort: l = [] }) {
1438
1435
  V1,
1439
1436
  {
1440
1437
  value: n ?? "",
1441
- onChange: (h) => o(String(h)),
1438
+ onChange: (o) => h(String(o)),
1442
1439
  placeholder: "Search"
1443
1440
  }
1444
1441
  ),
1445
1442
  n !== "" && /* @__PURE__ */ e.jsxs("span", { className: "ml-2", children: [
1446
1443
  "(",
1447
- f.getRowModel().rows.length,
1444
+ _.getRowModel().rows.length,
1448
1445
  ")"
1449
1446
  ] })
1450
1447
  ] }),
1451
1448
  /* @__PURE__ */ e.jsx("div", { className: "flex", children: /* @__PURE__ */ e.jsxs("table", { children: [
1452
- /* @__PURE__ */ e.jsx("thead", { children: f.getHeaderGroups().map((h) => /* @__PURE__ */ e.jsx("tr", { children: h.headers.map((d) => /* @__PURE__ */ e.jsx("th", { colSpan: d.colSpan, children: d.isPlaceholder ? null : /* @__PURE__ */ e.jsxs(
1449
+ /* @__PURE__ */ e.jsx("thead", { children: _.getHeaderGroups().map((o) => /* @__PURE__ */ e.jsx("tr", { children: o.headers.map((d) => /* @__PURE__ */ e.jsx("th", { colSpan: d.colSpan, children: d.isPlaceholder ? null : /* @__PURE__ */ e.jsxs(
1453
1450
  "div",
1454
1451
  {
1455
1452
  className: d.column.getCanSort() ? "cursor-pointer select-none" : "",
1456
1453
  onClick: d.column.getToggleSortingHandler(),
1457
1454
  children: [
1458
- t1(
1455
+ a1(
1459
1456
  d.column.columnDef.header,
1460
1457
  d.getContext()
1461
1458
  ),
1462
1459
  " ",
1463
- /* @__PURE__ */ e.jsx(r0, { status: d.column.getIsSorted() })
1460
+ /* @__PURE__ */ e.jsx(t0, { status: d.column.getIsSorted() })
1464
1461
  ]
1465
1462
  }
1466
- ) }, d.id)) }, h.id)) }),
1467
- /* @__PURE__ */ e.jsx("tbody", { children: f.getRowModel().rows.map((h, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: h.getVisibleCells().map((u) => /* @__PURE__ */ e.jsx("td", { children: t1(u.column.columnDef.cell, u.getContext()) }, u.id)) }, h.id)) })
1463
+ ) }, d.id)) }, o.id)) }),
1464
+ /* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((o, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: o.getVisibleCells().map((m) => /* @__PURE__ */ e.jsx("td", { children: a1(m.column.columnDef.cell, m.getContext()) }, m.id)) }, o.id)) })
1468
1465
  ] }) })
1469
1466
  ] });
1470
1467
  }
1471
- function r0({ status: s }) {
1468
+ function t0({ status: s }) {
1472
1469
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1473
1470
  /* @__PURE__ */ e.jsx("span", { className: s !== "asc" ? "opacity-40" : "", children: "▲" }),
1474
1471
  /* @__PURE__ */ e.jsx("span", { className: s !== "desc" ? "opacity-40" : "", children: "▼" })
1475
1472
  ] });
1476
1473
  }
1477
- function k0({ data: s }) {
1478
- return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label: r, href: l, active: t }) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(I, { to: l, className: l0(t || !1), children: r }) }, l)) }) });
1479
- }
1480
- function l0(s) {
1481
- let r = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600";
1482
- return s ? r += " border-primary" : r += " border-transparent hover:border-gray-300", r;
1474
+ function N0({ data: s }) {
1475
+ const l = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600 border-transparent hover:border-gray-300 [&.active]:border-primary";
1476
+ return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label: r, to: t }) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(q, { to: t, className: l, children: r }) }, r)) }) });
1483
1477
  }
1484
- function Z0({ url: s }) {
1485
- const r = p1(null);
1486
- return q(() => {
1487
- var t;
1488
- const l = new P1();
1489
- for (; (t = r.current) != null && t.firstChild; )
1490
- r.current.removeChild(r.current.firstChild);
1491
- l.getHTML5(s, (c) => {
1492
- var n;
1493
- (n = r.current) == null || n.appendChild(c);
1478
+ function y0({ url: s }) {
1479
+ const l = _1(null);
1480
+ return P(() => {
1481
+ const r = new S1();
1482
+ for (; l.current?.firstChild; )
1483
+ l.current.removeChild(l.current.firstChild);
1484
+ r.getHTML5(s, (t) => {
1485
+ l.current?.appendChild(t);
1494
1486
  });
1495
- }, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref: r }) });
1487
+ }, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref: l }) });
1496
1488
  }
1497
- function A0({
1489
+ function k0({
1498
1490
  written: s,
1499
- premiere: r,
1500
- print: l,
1491
+ premiere: l,
1492
+ print: r,
1501
1493
  locale: t,
1502
1494
  labelPremiered: c = "premiered",
1503
1495
  labelPrinted: n = "printed",
1504
- labelWritten: o = "written"
1496
+ labelWritten: h = "written"
1505
1497
  }) {
1506
1498
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1507
1499
  s && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1508
- /* @__PURE__ */ e.jsxs("span", { title: o, children: [
1509
- /* @__PURE__ */ e.jsx(A, { icon: N1, size: "sm" }),
1500
+ /* @__PURE__ */ e.jsxs("span", { title: h, children: [
1501
+ /* @__PURE__ */ e.jsx(M, { icon: E1, size: "sm" }),
1510
1502
  " ",
1511
- F(s, t)
1503
+ V(s, t)
1512
1504
  ] }),
1513
1505
  " "
1514
1506
  ] }),
1515
- r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1507
+ l && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1516
1508
  /* @__PURE__ */ e.jsxs("span", { title: c, children: [
1517
- /* @__PURE__ */ e.jsx(A, { icon: y1, size: "sm" }),
1509
+ /* @__PURE__ */ e.jsx(M, { icon: M1, size: "sm" }),
1518
1510
  " ",
1519
- F(r, t)
1511
+ V(l, t)
1520
1512
  ] }),
1521
1513
  " "
1522
1514
  ] }),
1523
- l && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1524
- /* @__PURE__ */ e.jsx(A, { icon: k1, size: "sm" }),
1515
+ r && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1516
+ /* @__PURE__ */ e.jsx(M, { icon: N1, size: "sm" }),
1525
1517
  " ",
1526
- F(l, t)
1518
+ V(r, t)
1527
1519
  ] })
1528
1520
  ] });
1529
1521
  }
1530
1522
  export {
1531
- _0 as ApiDoc,
1532
- p0 as AuthorInfo,
1533
- j0 as Authors,
1523
+ u0 as ApiDoc,
1524
+ _0 as AuthorInfo,
1525
+ g0 as Authors,
1534
1526
  V1 as DebouncedInput,
1535
- b0 as DocPage,
1536
- w0 as DownloadButton,
1537
- E0 as IdCopy,
1538
- f1 as IdLink,
1539
- M0 as LanguageMenu,
1540
- N0 as NavBar,
1541
- Z0 as TEIText,
1542
- y0 as Table,
1543
- k0 as Tabs,
1544
- A0 as Years,
1545
- $ as formatEra,
1546
- F as formatYear
1527
+ p0 as DocPage,
1528
+ j0 as DownloadButton,
1529
+ b0 as IdCopy,
1530
+ m1 as IdLink,
1531
+ w0 as LanguageMenu,
1532
+ E0 as NavBar,
1533
+ y0 as TEIText,
1534
+ M0 as Table,
1535
+ N0 as Tabs,
1536
+ k0 as Years,
1537
+ S as formatEra,
1538
+ V as formatYear
1547
1539
  };
1548
1540
  //# sourceMappingURL=index.es.js.map