@topol.io/editor-react 0.0.4 → 0.2.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.
|
@@ -1,680 +1,494 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Ae, { useEffect as xe } from "react";
|
|
2
|
+
var A = { exports: {} }, P = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var de;
|
|
13
|
+
function Oe() {
|
|
14
|
+
if (de) return P;
|
|
15
|
+
de = 1;
|
|
16
|
+
var o = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
17
|
+
function c(r, i, f) {
|
|
18
|
+
var m = null;
|
|
19
|
+
if (f !== void 0 && (m = "" + f), i.key !== void 0 && (m = "" + i.key), "key" in i) {
|
|
20
|
+
f = {};
|
|
21
|
+
for (var y in i)
|
|
22
|
+
y !== "key" && (f[y] = i[y]);
|
|
23
|
+
} else f = i;
|
|
24
|
+
return i = f.ref, {
|
|
25
|
+
$$typeof: o,
|
|
26
|
+
type: r,
|
|
27
|
+
key: m,
|
|
28
|
+
ref: i !== void 0 ? i : null,
|
|
29
|
+
props: f
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return P.Fragment = l, P.jsx = c, P.jsxs = c, P;
|
|
33
|
+
}
|
|
34
|
+
var R = {};
|
|
3
35
|
/**
|
|
4
36
|
* @license React
|
|
5
37
|
* react-jsx-runtime.development.js
|
|
6
38
|
*
|
|
7
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
40
|
*
|
|
9
41
|
* This source code is licensed under the MIT license found in the
|
|
10
42
|
* LICENSE file in the root directory of this source tree.
|
|
11
43
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
return null;
|
|
19
|
-
|
|
20
|
-
return typeof r == "function" ? r : null;
|
|
21
|
-
}
|
|
22
|
-
var O = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
|
-
function p(e) {
|
|
24
|
-
{
|
|
25
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
26
|
-
n[o - 1] = arguments[o];
|
|
27
|
-
je("error", e, n);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function je(e, r, n) {
|
|
31
|
-
{
|
|
32
|
-
var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
|
|
33
|
-
s !== "" && (r += "%s", n = n.concat([s]));
|
|
34
|
-
var c = n.map(function(l) {
|
|
35
|
-
return String(l);
|
|
36
|
-
});
|
|
37
|
-
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var Ae = !1, De = !1, Fe = !1, Ie = !1, Be = !1, ee;
|
|
41
|
-
ee = Symbol.for("react.module.reference");
|
|
42
|
-
function Me(e) {
|
|
43
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === y || Be || e === f || e === C || e === E || Ie || e === B || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === R || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object
|
|
44
|
-
// types supported by any Flight configuration anywhere since
|
|
45
|
-
// we don't know which Flight build this will end up being used
|
|
46
|
-
// with.
|
|
47
|
-
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
48
|
-
}
|
|
49
|
-
function Le(e, r, n) {
|
|
50
|
-
var o = e.displayName;
|
|
51
|
-
if (o)
|
|
52
|
-
return o;
|
|
53
|
-
var s = r.displayName || r.name || "";
|
|
54
|
-
return s !== "" ? n + "(" + s + ")" : n;
|
|
55
|
-
}
|
|
56
|
-
function re(e) {
|
|
57
|
-
return e.displayName || "Context";
|
|
58
|
-
}
|
|
59
|
-
function T(e) {
|
|
60
|
-
if (e == null)
|
|
61
|
-
return null;
|
|
62
|
-
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
63
|
-
return e.displayName || e.name || null;
|
|
64
|
-
if (typeof e == "string")
|
|
65
|
-
return e;
|
|
44
|
+
var ve;
|
|
45
|
+
function je() {
|
|
46
|
+
return ve || (ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function o(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === Pe ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
66
52
|
switch (e) {
|
|
67
|
-
case
|
|
53
|
+
case N:
|
|
68
54
|
return "Fragment";
|
|
69
|
-
case
|
|
55
|
+
case Se:
|
|
70
56
|
return "Portal";
|
|
71
|
-
case
|
|
57
|
+
case X:
|
|
72
58
|
return "Profiler";
|
|
73
|
-
case
|
|
59
|
+
case I:
|
|
74
60
|
return "StrictMode";
|
|
75
|
-
case
|
|
61
|
+
case B:
|
|
76
62
|
return "Suspense";
|
|
77
|
-
case
|
|
63
|
+
case Y:
|
|
78
64
|
return "SuspenseList";
|
|
79
65
|
}
|
|
80
66
|
if (typeof e == "object")
|
|
81
|
-
switch (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
88
|
-
case
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return
|
|
93
|
-
case
|
|
94
|
-
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case Q:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case Z:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case M:
|
|
75
|
+
var t = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case W:
|
|
78
|
+
return t = e.displayName || null, t !== null ? t : o(e.type) || "Memo";
|
|
79
|
+
case $:
|
|
80
|
+
t = e._payload, e = e._init;
|
|
95
81
|
try {
|
|
96
|
-
return
|
|
82
|
+
return o(e(t));
|
|
97
83
|
} catch {
|
|
98
|
-
return null;
|
|
99
84
|
}
|
|
100
|
-
}
|
|
101
85
|
}
|
|
102
86
|
return null;
|
|
103
87
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
se.__reactDisabledLog = !0;
|
|
108
|
-
function $e() {
|
|
109
|
-
{
|
|
110
|
-
if (A === 0) {
|
|
111
|
-
te = console.log, ne = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, ue = console.groupEnd;
|
|
112
|
-
var e = {
|
|
113
|
-
configurable: !0,
|
|
114
|
-
enumerable: !0,
|
|
115
|
-
value: se,
|
|
116
|
-
writable: !0
|
|
117
|
-
};
|
|
118
|
-
Object.defineProperties(console, {
|
|
119
|
-
info: e,
|
|
120
|
-
log: e,
|
|
121
|
-
warn: e,
|
|
122
|
-
error: e,
|
|
123
|
-
group: e,
|
|
124
|
-
groupCollapsed: e,
|
|
125
|
-
groupEnd: e
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
A++;
|
|
129
|
-
}
|
|
88
|
+
function l(e) {
|
|
89
|
+
return "" + e;
|
|
130
90
|
}
|
|
131
|
-
function
|
|
132
|
-
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
writable: !0
|
|
138
|
-
};
|
|
139
|
-
Object.defineProperties(console, {
|
|
140
|
-
log: S({}, e, {
|
|
141
|
-
value: te
|
|
142
|
-
}),
|
|
143
|
-
info: S({}, e, {
|
|
144
|
-
value: ne
|
|
145
|
-
}),
|
|
146
|
-
warn: S({}, e, {
|
|
147
|
-
value: oe
|
|
148
|
-
}),
|
|
149
|
-
error: S({}, e, {
|
|
150
|
-
value: ae
|
|
151
|
-
}),
|
|
152
|
-
group: S({}, e, {
|
|
153
|
-
value: ie
|
|
154
|
-
}),
|
|
155
|
-
groupCollapsed: S({}, e, {
|
|
156
|
-
value: le
|
|
157
|
-
}),
|
|
158
|
-
groupEnd: S({}, e, {
|
|
159
|
-
value: ue
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
A < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
91
|
+
function c(e) {
|
|
92
|
+
try {
|
|
93
|
+
l(e);
|
|
94
|
+
var t = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
t = !0;
|
|
164
97
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var o = s.stack.trim().match(/\n( *(at )?)/);
|
|
174
|
-
U = o && o[1] || "";
|
|
175
|
-
}
|
|
176
|
-
return `
|
|
177
|
-
` + U + e;
|
|
98
|
+
if (t) {
|
|
99
|
+
t = console;
|
|
100
|
+
var n = t.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return n.call(
|
|
102
|
+
t,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
u
|
|
105
|
+
), l(e);
|
|
178
106
|
}
|
|
179
107
|
}
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
L = new Ye();
|
|
108
|
+
function r() {
|
|
184
109
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
110
|
+
function i() {
|
|
111
|
+
if (S === 0) {
|
|
112
|
+
ee = console.log, oe = console.info, te = console.warn, ne = console.error, re = console.group, ae = console.groupCollapsed, ie = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: r,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
S++;
|
|
130
|
+
}
|
|
131
|
+
function f() {
|
|
132
|
+
if (S--, S === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: b({}, e, { value: ee }),
|
|
136
|
+
info: b({}, e, { value: oe }),
|
|
137
|
+
warn: b({}, e, { value: te }),
|
|
138
|
+
error: b({}, e, { value: ne }),
|
|
139
|
+
group: b({}, e, { value: re }),
|
|
140
|
+
groupCollapsed: b({}, e, { value: ae }),
|
|
141
|
+
groupEnd: b({}, e, { value: ie })
|
|
142
|
+
});
|
|
192
143
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
144
|
+
0 > S && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function m(e) {
|
|
149
|
+
if (z === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (n) {
|
|
153
|
+
var t = n.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
z = t && t[1] || "", le = -1 < n.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < n.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + z + e + le;
|
|
159
|
+
}
|
|
160
|
+
function y(e, t) {
|
|
161
|
+
if (!e || H) return "";
|
|
162
|
+
var n = V.get(e);
|
|
163
|
+
if (n !== void 0) return n;
|
|
164
|
+
H = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var u = null;
|
|
166
|
+
u = T.H, T.H = null, i();
|
|
199
167
|
try {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
throw Error();
|
|
203
|
-
};
|
|
204
|
-
if (Object.defineProperty(l.prototype, "props", {
|
|
205
|
-
set: function() {
|
|
206
|
-
throw Error();
|
|
207
|
-
}
|
|
208
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
168
|
+
var d = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
209
170
|
try {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
171
|
+
if (t) {
|
|
172
|
+
var w = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(w, []);
|
|
182
|
+
} catch (E) {
|
|
183
|
+
var _ = E;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], w);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
w.call();
|
|
189
|
+
} catch (E) {
|
|
190
|
+
_ = E;
|
|
191
|
+
}
|
|
192
|
+
e.call(w.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (E) {
|
|
198
|
+
_ = E;
|
|
199
|
+
}
|
|
200
|
+
(w = e()) && typeof w.catch == "function" && w.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (E) {
|
|
204
|
+
if (E && _ && typeof E.stack == "string")
|
|
205
|
+
return [E.stack, _.stack];
|
|
220
206
|
}
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
} else {
|
|
224
|
-
try {
|
|
225
|
-
throw Error();
|
|
226
|
-
} catch (w) {
|
|
227
|
-
o = w;
|
|
207
|
+
return [null, null];
|
|
228
208
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
209
|
+
};
|
|
210
|
+
d.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var s = Object.getOwnPropertyDescriptor(
|
|
212
|
+
d.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
s && s.configurable && Object.defineProperty(
|
|
216
|
+
d.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var a = d.DetermineComponentFrameRoot(), g = a[0], C = a[1];
|
|
221
|
+
if (g && C) {
|
|
222
|
+
var v = g.split(`
|
|
223
|
+
`), h = C.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (a = s = 0; s < v.length && !v[s].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
s++;
|
|
229
|
+
for (; a < h.length && !h[a].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
a++;
|
|
233
|
+
if (s === v.length || a === h.length)
|
|
234
|
+
for (s = v.length - 1, a = h.length - 1; 1 <= s && 0 <= a && v[s] !== h[a]; )
|
|
235
|
+
a--;
|
|
236
|
+
for (; 1 <= s && 0 <= a; s--, a--)
|
|
237
|
+
if (v[s] !== h[a]) {
|
|
238
|
+
if (s !== 1 || a !== 1)
|
|
240
239
|
do
|
|
241
|
-
if (
|
|
242
|
-
var
|
|
243
|
-
` +
|
|
244
|
-
|
|
240
|
+
if (s--, a--, 0 > a || v[s] !== h[a]) {
|
|
241
|
+
var k = `
|
|
242
|
+
` + v[s].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, k), k;
|
|
245
247
|
}
|
|
246
|
-
while (
|
|
248
|
+
while (1 <= s && 0 <= a);
|
|
247
249
|
break;
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
} finally {
|
|
251
|
-
|
|
253
|
+
H = !1, T.H = u, f(), Error.prepareStackTrace = n;
|
|
252
254
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (e ==
|
|
265
|
-
return "";
|
|
266
|
-
if (typeof e == "function")
|
|
267
|
-
return ce(e, Ue(e));
|
|
268
|
-
if (typeof e == "string")
|
|
269
|
-
return M(e);
|
|
255
|
+
return v = (v = e ? e.displayName || e.name : "") ? m(v) : "", typeof e == "function" && V.set(e, v), v;
|
|
256
|
+
}
|
|
257
|
+
function x(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var t = e.prototype;
|
|
261
|
+
return y(
|
|
262
|
+
e,
|
|
263
|
+
!(!t || !t.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return m(e);
|
|
270
267
|
switch (e) {
|
|
271
|
-
case
|
|
272
|
-
return
|
|
273
|
-
case
|
|
274
|
-
return
|
|
268
|
+
case B:
|
|
269
|
+
return m("Suspense");
|
|
270
|
+
case Y:
|
|
271
|
+
return m("SuspenseList");
|
|
275
272
|
}
|
|
276
273
|
if (typeof e == "object")
|
|
277
274
|
switch (e.$$typeof) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
282
|
-
case
|
|
283
|
-
|
|
275
|
+
case M:
|
|
276
|
+
return e = y(e.render, !1), e;
|
|
277
|
+
case W:
|
|
278
|
+
return x(e.type);
|
|
279
|
+
case $:
|
|
280
|
+
t = e._payload, e = e._init;
|
|
284
281
|
try {
|
|
285
|
-
return
|
|
282
|
+
return x(e(t));
|
|
286
283
|
} catch {
|
|
287
284
|
}
|
|
288
|
-
}
|
|
289
285
|
}
|
|
290
286
|
return "";
|
|
291
287
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var r = e._owner, n = $(e.type, e._source, r ? r.type : null);
|
|
296
|
-
de.setExtraStackFrame(n);
|
|
297
|
-
} else
|
|
298
|
-
de.setExtraStackFrame(null);
|
|
288
|
+
function O() {
|
|
289
|
+
var e = T.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
299
291
|
}
|
|
300
|
-
function
|
|
301
|
-
{
|
|
302
|
-
var
|
|
303
|
-
|
|
304
|
-
if (c(e, l)) {
|
|
305
|
-
var i = void 0;
|
|
306
|
-
try {
|
|
307
|
-
if (typeof e[l] != "function") {
|
|
308
|
-
var m = Error((o || "React class") + ": " + n + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
|
-
throw m.name = "Invariant Violation", m;
|
|
310
|
-
}
|
|
311
|
-
i = e[l](r, l, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
|
-
} catch (d) {
|
|
313
|
-
i = d;
|
|
314
|
-
}
|
|
315
|
-
i && !(i instanceof Error) && (Y(s), p("%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", n, l, typeof i), Y(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, Y(s), p("Failed %s type: %s", n, i.message), Y(null));
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
var ze = Array.isArray;
|
|
320
|
-
function z(e) {
|
|
321
|
-
return ze(e);
|
|
322
|
-
}
|
|
323
|
-
function qe(e) {
|
|
324
|
-
{
|
|
325
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
326
|
-
return n;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function Je(e) {
|
|
330
|
-
try {
|
|
331
|
-
return ve(e), !1;
|
|
332
|
-
} catch {
|
|
333
|
-
return !0;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function ve(e) {
|
|
337
|
-
return "" + e;
|
|
338
|
-
}
|
|
339
|
-
function ge(e) {
|
|
340
|
-
if (Je(e))
|
|
341
|
-
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
|
|
342
|
-
}
|
|
343
|
-
var D = O.ReactCurrentOwner, Ge = {
|
|
344
|
-
key: !0,
|
|
345
|
-
ref: !0,
|
|
346
|
-
__self: !0,
|
|
347
|
-
__source: !0
|
|
348
|
-
}, he, pe, q;
|
|
349
|
-
q = {};
|
|
350
|
-
function He(e) {
|
|
351
|
-
if (W.call(e, "ref")) {
|
|
352
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
353
|
-
if (r && r.isReactWarning)
|
|
354
|
-
return !1;
|
|
355
|
-
}
|
|
356
|
-
return e.ref !== void 0;
|
|
357
|
-
}
|
|
358
|
-
function Ke(e) {
|
|
359
|
-
if (W.call(e, "key")) {
|
|
360
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
361
|
-
if (r && r.isReactWarning)
|
|
362
|
-
return !1;
|
|
292
|
+
function we(e) {
|
|
293
|
+
if (D.call(e, "key")) {
|
|
294
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
295
|
+
if (t && t.isReactWarning) return !1;
|
|
363
296
|
}
|
|
364
297
|
return e.key !== void 0;
|
|
365
298
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
function Ze(e, r) {
|
|
373
|
-
{
|
|
374
|
-
var n = function() {
|
|
375
|
-
he || (he = !0, p("%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));
|
|
376
|
-
};
|
|
377
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
378
|
-
get: n,
|
|
379
|
-
configurable: !0
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Qe(e, r) {
|
|
384
|
-
{
|
|
385
|
-
var n = function() {
|
|
386
|
-
pe || (pe = !0, p("%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));
|
|
387
|
-
};
|
|
388
|
-
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
389
|
-
get: n,
|
|
390
|
-
configurable: !0
|
|
391
|
-
});
|
|
299
|
+
function Te(e, t) {
|
|
300
|
+
function n() {
|
|
301
|
+
ue || (ue = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
t
|
|
304
|
+
));
|
|
392
305
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
306
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: n,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function be() {
|
|
312
|
+
var e = o(this.type);
|
|
313
|
+
return se[e] || (se[e] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
316
|
+
}
|
|
317
|
+
function he(e, t, n, u, d, s) {
|
|
318
|
+
return n = s.ref, e = {
|
|
319
|
+
$$typeof: p,
|
|
399
320
|
type: e,
|
|
400
|
-
key:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
_owner: c
|
|
405
|
-
};
|
|
406
|
-
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
407
|
-
configurable: !1,
|
|
321
|
+
key: t,
|
|
322
|
+
props: s,
|
|
323
|
+
_owner: d
|
|
324
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
408
325
|
enumerable: !1,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}), Object.defineProperty(i, "_self", {
|
|
326
|
+
get: be
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
412
328
|
configurable: !1,
|
|
413
329
|
enumerable: !1,
|
|
414
|
-
writable: !
|
|
415
|
-
value:
|
|
416
|
-
}), Object.defineProperty(
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
417
333
|
configurable: !1,
|
|
418
334
|
enumerable: !1,
|
|
419
|
-
writable: !
|
|
420
|
-
value:
|
|
421
|
-
}), Object.freeze && (Object.freeze(
|
|
422
|
-
}
|
|
423
|
-
function
|
|
424
|
-
{
|
|
425
|
-
var
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
return er(e, i, m, s, o, D.current, l);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var J = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
|
|
442
|
-
function k(e) {
|
|
443
|
-
if (e) {
|
|
444
|
-
var r = e._owner, n = $(e.type, e._source, r ? r.type : null);
|
|
445
|
-
me.setExtraStackFrame(n);
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
338
|
+
}
|
|
339
|
+
function J(e, t, n, u, d, s) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === N || e === X || e === I || e === B || e === Y || e === ke || typeof e == "object" && e !== null && (e.$$typeof === $ || e.$$typeof === W || e.$$typeof === Q || e.$$typeof === Z || e.$$typeof === M || e.$$typeof === Re || e.getModuleId !== void 0)) {
|
|
341
|
+
var a = t.children;
|
|
342
|
+
if (a !== void 0)
|
|
343
|
+
if (u)
|
|
344
|
+
if (U(a)) {
|
|
345
|
+
for (u = 0; u < a.length; u++)
|
|
346
|
+
L(a[u], e);
|
|
347
|
+
Object.freeze && Object.freeze(a);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else L(a, e);
|
|
446
353
|
} else
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
470
|
-
return `
|
|
471
|
-
|
|
472
|
-
Check your code at ` + r + ":" + n + ".";
|
|
473
|
-
}
|
|
474
|
-
return "";
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
var be = {};
|
|
478
|
-
function nr(e) {
|
|
479
|
-
{
|
|
480
|
-
var r = Ee();
|
|
481
|
-
if (!r) {
|
|
482
|
-
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
483
|
-
n && (r = `
|
|
484
|
-
|
|
485
|
-
Check the top-level render call using <` + n + ">.");
|
|
486
|
-
}
|
|
487
|
-
return r;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function ye(e, r) {
|
|
491
|
-
{
|
|
492
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
493
|
-
return;
|
|
494
|
-
e._store.validated = !0;
|
|
495
|
-
var n = nr(r);
|
|
496
|
-
if (be[n])
|
|
497
|
-
return;
|
|
498
|
-
be[n] = !0;
|
|
499
|
-
var o = "";
|
|
500
|
-
e && e._owner && e._owner !== J.current && (o = " It was passed a child from " + T(e._owner.type) + "."), k(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), k(null);
|
|
354
|
+
a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : U(e) ? u = "array" : e !== void 0 && e.$$typeof === p ? (u = "<" + (o(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
u,
|
|
357
|
+
a
|
|
358
|
+
);
|
|
359
|
+
if (D.call(t, "key")) {
|
|
360
|
+
a = o(e);
|
|
361
|
+
var g = Object.keys(t).filter(function(v) {
|
|
362
|
+
return v !== "key";
|
|
363
|
+
});
|
|
364
|
+
u = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", ce[a + u] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
u,
|
|
372
|
+
a,
|
|
373
|
+
g,
|
|
374
|
+
a
|
|
375
|
+
), ce[a + u] = !0);
|
|
501
376
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
377
|
+
if (a = null, n !== void 0 && (c(n), a = "" + n), we(t) && (c(t.key), a = "" + t.key), "key" in t) {
|
|
378
|
+
n = {};
|
|
379
|
+
for (var C in t)
|
|
380
|
+
C !== "key" && (n[C] = t[C]);
|
|
381
|
+
} else n = t;
|
|
382
|
+
return a && Te(
|
|
383
|
+
n,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), he(e, a, s, d, O(), n);
|
|
386
|
+
}
|
|
387
|
+
function L(e, t) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== _e) {
|
|
389
|
+
if (U(e))
|
|
508
390
|
for (var n = 0; n < e.length; n++) {
|
|
509
|
-
var
|
|
510
|
-
|
|
391
|
+
var u = e[n];
|
|
392
|
+
j(u) && G(u, t);
|
|
511
393
|
}
|
|
512
|
-
else if (
|
|
513
|
-
e._store && (e._store.validated =
|
|
514
|
-
else if (e)
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
for (var c = s.call(e), l; !(l = c.next()).done; )
|
|
518
|
-
H(l.value) && ye(l.value, r);
|
|
519
|
-
}
|
|
394
|
+
else if (j(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? n = null : (n = K && e[K] || e["@@iterator"], n = typeof n == "function" ? n : null), typeof n == "function" && n !== e.entries && (n = n.call(e), n !== e))
|
|
397
|
+
for (; !(e = n.next()).done; )
|
|
398
|
+
j(e.value) && G(e.value, t);
|
|
520
399
|
}
|
|
521
400
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
} else if (r.PropTypes !== void 0 && !G) {
|
|
540
|
-
G = !0;
|
|
541
|
-
var s = T(r);
|
|
542
|
-
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
543
|
-
}
|
|
544
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
function ar(e) {
|
|
548
|
-
{
|
|
549
|
-
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
550
|
-
var o = r[n];
|
|
551
|
-
if (o !== "children" && o !== "key") {
|
|
552
|
-
k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), k(null);
|
|
553
|
-
break;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
e.ref !== null && (k(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function Te(e, r, n, o, s, c) {
|
|
560
|
-
{
|
|
561
|
-
var l = Me(e);
|
|
562
|
-
if (!l) {
|
|
563
|
-
var i = "";
|
|
564
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
565
|
-
var m = tr(s);
|
|
566
|
-
m ? i += m : i += Ee();
|
|
567
|
-
var d;
|
|
568
|
-
e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === u ? (d = "<" + (T(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i);
|
|
569
|
-
}
|
|
570
|
-
var v = rr(e, r, n, s, c);
|
|
571
|
-
if (v == null)
|
|
572
|
-
return v;
|
|
573
|
-
if (l) {
|
|
574
|
-
var b = r.children;
|
|
575
|
-
if (b !== void 0)
|
|
576
|
-
if (o)
|
|
577
|
-
if (z(b)) {
|
|
578
|
-
for (var x = 0; x < b.length; x++)
|
|
579
|
-
Re(b[x], e);
|
|
580
|
-
Object.freeze && Object.freeze(b);
|
|
581
|
-
} else
|
|
582
|
-
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
583
|
-
else
|
|
584
|
-
Re(b, e);
|
|
585
|
-
}
|
|
586
|
-
return e === a ? ar(v) : or(v), v;
|
|
401
|
+
function j(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === p;
|
|
403
|
+
}
|
|
404
|
+
function G(e, t) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, t = ye(t), !fe[t])) {
|
|
406
|
+
fe[t] = !0;
|
|
407
|
+
var n = "";
|
|
408
|
+
e && e._owner != null && e._owner !== O() && (n = null, typeof e._owner.tag == "number" ? n = o(e._owner.type) : typeof e._owner.name == "string" && (n = e._owner.name), n = " It was passed a child from " + n + ".");
|
|
409
|
+
var u = T.getCurrentStack;
|
|
410
|
+
T.getCurrentStack = function() {
|
|
411
|
+
var d = x(e.type);
|
|
412
|
+
return u && (d += u() || ""), d;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
t,
|
|
416
|
+
n
|
|
417
|
+
), T.getCurrentStack = u;
|
|
587
418
|
}
|
|
588
419
|
}
|
|
589
|
-
function
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
420
|
+
function ye(e) {
|
|
421
|
+
var t = "", n = O();
|
|
422
|
+
return n && (n = o(n.type)) && (t = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + n + "`."), t || (e = o(e)) && (t = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), t;
|
|
427
|
+
}
|
|
428
|
+
var Ce = Ae, p = Symbol.for("react.transitional.element"), Se = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ke = Symbol.for("react.offscreen"), K = Symbol.iterator, Pe = Symbol.for("react.client.reference"), T = Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, b = Object.assign, Re = Symbol.for("react.client.reference"), U = Array.isArray, S = 0, ee, oe, te, ne, re, ae, ie;
|
|
429
|
+
r.__reactDisabledLog = !0;
|
|
430
|
+
var z, le, H = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), _e = Symbol.for("react.client.reference"), ue, se = {}, ce = {}, fe = {};
|
|
431
|
+
R.Fragment = N, R.jsx = function(e, t, n, u, d) {
|
|
432
|
+
return J(e, t, n, !1, u, d);
|
|
433
|
+
}, R.jsxs = function(e, t, n, u, d) {
|
|
434
|
+
return J(e, t, n, !0, u, d);
|
|
435
|
+
};
|
|
436
|
+
}()), R;
|
|
598
437
|
}
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
* react-jsx-runtime.production.min.js
|
|
603
|
-
*
|
|
604
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
605
|
-
*
|
|
606
|
-
* This source code is licensed under the MIT license found in the
|
|
607
|
-
* LICENSE file in the root directory of this source tree.
|
|
608
|
-
*/
|
|
609
|
-
var Pe;
|
|
610
|
-
function dr() {
|
|
611
|
-
if (Pe)
|
|
612
|
-
return I;
|
|
613
|
-
Pe = 1;
|
|
614
|
-
var t = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
615
|
-
function j(_, h, C) {
|
|
616
|
-
var E, R = {}, P = null, B = null;
|
|
617
|
-
C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (B = h.ref);
|
|
618
|
-
for (E in h)
|
|
619
|
-
a.call(h, E) && !y.hasOwnProperty(E) && (R[E] = h[E]);
|
|
620
|
-
if (_ && _.defaultProps)
|
|
621
|
-
for (E in h = _.defaultProps, h)
|
|
622
|
-
R[E] === void 0 && (R[E] = h[E]);
|
|
623
|
-
return { $$typeof: u, type: _, key: P, ref: B, props: R, _owner: f.current };
|
|
624
|
-
}
|
|
625
|
-
return I.Fragment = g, I.jsx = j, I.jsxs = j, I;
|
|
438
|
+
var ge;
|
|
439
|
+
function pe() {
|
|
440
|
+
return ge || (ge = 1, process.env.NODE_ENV === "production" ? A.exports = Oe() : A.exports = je()), A.exports;
|
|
626
441
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
442
|
+
var Ne = pe();
|
|
443
|
+
function Me(o) {
|
|
444
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
631
445
|
}
|
|
632
|
-
var
|
|
633
|
-
var
|
|
634
|
-
typeof
|
|
635
|
-
},
|
|
636
|
-
var
|
|
637
|
-
|
|
446
|
+
var Be = function(o, l, c) {
|
|
447
|
+
var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("script");
|
|
448
|
+
typeof l == "function" && (c = l, l = {}), l = l || {}, c = c || function() {
|
|
449
|
+
}, i.type = l.type || "text/javascript", i.charset = l.charset || "utf8", i.async = "async" in l ? !!l.async : !0, i.src = o, l.attrs && Ye(i, l.attrs), l.text && (i.text = "" + l.text);
|
|
450
|
+
var f = "onload" in i ? Ee : We;
|
|
451
|
+
f(i, c), i.onload || Ee(i, c), r.appendChild(i);
|
|
638
452
|
};
|
|
639
|
-
function
|
|
640
|
-
for (var
|
|
641
|
-
|
|
453
|
+
function Ye(o, l) {
|
|
454
|
+
for (var c in l)
|
|
455
|
+
o.setAttribute(c, l[c]);
|
|
642
456
|
}
|
|
643
|
-
function
|
|
644
|
-
|
|
645
|
-
this.onerror = this.onload = null,
|
|
646
|
-
},
|
|
647
|
-
this.onerror = this.onload = null,
|
|
457
|
+
function Ee(o, l) {
|
|
458
|
+
o.onload = function() {
|
|
459
|
+
this.onerror = this.onload = null, l(null, o);
|
|
460
|
+
}, o.onerror = function() {
|
|
461
|
+
this.onerror = this.onload = null, l(new Error("Failed to load " + this.src), o);
|
|
648
462
|
};
|
|
649
463
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
652
|
-
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null,
|
|
464
|
+
function We(o, l) {
|
|
465
|
+
o.onreadystatechange = function() {
|
|
466
|
+
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, l(null, o));
|
|
653
467
|
};
|
|
654
468
|
}
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
switch (
|
|
469
|
+
const $e = /* @__PURE__ */ Me(Be), Ue = "https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js", ze = "https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js", He = "https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";
|
|
470
|
+
function Ve(o = "production") {
|
|
471
|
+
switch (o) {
|
|
658
472
|
case "dev":
|
|
659
|
-
return
|
|
473
|
+
return ze;
|
|
660
474
|
case "staging":
|
|
661
|
-
return
|
|
475
|
+
return He;
|
|
662
476
|
default:
|
|
663
|
-
return
|
|
477
|
+
return Ue;
|
|
664
478
|
}
|
|
665
479
|
}
|
|
666
|
-
const
|
|
667
|
-
init: (
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
480
|
+
const me = {
|
|
481
|
+
init: (o, l) => new Promise((c, r) => {
|
|
482
|
+
const i = Ve(l == null ? void 0 : l.stage);
|
|
483
|
+
$e(i, (f) => {
|
|
484
|
+
f !== null && r(f), window.TopolPlugin.init(o), c(!0);
|
|
671
485
|
});
|
|
672
486
|
}),
|
|
673
487
|
save: () => {
|
|
674
488
|
window.TopolPlugin.save();
|
|
675
489
|
},
|
|
676
|
-
load: (
|
|
677
|
-
window.TopolPlugin.load(
|
|
490
|
+
load: (o) => {
|
|
491
|
+
window.TopolPlugin.load(o);
|
|
678
492
|
},
|
|
679
493
|
togglePreview: () => {
|
|
680
494
|
window.TopolPlugin.togglePreview();
|
|
@@ -682,8 +496,8 @@ const Ce = {
|
|
|
682
496
|
togglePreviewSize: () => {
|
|
683
497
|
window.TopolPlugin.togglePreviewSize();
|
|
684
498
|
},
|
|
685
|
-
chooseFile: (
|
|
686
|
-
window.TopolPlugin.chooseFile(
|
|
499
|
+
chooseFile: (o) => {
|
|
500
|
+
window.TopolPlugin.chooseFile(o);
|
|
687
501
|
},
|
|
688
502
|
undo: () => {
|
|
689
503
|
window.TopolPlugin.undo();
|
|
@@ -691,11 +505,20 @@ const Ce = {
|
|
|
691
505
|
redo: () => {
|
|
692
506
|
window.TopolPlugin.redo();
|
|
693
507
|
},
|
|
694
|
-
|
|
695
|
-
window.TopolPlugin.
|
|
508
|
+
destroy: () => {
|
|
509
|
+
window.TopolPlugin.destroy();
|
|
510
|
+
},
|
|
511
|
+
setSavedBlocks: (o) => {
|
|
512
|
+
window.TopolPlugin.setSavedBlocks(o);
|
|
513
|
+
},
|
|
514
|
+
setPreviewHTML: (o) => {
|
|
515
|
+
window.TopolPlugin.setPreviewHTML(o);
|
|
696
516
|
},
|
|
697
|
-
createNotification: (
|
|
698
|
-
window.TopolPlugin.createNotification(
|
|
517
|
+
createNotification: (o) => {
|
|
518
|
+
window.TopolPlugin.createNotification(o);
|
|
519
|
+
},
|
|
520
|
+
setActiveMembers: (o) => {
|
|
521
|
+
window.TopolPlugin.setActiveMembers(o);
|
|
699
522
|
},
|
|
700
523
|
changeEmailToMobile: () => {
|
|
701
524
|
window.TopolPlugin.changeEmailToMobile();
|
|
@@ -706,81 +529,96 @@ const Ce = {
|
|
|
706
529
|
toggleBlocksAndStructuresVisibility: () => {
|
|
707
530
|
window.TopolPlugin.toggleBlocksAndStructuresVisibility();
|
|
708
531
|
},
|
|
709
|
-
|
|
710
|
-
window.TopolPlugin.
|
|
532
|
+
updateCustomBlockContent: (o) => {
|
|
533
|
+
window.TopolPlugin.updateCustomBlockContent(o);
|
|
534
|
+
},
|
|
535
|
+
refreshComments: (o) => {
|
|
536
|
+
window.TopolPlugin.refreshComments(o);
|
|
711
537
|
},
|
|
712
|
-
|
|
713
|
-
window.TopolPlugin.
|
|
538
|
+
refreshSyncedRows: () => {
|
|
539
|
+
window.TopolPlugin.refreshSyncedRows();
|
|
714
540
|
},
|
|
715
|
-
|
|
716
|
-
window.TopolPlugin.
|
|
541
|
+
openPremadeTemplatesSelection: () => {
|
|
542
|
+
window.TopolPlugin.openPremadeTemplatesSelection();
|
|
717
543
|
},
|
|
718
|
-
|
|
719
|
-
window.TopolPlugin.
|
|
544
|
+
updateApiAuthorizationHeader: (o) => {
|
|
545
|
+
window.TopolPlugin.updateApiAuthorizationHeader(o);
|
|
546
|
+
},
|
|
547
|
+
setTemplateName: (o) => {
|
|
548
|
+
window.TopolPlugin.setTemplateName(o);
|
|
720
549
|
}
|
|
721
|
-
},
|
|
722
|
-
let
|
|
723
|
-
function
|
|
724
|
-
const
|
|
725
|
-
const
|
|
726
|
-
onSave(
|
|
727
|
-
|
|
550
|
+
}, qe = "editor";
|
|
551
|
+
let q = !1, F = !1;
|
|
552
|
+
function Je(o) {
|
|
553
|
+
const l = () => {
|
|
554
|
+
const c = {
|
|
555
|
+
onSave(r, i) {
|
|
556
|
+
o.onSave !== void 0 && o.onSave(r, i);
|
|
728
557
|
},
|
|
729
|
-
onSaveAndClose(
|
|
730
|
-
|
|
558
|
+
onSaveAndClose(r, i) {
|
|
559
|
+
o.onSaveAndClose !== void 0 && o.onSaveAndClose(r, i);
|
|
731
560
|
},
|
|
732
|
-
onTestSend(
|
|
733
|
-
|
|
561
|
+
onTestSend(r, i, f) {
|
|
562
|
+
o.onTestSend !== void 0 && o.onTestSend(r, i, f);
|
|
734
563
|
},
|
|
735
564
|
onOpenFileManager() {
|
|
736
|
-
|
|
565
|
+
o.onOpenFileManager !== void 0 && o.onOpenFileManager();
|
|
737
566
|
},
|
|
738
567
|
onLoaded() {
|
|
739
|
-
|
|
568
|
+
o.onLoaded !== void 0 && o.onLoaded();
|
|
740
569
|
},
|
|
741
|
-
onBlockSave(
|
|
742
|
-
|
|
570
|
+
onBlockSave(r) {
|
|
571
|
+
o.onBlockSave !== void 0 && o.onBlockSave(r);
|
|
743
572
|
},
|
|
744
|
-
onBlockRemove(
|
|
745
|
-
|
|
573
|
+
onBlockRemove(r) {
|
|
574
|
+
o.onBlockRemove !== void 0 && o.onBlockRemove(r);
|
|
746
575
|
},
|
|
747
|
-
onBlockEdit(
|
|
748
|
-
|
|
576
|
+
onBlockEdit(r) {
|
|
577
|
+
o.onBlockEdit !== void 0 && o.onBlockEdit(r);
|
|
749
578
|
},
|
|
750
579
|
onInit() {
|
|
751
|
-
|
|
580
|
+
o.onInit !== void 0 && o.onInit(), q = !1, F = !0;
|
|
581
|
+
},
|
|
582
|
+
onUndoChange(r) {
|
|
583
|
+
o.onUndoChange !== void 0 && o.onUndoChange(r);
|
|
584
|
+
},
|
|
585
|
+
onRedoChange(r) {
|
|
586
|
+
o.onRedoChange !== void 0 && o.onRedoChange(r);
|
|
587
|
+
},
|
|
588
|
+
onPreview(r) {
|
|
589
|
+
o.onPreview !== void 0 && o.onPreview(r);
|
|
752
590
|
},
|
|
753
|
-
|
|
754
|
-
|
|
591
|
+
onAlert(r) {
|
|
592
|
+
o.onAlert !== void 0 && o.onAlert(r);
|
|
755
593
|
},
|
|
756
|
-
|
|
757
|
-
|
|
594
|
+
onClose() {
|
|
595
|
+
o.onClose !== void 0 && o.onClose();
|
|
758
596
|
},
|
|
759
|
-
|
|
760
|
-
|
|
597
|
+
onEdittedWithoutSaveChanged(r) {
|
|
598
|
+
o.onEdittedWithoutSaveChanged !== void 0 && o.onEdittedWithoutSaveChanged(r);
|
|
761
599
|
},
|
|
762
|
-
|
|
763
|
-
|
|
600
|
+
onOpenCustomBlockDialog(r) {
|
|
601
|
+
o.onOpenCustomBlockDialog !== void 0 && o.onOpenCustomBlockDialog(r);
|
|
764
602
|
},
|
|
765
|
-
|
|
766
|
-
|
|
603
|
+
onTemplateRename(r) {
|
|
604
|
+
o.onTemplateRename !== void 0 && o.onTemplateRename(r);
|
|
767
605
|
},
|
|
768
|
-
|
|
769
|
-
|
|
606
|
+
updateTestingEmailAddresses(r) {
|
|
607
|
+
o.updateTestingEmailAddresses !== void 0 && o.updateTestingEmailAddresses(r);
|
|
770
608
|
},
|
|
771
|
-
|
|
772
|
-
|
|
609
|
+
onError(r, i) {
|
|
610
|
+
o.onError !== void 0 && o.onError(r, i);
|
|
773
611
|
}
|
|
774
612
|
};
|
|
775
|
-
return { id: "#" +
|
|
613
|
+
return { id: "#" + qe, ...o.options, callbacks: { ...c } };
|
|
776
614
|
};
|
|
777
|
-
return
|
|
778
|
-
|
|
779
|
-
const
|
|
780
|
-
await
|
|
615
|
+
return xe(() => (q || (async () => {
|
|
616
|
+
q = !0;
|
|
617
|
+
const r = l();
|
|
618
|
+
await me.init(r, { stage: o.stage || "production" });
|
|
781
619
|
})(), () => {
|
|
782
|
-
|
|
783
|
-
}), []), /* @__PURE__ */
|
|
620
|
+
F && (me.destroy(), F = !1);
|
|
621
|
+
}), []), /* @__PURE__ */ Ne.jsx(
|
|
784
622
|
"div",
|
|
785
623
|
{
|
|
786
624
|
id: "editor",
|
|
@@ -789,6 +627,6 @@ function Pr(t) {
|
|
|
789
627
|
);
|
|
790
628
|
}
|
|
791
629
|
export {
|
|
792
|
-
|
|
793
|
-
|
|
630
|
+
me as TopolPlugin,
|
|
631
|
+
Je as default
|
|
794
632
|
};
|