@dracor/react 1.0.0-beta.5 → 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 E, useEffect as z, 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 y } 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 q = { exports: {} }, S = {};
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 S;
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 S.Fragment = r, S.jsx = l, S.jsxs = l, S;
34
+ return C.Fragment = l, C.jsx = r, C.jsxs = r, C;
44
35
  }
45
- var P = {};
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 === L ? 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 A:
46
+ case Z:
65
47
  return "Fragment";
66
- case D:
48
+ case w:
67
49
  return "Profiler";
68
50
  case F:
69
51
  return "StrictMode";
70
- case Y:
71
- return "Suspense";
72
52
  case T:
53
+ return "Suspense";
54
+ case H:
73
55
  return "SuspenseList";
74
- case $:
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 X:
84
- return (a.displayName || "Context") + ".Provider";
85
- case M:
65
+ case D:
66
+ return a.displayName || "Context";
67
+ case U:
86
68
  return (a._context.displayName || "Context") + ".Consumer";
87
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 O:
72
+ case $:
91
73
  return i = a.displayName || null, i !== null ? i : s(a.type) || "Memo";
92
- case R:
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, u = 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
- u
118
- ), r(a);
99
+ f
100
+ ), l(a);
119
101
  }
120
102
  }
121
103
  function t(a) {
122
- if (a === A) return "<>";
123
- if (typeof a == "object" && a !== null && a.$$typeof === R)
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,45 +112,46 @@ function z1() {
130
112
  }
131
113
  }
132
114
  function c() {
133
- var a = N.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 (k.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
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, u, w, 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: w
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
156
  get: _
174
157
  }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
@@ -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, u, w, j, G, U) {
197
- var g = i.children;
198
- if (g !== void 0)
199
- if (u)
200
- if (C(g)) {
201
- for (u = 0; u < g.length; u++)
202
- f(g[u]);
203
- Object.freeze && Object.freeze(g);
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 f(g);
209
- if (k.call(i, "key")) {
210
- g = s(a);
211
- var Z = 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
- u = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", s1[g + u] || (Z = 0 < Z.length ? "{" + Z.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} />`,
204
+ f,
221
205
  u,
222
- g,
223
- Z,
224
- g
225
- ), s1[g + u] = !0);
206
+ k,
207
+ u
208
+ ), e1[u + f] = !0);
226
209
  }
227
- if (g = null, v !== void 0 && (l(v), g = "" + v), o(i) && (l(i.key), g = "" + 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 g && 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
- g,
238
- j,
239
- w,
220
+ u,
221
+ x,
240
222
  c(),
241
- v,
242
- G,
243
- U
223
+ O,
224
+ Y
244
225
  );
245
226
  }
246
- function f(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));
248
229
  }
249
- var p = _1, x = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), X = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, C = Array.isArray, W = console.createTask ? console.createTask : function() {
230
+ function p(a) {
231
+ return typeof a == "object" && a !== null && a.$$typeof === b;
232
+ }
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 = {
236
+ g = {
253
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 = W(t(n)), s1 = {};
261
- P.Fragment = A, P.jsx = function(a, i, v, u, w) {
262
- var j = 1e4 > N.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
- u,
269
- w,
270
- j ? Error("react-stack-top-frame") : e1,
271
- j ? W(t(a)) : a1
252
+ f ? Error("react-stack-top-frame") : Q,
253
+ f ? W(t(a)) : K
272
254
  );
273
- }, P.jsxs = function(a, i, v, u, w) {
274
- var j = 1e4 > N.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
- u,
281
- w,
282
- j ? Error("react-stack-top-frame") : e1,
283
- j ? W(t(a)) : a1
262
+ f ? Error("react-stack-top-frame") : Q,
263
+ f ? W(t(a)) : K
284
264
  );
285
265
  };
286
- })()), P;
266
+ })()), R;
287
267
  }
288
- var n1;
289
- function O1() {
290
- return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? q.exports = H1() : q.exports = z1()), q.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,72 +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: f }) => {
312
+ const n = z1.find(({ pattern: o, url: d, schema: m }) => {
333
313
  const p = new RegExp(
334
- `^(?:${h || d}/|${f}:)([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: _ = "" } = n;
320
+ return /* @__PURE__ */ e.jsx("span", { className: t, children: l });
321
+ const { url: h, label: v, classes: _ = "" } = n;
342
322
  return t += ` ${_}`, /* @__PURE__ */ e.jsxs("span", { className: t, children: [
343
- s && `${m}: `,
344
- /* @__PURE__ */ e.jsx("a", { className: l, href: `${o}/${c}`, title: m, children: c })
323
+ s && `${v}: `,
324
+ /* @__PURE__ */ e.jsx("a", { className: r, href: `${h}/${c}`, title: v, children: c })
345
325
  ] });
346
326
  }
347
- function H(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 V(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 `${H(t[0])}-${H(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 ${H(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 ${H(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}") ? H(l, 1e3) : l;
359
+ return r.match("^-?[0-9]{4}") ? S(r, 1e3) : r;
380
360
  }
381
- const L1 = "https://query.wikidata.org/sparql", q1 = "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] = E(null);
390
- z(() => {
369
+ const [n, h] = j(null);
370
+ P(() => {
391
371
  function p(b) {
392
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
- const A = `
374
+ async function g(b) {
375
+ const I = `
396
376
  SELECT ?author ?authorLabel ?birthDate ?deathDate ?gender ?genderLabel
397
377
  ?birthPlace ?birthPlaceLabel ?birthCoord
398
378
  ?deathPlace ?deathPlaceLabel ?deathCoord
@@ -409,36 +389,36 @@ WHERE {
409
389
  OPTIONAL { ?author wdt:P227 ?gnd. }
410
390
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
411
391
  }
412
- `, F = `${L1}?query=${encodeURIComponent(A)}`, D = {
392
+ `, Z = `${O1}?query=${encodeURIComponent(I)}`, F = {
413
393
  method: "GET",
414
394
  headers: {
415
395
  Accept: "application/json"
416
396
  }
417
397
  };
418
398
  try {
419
- const M = await fetch(F, D);
420
- if (M.status !== 200) {
421
- console.log(M.status);
399
+ const w = await fetch(Z, F);
400
+ if (w.status !== 200) {
401
+ console.log(w.status);
422
402
  return;
423
403
  }
424
- const B = (await M.json()).results?.bindings || [], {
425
- authorLabel: Y,
404
+ const D = (await w.json()).results?.bindings || [], {
405
+ authorLabel: B,
426
406
  img: T,
427
- birthDate: O,
428
- birthPlaceLabel: R,
429
- deathDate: $,
430
- deathPlaceLabel: L
431
- } = B[0], N = [], k = [];
432
- O?.value && N.push(p(O.value)), R?.value && N.push(R.value), $?.value && k.push(p($.value)), L?.value && k.push(L.value);
433
- const C = { name: Y.value, birth: N, death: k };
434
- T?.value && (C.imageUrl = T.value.replace(/^http:/, "https:"), C.commonsPage = T.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), o(C);
435
- } catch (M) {
436
- console.log(M);
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);
437
417
  }
438
418
  }
439
- s && x(s);
419
+ s && g(s);
440
420
  }, [s, c]);
441
- const { name: m, imageUrl: _, commonsPage: h, birth: d = [], death: f = [] } = n || {};
421
+ const { name: v, imageUrl: _, commonsPage: o, birth: d = [], death: m = [] } = n || {};
442
422
  return /* @__PURE__ */ e.jsxs("div", { className: "flex whitespace-nowrap", children: [
443
423
  /* @__PURE__ */ e.jsxs(
444
424
  "div",
@@ -450,21 +430,21 @@ WHERE {
450
430
  "img",
451
431
  {
452
432
  src: _,
453
- title: m,
433
+ title: v,
454
434
  alt: "",
455
435
  className: "object-cover object-top w-full h-full"
456
436
  }
457
437
  ),
458
- h && /* @__PURE__ */ e.jsx(
438
+ o && /* @__PURE__ */ e.jsx(
459
439
  "a",
460
440
  {
461
- href: h,
441
+ href: o,
462
442
  title: "© Wikimedia Commons",
463
443
  className: "absolute flex inset-0 z-10 bg-white/0 hover:bg-white/60",
464
444
  children: /* @__PURE__ */ e.jsx(
465
445
  "img",
466
446
  {
467
- src: q1,
447
+ src: L1,
468
448
  className: "opacity-0 hover:opacity-100 place-self-center w-full h-full p-[20%]",
469
449
  width: "17",
470
450
  alt: "Wikimedia Commons"
@@ -476,90 +456,90 @@ WHERE {
476
456
  }
477
457
  ),
478
458
  /* @__PURE__ */ e.jsxs("span", { children: [
479
- /* @__PURE__ */ e.jsx("div", { className: "text-lg", children: r || m }),
480
- 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}` }) }),
481
461
  d.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
482
- l,
462
+ r,
483
463
  " ",
484
464
  d.join(", ")
485
465
  ] }),
486
- f.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
466
+ m.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
487
467
  t,
488
468
  " ",
489
- f.join(", ")
469
+ m.join(", ")
490
470
  ] })
491
471
  ] })
492
472
  ] });
493
473
  }
494
- const j0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((r, l) => /* @__PURE__ */ e.jsxs("span", { children: [
495
- l > 0 && /* @__PURE__ */ e.jsx("br", {}),
496
- r.name,
497
- 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: [
498
478
  " (",
499
- r.pseudonym,
479
+ l.pseudonym,
500
480
  ")"
501
481
  ] }),
502
- r.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
482
+ l.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
503
483
  " ",
504
- /* @__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 }) })
505
485
  ] })
506
- ] }, `${l}-${r.name}`)) });
486
+ ] }, `${r}-${l.name}`)) });
507
487
  function V1({
508
488
  value: s,
509
- onChange: r,
510
- debounce: l = 500,
489
+ onChange: l,
490
+ debounce: r = 500,
511
491
  ...t
512
492
  }) {
513
- const [c, n] = E(s);
514
- return z(() => {
493
+ const [c, n] = j(s);
494
+ return P(() => {
515
495
  n(s);
516
- }, [s]), z(() => {
517
- const o = setTimeout(() => {
518
- r(c);
519
- }, l);
520
- return () => clearTimeout(o);
496
+ }, [s]), P(() => {
497
+ const h = setTimeout(() => {
498
+ l(c);
499
+ }, r);
500
+ return () => clearTimeout(h);
521
501
  }, [c]), /* @__PURE__ */ e.jsx(
522
502
  "input",
523
503
  {
524
504
  ...t,
525
505
  value: c,
526
- onChange: (o) => n(o.target.value)
506
+ onChange: (h) => n(h.target.value)
527
507
  }
528
508
  );
529
509
  }
530
- function b0({ url: s, match: r }) {
531
- const [l, t] = E(""), [c, n] = E("");
532
- return z(() => {
533
- async function o(_) {
510
+ function p0({ url: s, match: l }) {
511
+ const [r, t] = j(""), [c, n] = j("");
512
+ return P(() => {
513
+ async function h(_) {
534
514
  try {
535
- const h = await fetch(_, { method: "GET" });
536
- if (h.status == 404) {
515
+ const o = await fetch(_, { method: "GET" });
516
+ if (o.status == 404) {
537
517
  t("Not Found"), n("Not Found");
538
518
  return;
539
519
  }
540
- if (h.status !== 200)
541
- throw console.log(h.status), new Error(`Request failed with status ${h.status}`);
542
- 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");
543
523
  if (console.log({ contentType: d }), !d || !d.includes("text/markdown")) {
544
524
  t("Oops, we haven't got Markdown!"), n("No Markdown");
545
525
  return;
546
526
  }
547
- const f = await h.text();
548
- t(f);
549
- const x = f.replace(/^\s+/, "").split(/(\n|\r|\r\n){2,}/)[0].match(/^#\s*(.+)/);
550
- n(x ? x[1] : "...");
551
- } catch (h) {
552
- 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));
553
533
  }
554
534
  }
555
- const m = s || (r ? r() : null);
556
- m && o(m);
557
- }, [s, r]), /* @__PURE__ */ e.jsxs("div", { children: [
558
- c && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
559
- /* @__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 })
560
540
  ] });
561
541
  }
562
- const I1 = (s) => /* @__PURE__ */ e.jsxs(
542
+ const q1 = (s) => /* @__PURE__ */ e.jsxs(
563
543
  "svg",
564
544
  {
565
545
  xmlns: "http://www.w3.org/2000/svg",
@@ -653,7 +633,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
653
633
  ] }) })
654
634
  ]
655
635
  }
656
- ), F1 = (s) => /* @__PURE__ */ e.jsxs(
636
+ ), I1 = (s) => /* @__PURE__ */ e.jsxs(
657
637
  "svg",
658
638
  {
659
639
  xmlns: "http://www.w3.org/2000/svg",
@@ -702,7 +682,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
702
682
  ] }) })
703
683
  ]
704
684
  }
705
- ), D1 = (s) => /* @__PURE__ */ e.jsxs(
685
+ ), F1 = (s) => /* @__PURE__ */ e.jsxs(
706
686
  "svg",
707
687
  {
708
688
  xmlns: "http://www.w3.org/2000/svg",
@@ -756,7 +736,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
756
736
  ] }) })
757
737
  ]
758
738
  }
759
- ), B1 = (s) => /* @__PURE__ */ e.jsxs(
739
+ ), D1 = (s) => /* @__PURE__ */ e.jsxs(
760
740
  "svg",
761
741
  {
762
742
  xmlns: "http://www.w3.org/2000/svg",
@@ -820,7 +800,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
820
800
  ] }) })
821
801
  ]
822
802
  }
823
- ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
803
+ ), B1 = (s) => /* @__PURE__ */ e.jsxs(
824
804
  "svg",
825
805
  {
826
806
  xmlns: "http://www.w3.org/2000/svg",
@@ -936,7 +916,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
936
916
  ] }) })
937
917
  ]
938
918
  }
939
- ), G1 = (s) => /* @__PURE__ */ e.jsxs(
919
+ ), Y1 = (s) => /* @__PURE__ */ e.jsxs(
940
920
  "svg",
941
921
  {
942
922
  xmlns: "http://www.w3.org/2000/svg",
@@ -989,7 +969,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
989
969
  ] }) })
990
970
  ]
991
971
  }
992
- ), U1 = (s) => /* @__PURE__ */ e.jsxs(
972
+ ), G1 = (s) => /* @__PURE__ */ e.jsxs(
993
973
  "svg",
994
974
  {
995
975
  xmlns: "http://www.w3.org/2000/svg",
@@ -1042,7 +1022,7 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
1042
1022
  ] }) })
1043
1023
  ]
1044
1024
  }
1045
- ), J1 = (s) => /* @__PURE__ */ e.jsxs(
1025
+ ), U1 = (s) => /* @__PURE__ */ e.jsxs(
1046
1026
  "svg",
1047
1027
  {
1048
1028
  xmlns: "http://www.w3.org/2000/svg",
@@ -1132,41 +1112,41 @@ const I1 = (s) => /* @__PURE__ */ e.jsxs(
1132
1112
  ]
1133
1113
  }
1134
1114
  );
1135
- function w0({ href: s, type: r, name: l }) {
1136
- 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";
1137
1117
  let n;
1138
- switch (r) {
1118
+ switch (l) {
1139
1119
  case "bibtex":
1140
- n = /* @__PURE__ */ e.jsx(I1, { className: t });
1120
+ n = /* @__PURE__ */ e.jsx(q1, { className: t });
1141
1121
  break;
1142
1122
  case "csv":
1143
- n = /* @__PURE__ */ e.jsx(F1, { className: t });
1123
+ n = /* @__PURE__ */ e.jsx(I1, { className: t });
1144
1124
  break;
1145
1125
  case "gexf":
1146
- n = /* @__PURE__ */ e.jsx(D1, { className: t });
1126
+ n = /* @__PURE__ */ e.jsx(F1, { className: t });
1147
1127
  break;
1148
1128
  case "graphml":
1149
- n = /* @__PURE__ */ e.jsx(B1, { className: t });
1129
+ n = /* @__PURE__ */ e.jsx(D1, { className: t });
1150
1130
  break;
1151
1131
  case "json":
1152
- n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1132
+ n = /* @__PURE__ */ e.jsx(B1, { className: t });
1153
1133
  break;
1154
1134
  case "rdf":
1155
1135
  n = /* @__PURE__ */ e.jsx(W1, { className: t });
1156
1136
  break;
1157
1137
  case "ris":
1158
- n = /* @__PURE__ */ e.jsx(G1, { className: t });
1138
+ n = /* @__PURE__ */ e.jsx(Y1, { className: t });
1159
1139
  break;
1160
1140
  case "tei":
1161
- n = /* @__PURE__ */ e.jsx(U1, { className: t });
1141
+ n = /* @__PURE__ */ e.jsx(G1, { className: t });
1162
1142
  break;
1163
1143
  case "txt":
1164
- n = /* @__PURE__ */ e.jsx(J1, { className: t });
1144
+ n = /* @__PURE__ */ e.jsx(U1, { className: t });
1165
1145
  break;
1166
1146
  }
1167
1147
  return /* @__PURE__ */ e.jsx("a", { href: s, download: c, className: "inline-block", children: n || c });
1168
1148
  }
1169
- 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: [
1170
1150
  /* @__PURE__ */ e.jsxs("defs", { children: [
1171
1151
  /* @__PURE__ */ e.jsx("clipPath", { id: "dracor_svg__clip-path", children: /* @__PURE__ */ e.jsx(
1172
1152
  "path",
@@ -1189,7 +1169,7 @@ const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1189
1169
  }
1190
1170
  }
1191
1171
  ) }) }) })
1192
- ] }), Q1 = (s) => /* @__PURE__ */ e.jsx(
1172
+ ] }), X1 = (s) => /* @__PURE__ */ e.jsx(
1193
1173
  "svg",
1194
1174
  {
1195
1175
  xmlns: "http://www.w3.org/2000/svg",
@@ -1229,53 +1209,53 @@ const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
1229
1209
  ] })
1230
1210
  ] })
1231
1211
  }
1232
- ), { protocol: K1, host: e0 } = window.location, a0 = `${K1}//${e0}/id/`;
1233
- function E0({
1212
+ ), { protocol: Q1, host: K1 } = window.location, e0 = `${Q1}//${K1}/id/`;
1213
+ function b0({
1234
1214
  children: s,
1235
- className: r = "",
1236
- uri: l,
1215
+ className: l = "",
1216
+ uri: r,
1237
1217
  prefix: t,
1238
1218
  icon: c
1239
1219
  }) {
1240
- const n = s, o = l || `${t || a0}${n}`;
1220
+ const n = s, h = r || `${t || e0}${n}`;
1241
1221
  return /* @__PURE__ */ e.jsxs(
1242
1222
  "span",
1243
1223
  {
1244
- 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}`,
1245
1225
  children: [
1246
- c === "ein" && /* @__PURE__ */ e.jsx(Q1, { style: { width: "25px" } }),
1247
- c === "dracor" && /* @__PURE__ */ e.jsx(X1, { style: { width: "15px" } }),
1248
- /* @__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: [
1249
1229
  /* @__PURE__ */ e.jsx("span", { className: "pr-1", children: n }),
1250
- /* @__PURE__ */ e.jsx(y, { icon: w1, size: "sm" })
1230
+ /* @__PURE__ */ e.jsx(M, { icon: j1, size: "sm" })
1251
1231
  ] }) })
1252
1232
  ]
1253
1233
  }
1254
1234
  );
1255
1235
  }
1256
- function M0({
1236
+ function w0({
1257
1237
  languages: s,
1258
- current: r = "",
1259
- onSelect: l
1238
+ current: l = "",
1239
+ onSelect: r
1260
1240
  }) {
1261
- return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1262
- /* @__PURE__ */ e.jsx(h1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(y, { 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" }) }),
1263
1243
  /* @__PURE__ */ e.jsx(
1264
- d1,
1244
+ h1,
1265
1245
  {
1266
- as: c1,
1246
+ as: n1,
1267
1247
  enter: "transition ease-out duration-100",
1268
1248
  enterFrom: "transform opacity-0 scale-95",
1269
1249
  enterTo: "transform opacity-100 scale-100",
1270
1250
  leave: "transition ease-in duration-75",
1271
1251
  leaveFrom: "transform opacity-100 scale-100",
1272
1252
  leaveTo: "transform opacity-0 scale-95",
1273
- 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(
1274
1254
  "button",
1275
1255
  {
1276
1256
  className: `group flex w-full items-center rounded-sm px-2 py-1
1277
- text-sm ${t === r ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1278
- 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),
1279
1259
  children: t
1280
1260
  },
1281
1261
  t
@@ -1284,86 +1264,112 @@ function M0({
1284
1264
  )
1285
1265
  ] });
1286
1266
  }
1287
- function s0({ label: s, href: r, active: l, className: t }) {
1288
- return /* @__PURE__ */ e.jsx(I, { to: r, className: u1(l, t), children: s });
1289
- }
1290
- function u1(s = !1, r = "") {
1291
- return `block md:inline-block justify-center text-white hover:text-blue-100
1292
- uppercase
1293
- ${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
+ );
1294
1287
  }
1295
- function t0({ label: s, items: r, menuClass: l }) {
1296
- const t = x1();
1297
- function c({ href: o, selected: m }) {
1298
- 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);
1299
1293
  }
1300
- const n = !!r.find((o) => c(o));
1301
- return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
1302
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(h1, { className: u1(n, l), children: [
1303
- s,
1304
- /* @__PURE__ */ e.jsx(
1305
- y,
1306
- {
1307
- icon: M1,
1308
- className: "ml-2 mt-1",
1309
- size: "sm",
1310
- "aria-hidden": "true"
1311
- }
1312
- )
1313
- ] }) }),
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
+ ) }),
1314
1314
  /* @__PURE__ */ e.jsx(
1315
- d1,
1315
+ h1,
1316
1316
  {
1317
- as: c1,
1317
+ as: n1,
1318
1318
  enter: "transition ease-out duration-100",
1319
1319
  enterFrom: "transform opacity-0 scale-95",
1320
1320
  enterTo: "transform opacity-100 scale-100",
1321
1321
  leave: "transition ease-in duration-75",
1322
1322
  leaveFrom: "transform opacity-100 scale-100",
1323
1323
  leaveTo: "transform opacity-0 scale-95",
1324
- 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(
1325
- 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",
1326
1326
  {
1327
- to: o.href,
1328
- className: `group flex w-full items-center rounded-sm px-2 py-1
1329
- text-sm ${c(o) ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
1330
- children: o.label
1327
+ href: v,
1328
+ className: l1,
1329
+ target: "_blank",
1330
+ rel: "noopener noreferrer",
1331
+ children: o
1331
1332
  }
1332
- ) }, 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)) }) })
1333
1342
  }
1334
1343
  )
1335
1344
  ] });
1336
1345
  }
1337
- function N0({
1346
+ function E0({
1338
1347
  title: s,
1339
- logo: r,
1340
- logoClass: l,
1348
+ logo: l,
1349
+ logoClass: r,
1341
1350
  version: t,
1342
1351
  gitHubUrl: c,
1343
1352
  gitHubIcon: n,
1344
- gitHubTitle: o,
1345
- addItem: m,
1353
+ gitHubTitle: h,
1354
+ addItem: v,
1346
1355
  navItems: _
1347
1356
  }) {
1348
- const [h, d] = E(!1), f = x1();
1349
- function p({ href: x, active: b }) {
1350
- return b !== void 0 ? b : f.pathname.startsWith(x);
1351
- }
1357
+ const [o, d] = j(!1);
1352
1358
  return /* @__PURE__ */ e.jsxs("nav", { className: "flex items-center justify-between flex-wrap p-4 bg-primary text-white font-medium", children: [
1353
- /* @__PURE__ */ e.jsx(I, { to: "/", children: /* @__PURE__ */ e.jsx(
1359
+ /* @__PURE__ */ e.jsx(q, { to: "/", children: l ? /* @__PURE__ */ e.jsx(
1354
1360
  "img",
1355
1361
  {
1356
1362
  alt: `${s} logo`,
1357
1363
  title: `${s}${t ? ` (${t})` : ""}`,
1358
- className: `h-12 ${l || ""}`,
1359
- src: r
1364
+ className: `h-12 ${r || ""}`,
1365
+ src: l
1360
1366
  }
1361
- ) }),
1367
+ ) : /* @__PURE__ */ e.jsx("span", { title: t, className: "text-white font-bold text-xl", children: s }) }),
1362
1368
  /* @__PURE__ */ e.jsx("div", { className: "block md:hidden", children: /* @__PURE__ */ e.jsx(
1363
1369
  "button",
1364
1370
  {
1365
1371
  className: "flex items-center px-3 py-2 hover:text-blue-100",
1366
- onClick: () => d(!h),
1372
+ onClick: () => d(!o),
1367
1373
  children: /* @__PURE__ */ e.jsxs(
1368
1374
  "svg",
1369
1375
  {
@@ -1381,34 +1387,26 @@ function N0({
1381
1387
  /* @__PURE__ */ e.jsxs(
1382
1388
  "div",
1383
1389
  {
1384
- 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"}`,
1385
1391
  children: [
1386
1392
  _?.length && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: _.map(
1387
- (x) => "items" in x ? /* @__PURE__ */ e.jsx(
1388
- t0,
1389
- {
1390
- label: x.label,
1391
- items: x.items
1392
- },
1393
- x.label
1394
- ) : /* @__PURE__ */ e.jsx(
1393
+ (m) => "items" in m ? /* @__PURE__ */ e.jsx(
1395
1394
  s0,
1396
1395
  {
1397
- label: x.label,
1398
- href: x.href,
1399
- active: p(x)
1396
+ label: m.label,
1397
+ items: m.items
1400
1398
  },
1401
- x.label
1402
- )
1399
+ m.label
1400
+ ) : /* @__PURE__ */ e.jsx(a0, { label: m.label, to: m.to }, m.label)
1403
1401
  ) }),
1404
- m,
1402
+ v,
1405
1403
  c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1406
1404
  "a",
1407
1405
  {
1408
1406
  href: c,
1409
- title: o || "GitHub",
1407
+ title: h || "GitHub",
1410
1408
  className: "text-white text-2xl",
1411
- children: n || /* @__PURE__ */ e.jsx(y, { icon: A1, size: "2xl" })
1409
+ children: n || /* @__PURE__ */ e.jsx(M, { icon: Z1, size: "2xl" })
1412
1410
  }
1413
1411
  ) })
1414
1412
  ]
@@ -1416,19 +1414,19 @@ function N0({
1416
1414
  )
1417
1415
  ] });
1418
1416
  }
1419
- function y0({ columns: s, data: r, defaultSort: l = [] }) {
1420
- const [t, c] = E(l), [n, o] = E(""), [m] = E(r), _ = T1({
1421
- 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,
1422
1420
  columns: s,
1423
1421
  state: {
1424
1422
  sorting: t,
1425
1423
  globalFilter: n
1426
1424
  },
1427
1425
  onSortingChange: c,
1428
- onGlobalFilterChange: o,
1429
- getCoreRowModel: S1(),
1426
+ onGlobalFilterChange: h,
1427
+ getCoreRowModel: R1(),
1430
1428
  getSortedRowModel: C1(),
1431
- getFilteredRowModel: R1(),
1429
+ getFilteredRowModel: A1(),
1432
1430
  debugTable: !0
1433
1431
  });
1434
1432
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -1437,7 +1435,7 @@ function y0({ columns: s, data: r, defaultSort: l = [] }) {
1437
1435
  V1,
1438
1436
  {
1439
1437
  value: n ?? "",
1440
- onChange: (h) => o(String(h)),
1438
+ onChange: (o) => h(String(o)),
1441
1439
  placeholder: "Search"
1442
1440
  }
1443
1441
  ),
@@ -1448,98 +1446,95 @@ function y0({ columns: s, data: r, defaultSort: l = [] }) {
1448
1446
  ] })
1449
1447
  ] }),
1450
1448
  /* @__PURE__ */ e.jsx("div", { className: "flex", children: /* @__PURE__ */ e.jsxs("table", { children: [
1451
- /* @__PURE__ */ e.jsx("thead", { children: _.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(
1452
1450
  "div",
1453
1451
  {
1454
1452
  className: d.column.getCanSort() ? "cursor-pointer select-none" : "",
1455
1453
  onClick: d.column.getToggleSortingHandler(),
1456
1454
  children: [
1457
- t1(
1455
+ a1(
1458
1456
  d.column.columnDef.header,
1459
1457
  d.getContext()
1460
1458
  ),
1461
1459
  " ",
1462
- /* @__PURE__ */ e.jsx(r0, { status: d.column.getIsSorted() })
1460
+ /* @__PURE__ */ e.jsx(t0, { status: d.column.getIsSorted() })
1463
1461
  ]
1464
1462
  }
1465
- ) }, d.id)) }, h.id)) }),
1466
- /* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((h, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: h.getVisibleCells().map((f) => /* @__PURE__ */ e.jsx("td", { children: t1(f.column.columnDef.cell, f.getContext()) }, f.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)) })
1467
1465
  ] }) })
1468
1466
  ] });
1469
1467
  }
1470
- function r0({ status: s }) {
1468
+ function t0({ status: s }) {
1471
1469
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1472
1470
  /* @__PURE__ */ e.jsx("span", { className: s !== "asc" ? "opacity-40" : "", children: "▲" }),
1473
1471
  /* @__PURE__ */ e.jsx("span", { className: s !== "desc" ? "opacity-40" : "", children: "▼" })
1474
1472
  ] });
1475
1473
  }
1476
- function k0({ data: s }) {
1477
- 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)) }) });
1478
- }
1479
- function l0(s) {
1480
- let r = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600";
1481
- 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)) }) });
1482
1477
  }
1483
- function Z0({ url: s }) {
1484
- const r = p1(null);
1485
- return z(() => {
1486
- const l = new P1();
1487
- for (; r.current?.firstChild; )
1488
- r.current.removeChild(r.current.firstChild);
1489
- l.getHTML5(s, (t) => {
1490
- r.current?.appendChild(t);
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);
1491
1486
  });
1492
- }, [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 }) });
1493
1488
  }
1494
- function A0({
1489
+ function k0({
1495
1490
  written: s,
1496
- premiere: r,
1497
- print: l,
1491
+ premiere: l,
1492
+ print: r,
1498
1493
  locale: t,
1499
1494
  labelPremiered: c = "premiered",
1500
1495
  labelPrinted: n = "printed",
1501
- labelWritten: o = "written"
1496
+ labelWritten: h = "written"
1502
1497
  }) {
1503
1498
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1504
1499
  s && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1505
- /* @__PURE__ */ e.jsxs("span", { title: o, children: [
1506
- /* @__PURE__ */ e.jsx(y, { icon: N1, size: "sm" }),
1500
+ /* @__PURE__ */ e.jsxs("span", { title: h, children: [
1501
+ /* @__PURE__ */ e.jsx(M, { icon: E1, size: "sm" }),
1507
1502
  " ",
1508
1503
  V(s, t)
1509
1504
  ] }),
1510
1505
  " "
1511
1506
  ] }),
1512
- r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1507
+ l && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1513
1508
  /* @__PURE__ */ e.jsxs("span", { title: c, children: [
1514
- /* @__PURE__ */ e.jsx(y, { icon: y1, size: "sm" }),
1509
+ /* @__PURE__ */ e.jsx(M, { icon: M1, size: "sm" }),
1515
1510
  " ",
1516
- V(r, t)
1511
+ V(l, t)
1517
1512
  ] }),
1518
1513
  " "
1519
1514
  ] }),
1520
- l && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1521
- /* @__PURE__ */ e.jsx(y, { icon: k1, size: "sm" }),
1515
+ r && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
1516
+ /* @__PURE__ */ e.jsx(M, { icon: N1, size: "sm" }),
1522
1517
  " ",
1523
- V(l, t)
1518
+ V(r, t)
1524
1519
  ] })
1525
1520
  ] });
1526
1521
  }
1527
1522
  export {
1528
- _0 as ApiDoc,
1529
- p0 as AuthorInfo,
1530
- j0 as Authors,
1523
+ u0 as ApiDoc,
1524
+ _0 as AuthorInfo,
1525
+ g0 as Authors,
1531
1526
  V1 as DebouncedInput,
1532
- b0 as DocPage,
1533
- w0 as DownloadButton,
1534
- E0 as IdCopy,
1535
- f1 as IdLink,
1536
- M0 as LanguageMenu,
1537
- N0 as NavBar,
1538
- Z0 as TEIText,
1539
- y0 as Table,
1540
- k0 as Tabs,
1541
- A0 as Years,
1542
- H as formatEra,
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,
1543
1538
  V as formatYear
1544
1539
  };
1545
1540
  //# sourceMappingURL=index.es.js.map