mc-react-library 0.6.4 → 0.6.5
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/README.md +6 -6
- package/dist/main.css +1 -1
- package/dist/main.js +1114 -913
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import Wt, { useState as Z, useRef as bt, useEffect as tt } from "react";
|
|
3
|
+
var Pt = { exports: {} }, X = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +10,21 @@ var ht = { exports: {} }, Q = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var n =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (c && c.defaultProps) for (
|
|
23
|
-
return { $$typeof: r, type: c, key:
|
|
13
|
+
var Kt;
|
|
14
|
+
function Tn() {
|
|
15
|
+
if (Kt) return X;
|
|
16
|
+
Kt = 1;
|
|
17
|
+
var n = Wt, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function g(c, d, l) {
|
|
19
|
+
var f, p = {}, h = null, v = null;
|
|
20
|
+
l !== void 0 && (h = "" + l), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (v = d.ref);
|
|
21
|
+
for (f in d) a.call(d, f) && !_.hasOwnProperty(f) && (p[f] = d[f]);
|
|
22
|
+
if (c && c.defaultProps) for (f in d = c.defaultProps, d) p[f] === void 0 && (p[f] = d[f]);
|
|
23
|
+
return { $$typeof: r, type: c, key: h, ref: v, props: p, _owner: o.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return X.Fragment = s, X.jsx = g, X.jsxs = g, X;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var q = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,57 +34,57 @@ var W = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
var n =
|
|
41
|
-
function
|
|
37
|
+
var Qt;
|
|
38
|
+
function Zn() {
|
|
39
|
+
return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var n = Wt, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, B = "@@iterator";
|
|
41
|
+
function A(t) {
|
|
42
42
|
if (t === null || typeof t != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var i = x && t[x] || t[
|
|
44
|
+
var i = x && t[x] || t[B];
|
|
45
45
|
return typeof i == "function" ? i : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
47
|
+
var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function j(t) {
|
|
49
49
|
{
|
|
50
|
-
for (var i = arguments.length,
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
for (var i = arguments.length, m = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
51
|
+
m[u - 1] = arguments[u];
|
|
52
|
+
T("error", t, m);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function T(t, i, m) {
|
|
56
56
|
{
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
return String(
|
|
57
|
+
var u = w.ReactDebugCurrentFrame, y = u.getStackAddendum();
|
|
58
|
+
y !== "" && (i += "%s", m = m.concat([y]));
|
|
59
|
+
var k = m.map(function(b) {
|
|
60
|
+
return String(b);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
k.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, k);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof t == "string" || typeof t == "function" || t === a || t ===
|
|
65
|
+
var O = !1, en = !1, rn = !1, on = !1, sn = !1, At;
|
|
66
|
+
At = Symbol.for("react.module.reference");
|
|
67
|
+
function an(t) {
|
|
68
|
+
return !!(typeof t == "string" || typeof t == "function" || t === a || t === _ || sn || t === o || t === l || t === f || on || t === v || O || en || rn || typeof t == "object" && t !== null && (t.$$typeof === h || t.$$typeof === p || t.$$typeof === g || t.$$typeof === c || t.$$typeof === d || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
|
-
t.$$typeof ===
|
|
72
|
+
t.$$typeof === At || t.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
78
|
-
var
|
|
79
|
-
return
|
|
74
|
+
function cn(t, i, m) {
|
|
75
|
+
var u = t.displayName;
|
|
76
|
+
if (u)
|
|
77
|
+
return u;
|
|
78
|
+
var y = i.displayName || i.name || "";
|
|
79
|
+
return y !== "" ? m + "(" + y + ")" : m;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function kt(t) {
|
|
82
82
|
return t.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function M(t) {
|
|
85
85
|
if (t == null)
|
|
86
86
|
return null;
|
|
87
|
-
if (typeof t.tag == "number" &&
|
|
87
|
+
if (typeof t.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
88
88
|
return t.displayName || t.name || null;
|
|
89
89
|
if (typeof t == "string")
|
|
90
90
|
return t;
|
|
@@ -93,32 +93,32 @@ function Tn() {
|
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case s:
|
|
95
95
|
return "Portal";
|
|
96
|
-
case
|
|
96
|
+
case _:
|
|
97
97
|
return "Profiler";
|
|
98
98
|
case o:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case
|
|
100
|
+
case l:
|
|
101
101
|
return "Suspense";
|
|
102
|
-
case
|
|
102
|
+
case f:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
105
|
if (typeof t == "object")
|
|
106
106
|
switch (t.$$typeof) {
|
|
107
107
|
case c:
|
|
108
108
|
var i = t;
|
|
109
|
-
return
|
|
110
|
-
case m:
|
|
111
|
-
var _ = t;
|
|
112
|
-
return yt(_._context) + ".Provider";
|
|
109
|
+
return kt(i) + ".Consumer";
|
|
113
110
|
case g:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return
|
|
118
|
-
case p:
|
|
119
|
-
var
|
|
111
|
+
var m = t;
|
|
112
|
+
return kt(m._context) + ".Provider";
|
|
113
|
+
case d:
|
|
114
|
+
return cn(t, t.render, "ForwardRef");
|
|
115
|
+
case p:
|
|
116
|
+
var u = t.displayName || null;
|
|
117
|
+
return u !== null ? u : M(t.type) || "Memo";
|
|
118
|
+
case h: {
|
|
119
|
+
var y = t, k = y._payload, b = y._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return M(b(k));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function Tn() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var H = Object.assign, Q = 0, wt, Ct, jt, It, Rt, St, zt;
|
|
130
|
+
function Ft() {
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
function
|
|
132
|
+
Ft.__reactDisabledLog = !0;
|
|
133
|
+
function _n() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (Q === 0) {
|
|
136
|
+
wt = console.log, Ct = console.info, jt = console.warn, It = console.error, Rt = console.group, St = console.groupCollapsed, zt = console.groupEnd;
|
|
137
137
|
var t = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: Ft,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -150,332 +150,332 @@ function Tn() {
|
|
|
150
150
|
groupEnd: t
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
Q++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function ln() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (Q--, Q === 0) {
|
|
159
159
|
var t = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value: At
|
|
167
|
-
}),
|
|
168
|
-
info: D({}, t, {
|
|
169
|
-
value: xt
|
|
170
|
-
}),
|
|
171
|
-
warn: D({}, t, {
|
|
172
|
-
value: kt
|
|
173
|
-
}),
|
|
174
|
-
error: D({}, t, {
|
|
165
|
+
log: H({}, t, {
|
|
175
166
|
value: wt
|
|
176
167
|
}),
|
|
177
|
-
|
|
168
|
+
info: H({}, t, {
|
|
178
169
|
value: Ct
|
|
179
170
|
}),
|
|
180
|
-
|
|
171
|
+
warn: H({}, t, {
|
|
181
172
|
value: jt
|
|
182
173
|
}),
|
|
183
|
-
|
|
174
|
+
error: H({}, t, {
|
|
184
175
|
value: It
|
|
176
|
+
}),
|
|
177
|
+
group: H({}, t, {
|
|
178
|
+
value: Rt
|
|
179
|
+
}),
|
|
180
|
+
groupCollapsed: H({}, t, {
|
|
181
|
+
value: St
|
|
182
|
+
}),
|
|
183
|
+
groupEnd: H({}, t, {
|
|
184
|
+
value: zt
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
Q < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
191
|
+
var _t = w.ReactCurrentDispatcher, lt;
|
|
192
|
+
function et(t, i, m) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (lt === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var
|
|
199
|
-
|
|
197
|
+
} catch (y) {
|
|
198
|
+
var u = y.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
lt = u && u[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + lt + t;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var mt = !1, rt;
|
|
206
206
|
{
|
|
207
|
-
var
|
|
208
|
-
|
|
207
|
+
var mn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
rt = new mn();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!t ||
|
|
210
|
+
function Et(t, i) {
|
|
211
|
+
if (!t || mt)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
if (
|
|
216
|
-
return
|
|
214
|
+
var m = rt.get(t);
|
|
215
|
+
if (m !== void 0)
|
|
216
|
+
return m;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
var
|
|
218
|
+
var u;
|
|
219
|
+
mt = !0;
|
|
220
|
+
var y = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var k;
|
|
223
|
+
k = _t.current, _t.current = null, _n();
|
|
224
224
|
try {
|
|
225
225
|
if (i) {
|
|
226
|
-
var
|
|
226
|
+
var b = function() {
|
|
227
227
|
throw Error();
|
|
228
228
|
};
|
|
229
|
-
if (Object.defineProperty(
|
|
229
|
+
if (Object.defineProperty(b.prototype, "props", {
|
|
230
230
|
set: function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
}
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
|
-
Reflect.construct(
|
|
236
|
-
} catch (
|
|
237
|
-
|
|
235
|
+
Reflect.construct(b, []);
|
|
236
|
+
} catch (S) {
|
|
237
|
+
u = S;
|
|
238
238
|
}
|
|
239
|
-
Reflect.construct(t, [],
|
|
239
|
+
Reflect.construct(t, [], b);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
|
-
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
242
|
+
b.call();
|
|
243
|
+
} catch (S) {
|
|
244
|
+
u = S;
|
|
245
245
|
}
|
|
246
|
-
t.call(
|
|
246
|
+
t.call(b.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
} catch (S) {
|
|
252
|
+
u = S;
|
|
253
253
|
}
|
|
254
254
|
t();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
259
|
-
`),
|
|
260
|
-
`),
|
|
261
|
-
|
|
262
|
-
for (;
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
256
|
+
} catch (S) {
|
|
257
|
+
if (S && u && typeof S.stack == "string") {
|
|
258
|
+
for (var P = S.stack.split(`
|
|
259
|
+
`), R = u.stack.split(`
|
|
260
|
+
`), C = P.length - 1, I = R.length - 1; C >= 1 && I >= 0 && P[C] !== R[I]; )
|
|
261
|
+
I--;
|
|
262
|
+
for (; C >= 1 && I >= 0; C--, I--)
|
|
263
|
+
if (P[C] !== R[I]) {
|
|
264
|
+
if (C !== 1 || I !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
` +
|
|
269
|
-
return t.displayName &&
|
|
266
|
+
if (C--, I--, I < 0 || P[C] !== R[I]) {
|
|
267
|
+
var z = `
|
|
268
|
+
` + P[C].replace(" at new ", " at ");
|
|
269
|
+
return t.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", t.displayName)), typeof t == "function" && rt.set(t, z), z;
|
|
270
270
|
}
|
|
271
|
-
while (
|
|
271
|
+
while (C >= 1 && I >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
mt = !1, _t.current = k, ln(), Error.prepareStackTrace = y;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof t == "function" &&
|
|
278
|
+
var G = t ? t.displayName || t.name : "", L = G ? et(G) : "";
|
|
279
|
+
return typeof t == "function" && rt.set(t, L), L;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function gn(t, i, m) {
|
|
282
|
+
return Et(t, !1);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function dn(t) {
|
|
285
285
|
var i = t.prototype;
|
|
286
286
|
return !!(i && i.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function it(t, i, m) {
|
|
289
289
|
if (t == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof t == "function")
|
|
292
|
-
return
|
|
292
|
+
return Et(t, dn(t));
|
|
293
293
|
if (typeof t == "string")
|
|
294
|
-
return
|
|
294
|
+
return et(t);
|
|
295
295
|
switch (t) {
|
|
296
|
-
case
|
|
297
|
-
return
|
|
298
|
-
case
|
|
299
|
-
return
|
|
296
|
+
case l:
|
|
297
|
+
return et("Suspense");
|
|
298
|
+
case f:
|
|
299
|
+
return et("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof t == "object")
|
|
302
302
|
switch (t.$$typeof) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
var
|
|
303
|
+
case d:
|
|
304
|
+
return gn(t.render);
|
|
305
|
+
case p:
|
|
306
|
+
return it(t.type, i, m);
|
|
307
|
+
case h: {
|
|
308
|
+
var u = t, y = u._payload, k = u._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return it(k(y), i, m);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var W = Object.prototype.hasOwnProperty, Nt = {}, Bt = w.ReactDebugCurrentFrame;
|
|
318
|
+
function ot(t) {
|
|
319
319
|
if (t) {
|
|
320
|
-
var i = t._owner,
|
|
321
|
-
|
|
320
|
+
var i = t._owner, m = it(t.type, t._source, i ? i.type : null);
|
|
321
|
+
Bt.setExtraStackFrame(m);
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
Bt.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function un(t, i, m, u, y) {
|
|
326
326
|
{
|
|
327
|
-
var
|
|
328
|
-
for (var
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
327
|
+
var k = Function.call.bind(W);
|
|
328
|
+
for (var b in t)
|
|
329
|
+
if (k(t, b)) {
|
|
330
|
+
var P = void 0;
|
|
331
331
|
try {
|
|
332
|
-
if (typeof t[
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
332
|
+
if (typeof t[b] != "function") {
|
|
333
|
+
var R = Error((u || "React class") + ": " + m + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw R.name = "Invariant Violation", R;
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
} catch (
|
|
338
|
-
|
|
336
|
+
P = t[b](i, b, u, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (C) {
|
|
338
|
+
P = C;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
P && !(P instanceof Error) && (ot(y), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", m, b, typeof P), ot(null)), P instanceof Error && !(P.message in Nt) && (Nt[P.message] = !0, ot(y), j("Failed %s type: %s", m, P.message), ot(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
344
|
+
var pn = Array.isArray;
|
|
345
|
+
function gt(t) {
|
|
346
|
+
return pn(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function hn(t) {
|
|
349
349
|
{
|
|
350
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
351
|
-
return
|
|
350
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, m = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
351
|
+
return m;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function fn(t) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return Tt(t), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Tt(t) {
|
|
362
362
|
return "" + t;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
364
|
+
function Zt(t) {
|
|
365
|
+
if (fn(t))
|
|
366
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hn(t)), Tt(t);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var Dt = w.ReactCurrentOwner, Pn = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
373
|
+
}, Mt, Ot;
|
|
374
|
+
function vn(t) {
|
|
375
|
+
if (W.call(t, "ref")) {
|
|
376
376
|
var i = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
377
377
|
if (i && i.isReactWarning)
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
return t.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
382
|
+
function bn(t) {
|
|
383
|
+
if (W.call(t, "key")) {
|
|
384
384
|
var i = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
385
385
|
if (i && i.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return t.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
typeof t.ref == "string" &&
|
|
390
|
+
function yn(t, i) {
|
|
391
|
+
typeof t.ref == "string" && Dt.current;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function xn(t, i) {
|
|
394
394
|
{
|
|
395
|
-
var
|
|
396
|
-
|
|
395
|
+
var m = function() {
|
|
396
|
+
Mt || (Mt = !0, j("%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://reactjs.org/link/special-props)", i));
|
|
397
397
|
};
|
|
398
|
-
|
|
399
|
-
get:
|
|
398
|
+
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
399
|
+
get: m,
|
|
400
400
|
configurable: !0
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function An(t, i) {
|
|
405
405
|
{
|
|
406
|
-
var
|
|
407
|
-
|
|
406
|
+
var m = function() {
|
|
407
|
+
Ot || (Ot = !0, j("%s: `ref` 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://reactjs.org/link/special-props)", i));
|
|
408
408
|
};
|
|
409
|
-
|
|
410
|
-
get:
|
|
409
|
+
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
410
|
+
get: m,
|
|
411
411
|
configurable: !0
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
var
|
|
415
|
+
var kn = function(t, i, m, u, y, k, b) {
|
|
416
|
+
var P = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: r,
|
|
419
419
|
// Built-in properties that belong on the element
|
|
420
420
|
type: t,
|
|
421
421
|
key: i,
|
|
422
|
-
ref:
|
|
423
|
-
props:
|
|
422
|
+
ref: m,
|
|
423
|
+
props: b,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
425
|
+
_owner: k
|
|
426
426
|
};
|
|
427
|
-
return
|
|
427
|
+
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !0,
|
|
431
431
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
432
|
+
}), Object.defineProperty(P, "_self", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !1,
|
|
436
|
-
value:
|
|
437
|
-
}), Object.defineProperty(
|
|
436
|
+
value: u
|
|
437
|
+
}), Object.defineProperty(P, "_source", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
value: y
|
|
442
|
+
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
443
443
|
};
|
|
444
|
-
function
|
|
444
|
+
function wn(t, i, m, u, y) {
|
|
445
445
|
{
|
|
446
|
-
var
|
|
447
|
-
|
|
448
|
-
for (
|
|
449
|
-
|
|
446
|
+
var k, b = {}, P = null, R = null;
|
|
447
|
+
m !== void 0 && (Zt(m), P = "" + m), bn(i) && (Zt(i.key), P = "" + i.key), vn(i) && (R = i.ref, yn(i, y));
|
|
448
|
+
for (k in i)
|
|
449
|
+
W.call(i, k) && !Pn.hasOwnProperty(k) && (b[k] = i[k]);
|
|
450
450
|
if (t && t.defaultProps) {
|
|
451
|
-
var
|
|
452
|
-
for (
|
|
453
|
-
|
|
451
|
+
var C = t.defaultProps;
|
|
452
|
+
for (k in C)
|
|
453
|
+
b[k] === void 0 && (b[k] = C[k]);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
455
|
+
if (P || R) {
|
|
456
|
+
var I = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
457
|
+
P && xn(b, I), R && An(b, I);
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return kn(t, P, R, y, u, Dt.current, b);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var dt = w.ReactCurrentOwner, Ht = w.ReactDebugCurrentFrame;
|
|
463
|
+
function Y(t) {
|
|
464
464
|
if (t) {
|
|
465
|
-
var i = t._owner,
|
|
466
|
-
|
|
465
|
+
var i = t._owner, m = it(t.type, t._source, i ? i.type : null);
|
|
466
|
+
Ht.setExtraStackFrame(m);
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
Ht.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
470
|
+
var ut;
|
|
471
|
+
ut = !1;
|
|
472
|
+
function pt(t) {
|
|
473
473
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Lt() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var t =
|
|
477
|
+
if (dt.current) {
|
|
478
|
+
var t = M(dt.current.type);
|
|
479
479
|
if (t)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -484,228 +484,228 @@ Check the render method of \`` + t + "`.";
|
|
|
484
484
|
return "";
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Cn(t) {
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
|
-
var
|
|
491
|
-
function
|
|
490
|
+
var Jt = {};
|
|
491
|
+
function jn(t) {
|
|
492
492
|
{
|
|
493
|
-
var i =
|
|
493
|
+
var i = Lt();
|
|
494
494
|
if (!i) {
|
|
495
|
-
var
|
|
496
|
-
|
|
495
|
+
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
496
|
+
m && (i = `
|
|
497
497
|
|
|
498
|
-
Check the top-level render call using <` +
|
|
498
|
+
Check the top-level render call using <` + m + ">.");
|
|
499
499
|
}
|
|
500
500
|
return i;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Ut(t, i) {
|
|
504
504
|
{
|
|
505
505
|
if (!t._store || t._store.validated || t.key != null)
|
|
506
506
|
return;
|
|
507
507
|
t._store.validated = !0;
|
|
508
|
-
var
|
|
509
|
-
if (
|
|
508
|
+
var m = jn(i);
|
|
509
|
+
if (Jt[m])
|
|
510
510
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
t && t._owner && t._owner !==
|
|
511
|
+
Jt[m] = !0;
|
|
512
|
+
var u = "";
|
|
513
|
+
t && t._owner && t._owner !== dt.current && (u = " It was passed a child from " + M(t._owner.type) + "."), Y(t), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, u), Y(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Vt(t, i) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof t != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
521
|
-
for (var
|
|
522
|
-
var
|
|
523
|
-
|
|
520
|
+
if (gt(t))
|
|
521
|
+
for (var m = 0; m < t.length; m++) {
|
|
522
|
+
var u = t[m];
|
|
523
|
+
pt(u) && Ut(u, i);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (pt(t))
|
|
526
526
|
t._store && (t._store.validated = !0);
|
|
527
527
|
else if (t) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var
|
|
531
|
-
|
|
528
|
+
var y = A(t);
|
|
529
|
+
if (typeof y == "function" && y !== t.entries)
|
|
530
|
+
for (var k = y.call(t), b; !(b = k.next()).done; )
|
|
531
|
+
pt(b.value) && Ut(b.value, i);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function In(t) {
|
|
536
536
|
{
|
|
537
537
|
var i = t.type;
|
|
538
538
|
if (i == null || typeof i == "string")
|
|
539
539
|
return;
|
|
540
|
-
var
|
|
540
|
+
var m;
|
|
541
541
|
if (typeof i == "function")
|
|
542
|
-
|
|
543
|
-
else if (typeof i == "object" && (i.$$typeof ===
|
|
542
|
+
m = i.propTypes;
|
|
543
|
+
else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
|
|
544
544
|
// Inner props are checked in the reconciler.
|
|
545
|
-
i.$$typeof ===
|
|
546
|
-
|
|
545
|
+
i.$$typeof === p))
|
|
546
|
+
m = i.propTypes;
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
|
-
if (
|
|
550
|
-
var
|
|
551
|
-
|
|
552
|
-
} else if (i.PropTypes !== void 0 && !
|
|
553
|
-
|
|
554
|
-
var
|
|
555
|
-
|
|
549
|
+
if (m) {
|
|
550
|
+
var u = M(i);
|
|
551
|
+
un(m, t.props, "prop", u, t);
|
|
552
|
+
} else if (i.PropTypes !== void 0 && !ut) {
|
|
553
|
+
ut = !0;
|
|
554
|
+
var y = M(i);
|
|
555
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
556
556
|
}
|
|
557
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Rn(t) {
|
|
561
561
|
{
|
|
562
|
-
for (var i = Object.keys(t.props),
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
|
|
562
|
+
for (var i = Object.keys(t.props), m = 0; m < i.length; m++) {
|
|
563
|
+
var u = i[m];
|
|
564
|
+
if (u !== "children" && u !== "key") {
|
|
565
|
+
Y(t), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Y(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
t.ref !== null && (
|
|
569
|
+
t.ref !== null && (Y(t), j("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
572
|
+
var Yt = {};
|
|
573
|
+
function Gt(t, i, m, u, y, k) {
|
|
574
574
|
{
|
|
575
|
-
var
|
|
576
|
-
if (!
|
|
577
|
-
var
|
|
578
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
579
|
-
var
|
|
580
|
-
|
|
581
|
-
var
|
|
582
|
-
t === null ?
|
|
575
|
+
var b = an(t);
|
|
576
|
+
if (!b) {
|
|
577
|
+
var P = "";
|
|
578
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
+
var R = Cn();
|
|
580
|
+
R ? P += R : P += Lt();
|
|
581
|
+
var C;
|
|
582
|
+
t === null ? C = "null" : gt(t) ? C = "array" : t !== void 0 && t.$$typeof === r ? (C = "<" + (M(t.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : C = typeof t, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, P);
|
|
583
583
|
}
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
if (
|
|
592
|
-
for (var
|
|
593
|
-
|
|
594
|
-
Object.freeze && Object.freeze(
|
|
584
|
+
var I = wn(t, i, m, y, k);
|
|
585
|
+
if (I == null)
|
|
586
|
+
return I;
|
|
587
|
+
if (b) {
|
|
588
|
+
var z = i.children;
|
|
589
|
+
if (z !== void 0)
|
|
590
|
+
if (u)
|
|
591
|
+
if (gt(z)) {
|
|
592
|
+
for (var G = 0; G < z.length; G++)
|
|
593
|
+
Vt(z[G], t);
|
|
594
|
+
Object.freeze && Object.freeze(z);
|
|
595
595
|
} else
|
|
596
|
-
|
|
596
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
597
|
else
|
|
598
|
-
|
|
598
|
+
Vt(z, t);
|
|
599
599
|
}
|
|
600
|
-
if (
|
|
601
|
-
var
|
|
602
|
-
return
|
|
603
|
-
}),
|
|
604
|
-
if (!
|
|
605
|
-
var
|
|
606
|
-
|
|
600
|
+
if (W.call(i, "key")) {
|
|
601
|
+
var L = M(t), S = Object.keys(i).filter(function(Bn) {
|
|
602
|
+
return Bn !== "key";
|
|
603
|
+
}), ht = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
+
if (!Yt[L + ht]) {
|
|
605
|
+
var Nn = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
607
607
|
let props = %s;
|
|
608
608
|
<%s {...props} />
|
|
609
609
|
React keys must be passed directly to JSX without using spread:
|
|
610
610
|
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`,
|
|
611
|
+
<%s key={someKey} {...props} />`, ht, L, Nn, L), Yt[L + ht] = !0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return t === a ?
|
|
614
|
+
return t === a ? Rn(I) : In(I), I;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
return
|
|
617
|
+
function Sn(t, i, m) {
|
|
618
|
+
return Gt(t, i, m, !0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function zn(t, i, m) {
|
|
621
|
+
return Gt(t, i, m, !1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
}()),
|
|
623
|
+
var Fn = zn, En = Sn;
|
|
624
|
+
q.Fragment = a, q.jsx = Fn, q.jsxs = En;
|
|
625
|
+
}()), q;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var e =
|
|
629
|
-
const
|
|
630
|
-
button:
|
|
627
|
+
process.env.NODE_ENV === "production" ? Pt.exports = Tn() : Pt.exports = Zn();
|
|
628
|
+
var e = Pt.exports;
|
|
629
|
+
const Dn = "_button_qg5kh_1", Mn = {
|
|
630
|
+
button: Dn
|
|
631
631
|
};
|
|
632
|
-
function
|
|
633
|
-
return /* @__PURE__ */ e.jsx("button", { className: `${
|
|
632
|
+
function Ti({ className: n = "", ...r }) {
|
|
633
|
+
return /* @__PURE__ */ e.jsx("button", { className: `${Mn.button} ${n}`, ...r, children: "TEST" });
|
|
634
634
|
}
|
|
635
|
-
const
|
|
636
|
-
archive_doicitation:
|
|
637
|
-
doi_badge:
|
|
638
|
-
doi_left:
|
|
639
|
-
doi_right:
|
|
640
|
-
},
|
|
635
|
+
const On = "_archive_doicitation_y1o5i_1", Hn = "_doi_badge_y1o5i_9", Ln = "_doi_left_y1o5i_13", Jn = "_doi_right_y1o5i_27", st = {
|
|
636
|
+
archive_doicitation: On,
|
|
637
|
+
doi_badge: Hn,
|
|
638
|
+
doi_left: Ln,
|
|
639
|
+
doi_right: Jn
|
|
640
|
+
}, Zi = ({
|
|
641
641
|
doi_id: n,
|
|
642
642
|
doi: r,
|
|
643
643
|
label: s = "DOI",
|
|
644
644
|
color: a = "#a2cbff",
|
|
645
645
|
className: o = "",
|
|
646
|
-
...
|
|
646
|
+
..._
|
|
647
647
|
}) => {
|
|
648
|
-
let
|
|
649
|
-
return n != null ?
|
|
650
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
648
|
+
let g = "";
|
|
649
|
+
return n != null ? g = `10.24435/materialscloud:${n}` : g = r, /* @__PURE__ */ e.jsx("div", { className: `${st.archive_doicitation} ${o}`, ..._, children: /* @__PURE__ */ e.jsxs("span", { className: st.doi_badge, children: [
|
|
650
|
+
/* @__PURE__ */ e.jsx("span", { className: st.doi_left, children: s }),
|
|
651
651
|
/* @__PURE__ */ e.jsx(
|
|
652
652
|
"a",
|
|
653
653
|
{
|
|
654
|
-
href: `https://doi.org/${
|
|
655
|
-
className:
|
|
654
|
+
href: `https://doi.org/${g}`,
|
|
655
|
+
className: st.doi_right,
|
|
656
656
|
target: "_blank",
|
|
657
657
|
style: { backgroundColor: a },
|
|
658
|
-
children:
|
|
658
|
+
children: g
|
|
659
659
|
}
|
|
660
660
|
)
|
|
661
661
|
] }) });
|
|
662
|
-
},
|
|
663
|
-
function
|
|
662
|
+
}, $ = (...n) => n.filter(Boolean).join(" ");
|
|
663
|
+
function Un(n) {
|
|
664
664
|
const r = n == null ? void 0 : n.type, s = (r == null ? void 0 : r.displayName) || (r == null ? void 0 : r.name) || (typeof r == "string" ? r : "");
|
|
665
665
|
return typeof s == "string" && s.toLowerCase().includes("popover");
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Vn(n) {
|
|
668
668
|
let r = n;
|
|
669
|
-
for (; r && typeof r == "object" && "props" in r &&
|
|
669
|
+
for (; r && typeof r == "object" && "props" in r && Un(r); )
|
|
670
670
|
r = r.props.children;
|
|
671
671
|
return r;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Di({
|
|
674
674
|
popover: n,
|
|
675
675
|
content: r,
|
|
676
676
|
placement: s = "top",
|
|
677
677
|
className: a,
|
|
678
678
|
classes: o = {},
|
|
679
|
-
children:
|
|
680
|
-
...
|
|
679
|
+
children: _ = "?",
|
|
680
|
+
...g
|
|
681
681
|
}) {
|
|
682
|
-
const [c,
|
|
683
|
-
return
|
|
684
|
-
if (!c || !
|
|
685
|
-
const
|
|
686
|
-
|
|
682
|
+
const [c, d] = Z(!1), l = bt(null), f = r !== void 0 ? r : n, p = f != null;
|
|
683
|
+
return tt(() => {
|
|
684
|
+
if (!c || !p) return;
|
|
685
|
+
const h = (x) => {
|
|
686
|
+
l.current && !l.current.contains(x.target) && d(!1);
|
|
687
687
|
}, v = (x) => {
|
|
688
|
-
x.key === "Escape" &&
|
|
688
|
+
x.key === "Escape" && d(!1);
|
|
689
689
|
};
|
|
690
|
-
return document.addEventListener("pointerdown",
|
|
691
|
-
document.removeEventListener("pointerdown",
|
|
690
|
+
return document.addEventListener("pointerdown", h), document.addEventListener("keydown", v), () => {
|
|
691
|
+
document.removeEventListener("pointerdown", h), document.removeEventListener("keydown", v);
|
|
692
692
|
};
|
|
693
|
-
}, [c,
|
|
693
|
+
}, [c, p]), p ? /* @__PURE__ */ e.jsxs(
|
|
694
694
|
"div",
|
|
695
695
|
{
|
|
696
|
-
ref:
|
|
697
|
-
className:
|
|
698
|
-
...
|
|
696
|
+
ref: l,
|
|
697
|
+
className: $("help-button", a, o.root),
|
|
698
|
+
...g,
|
|
699
699
|
children: [
|
|
700
700
|
/* @__PURE__ */ e.jsx(
|
|
701
701
|
"button",
|
|
702
702
|
{
|
|
703
703
|
type: "button",
|
|
704
|
-
className:
|
|
705
|
-
onClick: () =>
|
|
704
|
+
className: $("help-button__trigger", o.trigger),
|
|
705
|
+
onClick: () => d((h) => !h),
|
|
706
706
|
"aria-expanded": c,
|
|
707
707
|
"aria-haspopup": "dialog",
|
|
708
|
-
children:
|
|
708
|
+
children: _
|
|
709
709
|
}
|
|
710
710
|
),
|
|
711
711
|
c && /* @__PURE__ */ e.jsx(
|
|
@@ -713,16 +713,16 @@ function Bi({
|
|
|
713
713
|
{
|
|
714
714
|
role: "dialog",
|
|
715
715
|
"data-placement": s,
|
|
716
|
-
className:
|
|
717
|
-
children:
|
|
716
|
+
className: $("help-button__popover", o.popover),
|
|
717
|
+
children: Vn(f)
|
|
718
718
|
}
|
|
719
719
|
)
|
|
720
720
|
]
|
|
721
721
|
}
|
|
722
|
-
) : /* @__PURE__ */ e.jsx("div", { className:
|
|
722
|
+
) : /* @__PURE__ */ e.jsx("div", { className: $("help-button", a, o.root), ...g, children: /* @__PURE__ */ e.jsx("span", { className: $("help-button__trigger", o.trigger), children: _ }) });
|
|
723
723
|
}
|
|
724
|
-
const
|
|
725
|
-
function
|
|
724
|
+
const Yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='36.012337'%20height='31.802971'%20viewBox='0%200%2036.012336%2031.802972'%20id='svg9098'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='mclogo-split-rotate-v9.svg'%3e%3cdefs%20id='defs9100'%20/%3e%3csodipodi:namedview%20id='base'%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1.0'%20inkscape:pageopacity='0.0'%20inkscape:pageshadow='2'%20inkscape:zoom='11.2'%20inkscape:cx='14.890099'%20inkscape:cy='23.051314'%20inkscape:document-units='px'%20inkscape:current-layer='g9'%20showgrid='false'%20units='px'%20inkscape:window-width='1680'%20inkscape:window-height='940'%20inkscape:window-x='0'%20inkscape:window-y='1'%20inkscape:window-maximized='1'%20fit-margin-top='3'%20fit-margin-left='3'%20fit-margin-right='3'%20fit-margin-bottom='5'%20/%3e%3cmetadata%20id='metadata9103'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20inkscape:label='Layer%201'%20inkscape:groupmode='layer'%20id='layer1'%20transform='translate(3.0066849,-1015.2422)'%3e%3cg%20id='mctriangle'%20transform='matrix(1.1533275,0,0,1.1556928,-379.094,391.20844)'%3e%3cg%20transform='translate(2975.41,266.50511)'%20style='display:inline;stroke:%23d21f15;stroke-width:0.86616874;stroke-opacity:1'%20id='layer6'%20/%3e%3cg%20id='g9'%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9220'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9224'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9228'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9232'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9236'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9240'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9244'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9248'%20/%3e%3cellipse%20ry='0.25958455'%20rx='0.26011693'%20cy='553.91522'%20cx='341.70126'%20id='ref'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20/%3e%3cpath%20id='mctriangleonly'%20d='M%20335.13723,550.18801%20338.41923,555.66439%20341.70129,561.14077%20344.98332,555.66439%20348.26535,550.18801%20341.70129,550.18801%20Z'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.91575587;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20cy='550.02032'%20cx='348.39252'%20id='circle7840-5'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20cy='550.02032'%20cx='335.01007'%20id='circle7842-0'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20id='circle7844-5'%20cx='341.70132'%20cy='561.30841'%20r='1.4070433'%20/%3e%3ccircle%20r='1.4070433'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;filter-blend-mode:normal;filter-gaussianBlur-deviation:0'%20id='movingcircle'%20cx='335.01007'%20cy='550.02032'%3e%3canimateTransform%20id='anim1'%20repeatCount='indefinite'%20begin='0s'%20dur='1s'%20values='0.0%200.0;13.38245%200.0;6.69125%2011.28809;0.0%200.0'%20type='translate'%20attributeName='transform'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
725
|
+
function Mi({ className: n = "", style: r, ...s }) {
|
|
726
726
|
return /* @__PURE__ */ e.jsx(
|
|
727
727
|
"div",
|
|
728
728
|
{
|
|
@@ -737,7 +737,7 @@ function Ti({ className: n = "", style: r, ...s }) {
|
|
|
737
737
|
children: /* @__PURE__ */ e.jsx(
|
|
738
738
|
"img",
|
|
739
739
|
{
|
|
740
|
-
src:
|
|
740
|
+
src: Yn,
|
|
741
741
|
alt: "Materials Cloud spinner",
|
|
742
742
|
style: {
|
|
743
743
|
width: "100%",
|
|
@@ -750,7 +750,7 @@ function Ti({ className: n = "", style: r, ...s }) {
|
|
|
750
750
|
}
|
|
751
751
|
);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Xt({ className: n = "h-4 w-4", ...r }) {
|
|
754
754
|
return /* @__PURE__ */ e.jsxs(
|
|
755
755
|
"svg",
|
|
756
756
|
{
|
|
@@ -770,7 +770,7 @@ function Qt({ className: n = "h-4 w-4", ...r }) {
|
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function qt({ className: n = "h-4 w-4", ...r }) {
|
|
774
774
|
return /* @__PURE__ */ e.jsx(
|
|
775
775
|
"svg",
|
|
776
776
|
{
|
|
@@ -787,7 +787,7 @@ function Wt({ className: n = "h-4 w-4", ...r }) {
|
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function yt({ className: n = "h-4 w-4", ...r }) {
|
|
791
791
|
return /* @__PURE__ */ e.jsxs(
|
|
792
792
|
"svg",
|
|
793
793
|
{
|
|
@@ -808,37 +808,57 @@ function Pt({ className: n = "h-4 w-4", ...r }) {
|
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
function Gn({ className: n = "h-4 w-4", ...r }) {
|
|
812
|
+
return /* @__PURE__ */ e.jsxs(
|
|
813
|
+
"svg",
|
|
814
|
+
{
|
|
815
|
+
viewBox: "0 0 24 24",
|
|
816
|
+
fill: "none",
|
|
817
|
+
stroke: "currentColor",
|
|
818
|
+
strokeWidth: "2",
|
|
819
|
+
strokeLinecap: "round",
|
|
820
|
+
strokeLinejoin: "round",
|
|
821
|
+
className: n,
|
|
822
|
+
"aria-hidden": "true",
|
|
823
|
+
...r,
|
|
824
|
+
children: [
|
|
825
|
+
/* @__PURE__ */ e.jsx("path", { d: "M12 16V4m0 0L7 9m5-5 5 5" }),
|
|
826
|
+
/* @__PURE__ */ e.jsx("path", { d: "M5 14v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4" })
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
const J = (...n) => n.filter(Boolean).join(" "), Kn = [
|
|
812
832
|
{ format: "cif", label: "CIF" },
|
|
813
833
|
{ format: "xsf", label: "XSF" },
|
|
814
834
|
{ format: "xyz", label: "XYZ" }
|
|
815
835
|
];
|
|
816
|
-
function
|
|
836
|
+
function Oi({
|
|
817
837
|
aiida_rest_url: n,
|
|
818
838
|
uuid: r,
|
|
819
839
|
download_formats: s,
|
|
820
840
|
title: a = "Download",
|
|
821
841
|
className: o,
|
|
822
|
-
classes:
|
|
823
|
-
...
|
|
842
|
+
classes: _ = {},
|
|
843
|
+
...g
|
|
824
844
|
}) {
|
|
825
|
-
const [c,
|
|
826
|
-
return
|
|
845
|
+
const [c, d] = Z(!1), l = bt(null), f = `${n}/nodes/${r}/download`, p = s || Kn;
|
|
846
|
+
return tt(() => {
|
|
827
847
|
if (!c) return;
|
|
828
|
-
const
|
|
829
|
-
|
|
848
|
+
const h = (x) => {
|
|
849
|
+
l.current && !l.current.contains(x.target) && d(!1);
|
|
830
850
|
}, v = (x) => {
|
|
831
|
-
x.key === "Escape" &&
|
|
851
|
+
x.key === "Escape" && d(!1);
|
|
832
852
|
};
|
|
833
|
-
return document.addEventListener("pointerdown",
|
|
834
|
-
document.removeEventListener("pointerdown",
|
|
853
|
+
return document.addEventListener("pointerdown", h), document.addEventListener("keydown", v), () => {
|
|
854
|
+
document.removeEventListener("pointerdown", h), document.removeEventListener("keydown", v);
|
|
835
855
|
};
|
|
836
856
|
}, [c]), /* @__PURE__ */ e.jsxs(
|
|
837
857
|
"div",
|
|
838
858
|
{
|
|
839
|
-
ref:
|
|
840
|
-
className:
|
|
841
|
-
...
|
|
859
|
+
ref: l,
|
|
860
|
+
className: J("struct-download", o, _.root),
|
|
861
|
+
...g,
|
|
842
862
|
children: [
|
|
843
863
|
/* @__PURE__ */ e.jsx(
|
|
844
864
|
"button",
|
|
@@ -847,38 +867,38 @@ function Zi({
|
|
|
847
867
|
title: a,
|
|
848
868
|
"aria-expanded": c,
|
|
849
869
|
"aria-haspopup": "menu",
|
|
850
|
-
onClick: () =>
|
|
851
|
-
className:
|
|
870
|
+
onClick: () => d((h) => !h),
|
|
871
|
+
className: J("struct-download__button", _.button),
|
|
852
872
|
children: /* @__PURE__ */ e.jsx(
|
|
853
|
-
|
|
873
|
+
yt,
|
|
854
874
|
{
|
|
855
|
-
className:
|
|
875
|
+
className: J("struct-download__icon", _.icon)
|
|
856
876
|
}
|
|
857
877
|
)
|
|
858
878
|
}
|
|
859
879
|
),
|
|
860
|
-
c && /* @__PURE__ */ e.jsx("div", { className:
|
|
880
|
+
c && /* @__PURE__ */ e.jsx("div", { className: J("struct-download__dropdown", _.dropdown), children: /* @__PURE__ */ e.jsx(
|
|
861
881
|
"ul",
|
|
862
882
|
{
|
|
863
883
|
role: "menu",
|
|
864
|
-
className:
|
|
865
|
-
children:
|
|
884
|
+
className: J("struct-download__menu", _.menu),
|
|
885
|
+
children: p.map(({ format: h, label: v }) => /* @__PURE__ */ e.jsx(
|
|
866
886
|
"li",
|
|
867
887
|
{
|
|
868
888
|
role: "none",
|
|
869
|
-
className:
|
|
870
|
-
onClick: () =>
|
|
889
|
+
className: J(_.menuItem),
|
|
890
|
+
onClick: () => d(!1),
|
|
871
891
|
children: /* @__PURE__ */ e.jsx(
|
|
872
892
|
"a",
|
|
873
893
|
{
|
|
874
894
|
role: "menuitem",
|
|
875
|
-
href: `${
|
|
876
|
-
className:
|
|
895
|
+
href: `${f}?download_format=${h}`,
|
|
896
|
+
className: J(_.menuLink),
|
|
877
897
|
children: v
|
|
878
898
|
}
|
|
879
899
|
)
|
|
880
900
|
},
|
|
881
|
-
|
|
901
|
+
h
|
|
882
902
|
))
|
|
883
903
|
}
|
|
884
904
|
) })
|
|
@@ -886,31 +906,31 @@ function Zi({
|
|
|
886
906
|
}
|
|
887
907
|
);
|
|
888
908
|
}
|
|
889
|
-
const
|
|
890
|
-
function
|
|
909
|
+
const Qn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACACAYAAADUHPECAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAdTAAAHUwAGRbQIfAAAAB3RJTUUH4QoMEAcil62xzQAAGc9JREFUeNrtnXl8XVW1x7/r3JvcJC1tgdKWUqADs0CTAk6AAh+GgAzyBBUUKQ8R6GDx4Ud9j6YVWkCeAio2pSLqQxyK4gTSBBApVJDCo4lMMjQpHaAphVI6ZLrnrPfHOjeEtknOvfece8/N5/0+H/j00yb77L3P7+y99tpr/ZYwyKFzRgMCquAIeDoCmARMBmqAQ4B9gD2B3YCU/6udwBbgbWAd8BLwT+A54BUcbxOeYz8pINe1FXuokUKK3YGooHNHgwco4MgwVKcAJwPHAQdhxCjPstlu4B3gFeAx4GFgBcpmxJ4l8wcnYQYdUXT2aDIvDWFf4CzgM8DRwLCQH/ce8CzwO5D7cHQ1nv2DzBtchBk0RFGaoO60DEnGAhcAFwOHAYmIH+8BLwB3Ab/GtiqY14hQXeypCQWDgig6Z4zZIFABfBq4CjgGcArcFQ94Bvg+8EegHRSZt6HYU5Q3Sp4oWjfaSCJyAPCfwOeAIUXu1jZgMXAjyGuoh8wvbbKUNFG0bjSgAnIqcAMwpdh92gErgP/CcxtxElrKdkvJEkXrRoE6ZYheDFwH7F3sPvWB9cBckJ+BdpcqWUqSKLaSkAJmAdcQ/mkmbGwBrsdsl85SJEvJEUVnjwKRcuA/gDqgqth9CojtwHyEm1HtKjUDt9Cngrygc0aBagK4HFtJSoUk+H39L5TLURI6e3Sx+5MVSooodFeA43wamAsMLXZ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WDNcCdIHeAvgFKU5gOtTCQqX+jjMU0+y+lOOpWW7CrmZvBXQGJAbeaHZETw6v9rQiLbT0ZM3ZPoDCJZG9idxF3OKJNnjqKaPELTvaFH7X4lqAKJvr8ZSzrIeq6jGAEWYqV3fsriDkFsyQJ5LEUHtFYScJTvwUZCnocpot6AvbVhLnMdmHHuPuB32JKSelYVCQNip6oNUni6BGYv+VMrBxwmPaeYjKjj2C2yGNYJL3l/8zMLTQ675dZYzq1gCKqSRU5ECPLScBk7MsZkuWzPEwnrRULO3wYeHKv7VXr3qoy5YZU0uOpk+N8qNgFfrwautM2E+1JqEyPxeRIT8VUtcdjIQfZxi5vA97AhIv/BiwFeQXUovAUk8PIA6F99VMaU6gHKpkmNSXIODXVySnA4f5EjPIno9KfkLQ/0E1Y2shrWFJaM8qLKrpe/GRyD/hnXIzVfHH7SvD8uXJU8GQMcAiWTH4kFnC+NxbxVoUfCYIlS2/GUoFXYf6tJuA5RNeg4htqYqevK8JJrvg/1r/N4lnuwIgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMTAtMTJUMTY6MDc6MzQrMDI6MDB1PnpAAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE3LTEwLTEyVDE2OjA3OjM0KzAyOjAwBGPC/AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=", at = (...n) => n.filter(Boolean).join(" ");
|
|
910
|
+
function Hi({
|
|
891
911
|
explore_url: n,
|
|
892
912
|
uuid: r,
|
|
893
913
|
placement: s = "bottom",
|
|
894
914
|
tooltip: a,
|
|
895
915
|
className: o,
|
|
896
|
-
classes:
|
|
897
|
-
...
|
|
916
|
+
classes: _ = {},
|
|
917
|
+
...g
|
|
898
918
|
}) {
|
|
899
919
|
const c = `${n}/details/${r}?nodeType=NODE`;
|
|
900
|
-
return /* @__PURE__ */ e.jsxs("span", { className:
|
|
920
|
+
return /* @__PURE__ */ e.jsxs("span", { className: at("explore-button", o, _.root), ...g, children: [
|
|
901
921
|
/* @__PURE__ */ e.jsx(
|
|
902
922
|
"a",
|
|
903
923
|
{
|
|
904
924
|
href: c,
|
|
905
925
|
target: "_blank",
|
|
906
926
|
rel: "noreferrer",
|
|
907
|
-
className:
|
|
927
|
+
className: at("explore-button__link", _.link),
|
|
908
928
|
children: /* @__PURE__ */ e.jsx(
|
|
909
929
|
"img",
|
|
910
930
|
{
|
|
911
|
-
src:
|
|
931
|
+
src: Qn,
|
|
912
932
|
alt: "Explore provenance",
|
|
913
|
-
className:
|
|
933
|
+
className: at("explore-button__logo", _.logo)
|
|
914
934
|
}
|
|
915
935
|
)
|
|
916
936
|
}
|
|
@@ -920,7 +940,7 @@ function Ni({
|
|
|
920
940
|
{
|
|
921
941
|
role: "tooltip",
|
|
922
942
|
"data-placement": s,
|
|
923
|
-
className:
|
|
943
|
+
className: at("explore-button__tooltip", _.tooltip),
|
|
924
944
|
children: a ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
925
945
|
"Browse provenance",
|
|
926
946
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
@@ -930,165 +950,306 @@ function Ni({
|
|
|
930
950
|
)
|
|
931
951
|
] });
|
|
932
952
|
}
|
|
933
|
-
const
|
|
934
|
-
toggleSwitchWrapper:
|
|
935
|
-
toggleLabel:
|
|
936
|
-
toggleSwitchContainer:
|
|
937
|
-
toggleSwitch:
|
|
938
|
-
thumb:
|
|
939
|
-
toggled:
|
|
953
|
+
const Wn = "_toggleSwitchWrapper_i81zd_2", Xn = "_toggleLabel_i81zd_11", qn = "_toggleSwitchContainer_i81zd_16", $n = "_toggleSwitch_i81zd_2", te = "_thumb_i81zd_34", ne = "_toggled_i81zd_46", U = {
|
|
954
|
+
toggleSwitchWrapper: Wn,
|
|
955
|
+
toggleLabel: Xn,
|
|
956
|
+
toggleSwitchContainer: qn,
|
|
957
|
+
toggleSwitch: $n,
|
|
958
|
+
thumb: te,
|
|
959
|
+
toggled: ne
|
|
940
960
|
};
|
|
941
|
-
function
|
|
961
|
+
function Li({
|
|
942
962
|
switchLength: n = "50px",
|
|
943
963
|
labelLeft: r = "Left",
|
|
944
964
|
labelRight: s = "Right",
|
|
945
965
|
fontSize: a = "12px",
|
|
946
966
|
toggled: o,
|
|
947
|
-
onToggle:
|
|
967
|
+
onToggle: _ = () => {
|
|
948
968
|
},
|
|
949
|
-
labelClassName:
|
|
969
|
+
labelClassName: g = "",
|
|
950
970
|
containerClassName: c = "",
|
|
951
|
-
switchClassName:
|
|
952
|
-
thumbClassName:
|
|
953
|
-
...
|
|
971
|
+
switchClassName: d = "",
|
|
972
|
+
thumbClassName: l = "",
|
|
973
|
+
...f
|
|
954
974
|
}) {
|
|
955
|
-
const [
|
|
956
|
-
|
|
957
|
-
v &&
|
|
975
|
+
const [p, h] = Z(!1), v = o !== void 0, x = v ? o : p;
|
|
976
|
+
tt(() => {
|
|
977
|
+
v && h(o);
|
|
958
978
|
}, [o, v]);
|
|
959
|
-
const
|
|
960
|
-
const
|
|
961
|
-
v ||
|
|
979
|
+
const B = () => {
|
|
980
|
+
const A = !x;
|
|
981
|
+
v || h(A), _(A);
|
|
962
982
|
};
|
|
963
983
|
return /* @__PURE__ */ e.jsxs(
|
|
964
984
|
"div",
|
|
965
985
|
{
|
|
966
|
-
className: `${
|
|
986
|
+
className: `${U.toggleSwitchWrapper} ${c}`,
|
|
967
987
|
style: { fontSize: a },
|
|
968
|
-
...
|
|
988
|
+
...f,
|
|
969
989
|
children: [
|
|
970
|
-
/* @__PURE__ */ e.jsx("span", { className: `${
|
|
971
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
990
|
+
/* @__PURE__ */ e.jsx("span", { className: `${U.toggleLabel} ${g}`, children: r }),
|
|
991
|
+
/* @__PURE__ */ e.jsx("div", { className: U.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
|
|
972
992
|
"button",
|
|
973
993
|
{
|
|
974
994
|
type: "button",
|
|
975
|
-
className: `${
|
|
976
|
-
onClick:
|
|
995
|
+
className: `${U.toggleSwitch} ${x ? U.toggled : ""} ${d}`,
|
|
996
|
+
onClick: B,
|
|
977
997
|
style: { "--switch-length": n },
|
|
978
|
-
children: /* @__PURE__ */ e.jsx("div", { className: `${
|
|
998
|
+
children: /* @__PURE__ */ e.jsx("div", { className: `${U.thumb} ${l}` })
|
|
979
999
|
}
|
|
980
1000
|
) }),
|
|
981
|
-
/* @__PURE__ */ e.jsx("span", { className: `${
|
|
1001
|
+
/* @__PURE__ */ e.jsx("span", { className: `${U.toggleLabel} ${g}`, children: s })
|
|
982
1002
|
]
|
|
983
1003
|
}
|
|
984
1004
|
);
|
|
985
1005
|
}
|
|
986
|
-
const
|
|
987
|
-
card:
|
|
988
|
-
header:
|
|
989
|
-
body:
|
|
990
|
-
footer:
|
|
1006
|
+
const ee = "_card_6y0jx_1", re = "_header_6y0jx_13", ie = "_body_6y0jx_18", oe = "_footer_6y0jx_23", ct = {
|
|
1007
|
+
card: ee,
|
|
1008
|
+
header: re,
|
|
1009
|
+
body: ie,
|
|
1010
|
+
footer: oe
|
|
991
1011
|
};
|
|
992
|
-
function
|
|
1012
|
+
function Ji({
|
|
993
1013
|
children: n,
|
|
994
1014
|
header: r,
|
|
995
1015
|
footer: s,
|
|
996
1016
|
className: a = "",
|
|
997
1017
|
childrenClassName: o = "",
|
|
998
|
-
style:
|
|
999
|
-
scrollable:
|
|
1018
|
+
style: _,
|
|
1019
|
+
scrollable: g = !1,
|
|
1000
1020
|
maxHeight: c,
|
|
1001
|
-
...
|
|
1021
|
+
...d
|
|
1002
1022
|
}) {
|
|
1003
1023
|
return /* @__PURE__ */ e.jsxs(
|
|
1004
1024
|
"div",
|
|
1005
1025
|
{
|
|
1006
|
-
className: `${
|
|
1026
|
+
className: `${ct.card} ${a}`,
|
|
1007
1027
|
style: {
|
|
1008
|
-
...
|
|
1009
|
-
...
|
|
1028
|
+
..._,
|
|
1029
|
+
...g ? {
|
|
1010
1030
|
maxHeight: c ?? 400,
|
|
1011
1031
|
overflow: "auto"
|
|
1012
1032
|
} : {}
|
|
1013
1033
|
},
|
|
1014
|
-
...
|
|
1034
|
+
...d,
|
|
1015
1035
|
children: [
|
|
1016
|
-
r && /* @__PURE__ */ e.jsx("div", { className:
|
|
1017
|
-
/* @__PURE__ */ e.jsx("div", { className: `${
|
|
1018
|
-
s && /* @__PURE__ */ e.jsx("div", { className:
|
|
1036
|
+
r && /* @__PURE__ */ e.jsx("div", { className: ct.header, children: r }),
|
|
1037
|
+
/* @__PURE__ */ e.jsx("div", { className: `${ct.body} ${o}`, children: n }),
|
|
1038
|
+
s && /* @__PURE__ */ e.jsx("div", { className: ct.footer, children: s })
|
|
1019
1039
|
]
|
|
1020
1040
|
}
|
|
1021
1041
|
);
|
|
1022
1042
|
}
|
|
1023
|
-
const
|
|
1024
|
-
function
|
|
1043
|
+
const D = (...n) => n.filter(Boolean).join(" ");
|
|
1044
|
+
function Ui({
|
|
1045
|
+
onFile: n,
|
|
1046
|
+
accept: r,
|
|
1047
|
+
fileName: s,
|
|
1048
|
+
disabled: a = !1,
|
|
1049
|
+
title: o = "Drop your file here",
|
|
1050
|
+
subtitle: _,
|
|
1051
|
+
replaceHint: g = "Click or drop another file to replace it",
|
|
1052
|
+
hint: c,
|
|
1053
|
+
className: d,
|
|
1054
|
+
classes: l = {},
|
|
1055
|
+
...f
|
|
1056
|
+
}) {
|
|
1057
|
+
const p = bt(null), [h, v] = Z(!1), x = (A) => {
|
|
1058
|
+
!A || a || n == null || n(A);
|
|
1059
|
+
}, B = (A) => {
|
|
1060
|
+
var w;
|
|
1061
|
+
A.preventDefault(), v(!1), x((w = A.dataTransfer.files) == null ? void 0 : w[0]);
|
|
1062
|
+
};
|
|
1063
|
+
return /* @__PURE__ */ e.jsxs("div", { className: D("mc-dropzone", d, l.root), ...f, children: [
|
|
1064
|
+
/* @__PURE__ */ e.jsx(
|
|
1065
|
+
"input",
|
|
1066
|
+
{
|
|
1067
|
+
ref: p,
|
|
1068
|
+
type: "file",
|
|
1069
|
+
accept: r,
|
|
1070
|
+
disabled: a,
|
|
1071
|
+
className: D(l.input),
|
|
1072
|
+
onChange: (A) => {
|
|
1073
|
+
var w;
|
|
1074
|
+
x((w = A.target.files) == null ? void 0 : w[0]), A.target.value = "";
|
|
1075
|
+
},
|
|
1076
|
+
hidden: !0
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
/* @__PURE__ */ e.jsxs(
|
|
1080
|
+
"button",
|
|
1081
|
+
{
|
|
1082
|
+
type: "button",
|
|
1083
|
+
disabled: a,
|
|
1084
|
+
onClick: () => {
|
|
1085
|
+
var A;
|
|
1086
|
+
return (A = p.current) == null ? void 0 : A.click();
|
|
1087
|
+
},
|
|
1088
|
+
onDragOver: (A) => {
|
|
1089
|
+
A.preventDefault(), v(!0);
|
|
1090
|
+
},
|
|
1091
|
+
onDragLeave: () => v(!1),
|
|
1092
|
+
onDrop: B,
|
|
1093
|
+
className: D(
|
|
1094
|
+
"mc-dropzone__button",
|
|
1095
|
+
h && "mc-dropzone__button--dragging",
|
|
1096
|
+
l.button
|
|
1097
|
+
),
|
|
1098
|
+
children: [
|
|
1099
|
+
/* @__PURE__ */ e.jsx("span", { className: D("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(Gn, { className: "mc-dropzone__icon-svg" }) }),
|
|
1100
|
+
s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1101
|
+
/* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__title", l.fileName), children: s }),
|
|
1102
|
+
/* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__subtitle", l.subtitle), children: g })
|
|
1103
|
+
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1104
|
+
/* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__title", l.title), children: o }),
|
|
1105
|
+
/* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__subtitle", l.subtitle), children: _ ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1106
|
+
"or",
|
|
1107
|
+
" ",
|
|
1108
|
+
/* @__PURE__ */ e.jsx("span", { className: "mc-dropzone__browse", children: "browse your files" })
|
|
1109
|
+
] }) }),
|
|
1110
|
+
c && /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__hint", l.hint), children: c })
|
|
1111
|
+
] })
|
|
1112
|
+
]
|
|
1113
|
+
}
|
|
1114
|
+
)
|
|
1115
|
+
] });
|
|
1116
|
+
}
|
|
1117
|
+
const F = (...n) => n.filter(Boolean).join(" ");
|
|
1118
|
+
function se(n) {
|
|
1119
|
+
if (!n) return null;
|
|
1120
|
+
const r = new Date(n);
|
|
1121
|
+
return Number.isNaN(r.getTime()) ? String(n) : r.toLocaleString();
|
|
1122
|
+
}
|
|
1123
|
+
function Vi({
|
|
1124
|
+
entries: n = [],
|
|
1125
|
+
onLoad: r,
|
|
1126
|
+
onDelete: s,
|
|
1127
|
+
onClear: a,
|
|
1128
|
+
title: o = "History",
|
|
1129
|
+
clearLabel: _ = "Clear all",
|
|
1130
|
+
loadLabel: g = "Load",
|
|
1131
|
+
deleteLabel: c = "Delete",
|
|
1132
|
+
className: d,
|
|
1133
|
+
classes: l = {},
|
|
1134
|
+
...f
|
|
1135
|
+
}) {
|
|
1136
|
+
return n.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: F("mc-history", d, l.root), ...f, children: [
|
|
1137
|
+
/* @__PURE__ */ e.jsxs("div", { className: F("mc-history__header", l.header), children: [
|
|
1138
|
+
/* @__PURE__ */ e.jsx("p", { className: F("mc-history__title", l.title), children: o }),
|
|
1139
|
+
a && /* @__PURE__ */ e.jsx(
|
|
1140
|
+
"button",
|
|
1141
|
+
{
|
|
1142
|
+
type: "button",
|
|
1143
|
+
onClick: a,
|
|
1144
|
+
className: F("mc-history__clear", l.clearButton),
|
|
1145
|
+
children: _
|
|
1146
|
+
}
|
|
1147
|
+
)
|
|
1148
|
+
] }),
|
|
1149
|
+
/* @__PURE__ */ e.jsx("ul", { className: F("mc-history__list", l.list), children: n.map((p) => /* @__PURE__ */ e.jsxs(
|
|
1150
|
+
"li",
|
|
1151
|
+
{
|
|
1152
|
+
className: F("mc-history__item", l.item),
|
|
1153
|
+
children: [
|
|
1154
|
+
/* @__PURE__ */ e.jsxs("div", { className: F("mc-history__details", l.details), children: [
|
|
1155
|
+
/* @__PURE__ */ e.jsx("p", { className: F("mc-history__name", l.fileName), children: p.fileName }),
|
|
1156
|
+
p.date && /* @__PURE__ */ e.jsx("p", { className: F("mc-history__date", l.date), children: se(p.date) })
|
|
1157
|
+
] }),
|
|
1158
|
+
p.format && /* @__PURE__ */ e.jsx("span", { className: F("mc-history__format", l.format), children: String(p.format).toUpperCase() }),
|
|
1159
|
+
r && /* @__PURE__ */ e.jsx(
|
|
1160
|
+
"button",
|
|
1161
|
+
{
|
|
1162
|
+
type: "button",
|
|
1163
|
+
onClick: () => r(p),
|
|
1164
|
+
className: F("mc-history__load", l.loadButton),
|
|
1165
|
+
children: g
|
|
1166
|
+
}
|
|
1167
|
+
),
|
|
1168
|
+
s && /* @__PURE__ */ e.jsx(
|
|
1169
|
+
"button",
|
|
1170
|
+
{
|
|
1171
|
+
type: "button",
|
|
1172
|
+
onClick: () => s(p.id),
|
|
1173
|
+
"aria-label": `${c} ${p.fileName}`,
|
|
1174
|
+
className: F("mc-history__delete", l.deleteButton),
|
|
1175
|
+
children: c
|
|
1176
|
+
}
|
|
1177
|
+
)
|
|
1178
|
+
]
|
|
1179
|
+
},
|
|
1180
|
+
p.id
|
|
1181
|
+
)) })
|
|
1182
|
+
] });
|
|
1183
|
+
}
|
|
1184
|
+
const ae = "#", V = (...n) => n.filter(Boolean).join(" ");
|
|
1185
|
+
function ft() {
|
|
1025
1186
|
const n = typeof window < "u" ? window.location.hash : "";
|
|
1026
|
-
return n.startsWith(
|
|
1187
|
+
return n.startsWith(ae) ? n.slice(1) : n;
|
|
1027
1188
|
}
|
|
1028
|
-
function
|
|
1189
|
+
function Yi({
|
|
1029
1190
|
hash: n,
|
|
1030
1191
|
open: r,
|
|
1031
1192
|
onClose: s,
|
|
1032
1193
|
title: a,
|
|
1033
1194
|
children: o,
|
|
1034
|
-
maxWidth:
|
|
1035
|
-
className:
|
|
1195
|
+
maxWidth: _ = "48rem",
|
|
1196
|
+
className: g,
|
|
1036
1197
|
classes: c = {},
|
|
1037
|
-
...
|
|
1198
|
+
...d
|
|
1038
1199
|
}) {
|
|
1039
|
-
const [
|
|
1040
|
-
|
|
1200
|
+
const [l, f] = Z(() => ft() === n);
|
|
1201
|
+
tt(() => {
|
|
1041
1202
|
if (r !== void 0) return;
|
|
1042
|
-
const x = () =>
|
|
1203
|
+
const x = () => f(ft() === n);
|
|
1043
1204
|
return x(), window.addEventListener("hashchange", x), () => window.removeEventListener("hashchange", x);
|
|
1044
1205
|
}, [n, r]);
|
|
1045
|
-
const
|
|
1206
|
+
const h = r !== void 0 ? r : l, v = () => {
|
|
1046
1207
|
if (s) {
|
|
1047
1208
|
s();
|
|
1048
1209
|
return;
|
|
1049
1210
|
}
|
|
1050
|
-
|
|
1211
|
+
ft() === n && window.history.replaceState(
|
|
1051
1212
|
null,
|
|
1052
1213
|
"",
|
|
1053
1214
|
window.location.pathname + window.location.search
|
|
1054
|
-
),
|
|
1215
|
+
), f(!1);
|
|
1055
1216
|
};
|
|
1056
|
-
return
|
|
1057
|
-
if (!
|
|
1058
|
-
const x = (
|
|
1059
|
-
|
|
1217
|
+
return tt(() => {
|
|
1218
|
+
if (!h) return;
|
|
1219
|
+
const x = (B) => {
|
|
1220
|
+
B.key === "Escape" && v();
|
|
1060
1221
|
};
|
|
1061
1222
|
return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
|
|
1062
|
-
}, [
|
|
1223
|
+
}, [h, s, n]), h ? /* @__PURE__ */ e.jsx(
|
|
1063
1224
|
"div",
|
|
1064
1225
|
{
|
|
1065
|
-
className:
|
|
1226
|
+
className: V("hash-modal", g, c.root),
|
|
1066
1227
|
onClick: v,
|
|
1067
|
-
...
|
|
1228
|
+
...d,
|
|
1068
1229
|
children: /* @__PURE__ */ e.jsxs(
|
|
1069
1230
|
"div",
|
|
1070
1231
|
{
|
|
1071
|
-
className:
|
|
1072
|
-
style: { "--hash-modal-max-width":
|
|
1232
|
+
className: V("hash-modal__dialog", c.dialog),
|
|
1233
|
+
style: { "--hash-modal-max-width": _ },
|
|
1073
1234
|
onClick: (x) => x.stopPropagation(),
|
|
1074
1235
|
role: "dialog",
|
|
1075
1236
|
"aria-modal": "true",
|
|
1076
1237
|
children: [
|
|
1077
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1078
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1238
|
+
/* @__PURE__ */ e.jsxs("div", { className: V("hash-modal__header", c.header), children: [
|
|
1239
|
+
/* @__PURE__ */ e.jsx("h2", { className: V("hash-modal__title", c.title), children: a }),
|
|
1079
1240
|
/* @__PURE__ */ e.jsx(
|
|
1080
1241
|
"button",
|
|
1081
1242
|
{
|
|
1082
1243
|
type: "button",
|
|
1083
1244
|
onClick: v,
|
|
1084
1245
|
"aria-label": "Close",
|
|
1085
|
-
className:
|
|
1246
|
+
className: V("hash-modal__close", c.closeButton),
|
|
1086
1247
|
children: /* @__PURE__ */ e.jsx(
|
|
1087
1248
|
"svg",
|
|
1088
1249
|
{
|
|
1089
1250
|
viewBox: "0 0 24 24",
|
|
1090
1251
|
fill: "none",
|
|
1091
|
-
className:
|
|
1252
|
+
className: V("hash-modal__close-icon", c.closeIcon),
|
|
1092
1253
|
stroke: "currentColor",
|
|
1093
1254
|
strokeWidth: "2",
|
|
1094
1255
|
"aria-hidden": "true",
|
|
@@ -1098,74 +1259,74 @@ function Oi({
|
|
|
1098
1259
|
}
|
|
1099
1260
|
)
|
|
1100
1261
|
] }),
|
|
1101
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1262
|
+
/* @__PURE__ */ e.jsx("div", { className: V("hash-modal__body", c.body), children: o })
|
|
1102
1263
|
]
|
|
1103
1264
|
}
|
|
1104
1265
|
)
|
|
1105
1266
|
}
|
|
1106
1267
|
) : null;
|
|
1107
1268
|
}
|
|
1108
|
-
const
|
|
1109
|
-
function
|
|
1269
|
+
const E = (...n) => n.filter(Boolean).join(" ");
|
|
1270
|
+
function Gi({
|
|
1110
1271
|
title: n,
|
|
1111
1272
|
text: r,
|
|
1112
1273
|
filename: s = "text.txt",
|
|
1113
1274
|
open: a,
|
|
1114
1275
|
onToggle: o,
|
|
1115
|
-
className:
|
|
1116
|
-
classes:
|
|
1276
|
+
className: _,
|
|
1277
|
+
classes: g = {},
|
|
1117
1278
|
...c
|
|
1118
1279
|
}) {
|
|
1119
|
-
const [
|
|
1120
|
-
const
|
|
1121
|
-
o ? o(
|
|
1122
|
-
}, x = async (
|
|
1123
|
-
|
|
1280
|
+
const [d, l] = Z(!0), [f, p] = Z(!1), h = a !== void 0 ? a : d, v = () => {
|
|
1281
|
+
const A = !h;
|
|
1282
|
+
o ? o(A) : l(A);
|
|
1283
|
+
}, x = async (A) => {
|
|
1284
|
+
A.stopPropagation();
|
|
1124
1285
|
try {
|
|
1125
|
-
await navigator.clipboard.writeText(r),
|
|
1126
|
-
|
|
1286
|
+
await navigator.clipboard.writeText(r), p(!0), setTimeout(() => {
|
|
1287
|
+
p(!1);
|
|
1127
1288
|
}, 1500);
|
|
1128
1289
|
} catch {
|
|
1129
|
-
|
|
1290
|
+
p(!1);
|
|
1130
1291
|
}
|
|
1131
|
-
},
|
|
1132
|
-
|
|
1133
|
-
const
|
|
1292
|
+
}, B = (A) => {
|
|
1293
|
+
A.stopPropagation();
|
|
1294
|
+
const w = new Blob([r], {
|
|
1134
1295
|
type: "text/plain;charset=utf-8"
|
|
1135
|
-
}),
|
|
1136
|
-
|
|
1296
|
+
}), j = URL.createObjectURL(w), T = document.createElement("a");
|
|
1297
|
+
T.href = j, T.download = s, document.body.appendChild(T), T.click(), T.remove(), URL.revokeObjectURL(j);
|
|
1137
1298
|
};
|
|
1138
1299
|
return /* @__PURE__ */ e.jsxs(
|
|
1139
1300
|
"div",
|
|
1140
1301
|
{
|
|
1141
|
-
className:
|
|
1302
|
+
className: E(
|
|
1142
1303
|
"mc-acc",
|
|
1143
1304
|
"text-renderer",
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1305
|
+
h && "mc-acc--open",
|
|
1306
|
+
h && "text-renderer--open",
|
|
1307
|
+
_,
|
|
1308
|
+
g.root
|
|
1148
1309
|
),
|
|
1149
1310
|
...c,
|
|
1150
1311
|
children: [
|
|
1151
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1312
|
+
/* @__PURE__ */ e.jsxs("div", { className: E("text-renderer__header", g.header), children: [
|
|
1152
1313
|
/* @__PURE__ */ e.jsxs(
|
|
1153
1314
|
"button",
|
|
1154
1315
|
{
|
|
1155
1316
|
type: "button",
|
|
1156
1317
|
onClick: v,
|
|
1157
|
-
className:
|
|
1158
|
-
"aria-expanded":
|
|
1318
|
+
className: E("text-renderer__toggle", g.toggle),
|
|
1319
|
+
"aria-expanded": h,
|
|
1159
1320
|
children: [
|
|
1160
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1321
|
+
/* @__PURE__ */ e.jsx("span", { className: E("text-renderer__title", g.title), children: n }),
|
|
1161
1322
|
/* @__PURE__ */ e.jsx(
|
|
1162
1323
|
"span",
|
|
1163
1324
|
{
|
|
1164
|
-
className:
|
|
1325
|
+
className: E(
|
|
1165
1326
|
"mc-acc__chevron",
|
|
1166
1327
|
"text-renderer__chevron",
|
|
1167
|
-
|
|
1168
|
-
|
|
1328
|
+
h && "mc-acc__chevron--open",
|
|
1329
|
+
g.chevron
|
|
1169
1330
|
),
|
|
1170
1331
|
children: /* @__PURE__ */ e.jsx(
|
|
1171
1332
|
"svg",
|
|
@@ -1191,21 +1352,21 @@ function Hi({
|
|
|
1191
1352
|
]
|
|
1192
1353
|
}
|
|
1193
1354
|
),
|
|
1194
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1355
|
+
/* @__PURE__ */ e.jsxs("div", { className: E("text-renderer__actions", g.actions), children: [
|
|
1195
1356
|
/* @__PURE__ */ e.jsxs(
|
|
1196
1357
|
"button",
|
|
1197
1358
|
{
|
|
1198
1359
|
type: "button",
|
|
1199
1360
|
onClick: x,
|
|
1200
|
-
className:
|
|
1361
|
+
className: E(
|
|
1201
1362
|
"text-renderer__action",
|
|
1202
1363
|
"text-renderer__copy-button",
|
|
1203
|
-
|
|
1204
|
-
|
|
1364
|
+
g.action,
|
|
1365
|
+
g.copyButton
|
|
1205
1366
|
),
|
|
1206
1367
|
children: [
|
|
1207
|
-
|
|
1208
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1368
|
+
f ? /* @__PURE__ */ e.jsx(qt, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(Xt, { className: "text-renderer__action-icon" }),
|
|
1369
|
+
/* @__PURE__ */ e.jsx("span", { children: f ? "Copied!" : "Copy" })
|
|
1209
1370
|
]
|
|
1210
1371
|
}
|
|
1211
1372
|
),
|
|
@@ -1213,15 +1374,15 @@ function Hi({
|
|
|
1213
1374
|
"button",
|
|
1214
1375
|
{
|
|
1215
1376
|
type: "button",
|
|
1216
|
-
onClick:
|
|
1217
|
-
className:
|
|
1377
|
+
onClick: B,
|
|
1378
|
+
className: E(
|
|
1218
1379
|
"text-renderer__action",
|
|
1219
1380
|
"text-renderer__download-button",
|
|
1220
|
-
|
|
1221
|
-
|
|
1381
|
+
g.action,
|
|
1382
|
+
g.downloadButton
|
|
1222
1383
|
),
|
|
1223
1384
|
children: [
|
|
1224
|
-
/* @__PURE__ */ e.jsx(
|
|
1385
|
+
/* @__PURE__ */ e.jsx(yt, { className: "text-renderer__action-icon" }),
|
|
1225
1386
|
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
1226
1387
|
]
|
|
1227
1388
|
}
|
|
@@ -1231,21 +1392,21 @@ function Hi({
|
|
|
1231
1392
|
/* @__PURE__ */ e.jsx(
|
|
1232
1393
|
"div",
|
|
1233
1394
|
{
|
|
1234
|
-
className:
|
|
1395
|
+
className: E(
|
|
1235
1396
|
"mc-acc__collapse",
|
|
1236
1397
|
"text-renderer__content-wrapper",
|
|
1237
|
-
|
|
1238
|
-
|
|
1398
|
+
h && "mc-acc__collapse--open",
|
|
1399
|
+
g.contentWrapper
|
|
1239
1400
|
),
|
|
1240
1401
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1241
1402
|
"div",
|
|
1242
1403
|
{
|
|
1243
|
-
className:
|
|
1404
|
+
className: E(
|
|
1244
1405
|
"mc-acc__panel",
|
|
1245
1406
|
"text-renderer__content",
|
|
1246
|
-
|
|
1407
|
+
g.content
|
|
1247
1408
|
),
|
|
1248
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1409
|
+
children: /* @__PURE__ */ e.jsx("div", { className: E("text-renderer__scroll", g.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: E("text-renderer__pre", g.pre), children: r }) })
|
|
1249
1410
|
}
|
|
1250
1411
|
) })
|
|
1251
1412
|
}
|
|
@@ -1254,64 +1415,64 @@ function Hi({
|
|
|
1254
1415
|
}
|
|
1255
1416
|
);
|
|
1256
1417
|
}
|
|
1257
|
-
const
|
|
1258
|
-
function
|
|
1418
|
+
const N = (...n) => n.filter(Boolean).join(" ");
|
|
1419
|
+
function Ki({
|
|
1259
1420
|
title: n,
|
|
1260
1421
|
text: r,
|
|
1261
1422
|
filename: s = "text.txt",
|
|
1262
1423
|
open: a,
|
|
1263
1424
|
onToggle: o,
|
|
1264
|
-
extraActions:
|
|
1265
|
-
className:
|
|
1425
|
+
extraActions: _,
|
|
1426
|
+
className: g,
|
|
1266
1427
|
classes: c = {},
|
|
1267
|
-
...
|
|
1428
|
+
...d
|
|
1268
1429
|
}) {
|
|
1269
|
-
const [
|
|
1270
|
-
const
|
|
1271
|
-
o ? o(
|
|
1272
|
-
},
|
|
1273
|
-
|
|
1430
|
+
const [l, f] = Z(!0), [p, h] = Z(!1), v = a !== void 0 ? a : l, x = () => {
|
|
1431
|
+
const w = !v;
|
|
1432
|
+
o ? o(w) : f(w);
|
|
1433
|
+
}, B = async (w) => {
|
|
1434
|
+
w.stopPropagation();
|
|
1274
1435
|
try {
|
|
1275
|
-
await navigator.clipboard.writeText(r),
|
|
1276
|
-
|
|
1436
|
+
await navigator.clipboard.writeText(r), h(!0), setTimeout(() => {
|
|
1437
|
+
h(!1);
|
|
1277
1438
|
}, 1500);
|
|
1278
1439
|
} catch {
|
|
1279
|
-
|
|
1440
|
+
h(!1);
|
|
1280
1441
|
}
|
|
1281
|
-
},
|
|
1282
|
-
|
|
1283
|
-
const
|
|
1442
|
+
}, A = (w) => {
|
|
1443
|
+
w.stopPropagation();
|
|
1444
|
+
const j = new Blob([r], {
|
|
1284
1445
|
type: "text/plain;charset=utf-8"
|
|
1285
|
-
}),
|
|
1286
|
-
|
|
1446
|
+
}), T = URL.createObjectURL(j), O = document.createElement("a");
|
|
1447
|
+
O.href = T, O.download = s, document.body.appendChild(O), O.click(), O.remove(), URL.revokeObjectURL(T);
|
|
1287
1448
|
};
|
|
1288
1449
|
return /* @__PURE__ */ e.jsxs(
|
|
1289
1450
|
"div",
|
|
1290
1451
|
{
|
|
1291
|
-
className:
|
|
1452
|
+
className: N(
|
|
1292
1453
|
"mc-acc",
|
|
1293
1454
|
"text-renderer",
|
|
1294
1455
|
v && "mc-acc--open",
|
|
1295
1456
|
v && "text-renderer--open",
|
|
1296
|
-
|
|
1457
|
+
g,
|
|
1297
1458
|
c.root
|
|
1298
1459
|
),
|
|
1299
|
-
...
|
|
1460
|
+
...d,
|
|
1300
1461
|
children: [
|
|
1301
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1462
|
+
/* @__PURE__ */ e.jsxs("div", { className: N("text-renderer__header", c.header), children: [
|
|
1302
1463
|
/* @__PURE__ */ e.jsxs(
|
|
1303
1464
|
"button",
|
|
1304
1465
|
{
|
|
1305
1466
|
type: "button",
|
|
1306
1467
|
onClick: x,
|
|
1307
|
-
className:
|
|
1468
|
+
className: N("text-renderer__toggle", c.toggle),
|
|
1308
1469
|
"aria-expanded": v,
|
|
1309
1470
|
children: [
|
|
1310
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1471
|
+
/* @__PURE__ */ e.jsx("span", { className: N("text-renderer__title", c.title), children: n }),
|
|
1311
1472
|
/* @__PURE__ */ e.jsx(
|
|
1312
1473
|
"span",
|
|
1313
1474
|
{
|
|
1314
|
-
className:
|
|
1475
|
+
className: N(
|
|
1315
1476
|
"mc-acc__chevron",
|
|
1316
1477
|
"text-renderer__chevron",
|
|
1317
1478
|
v && "mc-acc__chevron--open",
|
|
@@ -1341,21 +1502,21 @@ function Li({
|
|
|
1341
1502
|
]
|
|
1342
1503
|
}
|
|
1343
1504
|
),
|
|
1344
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1505
|
+
/* @__PURE__ */ e.jsxs("div", { className: N("text-renderer__actions", c.actions), children: [
|
|
1345
1506
|
/* @__PURE__ */ e.jsxs(
|
|
1346
1507
|
"button",
|
|
1347
1508
|
{
|
|
1348
1509
|
type: "button",
|
|
1349
|
-
onClick:
|
|
1350
|
-
className:
|
|
1510
|
+
onClick: B,
|
|
1511
|
+
className: N(
|
|
1351
1512
|
"text-renderer__action",
|
|
1352
1513
|
"text-renderer__copy-button",
|
|
1353
1514
|
c.action,
|
|
1354
1515
|
c.copyButton
|
|
1355
1516
|
),
|
|
1356
1517
|
children: [
|
|
1357
|
-
|
|
1358
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1518
|
+
p ? /* @__PURE__ */ e.jsx(qt, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(Xt, { className: "text-renderer__action-icon" }),
|
|
1519
|
+
/* @__PURE__ */ e.jsx("span", { children: p ? "Copied!" : "Copy" })
|
|
1359
1520
|
]
|
|
1360
1521
|
}
|
|
1361
1522
|
),
|
|
@@ -1363,26 +1524,26 @@ function Li({
|
|
|
1363
1524
|
"button",
|
|
1364
1525
|
{
|
|
1365
1526
|
type: "button",
|
|
1366
|
-
onClick:
|
|
1367
|
-
className:
|
|
1527
|
+
onClick: A,
|
|
1528
|
+
className: N(
|
|
1368
1529
|
"text-renderer__action",
|
|
1369
1530
|
"text-renderer__download-button",
|
|
1370
1531
|
c.action,
|
|
1371
1532
|
c.downloadButton
|
|
1372
1533
|
),
|
|
1373
1534
|
children: [
|
|
1374
|
-
/* @__PURE__ */ e.jsx(
|
|
1535
|
+
/* @__PURE__ */ e.jsx(yt, { className: "text-renderer__action-icon" }),
|
|
1375
1536
|
/* @__PURE__ */ e.jsx("span", { children: "Download" })
|
|
1376
1537
|
]
|
|
1377
1538
|
}
|
|
1378
1539
|
),
|
|
1379
|
-
|
|
1540
|
+
_
|
|
1380
1541
|
] })
|
|
1381
1542
|
] }),
|
|
1382
1543
|
/* @__PURE__ */ e.jsx(
|
|
1383
1544
|
"div",
|
|
1384
1545
|
{
|
|
1385
|
-
className:
|
|
1546
|
+
className: N(
|
|
1386
1547
|
"mc-acc__collapse",
|
|
1387
1548
|
"text-renderer__content-wrapper",
|
|
1388
1549
|
v && "mc-acc__collapse--open",
|
|
@@ -1391,12 +1552,12 @@ function Li({
|
|
|
1391
1552
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1392
1553
|
"div",
|
|
1393
1554
|
{
|
|
1394
|
-
className:
|
|
1555
|
+
className: N(
|
|
1395
1556
|
"mc-acc__panel",
|
|
1396
1557
|
"text-renderer__content",
|
|
1397
1558
|
c.content
|
|
1398
1559
|
),
|
|
1399
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1560
|
+
children: /* @__PURE__ */ e.jsx("div", { className: N("text-renderer__scroll", c.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: N("text-renderer__pre", c.pre), children: r }) })
|
|
1400
1561
|
}
|
|
1401
1562
|
) })
|
|
1402
1563
|
}
|
|
@@ -1405,50 +1566,50 @@ function Li({
|
|
|
1405
1566
|
}
|
|
1406
1567
|
);
|
|
1407
1568
|
}
|
|
1408
|
-
const
|
|
1409
|
-
function
|
|
1569
|
+
const K = (...n) => n.filter(Boolean).join(" ");
|
|
1570
|
+
function Qi({
|
|
1410
1571
|
title: n,
|
|
1411
1572
|
children: r,
|
|
1412
1573
|
className: s = "",
|
|
1413
1574
|
open: a,
|
|
1414
1575
|
onToggle: o,
|
|
1415
|
-
classes:
|
|
1416
|
-
...
|
|
1576
|
+
classes: _ = {},
|
|
1577
|
+
...g
|
|
1417
1578
|
}) {
|
|
1418
|
-
const [c,
|
|
1419
|
-
const
|
|
1420
|
-
o ? o(
|
|
1579
|
+
const [c, d] = Z(!0), l = a !== void 0 ? a : c, f = () => {
|
|
1580
|
+
const p = !l;
|
|
1581
|
+
o ? o(p) : d(p);
|
|
1421
1582
|
};
|
|
1422
1583
|
return /* @__PURE__ */ e.jsxs(
|
|
1423
1584
|
"div",
|
|
1424
1585
|
{
|
|
1425
|
-
className:
|
|
1586
|
+
className: K(
|
|
1426
1587
|
"mc-acc",
|
|
1427
1588
|
"info-accordion",
|
|
1428
|
-
|
|
1429
|
-
|
|
1589
|
+
l && "mc-acc--open",
|
|
1590
|
+
l && "info-accordion--open",
|
|
1430
1591
|
s,
|
|
1431
|
-
|
|
1592
|
+
_.root
|
|
1432
1593
|
),
|
|
1433
|
-
...
|
|
1594
|
+
...g,
|
|
1434
1595
|
children: [
|
|
1435
1596
|
/* @__PURE__ */ e.jsxs(
|
|
1436
1597
|
"button",
|
|
1437
1598
|
{
|
|
1438
1599
|
type: "button",
|
|
1439
|
-
onClick:
|
|
1440
|
-
className:
|
|
1441
|
-
"aria-expanded":
|
|
1600
|
+
onClick: f,
|
|
1601
|
+
className: K("info-accordion__toggle", _.toggle),
|
|
1602
|
+
"aria-expanded": l,
|
|
1442
1603
|
children: [
|
|
1443
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1604
|
+
/* @__PURE__ */ e.jsx("span", { className: K("info-accordion__title", _.title), children: n }),
|
|
1444
1605
|
/* @__PURE__ */ e.jsx(
|
|
1445
1606
|
"span",
|
|
1446
1607
|
{
|
|
1447
|
-
className:
|
|
1608
|
+
className: K(
|
|
1448
1609
|
"mc-acc__chevron",
|
|
1449
1610
|
"info-accordion__chevron",
|
|
1450
|
-
|
|
1451
|
-
|
|
1611
|
+
l && "mc-acc__chevron--open",
|
|
1612
|
+
_.chevron
|
|
1452
1613
|
),
|
|
1453
1614
|
children: /* @__PURE__ */ e.jsx(
|
|
1454
1615
|
"svg",
|
|
@@ -1477,19 +1638,19 @@ function Ji({
|
|
|
1477
1638
|
/* @__PURE__ */ e.jsx(
|
|
1478
1639
|
"div",
|
|
1479
1640
|
{
|
|
1480
|
-
className:
|
|
1641
|
+
className: K(
|
|
1481
1642
|
"mc-acc__collapse",
|
|
1482
1643
|
"info-accordion__content-wrapper",
|
|
1483
|
-
|
|
1484
|
-
|
|
1644
|
+
l && "mc-acc__collapse--open",
|
|
1645
|
+
_.contentWrapper
|
|
1485
1646
|
),
|
|
1486
1647
|
children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
|
|
1487
1648
|
"div",
|
|
1488
1649
|
{
|
|
1489
|
-
className:
|
|
1650
|
+
className: K(
|
|
1490
1651
|
"mc-acc__panel",
|
|
1491
1652
|
"info-accordion__content",
|
|
1492
|
-
|
|
1653
|
+
_.content
|
|
1493
1654
|
),
|
|
1494
1655
|
children: r
|
|
1495
1656
|
}
|
|
@@ -1500,13 +1661,13 @@ function Ji({
|
|
|
1500
1661
|
}
|
|
1501
1662
|
);
|
|
1502
1663
|
}
|
|
1503
|
-
function
|
|
1664
|
+
function Wi(n) {
|
|
1504
1665
|
return n.split(/(\d+)/).map((s, a) => s.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: s }, a) : s);
|
|
1505
1666
|
}
|
|
1506
|
-
const
|
|
1667
|
+
const ce = {
|
|
1507
1668
|
display: "inline-block",
|
|
1508
1669
|
position: "relative"
|
|
1509
|
-
},
|
|
1670
|
+
}, _e = {
|
|
1510
1671
|
position: "absolute",
|
|
1511
1672
|
top: "0.15em",
|
|
1512
1673
|
left: 0,
|
|
@@ -1515,606 +1676,643 @@ const ie = {
|
|
|
1515
1676
|
height: 0,
|
|
1516
1677
|
zIndex: 1
|
|
1517
1678
|
};
|
|
1518
|
-
function
|
|
1679
|
+
function Xi(n) {
|
|
1519
1680
|
let r = !1, s = !1;
|
|
1520
|
-
return /* @__PURE__ */ e.jsx("span", { children: n.split("").map((a, o) => a == "-" ? (s = !0, null) : a == "_" ? (r = !0, null) : s ? (s = !1, /* @__PURE__ */ e.jsxs("span", { style:
|
|
1521
|
-
/* @__PURE__ */ e.jsx("span", { style:
|
|
1681
|
+
return /* @__PURE__ */ e.jsx("span", { children: n.split("").map((a, o) => a == "-" ? (s = !0, null) : a == "_" ? (r = !0, null) : s ? (s = !1, /* @__PURE__ */ e.jsxs("span", { style: ce, children: [
|
|
1682
|
+
/* @__PURE__ */ e.jsx("span", { style: _e }),
|
|
1522
1683
|
a
|
|
1523
1684
|
] }, o)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: a }, o)) : a) });
|
|
1524
1685
|
}
|
|
1525
|
-
function
|
|
1686
|
+
function qi(n, { maxEntries: r = 50 } = {}) {
|
|
1687
|
+
function s() {
|
|
1688
|
+
try {
|
|
1689
|
+
const c = localStorage.getItem(n);
|
|
1690
|
+
if (!c) return [];
|
|
1691
|
+
const d = JSON.parse(c);
|
|
1692
|
+
return Array.isArray(d) ? d : [];
|
|
1693
|
+
} catch {
|
|
1694
|
+
return [];
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
function a(c) {
|
|
1698
|
+
try {
|
|
1699
|
+
return localStorage.setItem(
|
|
1700
|
+
n,
|
|
1701
|
+
JSON.stringify(c.slice(0, r))
|
|
1702
|
+
), !0;
|
|
1703
|
+
} catch {
|
|
1704
|
+
return !1;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
function o(c) {
|
|
1708
|
+
const d = [c, ...s().filter((l) => l.id !== c.id)].slice(
|
|
1709
|
+
0,
|
|
1710
|
+
r
|
|
1711
|
+
);
|
|
1712
|
+
return a(d), d;
|
|
1713
|
+
}
|
|
1714
|
+
function _(c) {
|
|
1715
|
+
const d = s().filter((l) => l.id !== c);
|
|
1716
|
+
return a(d), d;
|
|
1717
|
+
}
|
|
1718
|
+
function g() {
|
|
1719
|
+
return a([]), [];
|
|
1720
|
+
}
|
|
1721
|
+
return { load: s, save: a, add: o, remove: _, clear: g };
|
|
1722
|
+
}
|
|
1723
|
+
function $t(n) {
|
|
1526
1724
|
return Math.sqrt(n.reduce((r, s) => r + s * s, 0));
|
|
1527
1725
|
}
|
|
1528
|
-
function
|
|
1726
|
+
function tn(n, r) {
|
|
1529
1727
|
return n.reduce((s, a, o) => s + a * r[o], 0);
|
|
1530
1728
|
}
|
|
1531
|
-
function
|
|
1729
|
+
function le(n) {
|
|
1532
1730
|
return n[0].map((r, s) => n.map((a) => a[s]));
|
|
1533
1731
|
}
|
|
1534
|
-
function
|
|
1732
|
+
function me(n, r) {
|
|
1535
1733
|
return n.map((s) => s.map((a) => a * r));
|
|
1536
1734
|
}
|
|
1537
|
-
function
|
|
1735
|
+
function ge(n) {
|
|
1538
1736
|
return Array.from(
|
|
1539
1737
|
{ length: n },
|
|
1540
1738
|
(r, s) => Array.from({ length: n }, (a, o) => s === o ? 1 : 0)
|
|
1541
1739
|
);
|
|
1542
1740
|
}
|
|
1543
|
-
function
|
|
1741
|
+
function de(n, r) {
|
|
1544
1742
|
for (var s = [], a = 0; a < n.length; a++) {
|
|
1545
1743
|
s[a] = [];
|
|
1546
1744
|
for (var o = 0; o < r[0].length; o++) {
|
|
1547
|
-
for (var
|
|
1548
|
-
|
|
1549
|
-
s[a][o] =
|
|
1745
|
+
for (var _ = 0, g = 0; g < n[0].length; g++)
|
|
1746
|
+
_ += n[a][g] * r[g][o];
|
|
1747
|
+
s[a][o] = _;
|
|
1550
1748
|
}
|
|
1551
1749
|
}
|
|
1552
1750
|
return s;
|
|
1553
1751
|
}
|
|
1554
|
-
function
|
|
1555
|
-
const r = n.length, s = n.map((o) =>
|
|
1752
|
+
function ue(n) {
|
|
1753
|
+
const r = n.length, s = n.map((o) => $t(o)), a = Array.from({ length: r }, () => Array(r).fill(0));
|
|
1556
1754
|
for (let o = 0; o < r; o++)
|
|
1557
|
-
for (let
|
|
1558
|
-
if (o ===
|
|
1559
|
-
a[o][
|
|
1755
|
+
for (let _ = 0; _ < r; _++) {
|
|
1756
|
+
if (o === _) {
|
|
1757
|
+
a[o][_] = 0;
|
|
1560
1758
|
continue;
|
|
1561
1759
|
}
|
|
1562
|
-
const
|
|
1563
|
-
if (c > 0 &&
|
|
1564
|
-
let
|
|
1565
|
-
|
|
1566
|
-
const
|
|
1567
|
-
a[o][
|
|
1760
|
+
const g = tn(n[o], n[_]), c = s[o], d = s[_];
|
|
1761
|
+
if (c > 0 && d > 0) {
|
|
1762
|
+
let l = g / (c * d);
|
|
1763
|
+
l = Math.max(-1, Math.min(1, l));
|
|
1764
|
+
const f = Math.acos(l);
|
|
1765
|
+
a[o][_] = f * (180 / Math.PI);
|
|
1568
1766
|
} else
|
|
1569
|
-
a[o][
|
|
1767
|
+
a[o][_] = null;
|
|
1570
1768
|
}
|
|
1571
1769
|
return { lengths: s, angles: a };
|
|
1572
1770
|
}
|
|
1573
|
-
function
|
|
1771
|
+
function pe(n) {
|
|
1574
1772
|
const r = n.length, s = n.map((o) => o.slice()), a = Array.from(
|
|
1575
1773
|
{ length: r },
|
|
1576
|
-
(o,
|
|
1774
|
+
(o, _) => Array.from({ length: r }, (g, c) => _ === c ? 1 : 0)
|
|
1577
1775
|
);
|
|
1578
1776
|
for (let o = 0; o < r; o++) {
|
|
1579
|
-
let
|
|
1777
|
+
let _ = o;
|
|
1580
1778
|
for (let c = o + 1; c < r; c++)
|
|
1581
|
-
Math.abs(s[c][o]) > Math.abs(s[
|
|
1582
|
-
if ([s[o], s[
|
|
1779
|
+
Math.abs(s[c][o]) > Math.abs(s[_][o]) && (_ = c);
|
|
1780
|
+
if ([s[o], s[_]] = [s[_], s[o]], [a[o], a[_]] = [a[_], a[o]], s[o][o] === 0)
|
|
1583
1781
|
throw new Error("Matrix is singular and cannot be inverted.");
|
|
1584
|
-
const
|
|
1782
|
+
const g = s[o][o];
|
|
1585
1783
|
for (let c = 0; c < r; c++)
|
|
1586
|
-
s[o][c] /=
|
|
1784
|
+
s[o][c] /= g, a[o][c] /= g;
|
|
1587
1785
|
for (let c = 0; c < r; c++) {
|
|
1588
1786
|
if (c === o) continue;
|
|
1589
|
-
const
|
|
1590
|
-
for (let
|
|
1591
|
-
s[c][
|
|
1787
|
+
const d = s[c][o];
|
|
1788
|
+
for (let l = 0; l < r; l++)
|
|
1789
|
+
s[c][l] -= d * s[o][l], a[c][l] -= d * a[o][l];
|
|
1592
1790
|
}
|
|
1593
1791
|
}
|
|
1594
1792
|
return a;
|
|
1595
1793
|
}
|
|
1596
|
-
function
|
|
1794
|
+
function nn(n) {
|
|
1597
1795
|
const r = n.length;
|
|
1598
1796
|
if (r === 1) return n[0][0];
|
|
1599
1797
|
if (r === 2)
|
|
1600
1798
|
return n[0][0] * n[1][1] - n[0][1] * n[1][0];
|
|
1601
1799
|
let s = 0;
|
|
1602
1800
|
for (let a = 0; a < r; a++) {
|
|
1603
|
-
const o = n.slice(1).map((
|
|
1604
|
-
s +=
|
|
1801
|
+
const o = n.slice(1).map((g) => g.filter((c, d) => d !== a)), _ = a % 2 === 0 ? 1 : -1;
|
|
1802
|
+
s += _ * n[0][a] * nn(o);
|
|
1605
1803
|
}
|
|
1606
1804
|
return s;
|
|
1607
1805
|
}
|
|
1608
|
-
const
|
|
1806
|
+
const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1609
1807
|
__proto__: null,
|
|
1610
|
-
determinant:
|
|
1611
|
-
dot:
|
|
1612
|
-
getMatrixParams:
|
|
1613
|
-
identityMatrix:
|
|
1614
|
-
invertMatrix:
|
|
1615
|
-
multiplyMatrices:
|
|
1616
|
-
norm:
|
|
1617
|
-
scalarMultiply:
|
|
1618
|
-
transpose:
|
|
1619
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1808
|
+
determinant: nn,
|
|
1809
|
+
dot: tn,
|
|
1810
|
+
getMatrixParams: ue,
|
|
1811
|
+
identityMatrix: ge,
|
|
1812
|
+
invertMatrix: pe,
|
|
1813
|
+
multiplyMatrices: de,
|
|
1814
|
+
norm: $t,
|
|
1815
|
+
scalarMultiply: me,
|
|
1816
|
+
transpose: le
|
|
1817
|
+
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
1620
1818
|
Z: 1,
|
|
1621
1819
|
mz: 1.00794
|
|
1622
|
-
},
|
|
1820
|
+
}, fe = {
|
|
1623
1821
|
Z: 2,
|
|
1624
1822
|
mz: 4.002602
|
|
1625
|
-
},
|
|
1823
|
+
}, Pe = {
|
|
1626
1824
|
Z: 3,
|
|
1627
1825
|
mz: 6.941
|
|
1628
|
-
},
|
|
1826
|
+
}, ve = {
|
|
1629
1827
|
Z: 4,
|
|
1630
1828
|
mz: 9.012182
|
|
1631
|
-
},
|
|
1829
|
+
}, be = {
|
|
1632
1830
|
Z: 5,
|
|
1633
1831
|
mz: 10.811
|
|
1634
|
-
},
|
|
1832
|
+
}, ye = {
|
|
1635
1833
|
Z: 6,
|
|
1636
1834
|
mz: 12.0107
|
|
1637
|
-
},
|
|
1835
|
+
}, xe = {
|
|
1638
1836
|
Z: 7,
|
|
1639
1837
|
mz: 14.0067
|
|
1640
|
-
},
|
|
1838
|
+
}, Ae = {
|
|
1641
1839
|
Z: 8,
|
|
1642
1840
|
mz: 15.9994
|
|
1643
|
-
},
|
|
1841
|
+
}, ke = {
|
|
1644
1842
|
Z: 9,
|
|
1645
1843
|
mz: 18.9984032
|
|
1646
|
-
},
|
|
1844
|
+
}, we = {
|
|
1647
1845
|
Z: 10,
|
|
1648
1846
|
mz: 20.1797
|
|
1649
|
-
},
|
|
1847
|
+
}, Ce = {
|
|
1650
1848
|
Z: 11,
|
|
1651
1849
|
mz: 22.98976928
|
|
1652
|
-
},
|
|
1850
|
+
}, je = {
|
|
1653
1851
|
Z: 12,
|
|
1654
1852
|
mz: 24.305
|
|
1655
|
-
},
|
|
1853
|
+
}, Ie = {
|
|
1656
1854
|
Z: 13,
|
|
1657
1855
|
mz: 26.9815386
|
|
1658
|
-
},
|
|
1856
|
+
}, Re = {
|
|
1659
1857
|
Z: 14,
|
|
1660
1858
|
mz: 28.0855
|
|
1661
|
-
},
|
|
1859
|
+
}, Se = {
|
|
1662
1860
|
Z: 15,
|
|
1663
1861
|
mz: 30.973762
|
|
1664
|
-
},
|
|
1862
|
+
}, ze = {
|
|
1665
1863
|
Z: 16,
|
|
1666
1864
|
mz: 32.065
|
|
1667
|
-
},
|
|
1865
|
+
}, Fe = {
|
|
1668
1866
|
Z: 17,
|
|
1669
1867
|
mz: 35.453
|
|
1670
|
-
},
|
|
1868
|
+
}, Ee = {
|
|
1671
1869
|
Z: 18,
|
|
1672
1870
|
mz: 39.948
|
|
1673
|
-
},
|
|
1871
|
+
}, Ne = {
|
|
1674
1872
|
Z: 19,
|
|
1675
1873
|
mz: 39.0983
|
|
1676
|
-
},
|
|
1874
|
+
}, Be = {
|
|
1677
1875
|
Z: 20,
|
|
1678
1876
|
mz: 40.078
|
|
1679
|
-
},
|
|
1877
|
+
}, Te = {
|
|
1680
1878
|
Z: 21,
|
|
1681
1879
|
mz: 44.955912
|
|
1682
|
-
},
|
|
1880
|
+
}, Ze = {
|
|
1683
1881
|
Z: 22,
|
|
1684
1882
|
mz: 47.867
|
|
1685
|
-
},
|
|
1883
|
+
}, De = {
|
|
1686
1884
|
Z: 23,
|
|
1687
1885
|
mz: 50.9415
|
|
1688
|
-
},
|
|
1886
|
+
}, Me = {
|
|
1689
1887
|
Z: 24,
|
|
1690
1888
|
mz: 51.9961
|
|
1691
|
-
},
|
|
1889
|
+
}, Oe = {
|
|
1692
1890
|
Z: 25,
|
|
1693
1891
|
mz: 54.938045
|
|
1694
|
-
},
|
|
1892
|
+
}, He = {
|
|
1695
1893
|
Z: 26,
|
|
1696
1894
|
mz: 55.845
|
|
1697
|
-
},
|
|
1895
|
+
}, Le = {
|
|
1698
1896
|
Z: 27,
|
|
1699
1897
|
mz: 58.933195
|
|
1700
|
-
},
|
|
1898
|
+
}, Je = {
|
|
1701
1899
|
Z: 28,
|
|
1702
1900
|
mz: 58.6934
|
|
1703
|
-
},
|
|
1901
|
+
}, Ue = {
|
|
1704
1902
|
Z: 29,
|
|
1705
1903
|
mz: 63.546
|
|
1706
|
-
},
|
|
1904
|
+
}, Ve = {
|
|
1707
1905
|
Z: 30,
|
|
1708
1906
|
mz: 65.409
|
|
1709
|
-
},
|
|
1907
|
+
}, Ye = {
|
|
1710
1908
|
Z: 31,
|
|
1711
1909
|
mz: 69.723
|
|
1712
|
-
},
|
|
1910
|
+
}, Ge = {
|
|
1713
1911
|
Z: 32,
|
|
1714
1912
|
mz: 72.64
|
|
1715
|
-
},
|
|
1913
|
+
}, Ke = {
|
|
1716
1914
|
Z: 33,
|
|
1717
1915
|
mz: 74.9216
|
|
1718
|
-
},
|
|
1916
|
+
}, Qe = {
|
|
1719
1917
|
Z: 34,
|
|
1720
1918
|
mz: 78.96
|
|
1721
|
-
},
|
|
1919
|
+
}, We = {
|
|
1722
1920
|
Z: 35,
|
|
1723
1921
|
mz: 79.904
|
|
1724
|
-
},
|
|
1922
|
+
}, Xe = {
|
|
1725
1923
|
Z: 36,
|
|
1726
1924
|
mz: 83.798
|
|
1727
|
-
},
|
|
1925
|
+
}, qe = {
|
|
1728
1926
|
Z: 37,
|
|
1729
1927
|
mz: 85.4678
|
|
1730
|
-
},
|
|
1928
|
+
}, $e = {
|
|
1731
1929
|
Z: 38,
|
|
1732
1930
|
mz: 87.62
|
|
1733
|
-
},
|
|
1931
|
+
}, tr = {
|
|
1734
1932
|
Z: 39,
|
|
1735
1933
|
mz: 88.90585
|
|
1736
|
-
},
|
|
1934
|
+
}, nr = {
|
|
1737
1935
|
Z: 40,
|
|
1738
1936
|
mz: 91.224
|
|
1739
|
-
},
|
|
1937
|
+
}, er = {
|
|
1740
1938
|
Z: 41,
|
|
1741
1939
|
mz: 92.90638
|
|
1742
|
-
},
|
|
1940
|
+
}, rr = {
|
|
1743
1941
|
Z: 42,
|
|
1744
1942
|
mz: 95.94
|
|
1745
|
-
},
|
|
1943
|
+
}, ir = {
|
|
1746
1944
|
Z: 43,
|
|
1747
1945
|
mz: 98
|
|
1748
|
-
},
|
|
1946
|
+
}, or = {
|
|
1749
1947
|
Z: 44,
|
|
1750
1948
|
mz: 101.07
|
|
1751
|
-
},
|
|
1949
|
+
}, sr = {
|
|
1752
1950
|
Z: 45,
|
|
1753
1951
|
mz: 102.9055
|
|
1754
|
-
},
|
|
1952
|
+
}, ar = {
|
|
1755
1953
|
Z: 46,
|
|
1756
1954
|
mz: 106.42
|
|
1757
|
-
},
|
|
1955
|
+
}, cr = {
|
|
1758
1956
|
Z: 47,
|
|
1759
1957
|
mz: 107.8682
|
|
1760
|
-
},
|
|
1958
|
+
}, _r = {
|
|
1761
1959
|
Z: 48,
|
|
1762
1960
|
mz: 112.411
|
|
1763
|
-
},
|
|
1961
|
+
}, lr = {
|
|
1764
1962
|
Z: 49,
|
|
1765
1963
|
mz: 114.818
|
|
1766
|
-
},
|
|
1964
|
+
}, mr = {
|
|
1767
1965
|
Z: 50,
|
|
1768
1966
|
mz: 118.71
|
|
1769
|
-
},
|
|
1967
|
+
}, gr = {
|
|
1770
1968
|
Z: 51,
|
|
1771
1969
|
mz: 121.76
|
|
1772
|
-
},
|
|
1970
|
+
}, dr = {
|
|
1773
1971
|
Z: 52,
|
|
1774
1972
|
mz: 127.6
|
|
1775
|
-
},
|
|
1973
|
+
}, ur = {
|
|
1776
1974
|
Z: 53,
|
|
1777
1975
|
mz: 126.90447
|
|
1778
|
-
},
|
|
1976
|
+
}, pr = {
|
|
1779
1977
|
Z: 54,
|
|
1780
1978
|
mz: 131.293
|
|
1781
|
-
},
|
|
1979
|
+
}, hr = {
|
|
1782
1980
|
Z: 55,
|
|
1783
1981
|
mz: 132.9054519
|
|
1784
|
-
},
|
|
1982
|
+
}, fr = {
|
|
1785
1983
|
Z: 56,
|
|
1786
1984
|
mz: 137.327
|
|
1787
|
-
},
|
|
1985
|
+
}, Pr = {
|
|
1788
1986
|
Z: 57,
|
|
1789
1987
|
mz: 138.90547
|
|
1790
|
-
},
|
|
1988
|
+
}, vr = {
|
|
1791
1989
|
Z: 58,
|
|
1792
1990
|
mz: 140.116
|
|
1793
|
-
},
|
|
1991
|
+
}, br = {
|
|
1794
1992
|
Z: 59,
|
|
1795
1993
|
mz: 140.90765
|
|
1796
|
-
},
|
|
1994
|
+
}, yr = {
|
|
1797
1995
|
Z: 60,
|
|
1798
1996
|
mz: 144.242
|
|
1799
|
-
},
|
|
1997
|
+
}, xr = {
|
|
1800
1998
|
Z: 61,
|
|
1801
1999
|
mz: 145
|
|
1802
|
-
},
|
|
2000
|
+
}, Ar = {
|
|
1803
2001
|
Z: 62,
|
|
1804
2002
|
mz: 150.36
|
|
1805
|
-
},
|
|
2003
|
+
}, kr = {
|
|
1806
2004
|
Z: 63,
|
|
1807
2005
|
mz: 151.964
|
|
1808
|
-
},
|
|
2006
|
+
}, wr = {
|
|
1809
2007
|
Z: 64,
|
|
1810
2008
|
mz: 157.25
|
|
1811
|
-
},
|
|
2009
|
+
}, Cr = {
|
|
1812
2010
|
Z: 65,
|
|
1813
2011
|
mz: 158.92535
|
|
1814
|
-
},
|
|
2012
|
+
}, jr = {
|
|
1815
2013
|
Z: 66,
|
|
1816
2014
|
mz: 162.5
|
|
1817
|
-
},
|
|
2015
|
+
}, Ir = {
|
|
1818
2016
|
Z: 67,
|
|
1819
2017
|
mz: 164.93032
|
|
1820
|
-
},
|
|
2018
|
+
}, Rr = {
|
|
1821
2019
|
Z: 68,
|
|
1822
2020
|
mz: 167.259
|
|
1823
|
-
},
|
|
2021
|
+
}, Sr = {
|
|
1824
2022
|
Z: 69,
|
|
1825
2023
|
mz: 168.93421
|
|
1826
|
-
},
|
|
2024
|
+
}, zr = {
|
|
1827
2025
|
Z: 70,
|
|
1828
2026
|
mz: 173.04
|
|
1829
|
-
},
|
|
2027
|
+
}, Fr = {
|
|
1830
2028
|
Z: 71,
|
|
1831
2029
|
mz: 174.967
|
|
1832
|
-
},
|
|
2030
|
+
}, Er = {
|
|
1833
2031
|
Z: 72,
|
|
1834
2032
|
mz: 178.49
|
|
1835
|
-
},
|
|
2033
|
+
}, Nr = {
|
|
1836
2034
|
Z: 73,
|
|
1837
2035
|
mz: 180.94788
|
|
1838
|
-
},
|
|
2036
|
+
}, Br = {
|
|
1839
2037
|
Z: 74,
|
|
1840
2038
|
mz: 183.84
|
|
1841
|
-
},
|
|
2039
|
+
}, Tr = {
|
|
1842
2040
|
Z: 75,
|
|
1843
2041
|
mz: 186.207
|
|
1844
|
-
},
|
|
2042
|
+
}, Zr = {
|
|
1845
2043
|
Z: 76,
|
|
1846
2044
|
mz: 190.23
|
|
1847
|
-
},
|
|
2045
|
+
}, Dr = {
|
|
1848
2046
|
Z: 77,
|
|
1849
2047
|
mz: 192.217
|
|
1850
|
-
},
|
|
2048
|
+
}, Mr = {
|
|
1851
2049
|
Z: 78,
|
|
1852
2050
|
mz: 195.084
|
|
1853
|
-
},
|
|
2051
|
+
}, Or = {
|
|
1854
2052
|
Z: 79,
|
|
1855
2053
|
mz: 196.966569
|
|
1856
|
-
},
|
|
2054
|
+
}, Hr = {
|
|
1857
2055
|
Z: 80,
|
|
1858
2056
|
mz: 200.59
|
|
1859
|
-
},
|
|
2057
|
+
}, Lr = {
|
|
1860
2058
|
Z: 81,
|
|
1861
2059
|
mz: 204.3833
|
|
1862
|
-
},
|
|
2060
|
+
}, Jr = {
|
|
1863
2061
|
Z: 82,
|
|
1864
2062
|
mz: 207.2
|
|
1865
|
-
},
|
|
2063
|
+
}, Ur = {
|
|
1866
2064
|
Z: 83,
|
|
1867
2065
|
mz: 208.9804
|
|
1868
|
-
},
|
|
2066
|
+
}, Vr = {
|
|
1869
2067
|
Z: 84,
|
|
1870
2068
|
mz: 210
|
|
1871
|
-
},
|
|
2069
|
+
}, Yr = {
|
|
1872
2070
|
Z: 85,
|
|
1873
2071
|
mz: 210
|
|
1874
|
-
},
|
|
2072
|
+
}, Gr = {
|
|
1875
2073
|
Z: 86,
|
|
1876
2074
|
mz: 220
|
|
1877
|
-
},
|
|
2075
|
+
}, Kr = {
|
|
1878
2076
|
Z: 87,
|
|
1879
2077
|
mz: 223
|
|
1880
|
-
},
|
|
2078
|
+
}, Qr = {
|
|
1881
2079
|
Z: 88,
|
|
1882
2080
|
mz: 226
|
|
1883
|
-
},
|
|
2081
|
+
}, Wr = {
|
|
1884
2082
|
Z: 89,
|
|
1885
2083
|
mz: 227
|
|
1886
|
-
},
|
|
2084
|
+
}, Xr = {
|
|
1887
2085
|
Z: 90,
|
|
1888
2086
|
mz: 232.03806
|
|
1889
|
-
},
|
|
2087
|
+
}, qr = {
|
|
1890
2088
|
Z: 91,
|
|
1891
2089
|
mz: 231.03588
|
|
1892
|
-
},
|
|
2090
|
+
}, $r = {
|
|
1893
2091
|
Z: 92,
|
|
1894
2092
|
mz: 238.02891
|
|
1895
|
-
},
|
|
2093
|
+
}, ti = {
|
|
1896
2094
|
Z: 93,
|
|
1897
2095
|
mz: 237
|
|
1898
|
-
},
|
|
2096
|
+
}, ni = {
|
|
1899
2097
|
Z: 94,
|
|
1900
2098
|
mz: 244
|
|
1901
|
-
},
|
|
2099
|
+
}, ei = {
|
|
1902
2100
|
Z: 95,
|
|
1903
2101
|
mz: 243
|
|
1904
|
-
},
|
|
2102
|
+
}, ri = {
|
|
1905
2103
|
Z: 96,
|
|
1906
2104
|
mz: 247
|
|
1907
|
-
},
|
|
2105
|
+
}, ii = {
|
|
1908
2106
|
Z: 97,
|
|
1909
2107
|
mz: 247
|
|
1910
|
-
},
|
|
2108
|
+
}, oi = {
|
|
1911
2109
|
Z: 98,
|
|
1912
2110
|
mz: 251
|
|
1913
|
-
},
|
|
2111
|
+
}, si = {
|
|
1914
2112
|
Z: 99,
|
|
1915
2113
|
mz: 252
|
|
1916
|
-
},
|
|
2114
|
+
}, ai = {
|
|
1917
2115
|
Z: 100,
|
|
1918
2116
|
mz: 257
|
|
1919
|
-
},
|
|
2117
|
+
}, ci = {
|
|
1920
2118
|
Z: 101,
|
|
1921
2119
|
mz: 258
|
|
1922
|
-
},
|
|
2120
|
+
}, _i = {
|
|
1923
2121
|
Z: 102,
|
|
1924
2122
|
mz: 259
|
|
1925
|
-
},
|
|
2123
|
+
}, li = {
|
|
1926
2124
|
Z: 103,
|
|
1927
2125
|
mz: 262
|
|
1928
|
-
},
|
|
2126
|
+
}, mi = {
|
|
1929
2127
|
Z: 104,
|
|
1930
2128
|
mz: 267
|
|
1931
|
-
},
|
|
2129
|
+
}, gi = {
|
|
1932
2130
|
Z: 105,
|
|
1933
2131
|
mz: 268
|
|
1934
|
-
},
|
|
2132
|
+
}, di = {
|
|
1935
2133
|
Z: 106,
|
|
1936
2134
|
mz: 269
|
|
1937
|
-
},
|
|
2135
|
+
}, ui = {
|
|
1938
2136
|
Z: 107,
|
|
1939
2137
|
mz: 270
|
|
1940
|
-
},
|
|
2138
|
+
}, pi = {
|
|
1941
2139
|
Z: 108,
|
|
1942
2140
|
mz: 270
|
|
1943
|
-
},
|
|
2141
|
+
}, hi = {
|
|
1944
2142
|
Z: 109,
|
|
1945
2143
|
mz: 278
|
|
1946
|
-
},
|
|
2144
|
+
}, fi = {
|
|
1947
2145
|
Z: 110,
|
|
1948
2146
|
mz: 281
|
|
1949
|
-
},
|
|
2147
|
+
}, Pi = {
|
|
1950
2148
|
Z: 111,
|
|
1951
2149
|
mz: 282
|
|
1952
|
-
},
|
|
2150
|
+
}, vi = {
|
|
1953
2151
|
Z: 112,
|
|
1954
2152
|
mz: 285
|
|
1955
|
-
},
|
|
2153
|
+
}, bi = {
|
|
1956
2154
|
Z: 113,
|
|
1957
2155
|
mz: 286
|
|
1958
|
-
},
|
|
2156
|
+
}, yi = {
|
|
1959
2157
|
Z: 114,
|
|
1960
2158
|
mz: 289
|
|
1961
|
-
},
|
|
2159
|
+
}, xi = {
|
|
1962
2160
|
Z: 115,
|
|
1963
2161
|
mz: 290
|
|
1964
|
-
},
|
|
2162
|
+
}, Ai = {
|
|
1965
2163
|
Z: 116,
|
|
1966
2164
|
mz: 293
|
|
1967
|
-
},
|
|
2165
|
+
}, ki = {
|
|
1968
2166
|
Z: 117,
|
|
1969
2167
|
mz: 294
|
|
1970
|
-
},
|
|
2168
|
+
}, wi = {
|
|
1971
2169
|
Z: 118,
|
|
1972
2170
|
mz: 294
|
|
1973
|
-
},
|
|
1974
|
-
H:
|
|
1975
|
-
He:
|
|
1976
|
-
Li:
|
|
1977
|
-
Be:
|
|
1978
|
-
B:
|
|
1979
|
-
C:
|
|
1980
|
-
N:
|
|
1981
|
-
O:
|
|
1982
|
-
F:
|
|
1983
|
-
Ne:
|
|
1984
|
-
Na:
|
|
1985
|
-
Mg:
|
|
1986
|
-
Al:
|
|
1987
|
-
Si:
|
|
1988
|
-
P:
|
|
1989
|
-
S:
|
|
1990
|
-
Cl:
|
|
1991
|
-
Ar:
|
|
1992
|
-
K:
|
|
1993
|
-
Ca:
|
|
1994
|
-
Sc:
|
|
1995
|
-
Ti:
|
|
1996
|
-
V:
|
|
1997
|
-
Cr:
|
|
1998
|
-
Mn:
|
|
1999
|
-
Fe:
|
|
2000
|
-
Co:
|
|
2001
|
-
Ni:
|
|
2002
|
-
Cu:
|
|
2003
|
-
Zn:
|
|
2004
|
-
Ga:
|
|
2005
|
-
Ge
|
|
2006
|
-
As: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|
-
Es:
|
|
2073
|
-
Fm:
|
|
2074
|
-
Md:
|
|
2075
|
-
No:
|
|
2076
|
-
Lr:
|
|
2077
|
-
Rf:
|
|
2078
|
-
Db:
|
|
2079
|
-
Sg:
|
|
2080
|
-
Bh:
|
|
2081
|
-
Hs:
|
|
2082
|
-
Mt:
|
|
2083
|
-
Ds:
|
|
2084
|
-
Rg:
|
|
2085
|
-
Cn:
|
|
2086
|
-
Nh:
|
|
2087
|
-
Fl:
|
|
2088
|
-
Mc:
|
|
2089
|
-
Lv:
|
|
2090
|
-
Ts:
|
|
2091
|
-
Og:
|
|
2171
|
+
}, Ci = {
|
|
2172
|
+
H: he,
|
|
2173
|
+
He: fe,
|
|
2174
|
+
Li: Pe,
|
|
2175
|
+
Be: ve,
|
|
2176
|
+
B: be,
|
|
2177
|
+
C: ye,
|
|
2178
|
+
N: xe,
|
|
2179
|
+
O: Ae,
|
|
2180
|
+
F: ke,
|
|
2181
|
+
Ne: we,
|
|
2182
|
+
Na: Ce,
|
|
2183
|
+
Mg: je,
|
|
2184
|
+
Al: Ie,
|
|
2185
|
+
Si: Re,
|
|
2186
|
+
P: Se,
|
|
2187
|
+
S: ze,
|
|
2188
|
+
Cl: Fe,
|
|
2189
|
+
Ar: Ee,
|
|
2190
|
+
K: Ne,
|
|
2191
|
+
Ca: Be,
|
|
2192
|
+
Sc: Te,
|
|
2193
|
+
Ti: Ze,
|
|
2194
|
+
V: De,
|
|
2195
|
+
Cr: Me,
|
|
2196
|
+
Mn: Oe,
|
|
2197
|
+
Fe: He,
|
|
2198
|
+
Co: Le,
|
|
2199
|
+
Ni: Je,
|
|
2200
|
+
Cu: Ue,
|
|
2201
|
+
Zn: Ve,
|
|
2202
|
+
Ga: Ye,
|
|
2203
|
+
Ge,
|
|
2204
|
+
As: Ke,
|
|
2205
|
+
Se: Qe,
|
|
2206
|
+
Br: We,
|
|
2207
|
+
Kr: Xe,
|
|
2208
|
+
Rb: qe,
|
|
2209
|
+
Sr: $e,
|
|
2210
|
+
Y: tr,
|
|
2211
|
+
Zr: nr,
|
|
2212
|
+
Nb: er,
|
|
2213
|
+
Mo: rr,
|
|
2214
|
+
Tc: ir,
|
|
2215
|
+
Ru: or,
|
|
2216
|
+
Rh: sr,
|
|
2217
|
+
Pd: ar,
|
|
2218
|
+
Ag: cr,
|
|
2219
|
+
Cd: _r,
|
|
2220
|
+
In: lr,
|
|
2221
|
+
Sn: mr,
|
|
2222
|
+
Sb: gr,
|
|
2223
|
+
Te: dr,
|
|
2224
|
+
I: ur,
|
|
2225
|
+
Xe: pr,
|
|
2226
|
+
Cs: hr,
|
|
2227
|
+
Ba: fr,
|
|
2228
|
+
La: Pr,
|
|
2229
|
+
Ce: vr,
|
|
2230
|
+
Pr: br,
|
|
2231
|
+
Nd: yr,
|
|
2232
|
+
Pm: xr,
|
|
2233
|
+
Sm: Ar,
|
|
2234
|
+
Eu: kr,
|
|
2235
|
+
Gd: wr,
|
|
2236
|
+
Tb: Cr,
|
|
2237
|
+
Dy: jr,
|
|
2238
|
+
Ho: Ir,
|
|
2239
|
+
Er: Rr,
|
|
2240
|
+
Tm: Sr,
|
|
2241
|
+
Yb: zr,
|
|
2242
|
+
Lu: Fr,
|
|
2243
|
+
Hf: Er,
|
|
2244
|
+
Ta: Nr,
|
|
2245
|
+
W: Br,
|
|
2246
|
+
Re: Tr,
|
|
2247
|
+
Os: Zr,
|
|
2248
|
+
Ir: Dr,
|
|
2249
|
+
Pt: Mr,
|
|
2250
|
+
Au: Or,
|
|
2251
|
+
Hg: Hr,
|
|
2252
|
+
Tl: Lr,
|
|
2253
|
+
Pb: Jr,
|
|
2254
|
+
Bi: Ur,
|
|
2255
|
+
Po: Vr,
|
|
2256
|
+
At: Yr,
|
|
2257
|
+
Rn: Gr,
|
|
2258
|
+
Fr: Kr,
|
|
2259
|
+
Ra: Qr,
|
|
2260
|
+
Ac: Wr,
|
|
2261
|
+
Th: Xr,
|
|
2262
|
+
Pa: qr,
|
|
2263
|
+
U: $r,
|
|
2264
|
+
Np: ti,
|
|
2265
|
+
Pu: ni,
|
|
2266
|
+
Am: ei,
|
|
2267
|
+
Cm: ri,
|
|
2268
|
+
Bk: ii,
|
|
2269
|
+
Cf: oi,
|
|
2270
|
+
Es: si,
|
|
2271
|
+
Fm: ai,
|
|
2272
|
+
Md: ci,
|
|
2273
|
+
No: _i,
|
|
2274
|
+
Lr: li,
|
|
2275
|
+
Rf: mi,
|
|
2276
|
+
Db: gi,
|
|
2277
|
+
Sg: di,
|
|
2278
|
+
Bh: ui,
|
|
2279
|
+
Hs: pi,
|
|
2280
|
+
Mt: hi,
|
|
2281
|
+
Ds: fi,
|
|
2282
|
+
Rg: Pi,
|
|
2283
|
+
Cn: vi,
|
|
2284
|
+
Nh: bi,
|
|
2285
|
+
Fl: yi,
|
|
2286
|
+
Mc: xi,
|
|
2287
|
+
Lv: Ai,
|
|
2288
|
+
Ts: ki,
|
|
2289
|
+
Og: wi
|
|
2092
2290
|
};
|
|
2093
|
-
function
|
|
2291
|
+
function ji(n) {
|
|
2094
2292
|
var r = n.split(/(?=[A-Z])/), s = 0;
|
|
2095
2293
|
return r.forEach((a) => {
|
|
2096
|
-
let o = a.match(/\d+/),
|
|
2097
|
-
s +=
|
|
2294
|
+
let o = a.match(/\d+/), _ = o == null ? 1 : parseInt(o[0]);
|
|
2295
|
+
s += _;
|
|
2098
2296
|
}), s;
|
|
2099
2297
|
}
|
|
2100
|
-
function
|
|
2298
|
+
function Ii(n) {
|
|
2101
2299
|
return n.split(/(?=[A-Z])/).length;
|
|
2102
2300
|
}
|
|
2103
|
-
function
|
|
2301
|
+
function Ri(n, r) {
|
|
2104
2302
|
var s = n.split(/(?=[A-Z])/);
|
|
2105
2303
|
let a = 0;
|
|
2106
2304
|
return s.forEach((o) => {
|
|
2107
|
-
var
|
|
2108
|
-
const
|
|
2109
|
-
a +=
|
|
2305
|
+
var l;
|
|
2306
|
+
const _ = o.match(/([a-zA-Z]+)(\d*)/), g = _[1], c = parseInt(_[2] || "1"), d = ((l = Ci[g]) == null ? void 0 : l.mz) || 0;
|
|
2307
|
+
a += d * c;
|
|
2110
2308
|
}), Math.round(a * 1e4 / (r.value * 6.0223));
|
|
2111
2309
|
}
|
|
2112
|
-
const
|
|
2310
|
+
const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2113
2311
|
__proto__: null,
|
|
2114
|
-
calculateDensity:
|
|
2115
|
-
countNumberOfAtoms:
|
|
2116
|
-
countNumberOfElements:
|
|
2117
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2312
|
+
calculateDensity: Ri,
|
|
2313
|
+
countNumberOfAtoms: ji,
|
|
2314
|
+
countNumberOfElements: Ii
|
|
2315
|
+
}, Symbol.toStringTag, { value: "Module" })), vt = {
|
|
2118
2316
|
1: {
|
|
2119
2317
|
pg_int: "1",
|
|
2120
2318
|
sg_int: "P1",
|
|
@@ -3265,14 +3463,14 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3265
3463
|
sg_int: "Ia-3d",
|
|
3266
3464
|
sg_int_short: "Ia-3d"
|
|
3267
3465
|
}
|
|
3268
|
-
},
|
|
3466
|
+
}, xt = {
|
|
3269
3467
|
a: "triclinic",
|
|
3270
3468
|
m: "monoclinic",
|
|
3271
3469
|
o: "orthorhombic",
|
|
3272
3470
|
t: "tetragonal",
|
|
3273
3471
|
h: "hexagonal",
|
|
3274
3472
|
c: "cubic"
|
|
3275
|
-
},
|
|
3473
|
+
}, Si = {
|
|
3276
3474
|
aP: "triclinic",
|
|
3277
3475
|
mP: "simple monoclinic",
|
|
3278
3476
|
mS: "base-centered monoclinic",
|
|
@@ -3288,39 +3486,39 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3288
3486
|
cI: "body-centered cubic",
|
|
3289
3487
|
cF: "face-centered cubic"
|
|
3290
3488
|
};
|
|
3291
|
-
function
|
|
3489
|
+
function nt(n) {
|
|
3292
3490
|
if (n < 1 || n > 230)
|
|
3293
3491
|
throw new Error(`Invalid space group number ${n}`);
|
|
3294
3492
|
return n < 3 ? "a" : n < 16 ? "m" : n < 75 ? "o" : n < 143 ? "t" : n < 195 ? "h" : "c";
|
|
3295
3493
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return n > 142 && n < 168 ? "trigonal" :
|
|
3494
|
+
function zi(n) {
|
|
3495
|
+
return n > 142 && n < 168 ? "trigonal" : xt[nt(n)];
|
|
3298
3496
|
}
|
|
3299
|
-
function
|
|
3300
|
-
return [146, 148, 155, 160, 161, 166, 167].includes(n) ? "rhombohedral" :
|
|
3497
|
+
function Fi(n) {
|
|
3498
|
+
return [146, 148, 155, 160, 161, 166, 167].includes(n) ? "rhombohedral" : xt[nt(n)];
|
|
3301
3499
|
}
|
|
3302
|
-
function
|
|
3303
|
-
let r =
|
|
3500
|
+
function Ei(n) {
|
|
3501
|
+
let r = vt[n.toString()].sg_int_short.charAt(0), s = r;
|
|
3304
3502
|
["A", "C"].includes(r) && (s = "S");
|
|
3305
|
-
let a =
|
|
3306
|
-
return [a,
|
|
3503
|
+
let a = nt(n) + s;
|
|
3504
|
+
return [a, Si[a]];
|
|
3307
3505
|
}
|
|
3308
|
-
function
|
|
3506
|
+
function no(n) {
|
|
3309
3507
|
if (n < 1 || n > 230)
|
|
3310
3508
|
throw new Error(`Invalid space group number ${n}`);
|
|
3311
|
-
let r =
|
|
3509
|
+
let r = Ei(n);
|
|
3312
3510
|
return {
|
|
3313
|
-
space_group_symbol:
|
|
3314
|
-
point_group_symbol:
|
|
3315
|
-
crystal_family_pearson:
|
|
3316
|
-
crystal_family:
|
|
3317
|
-
crystal_system:
|
|
3318
|
-
lattice_system:
|
|
3511
|
+
space_group_symbol: vt[n.toString()].sg_int_short,
|
|
3512
|
+
point_group_symbol: vt[n.toString()].pg_int,
|
|
3513
|
+
crystal_family_pearson: nt(n),
|
|
3514
|
+
crystal_family: xt[nt(n)],
|
|
3515
|
+
crystal_system: zi(n),
|
|
3516
|
+
lattice_system: Fi(n),
|
|
3319
3517
|
bravais_lattice_pearson: r[0],
|
|
3320
3518
|
bravais_lattice: r[1]
|
|
3321
3519
|
};
|
|
3322
3520
|
}
|
|
3323
|
-
function
|
|
3521
|
+
function eo(n) {
|
|
3324
3522
|
return n.includes("P") ? [
|
|
3325
3523
|
[1, 0, 0],
|
|
3326
3524
|
[0, 1, 0],
|
|
@@ -3356,22 +3554,25 @@ function Qi(n) {
|
|
|
3356
3554
|
]);
|
|
3357
3555
|
}
|
|
3358
3556
|
export {
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3557
|
+
Zi as DoiBadge,
|
|
3558
|
+
Hi as ExploreButton,
|
|
3559
|
+
Yi as HashModal,
|
|
3560
|
+
Di as HelpButton,
|
|
3561
|
+
Gi as McCopyAccordion,
|
|
3562
|
+
Ki as McCopyExtraAccordion,
|
|
3563
|
+
Ui as McDropzone,
|
|
3564
|
+
Vi as McHistoryList,
|
|
3565
|
+
Qi as McInfoAccordion,
|
|
3566
|
+
Ji as McloudCard,
|
|
3567
|
+
Mi as McloudSpinner,
|
|
3568
|
+
Oi as StructDownloadButton,
|
|
3569
|
+
Ti as TestButton,
|
|
3570
|
+
Li as ToggleSwitch,
|
|
3571
|
+
qi as createHistoryStore,
|
|
3572
|
+
Wi as formatChemicalFormula,
|
|
3573
|
+
Xi as formatSpaceGroupSymbol,
|
|
3574
|
+
to as formula,
|
|
3575
|
+
eo as getPrimToConvMatrix,
|
|
3576
|
+
no as getSymmetryInfo,
|
|
3577
|
+
$i as matrix
|
|
3377
3578
|
};
|