@blocknote/xl-pdf-exporter 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/dist/Inter_18pt-Bold-BOnnSImi.js +5 -0
- package/dist/Inter_18pt-Bold-BOnnSImi.js.map +1 -0
- package/dist/Inter_18pt-BoldItalic-DPKIpVzB.js +5 -0
- package/dist/Inter_18pt-BoldItalic-DPKIpVzB.js.map +1 -0
- package/dist/Inter_18pt-Italic-BVnfHlUD.js +5 -0
- package/dist/Inter_18pt-Italic-BVnfHlUD.js.map +1 -0
- package/dist/Inter_18pt-Regular-byxnNS-8.js +5 -0
- package/dist/Inter_18pt-Regular-byxnNS-8.js.map +1 -0
- package/dist/blocknote-xl-pdf-exporter.js +2503 -0
- package/dist/blocknote-xl-pdf-exporter.js.map +1 -0
- package/dist/blocknote-xl-pdf-exporter.umd.cjs +69 -0
- package/dist/blocknote-xl-pdf-exporter.umd.cjs.map +1 -0
- package/dist/webpack-stats.json +1 -0
- package/package.json +88 -0
- package/src/index.ts +1 -0
- package/src/pdf/__snapshots__/example.jsx +592 -0
- package/src/pdf/__snapshots__/exampleWithHeaderAndFooter.jsx +602 -0
- package/src/pdf/defaultSchema/blocks.tsx +177 -0
- package/src/pdf/defaultSchema/index.ts +9 -0
- package/src/pdf/defaultSchema/inlinecontent.tsx +23 -0
- package/src/pdf/defaultSchema/styles.tsx +68 -0
- package/src/pdf/index.ts +2 -0
- package/src/pdf/pdfExporter.test.tsx +208 -0
- package/src/pdf/pdfExporter.tsx +297 -0
- package/src/pdf/types.ts +3 -0
- package/src/pdf/util/listItem.tsx +70 -0
- package/src/pdf/util/table/Table.tsx +76 -0
- package/src/vite-env.d.ts +11 -0
- package/types/src/Exporter.d.ts +26 -0
- package/types/src/context/BlockNoteContext.d.ts +59 -0
- package/types/src/context/BlockNoteContext.test.d.ts +1 -0
- package/types/src/context/ServerBlockNoteEditor.d.ts +137 -0
- package/types/src/context/ServerBlockNoteEditor.test.d.ts +1 -0
- package/types/src/context/react/ReactServer.test.d.ts +2 -0
- package/types/src/docx/blocks.d.ts +433 -0
- package/types/src/docx/defaultSchema/blocks.d.ts +4 -0
- package/types/src/docx/defaultSchema/index.d.ts +559 -0
- package/types/src/docx/defaultSchema/inlinecontent.d.ts +4 -0
- package/types/src/docx/defaultSchema/styles.d.ts +4 -0
- package/types/src/docx/docxExporter.d.ts +14 -0
- package/types/src/docx/docxExporter.test.d.ts +1 -0
- package/types/src/docx/imageUtil.d.ts +4 -0
- package/types/src/docx/index.d.ts +2 -0
- package/types/src/docx/inlinecontent.d.ts +12 -0
- package/types/src/docx/styles.d.ts +55 -0
- package/types/src/docx/util/Table.d.ts +4 -0
- package/types/src/docxExporter.d.ts +255 -0
- package/types/src/docxExporter.test.d.ts +1 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/mapping.d.ts +29 -0
- package/types/src/pdf/blocks.d.ts +434 -0
- package/types/src/pdf/defaultSchema/blocks.d.ts +4 -0
- package/types/src/pdf/defaultSchema/index.d.ts +510 -0
- package/types/src/pdf/defaultSchema/inlinecontent.d.ts +4 -0
- package/types/src/pdf/defaultSchema/styles.d.ts +3 -0
- package/types/src/pdf/index.d.ts +2 -0
- package/types/src/pdf/inlinecontent.d.ts +13 -0
- package/types/src/pdf/pdfExporter.d.ts +81 -0
- package/types/src/pdf/pdfExporter.test.d.ts +1 -0
- package/types/src/pdf/styles.d.ts +55 -0
- package/types/src/pdf/types.d.ts +2 -0
- package/types/src/pdf/util/listItem.d.ts +9 -0
- package/types/src/pdf/util/loadFontDataUrl.d.ts +3 -0
- package/types/src/pdf/util/table/Table.d.ts +5 -0
- package/types/src/pdfExporter.d.ts +256 -0
- package/types/src/pdfExporter.test.d.ts +1 -0
- package/types/src/react-email/defaultSchema/blocks.d.ts +5 -0
- package/types/src/react-email/defaultSchema/index.d.ts +560 -0
- package/types/src/react-email/defaultSchema/inlinecontent.d.ts +5 -0
- package/types/src/react-email/defaultSchema/styles.d.ts +4 -0
- package/types/src/react-email/reactEmailExporter.d.ts +13 -0
- package/types/src/react-email/reactEmailExporter.test.d.ts +8 -0
- package/types/src/testDocument.d.ts +505 -0
- package/types/src/transformer.d.ts +20 -0
- package/types/src/util/fileUtil.d.ts +22 -0
- package/types/src/util/imageUtil.d.ts +4 -0
- package/types/src/yjs/index.d.ts +2 -0
|
@@ -0,0 +1,2503 @@
|
|
|
1
|
+
var sn = Object.defineProperty;
|
|
2
|
+
var ln = (i, s, p) => s in i ? sn(i, s, { enumerable: !0, configurable: !0, writable: !0, value: p }) : i[s] = p;
|
|
3
|
+
var Sr = (i, s, p) => ln(i, typeof s != "symbol" ? s + "" : s, p);
|
|
4
|
+
import { StyleSheet as nt, Svg as nr, Path as ar, View as ne, Text as ye, Image as cn, Link as Lt, Font as Je, Document as fn, Page as dn } from "@react-pdf/renderer";
|
|
5
|
+
import { Exporter as pn, COLORS_DEFAULT as vn } from "@blocknote/core";
|
|
6
|
+
var tt = { exports: {} }, Qe = {}, Tr = { exports: {} }, b = {};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var Pt;
|
|
17
|
+
function hn() {
|
|
18
|
+
if (Pt) return b;
|
|
19
|
+
Pt = 1;
|
|
20
|
+
var i = Symbol.for("react.element"), s = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), X = Symbol.for("react.provider"), z = Symbol.for("react.context"), J = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), re = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), q = Symbol.iterator;
|
|
21
|
+
function ue(n) {
|
|
22
|
+
return n === null || typeof n != "object" ? null : (n = q && n[q] || n["@@iterator"], typeof n == "function" ? n : null);
|
|
23
|
+
}
|
|
24
|
+
var ae = { isMounted: function() {
|
|
25
|
+
return !1;
|
|
26
|
+
}, enqueueForceUpdate: function() {
|
|
27
|
+
}, enqueueReplaceState: function() {
|
|
28
|
+
}, enqueueSetState: function() {
|
|
29
|
+
} }, de = Object.assign, Me = {};
|
|
30
|
+
function se(n, l, E) {
|
|
31
|
+
this.props = n, this.context = l, this.refs = Me, this.updater = E || ae;
|
|
32
|
+
}
|
|
33
|
+
se.prototype.isReactComponent = {}, se.prototype.setState = function(n, l) {
|
|
34
|
+
if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
35
|
+
this.updater.enqueueSetState(this, n, l, "setState");
|
|
36
|
+
}, se.prototype.forceUpdate = function(n) {
|
|
37
|
+
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
38
|
+
};
|
|
39
|
+
function le() {
|
|
40
|
+
}
|
|
41
|
+
le.prototype = se.prototype;
|
|
42
|
+
function M(n, l, E) {
|
|
43
|
+
this.props = n, this.context = l, this.refs = Me, this.updater = E || ae;
|
|
44
|
+
}
|
|
45
|
+
var Ee = M.prototype = new le();
|
|
46
|
+
Ee.constructor = M, de(Ee, se.prototype), Ee.isPureReactComponent = !0;
|
|
47
|
+
var ce = Array.isArray, H = Object.prototype.hasOwnProperty, te = { current: null }, pe = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
48
|
+
function me(n, l, E) {
|
|
49
|
+
var C, T = {}, D = null, k = null;
|
|
50
|
+
if (l != null) for (C in l.ref !== void 0 && (k = l.ref), l.key !== void 0 && (D = "" + l.key), l) H.call(l, C) && !pe.hasOwnProperty(C) && (T[C] = l[C]);
|
|
51
|
+
var j = arguments.length - 2;
|
|
52
|
+
if (j === 1) T.children = E;
|
|
53
|
+
else if (1 < j) {
|
|
54
|
+
for (var P = Array(j), Y = 0; Y < j; Y++) P[Y] = arguments[Y + 2];
|
|
55
|
+
T.children = P;
|
|
56
|
+
}
|
|
57
|
+
if (n && n.defaultProps) for (C in j = n.defaultProps, j) T[C] === void 0 && (T[C] = j[C]);
|
|
58
|
+
return { $$typeof: i, type: n, key: D, ref: k, props: T, _owner: te.current };
|
|
59
|
+
}
|
|
60
|
+
function Oe(n, l) {
|
|
61
|
+
return { $$typeof: i, type: n.type, key: l, ref: n.ref, props: n.props, _owner: n._owner };
|
|
62
|
+
}
|
|
63
|
+
function Pe(n) {
|
|
64
|
+
return typeof n == "object" && n !== null && n.$$typeof === i;
|
|
65
|
+
}
|
|
66
|
+
function ze(n) {
|
|
67
|
+
var l = { "=": "=0", ":": "=2" };
|
|
68
|
+
return "$" + n.replace(/[=:]/g, function(E) {
|
|
69
|
+
return l[E];
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
var xe = /\/+/g;
|
|
73
|
+
function Q(n, l) {
|
|
74
|
+
return typeof n == "object" && n !== null && n.key != null ? ze("" + n.key) : l.toString(36);
|
|
75
|
+
}
|
|
76
|
+
function oe(n, l, E, C, T) {
|
|
77
|
+
var D = typeof n;
|
|
78
|
+
(D === "undefined" || D === "boolean") && (n = null);
|
|
79
|
+
var k = !1;
|
|
80
|
+
if (n === null) k = !0;
|
|
81
|
+
else switch (D) {
|
|
82
|
+
case "string":
|
|
83
|
+
case "number":
|
|
84
|
+
k = !0;
|
|
85
|
+
break;
|
|
86
|
+
case "object":
|
|
87
|
+
switch (n.$$typeof) {
|
|
88
|
+
case i:
|
|
89
|
+
case s:
|
|
90
|
+
k = !0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (k) return k = n, T = T(k), n = C === "" ? "." + Q(k, 0) : C, ce(T) ? (E = "", n != null && (E = n.replace(xe, "$&/") + "/"), oe(T, l, E, "", function(Y) {
|
|
94
|
+
return Y;
|
|
95
|
+
})) : T != null && (Pe(T) && (T = Oe(T, E + (!T.key || k && k.key === T.key ? "" : ("" + T.key).replace(xe, "$&/") + "/") + n)), l.push(T)), 1;
|
|
96
|
+
if (k = 0, C = C === "" ? "." : C + ":", ce(n)) for (var j = 0; j < n.length; j++) {
|
|
97
|
+
D = n[j];
|
|
98
|
+
var P = C + Q(D, j);
|
|
99
|
+
k += oe(D, l, E, P, T);
|
|
100
|
+
}
|
|
101
|
+
else if (P = ue(n), typeof P == "function") for (n = P.call(n), j = 0; !(D = n.next()).done; ) D = D.value, P = C + Q(D, j++), k += oe(D, l, E, P, T);
|
|
102
|
+
else if (D === "object") throw l = String(n), Error("Objects are not valid as a React child (found: " + (l === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : l) + "). If you meant to render a collection of children, use an array instead.");
|
|
103
|
+
return k;
|
|
104
|
+
}
|
|
105
|
+
function K(n, l, E) {
|
|
106
|
+
if (n == null) return n;
|
|
107
|
+
var C = [], T = 0;
|
|
108
|
+
return oe(n, C, "", "", function(D) {
|
|
109
|
+
return l.call(E, D, T++);
|
|
110
|
+
}), C;
|
|
111
|
+
}
|
|
112
|
+
function fe(n) {
|
|
113
|
+
if (n._status === -1) {
|
|
114
|
+
var l = n._result;
|
|
115
|
+
l = l(), l.then(function(E) {
|
|
116
|
+
(n._status === 0 || n._status === -1) && (n._status = 1, n._result = E);
|
|
117
|
+
}, function(E) {
|
|
118
|
+
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = E);
|
|
119
|
+
}), n._status === -1 && (n._status = 0, n._result = l);
|
|
120
|
+
}
|
|
121
|
+
if (n._status === 1) return n._result.default;
|
|
122
|
+
throw n._result;
|
|
123
|
+
}
|
|
124
|
+
var v = { current: null }, ve = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: ve, ReactCurrentOwner: te };
|
|
125
|
+
function ge() {
|
|
126
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
127
|
+
}
|
|
128
|
+
return b.Children = { map: K, forEach: function(n, l, E) {
|
|
129
|
+
K(n, function() {
|
|
130
|
+
l.apply(this, arguments);
|
|
131
|
+
}, E);
|
|
132
|
+
}, count: function(n) {
|
|
133
|
+
var l = 0;
|
|
134
|
+
return K(n, function() {
|
|
135
|
+
l++;
|
|
136
|
+
}), l;
|
|
137
|
+
}, toArray: function(n) {
|
|
138
|
+
return K(n, function(l) {
|
|
139
|
+
return l;
|
|
140
|
+
}) || [];
|
|
141
|
+
}, only: function(n) {
|
|
142
|
+
if (!Pe(n)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
143
|
+
return n;
|
|
144
|
+
} }, b.Component = se, b.Fragment = p, b.Profiler = L, b.PureComponent = M, b.StrictMode = w, b.Suspense = $, b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = je, b.act = ge, b.cloneElement = function(n, l, E) {
|
|
145
|
+
if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
146
|
+
var C = de({}, n.props), T = n.key, D = n.ref, k = n._owner;
|
|
147
|
+
if (l != null) {
|
|
148
|
+
if (l.ref !== void 0 && (D = l.ref, k = te.current), l.key !== void 0 && (T = "" + l.key), n.type && n.type.defaultProps) var j = n.type.defaultProps;
|
|
149
|
+
for (P in l) H.call(l, P) && !pe.hasOwnProperty(P) && (C[P] = l[P] === void 0 && j !== void 0 ? j[P] : l[P]);
|
|
150
|
+
}
|
|
151
|
+
var P = arguments.length - 2;
|
|
152
|
+
if (P === 1) C.children = E;
|
|
153
|
+
else if (1 < P) {
|
|
154
|
+
j = Array(P);
|
|
155
|
+
for (var Y = 0; Y < P; Y++) j[Y] = arguments[Y + 2];
|
|
156
|
+
C.children = j;
|
|
157
|
+
}
|
|
158
|
+
return { $$typeof: i, type: n.type, key: T, ref: D, props: C, _owner: k };
|
|
159
|
+
}, b.createContext = function(n) {
|
|
160
|
+
return n = { $$typeof: z, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: X, _context: n }, n.Consumer = n;
|
|
161
|
+
}, b.createElement = me, b.createFactory = function(n) {
|
|
162
|
+
var l = me.bind(null, n);
|
|
163
|
+
return l.type = n, l;
|
|
164
|
+
}, b.createRef = function() {
|
|
165
|
+
return { current: null };
|
|
166
|
+
}, b.forwardRef = function(n) {
|
|
167
|
+
return { $$typeof: J, render: n };
|
|
168
|
+
}, b.isValidElement = Pe, b.lazy = function(n) {
|
|
169
|
+
return { $$typeof: U, _payload: { _status: -1, _result: n }, _init: fe };
|
|
170
|
+
}, b.memo = function(n, l) {
|
|
171
|
+
return { $$typeof: re, type: n, compare: l === void 0 ? null : l };
|
|
172
|
+
}, b.startTransition = function(n) {
|
|
173
|
+
var l = ve.transition;
|
|
174
|
+
ve.transition = {};
|
|
175
|
+
try {
|
|
176
|
+
n();
|
|
177
|
+
} finally {
|
|
178
|
+
ve.transition = l;
|
|
179
|
+
}
|
|
180
|
+
}, b.unstable_act = ge, b.useCallback = function(n, l) {
|
|
181
|
+
return v.current.useCallback(n, l);
|
|
182
|
+
}, b.useContext = function(n) {
|
|
183
|
+
return v.current.useContext(n);
|
|
184
|
+
}, b.useDebugValue = function() {
|
|
185
|
+
}, b.useDeferredValue = function(n) {
|
|
186
|
+
return v.current.useDeferredValue(n);
|
|
187
|
+
}, b.useEffect = function(n, l) {
|
|
188
|
+
return v.current.useEffect(n, l);
|
|
189
|
+
}, b.useId = function() {
|
|
190
|
+
return v.current.useId();
|
|
191
|
+
}, b.useImperativeHandle = function(n, l, E) {
|
|
192
|
+
return v.current.useImperativeHandle(n, l, E);
|
|
193
|
+
}, b.useInsertionEffect = function(n, l) {
|
|
194
|
+
return v.current.useInsertionEffect(n, l);
|
|
195
|
+
}, b.useLayoutEffect = function(n, l) {
|
|
196
|
+
return v.current.useLayoutEffect(n, l);
|
|
197
|
+
}, b.useMemo = function(n, l) {
|
|
198
|
+
return v.current.useMemo(n, l);
|
|
199
|
+
}, b.useReducer = function(n, l, E) {
|
|
200
|
+
return v.current.useReducer(n, l, E);
|
|
201
|
+
}, b.useRef = function(n) {
|
|
202
|
+
return v.current.useRef(n);
|
|
203
|
+
}, b.useState = function(n) {
|
|
204
|
+
return v.current.useState(n);
|
|
205
|
+
}, b.useSyncExternalStore = function(n, l, E) {
|
|
206
|
+
return v.current.useSyncExternalStore(n, l, E);
|
|
207
|
+
}, b.useTransition = function() {
|
|
208
|
+
return v.current.useTransition();
|
|
209
|
+
}, b.version = "18.3.1", b;
|
|
210
|
+
}
|
|
211
|
+
var tr = { exports: {} };
|
|
212
|
+
/**
|
|
213
|
+
* @license React
|
|
214
|
+
* react.development.js
|
|
215
|
+
*
|
|
216
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the MIT license found in the
|
|
219
|
+
* LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/
|
|
221
|
+
tr.exports;
|
|
222
|
+
var xt;
|
|
223
|
+
function yn() {
|
|
224
|
+
return xt || (xt = 1, function(i, s) {
|
|
225
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
226
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
227
|
+
var p = "18.3.1", w = Symbol.for("react.element"), L = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), re = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), ue = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), de = Symbol.for("react.lazy"), Me = Symbol.for("react.offscreen"), se = Symbol.iterator, le = "@@iterator";
|
|
228
|
+
function M(e) {
|
|
229
|
+
if (e === null || typeof e != "object")
|
|
230
|
+
return null;
|
|
231
|
+
var r = se && e[se] || e[le];
|
|
232
|
+
return typeof r == "function" ? r : null;
|
|
233
|
+
}
|
|
234
|
+
var Ee = {
|
|
235
|
+
/**
|
|
236
|
+
* @internal
|
|
237
|
+
* @type {ReactComponent}
|
|
238
|
+
*/
|
|
239
|
+
current: null
|
|
240
|
+
}, ce = {
|
|
241
|
+
transition: null
|
|
242
|
+
}, H = {
|
|
243
|
+
current: null,
|
|
244
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
245
|
+
isBatchingLegacy: !1,
|
|
246
|
+
didScheduleLegacyUpdate: !1
|
|
247
|
+
}, te = {
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
* @type {ReactComponent}
|
|
251
|
+
*/
|
|
252
|
+
current: null
|
|
253
|
+
}, pe = {}, me = null;
|
|
254
|
+
function Oe(e) {
|
|
255
|
+
me = e;
|
|
256
|
+
}
|
|
257
|
+
pe.setExtraStackFrame = function(e) {
|
|
258
|
+
me = e;
|
|
259
|
+
}, pe.getCurrentStack = null, pe.getStackAddendum = function() {
|
|
260
|
+
var e = "";
|
|
261
|
+
me && (e += me);
|
|
262
|
+
var r = pe.getCurrentStack;
|
|
263
|
+
return r && (e += r() || ""), e;
|
|
264
|
+
};
|
|
265
|
+
var Pe = !1, ze = !1, xe = !1, Q = !1, oe = !1, K = {
|
|
266
|
+
ReactCurrentDispatcher: Ee,
|
|
267
|
+
ReactCurrentBatchConfig: ce,
|
|
268
|
+
ReactCurrentOwner: te
|
|
269
|
+
};
|
|
270
|
+
K.ReactDebugCurrentFrame = pe, K.ReactCurrentActQueue = H;
|
|
271
|
+
function fe(e) {
|
|
272
|
+
{
|
|
273
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
274
|
+
a[o - 1] = arguments[o];
|
|
275
|
+
ve("warn", e, a);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function v(e) {
|
|
279
|
+
{
|
|
280
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
281
|
+
a[o - 1] = arguments[o];
|
|
282
|
+
ve("error", e, a);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function ve(e, r, a) {
|
|
286
|
+
{
|
|
287
|
+
var o = K.ReactDebugCurrentFrame, f = o.getStackAddendum();
|
|
288
|
+
f !== "" && (r += "%s", a = a.concat([f]));
|
|
289
|
+
var h = a.map(function(d) {
|
|
290
|
+
return String(d);
|
|
291
|
+
});
|
|
292
|
+
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
var je = {};
|
|
296
|
+
function ge(e, r) {
|
|
297
|
+
{
|
|
298
|
+
var a = e.constructor, o = a && (a.displayName || a.name) || "ReactClass", f = o + "." + r;
|
|
299
|
+
if (je[f])
|
|
300
|
+
return;
|
|
301
|
+
v("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, o), je[f] = !0;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
var n = {
|
|
305
|
+
/**
|
|
306
|
+
* Checks whether or not this composite component is mounted.
|
|
307
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
308
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
309
|
+
* @protected
|
|
310
|
+
* @final
|
|
311
|
+
*/
|
|
312
|
+
isMounted: function(e) {
|
|
313
|
+
return !1;
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Forces an update. This should only be invoked when it is known with
|
|
317
|
+
* certainty that we are **not** in a DOM transaction.
|
|
318
|
+
*
|
|
319
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
320
|
+
* component's state has changed but `setState` was not called.
|
|
321
|
+
*
|
|
322
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
323
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
324
|
+
*
|
|
325
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
326
|
+
* @param {?function} callback Called after component is updated.
|
|
327
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
328
|
+
* @internal
|
|
329
|
+
*/
|
|
330
|
+
enqueueForceUpdate: function(e, r, a) {
|
|
331
|
+
ge(e, "forceUpdate");
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
335
|
+
* You should treat `this.state` as immutable.
|
|
336
|
+
*
|
|
337
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
338
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
339
|
+
*
|
|
340
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
341
|
+
* @param {object} completeState Next state.
|
|
342
|
+
* @param {?function} callback Called after component is updated.
|
|
343
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
344
|
+
* @internal
|
|
345
|
+
*/
|
|
346
|
+
enqueueReplaceState: function(e, r, a, o) {
|
|
347
|
+
ge(e, "replaceState");
|
|
348
|
+
},
|
|
349
|
+
/**
|
|
350
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
351
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
352
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
353
|
+
* during the merge.
|
|
354
|
+
*
|
|
355
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
356
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
357
|
+
* @param {?function} callback Called after component is updated.
|
|
358
|
+
* @param {?string} Name of the calling function in the public API.
|
|
359
|
+
* @internal
|
|
360
|
+
*/
|
|
361
|
+
enqueueSetState: function(e, r, a, o) {
|
|
362
|
+
ge(e, "setState");
|
|
363
|
+
}
|
|
364
|
+
}, l = Object.assign, E = {};
|
|
365
|
+
Object.freeze(E);
|
|
366
|
+
function C(e, r, a) {
|
|
367
|
+
this.props = e, this.context = r, this.refs = E, this.updater = a || n;
|
|
368
|
+
}
|
|
369
|
+
C.prototype.isReactComponent = {}, C.prototype.setState = function(e, r) {
|
|
370
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
371
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
372
|
+
this.updater.enqueueSetState(this, e, r, "setState");
|
|
373
|
+
}, C.prototype.forceUpdate = function(e) {
|
|
374
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
375
|
+
};
|
|
376
|
+
{
|
|
377
|
+
var T = {
|
|
378
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
379
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
380
|
+
}, D = function(e, r) {
|
|
381
|
+
Object.defineProperty(C.prototype, e, {
|
|
382
|
+
get: function() {
|
|
383
|
+
fe("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
for (var k in T)
|
|
388
|
+
T.hasOwnProperty(k) && D(k, T[k]);
|
|
389
|
+
}
|
|
390
|
+
function j() {
|
|
391
|
+
}
|
|
392
|
+
j.prototype = C.prototype;
|
|
393
|
+
function P(e, r, a) {
|
|
394
|
+
this.props = e, this.context = r, this.refs = E, this.updater = a || n;
|
|
395
|
+
}
|
|
396
|
+
var Y = P.prototype = new j();
|
|
397
|
+
Y.constructor = P, l(Y, C.prototype), Y.isPureReactComponent = !0;
|
|
398
|
+
function jr() {
|
|
399
|
+
var e = {
|
|
400
|
+
current: null
|
|
401
|
+
};
|
|
402
|
+
return Object.seal(e), e;
|
|
403
|
+
}
|
|
404
|
+
var or = Array.isArray;
|
|
405
|
+
function Ve(e) {
|
|
406
|
+
return or(e);
|
|
407
|
+
}
|
|
408
|
+
function kr(e) {
|
|
409
|
+
{
|
|
410
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
411
|
+
return a;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
function We(e) {
|
|
415
|
+
try {
|
|
416
|
+
return Re(e), !1;
|
|
417
|
+
} catch {
|
|
418
|
+
return !0;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function Re(e) {
|
|
422
|
+
return "" + e;
|
|
423
|
+
}
|
|
424
|
+
function ke(e) {
|
|
425
|
+
if (We(e))
|
|
426
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(e)), Re(e);
|
|
427
|
+
}
|
|
428
|
+
function ir(e, r, a) {
|
|
429
|
+
var o = e.displayName;
|
|
430
|
+
if (o)
|
|
431
|
+
return o;
|
|
432
|
+
var f = r.displayName || r.name || "";
|
|
433
|
+
return f !== "" ? a + "(" + f + ")" : a;
|
|
434
|
+
}
|
|
435
|
+
function Ie(e) {
|
|
436
|
+
return e.displayName || "Context";
|
|
437
|
+
}
|
|
438
|
+
function he(e) {
|
|
439
|
+
if (e == null)
|
|
440
|
+
return null;
|
|
441
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
442
|
+
return e.displayName || e.name || null;
|
|
443
|
+
if (typeof e == "string")
|
|
444
|
+
return e;
|
|
445
|
+
switch (e) {
|
|
446
|
+
case X:
|
|
447
|
+
return "Fragment";
|
|
448
|
+
case L:
|
|
449
|
+
return "Portal";
|
|
450
|
+
case J:
|
|
451
|
+
return "Profiler";
|
|
452
|
+
case z:
|
|
453
|
+
return "StrictMode";
|
|
454
|
+
case q:
|
|
455
|
+
return "Suspense";
|
|
456
|
+
case ue:
|
|
457
|
+
return "SuspenseList";
|
|
458
|
+
}
|
|
459
|
+
if (typeof e == "object")
|
|
460
|
+
switch (e.$$typeof) {
|
|
461
|
+
case re:
|
|
462
|
+
var r = e;
|
|
463
|
+
return Ie(r) + ".Consumer";
|
|
464
|
+
case $:
|
|
465
|
+
var a = e;
|
|
466
|
+
return Ie(a._context) + ".Provider";
|
|
467
|
+
case U:
|
|
468
|
+
return ir(e, e.render, "ForwardRef");
|
|
469
|
+
case ae:
|
|
470
|
+
var o = e.displayName || null;
|
|
471
|
+
return o !== null ? o : he(e.type) || "Memo";
|
|
472
|
+
case de: {
|
|
473
|
+
var f = e, h = f._payload, d = f._init;
|
|
474
|
+
try {
|
|
475
|
+
return he(d(h));
|
|
476
|
+
} catch {
|
|
477
|
+
return null;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return null;
|
|
482
|
+
}
|
|
483
|
+
var De = Object.prototype.hasOwnProperty, Ne = {
|
|
484
|
+
key: !0,
|
|
485
|
+
ref: !0,
|
|
486
|
+
__self: !0,
|
|
487
|
+
__source: !0
|
|
488
|
+
}, ur, sr, Ue;
|
|
489
|
+
Ue = {};
|
|
490
|
+
function qe(e) {
|
|
491
|
+
if (De.call(e, "ref")) {
|
|
492
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
493
|
+
if (r && r.isReactWarning)
|
|
494
|
+
return !1;
|
|
495
|
+
}
|
|
496
|
+
return e.ref !== void 0;
|
|
497
|
+
}
|
|
498
|
+
function Ce(e) {
|
|
499
|
+
if (De.call(e, "key")) {
|
|
500
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
501
|
+
if (r && r.isReactWarning)
|
|
502
|
+
return !1;
|
|
503
|
+
}
|
|
504
|
+
return e.key !== void 0;
|
|
505
|
+
}
|
|
506
|
+
function Ir(e, r) {
|
|
507
|
+
var a = function() {
|
|
508
|
+
ur || (ur = !0, v("%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)", r));
|
|
509
|
+
};
|
|
510
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
511
|
+
get: a,
|
|
512
|
+
configurable: !0
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
function lr(e, r) {
|
|
516
|
+
var a = function() {
|
|
517
|
+
sr || (sr = !0, v("%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)", r));
|
|
518
|
+
};
|
|
519
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
520
|
+
get: a,
|
|
521
|
+
configurable: !0
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function cr(e) {
|
|
525
|
+
if (typeof e.ref == "string" && te.current && e.__self && te.current.stateNode !== e.__self) {
|
|
526
|
+
var r = he(te.current.type);
|
|
527
|
+
Ue[r] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), Ue[r] = !0);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
var Ae = function(e, r, a, o, f, h, d) {
|
|
531
|
+
var g = {
|
|
532
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
533
|
+
$$typeof: w,
|
|
534
|
+
// Built-in properties that belong on the element
|
|
535
|
+
type: e,
|
|
536
|
+
key: r,
|
|
537
|
+
ref: a,
|
|
538
|
+
props: d,
|
|
539
|
+
// Record the component responsible for creating this element.
|
|
540
|
+
_owner: h
|
|
541
|
+
};
|
|
542
|
+
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
543
|
+
configurable: !1,
|
|
544
|
+
enumerable: !1,
|
|
545
|
+
writable: !0,
|
|
546
|
+
value: !1
|
|
547
|
+
}), Object.defineProperty(g, "_self", {
|
|
548
|
+
configurable: !1,
|
|
549
|
+
enumerable: !1,
|
|
550
|
+
writable: !1,
|
|
551
|
+
value: o
|
|
552
|
+
}), Object.defineProperty(g, "_source", {
|
|
553
|
+
configurable: !1,
|
|
554
|
+
enumerable: !1,
|
|
555
|
+
writable: !1,
|
|
556
|
+
value: f
|
|
557
|
+
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
558
|
+
};
|
|
559
|
+
function Dr(e, r, a) {
|
|
560
|
+
var o, f = {}, h = null, d = null, g = null, S = null;
|
|
561
|
+
if (r != null) {
|
|
562
|
+
qe(r) && (d = r.ref, cr(r)), Ce(r) && (ke(r.key), h = "" + r.key), g = r.__self === void 0 ? null : r.__self, S = r.__source === void 0 ? null : r.__source;
|
|
563
|
+
for (o in r)
|
|
564
|
+
De.call(r, o) && !Ne.hasOwnProperty(o) && (f[o] = r[o]);
|
|
565
|
+
}
|
|
566
|
+
var I = arguments.length - 2;
|
|
567
|
+
if (I === 1)
|
|
568
|
+
f.children = a;
|
|
569
|
+
else if (I > 1) {
|
|
570
|
+
for (var A = Array(I), F = 0; F < I; F++)
|
|
571
|
+
A[F] = arguments[F + 2];
|
|
572
|
+
Object.freeze && Object.freeze(A), f.children = A;
|
|
573
|
+
}
|
|
574
|
+
if (e && e.defaultProps) {
|
|
575
|
+
var W = e.defaultProps;
|
|
576
|
+
for (o in W)
|
|
577
|
+
f[o] === void 0 && (f[o] = W[o]);
|
|
578
|
+
}
|
|
579
|
+
if (h || d) {
|
|
580
|
+
var B = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
581
|
+
h && Ir(f, B), d && lr(f, B);
|
|
582
|
+
}
|
|
583
|
+
return Ae(e, h, d, g, S, te.current, f);
|
|
584
|
+
}
|
|
585
|
+
function Ar(e, r) {
|
|
586
|
+
var a = Ae(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
|
|
587
|
+
return a;
|
|
588
|
+
}
|
|
589
|
+
function Fr(e, r, a) {
|
|
590
|
+
if (e == null)
|
|
591
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
592
|
+
var o, f = l({}, e.props), h = e.key, d = e.ref, g = e._self, S = e._source, I = e._owner;
|
|
593
|
+
if (r != null) {
|
|
594
|
+
qe(r) && (d = r.ref, I = te.current), Ce(r) && (ke(r.key), h = "" + r.key);
|
|
595
|
+
var A;
|
|
596
|
+
e.type && e.type.defaultProps && (A = e.type.defaultProps);
|
|
597
|
+
for (o in r)
|
|
598
|
+
De.call(r, o) && !Ne.hasOwnProperty(o) && (r[o] === void 0 && A !== void 0 ? f[o] = A[o] : f[o] = r[o]);
|
|
599
|
+
}
|
|
600
|
+
var F = arguments.length - 2;
|
|
601
|
+
if (F === 1)
|
|
602
|
+
f.children = a;
|
|
603
|
+
else if (F > 1) {
|
|
604
|
+
for (var W = Array(F), B = 0; B < F; B++)
|
|
605
|
+
W[B] = arguments[B + 2];
|
|
606
|
+
f.children = W;
|
|
607
|
+
}
|
|
608
|
+
return Ae(e.type, h, d, g, S, I, f);
|
|
609
|
+
}
|
|
610
|
+
function we(e) {
|
|
611
|
+
return typeof e == "object" && e !== null && e.$$typeof === w;
|
|
612
|
+
}
|
|
613
|
+
var fr = ".", Lr = ":";
|
|
614
|
+
function $r(e) {
|
|
615
|
+
var r = /[=:]/g, a = {
|
|
616
|
+
"=": "=0",
|
|
617
|
+
":": "=2"
|
|
618
|
+
}, o = e.replace(r, function(f) {
|
|
619
|
+
return a[f];
|
|
620
|
+
});
|
|
621
|
+
return "$" + o;
|
|
622
|
+
}
|
|
623
|
+
var He = !1, dr = /\/+/g;
|
|
624
|
+
function _e(e) {
|
|
625
|
+
return e.replace(dr, "$&/");
|
|
626
|
+
}
|
|
627
|
+
function Fe(e, r) {
|
|
628
|
+
return typeof e == "object" && e !== null && e.key != null ? (ke(e.key), $r("" + e.key)) : r.toString(36);
|
|
629
|
+
}
|
|
630
|
+
function Se(e, r, a, o, f) {
|
|
631
|
+
var h = typeof e;
|
|
632
|
+
(h === "undefined" || h === "boolean") && (e = null);
|
|
633
|
+
var d = !1;
|
|
634
|
+
if (e === null)
|
|
635
|
+
d = !0;
|
|
636
|
+
else
|
|
637
|
+
switch (h) {
|
|
638
|
+
case "string":
|
|
639
|
+
case "number":
|
|
640
|
+
d = !0;
|
|
641
|
+
break;
|
|
642
|
+
case "object":
|
|
643
|
+
switch (e.$$typeof) {
|
|
644
|
+
case w:
|
|
645
|
+
case L:
|
|
646
|
+
d = !0;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
if (d) {
|
|
650
|
+
var g = e, S = f(g), I = o === "" ? fr + Fe(g, 0) : o;
|
|
651
|
+
if (Ve(S)) {
|
|
652
|
+
var A = "";
|
|
653
|
+
I != null && (A = _e(I) + "/"), Se(S, r, A, "", function(un) {
|
|
654
|
+
return un;
|
|
655
|
+
});
|
|
656
|
+
} else S != null && (we(S) && (S.key && (!g || g.key !== S.key) && ke(S.key), S = Ar(
|
|
657
|
+
S,
|
|
658
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
659
|
+
// traverseAllChildren used to do for objects as children
|
|
660
|
+
a + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
661
|
+
(S.key && (!g || g.key !== S.key) ? (
|
|
662
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
663
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
664
|
+
_e("" + S.key) + "/"
|
|
665
|
+
) : "") + I
|
|
666
|
+
)), r.push(S));
|
|
667
|
+
return 1;
|
|
668
|
+
}
|
|
669
|
+
var F, W, B = 0, G = o === "" ? fr : o + Lr;
|
|
670
|
+
if (Ve(e))
|
|
671
|
+
for (var wr = 0; wr < e.length; wr++)
|
|
672
|
+
F = e[wr], W = G + Fe(F, wr), B += Se(F, r, a, W, f);
|
|
673
|
+
else {
|
|
674
|
+
var Jr = M(e);
|
|
675
|
+
if (typeof Jr == "function") {
|
|
676
|
+
var St = e;
|
|
677
|
+
Jr === St.entries && (He || fe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), He = !0);
|
|
678
|
+
for (var an = Jr.call(St), Tt, on = 0; !(Tt = an.next()).done; )
|
|
679
|
+
F = Tt.value, W = G + Fe(F, on++), B += Se(F, r, a, W, f);
|
|
680
|
+
} else if (h === "object") {
|
|
681
|
+
var Ot = String(e);
|
|
682
|
+
throw new Error("Objects are not valid as a React child (found: " + (Ot === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Ot) + "). If you meant to render a collection of children, use an array instead.");
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return B;
|
|
686
|
+
}
|
|
687
|
+
function Le(e, r, a) {
|
|
688
|
+
if (e == null)
|
|
689
|
+
return e;
|
|
690
|
+
var o = [], f = 0;
|
|
691
|
+
return Se(e, o, "", "", function(h) {
|
|
692
|
+
return r.call(a, h, f++);
|
|
693
|
+
}), o;
|
|
694
|
+
}
|
|
695
|
+
function Mr(e) {
|
|
696
|
+
var r = 0;
|
|
697
|
+
return Le(e, function() {
|
|
698
|
+
r++;
|
|
699
|
+
}), r;
|
|
700
|
+
}
|
|
701
|
+
function pr(e, r, a) {
|
|
702
|
+
Le(e, function() {
|
|
703
|
+
r.apply(this, arguments);
|
|
704
|
+
}, a);
|
|
705
|
+
}
|
|
706
|
+
function Vr(e) {
|
|
707
|
+
return Le(e, function(r) {
|
|
708
|
+
return r;
|
|
709
|
+
}) || [];
|
|
710
|
+
}
|
|
711
|
+
function vr(e) {
|
|
712
|
+
if (!we(e))
|
|
713
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
714
|
+
return e;
|
|
715
|
+
}
|
|
716
|
+
function hr(e) {
|
|
717
|
+
var r = {
|
|
718
|
+
$$typeof: re,
|
|
719
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
720
|
+
// some renderers as primary and others as secondary. We only expect
|
|
721
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
722
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
723
|
+
// Secondary renderers store their context values on separate fields.
|
|
724
|
+
_currentValue: e,
|
|
725
|
+
_currentValue2: e,
|
|
726
|
+
// Used to track how many concurrent renderers this context currently
|
|
727
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
728
|
+
_threadCount: 0,
|
|
729
|
+
// These are circular
|
|
730
|
+
Provider: null,
|
|
731
|
+
Consumer: null,
|
|
732
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
733
|
+
_defaultValue: null,
|
|
734
|
+
_globalName: null
|
|
735
|
+
};
|
|
736
|
+
r.Provider = {
|
|
737
|
+
$$typeof: $,
|
|
738
|
+
_context: r
|
|
739
|
+
};
|
|
740
|
+
var a = !1, o = !1, f = !1;
|
|
741
|
+
{
|
|
742
|
+
var h = {
|
|
743
|
+
$$typeof: re,
|
|
744
|
+
_context: r
|
|
745
|
+
};
|
|
746
|
+
Object.defineProperties(h, {
|
|
747
|
+
Provider: {
|
|
748
|
+
get: function() {
|
|
749
|
+
return o || (o = !0, v("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
|
|
750
|
+
},
|
|
751
|
+
set: function(d) {
|
|
752
|
+
r.Provider = d;
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
_currentValue: {
|
|
756
|
+
get: function() {
|
|
757
|
+
return r._currentValue;
|
|
758
|
+
},
|
|
759
|
+
set: function(d) {
|
|
760
|
+
r._currentValue = d;
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
_currentValue2: {
|
|
764
|
+
get: function() {
|
|
765
|
+
return r._currentValue2;
|
|
766
|
+
},
|
|
767
|
+
set: function(d) {
|
|
768
|
+
r._currentValue2 = d;
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
_threadCount: {
|
|
772
|
+
get: function() {
|
|
773
|
+
return r._threadCount;
|
|
774
|
+
},
|
|
775
|
+
set: function(d) {
|
|
776
|
+
r._threadCount = d;
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
Consumer: {
|
|
780
|
+
get: function() {
|
|
781
|
+
return a || (a = !0, v("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
displayName: {
|
|
785
|
+
get: function() {
|
|
786
|
+
return r.displayName;
|
|
787
|
+
},
|
|
788
|
+
set: function(d) {
|
|
789
|
+
f || (fe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", d), f = !0);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}), r.Consumer = h;
|
|
793
|
+
}
|
|
794
|
+
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
795
|
+
}
|
|
796
|
+
var $e = -1, Ke = 0, Ze = 1, yr = 2;
|
|
797
|
+
function Wr(e) {
|
|
798
|
+
if (e._status === $e) {
|
|
799
|
+
var r = e._result, a = r();
|
|
800
|
+
if (a.then(function(h) {
|
|
801
|
+
if (e._status === Ke || e._status === $e) {
|
|
802
|
+
var d = e;
|
|
803
|
+
d._status = Ze, d._result = h;
|
|
804
|
+
}
|
|
805
|
+
}, function(h) {
|
|
806
|
+
if (e._status === Ke || e._status === $e) {
|
|
807
|
+
var d = e;
|
|
808
|
+
d._status = yr, d._result = h;
|
|
809
|
+
}
|
|
810
|
+
}), e._status === $e) {
|
|
811
|
+
var o = e;
|
|
812
|
+
o._status = Ke, o._result = a;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
if (e._status === Ze) {
|
|
816
|
+
var f = e._result;
|
|
817
|
+
return f === void 0 && v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
818
|
+
|
|
819
|
+
Your code should look like:
|
|
820
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
821
|
+
|
|
822
|
+
Did you accidentally put curly braces around the import?`, f), "default" in f || v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
823
|
+
|
|
824
|
+
Your code should look like:
|
|
825
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, f), f.default;
|
|
826
|
+
} else
|
|
827
|
+
throw e._result;
|
|
828
|
+
}
|
|
829
|
+
function Nr(e) {
|
|
830
|
+
var r = {
|
|
831
|
+
// We use these fields to store the result.
|
|
832
|
+
_status: $e,
|
|
833
|
+
_result: e
|
|
834
|
+
}, a = {
|
|
835
|
+
$$typeof: de,
|
|
836
|
+
_payload: r,
|
|
837
|
+
_init: Wr
|
|
838
|
+
};
|
|
839
|
+
{
|
|
840
|
+
var o, f;
|
|
841
|
+
Object.defineProperties(a, {
|
|
842
|
+
defaultProps: {
|
|
843
|
+
configurable: !0,
|
|
844
|
+
get: function() {
|
|
845
|
+
return o;
|
|
846
|
+
},
|
|
847
|
+
set: function(h) {
|
|
848
|
+
v("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = h, Object.defineProperty(a, "defaultProps", {
|
|
849
|
+
enumerable: !0
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
propTypes: {
|
|
854
|
+
configurable: !0,
|
|
855
|
+
get: function() {
|
|
856
|
+
return f;
|
|
857
|
+
},
|
|
858
|
+
set: function(h) {
|
|
859
|
+
v("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), f = h, Object.defineProperty(a, "propTypes", {
|
|
860
|
+
enumerable: !0
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
return a;
|
|
867
|
+
}
|
|
868
|
+
function Ur(e) {
|
|
869
|
+
e != null && e.$$typeof === ae ? v("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? v("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && v("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && v("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
870
|
+
var r = {
|
|
871
|
+
$$typeof: U,
|
|
872
|
+
render: e
|
|
873
|
+
};
|
|
874
|
+
{
|
|
875
|
+
var a;
|
|
876
|
+
Object.defineProperty(r, "displayName", {
|
|
877
|
+
enumerable: !1,
|
|
878
|
+
configurable: !0,
|
|
879
|
+
get: function() {
|
|
880
|
+
return a;
|
|
881
|
+
},
|
|
882
|
+
set: function(o) {
|
|
883
|
+
a = o, !e.name && !e.displayName && (e.displayName = o);
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
return r;
|
|
888
|
+
}
|
|
889
|
+
var mr;
|
|
890
|
+
mr = Symbol.for("react.module.reference");
|
|
891
|
+
function t(e) {
|
|
892
|
+
return !!(typeof e == "string" || typeof e == "function" || e === X || e === J || oe || e === z || e === q || e === ue || Q || e === Me || Pe || ze || xe || typeof e == "object" && e !== null && (e.$$typeof === de || e.$$typeof === ae || e.$$typeof === $ || e.$$typeof === re || e.$$typeof === U || // This needs to include all possible module reference object
|
|
893
|
+
// types supported by any Flight configuration anywhere since
|
|
894
|
+
// we don't know which Flight build this will end up being used
|
|
895
|
+
// with.
|
|
896
|
+
e.$$typeof === mr || e.getModuleId !== void 0));
|
|
897
|
+
}
|
|
898
|
+
function u(e, r) {
|
|
899
|
+
t(e) || v("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
900
|
+
var a = {
|
|
901
|
+
$$typeof: ae,
|
|
902
|
+
type: e,
|
|
903
|
+
compare: r === void 0 ? null : r
|
|
904
|
+
};
|
|
905
|
+
{
|
|
906
|
+
var o;
|
|
907
|
+
Object.defineProperty(a, "displayName", {
|
|
908
|
+
enumerable: !1,
|
|
909
|
+
configurable: !0,
|
|
910
|
+
get: function() {
|
|
911
|
+
return o;
|
|
912
|
+
},
|
|
913
|
+
set: function(f) {
|
|
914
|
+
o = f, !e.name && !e.displayName && (e.displayName = f);
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
return a;
|
|
919
|
+
}
|
|
920
|
+
function c() {
|
|
921
|
+
var e = Ee.current;
|
|
922
|
+
return e === null && v(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
923
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
924
|
+
2. You might be breaking the Rules of Hooks
|
|
925
|
+
3. You might have more than one copy of React in the same app
|
|
926
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
927
|
+
}
|
|
928
|
+
function y(e) {
|
|
929
|
+
var r = c();
|
|
930
|
+
if (e._context !== void 0) {
|
|
931
|
+
var a = e._context;
|
|
932
|
+
a.Consumer === e ? v("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : a.Provider === e && v("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
933
|
+
}
|
|
934
|
+
return r.useContext(e);
|
|
935
|
+
}
|
|
936
|
+
function O(e) {
|
|
937
|
+
var r = c();
|
|
938
|
+
return r.useState(e);
|
|
939
|
+
}
|
|
940
|
+
function x(e, r, a) {
|
|
941
|
+
var o = c();
|
|
942
|
+
return o.useReducer(e, r, a);
|
|
943
|
+
}
|
|
944
|
+
function R(e) {
|
|
945
|
+
var r = c();
|
|
946
|
+
return r.useRef(e);
|
|
947
|
+
}
|
|
948
|
+
function _(e, r) {
|
|
949
|
+
var a = c();
|
|
950
|
+
return a.useEffect(e, r);
|
|
951
|
+
}
|
|
952
|
+
function Z(e, r) {
|
|
953
|
+
var a = c();
|
|
954
|
+
return a.useInsertionEffect(e, r);
|
|
955
|
+
}
|
|
956
|
+
function V(e, r) {
|
|
957
|
+
var a = c();
|
|
958
|
+
return a.useLayoutEffect(e, r);
|
|
959
|
+
}
|
|
960
|
+
function N(e, r) {
|
|
961
|
+
var a = c();
|
|
962
|
+
return a.useCallback(e, r);
|
|
963
|
+
}
|
|
964
|
+
function ie(e, r) {
|
|
965
|
+
var a = c();
|
|
966
|
+
return a.useMemo(e, r);
|
|
967
|
+
}
|
|
968
|
+
function Te(e, r, a) {
|
|
969
|
+
var o = c();
|
|
970
|
+
return o.useImperativeHandle(e, r, a);
|
|
971
|
+
}
|
|
972
|
+
function be(e, r) {
|
|
973
|
+
{
|
|
974
|
+
var a = c();
|
|
975
|
+
return a.useDebugValue(e, r);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function ee() {
|
|
979
|
+
var e = c();
|
|
980
|
+
return e.useTransition();
|
|
981
|
+
}
|
|
982
|
+
function Ge(e) {
|
|
983
|
+
var r = c();
|
|
984
|
+
return r.useDeferredValue(e);
|
|
985
|
+
}
|
|
986
|
+
function Hr() {
|
|
987
|
+
var e = c();
|
|
988
|
+
return e.useId();
|
|
989
|
+
}
|
|
990
|
+
function Yr(e, r, a) {
|
|
991
|
+
var o = c();
|
|
992
|
+
return o.useSyncExternalStore(e, r, a);
|
|
993
|
+
}
|
|
994
|
+
var Xe = 0, at, ot, it, ut, st, lt, ct;
|
|
995
|
+
function ft() {
|
|
996
|
+
}
|
|
997
|
+
ft.__reactDisabledLog = !0;
|
|
998
|
+
function Wt() {
|
|
999
|
+
{
|
|
1000
|
+
if (Xe === 0) {
|
|
1001
|
+
at = console.log, ot = console.info, it = console.warn, ut = console.error, st = console.group, lt = console.groupCollapsed, ct = console.groupEnd;
|
|
1002
|
+
var e = {
|
|
1003
|
+
configurable: !0,
|
|
1004
|
+
enumerable: !0,
|
|
1005
|
+
value: ft,
|
|
1006
|
+
writable: !0
|
|
1007
|
+
};
|
|
1008
|
+
Object.defineProperties(console, {
|
|
1009
|
+
info: e,
|
|
1010
|
+
log: e,
|
|
1011
|
+
warn: e,
|
|
1012
|
+
error: e,
|
|
1013
|
+
group: e,
|
|
1014
|
+
groupCollapsed: e,
|
|
1015
|
+
groupEnd: e
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
Xe++;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function Nt() {
|
|
1022
|
+
{
|
|
1023
|
+
if (Xe--, Xe === 0) {
|
|
1024
|
+
var e = {
|
|
1025
|
+
configurable: !0,
|
|
1026
|
+
enumerable: !0,
|
|
1027
|
+
writable: !0
|
|
1028
|
+
};
|
|
1029
|
+
Object.defineProperties(console, {
|
|
1030
|
+
log: l({}, e, {
|
|
1031
|
+
value: at
|
|
1032
|
+
}),
|
|
1033
|
+
info: l({}, e, {
|
|
1034
|
+
value: ot
|
|
1035
|
+
}),
|
|
1036
|
+
warn: l({}, e, {
|
|
1037
|
+
value: it
|
|
1038
|
+
}),
|
|
1039
|
+
error: l({}, e, {
|
|
1040
|
+
value: ut
|
|
1041
|
+
}),
|
|
1042
|
+
group: l({}, e, {
|
|
1043
|
+
value: st
|
|
1044
|
+
}),
|
|
1045
|
+
groupCollapsed: l({}, e, {
|
|
1046
|
+
value: lt
|
|
1047
|
+
}),
|
|
1048
|
+
groupEnd: l({}, e, {
|
|
1049
|
+
value: ct
|
|
1050
|
+
})
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
Xe < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
var Br = K.ReactCurrentDispatcher, zr;
|
|
1057
|
+
function gr(e, r, a) {
|
|
1058
|
+
{
|
|
1059
|
+
if (zr === void 0)
|
|
1060
|
+
try {
|
|
1061
|
+
throw Error();
|
|
1062
|
+
} catch (f) {
|
|
1063
|
+
var o = f.stack.trim().match(/\n( *(at )?)/);
|
|
1064
|
+
zr = o && o[1] || "";
|
|
1065
|
+
}
|
|
1066
|
+
return `
|
|
1067
|
+
` + zr + e;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
var qr = !1, _r;
|
|
1071
|
+
{
|
|
1072
|
+
var Ut = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1073
|
+
_r = new Ut();
|
|
1074
|
+
}
|
|
1075
|
+
function dt(e, r) {
|
|
1076
|
+
if (!e || qr)
|
|
1077
|
+
return "";
|
|
1078
|
+
{
|
|
1079
|
+
var a = _r.get(e);
|
|
1080
|
+
if (a !== void 0)
|
|
1081
|
+
return a;
|
|
1082
|
+
}
|
|
1083
|
+
var o;
|
|
1084
|
+
qr = !0;
|
|
1085
|
+
var f = Error.prepareStackTrace;
|
|
1086
|
+
Error.prepareStackTrace = void 0;
|
|
1087
|
+
var h;
|
|
1088
|
+
h = Br.current, Br.current = null, Wt();
|
|
1089
|
+
try {
|
|
1090
|
+
if (r) {
|
|
1091
|
+
var d = function() {
|
|
1092
|
+
throw Error();
|
|
1093
|
+
};
|
|
1094
|
+
if (Object.defineProperty(d.prototype, "props", {
|
|
1095
|
+
set: function() {
|
|
1096
|
+
throw Error();
|
|
1097
|
+
}
|
|
1098
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1099
|
+
try {
|
|
1100
|
+
Reflect.construct(d, []);
|
|
1101
|
+
} catch (G) {
|
|
1102
|
+
o = G;
|
|
1103
|
+
}
|
|
1104
|
+
Reflect.construct(e, [], d);
|
|
1105
|
+
} else {
|
|
1106
|
+
try {
|
|
1107
|
+
d.call();
|
|
1108
|
+
} catch (G) {
|
|
1109
|
+
o = G;
|
|
1110
|
+
}
|
|
1111
|
+
e.call(d.prototype);
|
|
1112
|
+
}
|
|
1113
|
+
} else {
|
|
1114
|
+
try {
|
|
1115
|
+
throw Error();
|
|
1116
|
+
} catch (G) {
|
|
1117
|
+
o = G;
|
|
1118
|
+
}
|
|
1119
|
+
e();
|
|
1120
|
+
}
|
|
1121
|
+
} catch (G) {
|
|
1122
|
+
if (G && o && typeof G.stack == "string") {
|
|
1123
|
+
for (var g = G.stack.split(`
|
|
1124
|
+
`), S = o.stack.split(`
|
|
1125
|
+
`), I = g.length - 1, A = S.length - 1; I >= 1 && A >= 0 && g[I] !== S[A]; )
|
|
1126
|
+
A--;
|
|
1127
|
+
for (; I >= 1 && A >= 0; I--, A--)
|
|
1128
|
+
if (g[I] !== S[A]) {
|
|
1129
|
+
if (I !== 1 || A !== 1)
|
|
1130
|
+
do
|
|
1131
|
+
if (I--, A--, A < 0 || g[I] !== S[A]) {
|
|
1132
|
+
var F = `
|
|
1133
|
+
` + g[I].replace(" at new ", " at ");
|
|
1134
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && _r.set(e, F), F;
|
|
1135
|
+
}
|
|
1136
|
+
while (I >= 1 && A >= 0);
|
|
1137
|
+
break;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
} finally {
|
|
1141
|
+
qr = !1, Br.current = h, Nt(), Error.prepareStackTrace = f;
|
|
1142
|
+
}
|
|
1143
|
+
var W = e ? e.displayName || e.name : "", B = W ? gr(W) : "";
|
|
1144
|
+
return typeof e == "function" && _r.set(e, B), B;
|
|
1145
|
+
}
|
|
1146
|
+
function Ht(e, r, a) {
|
|
1147
|
+
return dt(e, !1);
|
|
1148
|
+
}
|
|
1149
|
+
function Yt(e) {
|
|
1150
|
+
var r = e.prototype;
|
|
1151
|
+
return !!(r && r.isReactComponent);
|
|
1152
|
+
}
|
|
1153
|
+
function br(e, r, a) {
|
|
1154
|
+
if (e == null)
|
|
1155
|
+
return "";
|
|
1156
|
+
if (typeof e == "function")
|
|
1157
|
+
return dt(e, Yt(e));
|
|
1158
|
+
if (typeof e == "string")
|
|
1159
|
+
return gr(e);
|
|
1160
|
+
switch (e) {
|
|
1161
|
+
case q:
|
|
1162
|
+
return gr("Suspense");
|
|
1163
|
+
case ue:
|
|
1164
|
+
return gr("SuspenseList");
|
|
1165
|
+
}
|
|
1166
|
+
if (typeof e == "object")
|
|
1167
|
+
switch (e.$$typeof) {
|
|
1168
|
+
case U:
|
|
1169
|
+
return Ht(e.render);
|
|
1170
|
+
case ae:
|
|
1171
|
+
return br(e.type, r, a);
|
|
1172
|
+
case de: {
|
|
1173
|
+
var o = e, f = o._payload, h = o._init;
|
|
1174
|
+
try {
|
|
1175
|
+
return br(h(f), r, a);
|
|
1176
|
+
} catch {
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return "";
|
|
1181
|
+
}
|
|
1182
|
+
var pt = {}, vt = K.ReactDebugCurrentFrame;
|
|
1183
|
+
function Er(e) {
|
|
1184
|
+
if (e) {
|
|
1185
|
+
var r = e._owner, a = br(e.type, e._source, r ? r.type : null);
|
|
1186
|
+
vt.setExtraStackFrame(a);
|
|
1187
|
+
} else
|
|
1188
|
+
vt.setExtraStackFrame(null);
|
|
1189
|
+
}
|
|
1190
|
+
function Bt(e, r, a, o, f) {
|
|
1191
|
+
{
|
|
1192
|
+
var h = Function.call.bind(De);
|
|
1193
|
+
for (var d in e)
|
|
1194
|
+
if (h(e, d)) {
|
|
1195
|
+
var g = void 0;
|
|
1196
|
+
try {
|
|
1197
|
+
if (typeof e[d] != "function") {
|
|
1198
|
+
var S = Error((o || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1199
|
+
throw S.name = "Invariant Violation", S;
|
|
1200
|
+
}
|
|
1201
|
+
g = e[d](r, d, o, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1202
|
+
} catch (I) {
|
|
1203
|
+
g = I;
|
|
1204
|
+
}
|
|
1205
|
+
g && !(g instanceof Error) && (Er(f), v("%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).", o || "React class", a, d, typeof g), Er(null)), g instanceof Error && !(g.message in pt) && (pt[g.message] = !0, Er(f), v("Failed %s type: %s", a, g.message), Er(null));
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
function Ye(e) {
|
|
1210
|
+
if (e) {
|
|
1211
|
+
var r = e._owner, a = br(e.type, e._source, r ? r.type : null);
|
|
1212
|
+
Oe(a);
|
|
1213
|
+
} else
|
|
1214
|
+
Oe(null);
|
|
1215
|
+
}
|
|
1216
|
+
var Kr;
|
|
1217
|
+
Kr = !1;
|
|
1218
|
+
function ht() {
|
|
1219
|
+
if (te.current) {
|
|
1220
|
+
var e = he(te.current.type);
|
|
1221
|
+
if (e)
|
|
1222
|
+
return `
|
|
1223
|
+
|
|
1224
|
+
Check the render method of \`` + e + "`.";
|
|
1225
|
+
}
|
|
1226
|
+
return "";
|
|
1227
|
+
}
|
|
1228
|
+
function zt(e) {
|
|
1229
|
+
if (e !== void 0) {
|
|
1230
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
1231
|
+
return `
|
|
1232
|
+
|
|
1233
|
+
Check your code at ` + r + ":" + a + ".";
|
|
1234
|
+
}
|
|
1235
|
+
return "";
|
|
1236
|
+
}
|
|
1237
|
+
function qt(e) {
|
|
1238
|
+
return e != null ? zt(e.__source) : "";
|
|
1239
|
+
}
|
|
1240
|
+
var yt = {};
|
|
1241
|
+
function Kt(e) {
|
|
1242
|
+
var r = ht();
|
|
1243
|
+
if (!r) {
|
|
1244
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
1245
|
+
a && (r = `
|
|
1246
|
+
|
|
1247
|
+
Check the top-level render call using <` + a + ">.");
|
|
1248
|
+
}
|
|
1249
|
+
return r;
|
|
1250
|
+
}
|
|
1251
|
+
function mt(e, r) {
|
|
1252
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1253
|
+
e._store.validated = !0;
|
|
1254
|
+
var a = Kt(r);
|
|
1255
|
+
if (!yt[a]) {
|
|
1256
|
+
yt[a] = !0;
|
|
1257
|
+
var o = "";
|
|
1258
|
+
e && e._owner && e._owner !== te.current && (o = " It was passed a child from " + he(e._owner.type) + "."), Ye(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, o), Ye(null);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
function gt(e, r) {
|
|
1263
|
+
if (typeof e == "object") {
|
|
1264
|
+
if (Ve(e))
|
|
1265
|
+
for (var a = 0; a < e.length; a++) {
|
|
1266
|
+
var o = e[a];
|
|
1267
|
+
we(o) && mt(o, r);
|
|
1268
|
+
}
|
|
1269
|
+
else if (we(e))
|
|
1270
|
+
e._store && (e._store.validated = !0);
|
|
1271
|
+
else if (e) {
|
|
1272
|
+
var f = M(e);
|
|
1273
|
+
if (typeof f == "function" && f !== e.entries)
|
|
1274
|
+
for (var h = f.call(e), d; !(d = h.next()).done; )
|
|
1275
|
+
we(d.value) && mt(d.value, r);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
function _t(e) {
|
|
1280
|
+
{
|
|
1281
|
+
var r = e.type;
|
|
1282
|
+
if (r == null || typeof r == "string")
|
|
1283
|
+
return;
|
|
1284
|
+
var a;
|
|
1285
|
+
if (typeof r == "function")
|
|
1286
|
+
a = r.propTypes;
|
|
1287
|
+
else if (typeof r == "object" && (r.$$typeof === U || // Note: Memo only checks outer props here.
|
|
1288
|
+
// Inner props are checked in the reconciler.
|
|
1289
|
+
r.$$typeof === ae))
|
|
1290
|
+
a = r.propTypes;
|
|
1291
|
+
else
|
|
1292
|
+
return;
|
|
1293
|
+
if (a) {
|
|
1294
|
+
var o = he(r);
|
|
1295
|
+
Bt(a, e.props, "prop", o, e);
|
|
1296
|
+
} else if (r.PropTypes !== void 0 && !Kr) {
|
|
1297
|
+
Kr = !0;
|
|
1298
|
+
var f = he(r);
|
|
1299
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
|
|
1300
|
+
}
|
|
1301
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
function Zt(e) {
|
|
1305
|
+
{
|
|
1306
|
+
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
1307
|
+
var o = r[a];
|
|
1308
|
+
if (o !== "children" && o !== "key") {
|
|
1309
|
+
Ye(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), Ye(null);
|
|
1310
|
+
break;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
e.ref !== null && (Ye(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
function bt(e, r, a) {
|
|
1317
|
+
var o = t(e);
|
|
1318
|
+
if (!o) {
|
|
1319
|
+
var f = "";
|
|
1320
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1321
|
+
var h = qt(r);
|
|
1322
|
+
h ? f += h : f += ht();
|
|
1323
|
+
var d;
|
|
1324
|
+
e === null ? d = "null" : Ve(e) ? d = "array" : e !== void 0 && e.$$typeof === w ? (d = "<" + (he(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, v("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, f);
|
|
1325
|
+
}
|
|
1326
|
+
var g = Dr.apply(this, arguments);
|
|
1327
|
+
if (g == null)
|
|
1328
|
+
return g;
|
|
1329
|
+
if (o)
|
|
1330
|
+
for (var S = 2; S < arguments.length; S++)
|
|
1331
|
+
gt(arguments[S], e);
|
|
1332
|
+
return e === X ? Zt(g) : _t(g), g;
|
|
1333
|
+
}
|
|
1334
|
+
var Et = !1;
|
|
1335
|
+
function Gt(e) {
|
|
1336
|
+
var r = bt.bind(null, e);
|
|
1337
|
+
return r.type = e, Et || (Et = !0, fe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
|
|
1338
|
+
enumerable: !1,
|
|
1339
|
+
get: function() {
|
|
1340
|
+
return fe("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1341
|
+
value: e
|
|
1342
|
+
}), e;
|
|
1343
|
+
}
|
|
1344
|
+
}), r;
|
|
1345
|
+
}
|
|
1346
|
+
function Xt(e, r, a) {
|
|
1347
|
+
for (var o = Fr.apply(this, arguments), f = 2; f < arguments.length; f++)
|
|
1348
|
+
gt(arguments[f], o.type);
|
|
1349
|
+
return _t(o), o;
|
|
1350
|
+
}
|
|
1351
|
+
function Jt(e, r) {
|
|
1352
|
+
var a = ce.transition;
|
|
1353
|
+
ce.transition = {};
|
|
1354
|
+
var o = ce.transition;
|
|
1355
|
+
ce.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1356
|
+
try {
|
|
1357
|
+
e();
|
|
1358
|
+
} finally {
|
|
1359
|
+
if (ce.transition = a, a === null && o._updatedFibers) {
|
|
1360
|
+
var f = o._updatedFibers.size;
|
|
1361
|
+
f > 10 && fe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
var Rt = !1, Rr = null;
|
|
1366
|
+
function Qt(e) {
|
|
1367
|
+
if (Rr === null)
|
|
1368
|
+
try {
|
|
1369
|
+
var r = ("require" + Math.random()).slice(0, 7), a = i && i[r];
|
|
1370
|
+
Rr = a.call(i, "timers").setImmediate;
|
|
1371
|
+
} catch {
|
|
1372
|
+
Rr = function(f) {
|
|
1373
|
+
Rt === !1 && (Rt = !0, typeof MessageChannel > "u" && v("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1374
|
+
var h = new MessageChannel();
|
|
1375
|
+
h.port1.onmessage = f, h.port2.postMessage(void 0);
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
return Rr(e);
|
|
1379
|
+
}
|
|
1380
|
+
var Be = 0, Ct = !1;
|
|
1381
|
+
function wt(e) {
|
|
1382
|
+
{
|
|
1383
|
+
var r = Be;
|
|
1384
|
+
Be++, H.current === null && (H.current = []);
|
|
1385
|
+
var a = H.isBatchingLegacy, o;
|
|
1386
|
+
try {
|
|
1387
|
+
if (H.isBatchingLegacy = !0, o = e(), !a && H.didScheduleLegacyUpdate) {
|
|
1388
|
+
var f = H.current;
|
|
1389
|
+
f !== null && (H.didScheduleLegacyUpdate = !1, Xr(f));
|
|
1390
|
+
}
|
|
1391
|
+
} catch (W) {
|
|
1392
|
+
throw Cr(r), W;
|
|
1393
|
+
} finally {
|
|
1394
|
+
H.isBatchingLegacy = a;
|
|
1395
|
+
}
|
|
1396
|
+
if (o !== null && typeof o == "object" && typeof o.then == "function") {
|
|
1397
|
+
var h = o, d = !1, g = {
|
|
1398
|
+
then: function(W, B) {
|
|
1399
|
+
d = !0, h.then(function(G) {
|
|
1400
|
+
Cr(r), Be === 0 ? Zr(G, W, B) : W(G);
|
|
1401
|
+
}, function(G) {
|
|
1402
|
+
Cr(r), B(G);
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
return !Ct && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1407
|
+
}).then(function() {
|
|
1408
|
+
d || (Ct = !0, v("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1409
|
+
}), g;
|
|
1410
|
+
} else {
|
|
1411
|
+
var S = o;
|
|
1412
|
+
if (Cr(r), Be === 0) {
|
|
1413
|
+
var I = H.current;
|
|
1414
|
+
I !== null && (Xr(I), H.current = null);
|
|
1415
|
+
var A = {
|
|
1416
|
+
then: function(W, B) {
|
|
1417
|
+
H.current === null ? (H.current = [], Zr(S, W, B)) : W(S);
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
return A;
|
|
1421
|
+
} else {
|
|
1422
|
+
var F = {
|
|
1423
|
+
then: function(W, B) {
|
|
1424
|
+
W(S);
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
return F;
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
function Cr(e) {
|
|
1433
|
+
e !== Be - 1 && v("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Be = e;
|
|
1434
|
+
}
|
|
1435
|
+
function Zr(e, r, a) {
|
|
1436
|
+
{
|
|
1437
|
+
var o = H.current;
|
|
1438
|
+
if (o !== null)
|
|
1439
|
+
try {
|
|
1440
|
+
Xr(o), Qt(function() {
|
|
1441
|
+
o.length === 0 ? (H.current = null, r(e)) : Zr(e, r, a);
|
|
1442
|
+
});
|
|
1443
|
+
} catch (f) {
|
|
1444
|
+
a(f);
|
|
1445
|
+
}
|
|
1446
|
+
else
|
|
1447
|
+
r(e);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
var Gr = !1;
|
|
1451
|
+
function Xr(e) {
|
|
1452
|
+
if (!Gr) {
|
|
1453
|
+
Gr = !0;
|
|
1454
|
+
var r = 0;
|
|
1455
|
+
try {
|
|
1456
|
+
for (; r < e.length; r++) {
|
|
1457
|
+
var a = e[r];
|
|
1458
|
+
do
|
|
1459
|
+
a = a(!0);
|
|
1460
|
+
while (a !== null);
|
|
1461
|
+
}
|
|
1462
|
+
e.length = 0;
|
|
1463
|
+
} catch (o) {
|
|
1464
|
+
throw e = e.slice(r + 1), o;
|
|
1465
|
+
} finally {
|
|
1466
|
+
Gr = !1;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
var en = bt, rn = Xt, tn = Gt, nn = {
|
|
1471
|
+
map: Le,
|
|
1472
|
+
forEach: pr,
|
|
1473
|
+
count: Mr,
|
|
1474
|
+
toArray: Vr,
|
|
1475
|
+
only: vr
|
|
1476
|
+
};
|
|
1477
|
+
s.Children = nn, s.Component = C, s.Fragment = X, s.Profiler = J, s.PureComponent = P, s.StrictMode = z, s.Suspense = q, s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = K, s.act = wt, s.cloneElement = rn, s.createContext = hr, s.createElement = en, s.createFactory = tn, s.createRef = jr, s.forwardRef = Ur, s.isValidElement = we, s.lazy = Nr, s.memo = u, s.startTransition = Jt, s.unstable_act = wt, s.useCallback = N, s.useContext = y, s.useDebugValue = be, s.useDeferredValue = Ge, s.useEffect = _, s.useId = Hr, s.useImperativeHandle = Te, s.useInsertionEffect = Z, s.useLayoutEffect = V, s.useMemo = ie, s.useReducer = x, s.useRef = R, s.useState = O, s.useSyncExternalStore = Yr, s.useTransition = ee, s.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1478
|
+
}();
|
|
1479
|
+
}(tr, tr.exports)), tr.exports;
|
|
1480
|
+
}
|
|
1481
|
+
var jt;
|
|
1482
|
+
function $t() {
|
|
1483
|
+
return jt || (jt = 1, process.env.NODE_ENV === "production" ? Tr.exports = hn() : Tr.exports = yn()), Tr.exports;
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* @license React
|
|
1487
|
+
* react-jsx-runtime.production.min.js
|
|
1488
|
+
*
|
|
1489
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1490
|
+
*
|
|
1491
|
+
* This source code is licensed under the MIT license found in the
|
|
1492
|
+
* LICENSE file in the root directory of this source tree.
|
|
1493
|
+
*/
|
|
1494
|
+
var kt;
|
|
1495
|
+
function mn() {
|
|
1496
|
+
if (kt) return Qe;
|
|
1497
|
+
kt = 1;
|
|
1498
|
+
var i = $t(), s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, L = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, X = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1499
|
+
function z(J, $, re) {
|
|
1500
|
+
var U, q = {}, ue = null, ae = null;
|
|
1501
|
+
re !== void 0 && (ue = "" + re), $.key !== void 0 && (ue = "" + $.key), $.ref !== void 0 && (ae = $.ref);
|
|
1502
|
+
for (U in $) w.call($, U) && !X.hasOwnProperty(U) && (q[U] = $[U]);
|
|
1503
|
+
if (J && J.defaultProps) for (U in $ = J.defaultProps, $) q[U] === void 0 && (q[U] = $[U]);
|
|
1504
|
+
return { $$typeof: s, type: J, key: ue, ref: ae, props: q, _owner: L.current };
|
|
1505
|
+
}
|
|
1506
|
+
return Qe.Fragment = p, Qe.jsx = z, Qe.jsxs = z, Qe;
|
|
1507
|
+
}
|
|
1508
|
+
var er = {};
|
|
1509
|
+
/**
|
|
1510
|
+
* @license React
|
|
1511
|
+
* react-jsx-runtime.development.js
|
|
1512
|
+
*
|
|
1513
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1514
|
+
*
|
|
1515
|
+
* This source code is licensed under the MIT license found in the
|
|
1516
|
+
* LICENSE file in the root directory of this source tree.
|
|
1517
|
+
*/
|
|
1518
|
+
var It;
|
|
1519
|
+
function gn() {
|
|
1520
|
+
return It || (It = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1521
|
+
var i = $t(), s = Symbol.for("react.element"), p = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), L = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), z = Symbol.for("react.provider"), J = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), U = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), ue = Symbol.for("react.lazy"), ae = Symbol.for("react.offscreen"), de = Symbol.iterator, Me = "@@iterator";
|
|
1522
|
+
function se(t) {
|
|
1523
|
+
if (t === null || typeof t != "object")
|
|
1524
|
+
return null;
|
|
1525
|
+
var u = de && t[de] || t[Me];
|
|
1526
|
+
return typeof u == "function" ? u : null;
|
|
1527
|
+
}
|
|
1528
|
+
var le = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1529
|
+
function M(t) {
|
|
1530
|
+
{
|
|
1531
|
+
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), y = 1; y < u; y++)
|
|
1532
|
+
c[y - 1] = arguments[y];
|
|
1533
|
+
Ee("error", t, c);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
function Ee(t, u, c) {
|
|
1537
|
+
{
|
|
1538
|
+
var y = le.ReactDebugCurrentFrame, O = y.getStackAddendum();
|
|
1539
|
+
O !== "" && (u += "%s", c = c.concat([O]));
|
|
1540
|
+
var x = c.map(function(R) {
|
|
1541
|
+
return String(R);
|
|
1542
|
+
});
|
|
1543
|
+
x.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, x);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
var ce = !1, H = !1, te = !1, pe = !1, me = !1, Oe;
|
|
1547
|
+
Oe = Symbol.for("react.module.reference");
|
|
1548
|
+
function Pe(t) {
|
|
1549
|
+
return !!(typeof t == "string" || typeof t == "function" || t === w || t === X || me || t === L || t === re || t === U || pe || t === ae || ce || H || te || typeof t == "object" && t !== null && (t.$$typeof === ue || t.$$typeof === q || t.$$typeof === z || t.$$typeof === J || t.$$typeof === $ || // This needs to include all possible module reference object
|
|
1550
|
+
// types supported by any Flight configuration anywhere since
|
|
1551
|
+
// we don't know which Flight build this will end up being used
|
|
1552
|
+
// with.
|
|
1553
|
+
t.$$typeof === Oe || t.getModuleId !== void 0));
|
|
1554
|
+
}
|
|
1555
|
+
function ze(t, u, c) {
|
|
1556
|
+
var y = t.displayName;
|
|
1557
|
+
if (y)
|
|
1558
|
+
return y;
|
|
1559
|
+
var O = u.displayName || u.name || "";
|
|
1560
|
+
return O !== "" ? c + "(" + O + ")" : c;
|
|
1561
|
+
}
|
|
1562
|
+
function xe(t) {
|
|
1563
|
+
return t.displayName || "Context";
|
|
1564
|
+
}
|
|
1565
|
+
function Q(t) {
|
|
1566
|
+
if (t == null)
|
|
1567
|
+
return null;
|
|
1568
|
+
if (typeof t.tag == "number" && M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
1569
|
+
return t.displayName || t.name || null;
|
|
1570
|
+
if (typeof t == "string")
|
|
1571
|
+
return t;
|
|
1572
|
+
switch (t) {
|
|
1573
|
+
case w:
|
|
1574
|
+
return "Fragment";
|
|
1575
|
+
case p:
|
|
1576
|
+
return "Portal";
|
|
1577
|
+
case X:
|
|
1578
|
+
return "Profiler";
|
|
1579
|
+
case L:
|
|
1580
|
+
return "StrictMode";
|
|
1581
|
+
case re:
|
|
1582
|
+
return "Suspense";
|
|
1583
|
+
case U:
|
|
1584
|
+
return "SuspenseList";
|
|
1585
|
+
}
|
|
1586
|
+
if (typeof t == "object")
|
|
1587
|
+
switch (t.$$typeof) {
|
|
1588
|
+
case J:
|
|
1589
|
+
var u = t;
|
|
1590
|
+
return xe(u) + ".Consumer";
|
|
1591
|
+
case z:
|
|
1592
|
+
var c = t;
|
|
1593
|
+
return xe(c._context) + ".Provider";
|
|
1594
|
+
case $:
|
|
1595
|
+
return ze(t, t.render, "ForwardRef");
|
|
1596
|
+
case q:
|
|
1597
|
+
var y = t.displayName || null;
|
|
1598
|
+
return y !== null ? y : Q(t.type) || "Memo";
|
|
1599
|
+
case ue: {
|
|
1600
|
+
var O = t, x = O._payload, R = O._init;
|
|
1601
|
+
try {
|
|
1602
|
+
return Q(R(x));
|
|
1603
|
+
} catch {
|
|
1604
|
+
return null;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
return null;
|
|
1609
|
+
}
|
|
1610
|
+
var oe = Object.assign, K = 0, fe, v, ve, je, ge, n, l;
|
|
1611
|
+
function E() {
|
|
1612
|
+
}
|
|
1613
|
+
E.__reactDisabledLog = !0;
|
|
1614
|
+
function C() {
|
|
1615
|
+
{
|
|
1616
|
+
if (K === 0) {
|
|
1617
|
+
fe = console.log, v = console.info, ve = console.warn, je = console.error, ge = console.group, n = console.groupCollapsed, l = console.groupEnd;
|
|
1618
|
+
var t = {
|
|
1619
|
+
configurable: !0,
|
|
1620
|
+
enumerable: !0,
|
|
1621
|
+
value: E,
|
|
1622
|
+
writable: !0
|
|
1623
|
+
};
|
|
1624
|
+
Object.defineProperties(console, {
|
|
1625
|
+
info: t,
|
|
1626
|
+
log: t,
|
|
1627
|
+
warn: t,
|
|
1628
|
+
error: t,
|
|
1629
|
+
group: t,
|
|
1630
|
+
groupCollapsed: t,
|
|
1631
|
+
groupEnd: t
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
K++;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
function T() {
|
|
1638
|
+
{
|
|
1639
|
+
if (K--, K === 0) {
|
|
1640
|
+
var t = {
|
|
1641
|
+
configurable: !0,
|
|
1642
|
+
enumerable: !0,
|
|
1643
|
+
writable: !0
|
|
1644
|
+
};
|
|
1645
|
+
Object.defineProperties(console, {
|
|
1646
|
+
log: oe({}, t, {
|
|
1647
|
+
value: fe
|
|
1648
|
+
}),
|
|
1649
|
+
info: oe({}, t, {
|
|
1650
|
+
value: v
|
|
1651
|
+
}),
|
|
1652
|
+
warn: oe({}, t, {
|
|
1653
|
+
value: ve
|
|
1654
|
+
}),
|
|
1655
|
+
error: oe({}, t, {
|
|
1656
|
+
value: je
|
|
1657
|
+
}),
|
|
1658
|
+
group: oe({}, t, {
|
|
1659
|
+
value: ge
|
|
1660
|
+
}),
|
|
1661
|
+
groupCollapsed: oe({}, t, {
|
|
1662
|
+
value: n
|
|
1663
|
+
}),
|
|
1664
|
+
groupEnd: oe({}, t, {
|
|
1665
|
+
value: l
|
|
1666
|
+
})
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
K < 0 && M("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
var D = le.ReactCurrentDispatcher, k;
|
|
1673
|
+
function j(t, u, c) {
|
|
1674
|
+
{
|
|
1675
|
+
if (k === void 0)
|
|
1676
|
+
try {
|
|
1677
|
+
throw Error();
|
|
1678
|
+
} catch (O) {
|
|
1679
|
+
var y = O.stack.trim().match(/\n( *(at )?)/);
|
|
1680
|
+
k = y && y[1] || "";
|
|
1681
|
+
}
|
|
1682
|
+
return `
|
|
1683
|
+
` + k + t;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
var P = !1, Y;
|
|
1687
|
+
{
|
|
1688
|
+
var jr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1689
|
+
Y = new jr();
|
|
1690
|
+
}
|
|
1691
|
+
function or(t, u) {
|
|
1692
|
+
if (!t || P)
|
|
1693
|
+
return "";
|
|
1694
|
+
{
|
|
1695
|
+
var c = Y.get(t);
|
|
1696
|
+
if (c !== void 0)
|
|
1697
|
+
return c;
|
|
1698
|
+
}
|
|
1699
|
+
var y;
|
|
1700
|
+
P = !0;
|
|
1701
|
+
var O = Error.prepareStackTrace;
|
|
1702
|
+
Error.prepareStackTrace = void 0;
|
|
1703
|
+
var x;
|
|
1704
|
+
x = D.current, D.current = null, C();
|
|
1705
|
+
try {
|
|
1706
|
+
if (u) {
|
|
1707
|
+
var R = function() {
|
|
1708
|
+
throw Error();
|
|
1709
|
+
};
|
|
1710
|
+
if (Object.defineProperty(R.prototype, "props", {
|
|
1711
|
+
set: function() {
|
|
1712
|
+
throw Error();
|
|
1713
|
+
}
|
|
1714
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1715
|
+
try {
|
|
1716
|
+
Reflect.construct(R, []);
|
|
1717
|
+
} catch (ee) {
|
|
1718
|
+
y = ee;
|
|
1719
|
+
}
|
|
1720
|
+
Reflect.construct(t, [], R);
|
|
1721
|
+
} else {
|
|
1722
|
+
try {
|
|
1723
|
+
R.call();
|
|
1724
|
+
} catch (ee) {
|
|
1725
|
+
y = ee;
|
|
1726
|
+
}
|
|
1727
|
+
t.call(R.prototype);
|
|
1728
|
+
}
|
|
1729
|
+
} else {
|
|
1730
|
+
try {
|
|
1731
|
+
throw Error();
|
|
1732
|
+
} catch (ee) {
|
|
1733
|
+
y = ee;
|
|
1734
|
+
}
|
|
1735
|
+
t();
|
|
1736
|
+
}
|
|
1737
|
+
} catch (ee) {
|
|
1738
|
+
if (ee && y && typeof ee.stack == "string") {
|
|
1739
|
+
for (var _ = ee.stack.split(`
|
|
1740
|
+
`), Z = y.stack.split(`
|
|
1741
|
+
`), V = _.length - 1, N = Z.length - 1; V >= 1 && N >= 0 && _[V] !== Z[N]; )
|
|
1742
|
+
N--;
|
|
1743
|
+
for (; V >= 1 && N >= 0; V--, N--)
|
|
1744
|
+
if (_[V] !== Z[N]) {
|
|
1745
|
+
if (V !== 1 || N !== 1)
|
|
1746
|
+
do
|
|
1747
|
+
if (V--, N--, N < 0 || _[V] !== Z[N]) {
|
|
1748
|
+
var ie = `
|
|
1749
|
+
` + _[V].replace(" at new ", " at ");
|
|
1750
|
+
return t.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", t.displayName)), typeof t == "function" && Y.set(t, ie), ie;
|
|
1751
|
+
}
|
|
1752
|
+
while (V >= 1 && N >= 0);
|
|
1753
|
+
break;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
} finally {
|
|
1757
|
+
P = !1, D.current = x, T(), Error.prepareStackTrace = O;
|
|
1758
|
+
}
|
|
1759
|
+
var Te = t ? t.displayName || t.name : "", be = Te ? j(Te) : "";
|
|
1760
|
+
return typeof t == "function" && Y.set(t, be), be;
|
|
1761
|
+
}
|
|
1762
|
+
function Ve(t, u, c) {
|
|
1763
|
+
return or(t, !1);
|
|
1764
|
+
}
|
|
1765
|
+
function kr(t) {
|
|
1766
|
+
var u = t.prototype;
|
|
1767
|
+
return !!(u && u.isReactComponent);
|
|
1768
|
+
}
|
|
1769
|
+
function We(t, u, c) {
|
|
1770
|
+
if (t == null)
|
|
1771
|
+
return "";
|
|
1772
|
+
if (typeof t == "function")
|
|
1773
|
+
return or(t, kr(t));
|
|
1774
|
+
if (typeof t == "string")
|
|
1775
|
+
return j(t);
|
|
1776
|
+
switch (t) {
|
|
1777
|
+
case re:
|
|
1778
|
+
return j("Suspense");
|
|
1779
|
+
case U:
|
|
1780
|
+
return j("SuspenseList");
|
|
1781
|
+
}
|
|
1782
|
+
if (typeof t == "object")
|
|
1783
|
+
switch (t.$$typeof) {
|
|
1784
|
+
case $:
|
|
1785
|
+
return Ve(t.render);
|
|
1786
|
+
case q:
|
|
1787
|
+
return We(t.type, u, c);
|
|
1788
|
+
case ue: {
|
|
1789
|
+
var y = t, O = y._payload, x = y._init;
|
|
1790
|
+
try {
|
|
1791
|
+
return We(x(O), u, c);
|
|
1792
|
+
} catch {
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return "";
|
|
1797
|
+
}
|
|
1798
|
+
var Re = Object.prototype.hasOwnProperty, ke = {}, ir = le.ReactDebugCurrentFrame;
|
|
1799
|
+
function Ie(t) {
|
|
1800
|
+
if (t) {
|
|
1801
|
+
var u = t._owner, c = We(t.type, t._source, u ? u.type : null);
|
|
1802
|
+
ir.setExtraStackFrame(c);
|
|
1803
|
+
} else
|
|
1804
|
+
ir.setExtraStackFrame(null);
|
|
1805
|
+
}
|
|
1806
|
+
function he(t, u, c, y, O) {
|
|
1807
|
+
{
|
|
1808
|
+
var x = Function.call.bind(Re);
|
|
1809
|
+
for (var R in t)
|
|
1810
|
+
if (x(t, R)) {
|
|
1811
|
+
var _ = void 0;
|
|
1812
|
+
try {
|
|
1813
|
+
if (typeof t[R] != "function") {
|
|
1814
|
+
var Z = Error((y || "React class") + ": " + c + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1815
|
+
throw Z.name = "Invariant Violation", Z;
|
|
1816
|
+
}
|
|
1817
|
+
_ = t[R](u, R, y, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1818
|
+
} catch (V) {
|
|
1819
|
+
_ = V;
|
|
1820
|
+
}
|
|
1821
|
+
_ && !(_ instanceof Error) && (Ie(O), M("%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).", y || "React class", c, R, typeof _), Ie(null)), _ instanceof Error && !(_.message in ke) && (ke[_.message] = !0, Ie(O), M("Failed %s type: %s", c, _.message), Ie(null));
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
var De = Array.isArray;
|
|
1826
|
+
function Ne(t) {
|
|
1827
|
+
return De(t);
|
|
1828
|
+
}
|
|
1829
|
+
function ur(t) {
|
|
1830
|
+
{
|
|
1831
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, c = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
1832
|
+
return c;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
function sr(t) {
|
|
1836
|
+
try {
|
|
1837
|
+
return Ue(t), !1;
|
|
1838
|
+
} catch {
|
|
1839
|
+
return !0;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
function Ue(t) {
|
|
1843
|
+
return "" + t;
|
|
1844
|
+
}
|
|
1845
|
+
function qe(t) {
|
|
1846
|
+
if (sr(t))
|
|
1847
|
+
return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ur(t)), Ue(t);
|
|
1848
|
+
}
|
|
1849
|
+
var Ce = le.ReactCurrentOwner, Ir = {
|
|
1850
|
+
key: !0,
|
|
1851
|
+
ref: !0,
|
|
1852
|
+
__self: !0,
|
|
1853
|
+
__source: !0
|
|
1854
|
+
}, lr, cr, Ae;
|
|
1855
|
+
Ae = {};
|
|
1856
|
+
function Dr(t) {
|
|
1857
|
+
if (Re.call(t, "ref")) {
|
|
1858
|
+
var u = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1859
|
+
if (u && u.isReactWarning)
|
|
1860
|
+
return !1;
|
|
1861
|
+
}
|
|
1862
|
+
return t.ref !== void 0;
|
|
1863
|
+
}
|
|
1864
|
+
function Ar(t) {
|
|
1865
|
+
if (Re.call(t, "key")) {
|
|
1866
|
+
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1867
|
+
if (u && u.isReactWarning)
|
|
1868
|
+
return !1;
|
|
1869
|
+
}
|
|
1870
|
+
return t.key !== void 0;
|
|
1871
|
+
}
|
|
1872
|
+
function Fr(t, u) {
|
|
1873
|
+
if (typeof t.ref == "string" && Ce.current && u && Ce.current.stateNode !== u) {
|
|
1874
|
+
var c = Q(Ce.current.type);
|
|
1875
|
+
Ae[c] || (M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(Ce.current.type), t.ref), Ae[c] = !0);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
function we(t, u) {
|
|
1879
|
+
{
|
|
1880
|
+
var c = function() {
|
|
1881
|
+
lr || (lr = !0, M("%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)", u));
|
|
1882
|
+
};
|
|
1883
|
+
c.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
1884
|
+
get: c,
|
|
1885
|
+
configurable: !0
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
function fr(t, u) {
|
|
1890
|
+
{
|
|
1891
|
+
var c = function() {
|
|
1892
|
+
cr || (cr = !0, M("%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)", u));
|
|
1893
|
+
};
|
|
1894
|
+
c.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
1895
|
+
get: c,
|
|
1896
|
+
configurable: !0
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
var Lr = function(t, u, c, y, O, x, R) {
|
|
1901
|
+
var _ = {
|
|
1902
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1903
|
+
$$typeof: s,
|
|
1904
|
+
// Built-in properties that belong on the element
|
|
1905
|
+
type: t,
|
|
1906
|
+
key: u,
|
|
1907
|
+
ref: c,
|
|
1908
|
+
props: R,
|
|
1909
|
+
// Record the component responsible for creating this element.
|
|
1910
|
+
_owner: x
|
|
1911
|
+
};
|
|
1912
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
1913
|
+
configurable: !1,
|
|
1914
|
+
enumerable: !1,
|
|
1915
|
+
writable: !0,
|
|
1916
|
+
value: !1
|
|
1917
|
+
}), Object.defineProperty(_, "_self", {
|
|
1918
|
+
configurable: !1,
|
|
1919
|
+
enumerable: !1,
|
|
1920
|
+
writable: !1,
|
|
1921
|
+
value: y
|
|
1922
|
+
}), Object.defineProperty(_, "_source", {
|
|
1923
|
+
configurable: !1,
|
|
1924
|
+
enumerable: !1,
|
|
1925
|
+
writable: !1,
|
|
1926
|
+
value: O
|
|
1927
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
1928
|
+
};
|
|
1929
|
+
function $r(t, u, c, y, O) {
|
|
1930
|
+
{
|
|
1931
|
+
var x, R = {}, _ = null, Z = null;
|
|
1932
|
+
c !== void 0 && (qe(c), _ = "" + c), Ar(u) && (qe(u.key), _ = "" + u.key), Dr(u) && (Z = u.ref, Fr(u, O));
|
|
1933
|
+
for (x in u)
|
|
1934
|
+
Re.call(u, x) && !Ir.hasOwnProperty(x) && (R[x] = u[x]);
|
|
1935
|
+
if (t && t.defaultProps) {
|
|
1936
|
+
var V = t.defaultProps;
|
|
1937
|
+
for (x in V)
|
|
1938
|
+
R[x] === void 0 && (R[x] = V[x]);
|
|
1939
|
+
}
|
|
1940
|
+
if (_ || Z) {
|
|
1941
|
+
var N = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
1942
|
+
_ && we(R, N), Z && fr(R, N);
|
|
1943
|
+
}
|
|
1944
|
+
return Lr(t, _, Z, O, y, Ce.current, R);
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
var He = le.ReactCurrentOwner, dr = le.ReactDebugCurrentFrame;
|
|
1948
|
+
function _e(t) {
|
|
1949
|
+
if (t) {
|
|
1950
|
+
var u = t._owner, c = We(t.type, t._source, u ? u.type : null);
|
|
1951
|
+
dr.setExtraStackFrame(c);
|
|
1952
|
+
} else
|
|
1953
|
+
dr.setExtraStackFrame(null);
|
|
1954
|
+
}
|
|
1955
|
+
var Fe;
|
|
1956
|
+
Fe = !1;
|
|
1957
|
+
function Se(t) {
|
|
1958
|
+
return typeof t == "object" && t !== null && t.$$typeof === s;
|
|
1959
|
+
}
|
|
1960
|
+
function Le() {
|
|
1961
|
+
{
|
|
1962
|
+
if (He.current) {
|
|
1963
|
+
var t = Q(He.current.type);
|
|
1964
|
+
if (t)
|
|
1965
|
+
return `
|
|
1966
|
+
|
|
1967
|
+
Check the render method of \`` + t + "`.";
|
|
1968
|
+
}
|
|
1969
|
+
return "";
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
function Mr(t) {
|
|
1973
|
+
return "";
|
|
1974
|
+
}
|
|
1975
|
+
var pr = {};
|
|
1976
|
+
function Vr(t) {
|
|
1977
|
+
{
|
|
1978
|
+
var u = Le();
|
|
1979
|
+
if (!u) {
|
|
1980
|
+
var c = typeof t == "string" ? t : t.displayName || t.name;
|
|
1981
|
+
c && (u = `
|
|
1982
|
+
|
|
1983
|
+
Check the top-level render call using <` + c + ">.");
|
|
1984
|
+
}
|
|
1985
|
+
return u;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
function vr(t, u) {
|
|
1989
|
+
{
|
|
1990
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
1991
|
+
return;
|
|
1992
|
+
t._store.validated = !0;
|
|
1993
|
+
var c = Vr(u);
|
|
1994
|
+
if (pr[c])
|
|
1995
|
+
return;
|
|
1996
|
+
pr[c] = !0;
|
|
1997
|
+
var y = "";
|
|
1998
|
+
t && t._owner && t._owner !== He.current && (y = " It was passed a child from " + Q(t._owner.type) + "."), _e(t), M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, y), _e(null);
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
function hr(t, u) {
|
|
2002
|
+
{
|
|
2003
|
+
if (typeof t != "object")
|
|
2004
|
+
return;
|
|
2005
|
+
if (Ne(t))
|
|
2006
|
+
for (var c = 0; c < t.length; c++) {
|
|
2007
|
+
var y = t[c];
|
|
2008
|
+
Se(y) && vr(y, u);
|
|
2009
|
+
}
|
|
2010
|
+
else if (Se(t))
|
|
2011
|
+
t._store && (t._store.validated = !0);
|
|
2012
|
+
else if (t) {
|
|
2013
|
+
var O = se(t);
|
|
2014
|
+
if (typeof O == "function" && O !== t.entries)
|
|
2015
|
+
for (var x = O.call(t), R; !(R = x.next()).done; )
|
|
2016
|
+
Se(R.value) && vr(R.value, u);
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
function $e(t) {
|
|
2021
|
+
{
|
|
2022
|
+
var u = t.type;
|
|
2023
|
+
if (u == null || typeof u == "string")
|
|
2024
|
+
return;
|
|
2025
|
+
var c;
|
|
2026
|
+
if (typeof u == "function")
|
|
2027
|
+
c = u.propTypes;
|
|
2028
|
+
else if (typeof u == "object" && (u.$$typeof === $ || // Note: Memo only checks outer props here.
|
|
2029
|
+
// Inner props are checked in the reconciler.
|
|
2030
|
+
u.$$typeof === q))
|
|
2031
|
+
c = u.propTypes;
|
|
2032
|
+
else
|
|
2033
|
+
return;
|
|
2034
|
+
if (c) {
|
|
2035
|
+
var y = Q(u);
|
|
2036
|
+
he(c, t.props, "prop", y, t);
|
|
2037
|
+
} else if (u.PropTypes !== void 0 && !Fe) {
|
|
2038
|
+
Fe = !0;
|
|
2039
|
+
var O = Q(u);
|
|
2040
|
+
M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
2041
|
+
}
|
|
2042
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
function Ke(t) {
|
|
2046
|
+
{
|
|
2047
|
+
for (var u = Object.keys(t.props), c = 0; c < u.length; c++) {
|
|
2048
|
+
var y = u[c];
|
|
2049
|
+
if (y !== "children" && y !== "key") {
|
|
2050
|
+
_e(t), M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), _e(null);
|
|
2051
|
+
break;
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
t.ref !== null && (_e(t), M("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
var Ze = {};
|
|
2058
|
+
function yr(t, u, c, y, O, x) {
|
|
2059
|
+
{
|
|
2060
|
+
var R = Pe(t);
|
|
2061
|
+
if (!R) {
|
|
2062
|
+
var _ = "";
|
|
2063
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2064
|
+
var Z = Mr();
|
|
2065
|
+
Z ? _ += Z : _ += Le();
|
|
2066
|
+
var V;
|
|
2067
|
+
t === null ? V = "null" : Ne(t) ? V = "array" : t !== void 0 && t.$$typeof === s ? (V = "<" + (Q(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : V = typeof t, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, _);
|
|
2068
|
+
}
|
|
2069
|
+
var N = $r(t, u, c, O, x);
|
|
2070
|
+
if (N == null)
|
|
2071
|
+
return N;
|
|
2072
|
+
if (R) {
|
|
2073
|
+
var ie = u.children;
|
|
2074
|
+
if (ie !== void 0)
|
|
2075
|
+
if (y)
|
|
2076
|
+
if (Ne(ie)) {
|
|
2077
|
+
for (var Te = 0; Te < ie.length; Te++)
|
|
2078
|
+
hr(ie[Te], t);
|
|
2079
|
+
Object.freeze && Object.freeze(ie);
|
|
2080
|
+
} else
|
|
2081
|
+
M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2082
|
+
else
|
|
2083
|
+
hr(ie, t);
|
|
2084
|
+
}
|
|
2085
|
+
if (Re.call(u, "key")) {
|
|
2086
|
+
var be = Q(t), ee = Object.keys(u).filter(function(Yr) {
|
|
2087
|
+
return Yr !== "key";
|
|
2088
|
+
}), Ge = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2089
|
+
if (!Ze[be + Ge]) {
|
|
2090
|
+
var Hr = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
2091
|
+
M(`A props object containing a "key" prop is being spread into JSX:
|
|
2092
|
+
let props = %s;
|
|
2093
|
+
<%s {...props} />
|
|
2094
|
+
React keys must be passed directly to JSX without using spread:
|
|
2095
|
+
let props = %s;
|
|
2096
|
+
<%s key={someKey} {...props} />`, Ge, be, Hr, be), Ze[be + Ge] = !0;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
return t === w ? Ke(N) : $e(N), N;
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
function Wr(t, u, c) {
|
|
2103
|
+
return yr(t, u, c, !0);
|
|
2104
|
+
}
|
|
2105
|
+
function Nr(t, u, c) {
|
|
2106
|
+
return yr(t, u, c, !1);
|
|
2107
|
+
}
|
|
2108
|
+
var Ur = Nr, mr = Wr;
|
|
2109
|
+
er.Fragment = w, er.jsx = Ur, er.jsxs = mr;
|
|
2110
|
+
}()), er;
|
|
2111
|
+
}
|
|
2112
|
+
process.env.NODE_ENV === "production" ? tt.exports = mn() : tt.exports = gn();
|
|
2113
|
+
var m = tt.exports;
|
|
2114
|
+
const _n = 0.75, Dt = nt.create({
|
|
2115
|
+
listItem: {
|
|
2116
|
+
display: "flex",
|
|
2117
|
+
flexDirection: "row",
|
|
2118
|
+
gap: 8 * _n,
|
|
2119
|
+
paddingRight: 10
|
|
2120
|
+
// otherwise text overflows, seems like a react-pdf / yoga bug
|
|
2121
|
+
},
|
|
2122
|
+
bullet: {
|
|
2123
|
+
fontFamily: ""
|
|
2124
|
+
// TODO: add symbol font
|
|
2125
|
+
}
|
|
2126
|
+
}), bn = "•", En = /* @__PURE__ */ m.jsx(
|
|
2127
|
+
nr,
|
|
2128
|
+
{
|
|
2129
|
+
style: { marginTop: 2 },
|
|
2130
|
+
height: "12",
|
|
2131
|
+
viewBox: "0 -960 960 960",
|
|
2132
|
+
width: "12",
|
|
2133
|
+
fill: "undefined",
|
|
2134
|
+
children: /* @__PURE__ */ m.jsx(ar, { d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z" })
|
|
2135
|
+
}
|
|
2136
|
+
), Rn = /* @__PURE__ */ m.jsx(
|
|
2137
|
+
nr,
|
|
2138
|
+
{
|
|
2139
|
+
style: { marginTop: 2 },
|
|
2140
|
+
height: "12",
|
|
2141
|
+
viewBox: "0 -960 960 960",
|
|
2142
|
+
width: "12",
|
|
2143
|
+
fill: "undefined",
|
|
2144
|
+
children: /* @__PURE__ */ m.jsx(ar, { d: "m424-312 282-282-56-56-226 226-114-114-56 56 170 170ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z" })
|
|
2145
|
+
}
|
|
2146
|
+
), Qr = ({
|
|
2147
|
+
listMarker: i,
|
|
2148
|
+
children: s,
|
|
2149
|
+
style: p
|
|
2150
|
+
}) => /* @__PURE__ */ m.jsxs(ne, { style: [Dt.listItem, p || {}], children: [
|
|
2151
|
+
/* @__PURE__ */ m.jsx(ne, { style: Dt.bullet, children: typeof i == "string" ? /* @__PURE__ */ m.jsx(ye, { children: i }) : i }),
|
|
2152
|
+
s
|
|
2153
|
+
] }), At = 0.75, rr = nt.create({
|
|
2154
|
+
tableContainer: {
|
|
2155
|
+
// width: "100%",
|
|
2156
|
+
},
|
|
2157
|
+
row: {
|
|
2158
|
+
flexDirection: "row",
|
|
2159
|
+
flexWrap: "wrap",
|
|
2160
|
+
// width: "100%",
|
|
2161
|
+
// justifyContent: "space-between",
|
|
2162
|
+
display: "flex"
|
|
2163
|
+
},
|
|
2164
|
+
cell: {
|
|
2165
|
+
paddingHorizontal: 5 * At,
|
|
2166
|
+
paddingTop: 3 * At,
|
|
2167
|
+
// paddingBottom: 1 * PIXELS_PER_POINT, should be 3px but looks odd, better with no padding Bottom
|
|
2168
|
+
borderLeft: "1px solid #ddd",
|
|
2169
|
+
borderTop: "1px solid #ddd",
|
|
2170
|
+
wordWrap: "break-word",
|
|
2171
|
+
whiteSpace: "pre-wrap"
|
|
2172
|
+
},
|
|
2173
|
+
bottomCell: {
|
|
2174
|
+
borderBottom: "1px solid #ddd"
|
|
2175
|
+
},
|
|
2176
|
+
rightCell: {
|
|
2177
|
+
borderRight: "1px solid #ddd"
|
|
2178
|
+
}
|
|
2179
|
+
}), Cn = (i) => /* @__PURE__ */ m.jsx(ne, { style: rr.tableContainer, wrap: !1, children: i.data.rows.map((s, p) => /* @__PURE__ */ m.jsx(
|
|
2180
|
+
ne,
|
|
2181
|
+
{
|
|
2182
|
+
style: [
|
|
2183
|
+
rr.row,
|
|
2184
|
+
p === i.data.rows.length - 1 ? rr.bottomCell : {}
|
|
2185
|
+
],
|
|
2186
|
+
children: s.cells.map((w, L) => /* @__PURE__ */ m.jsx(
|
|
2187
|
+
ne,
|
|
2188
|
+
{
|
|
2189
|
+
style: [
|
|
2190
|
+
rr.cell,
|
|
2191
|
+
L === s.cells.length - 1 ? rr.rightCell : {},
|
|
2192
|
+
i.data.columnWidths[L] ? { width: i.data.columnWidths[L] } : { flex: 1 }
|
|
2193
|
+
],
|
|
2194
|
+
children: i.transformer.transformInlineContent(w)
|
|
2195
|
+
},
|
|
2196
|
+
L
|
|
2197
|
+
))
|
|
2198
|
+
},
|
|
2199
|
+
p
|
|
2200
|
+
)) }), xr = 0.75, Mt = 16, wn = {
|
|
2201
|
+
paragraph: (i, s) => /* @__PURE__ */ m.jsx(ye, { children: s.transformInlineContent(i.content) }),
|
|
2202
|
+
bulletListItem: (i, s) => /* @__PURE__ */ m.jsx(Qr, { listMarker: bn, children: /* @__PURE__ */ m.jsx(ye, { children: s.transformInlineContent(i.content) }) }),
|
|
2203
|
+
numberedListItem: (i, s, p, w) => /* @__PURE__ */ m.jsx(Qr, { listMarker: `${w}.`, children: /* @__PURE__ */ m.jsx(ye, { children: s.transformInlineContent(i.content) }) }),
|
|
2204
|
+
// would be nice to have pdf checkboxes:
|
|
2205
|
+
// https://github.com/diegomura/react-pdf/issues/2103
|
|
2206
|
+
checkListItem: (i, s) => /* @__PURE__ */ m.jsx(
|
|
2207
|
+
Qr,
|
|
2208
|
+
{
|
|
2209
|
+
listMarker: i.props.checked ? Rn : En,
|
|
2210
|
+
children: /* @__PURE__ */ m.jsx(ye, { children: s.transformInlineContent(i.content) })
|
|
2211
|
+
}
|
|
2212
|
+
),
|
|
2213
|
+
heading: (i, s) => {
|
|
2214
|
+
const p = i.props.level === 1 ? 2 : i.props.level === 2 ? 1.5 : 1.17;
|
|
2215
|
+
return /* @__PURE__ */ m.jsx(
|
|
2216
|
+
ye,
|
|
2217
|
+
{
|
|
2218
|
+
style: {
|
|
2219
|
+
fontSize: p * Mt * xr,
|
|
2220
|
+
fontWeight: 700
|
|
2221
|
+
},
|
|
2222
|
+
children: s.transformInlineContent(i.content)
|
|
2223
|
+
}
|
|
2224
|
+
);
|
|
2225
|
+
},
|
|
2226
|
+
codeBlock: (i) => /* @__PURE__ */ m.jsx(ye, { children: i.type + " not implemented" }),
|
|
2227
|
+
audio: (i, s) => /* @__PURE__ */ m.jsxs(ne, { wrap: !1, children: [
|
|
2228
|
+
et(
|
|
2229
|
+
i.props,
|
|
2230
|
+
"Open audio file",
|
|
2231
|
+
/* @__PURE__ */ m.jsx(nr, { height: 14, width: 14, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx(ar, { d: "M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" }) })
|
|
2232
|
+
),
|
|
2233
|
+
Or(i.props)
|
|
2234
|
+
] }),
|
|
2235
|
+
video: (i, s) => /* @__PURE__ */ m.jsxs(ne, { wrap: !1, children: [
|
|
2236
|
+
et(
|
|
2237
|
+
i.props,
|
|
2238
|
+
"Open video file",
|
|
2239
|
+
/* @__PURE__ */ m.jsx(nr, { height: 14, width: 14, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx(ar, { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" }) })
|
|
2240
|
+
),
|
|
2241
|
+
Or(i.props)
|
|
2242
|
+
] }),
|
|
2243
|
+
file: (i, s) => /* @__PURE__ */ m.jsxs(ne, { wrap: !1, children: [
|
|
2244
|
+
et(
|
|
2245
|
+
i.props,
|
|
2246
|
+
"Open file",
|
|
2247
|
+
/* @__PURE__ */ m.jsx(nr, { height: 16, width: 16, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ m.jsx(ar, { d: "M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z" }) })
|
|
2248
|
+
),
|
|
2249
|
+
Or(i.props)
|
|
2250
|
+
] }),
|
|
2251
|
+
image: async (i, s) => /* @__PURE__ */ m.jsxs(ne, { wrap: !1, children: [
|
|
2252
|
+
/* @__PURE__ */ m.jsx(
|
|
2253
|
+
cn,
|
|
2254
|
+
{
|
|
2255
|
+
src: await s.resolveFile(i.props.url),
|
|
2256
|
+
style: {
|
|
2257
|
+
width: i.props.previewWidth * xr
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
),
|
|
2261
|
+
Or(i.props)
|
|
2262
|
+
] }),
|
|
2263
|
+
table: (i, s) => /* @__PURE__ */ m.jsx(Cn, { data: i.content, transformer: s })
|
|
2264
|
+
};
|
|
2265
|
+
function et(i, s, p, w) {
|
|
2266
|
+
return /* @__PURE__ */ m.jsx(Lt, { src: i.url, children: /* @__PURE__ */ m.jsxs(
|
|
2267
|
+
ne,
|
|
2268
|
+
{
|
|
2269
|
+
style: {
|
|
2270
|
+
display: "flex",
|
|
2271
|
+
gap: 8 * 0.75,
|
|
2272
|
+
flexDirection: "row"
|
|
2273
|
+
},
|
|
2274
|
+
children: [
|
|
2275
|
+
p,
|
|
2276
|
+
/* @__PURE__ */ m.jsx(ye, { children: i.name || s })
|
|
2277
|
+
]
|
|
2278
|
+
}
|
|
2279
|
+
) });
|
|
2280
|
+
}
|
|
2281
|
+
function Or(i, s) {
|
|
2282
|
+
if (i.caption)
|
|
2283
|
+
return /* @__PURE__ */ m.jsx(
|
|
2284
|
+
ye,
|
|
2285
|
+
{
|
|
2286
|
+
style: {
|
|
2287
|
+
width: i.previewWidth ? i.previewWidth * xr : void 0,
|
|
2288
|
+
fontSize: Mt * 0.8 * xr
|
|
2289
|
+
},
|
|
2290
|
+
children: i.caption
|
|
2291
|
+
}
|
|
2292
|
+
);
|
|
2293
|
+
}
|
|
2294
|
+
const Sn = {
|
|
2295
|
+
link: (i, s) => /* @__PURE__ */ m.jsx(Lt, { href: i.href, children: i.content.map((p) => s.transformStyledText(p)) }),
|
|
2296
|
+
text: (i, s) => s.transformStyledText(i)
|
|
2297
|
+
}, Tn = {
|
|
2298
|
+
bold: (i) => i ? {
|
|
2299
|
+
fontWeight: "bold"
|
|
2300
|
+
} : {},
|
|
2301
|
+
italic: (i) => i ? {
|
|
2302
|
+
fontStyle: "italic"
|
|
2303
|
+
} : {},
|
|
2304
|
+
underline: (i) => i ? {
|
|
2305
|
+
textDecoration: "underline"
|
|
2306
|
+
// TODO: could conflict with strike
|
|
2307
|
+
} : {},
|
|
2308
|
+
strike: (i) => i ? {
|
|
2309
|
+
textDecoration: "line-through"
|
|
2310
|
+
} : {},
|
|
2311
|
+
backgroundColor: (i, s) => i ? {
|
|
2312
|
+
backgroundColor: s.options.colors[i].background
|
|
2313
|
+
} : {},
|
|
2314
|
+
textColor: (i, s) => i ? {
|
|
2315
|
+
color: s.options.colors[i].text
|
|
2316
|
+
} : {},
|
|
2317
|
+
code: (i) => i ? {
|
|
2318
|
+
fontFamily: "Courier"
|
|
2319
|
+
} : {}
|
|
2320
|
+
}, Dn = {
|
|
2321
|
+
blockMapping: wn,
|
|
2322
|
+
inlineContentMapping: Sn,
|
|
2323
|
+
styleMapping: Tn
|
|
2324
|
+
};
|
|
2325
|
+
async function On(i) {
|
|
2326
|
+
return "https://corsproxy.api.blocknotejs.org/corsproxy/?url=" + encodeURIComponent(i);
|
|
2327
|
+
}
|
|
2328
|
+
var Vt = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
2329
|
+
async function Pn(i, s) {
|
|
2330
|
+
if (Vt.NODE_ENV === "test") {
|
|
2331
|
+
const w = (await xn(i)).toString("base64");
|
|
2332
|
+
return `data:${s};base64,${w}`;
|
|
2333
|
+
} else
|
|
2334
|
+
return i.default;
|
|
2335
|
+
}
|
|
2336
|
+
async function Pr(i) {
|
|
2337
|
+
return Pn(i, "font/ttf");
|
|
2338
|
+
}
|
|
2339
|
+
async function xn(i) {
|
|
2340
|
+
if (Vt.NODE_ENV === "test") {
|
|
2341
|
+
const s = require("fs");
|
|
2342
|
+
let p = i.default;
|
|
2343
|
+
return p.startsWith("/@fs/") && (p = p.substring(4)), s.readFileSync(p);
|
|
2344
|
+
} else {
|
|
2345
|
+
const s = i.default;
|
|
2346
|
+
return await (await fetch(s)).arrayBuffer();
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
const Ft = 16, rt = 0.75;
|
|
2350
|
+
class An extends pn {
|
|
2351
|
+
constructor(p, w, L) {
|
|
2352
|
+
const z = {
|
|
2353
|
+
...{
|
|
2354
|
+
emojiSource: {
|
|
2355
|
+
format: "png",
|
|
2356
|
+
url: "https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/"
|
|
2357
|
+
},
|
|
2358
|
+
resolveFileUrl: On,
|
|
2359
|
+
colors: vn
|
|
2360
|
+
},
|
|
2361
|
+
...L
|
|
2362
|
+
};
|
|
2363
|
+
super(p, w, z);
|
|
2364
|
+
Sr(this, "fontsRegistered", !1);
|
|
2365
|
+
Sr(this, "styles", nt.create({
|
|
2366
|
+
page: {
|
|
2367
|
+
paddingTop: 35,
|
|
2368
|
+
paddingBottom: 65,
|
|
2369
|
+
paddingHorizontal: 35,
|
|
2370
|
+
fontFamily: "Inter",
|
|
2371
|
+
fontSize: Ft * rt,
|
|
2372
|
+
// pixels
|
|
2373
|
+
lineHeight: 1.5
|
|
2374
|
+
},
|
|
2375
|
+
section: {},
|
|
2376
|
+
block: {},
|
|
2377
|
+
blockChildren: {},
|
|
2378
|
+
header: {},
|
|
2379
|
+
footer: {
|
|
2380
|
+
// @ts-ignore
|
|
2381
|
+
position: "absolute"
|
|
2382
|
+
}
|
|
2383
|
+
}));
|
|
2384
|
+
Sr(this, "options");
|
|
2385
|
+
this.schema = p, this.options = z;
|
|
2386
|
+
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Mostly for internal use, you probably want to use `toBlob` or `toReactPDFDocument` instead.
|
|
2389
|
+
*/
|
|
2390
|
+
transformStyledText(p) {
|
|
2391
|
+
const w = this.mapStyles(p.styles), L = Object.assign({}, ...w);
|
|
2392
|
+
return /* @__PURE__ */ m.jsx(ye, { style: L, children: p.text });
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Mostly for internal use, you probably want to use `toBlob` or `toReactPDFDocument` instead.
|
|
2396
|
+
*/
|
|
2397
|
+
async transformBlocks(p, w = 0) {
|
|
2398
|
+
const L = [];
|
|
2399
|
+
let X = 0;
|
|
2400
|
+
for (const z of p) {
|
|
2401
|
+
z.type === "numberedListItem" ? X++ : X = 0;
|
|
2402
|
+
const J = await this.transformBlocks(z.children, w + 1), $ = await this.mapBlock(
|
|
2403
|
+
z,
|
|
2404
|
+
w,
|
|
2405
|
+
X
|
|
2406
|
+
), re = this.blocknoteDefaultPropsToReactPDFStyle(z.props);
|
|
2407
|
+
L.push(
|
|
2408
|
+
/* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
2409
|
+
/* @__PURE__ */ m.jsx(
|
|
2410
|
+
ne,
|
|
2411
|
+
{
|
|
2412
|
+
style: {
|
|
2413
|
+
paddingVertical: 3 * rt,
|
|
2414
|
+
...this.styles.block,
|
|
2415
|
+
...re
|
|
2416
|
+
},
|
|
2417
|
+
children: $
|
|
2418
|
+
}
|
|
2419
|
+
),
|
|
2420
|
+
J.length > 0 && /* @__PURE__ */ m.jsx(
|
|
2421
|
+
ne,
|
|
2422
|
+
{
|
|
2423
|
+
style: {
|
|
2424
|
+
marginLeft: Ft * 1.5 * rt,
|
|
2425
|
+
...this.styles.blockChildren
|
|
2426
|
+
},
|
|
2427
|
+
children: J
|
|
2428
|
+
}
|
|
2429
|
+
)
|
|
2430
|
+
] })
|
|
2431
|
+
);
|
|
2432
|
+
}
|
|
2433
|
+
return L;
|
|
2434
|
+
}
|
|
2435
|
+
async registerFonts() {
|
|
2436
|
+
if (this.fontsRegistered)
|
|
2437
|
+
return;
|
|
2438
|
+
this.options.emojiSource && Je.registerEmojiSource(this.options.emojiSource);
|
|
2439
|
+
let p = await Pr(
|
|
2440
|
+
await import("./Inter_18pt-Regular-byxnNS-8.js")
|
|
2441
|
+
);
|
|
2442
|
+
Je.register({
|
|
2443
|
+
family: "Inter",
|
|
2444
|
+
src: p
|
|
2445
|
+
}), p = await Pr(
|
|
2446
|
+
await import("./Inter_18pt-Italic-BVnfHlUD.js")
|
|
2447
|
+
), Je.register({
|
|
2448
|
+
family: "Inter",
|
|
2449
|
+
fontStyle: "italic",
|
|
2450
|
+
src: p
|
|
2451
|
+
}), p = await Pr(
|
|
2452
|
+
await import("./Inter_18pt-Bold-BOnnSImi.js")
|
|
2453
|
+
), Je.register({
|
|
2454
|
+
family: "Inter",
|
|
2455
|
+
src: p,
|
|
2456
|
+
fontWeight: "bold"
|
|
2457
|
+
}), p = await Pr(
|
|
2458
|
+
await import("./Inter_18pt-BoldItalic-DPKIpVzB.js")
|
|
2459
|
+
), Je.register({
|
|
2460
|
+
family: "Inter",
|
|
2461
|
+
fontStyle: "italic",
|
|
2462
|
+
src: p,
|
|
2463
|
+
fontWeight: "bold"
|
|
2464
|
+
}), this.fontsRegistered = !0;
|
|
2465
|
+
}
|
|
2466
|
+
/**
|
|
2467
|
+
* Convert a document (array of Blocks) to a react-pdf Document.
|
|
2468
|
+
*/
|
|
2469
|
+
async toReactPDFDocument(p, w = {}) {
|
|
2470
|
+
return await this.registerFonts(), /* @__PURE__ */ m.jsx(fn, { children: /* @__PURE__ */ m.jsxs(dn, { dpi: 100, size: "A4", style: this.styles.page, children: [
|
|
2471
|
+
w.header && /* @__PURE__ */ m.jsx(ne, { fixed: !0, style: this.styles.header, children: w.header }),
|
|
2472
|
+
/* @__PURE__ */ m.jsx(ne, { style: this.styles.section, children: await this.transformBlocks(p) }),
|
|
2473
|
+
w.footer && /* @__PURE__ */ m.jsx(
|
|
2474
|
+
ne,
|
|
2475
|
+
{
|
|
2476
|
+
fixed: !0,
|
|
2477
|
+
style: [
|
|
2478
|
+
{
|
|
2479
|
+
left: this.styles.page.paddingHorizontal || 0,
|
|
2480
|
+
bottom: (this.styles.page.paddingBottom || 0) / 2,
|
|
2481
|
+
right: this.styles.page.paddingHorizontal || 0
|
|
2482
|
+
},
|
|
2483
|
+
this.styles.footer
|
|
2484
|
+
],
|
|
2485
|
+
children: w.footer
|
|
2486
|
+
}
|
|
2487
|
+
)
|
|
2488
|
+
] }) });
|
|
2489
|
+
}
|
|
2490
|
+
blocknoteDefaultPropsToReactPDFStyle(p) {
|
|
2491
|
+
return {
|
|
2492
|
+
textAlign: p.textAlignment,
|
|
2493
|
+
backgroundColor: p.backgroundColor === "default" || !p.backgroundColor ? void 0 : this.options.colors[p.backgroundColor].background,
|
|
2494
|
+
color: p.textColor === "default" || !p.textColor ? void 0 : this.options.colors[p.textColor].text,
|
|
2495
|
+
alignItems: p.textAlignment === "right" ? "flex-end" : p.textAlignment === "center" ? "center" : void 0
|
|
2496
|
+
};
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
export {
|
|
2500
|
+
An as PDFExporter,
|
|
2501
|
+
Dn as pdfDefaultSchemaMappings
|
|
2502
|
+
};
|
|
2503
|
+
//# sourceMappingURL=blocknote-xl-pdf-exporter.js.map
|