@blocknote/xl-pdf-exporter 0.22.0 → 0.23.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/dist/GeistMono-Regular-D4rKXxwr.js +5 -0
- package/dist/GeistMono-Regular-D4rKXxwr.js.map +1 -0
- package/dist/blocknote-xl-pdf-exporter.js +228 -2293
- package/dist/blocknote-xl-pdf-exporter.js.map +1 -1
- package/dist/blocknote-xl-pdf-exporter.umd.cjs +2 -68
- package/dist/blocknote-xl-pdf-exporter.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -4
- package/src/pdf/__snapshots__/example.jsx +910 -567
- package/src/pdf/__snapshots__/exampleWithHeaderAndFooter.jsx +934 -576
- package/src/pdf/defaultSchema/blocks.tsx +35 -2
- package/src/pdf/defaultSchema/styles.tsx +1 -1
- package/src/pdf/pdfExporter.test.tsx +12 -7
- package/src/pdf/pdfExporter.tsx +14 -4
- package/types/src/pdf/defaultSchema/blocks.d.ts +2 -2
- package/types/src/pdf/defaultSchema/index.d.ts +17 -0
- package/types/src/pdf/pdfExporter.d.ts +0 -1
|
@@ -1,2121 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
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({
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var R = (t, r, e) => r in t ? D(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
+
var C = (t, r, e) => R(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jsx as n, jsxs as c, Fragment as v } from "react/jsx-runtime";
|
|
5
|
+
import { StyleSheet as I, Svg as m, Path as y, View as l, Text as a, Image as k, Link as T, Font as h, Document as F, Page as B } from "@react-pdf/renderer";
|
|
6
|
+
import { Exporter as Z, COLORS_DEFAULT as O } from "@blocknote/core";
|
|
7
|
+
const N = 0.75, M = I.create({
|
|
2115
8
|
listItem: {
|
|
2116
9
|
display: "flex",
|
|
2117
10
|
flexDirection: "row",
|
|
2118
|
-
gap: 8 *
|
|
11
|
+
gap: 8 * N,
|
|
2119
12
|
paddingRight: 10
|
|
2120
13
|
// otherwise text overflows, seems like a react-pdf / yoga bug
|
|
2121
14
|
},
|
|
@@ -2123,34 +16,34 @@ const _n = 0.75, Dt = nt.create({
|
|
|
2123
16
|
fontFamily: ""
|
|
2124
17
|
// TODO: add symbol font
|
|
2125
18
|
}
|
|
2126
|
-
}),
|
|
2127
|
-
|
|
19
|
+
}), W = "•", j = /* @__PURE__ */ n(
|
|
20
|
+
m,
|
|
2128
21
|
{
|
|
2129
22
|
style: { marginTop: 2 },
|
|
2130
23
|
height: "12",
|
|
2131
24
|
viewBox: "0 -960 960 960",
|
|
2132
25
|
width: "12",
|
|
2133
26
|
fill: "undefined",
|
|
2134
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ n(y, { 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
28
|
}
|
|
2136
|
-
),
|
|
2137
|
-
|
|
29
|
+
), A = /* @__PURE__ */ n(
|
|
30
|
+
m,
|
|
2138
31
|
{
|
|
2139
32
|
style: { marginTop: 2 },
|
|
2140
33
|
height: "12",
|
|
2141
34
|
viewBox: "0 -960 960 960",
|
|
2142
35
|
width: "12",
|
|
2143
36
|
fill: "undefined",
|
|
2144
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ n(y, { 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
38
|
}
|
|
2146
|
-
),
|
|
2147
|
-
listMarker:
|
|
2148
|
-
children:
|
|
2149
|
-
style:
|
|
2150
|
-
}) => /* @__PURE__ */
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
-
|
|
2153
|
-
] }),
|
|
39
|
+
), x = ({
|
|
40
|
+
listMarker: t,
|
|
41
|
+
children: r,
|
|
42
|
+
style: e
|
|
43
|
+
}) => /* @__PURE__ */ c(l, { style: [M.listItem, e || {}], children: [
|
|
44
|
+
/* @__PURE__ */ n(l, { style: M.bullet, children: typeof t == "string" ? /* @__PURE__ */ n(a, { children: t }) : t }),
|
|
45
|
+
r
|
|
46
|
+
] }), V = 0.75, p = I.create({
|
|
2154
47
|
tableContainer: {
|
|
2155
48
|
// width: "100%",
|
|
2156
49
|
},
|
|
@@ -2162,8 +55,8 @@ const _n = 0.75, Dt = nt.create({
|
|
|
2162
55
|
display: "flex"
|
|
2163
56
|
},
|
|
2164
57
|
cell: {
|
|
2165
|
-
paddingHorizontal: 5 *
|
|
2166
|
-
paddingTop: 3 *
|
|
58
|
+
paddingHorizontal: 5 * V,
|
|
59
|
+
paddingTop: 3 * V,
|
|
2167
60
|
// paddingBottom: 1 * PIXELS_PER_POINT, should be 3px but looks odd, better with no padding Bottom
|
|
2168
61
|
borderLeft: "1px solid #ddd",
|
|
2169
62
|
borderTop: "1px solid #ddd",
|
|
@@ -2176,95 +69,128 @@ const _n = 0.75, Dt = nt.create({
|
|
|
2176
69
|
rightCell: {
|
|
2177
70
|
borderRight: "1px solid #ddd"
|
|
2178
71
|
}
|
|
2179
|
-
}),
|
|
2180
|
-
|
|
72
|
+
}), z = (t) => /* @__PURE__ */ n(l, { style: p.tableContainer, wrap: !1, children: t.data.rows.map((r, e) => /* @__PURE__ */ n(
|
|
73
|
+
l,
|
|
2181
74
|
{
|
|
2182
75
|
style: [
|
|
2183
|
-
|
|
2184
|
-
|
|
76
|
+
p.row,
|
|
77
|
+
e === t.data.rows.length - 1 ? p.bottomCell : {}
|
|
2185
78
|
],
|
|
2186
|
-
children:
|
|
2187
|
-
|
|
79
|
+
children: r.cells.map((o, i) => /* @__PURE__ */ n(
|
|
80
|
+
l,
|
|
2188
81
|
{
|
|
2189
82
|
style: [
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
83
|
+
p.cell,
|
|
84
|
+
i === r.cells.length - 1 ? p.rightCell : {},
|
|
85
|
+
t.data.columnWidths[i] ? { width: t.data.columnWidths[i] } : { flex: 1 }
|
|
2193
86
|
],
|
|
2194
|
-
children:
|
|
87
|
+
children: t.transformer.transformInlineContent(o)
|
|
2195
88
|
},
|
|
2196
|
-
|
|
89
|
+
i
|
|
2197
90
|
))
|
|
2198
91
|
},
|
|
2199
|
-
|
|
2200
|
-
)) }),
|
|
2201
|
-
paragraph: (
|
|
2202
|
-
bulletListItem: (
|
|
2203
|
-
numberedListItem: (
|
|
92
|
+
e
|
|
93
|
+
)) }), d = 0.75, H = 16, U = {
|
|
94
|
+
paragraph: (t, r) => /* @__PURE__ */ n(a, { children: r.transformInlineContent(t.content) }),
|
|
95
|
+
bulletListItem: (t, r) => /* @__PURE__ */ n(x, { listMarker: W, children: /* @__PURE__ */ n(a, { children: r.transformInlineContent(t.content) }) }),
|
|
96
|
+
numberedListItem: (t, r, e, o) => /* @__PURE__ */ n(x, { listMarker: `${o}.`, children: /* @__PURE__ */ n(a, { children: r.transformInlineContent(t.content) }) }),
|
|
2204
97
|
// would be nice to have pdf checkboxes:
|
|
2205
98
|
// https://github.com/diegomura/react-pdf/issues/2103
|
|
2206
|
-
checkListItem: (
|
|
2207
|
-
|
|
99
|
+
checkListItem: (t, r) => /* @__PURE__ */ n(
|
|
100
|
+
x,
|
|
2208
101
|
{
|
|
2209
|
-
listMarker:
|
|
2210
|
-
children: /* @__PURE__ */
|
|
102
|
+
listMarker: t.props.checked ? A : j,
|
|
103
|
+
children: /* @__PURE__ */ n(a, { children: r.transformInlineContent(t.content) })
|
|
2211
104
|
}
|
|
2212
105
|
),
|
|
2213
|
-
heading: (
|
|
2214
|
-
const
|
|
2215
|
-
return /* @__PURE__ */
|
|
2216
|
-
|
|
106
|
+
heading: (t, r) => {
|
|
107
|
+
const e = t.props.level === 1 ? 2 : t.props.level === 2 ? 1.5 : 1.17;
|
|
108
|
+
return /* @__PURE__ */ n(
|
|
109
|
+
a,
|
|
2217
110
|
{
|
|
2218
111
|
style: {
|
|
2219
|
-
fontSize:
|
|
112
|
+
fontSize: e * H * d,
|
|
2220
113
|
fontWeight: 700
|
|
2221
114
|
},
|
|
2222
|
-
children:
|
|
115
|
+
children: r.transformInlineContent(t.content)
|
|
2223
116
|
}
|
|
2224
117
|
);
|
|
2225
118
|
},
|
|
2226
|
-
codeBlock: (
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
119
|
+
codeBlock: (t) => {
|
|
120
|
+
var o;
|
|
121
|
+
const e = (((o = t.content[0]) == null ? void 0 : o.text) || "").split(`
|
|
122
|
+
`).map((i, f) => {
|
|
123
|
+
var u;
|
|
124
|
+
const s = ((u = i.match(/^\s*/)) == null ? void 0 : u[0].length) || 0;
|
|
125
|
+
return /* @__PURE__ */ n(
|
|
126
|
+
a,
|
|
127
|
+
{
|
|
128
|
+
style: {
|
|
129
|
+
marginLeft: s * 9.5 * d
|
|
130
|
+
},
|
|
131
|
+
children: i.trimStart() || /* @__PURE__ */ n(v, { children: " " })
|
|
132
|
+
},
|
|
133
|
+
`line_${f}`
|
|
134
|
+
);
|
|
135
|
+
});
|
|
136
|
+
return /* @__PURE__ */ n(
|
|
137
|
+
l,
|
|
138
|
+
{
|
|
139
|
+
wrap: !1,
|
|
140
|
+
style: {
|
|
141
|
+
padding: 24 * d,
|
|
142
|
+
backgroundColor: "#161616",
|
|
143
|
+
color: "#ffffff",
|
|
144
|
+
lineHeight: 1.25,
|
|
145
|
+
fontSize: H * d,
|
|
146
|
+
fontFamily: "GeistMono"
|
|
147
|
+
},
|
|
148
|
+
children: e
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
},
|
|
152
|
+
pageBreak: () => /* @__PURE__ */ n(l, { break: !0 }),
|
|
153
|
+
audio: (t, r) => /* @__PURE__ */ c(l, { wrap: !1, children: [
|
|
154
|
+
b(
|
|
155
|
+
t.props,
|
|
2230
156
|
"Open audio file",
|
|
2231
|
-
/* @__PURE__ */ m
|
|
157
|
+
/* @__PURE__ */ n(m, { height: 14, width: 14, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ n(y, { 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
158
|
),
|
|
2233
|
-
|
|
159
|
+
w(t.props)
|
|
2234
160
|
] }),
|
|
2235
|
-
video: (
|
|
2236
|
-
|
|
2237
|
-
|
|
161
|
+
video: (t, r) => /* @__PURE__ */ c(l, { wrap: !1, children: [
|
|
162
|
+
b(
|
|
163
|
+
t.props,
|
|
2238
164
|
"Open video file",
|
|
2239
|
-
/* @__PURE__ */ m
|
|
165
|
+
/* @__PURE__ */ n(m, { height: 14, width: 14, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ n(y, { 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
166
|
),
|
|
2241
|
-
|
|
167
|
+
w(t.props)
|
|
2242
168
|
] }),
|
|
2243
|
-
file: (
|
|
2244
|
-
|
|
2245
|
-
|
|
169
|
+
file: (t, r) => /* @__PURE__ */ c(l, { wrap: !1, children: [
|
|
170
|
+
b(
|
|
171
|
+
t.props,
|
|
2246
172
|
"Open file",
|
|
2247
|
-
/* @__PURE__ */ m
|
|
173
|
+
/* @__PURE__ */ n(m, { height: 16, width: 16, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ n(y, { 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
174
|
),
|
|
2249
|
-
|
|
175
|
+
w(t.props)
|
|
2250
176
|
] }),
|
|
2251
|
-
image: async (
|
|
2252
|
-
/* @__PURE__ */
|
|
2253
|
-
|
|
177
|
+
image: async (t, r) => /* @__PURE__ */ c(l, { wrap: !1, children: [
|
|
178
|
+
/* @__PURE__ */ n(
|
|
179
|
+
k,
|
|
2254
180
|
{
|
|
2255
|
-
src: await
|
|
181
|
+
src: await r.resolveFile(t.props.url),
|
|
2256
182
|
style: {
|
|
2257
|
-
width:
|
|
183
|
+
width: t.props.previewWidth * d
|
|
2258
184
|
}
|
|
2259
185
|
}
|
|
2260
186
|
),
|
|
2261
|
-
|
|
187
|
+
w(t.props)
|
|
2262
188
|
] }),
|
|
2263
|
-
table: (
|
|
189
|
+
table: (t, r) => /* @__PURE__ */ n(z, { data: t.content, transformer: r })
|
|
2264
190
|
};
|
|
2265
|
-
function
|
|
2266
|
-
return /* @__PURE__ */
|
|
2267
|
-
|
|
191
|
+
function b(t, r, e, o) {
|
|
192
|
+
return /* @__PURE__ */ n(T, { src: t.url, children: /* @__PURE__ */ c(
|
|
193
|
+
l,
|
|
2268
194
|
{
|
|
2269
195
|
style: {
|
|
2270
196
|
display: "flex",
|
|
@@ -2272,107 +198,106 @@ function et(i, s, p, w) {
|
|
|
2272
198
|
flexDirection: "row"
|
|
2273
199
|
},
|
|
2274
200
|
children: [
|
|
2275
|
-
|
|
2276
|
-
/* @__PURE__ */
|
|
201
|
+
e,
|
|
202
|
+
/* @__PURE__ */ n(a, { children: t.name || r })
|
|
2277
203
|
]
|
|
2278
204
|
}
|
|
2279
205
|
) });
|
|
2280
206
|
}
|
|
2281
|
-
function
|
|
2282
|
-
if (
|
|
2283
|
-
return /* @__PURE__ */
|
|
2284
|
-
|
|
207
|
+
function w(t, r) {
|
|
208
|
+
if (t.caption)
|
|
209
|
+
return /* @__PURE__ */ n(
|
|
210
|
+
a,
|
|
2285
211
|
{
|
|
2286
212
|
style: {
|
|
2287
|
-
width:
|
|
2288
|
-
fontSize:
|
|
213
|
+
width: t.previewWidth ? t.previewWidth * d : void 0,
|
|
214
|
+
fontSize: H * 0.8 * d
|
|
2289
215
|
},
|
|
2290
|
-
children:
|
|
216
|
+
children: t.caption
|
|
2291
217
|
}
|
|
2292
218
|
);
|
|
2293
219
|
}
|
|
2294
|
-
const
|
|
2295
|
-
link: (
|
|
2296
|
-
text: (
|
|
2297
|
-
},
|
|
2298
|
-
bold: (
|
|
220
|
+
const $ = {
|
|
221
|
+
link: (t, r) => /* @__PURE__ */ n(T, { href: t.href, children: t.content.map((e) => r.transformStyledText(e)) }),
|
|
222
|
+
text: (t, r) => r.transformStyledText(t)
|
|
223
|
+
}, q = {
|
|
224
|
+
bold: (t) => t ? {
|
|
2299
225
|
fontWeight: "bold"
|
|
2300
226
|
} : {},
|
|
2301
|
-
italic: (
|
|
227
|
+
italic: (t) => t ? {
|
|
2302
228
|
fontStyle: "italic"
|
|
2303
229
|
} : {},
|
|
2304
|
-
underline: (
|
|
230
|
+
underline: (t) => t ? {
|
|
2305
231
|
textDecoration: "underline"
|
|
2306
232
|
// TODO: could conflict with strike
|
|
2307
233
|
} : {},
|
|
2308
|
-
strike: (
|
|
234
|
+
strike: (t) => t ? {
|
|
2309
235
|
textDecoration: "line-through"
|
|
2310
236
|
} : {},
|
|
2311
|
-
backgroundColor: (
|
|
2312
|
-
backgroundColor:
|
|
237
|
+
backgroundColor: (t, r) => t ? {
|
|
238
|
+
backgroundColor: r.options.colors[t].background
|
|
2313
239
|
} : {},
|
|
2314
|
-
textColor: (
|
|
2315
|
-
color:
|
|
240
|
+
textColor: (t, r) => t ? {
|
|
241
|
+
color: r.options.colors[t].text
|
|
2316
242
|
} : {},
|
|
2317
|
-
code: (
|
|
2318
|
-
fontFamily: "
|
|
243
|
+
code: (t) => t ? {
|
|
244
|
+
fontFamily: "GeistMono"
|
|
2319
245
|
} : {}
|
|
2320
|
-
},
|
|
2321
|
-
blockMapping:
|
|
2322
|
-
inlineContentMapping:
|
|
2323
|
-
styleMapping:
|
|
246
|
+
}, et = {
|
|
247
|
+
blockMapping: U,
|
|
248
|
+
inlineContentMapping: $,
|
|
249
|
+
styleMapping: q
|
|
2324
250
|
};
|
|
2325
|
-
async function
|
|
2326
|
-
return "https://corsproxy.api.blocknotejs.org/corsproxy/?url=" + encodeURIComponent(
|
|
251
|
+
async function K(t) {
|
|
252
|
+
return "https://corsproxy.api.blocknotejs.org/corsproxy/?url=" + encodeURIComponent(t);
|
|
2327
253
|
}
|
|
2328
|
-
var
|
|
2329
|
-
async function
|
|
2330
|
-
if (
|
|
2331
|
-
const
|
|
2332
|
-
return `data:${
|
|
254
|
+
var L = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
255
|
+
async function X(t, r) {
|
|
256
|
+
if (L.NODE_ENV === "test") {
|
|
257
|
+
const o = (await G(t)).toString("base64");
|
|
258
|
+
return `data:${r};base64,${o}`;
|
|
2333
259
|
} else
|
|
2334
|
-
return
|
|
260
|
+
return t.default;
|
|
2335
261
|
}
|
|
2336
|
-
async function
|
|
2337
|
-
return
|
|
262
|
+
async function g(t) {
|
|
263
|
+
return X(t, "font/ttf");
|
|
2338
264
|
}
|
|
2339
|
-
async function
|
|
2340
|
-
if (
|
|
2341
|
-
const
|
|
2342
|
-
let
|
|
2343
|
-
return
|
|
265
|
+
async function G(t) {
|
|
266
|
+
if (L.NODE_ENV === "test") {
|
|
267
|
+
const r = require("fs");
|
|
268
|
+
let e = t.default;
|
|
269
|
+
return e.startsWith("/@fs/") && (e = e.substring(4)), r.readFileSync(e);
|
|
2344
270
|
} else {
|
|
2345
|
-
const
|
|
2346
|
-
return await (await fetch(
|
|
271
|
+
const r = t.default;
|
|
272
|
+
return await (await fetch(r)).arrayBuffer();
|
|
2347
273
|
}
|
|
2348
274
|
}
|
|
2349
|
-
const
|
|
2350
|
-
class
|
|
2351
|
-
constructor(
|
|
2352
|
-
const
|
|
275
|
+
const _ = 16, S = 0.75;
|
|
276
|
+
class rt extends Z {
|
|
277
|
+
constructor(e, o, i) {
|
|
278
|
+
const s = {
|
|
2353
279
|
...{
|
|
2354
280
|
emojiSource: {
|
|
2355
281
|
format: "png",
|
|
2356
282
|
url: "https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/"
|
|
2357
283
|
},
|
|
2358
|
-
resolveFileUrl:
|
|
2359
|
-
colors:
|
|
284
|
+
resolveFileUrl: K,
|
|
285
|
+
colors: O
|
|
2360
286
|
},
|
|
2361
|
-
...
|
|
287
|
+
...i
|
|
2362
288
|
};
|
|
2363
|
-
super(
|
|
2364
|
-
|
|
2365
|
-
|
|
289
|
+
super(e, o, s);
|
|
290
|
+
C(this, "fontsRegistered", !1);
|
|
291
|
+
C(this, "styles", I.create({
|
|
2366
292
|
page: {
|
|
2367
293
|
paddingTop: 35,
|
|
2368
294
|
paddingBottom: 65,
|
|
2369
295
|
paddingHorizontal: 35,
|
|
2370
296
|
fontFamily: "Inter",
|
|
2371
|
-
fontSize:
|
|
297
|
+
fontSize: _ * S,
|
|
2372
298
|
// pixels
|
|
2373
299
|
lineHeight: 1.5
|
|
2374
300
|
},
|
|
2375
|
-
section: {},
|
|
2376
301
|
block: {},
|
|
2377
302
|
blockChildren: {},
|
|
2378
303
|
header: {},
|
|
@@ -2381,97 +306,107 @@ class An extends pn {
|
|
|
2381
306
|
position: "absolute"
|
|
2382
307
|
}
|
|
2383
308
|
}));
|
|
2384
|
-
|
|
2385
|
-
this.schema =
|
|
309
|
+
C(this, "options");
|
|
310
|
+
this.schema = e, this.options = s;
|
|
2386
311
|
}
|
|
2387
312
|
/**
|
|
2388
313
|
* Mostly for internal use, you probably want to use `toBlob` or `toReactPDFDocument` instead.
|
|
2389
314
|
*/
|
|
2390
|
-
transformStyledText(
|
|
2391
|
-
const
|
|
2392
|
-
return /* @__PURE__ */
|
|
315
|
+
transformStyledText(e) {
|
|
316
|
+
const o = this.mapStyles(e.styles), i = Object.assign({}, ...o);
|
|
317
|
+
return /* @__PURE__ */ n(a, { style: i, children: e.text });
|
|
2393
318
|
}
|
|
2394
319
|
/**
|
|
2395
320
|
* Mostly for internal use, you probably want to use `toBlob` or `toReactPDFDocument` instead.
|
|
2396
321
|
*/
|
|
2397
|
-
async transformBlocks(
|
|
2398
|
-
const
|
|
2399
|
-
let
|
|
2400
|
-
for (const
|
|
2401
|
-
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
)
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
322
|
+
async transformBlocks(e, o = 0) {
|
|
323
|
+
const i = [];
|
|
324
|
+
let f = 0;
|
|
325
|
+
for (const s of e) {
|
|
326
|
+
s.type === "numberedListItem" ? f++ : f = 0;
|
|
327
|
+
const u = await this.transformBlocks(s.children, o + 1), E = await this.mapBlock(
|
|
328
|
+
s,
|
|
329
|
+
o,
|
|
330
|
+
f
|
|
331
|
+
);
|
|
332
|
+
if (s.type === "pageBreak") {
|
|
333
|
+
i.push(E);
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
const P = this.blocknoteDefaultPropsToReactPDFStyle(s.props);
|
|
337
|
+
i.push(
|
|
338
|
+
/* @__PURE__ */ c(v, { children: [
|
|
339
|
+
/* @__PURE__ */ n(
|
|
340
|
+
l,
|
|
2411
341
|
{
|
|
2412
342
|
style: {
|
|
2413
|
-
paddingVertical: 3 *
|
|
343
|
+
paddingVertical: 3 * S,
|
|
2414
344
|
...this.styles.block,
|
|
2415
|
-
...
|
|
345
|
+
...P
|
|
2416
346
|
},
|
|
2417
|
-
children:
|
|
347
|
+
children: E
|
|
2418
348
|
}
|
|
2419
349
|
),
|
|
2420
|
-
|
|
2421
|
-
|
|
350
|
+
u.length > 0 && /* @__PURE__ */ n(
|
|
351
|
+
l,
|
|
2422
352
|
{
|
|
2423
353
|
style: {
|
|
2424
|
-
marginLeft:
|
|
354
|
+
marginLeft: _ * 1.5 * S,
|
|
2425
355
|
...this.styles.blockChildren
|
|
2426
356
|
},
|
|
2427
|
-
children:
|
|
357
|
+
children: u
|
|
2428
358
|
}
|
|
2429
359
|
)
|
|
2430
360
|
] })
|
|
2431
361
|
);
|
|
2432
362
|
}
|
|
2433
|
-
return
|
|
363
|
+
return i;
|
|
2434
364
|
}
|
|
2435
365
|
async registerFonts() {
|
|
2436
366
|
if (this.fontsRegistered)
|
|
2437
367
|
return;
|
|
2438
|
-
this.options.emojiSource &&
|
|
2439
|
-
let
|
|
368
|
+
this.options.emojiSource && h.registerEmojiSource(this.options.emojiSource);
|
|
369
|
+
let e = await g(
|
|
2440
370
|
await import("./Inter_18pt-Regular-byxnNS-8.js")
|
|
2441
371
|
);
|
|
2442
|
-
|
|
372
|
+
h.register({
|
|
2443
373
|
family: "Inter",
|
|
2444
|
-
src:
|
|
2445
|
-
}),
|
|
374
|
+
src: e
|
|
375
|
+
}), e = await g(
|
|
2446
376
|
await import("./Inter_18pt-Italic-BVnfHlUD.js")
|
|
2447
|
-
),
|
|
377
|
+
), h.register({
|
|
2448
378
|
family: "Inter",
|
|
2449
379
|
fontStyle: "italic",
|
|
2450
|
-
src:
|
|
2451
|
-
}),
|
|
380
|
+
src: e
|
|
381
|
+
}), e = await g(
|
|
2452
382
|
await import("./Inter_18pt-Bold-BOnnSImi.js")
|
|
2453
|
-
),
|
|
383
|
+
), h.register({
|
|
2454
384
|
family: "Inter",
|
|
2455
|
-
src:
|
|
385
|
+
src: e,
|
|
2456
386
|
fontWeight: "bold"
|
|
2457
|
-
}),
|
|
387
|
+
}), e = await g(
|
|
2458
388
|
await import("./Inter_18pt-BoldItalic-DPKIpVzB.js")
|
|
2459
|
-
),
|
|
389
|
+
), h.register({
|
|
2460
390
|
family: "Inter",
|
|
2461
391
|
fontStyle: "italic",
|
|
2462
|
-
src:
|
|
392
|
+
src: e,
|
|
2463
393
|
fontWeight: "bold"
|
|
394
|
+
}), e = await g(
|
|
395
|
+
await import("./GeistMono-Regular-D4rKXxwr.js")
|
|
396
|
+
), h.register({
|
|
397
|
+
family: "GeistMono",
|
|
398
|
+
src: e
|
|
2464
399
|
}), this.fontsRegistered = !0;
|
|
2465
400
|
}
|
|
2466
401
|
/**
|
|
2467
402
|
* Convert a document (array of Blocks) to a react-pdf Document.
|
|
2468
403
|
*/
|
|
2469
|
-
async toReactPDFDocument(
|
|
2470
|
-
return await this.registerFonts(), /* @__PURE__ */
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
404
|
+
async toReactPDFDocument(e, o = {}) {
|
|
405
|
+
return await this.registerFonts(), /* @__PURE__ */ n(F, { children: /* @__PURE__ */ c(B, { dpi: 100, size: "A4", style: this.styles.page, children: [
|
|
406
|
+
o.header && /* @__PURE__ */ n(l, { fixed: !0, style: this.styles.header, children: o.header }),
|
|
407
|
+
await this.transformBlocks(e),
|
|
408
|
+
o.footer && /* @__PURE__ */ n(
|
|
409
|
+
l,
|
|
2475
410
|
{
|
|
2476
411
|
fixed: !0,
|
|
2477
412
|
style: [
|
|
@@ -2482,22 +417,22 @@ class An extends pn {
|
|
|
2482
417
|
},
|
|
2483
418
|
this.styles.footer
|
|
2484
419
|
],
|
|
2485
|
-
children:
|
|
420
|
+
children: o.footer
|
|
2486
421
|
}
|
|
2487
422
|
)
|
|
2488
423
|
] }) });
|
|
2489
424
|
}
|
|
2490
|
-
blocknoteDefaultPropsToReactPDFStyle(
|
|
425
|
+
blocknoteDefaultPropsToReactPDFStyle(e) {
|
|
2491
426
|
return {
|
|
2492
|
-
textAlign:
|
|
2493
|
-
backgroundColor:
|
|
2494
|
-
color:
|
|
2495
|
-
alignItems:
|
|
427
|
+
textAlign: e.textAlignment,
|
|
428
|
+
backgroundColor: e.backgroundColor === "default" || !e.backgroundColor ? void 0 : this.options.colors[e.backgroundColor].background,
|
|
429
|
+
color: e.textColor === "default" || !e.textColor ? void 0 : this.options.colors[e.textColor].text,
|
|
430
|
+
alignItems: e.textAlignment === "right" ? "flex-end" : e.textAlignment === "center" ? "center" : void 0
|
|
2496
431
|
};
|
|
2497
432
|
}
|
|
2498
433
|
}
|
|
2499
434
|
export {
|
|
2500
|
-
|
|
2501
|
-
|
|
435
|
+
rt as PDFExporter,
|
|
436
|
+
et as pdfDefaultSchemaMappings
|
|
2502
437
|
};
|
|
2503
438
|
//# sourceMappingURL=blocknote-xl-pdf-exporter.js.map
|