col-browser 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/es/bibtex.js +8 -0
  2. package/es/bibtex.js.map +1 -0
  3. package/es/chunks/AntdIcon-B1nMlqyh.js +984 -0
  4. package/es/chunks/AntdIcon-B1nMlqyh.js.map +1 -0
  5. package/es/chunks/BibTex-BqzD3qLB.js +13 -0
  6. package/es/chunks/BibTex-BqzD3qLB.js.map +1 -0
  7. package/es/chunks/DatasetCitation-bkPmDDYB.js +119 -0
  8. package/es/chunks/DatasetCitation-bkPmDDYB.js.map +1 -0
  9. package/es/chunks/DatasetlogoWithFallback-CbP7vRs_.js +823 -0
  10. package/es/chunks/DatasetlogoWithFallback-CbP7vRs_.js.map +1 -0
  11. package/es/chunks/Distributions-DDYEbGhW.js +1110 -0
  12. package/es/chunks/Distributions-DDYEbGhW.js.map +1 -0
  13. package/es/chunks/ErrorMsg-K8k5PPTp.js +26 -0
  14. package/es/chunks/ErrorMsg-K8k5PPTp.js.map +1 -0
  15. package/es/chunks/LinkOutlined-2IkQWTV7.js +22 -0
  16. package/es/chunks/LinkOutlined-2IkQWTV7.js.map +1 -0
  17. package/es/chunks/MergedDataBadge-DsTsn5Xu.js +134 -0
  18. package/es/chunks/MergedDataBadge-DsTsn5Xu.js.map +1 -0
  19. package/es/chunks/MetricsPresentation-U_CO8JoH.js +66 -0
  20. package/es/chunks/MetricsPresentation-U_CO8JoH.js.map +1 -0
  21. package/es/chunks/TaxonBreakdown-BshFaQql.js +205 -0
  22. package/es/chunks/TaxonBreakdown-BshFaQql.js.map +1 -0
  23. package/es/chunks/config-BPRXv9x8.js +31 -0
  24. package/es/chunks/config-BPRXv9x8.js.map +1 -0
  25. package/es/chunks/dataset-DvQG4NjA.js +30 -0
  26. package/es/chunks/dataset-DvQG4NjA.js.map +1 -0
  27. package/es/chunks/enumeration-yDQXSZsf.js +12 -0
  28. package/es/chunks/enumeration-yDQXSZsf.js.map +1 -0
  29. package/es/chunks/index-CNK3JADR.js +95 -0
  30. package/es/chunks/index-CNK3JADR.js.map +1 -0
  31. package/es/chunks/jsx-runtime-BzflLqGi.js +283 -0
  32. package/es/chunks/jsx-runtime-BzflLqGi.js.map +1 -0
  33. package/es/chunks/router-CssZk5qZ.js +109 -0
  34. package/es/chunks/router-CssZk5qZ.js.map +1 -0
  35. package/es/chunks/sector-BnVzMnMO.js +9 -0
  36. package/es/chunks/sector-BnVzMnMO.js.map +1 -0
  37. package/es/chunks/withDatasetKey-BgMY05XE.js +48 -0
  38. package/es/chunks/withDatasetKey-BgMY05XE.js.map +1 -0
  39. package/es/col-browser.css +1 -1
  40. package/es/index.js +18 -7964
  41. package/es/index.js.map +1 -1
  42. package/es/routing.js +5 -0
  43. package/es/routing.js.map +1 -0
  44. package/es/search.js +803 -0
  45. package/es/search.js.map +1 -0
  46. package/es/sourceDataset.js +453 -0
  47. package/es/sourceDataset.js.map +1 -0
  48. package/es/sourceDatasetList.js +366 -0
  49. package/es/sourceDatasetList.js.map +1 -0
  50. package/es/taxon.js +1643 -0
  51. package/es/taxon.js.map +1 -0
  52. package/es/taxonBreakdown.js +42 -0
  53. package/es/taxonBreakdown.js.map +1 -0
  54. package/es/taxonDistribution.js +48 -0
  55. package/es/taxonDistribution.js.map +1 -0
  56. package/es/tree.js +821 -0
  57. package/es/tree.js.map +1 -0
  58. package/package.json +48 -7
  59. package/types/bibtex.d.ts +1 -0
  60. package/types/index.d.ts +158 -0
  61. package/types/routing.d.ts +1 -0
  62. package/types/search.d.ts +1 -0
  63. package/types/sourceDataset.d.ts +1 -0
  64. package/types/sourceDatasetList.d.ts +1 -0
  65. package/types/taxon.d.ts +1 -0
  66. package/types/taxonBreakdown.d.ts +1 -0
  67. package/types/taxonDistribution.d.ts +1 -0
  68. package/types/tree.d.ts +1 -0
  69. package/umd/col-browser.js +20478 -27048
  70. package/umd/col-browser.js.map +1 -1
  71. package/umd/col-browser.min.js +5 -13
  72. package/umd/col-browser.min.js.map +1 -1
@@ -0,0 +1,823 @@
1
+ var $e = Object.defineProperty;
2
+ var De = (r, s, a) => s in r ? $e(r, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[s] = a;
3
+ var Y = (r, s, a) => De(r, typeof s != "symbol" ? s + "" : s, a);
4
+ import { j as D } from "./jsx-runtime-BzflLqGi.js";
5
+ import * as _e from "react";
6
+ import pe from "react";
7
+ import Ce from "react-jss";
8
+ import { Tooltip as Le, Row as We, Col as me } from "antd";
9
+ import { I as qe } from "./AntdIcon-B1nMlqyh.js";
10
+ import { c as ke } from "./config-BPRXv9x8.js";
11
+ function Ye(r) {
12
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
13
+ }
14
+ var ze = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" };
15
+ function fe() {
16
+ return fe = Object.assign ? Object.assign.bind() : function(r) {
17
+ for (var s = 1; s < arguments.length; s++) {
18
+ var a = arguments[s];
19
+ for (var i in a)
20
+ Object.prototype.hasOwnProperty.call(a, i) && (r[i] = a[i]);
21
+ }
22
+ return r;
23
+ }, fe.apply(this, arguments);
24
+ }
25
+ const Ue = (r, s) => /* @__PURE__ */ _e.createElement(qe, fe({}, r, {
26
+ ref: s,
27
+ icon: ze
28
+ })), Ae = /* @__PURE__ */ _e.forwardRef(Ue);
29
+ process.env.NODE_ENV !== "production" && (Ae.displayName = "QuestionCircleOutlined");
30
+ const Be = 4, Fe = 3, le = 2, Ne = 1, M = class M extends pe.Component {
31
+ // static SMALL_WIDTH = 576;
32
+ constructor(a) {
33
+ super(a);
34
+ Y(this, "handleResize", () => {
35
+ clearTimeout(this.deferTime), this.deferTime = setTimeout(
36
+ () => {
37
+ this.updateWidth();
38
+ },
39
+ this.resizeInterval
40
+ );
41
+ });
42
+ Y(this, "updateWidth", () => {
43
+ let a = this.getViewportWidth(), i;
44
+ a >= M.EXTRA_LARGE_WIDTH ? i = M.EXTRA_LARGE : a >= M.LARGE_WIDTH ? i = M.LARGE : a >= M.MEDIUM_WIDTH ? i = M.MEDIUM : i = M.SMALL, i !== this.state.width && this.setState({
45
+ width: i
46
+ });
47
+ });
48
+ this.deferTime = null, this.resizeInterval = 166, this.state = { width: null };
49
+ }
50
+ componentDidMount() {
51
+ window && window.addEventListener("resize", this.handleResize), this.updateWidth();
52
+ }
53
+ componentWillUnmount() {
54
+ window && window.removeEventListener("resize", this.handleResize), clearTimeout(this.deferTime);
55
+ }
56
+ getViewportWidth() {
57
+ return window.innerWidth && document.documentElement.clientWidth ? Math.min(window.innerWidth, document.documentElement.clientWidth) : window.innerWidth || document.documentElement.clientWidth || document.querySelector("body").clientWidth;
58
+ }
59
+ render() {
60
+ return this.props.children(this.state.width);
61
+ }
62
+ };
63
+ Y(M, "EXTRA_LARGE", Be), Y(M, "LARGE", Fe), Y(M, "MEDIUM", le), Y(M, "SMALL", Ne), // Like a Bootstrap Grid Layout
64
+ Y(M, "EXTRA_LARGE_WIDTH", 1200), Y(M, "LARGE_WIDTH", 992), Y(M, "MEDIUM_WIDTH", 768);
65
+ let de = M;
66
+ const Ge = () => (r) => {
67
+ class s extends de {
68
+ render() {
69
+ return /* @__PURE__ */ D.jsx(r, { ...this.props, width: this.state.width });
70
+ }
71
+ }
72
+ return s;
73
+ };
74
+ var V = { exports: {} }, X = { exports: {} }, g = {};
75
+ /** @license React v16.13.1
76
+ * react-is.production.min.js
77
+ *
78
+ * Copyright (c) Facebook, Inc. and its affiliates.
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ */
83
+ var he;
84
+ function He() {
85
+ if (he) return g;
86
+ he = 1;
87
+ var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, a = r ? Symbol.for("react.portal") : 60106, i = r ? Symbol.for("react.fragment") : 60107, T = r ? Symbol.for("react.strict_mode") : 60108, c = r ? Symbol.for("react.profiler") : 60114, w = r ? Symbol.for("react.provider") : 60109, f = r ? Symbol.for("react.context") : 60110, P = r ? Symbol.for("react.async_mode") : 60111, O = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, _ = r ? Symbol.for("react.suspense_list") : 60120, C = r ? Symbol.for("react.memo") : 60115, L = r ? Symbol.for("react.lazy") : 60116, x = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, W = r ? Symbol.for("react.responder") : 60118, F = r ? Symbol.for("react.scope") : 60119;
88
+ function j(n) {
89
+ if (typeof n == "object" && n !== null) {
90
+ var z = n.$$typeof;
91
+ switch (z) {
92
+ case s:
93
+ switch (n = n.type, n) {
94
+ case P:
95
+ case O:
96
+ case i:
97
+ case c:
98
+ case T:
99
+ case E:
100
+ return n;
101
+ default:
102
+ switch (n = n && n.$$typeof, n) {
103
+ case f:
104
+ case v:
105
+ case L:
106
+ case C:
107
+ case w:
108
+ return n;
109
+ default:
110
+ return z;
111
+ }
112
+ }
113
+ case a:
114
+ return z;
115
+ }
116
+ }
117
+ }
118
+ function A(n) {
119
+ return j(n) === O;
120
+ }
121
+ return g.AsyncMode = P, g.ConcurrentMode = O, g.ContextConsumer = f, g.ContextProvider = w, g.Element = s, g.ForwardRef = v, g.Fragment = i, g.Lazy = L, g.Memo = C, g.Portal = a, g.Profiler = c, g.StrictMode = T, g.Suspense = E, g.isAsyncMode = function(n) {
122
+ return A(n) || j(n) === P;
123
+ }, g.isConcurrentMode = A, g.isContextConsumer = function(n) {
124
+ return j(n) === f;
125
+ }, g.isContextProvider = function(n) {
126
+ return j(n) === w;
127
+ }, g.isElement = function(n) {
128
+ return typeof n == "object" && n !== null && n.$$typeof === s;
129
+ }, g.isForwardRef = function(n) {
130
+ return j(n) === v;
131
+ }, g.isFragment = function(n) {
132
+ return j(n) === i;
133
+ }, g.isLazy = function(n) {
134
+ return j(n) === L;
135
+ }, g.isMemo = function(n) {
136
+ return j(n) === C;
137
+ }, g.isPortal = function(n) {
138
+ return j(n) === a;
139
+ }, g.isProfiler = function(n) {
140
+ return j(n) === c;
141
+ }, g.isStrictMode = function(n) {
142
+ return j(n) === T;
143
+ }, g.isSuspense = function(n) {
144
+ return j(n) === E;
145
+ }, g.isValidElementType = function(n) {
146
+ return typeof n == "string" || typeof n == "function" || n === i || n === O || n === c || n === T || n === E || n === _ || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === C || n.$$typeof === w || n.$$typeof === f || n.$$typeof === v || n.$$typeof === I || n.$$typeof === W || n.$$typeof === F || n.$$typeof === x);
147
+ }, g.typeOf = j, g;
148
+ }
149
+ var R = {};
150
+ /** @license React v16.13.1
151
+ * react-is.development.js
152
+ *
153
+ * Copyright (c) Facebook, Inc. and its affiliates.
154
+ *
155
+ * This source code is licensed under the MIT license found in the
156
+ * LICENSE file in the root directory of this source tree.
157
+ */
158
+ var be;
159
+ function Ve() {
160
+ return be || (be = 1, process.env.NODE_ENV !== "production" && (function() {
161
+ var r = typeof Symbol == "function" && Symbol.for, s = r ? Symbol.for("react.element") : 60103, a = r ? Symbol.for("react.portal") : 60106, i = r ? Symbol.for("react.fragment") : 60107, T = r ? Symbol.for("react.strict_mode") : 60108, c = r ? Symbol.for("react.profiler") : 60114, w = r ? Symbol.for("react.provider") : 60109, f = r ? Symbol.for("react.context") : 60110, P = r ? Symbol.for("react.async_mode") : 60111, O = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, _ = r ? Symbol.for("react.suspense_list") : 60120, C = r ? Symbol.for("react.memo") : 60115, L = r ? Symbol.for("react.lazy") : 60116, x = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, W = r ? Symbol.for("react.responder") : 60118, F = r ? Symbol.for("react.scope") : 60119;
162
+ function j(t) {
163
+ return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
164
+ t === i || t === O || t === c || t === T || t === E || t === _ || typeof t == "object" && t !== null && (t.$$typeof === L || t.$$typeof === C || t.$$typeof === w || t.$$typeof === f || t.$$typeof === v || t.$$typeof === I || t.$$typeof === W || t.$$typeof === F || t.$$typeof === x);
165
+ }
166
+ function A(t) {
167
+ if (typeof t == "object" && t !== null) {
168
+ var k = t.$$typeof;
169
+ switch (k) {
170
+ case s:
171
+ var H = t.type;
172
+ switch (H) {
173
+ case P:
174
+ case O:
175
+ case i:
176
+ case c:
177
+ case T:
178
+ case E:
179
+ return H;
180
+ default:
181
+ var ve = H && H.$$typeof;
182
+ switch (ve) {
183
+ case f:
184
+ case v:
185
+ case L:
186
+ case C:
187
+ case w:
188
+ return ve;
189
+ default:
190
+ return k;
191
+ }
192
+ }
193
+ case a:
194
+ return k;
195
+ }
196
+ }
197
+ }
198
+ var n = P, z = O, J = f, K = w, Q = s, Z = v, N = i, ee = L, re = C, B = a, te = c, q = T, U = E, G = !1;
199
+ function ne(t) {
200
+ return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(t) || A(t) === P;
201
+ }
202
+ function e(t) {
203
+ return A(t) === O;
204
+ }
205
+ function o(t) {
206
+ return A(t) === f;
207
+ }
208
+ function y(t) {
209
+ return A(t) === w;
210
+ }
211
+ function d(t) {
212
+ return typeof t == "object" && t !== null && t.$$typeof === s;
213
+ }
214
+ function u(t) {
215
+ return A(t) === v;
216
+ }
217
+ function m(t) {
218
+ return A(t) === i;
219
+ }
220
+ function l(t) {
221
+ return A(t) === L;
222
+ }
223
+ function p(t) {
224
+ return A(t) === C;
225
+ }
226
+ function h(t) {
227
+ return A(t) === a;
228
+ }
229
+ function S(t) {
230
+ return A(t) === c;
231
+ }
232
+ function b(t) {
233
+ return A(t) === T;
234
+ }
235
+ function $(t) {
236
+ return A(t) === E;
237
+ }
238
+ R.AsyncMode = n, R.ConcurrentMode = z, R.ContextConsumer = J, R.ContextProvider = K, R.Element = Q, R.ForwardRef = Z, R.Fragment = N, R.Lazy = ee, R.Memo = re, R.Portal = B, R.Profiler = te, R.StrictMode = q, R.Suspense = U, R.isAsyncMode = ne, R.isConcurrentMode = e, R.isContextConsumer = o, R.isContextProvider = y, R.isElement = d, R.isForwardRef = u, R.isFragment = m, R.isLazy = l, R.isMemo = p, R.isPortal = h, R.isProfiler = S, R.isStrictMode = b, R.isSuspense = $, R.isValidElementType = j, R.typeOf = A;
239
+ })()), R;
240
+ }
241
+ var Ee;
242
+ function je() {
243
+ return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? X.exports = He() : X.exports = Ve()), X.exports;
244
+ }
245
+ /*
246
+ object-assign
247
+ (c) Sindre Sorhus
248
+ @license MIT
249
+ */
250
+ var oe, Te;
251
+ function Xe() {
252
+ if (Te) return oe;
253
+ Te = 1;
254
+ var r = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
255
+ function i(c) {
256
+ if (c == null)
257
+ throw new TypeError("Object.assign cannot be called with null or undefined");
258
+ return Object(c);
259
+ }
260
+ function T() {
261
+ try {
262
+ if (!Object.assign)
263
+ return !1;
264
+ var c = new String("abc");
265
+ if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
266
+ return !1;
267
+ for (var w = {}, f = 0; f < 10; f++)
268
+ w["_" + String.fromCharCode(f)] = f;
269
+ var P = Object.getOwnPropertyNames(w).map(function(v) {
270
+ return w[v];
271
+ });
272
+ if (P.join("") !== "0123456789")
273
+ return !1;
274
+ var O = {};
275
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
276
+ O[v] = v;
277
+ }), Object.keys(Object.assign({}, O)).join("") === "abcdefghijklmnopqrst";
278
+ } catch {
279
+ return !1;
280
+ }
281
+ }
282
+ return oe = T() ? Object.assign : function(c, w) {
283
+ for (var f, P = i(c), O, v = 1; v < arguments.length; v++) {
284
+ f = Object(arguments[v]);
285
+ for (var E in f)
286
+ s.call(f, E) && (P[E] = f[E]);
287
+ if (r) {
288
+ O = r(f);
289
+ for (var _ = 0; _ < O.length; _++)
290
+ a.call(f, O[_]) && (P[O[_]] = f[O[_]]);
291
+ }
292
+ }
293
+ return P;
294
+ }, oe;
295
+ }
296
+ var ie, ge;
297
+ function ye() {
298
+ if (ge) return ie;
299
+ ge = 1;
300
+ var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
301
+ return ie = r, ie;
302
+ }
303
+ var ae, Re;
304
+ function Ie() {
305
+ return Re || (Re = 1, ae = Function.call.bind(Object.prototype.hasOwnProperty)), ae;
306
+ }
307
+ var se, we;
308
+ function Je() {
309
+ if (we) return se;
310
+ we = 1;
311
+ var r = function() {
312
+ };
313
+ if (process.env.NODE_ENV !== "production") {
314
+ var s = /* @__PURE__ */ ye(), a = {}, i = /* @__PURE__ */ Ie();
315
+ r = function(c) {
316
+ var w = "Warning: " + c;
317
+ typeof console < "u" && console.error(w);
318
+ try {
319
+ throw new Error(w);
320
+ } catch {
321
+ }
322
+ };
323
+ }
324
+ function T(c, w, f, P, O) {
325
+ if (process.env.NODE_ENV !== "production") {
326
+ for (var v in c)
327
+ if (i(c, v)) {
328
+ var E;
329
+ try {
330
+ if (typeof c[v] != "function") {
331
+ var _ = Error(
332
+ (P || "React class") + ": " + f + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
333
+ );
334
+ throw _.name = "Invariant Violation", _;
335
+ }
336
+ E = c[v](w, v, P, f, null, s);
337
+ } catch (L) {
338
+ E = L;
339
+ }
340
+ if (E && !(E instanceof Error) && r(
341
+ (P || "React class") + ": type specification of " + f + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
342
+ ), E instanceof Error && !(E.message in a)) {
343
+ a[E.message] = !0;
344
+ var C = O ? O() : "";
345
+ r(
346
+ "Failed " + f + " type: " + E.message + (C ?? "")
347
+ );
348
+ }
349
+ }
350
+ }
351
+ }
352
+ return T.resetWarningCache = function() {
353
+ process.env.NODE_ENV !== "production" && (a = {});
354
+ }, se = T, se;
355
+ }
356
+ var ce, Se;
357
+ function Ke() {
358
+ if (Se) return ce;
359
+ Se = 1;
360
+ var r = je(), s = Xe(), a = /* @__PURE__ */ ye(), i = /* @__PURE__ */ Ie(), T = /* @__PURE__ */ Je(), c = function() {
361
+ };
362
+ process.env.NODE_ENV !== "production" && (c = function(f) {
363
+ var P = "Warning: " + f;
364
+ typeof console < "u" && console.error(P);
365
+ try {
366
+ throw new Error(P);
367
+ } catch {
368
+ }
369
+ });
370
+ function w() {
371
+ return null;
372
+ }
373
+ return ce = function(f, P) {
374
+ var O = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
375
+ function E(e) {
376
+ var o = e && (O && e[O] || e[v]);
377
+ if (typeof o == "function")
378
+ return o;
379
+ }
380
+ var _ = "<<anonymous>>", C = {
381
+ array: W("array"),
382
+ bigint: W("bigint"),
383
+ bool: W("boolean"),
384
+ func: W("function"),
385
+ number: W("number"),
386
+ object: W("object"),
387
+ string: W("string"),
388
+ symbol: W("symbol"),
389
+ any: F(),
390
+ arrayOf: j,
391
+ element: A(),
392
+ elementType: n(),
393
+ instanceOf: z,
394
+ node: Z(),
395
+ objectOf: K,
396
+ oneOf: J,
397
+ oneOfType: Q,
398
+ shape: ee,
399
+ exact: re
400
+ };
401
+ function L(e, o) {
402
+ return e === o ? e !== 0 || 1 / e === 1 / o : e !== e && o !== o;
403
+ }
404
+ function x(e, o) {
405
+ this.message = e, this.data = o && typeof o == "object" ? o : {}, this.stack = "";
406
+ }
407
+ x.prototype = Error.prototype;
408
+ function I(e) {
409
+ if (process.env.NODE_ENV !== "production")
410
+ var o = {}, y = 0;
411
+ function d(m, l, p, h, S, b, $) {
412
+ if (h = h || _, b = b || p, $ !== a) {
413
+ if (P) {
414
+ var t = new Error(
415
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
416
+ );
417
+ throw t.name = "Invariant Violation", t;
418
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
419
+ var k = h + ":" + p;
420
+ !o[k] && // Avoid spamming the console because they are often not actionable except for lib authors
421
+ y < 3 && (c(
422
+ "You are manually calling a React.PropTypes validation function for the `" + b + "` prop on `" + h + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
423
+ ), o[k] = !0, y++);
424
+ }
425
+ }
426
+ return l[p] == null ? m ? l[p] === null ? new x("The " + S + " `" + b + "` is marked as required " + ("in `" + h + "`, but its value is `null`.")) : new x("The " + S + " `" + b + "` is marked as required in " + ("`" + h + "`, but its value is `undefined`.")) : null : e(l, p, h, S, b);
427
+ }
428
+ var u = d.bind(null, !1);
429
+ return u.isRequired = d.bind(null, !0), u;
430
+ }
431
+ function W(e) {
432
+ function o(y, d, u, m, l, p) {
433
+ var h = y[d], S = q(h);
434
+ if (S !== e) {
435
+ var b = U(h);
436
+ return new x(
437
+ "Invalid " + m + " `" + l + "` of type " + ("`" + b + "` supplied to `" + u + "`, expected ") + ("`" + e + "`."),
438
+ { expectedType: e }
439
+ );
440
+ }
441
+ return null;
442
+ }
443
+ return I(o);
444
+ }
445
+ function F() {
446
+ return I(w);
447
+ }
448
+ function j(e) {
449
+ function o(y, d, u, m, l) {
450
+ if (typeof e != "function")
451
+ return new x("Property `" + l + "` of component `" + u + "` has invalid PropType notation inside arrayOf.");
452
+ var p = y[d];
453
+ if (!Array.isArray(p)) {
454
+ var h = q(p);
455
+ return new x("Invalid " + m + " `" + l + "` of type " + ("`" + h + "` supplied to `" + u + "`, expected an array."));
456
+ }
457
+ for (var S = 0; S < p.length; S++) {
458
+ var b = e(p, S, u, m, l + "[" + S + "]", a);
459
+ if (b instanceof Error)
460
+ return b;
461
+ }
462
+ return null;
463
+ }
464
+ return I(o);
465
+ }
466
+ function A() {
467
+ function e(o, y, d, u, m) {
468
+ var l = o[y];
469
+ if (!f(l)) {
470
+ var p = q(l);
471
+ return new x("Invalid " + u + " `" + m + "` of type " + ("`" + p + "` supplied to `" + d + "`, expected a single ReactElement."));
472
+ }
473
+ return null;
474
+ }
475
+ return I(e);
476
+ }
477
+ function n() {
478
+ function e(o, y, d, u, m) {
479
+ var l = o[y];
480
+ if (!r.isValidElementType(l)) {
481
+ var p = q(l);
482
+ return new x("Invalid " + u + " `" + m + "` of type " + ("`" + p + "` supplied to `" + d + "`, expected a single ReactElement type."));
483
+ }
484
+ return null;
485
+ }
486
+ return I(e);
487
+ }
488
+ function z(e) {
489
+ function o(y, d, u, m, l) {
490
+ if (!(y[d] instanceof e)) {
491
+ var p = e.name || _, h = ne(y[d]);
492
+ return new x("Invalid " + m + " `" + l + "` of type " + ("`" + h + "` supplied to `" + u + "`, expected ") + ("instance of `" + p + "`."));
493
+ }
494
+ return null;
495
+ }
496
+ return I(o);
497
+ }
498
+ function J(e) {
499
+ if (!Array.isArray(e))
500
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
501
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
502
+ ) : c("Invalid argument supplied to oneOf, expected an array.")), w;
503
+ function o(y, d, u, m, l) {
504
+ for (var p = y[d], h = 0; h < e.length; h++)
505
+ if (L(p, e[h]))
506
+ return null;
507
+ var S = JSON.stringify(e, function($, t) {
508
+ var k = U(t);
509
+ return k === "symbol" ? String(t) : t;
510
+ });
511
+ return new x("Invalid " + m + " `" + l + "` of value `" + String(p) + "` " + ("supplied to `" + u + "`, expected one of " + S + "."));
512
+ }
513
+ return I(o);
514
+ }
515
+ function K(e) {
516
+ function o(y, d, u, m, l) {
517
+ if (typeof e != "function")
518
+ return new x("Property `" + l + "` of component `" + u + "` has invalid PropType notation inside objectOf.");
519
+ var p = y[d], h = q(p);
520
+ if (h !== "object")
521
+ return new x("Invalid " + m + " `" + l + "` of type " + ("`" + h + "` supplied to `" + u + "`, expected an object."));
522
+ for (var S in p)
523
+ if (i(p, S)) {
524
+ var b = e(p, S, u, m, l + "." + S, a);
525
+ if (b instanceof Error)
526
+ return b;
527
+ }
528
+ return null;
529
+ }
530
+ return I(o);
531
+ }
532
+ function Q(e) {
533
+ if (!Array.isArray(e))
534
+ return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), w;
535
+ for (var o = 0; o < e.length; o++) {
536
+ var y = e[o];
537
+ if (typeof y != "function")
538
+ return c(
539
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(y) + " at index " + o + "."
540
+ ), w;
541
+ }
542
+ function d(u, m, l, p, h) {
543
+ for (var S = [], b = 0; b < e.length; b++) {
544
+ var $ = e[b], t = $(u, m, l, p, h, a);
545
+ if (t == null)
546
+ return null;
547
+ t.data && i(t.data, "expectedType") && S.push(t.data.expectedType);
548
+ }
549
+ var k = S.length > 0 ? ", expected one of type [" + S.join(", ") + "]" : "";
550
+ return new x("Invalid " + p + " `" + h + "` supplied to " + ("`" + l + "`" + k + "."));
551
+ }
552
+ return I(d);
553
+ }
554
+ function Z() {
555
+ function e(o, y, d, u, m) {
556
+ return B(o[y]) ? null : new x("Invalid " + u + " `" + m + "` supplied to " + ("`" + d + "`, expected a ReactNode."));
557
+ }
558
+ return I(e);
559
+ }
560
+ function N(e, o, y, d, u) {
561
+ return new x(
562
+ (e || "React class") + ": " + o + " type `" + y + "." + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + u + "`."
563
+ );
564
+ }
565
+ function ee(e) {
566
+ function o(y, d, u, m, l) {
567
+ var p = y[d], h = q(p);
568
+ if (h !== "object")
569
+ return new x("Invalid " + m + " `" + l + "` of type `" + h + "` " + ("supplied to `" + u + "`, expected `object`."));
570
+ for (var S in e) {
571
+ var b = e[S];
572
+ if (typeof b != "function")
573
+ return N(u, m, l, S, U(b));
574
+ var $ = b(p, S, u, m, l + "." + S, a);
575
+ if ($)
576
+ return $;
577
+ }
578
+ return null;
579
+ }
580
+ return I(o);
581
+ }
582
+ function re(e) {
583
+ function o(y, d, u, m, l) {
584
+ var p = y[d], h = q(p);
585
+ if (h !== "object")
586
+ return new x("Invalid " + m + " `" + l + "` of type `" + h + "` " + ("supplied to `" + u + "`, expected `object`."));
587
+ var S = s({}, y[d], e);
588
+ for (var b in S) {
589
+ var $ = e[b];
590
+ if (i(e, b) && typeof $ != "function")
591
+ return N(u, m, l, b, U($));
592
+ if (!$)
593
+ return new x(
594
+ "Invalid " + m + " `" + l + "` key `" + b + "` supplied to `" + u + "`.\nBad object: " + JSON.stringify(y[d], null, " ") + `
595
+ Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
596
+ );
597
+ var t = $(p, b, u, m, l + "." + b, a);
598
+ if (t)
599
+ return t;
600
+ }
601
+ return null;
602
+ }
603
+ return I(o);
604
+ }
605
+ function B(e) {
606
+ switch (typeof e) {
607
+ case "number":
608
+ case "string":
609
+ case "undefined":
610
+ return !0;
611
+ case "boolean":
612
+ return !e;
613
+ case "object":
614
+ if (Array.isArray(e))
615
+ return e.every(B);
616
+ if (e === null || f(e))
617
+ return !0;
618
+ var o = E(e);
619
+ if (o) {
620
+ var y = o.call(e), d;
621
+ if (o !== e.entries) {
622
+ for (; !(d = y.next()).done; )
623
+ if (!B(d.value))
624
+ return !1;
625
+ } else
626
+ for (; !(d = y.next()).done; ) {
627
+ var u = d.value;
628
+ if (u && !B(u[1]))
629
+ return !1;
630
+ }
631
+ } else
632
+ return !1;
633
+ return !0;
634
+ default:
635
+ return !1;
636
+ }
637
+ }
638
+ function te(e, o) {
639
+ return e === "symbol" ? !0 : o ? o["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && o instanceof Symbol : !1;
640
+ }
641
+ function q(e) {
642
+ var o = typeof e;
643
+ return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : te(o, e) ? "symbol" : o;
644
+ }
645
+ function U(e) {
646
+ if (typeof e > "u" || e === null)
647
+ return "" + e;
648
+ var o = q(e);
649
+ if (o === "object") {
650
+ if (e instanceof Date)
651
+ return "date";
652
+ if (e instanceof RegExp)
653
+ return "regexp";
654
+ }
655
+ return o;
656
+ }
657
+ function G(e) {
658
+ var o = U(e);
659
+ switch (o) {
660
+ case "array":
661
+ case "object":
662
+ return "an " + o;
663
+ case "boolean":
664
+ case "date":
665
+ case "regexp":
666
+ return "a " + o;
667
+ default:
668
+ return o;
669
+ }
670
+ }
671
+ function ne(e) {
672
+ return !e.constructor || !e.constructor.name ? _ : e.constructor.name;
673
+ }
674
+ return C.checkPropTypes = T, C.resetWarningCache = T.resetWarningCache, C.PropTypes = C, C;
675
+ }, ce;
676
+ }
677
+ var ue, Oe;
678
+ function Qe() {
679
+ if (Oe) return ue;
680
+ Oe = 1;
681
+ var r = /* @__PURE__ */ ye();
682
+ function s() {
683
+ }
684
+ function a() {
685
+ }
686
+ return a.resetWarningCache = s, ue = function() {
687
+ function i(w, f, P, O, v, E) {
688
+ if (E !== r) {
689
+ var _ = new Error(
690
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
691
+ );
692
+ throw _.name = "Invariant Violation", _;
693
+ }
694
+ }
695
+ i.isRequired = i;
696
+ function T() {
697
+ return i;
698
+ }
699
+ var c = {
700
+ array: i,
701
+ bigint: i,
702
+ bool: i,
703
+ func: i,
704
+ number: i,
705
+ object: i,
706
+ string: i,
707
+ symbol: i,
708
+ any: i,
709
+ arrayOf: T,
710
+ element: i,
711
+ elementType: i,
712
+ instanceOf: T,
713
+ node: i,
714
+ objectOf: T,
715
+ oneOf: T,
716
+ oneOfType: T,
717
+ shape: T,
718
+ exact: T,
719
+ checkPropTypes: a,
720
+ resetWarningCache: s
721
+ };
722
+ return c.PropTypes = c, c;
723
+ }, ue;
724
+ }
725
+ var Pe;
726
+ function Ze() {
727
+ if (Pe) return V.exports;
728
+ if (Pe = 1, process.env.NODE_ENV !== "production") {
729
+ var r = je(), s = !0;
730
+ V.exports = /* @__PURE__ */ Ke()(r.isElement, s);
731
+ } else
732
+ V.exports = /* @__PURE__ */ Qe()();
733
+ return V.exports;
734
+ }
735
+ var er = /* @__PURE__ */ Ze();
736
+ const xe = /* @__PURE__ */ Ye(er), rr = {
737
+ tip: {
738
+ color: "rgba(0,0,0,.45)",
739
+ marginLeft: "4px"
740
+ },
741
+ icon: {
742
+ marginTop: "4px"
743
+ }
744
+ }, tr = ({ title: r, classes: s }) => /* @__PURE__ */ D.jsx(pe.Fragment, { children: r && /* @__PURE__ */ D.jsx("span", { className: s.tip, children: /* @__PURE__ */ D.jsx(Le, { title: r, getPopupContainer: () => document.getElementsByClassName("catalogue-of-life")[0], children: /* @__PURE__ */ D.jsx(Ae, { className: s.icon }) }) }) }), nr = Ce(rr)(tr), or = {
745
+ formItem: {
746
+ paddingBottom: 0,
747
+ width: "100%",
748
+ clear: "both",
749
+ borderBottom: "1px solid #eee",
750
+ "&:last-of-type": {
751
+ border: "none"
752
+ },
753
+ "&>div": {
754
+ paddingLeft: 10,
755
+ paddingRight: 10
756
+ }
757
+ },
758
+ label: {
759
+ display: "block",
760
+ color: "rgba(0, 0, 0, 0.85)"
761
+ },
762
+ content: {
763
+ wordBreak: "break-word",
764
+ marginBottom: 0
765
+ },
766
+ noContent: {
767
+ wordBreak: "break-word",
768
+ color: "#bbb",
769
+ marginBottom: 0
770
+ },
771
+ contentCol: {
772
+ wordBreak: "break-word"
773
+ },
774
+ smallMargin: {
775
+ marginBottom: 3,
776
+ marginTop: 3
777
+ },
778
+ mediumMargin: {
779
+ marginBottom: 10,
780
+ marginTop: 10
781
+ }
782
+ }, Me = ({ label: r, helpText: s, classes: a, children: i, width: T, md: c, size: w }) => {
783
+ const f = () => {
784
+ let E;
785
+ return Array.isArray(i) && i.length > 0 ? E = i.map((_, C) => /* @__PURE__ */ D.jsx("span", { className: a.content, children: _ }, C)) : !Array.isArray(i) && typeof i < "u" && (E = /* @__PURE__ */ D.jsx("span", { className: a.content, children: i })), E;
786
+ }, P = c || 8, O = P < 24 ? 24 - P : 24, v = w === "medium" ? a.mediumMargin : a.smallMargin;
787
+ return /* @__PURE__ */ D.jsxs(We, { className: a.formItem, children: [
788
+ /* @__PURE__ */ D.jsx(me, { sm: 24, md: P, style: T < le ? { marginBottom: 0 } : {}, className: v, children: /* @__PURE__ */ D.jsx("div", { children: /* @__PURE__ */ D.jsxs("dt", { className: a.label, children: [
789
+ r,
790
+ /* @__PURE__ */ D.jsx(nr, { title: s })
791
+ ] }) }) }),
792
+ /* @__PURE__ */ D.jsx(me, { sm: 24, md: O, style: T < le ? { marginTop: 0 } : {}, className: v, children: f() })
793
+ ] });
794
+ };
795
+ Me.propTypes = {
796
+ label: xe.string.isRequired,
797
+ helpText: xe.object
798
+ };
799
+ const dr = Ge()(Ce(or)(Me));
800
+ class pr extends pe.Component {
801
+ constructor(s) {
802
+ super(s), this.state = { error: !0, loading: !0 };
803
+ }
804
+ render() {
805
+ const { fallBack: s = null, datasetKey: a, sourceDatasetKey: i, style: T, size: c = "MEDIUM" } = this.props, { error: w, loading: f } = this.state;
806
+ return f || !w ? /* @__PURE__ */ D.jsx(
807
+ "img",
808
+ {
809
+ style: T,
810
+ src: `${ke.dataApi}dataset/${a}/logo/source/${i}?size=${c}`,
811
+ onLoad: () => this.setState({ error: !1, loading: !1 }),
812
+ onError: () => this.setState({ error: !0, loading: !1 })
813
+ }
814
+ ) : s;
815
+ }
816
+ }
817
+ export {
818
+ pr as D,
819
+ dr as P,
820
+ Ye as g,
821
+ Ge as w
822
+ };
823
+ //# sourceMappingURL=DatasetlogoWithFallback-CbP7vRs_.js.map