@topol.io/editor-react 0.1.0 → 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.
- package/README.md +1 -23
- package/dist/topol-editor-react.es.js +470 -656
- package/dist/topol-editor-react.umd.js +21 -17
- package/package.json +9 -9
|
@@ -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 = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
|
-
function m(e) {
|
|
24
|
-
{
|
|
25
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
26
|
-
t[o - 1] = arguments[o];
|
|
27
|
-
je("error", e, t);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function je(e, r, t) {
|
|
31
|
-
{
|
|
32
|
-
var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
|
|
33
|
-
s !== "" && (r += "%s", t = t.concat([s]));
|
|
34
|
-
var c = t.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 === b || Be || e === f || e === C || e === E || Ie || e === B || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || 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 We(e, r, t) {
|
|
50
|
-
var o = e.displayName;
|
|
51
|
-
if (o)
|
|
52
|
-
return o;
|
|
53
|
-
var s = r.displayName || r.name || "";
|
|
54
|
-
return s !== "" ? t + "(" + s + ")" : t;
|
|
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" && m("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 Le() {
|
|
109
|
-
{
|
|
110
|
-
if (A === 0) {
|
|
111
|
-
ne = console.log, te = 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: ne
|
|
142
|
-
}),
|
|
143
|
-
info: S({}, e, {
|
|
144
|
-
value: te
|
|
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 && m("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 Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
W = new Ne();
|
|
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
|
+
});
|
|
192
128
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
+
});
|
|
143
|
+
}
|
|
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 (R) {
|
|
227
|
-
o = R;
|
|
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, t = L(e.type, e._source, r ? r.type : null);
|
|
296
|
-
de.setExtraStackFrame(t);
|
|
297
|
-
} else
|
|
298
|
-
de.setExtraStackFrame(null);
|
|
299
|
-
}
|
|
300
|
-
function Ve(e, r, t, o, s) {
|
|
301
|
-
{
|
|
302
|
-
var c = Function.call.bind($);
|
|
303
|
-
for (var l in e)
|
|
304
|
-
if (c(e, l)) {
|
|
305
|
-
var i = void 0;
|
|
306
|
-
try {
|
|
307
|
-
if (typeof e[l] != "function") {
|
|
308
|
-
var p = Error((o || "React class") + ": " + t + " 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 p.name = "Invariant Violation", p;
|
|
310
|
-
}
|
|
311
|
-
i = e[l](r, l, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
|
-
} catch (d) {
|
|
313
|
-
i = d;
|
|
314
|
-
}
|
|
315
|
-
i && !(i instanceof Error) && (N(s), 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).", o || "React class", t, l, typeof i), N(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, N(s), m("Failed %s type: %s", t, i.message), N(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, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
326
|
-
return t;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function He(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 (He(e))
|
|
341
|
-
return m("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, Je = {
|
|
344
|
-
key: !0,
|
|
345
|
-
ref: !0,
|
|
346
|
-
__self: !0,
|
|
347
|
-
__source: !0
|
|
348
|
-
}, he, me, q;
|
|
349
|
-
q = {};
|
|
350
|
-
function Ge(e) {
|
|
351
|
-
if ($.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;
|
|
288
|
+
function O() {
|
|
289
|
+
var e = T.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
357
291
|
}
|
|
358
|
-
function
|
|
359
|
-
if (
|
|
360
|
-
var
|
|
361
|
-
if (
|
|
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 t = function() {
|
|
375
|
-
he || (he = !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)", r));
|
|
376
|
-
};
|
|
377
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
378
|
-
get: t,
|
|
379
|
-
configurable: !0
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Qe(e, r) {
|
|
384
|
-
{
|
|
385
|
-
var t = function() {
|
|
386
|
-
me || (me = !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)", r));
|
|
387
|
-
};
|
|
388
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
389
|
-
get: t,
|
|
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, p, s, o, D.current, l);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var H = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame;
|
|
442
|
-
function k(e) {
|
|
443
|
-
if (e) {
|
|
444
|
-
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
445
|
-
pe.setExtraStackFrame(t);
|
|
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(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
470
|
-
return `
|
|
471
|
-
|
|
472
|
-
Check your code at ` + r + ":" + t + ".";
|
|
473
|
-
}
|
|
474
|
-
return "";
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
var ye = {};
|
|
478
|
-
function tr(e) {
|
|
479
|
-
{
|
|
480
|
-
var r = Ee();
|
|
481
|
-
if (!r) {
|
|
482
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
483
|
-
t && (r = `
|
|
484
|
-
|
|
485
|
-
Check the top-level render call using <` + t + ">.");
|
|
486
|
-
}
|
|
487
|
-
return r;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function be(e, r) {
|
|
491
|
-
{
|
|
492
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
493
|
-
return;
|
|
494
|
-
e._store.validated = !0;
|
|
495
|
-
var t = tr(r);
|
|
496
|
-
if (ye[t])
|
|
497
|
-
return;
|
|
498
|
-
ye[t] = !0;
|
|
499
|
-
var o = "";
|
|
500
|
-
e && e._owner && e._owner !== H.current && (o = " It was passed a child from " + T(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, 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
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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))
|
|
390
|
+
for (var n = 0; n < e.length; n++) {
|
|
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
|
-
G(l.value) && be(l.value, r);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
function or(e) {
|
|
523
|
-
{
|
|
524
|
-
var r = e.type;
|
|
525
|
-
if (r == null || typeof r == "string")
|
|
526
|
-
return;
|
|
527
|
-
var t;
|
|
528
|
-
if (typeof r == "function")
|
|
529
|
-
t = r.propTypes;
|
|
530
|
-
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
531
|
-
// Inner props are checked in the reconciler.
|
|
532
|
-
r.$$typeof === w))
|
|
533
|
-
t = r.propTypes;
|
|
534
|
-
else
|
|
535
|
-
return;
|
|
536
|
-
if (t) {
|
|
537
|
-
var o = T(r);
|
|
538
|
-
Ve(t, e.props, "prop", o, e);
|
|
539
|
-
} else if (r.PropTypes !== void 0 && !J) {
|
|
540
|
-
J = !0;
|
|
541
|
-
var s = T(r);
|
|
542
|
-
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
543
|
-
}
|
|
544
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
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);
|
|
545
399
|
}
|
|
546
400
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
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;
|
|
557
418
|
}
|
|
558
419
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (o)
|
|
577
|
-
if (z(y)) {
|
|
578
|
-
for (var x = 0; x < y.length; x++)
|
|
579
|
-
we(y[x], e);
|
|
580
|
-
Object.freeze && Object.freeze(y);
|
|
581
|
-
} else
|
|
582
|
-
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.");
|
|
583
|
-
else
|
|
584
|
-
we(y, e);
|
|
585
|
-
}
|
|
586
|
-
return e === a ? ar(v) : or(v), v;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
function ir(e, r, t) {
|
|
590
|
-
return Te(e, r, t, !0);
|
|
591
|
-
}
|
|
592
|
-
function lr(e, r, t) {
|
|
593
|
-
return Te(e, r, t, !1);
|
|
594
|
-
}
|
|
595
|
-
var ur = lr, sr = ir;
|
|
596
|
-
F.Fragment = a, F.jsx = ur, F.jsxs = sr;
|
|
597
|
-
}()), F;
|
|
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 n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
615
|
-
function j(_, h, C) {
|
|
616
|
-
var E, w = {}, 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) && !b.hasOwnProperty(E) && (w[E] = h[E]);
|
|
620
|
-
if (_ && _.defaultProps)
|
|
621
|
-
for (E in h = _.defaultProps, h)
|
|
622
|
-
w[E] === void 0 && (w[E] = h[E]);
|
|
623
|
-
return { $$typeof: u, type: _, key: P, ref: B, props: w, _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 n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
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();
|
|
@@ -694,17 +508,17 @@ const Ce = {
|
|
|
694
508
|
destroy: () => {
|
|
695
509
|
window.TopolPlugin.destroy();
|
|
696
510
|
},
|
|
697
|
-
setSavedBlocks: (
|
|
698
|
-
window.TopolPlugin.setSavedBlocks(
|
|
511
|
+
setSavedBlocks: (o) => {
|
|
512
|
+
window.TopolPlugin.setSavedBlocks(o);
|
|
699
513
|
},
|
|
700
|
-
setPreviewHTML: (
|
|
701
|
-
window.TopolPlugin.setPreviewHTML(
|
|
514
|
+
setPreviewHTML: (o) => {
|
|
515
|
+
window.TopolPlugin.setPreviewHTML(o);
|
|
702
516
|
},
|
|
703
|
-
createNotification: (
|
|
704
|
-
window.TopolPlugin.createNotification(
|
|
517
|
+
createNotification: (o) => {
|
|
518
|
+
window.TopolPlugin.createNotification(o);
|
|
705
519
|
},
|
|
706
|
-
setActiveMembers: (
|
|
707
|
-
window.TopolPlugin.setActiveMembers(
|
|
520
|
+
setActiveMembers: (o) => {
|
|
521
|
+
window.TopolPlugin.setActiveMembers(o);
|
|
708
522
|
},
|
|
709
523
|
changeEmailToMobile: () => {
|
|
710
524
|
window.TopolPlugin.changeEmailToMobile();
|
|
@@ -715,11 +529,11 @@ const Ce = {
|
|
|
715
529
|
toggleBlocksAndStructuresVisibility: () => {
|
|
716
530
|
window.TopolPlugin.toggleBlocksAndStructuresVisibility();
|
|
717
531
|
},
|
|
718
|
-
updateCustomBlockContent: (
|
|
719
|
-
window.TopolPlugin.updateCustomBlockContent(
|
|
532
|
+
updateCustomBlockContent: (o) => {
|
|
533
|
+
window.TopolPlugin.updateCustomBlockContent(o);
|
|
720
534
|
},
|
|
721
|
-
refreshComments: (
|
|
722
|
-
window.TopolPlugin.refreshComments(
|
|
535
|
+
refreshComments: (o) => {
|
|
536
|
+
window.TopolPlugin.refreshComments(o);
|
|
723
537
|
},
|
|
724
538
|
refreshSyncedRows: () => {
|
|
725
539
|
window.TopolPlugin.refreshSyncedRows();
|
|
@@ -727,84 +541,84 @@ const Ce = {
|
|
|
727
541
|
openPremadeTemplatesSelection: () => {
|
|
728
542
|
window.TopolPlugin.openPremadeTemplatesSelection();
|
|
729
543
|
},
|
|
730
|
-
updateApiAuthorizationHeader: (
|
|
731
|
-
window.TopolPlugin.updateApiAuthorizationHeader(
|
|
544
|
+
updateApiAuthorizationHeader: (o) => {
|
|
545
|
+
window.TopolPlugin.updateApiAuthorizationHeader(o);
|
|
732
546
|
},
|
|
733
|
-
setTemplateName: (
|
|
734
|
-
window.TopolPlugin.setTemplateName(
|
|
547
|
+
setTemplateName: (o) => {
|
|
548
|
+
window.TopolPlugin.setTemplateName(o);
|
|
735
549
|
}
|
|
736
|
-
},
|
|
737
|
-
let
|
|
738
|
-
function
|
|
739
|
-
const
|
|
740
|
-
const
|
|
741
|
-
onSave(
|
|
742
|
-
|
|
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);
|
|
743
557
|
},
|
|
744
|
-
onSaveAndClose(
|
|
745
|
-
|
|
558
|
+
onSaveAndClose(r, i) {
|
|
559
|
+
o.onSaveAndClose !== void 0 && o.onSaveAndClose(r, i);
|
|
746
560
|
},
|
|
747
|
-
onTestSend(
|
|
748
|
-
|
|
561
|
+
onTestSend(r, i, f) {
|
|
562
|
+
o.onTestSend !== void 0 && o.onTestSend(r, i, f);
|
|
749
563
|
},
|
|
750
564
|
onOpenFileManager() {
|
|
751
|
-
|
|
565
|
+
o.onOpenFileManager !== void 0 && o.onOpenFileManager();
|
|
752
566
|
},
|
|
753
567
|
onLoaded() {
|
|
754
|
-
|
|
568
|
+
o.onLoaded !== void 0 && o.onLoaded();
|
|
755
569
|
},
|
|
756
|
-
onBlockSave(
|
|
757
|
-
|
|
570
|
+
onBlockSave(r) {
|
|
571
|
+
o.onBlockSave !== void 0 && o.onBlockSave(r);
|
|
758
572
|
},
|
|
759
|
-
onBlockRemove(
|
|
760
|
-
|
|
573
|
+
onBlockRemove(r) {
|
|
574
|
+
o.onBlockRemove !== void 0 && o.onBlockRemove(r);
|
|
761
575
|
},
|
|
762
|
-
onBlockEdit(
|
|
763
|
-
|
|
576
|
+
onBlockEdit(r) {
|
|
577
|
+
o.onBlockEdit !== void 0 && o.onBlockEdit(r);
|
|
764
578
|
},
|
|
765
579
|
onInit() {
|
|
766
|
-
|
|
580
|
+
o.onInit !== void 0 && o.onInit(), q = !1, F = !0;
|
|
767
581
|
},
|
|
768
|
-
onUndoChange(
|
|
769
|
-
|
|
582
|
+
onUndoChange(r) {
|
|
583
|
+
o.onUndoChange !== void 0 && o.onUndoChange(r);
|
|
770
584
|
},
|
|
771
|
-
onRedoChange(
|
|
772
|
-
|
|
585
|
+
onRedoChange(r) {
|
|
586
|
+
o.onRedoChange !== void 0 && o.onRedoChange(r);
|
|
773
587
|
},
|
|
774
|
-
onPreview(
|
|
775
|
-
|
|
588
|
+
onPreview(r) {
|
|
589
|
+
o.onPreview !== void 0 && o.onPreview(r);
|
|
776
590
|
},
|
|
777
|
-
onAlert(
|
|
778
|
-
|
|
591
|
+
onAlert(r) {
|
|
592
|
+
o.onAlert !== void 0 && o.onAlert(r);
|
|
779
593
|
},
|
|
780
594
|
onClose() {
|
|
781
|
-
|
|
595
|
+
o.onClose !== void 0 && o.onClose();
|
|
782
596
|
},
|
|
783
|
-
onEdittedWithoutSaveChanged(
|
|
784
|
-
|
|
597
|
+
onEdittedWithoutSaveChanged(r) {
|
|
598
|
+
o.onEdittedWithoutSaveChanged !== void 0 && o.onEdittedWithoutSaveChanged(r);
|
|
785
599
|
},
|
|
786
|
-
onOpenCustomBlockDialog(
|
|
787
|
-
|
|
600
|
+
onOpenCustomBlockDialog(r) {
|
|
601
|
+
o.onOpenCustomBlockDialog !== void 0 && o.onOpenCustomBlockDialog(r);
|
|
788
602
|
},
|
|
789
|
-
onTemplateRename(
|
|
790
|
-
|
|
603
|
+
onTemplateRename(r) {
|
|
604
|
+
o.onTemplateRename !== void 0 && o.onTemplateRename(r);
|
|
791
605
|
},
|
|
792
|
-
updateTestingEmailAddresses(
|
|
793
|
-
|
|
606
|
+
updateTestingEmailAddresses(r) {
|
|
607
|
+
o.updateTestingEmailAddresses !== void 0 && o.updateTestingEmailAddresses(r);
|
|
794
608
|
},
|
|
795
|
-
onError(
|
|
796
|
-
|
|
609
|
+
onError(r, i) {
|
|
610
|
+
o.onError !== void 0 && o.onError(r, i);
|
|
797
611
|
}
|
|
798
612
|
};
|
|
799
|
-
return { id: "#" +
|
|
613
|
+
return { id: "#" + qe, ...o.options, callbacks: { ...c } };
|
|
800
614
|
};
|
|
801
|
-
return
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
await
|
|
615
|
+
return xe(() => (q || (async () => {
|
|
616
|
+
q = !0;
|
|
617
|
+
const r = l();
|
|
618
|
+
await me.init(r, { stage: o.stage || "production" });
|
|
805
619
|
})(), () => {
|
|
806
|
-
|
|
807
|
-
}), []), /* @__PURE__ */
|
|
620
|
+
F && (me.destroy(), F = !1);
|
|
621
|
+
}), []), /* @__PURE__ */ Ne.jsx(
|
|
808
622
|
"div",
|
|
809
623
|
{
|
|
810
624
|
id: "editor",
|
|
@@ -813,6 +627,6 @@ function Pr(n) {
|
|
|
813
627
|
);
|
|
814
628
|
}
|
|
815
629
|
export {
|
|
816
|
-
|
|
817
|
-
|
|
630
|
+
me as TopolPlugin,
|
|
631
|
+
Je as default
|
|
818
632
|
};
|