@vis3/kit 1.1.8 → 1.1.10
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/components/Block/index.d.ts +1 -1
- package/dist/components/CodeViewer/CodeViewer.d.ts +7 -0
- package/dist/components/CodeViewer/context.d.ts +2 -2
- package/dist/components/CodeViewer/index.d.ts +2 -7
- package/dist/components/Renderer/Card.d.ts +1 -1
- package/dist/components/Renderer/contexts/types.d.ts +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +1060 -1042
- package/dist/index.umd.js +75 -72
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as q, jsxs as Ye, Fragment as r4 } from "react/jsx-runtime";
|
|
2
2
|
import * as Y from "react";
|
|
3
|
-
import A2, { createContext as Ni, useContext as Qn, useEffect as rt, forwardRef as Fo, createElement as Ar, isValidElement as q7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as Et, useState as Ke, useRef as
|
|
3
|
+
import A2, { createContext as Ni, useContext as Qn, useEffect as rt, forwardRef as Fo, createElement as Ar, isValidElement as q7, cloneElement as WS, Children as sD, Fragment as lD, useCallback as Et, useState as Ke, useRef as $t, useMemo as Ce, useLayoutEffect as GS, useImperativeHandle as YS } from "react";
|
|
4
4
|
import { Tooltip as C1, Button as A1, Card as uD, Image as to, Table as cD, Form as f7, Popover as KS, Input as JS, Divider as eE, Dropdown as QD, Space as tE, List as rE, Tag as D9, message as TD, Spin as fD, Descriptions as hD } from "antd";
|
|
5
5
|
import BQ from "react-dom";
|
|
6
6
|
const nE = /* @__PURE__ */ Ni({});
|
|
@@ -1897,24 +1897,24 @@ function jV() {
|
|
|
1897
1897
|
var z = I.$$typeof;
|
|
1898
1898
|
switch (z) {
|
|
1899
1899
|
case e:
|
|
1900
|
-
var
|
|
1901
|
-
switch (
|
|
1900
|
+
var G = I.type;
|
|
1901
|
+
switch (G) {
|
|
1902
1902
|
case l:
|
|
1903
1903
|
case u:
|
|
1904
1904
|
case n:
|
|
1905
1905
|
case a:
|
|
1906
1906
|
case i:
|
|
1907
1907
|
case Q:
|
|
1908
|
-
return
|
|
1908
|
+
return G;
|
|
1909
1909
|
default:
|
|
1910
|
-
var
|
|
1911
|
-
switch (
|
|
1910
|
+
var K = G && G.$$typeof;
|
|
1911
|
+
switch (K) {
|
|
1912
1912
|
case s:
|
|
1913
1913
|
case c:
|
|
1914
1914
|
case h:
|
|
1915
1915
|
case f:
|
|
1916
1916
|
case o:
|
|
1917
|
-
return
|
|
1917
|
+
return K;
|
|
1918
1918
|
default:
|
|
1919
1919
|
return z;
|
|
1920
1920
|
}
|
|
@@ -1940,7 +1940,7 @@ function jV() {
|
|
|
1940
1940
|
function k(I) {
|
|
1941
1941
|
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function ee(I) {
|
|
1944
1944
|
return x(I) === c;
|
|
1945
1945
|
}
|
|
1946
1946
|
function ae(I) {
|
|
@@ -1949,13 +1949,13 @@ function jV() {
|
|
|
1949
1949
|
function ie(I) {
|
|
1950
1950
|
return x(I) === h;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function W(I) {
|
|
1953
1953
|
return x(I) === f;
|
|
1954
1954
|
}
|
|
1955
1955
|
function X(I) {
|
|
1956
1956
|
return x(I) === r;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function J(I) {
|
|
1959
1959
|
return x(I) === a;
|
|
1960
1960
|
}
|
|
1961
1961
|
function re(I) {
|
|
@@ -1964,7 +1964,7 @@ function jV() {
|
|
|
1964
1964
|
function oe(I) {
|
|
1965
1965
|
return x(I) === Q;
|
|
1966
1966
|
}
|
|
1967
|
-
it.AsyncMode = O, it.ConcurrentMode = v, it.ContextConsumer = L, it.ContextProvider = b, it.Element = S, it.ForwardRef = E, it.Fragment = C, it.Lazy = A, it.Memo = w, it.Portal = M, it.Profiler = P, it.StrictMode = N, it.Suspense = $, it.isAsyncMode = V, it.isConcurrentMode = _, it.isContextConsumer = D, it.isContextProvider = Z, it.isElement = k, it.isForwardRef =
|
|
1967
|
+
it.AsyncMode = O, it.ConcurrentMode = v, it.ContextConsumer = L, it.ContextProvider = b, it.Element = S, it.ForwardRef = E, it.Fragment = C, it.Lazy = A, it.Memo = w, it.Portal = M, it.Profiler = P, it.StrictMode = N, it.Suspense = $, it.isAsyncMode = V, it.isConcurrentMode = _, it.isContextConsumer = D, it.isContextProvider = Z, it.isElement = k, it.isForwardRef = ee, it.isFragment = ae, it.isLazy = ie, it.isMemo = W, it.isPortal = X, it.isProfiler = J, it.isStrictMode = re, it.isSuspense = oe, it.isValidElementType = y, it.typeOf = x;
|
|
1968
1968
|
}()), it;
|
|
1969
1969
|
}
|
|
1970
1970
|
var Th;
|
|
@@ -2688,20 +2688,20 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
|
|
|
2688
2688
|
}, M.valueOf = function() {
|
|
2689
2689
|
return this.$d.getTime();
|
|
2690
2690
|
}, M.startOf = function(P, N) {
|
|
2691
|
-
var $ = this, R = !!E.u(N) || N, V = E.p(P), _ = function(X,
|
|
2692
|
-
var re = E.w($.$u ? Date.UTC($.$y,
|
|
2691
|
+
var $ = this, R = !!E.u(N) || N, V = E.p(P), _ = function(X, J) {
|
|
2692
|
+
var re = E.w($.$u ? Date.UTC($.$y, J, X) : new Date($.$y, J, X), $);
|
|
2693
2693
|
return R ? re : re.endOf(u);
|
|
2694
|
-
}, D = function(X,
|
|
2695
|
-
return E.w($.toDate()[X].apply($.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
2696
|
-
}, Z = this.$W, k = this.$M,
|
|
2694
|
+
}, D = function(X, J) {
|
|
2695
|
+
return E.w($.toDate()[X].apply($.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), $);
|
|
2696
|
+
}, Z = this.$W, k = this.$M, ee = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
2697
2697
|
switch (V) {
|
|
2698
2698
|
case f:
|
|
2699
2699
|
return R ? _(1, 0) : _(31, 11);
|
|
2700
2700
|
case Q:
|
|
2701
2701
|
return R ? _(1, k) : _(0, k + 1);
|
|
2702
2702
|
case c:
|
|
2703
|
-
var ie = this.$locale().weekStart || 0,
|
|
2704
|
-
return _(R ?
|
|
2703
|
+
var ie = this.$locale().weekStart || 0, W = (Z < ie ? Z + 7 : Z) - ie;
|
|
2704
|
+
return _(R ? ee - W : ee + (6 - W), k);
|
|
2705
2705
|
case u:
|
|
2706
2706
|
case h:
|
|
2707
2707
|
return D(ae + "Hours", 0);
|
|
@@ -2732,8 +2732,8 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
|
|
|
2732
2732
|
var $, R = this;
|
|
2733
2733
|
P = Number(P);
|
|
2734
2734
|
var V = E.p(N), _ = function(k) {
|
|
2735
|
-
var
|
|
2736
|
-
return E.w(
|
|
2735
|
+
var ee = S(R);
|
|
2736
|
+
return E.w(ee.date(ee.date() + Math.round(k * P)), R);
|
|
2737
2737
|
};
|
|
2738
2738
|
if (V === Q)
|
|
2739
2739
|
return this.set(Q, this.$M + P);
|
|
@@ -2751,16 +2751,16 @@ var dR = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof wi
|
|
|
2751
2751
|
var N = this, $ = this.$locale();
|
|
2752
2752
|
if (!this.isValid())
|
|
2753
2753
|
return $.invalidDate || p;
|
|
2754
|
-
var R = P || "YYYY-MM-DDTHH:mm:ssZ", V = E.z(this), _ = this.$H, D = this.$m, Z = this.$M, k = $.weekdays,
|
|
2755
|
-
return
|
|
2756
|
-
}, ie = function(
|
|
2757
|
-
return E.s(_ % 12 || 12,
|
|
2758
|
-
},
|
|
2759
|
-
var I =
|
|
2754
|
+
var R = P || "YYYY-MM-DDTHH:mm:ssZ", V = E.z(this), _ = this.$H, D = this.$m, Z = this.$M, k = $.weekdays, ee = $.months, ae = function(J, re, oe, I) {
|
|
2755
|
+
return J && (J[re] || J(N, R)) || oe[re].slice(0, I);
|
|
2756
|
+
}, ie = function(J) {
|
|
2757
|
+
return E.s(_ % 12 || 12, J, "0");
|
|
2758
|
+
}, W = $.meridiem || function(J, re, oe) {
|
|
2759
|
+
var I = J < 12 ? "AM" : "PM";
|
|
2760
2760
|
return oe ? I.toLowerCase() : I;
|
|
2761
|
-
}, X = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Z + 1, MM: E.s(Z + 1, 2, "0"), MMM: ae($.monthsShort, Z,
|
|
2762
|
-
return R.replace(d, function(
|
|
2763
|
-
return re || X[
|
|
2761
|
+
}, X = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Z + 1, MM: E.s(Z + 1, 2, "0"), MMM: ae($.monthsShort, Z, ee, 3), MMMM: ae(ee, Z), D: this.$D, DD: E.s(this.$D, 2, "0"), d: String(this.$W), dd: ae($.weekdaysMin, this.$W, k, 2), ddd: ae($.weekdaysShort, this.$W, k, 3), dddd: k[this.$W], H: String(_), HH: E.s(_, 2, "0"), h: ie(1), hh: ie(2), a: W(_, D, !0), A: W(_, D, !1), m: String(D), mm: E.s(D, 2, "0"), s: String(this.$s), ss: E.s(this.$s, 2, "0"), SSS: E.s(this.$ms, 3, "0"), Z: V };
|
|
2762
|
+
return R.replace(d, function(J, re) {
|
|
2763
|
+
return re || X[J] || V.replace(":", "");
|
|
2764
2764
|
});
|
|
2765
2765
|
}, M.utcOffset = function() {
|
|
2766
2766
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -3358,7 +3358,7 @@ function P9e({
|
|
|
3358
3358
|
});
|
|
3359
3359
|
}
|
|
3360
3360
|
const QI = (t, e) => {
|
|
3361
|
-
const r =
|
|
3361
|
+
const r = $t();
|
|
3362
3362
|
return rt(() => {
|
|
3363
3363
|
r.current = t;
|
|
3364
3364
|
}, [t, e]), r.current;
|
|
@@ -3388,7 +3388,7 @@ const QI = (t, e) => {
|
|
|
3388
3388
|
const c = (a.isInitialized || a.initializedStoreOnce) && u.every((x) => XR(x, a, o)), Q = TI(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], l), T = () => Q, f = () => BE(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], l), [h, p] = Ke(T);
|
|
3389
3389
|
let g = u.join();
|
|
3390
3390
|
e.lng && (g = `${e.lng}${g}`);
|
|
3391
|
-
const d = QI(g), m =
|
|
3391
|
+
const d = QI(g), m = $t(!0);
|
|
3392
3392
|
rt(() => {
|
|
3393
3393
|
const {
|
|
3394
3394
|
bindI18n: x,
|
|
@@ -5569,8 +5569,12 @@ function M$(t) {
|
|
|
5569
5569
|
function P$(t) {
|
|
5570
5570
|
if (!t || typeof t != "string")
|
|
5571
5571
|
return "";
|
|
5572
|
-
|
|
5573
|
-
|
|
5572
|
+
try {
|
|
5573
|
+
const e = new URL(t).pathname;
|
|
5574
|
+
return decodeURIComponent(e.split("/").pop() ?? "");
|
|
5575
|
+
} catch {
|
|
5576
|
+
return "";
|
|
5577
|
+
}
|
|
5574
5578
|
}
|
|
5575
5579
|
function sc(t) {
|
|
5576
5580
|
if (typeof t != "string" || !t)
|
|
@@ -9190,28 +9194,28 @@ function aT() {
|
|
|
9190
9194
|
n(e);
|
|
9191
9195
|
})(Tq, function(r) {
|
|
9192
9196
|
function n(X) {
|
|
9193
|
-
return function(re, oe, I, z,
|
|
9194
|
-
return X(re, oe,
|
|
9197
|
+
return function(re, oe, I, z, G, K, ue) {
|
|
9198
|
+
return X(re, oe, ue);
|
|
9195
9199
|
};
|
|
9196
9200
|
}
|
|
9197
9201
|
function i(X) {
|
|
9198
9202
|
return function(re, oe, I, z) {
|
|
9199
9203
|
if (!re || !oe || typeof re != "object" || typeof oe != "object")
|
|
9200
9204
|
return X(re, oe, I, z);
|
|
9201
|
-
var
|
|
9202
|
-
if (
|
|
9203
|
-
return
|
|
9205
|
+
var G = z.get(re), K = z.get(oe);
|
|
9206
|
+
if (G && K)
|
|
9207
|
+
return G === oe && K === re;
|
|
9204
9208
|
z.set(re, oe), z.set(oe, re);
|
|
9205
|
-
var
|
|
9206
|
-
return z.delete(re), z.delete(oe),
|
|
9209
|
+
var ue = X(re, oe, I, z);
|
|
9210
|
+
return z.delete(re), z.delete(oe), ue;
|
|
9207
9211
|
};
|
|
9208
9212
|
}
|
|
9209
|
-
function a(X,
|
|
9213
|
+
function a(X, J) {
|
|
9210
9214
|
var re = {};
|
|
9211
9215
|
for (var oe in X)
|
|
9212
9216
|
re[oe] = X[oe];
|
|
9213
|
-
for (var oe in
|
|
9214
|
-
re[oe] =
|
|
9217
|
+
for (var oe in J)
|
|
9218
|
+
re[oe] = J[oe];
|
|
9215
9219
|
return re;
|
|
9216
9220
|
}
|
|
9217
9221
|
function o(X) {
|
|
@@ -9220,89 +9224,89 @@ function aT() {
|
|
|
9220
9224
|
function s(X) {
|
|
9221
9225
|
return typeof X.then == "function";
|
|
9222
9226
|
}
|
|
9223
|
-
function l(X,
|
|
9224
|
-
return X ===
|
|
9227
|
+
function l(X, J) {
|
|
9228
|
+
return X === J || X !== X && J !== J;
|
|
9225
9229
|
}
|
|
9226
9230
|
var u = "[object Arguments]", c = "[object Boolean]", Q = "[object Date]", T = "[object RegExp]", f = "[object Map]", h = "[object Number]", p = "[object Object]", g = "[object Set]", d = "[object String]", m = Object.prototype.toString;
|
|
9227
9231
|
function y(X) {
|
|
9228
|
-
var
|
|
9232
|
+
var J = X.areArraysEqual, re = X.areDatesEqual, oe = X.areMapsEqual, I = X.areObjectsEqual, z = X.areRegExpsEqual, G = X.areSetsEqual, K = X.createIsNestedEqual, ue = K(ge);
|
|
9229
9233
|
function ge(he, xe, Ie) {
|
|
9230
9234
|
if (he === xe)
|
|
9231
9235
|
return !0;
|
|
9232
9236
|
if (!he || !xe || typeof he != "object" || typeof xe != "object")
|
|
9233
9237
|
return he !== he && xe !== xe;
|
|
9234
9238
|
if (o(he) && o(xe))
|
|
9235
|
-
return I(he, xe,
|
|
9239
|
+
return I(he, xe, ue, Ie);
|
|
9236
9240
|
var Qt = Array.isArray(he), K2 = Array.isArray(xe);
|
|
9237
9241
|
if (Qt || K2)
|
|
9238
|
-
return Qt === K2 &&
|
|
9242
|
+
return Qt === K2 && J(he, xe, ue, Ie);
|
|
9239
9243
|
var Ct = m.call(he);
|
|
9240
|
-
return Ct !== m.call(xe) ? !1 : Ct === Q ? re(he, xe,
|
|
9244
|
+
return Ct !== m.call(xe) ? !1 : Ct === Q ? re(he, xe, ue, Ie) : Ct === T ? z(he, xe, ue, Ie) : Ct === f ? oe(he, xe, ue, Ie) : Ct === g ? G(he, xe, ue, Ie) : Ct === p || Ct === u ? s(he) || s(xe) ? !1 : I(he, xe, ue, Ie) : Ct === c || Ct === h || Ct === d ? l(he.valueOf(), xe.valueOf()) : !1;
|
|
9241
9245
|
}
|
|
9242
9246
|
return ge;
|
|
9243
9247
|
}
|
|
9244
|
-
function x(X,
|
|
9248
|
+
function x(X, J, re, oe) {
|
|
9245
9249
|
var I = X.length;
|
|
9246
|
-
if (
|
|
9250
|
+
if (J.length !== I)
|
|
9247
9251
|
return !1;
|
|
9248
9252
|
for (; I-- > 0; )
|
|
9249
|
-
if (!re(X[I],
|
|
9253
|
+
if (!re(X[I], J[I], I, I, X, J, oe))
|
|
9250
9254
|
return !1;
|
|
9251
9255
|
return !0;
|
|
9252
9256
|
}
|
|
9253
9257
|
var O = i(x);
|
|
9254
|
-
function v(X,
|
|
9255
|
-
return l(X.valueOf(),
|
|
9258
|
+
function v(X, J) {
|
|
9259
|
+
return l(X.valueOf(), J.valueOf());
|
|
9256
9260
|
}
|
|
9257
|
-
function L(X,
|
|
9258
|
-
var I = X.size ===
|
|
9261
|
+
function L(X, J, re, oe) {
|
|
9262
|
+
var I = X.size === J.size;
|
|
9259
9263
|
if (!I)
|
|
9260
9264
|
return !1;
|
|
9261
9265
|
if (!X.size)
|
|
9262
9266
|
return !0;
|
|
9263
|
-
var z = {},
|
|
9264
|
-
return X.forEach(function(
|
|
9267
|
+
var z = {}, G = 0;
|
|
9268
|
+
return X.forEach(function(K, ue) {
|
|
9265
9269
|
if (I) {
|
|
9266
9270
|
var ge = !1, he = 0;
|
|
9267
|
-
|
|
9268
|
-
!ge && !z[he] && (ge = re(
|
|
9269
|
-
}),
|
|
9271
|
+
J.forEach(function(xe, Ie) {
|
|
9272
|
+
!ge && !z[he] && (ge = re(ue, Ie, G, he, X, J, oe) && re(K, xe, ue, Ie, X, J, oe)) && (z[he] = !0), he++;
|
|
9273
|
+
}), G++, I = ge;
|
|
9270
9274
|
}
|
|
9271
9275
|
}), I;
|
|
9272
9276
|
}
|
|
9273
9277
|
var b = i(L), S = "_owner", E = Object.prototype.hasOwnProperty;
|
|
9274
|
-
function C(X,
|
|
9278
|
+
function C(X, J, re, oe) {
|
|
9275
9279
|
var I = Object.keys(X), z = I.length;
|
|
9276
|
-
if (Object.keys(
|
|
9280
|
+
if (Object.keys(J).length !== z)
|
|
9277
9281
|
return !1;
|
|
9278
|
-
for (var
|
|
9279
|
-
if (
|
|
9280
|
-
var
|
|
9281
|
-
if ((
|
|
9282
|
+
for (var G; z-- > 0; ) {
|
|
9283
|
+
if (G = I[z], G === S) {
|
|
9284
|
+
var K = !!X.$$typeof, ue = !!J.$$typeof;
|
|
9285
|
+
if ((K || ue) && K !== ue)
|
|
9282
9286
|
return !1;
|
|
9283
9287
|
}
|
|
9284
|
-
if (!E.call(
|
|
9288
|
+
if (!E.call(J, G) || !re(X[G], J[G], G, G, X, J, oe))
|
|
9285
9289
|
return !1;
|
|
9286
9290
|
}
|
|
9287
9291
|
return !0;
|
|
9288
9292
|
}
|
|
9289
9293
|
var A = i(C);
|
|
9290
|
-
function w(X,
|
|
9291
|
-
return X.source ===
|
|
9294
|
+
function w(X, J) {
|
|
9295
|
+
return X.source === J.source && X.flags === J.flags;
|
|
9292
9296
|
}
|
|
9293
|
-
function M(X,
|
|
9294
|
-
var I = X.size ===
|
|
9297
|
+
function M(X, J, re, oe) {
|
|
9298
|
+
var I = X.size === J.size;
|
|
9295
9299
|
if (!I)
|
|
9296
9300
|
return !1;
|
|
9297
9301
|
if (!X.size)
|
|
9298
9302
|
return !0;
|
|
9299
9303
|
var z = {};
|
|
9300
|
-
return X.forEach(function(
|
|
9304
|
+
return X.forEach(function(G, K) {
|
|
9301
9305
|
if (I) {
|
|
9302
|
-
var
|
|
9303
|
-
|
|
9304
|
-
!
|
|
9305
|
-
}), I =
|
|
9306
|
+
var ue = !1, ge = 0;
|
|
9307
|
+
J.forEach(function(he, xe) {
|
|
9308
|
+
!ue && !z[ge] && (ue = re(G, he, K, xe, X, J, oe)) && (z[ge] = !0), ge++;
|
|
9309
|
+
}), I = ue;
|
|
9306
9310
|
}
|
|
9307
9311
|
}), I;
|
|
9308
9312
|
}
|
|
@@ -9323,37 +9327,37 @@ function aT() {
|
|
|
9323
9327
|
areSetsEqual: P,
|
|
9324
9328
|
createIsNestedEqual: n
|
|
9325
9329
|
}), R = y(N);
|
|
9326
|
-
function V(X,
|
|
9327
|
-
return R(X,
|
|
9330
|
+
function V(X, J) {
|
|
9331
|
+
return R(X, J, void 0);
|
|
9328
9332
|
}
|
|
9329
9333
|
var _ = y(a(N, { createIsNestedEqual: function() {
|
|
9330
9334
|
return l;
|
|
9331
9335
|
} }));
|
|
9332
|
-
function D(X,
|
|
9333
|
-
return _(X,
|
|
9336
|
+
function D(X, J) {
|
|
9337
|
+
return _(X, J, void 0);
|
|
9334
9338
|
}
|
|
9335
9339
|
var Z = y($);
|
|
9336
|
-
function k(X,
|
|
9337
|
-
return Z(X,
|
|
9340
|
+
function k(X, J) {
|
|
9341
|
+
return Z(X, J, /* @__PURE__ */ new WeakMap());
|
|
9338
9342
|
}
|
|
9339
|
-
var
|
|
9343
|
+
var ee = y(a($, {
|
|
9340
9344
|
createIsNestedEqual: function() {
|
|
9341
9345
|
return l;
|
|
9342
9346
|
}
|
|
9343
9347
|
}));
|
|
9344
|
-
function ae(X,
|
|
9345
|
-
return
|
|
9348
|
+
function ae(X, J) {
|
|
9349
|
+
return ee(X, J, /* @__PURE__ */ new WeakMap());
|
|
9346
9350
|
}
|
|
9347
9351
|
function ie(X) {
|
|
9348
9352
|
return y(a(N, X(N)));
|
|
9349
9353
|
}
|
|
9350
|
-
function
|
|
9351
|
-
var
|
|
9354
|
+
function W(X) {
|
|
9355
|
+
var J = y(a($, X($)));
|
|
9352
9356
|
return function(re, oe, I) {
|
|
9353
|
-
return I === void 0 && (I = /* @__PURE__ */ new WeakMap()),
|
|
9357
|
+
return I === void 0 && (I = /* @__PURE__ */ new WeakMap()), J(re, oe, I);
|
|
9354
9358
|
};
|
|
9355
9359
|
}
|
|
9356
|
-
r.circularDeepEqual = k, r.circularShallowEqual = ae, r.createCustomCircularEqual =
|
|
9360
|
+
r.circularDeepEqual = k, r.circularShallowEqual = ae, r.createCustomCircularEqual = W, r.createCustomEqual = ie, r.deepEqual = V, r.sameValueZeroEqual = l, r.shallowEqual = D, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
9357
9361
|
});
|
|
9358
9362
|
}(_a, _a.exports)), _a.exports;
|
|
9359
9363
|
}
|
|
@@ -9387,33 +9391,33 @@ function Y6() {
|
|
|
9387
9391
|
if (vd) return Ze;
|
|
9388
9392
|
vd = 1, Object.defineProperty(Ze, "__esModule", {
|
|
9389
9393
|
value: !0
|
|
9390
|
-
}), Ze.bottom = i, Ze.childrenEqual = u, Ze.cloneLayout = a, Ze.cloneLayoutItem = l, Ze.collides = Q, Ze.compact = T, Ze.compactItem = p, Ze.compactType =
|
|
9394
|
+
}), Ze.bottom = i, Ze.childrenEqual = u, Ze.cloneLayout = a, Ze.cloneLayoutItem = l, Ze.collides = Q, Ze.compact = T, Ze.compactItem = p, Ze.compactType = J, Ze.correctBounds = g, Ze.fastPositionEqual = c, Ze.fastRGLPropsEqual = void 0, Ze.getAllCollisions = y, Ze.getFirstCollision = m, Ze.getLayoutItem = d, Ze.getStatics = x, Ze.modifyLayout = o, Ze.moveElement = O, Ze.moveElementAwayFromCollision = v, Ze.noop = void 0, Ze.perc = L, Ze.resizeItemInDirection = D, Ze.setTopLeft = k, Ze.setTransform = Z, Ze.sortLayoutItems = ee, Ze.sortLayoutItemsByColRow = ie, Ze.sortLayoutItemsByRowCol = ae, Ze.synchronizeLayoutWithChildren = W, Ze.validateLayout = X, Ze.withLayoutItem = s;
|
|
9391
9395
|
var t = /* @__PURE__ */ aT(), e = r(A2);
|
|
9392
9396
|
function r(I) {
|
|
9393
9397
|
return I && I.__esModule ? I : { default: I };
|
|
9394
9398
|
}
|
|
9395
9399
|
const n = process.env.NODE_ENV === "production";
|
|
9396
9400
|
function i(I) {
|
|
9397
|
-
let z = 0,
|
|
9398
|
-
for (let
|
|
9399
|
-
|
|
9401
|
+
let z = 0, G;
|
|
9402
|
+
for (let K = 0, ue = I.length; K < ue; K++)
|
|
9403
|
+
G = I[K].y + I[K].h, G > z && (z = G);
|
|
9400
9404
|
return z;
|
|
9401
9405
|
}
|
|
9402
9406
|
function a(I) {
|
|
9403
9407
|
const z = Array(I.length);
|
|
9404
|
-
for (let
|
|
9405
|
-
z[
|
|
9408
|
+
for (let G = 0, K = I.length; G < K; G++)
|
|
9409
|
+
z[G] = l(I[G]);
|
|
9406
9410
|
return z;
|
|
9407
9411
|
}
|
|
9408
9412
|
function o(I, z) {
|
|
9409
|
-
const
|
|
9410
|
-
for (let
|
|
9411
|
-
z.i === I[
|
|
9412
|
-
return
|
|
9413
|
+
const G = Array(I.length);
|
|
9414
|
+
for (let K = 0, ue = I.length; K < ue; K++)
|
|
9415
|
+
z.i === I[K].i ? G[K] = z : G[K] = I[K];
|
|
9416
|
+
return G;
|
|
9413
9417
|
}
|
|
9414
|
-
function s(I, z,
|
|
9415
|
-
let
|
|
9416
|
-
return
|
|
9418
|
+
function s(I, z, G) {
|
|
9419
|
+
let K = d(I, z);
|
|
9420
|
+
return K ? (K = G(l(K)), I = o(I, K), [I, K]) : [I, null];
|
|
9417
9421
|
}
|
|
9418
9422
|
function l(I) {
|
|
9419
9423
|
return {
|
|
@@ -9436,7 +9440,7 @@ function Y6() {
|
|
|
9436
9440
|
};
|
|
9437
9441
|
}
|
|
9438
9442
|
function u(I, z) {
|
|
9439
|
-
return (0, t.deepEqual)(e.default.Children.map(I, (
|
|
9443
|
+
return (0, t.deepEqual)(e.default.Children.map(I, (G) => G?.key), e.default.Children.map(z, (G) => G?.key)) && (0, t.deepEqual)(e.default.Children.map(I, (G) => G?.props["data-grid"]), e.default.Children.map(z, (G) => G?.props["data-grid"]));
|
|
9440
9444
|
}
|
|
9441
9445
|
Ze.fastRGLPropsEqual = fq();
|
|
9442
9446
|
function c(I, z) {
|
|
@@ -9445,11 +9449,11 @@ function Y6() {
|
|
|
9445
9449
|
function Q(I, z) {
|
|
9446
9450
|
return !(I.i === z.i || I.x + I.w <= z.x || I.x >= z.x + z.w || I.y + I.h <= z.y || I.y >= z.y + z.h);
|
|
9447
9451
|
}
|
|
9448
|
-
function T(I, z,
|
|
9449
|
-
const
|
|
9452
|
+
function T(I, z, G, K) {
|
|
9453
|
+
const ue = x(I), ge = ee(I, z), he = Array(I.length);
|
|
9450
9454
|
for (let xe = 0, Ie = ge.length; xe < Ie; xe++) {
|
|
9451
9455
|
let Qt = l(ge[xe]);
|
|
9452
|
-
Qt.static || (Qt = p(
|
|
9456
|
+
Qt.static || (Qt = p(ue, Qt, z, G, ge, K), ue.push(Qt)), he[I.indexOf(ge[xe])] = Qt, Qt.moved = !1;
|
|
9453
9457
|
}
|
|
9454
9458
|
return he;
|
|
9455
9459
|
}
|
|
@@ -9457,21 +9461,21 @@ function Y6() {
|
|
|
9457
9461
|
x: "w",
|
|
9458
9462
|
y: "h"
|
|
9459
9463
|
};
|
|
9460
|
-
function h(I, z,
|
|
9461
|
-
const
|
|
9462
|
-
z[
|
|
9464
|
+
function h(I, z, G, K) {
|
|
9465
|
+
const ue = f[K];
|
|
9466
|
+
z[K] += 1;
|
|
9463
9467
|
const ge = I.map((he) => he.i).indexOf(z.i);
|
|
9464
9468
|
for (let he = ge + 1; he < I.length; he++) {
|
|
9465
9469
|
const xe = I[he];
|
|
9466
9470
|
if (!xe.static) {
|
|
9467
9471
|
if (xe.y > z.y + z.h) break;
|
|
9468
|
-
Q(z, xe) && h(I, xe,
|
|
9472
|
+
Q(z, xe) && h(I, xe, G + z[ue], K);
|
|
9469
9473
|
}
|
|
9470
9474
|
}
|
|
9471
|
-
z[
|
|
9475
|
+
z[K] = G;
|
|
9472
9476
|
}
|
|
9473
|
-
function p(I, z,
|
|
9474
|
-
const he =
|
|
9477
|
+
function p(I, z, G, K, ue, ge) {
|
|
9478
|
+
const he = G === "vertical", xe = G === "horizontal";
|
|
9475
9479
|
if (he)
|
|
9476
9480
|
for (z.y = Math.min(i(I), z.y); z.y > 0 && !m(I, z); )
|
|
9477
9481
|
z.y--;
|
|
@@ -9479,44 +9483,44 @@ function Y6() {
|
|
|
9479
9483
|
for (; z.x > 0 && !m(I, z); )
|
|
9480
9484
|
z.x--;
|
|
9481
9485
|
let Ie;
|
|
9482
|
-
for (; (Ie = m(I, z)) && !(
|
|
9483
|
-
if (xe ? h(
|
|
9484
|
-
for (z.x =
|
|
9486
|
+
for (; (Ie = m(I, z)) && !(G === null && ge); )
|
|
9487
|
+
if (xe ? h(ue, z, Ie.x + Ie.w, "x") : h(ue, z, Ie.y + Ie.h, "y"), xe && z.x + z.w > K)
|
|
9488
|
+
for (z.x = K - z.w, z.y++; z.x > 0 && !m(I, z); )
|
|
9485
9489
|
z.x--;
|
|
9486
9490
|
return z.y = Math.max(z.y, 0), z.x = Math.max(z.x, 0), z;
|
|
9487
9491
|
}
|
|
9488
9492
|
function g(I, z) {
|
|
9489
|
-
const
|
|
9490
|
-
for (let
|
|
9491
|
-
const ge = I[
|
|
9492
|
-
if (ge.x + ge.w > z.cols && (ge.x = z.cols - ge.w), ge.x < 0 && (ge.x = 0, ge.w = z.cols), !ge.static)
|
|
9493
|
+
const G = x(I);
|
|
9494
|
+
for (let K = 0, ue = I.length; K < ue; K++) {
|
|
9495
|
+
const ge = I[K];
|
|
9496
|
+
if (ge.x + ge.w > z.cols && (ge.x = z.cols - ge.w), ge.x < 0 && (ge.x = 0, ge.w = z.cols), !ge.static) G.push(ge);
|
|
9493
9497
|
else
|
|
9494
|
-
for (; m(
|
|
9498
|
+
for (; m(G, ge); )
|
|
9495
9499
|
ge.y++;
|
|
9496
9500
|
}
|
|
9497
9501
|
return I;
|
|
9498
9502
|
}
|
|
9499
9503
|
function d(I, z) {
|
|
9500
|
-
for (let
|
|
9501
|
-
if (I[
|
|
9504
|
+
for (let G = 0, K = I.length; G < K; G++)
|
|
9505
|
+
if (I[G].i === z) return I[G];
|
|
9502
9506
|
}
|
|
9503
9507
|
function m(I, z) {
|
|
9504
|
-
for (let
|
|
9505
|
-
if (Q(I[
|
|
9508
|
+
for (let G = 0, K = I.length; G < K; G++)
|
|
9509
|
+
if (Q(I[G], z)) return I[G];
|
|
9506
9510
|
}
|
|
9507
9511
|
function y(I, z) {
|
|
9508
|
-
return I.filter((
|
|
9512
|
+
return I.filter((G) => Q(G, z));
|
|
9509
9513
|
}
|
|
9510
9514
|
function x(I) {
|
|
9511
9515
|
return I.filter((z) => z.static);
|
|
9512
9516
|
}
|
|
9513
|
-
function O(I, z,
|
|
9514
|
-
if (z.static && z.isDraggable !== !0 || z.y ===
|
|
9515
|
-
`${z.i}${String(
|
|
9517
|
+
function O(I, z, G, K, ue, ge, he, xe, Ie) {
|
|
9518
|
+
if (z.static && z.isDraggable !== !0 || z.y === K && z.x === G) return I;
|
|
9519
|
+
`${z.i}${String(G)}${String(K)}${z.x}${z.y}`;
|
|
9516
9520
|
const Qt = z.x, K2 = z.y;
|
|
9517
|
-
typeof
|
|
9518
|
-
let Ct =
|
|
9519
|
-
(he === "vertical" && typeof
|
|
9521
|
+
typeof G == "number" && (z.x = G), typeof K == "number" && (z.y = K), z.moved = !0;
|
|
9522
|
+
let Ct = ee(I, he);
|
|
9523
|
+
(he === "vertical" && typeof K == "number" ? K2 >= K : he === "horizontal" && typeof G == "number" ? Qt >= G : !1) && (Ct = Ct.reverse());
|
|
9520
9524
|
const B3 = y(Ct, z), se = B3.length > 0;
|
|
9521
9525
|
if (se && Ie)
|
|
9522
9526
|
return a(I);
|
|
@@ -9524,87 +9528,87 @@ function Y6() {
|
|
|
9524
9528
|
return `${z.i}`, z.x = Qt, z.y = K2, z.moved = !1, I;
|
|
9525
9529
|
for (let pe = 0, Me = B3.length; pe < Me; pe++) {
|
|
9526
9530
|
const De = B3[pe];
|
|
9527
|
-
`${z.i}${z.x}${z.y}${De.i}${De.x}${De.y}`, !De.moved && (De.static ? I = v(I, De, z,
|
|
9531
|
+
`${z.i}${z.x}${z.y}${De.i}${De.x}${De.y}`, !De.moved && (De.static ? I = v(I, De, z, ue, he) : I = v(I, z, De, ue, he));
|
|
9528
9532
|
}
|
|
9529
9533
|
return I;
|
|
9530
9534
|
}
|
|
9531
|
-
function v(I, z,
|
|
9532
|
-
const he =
|
|
9533
|
-
if (
|
|
9534
|
-
|
|
9535
|
+
function v(I, z, G, K, ue, ge) {
|
|
9536
|
+
const he = ue === "horizontal", xe = ue === "vertical", Ie = z.static;
|
|
9537
|
+
if (K) {
|
|
9538
|
+
K = !1;
|
|
9535
9539
|
const Ct = {
|
|
9536
|
-
x: he ? Math.max(z.x -
|
|
9537
|
-
y: xe ? Math.max(z.y -
|
|
9538
|
-
w:
|
|
9539
|
-
h:
|
|
9540
|
+
x: he ? Math.max(z.x - G.w, 0) : G.x,
|
|
9541
|
+
y: xe ? Math.max(z.y - G.h, 0) : G.y,
|
|
9542
|
+
w: G.w,
|
|
9543
|
+
h: G.h,
|
|
9540
9544
|
i: "-1"
|
|
9541
9545
|
}, gn = m(I, Ct), B3 = gn && gn.y + gn.h > z.y, se = gn && z.x + z.w > gn.x;
|
|
9542
9546
|
if (gn) {
|
|
9543
9547
|
if (B3 && xe)
|
|
9544
|
-
return O(I,
|
|
9545
|
-
if (B3 &&
|
|
9546
|
-
return z.y =
|
|
9548
|
+
return O(I, G, void 0, z.y + 1, K, Ie, ue);
|
|
9549
|
+
if (B3 && ue == null)
|
|
9550
|
+
return z.y = G.y, G.y = G.y + G.h, I;
|
|
9547
9551
|
if (se && he)
|
|
9548
|
-
return O(I, z,
|
|
9549
|
-
} else return `${
|
|
9552
|
+
return O(I, z, G.x, void 0, K, Ie, ue);
|
|
9553
|
+
} else return `${G.i}${Ct.x}${Ct.y}`, O(I, G, he ? Ct.x : void 0, xe ? Ct.y : void 0, K, Ie, ue);
|
|
9550
9554
|
}
|
|
9551
|
-
const Qt = he ?
|
|
9552
|
-
return Qt == null && K2 == null ? I : O(I,
|
|
9555
|
+
const Qt = he ? G.x + 1 : void 0, K2 = xe ? G.y + 1 : void 0;
|
|
9556
|
+
return Qt == null && K2 == null ? I : O(I, G, he ? G.x + 1 : void 0, xe ? G.y + 1 : void 0, K, Ie, ue);
|
|
9553
9557
|
}
|
|
9554
9558
|
function L(I) {
|
|
9555
9559
|
return I * 100 + "%";
|
|
9556
9560
|
}
|
|
9557
|
-
const b = (I, z,
|
|
9561
|
+
const b = (I, z, G, K) => I + G > K ? z : G, S = (I, z, G) => I < 0 ? z : G, E = (I) => Math.max(0, I), C = (I) => Math.max(0, I), A = (I, z, G) => {
|
|
9558
9562
|
let {
|
|
9559
|
-
left:
|
|
9560
|
-
height:
|
|
9563
|
+
left: K,
|
|
9564
|
+
height: ue,
|
|
9561
9565
|
width: ge
|
|
9562
9566
|
} = z;
|
|
9563
|
-
const he = I.top - (
|
|
9567
|
+
const he = I.top - (ue - I.height);
|
|
9564
9568
|
return {
|
|
9565
|
-
left:
|
|
9569
|
+
left: K,
|
|
9566
9570
|
width: ge,
|
|
9567
|
-
height: S(he, I.height,
|
|
9571
|
+
height: S(he, I.height, ue),
|
|
9568
9572
|
top: C(he)
|
|
9569
9573
|
};
|
|
9570
|
-
}, w = (I, z,
|
|
9574
|
+
}, w = (I, z, G) => {
|
|
9571
9575
|
let {
|
|
9572
|
-
top:
|
|
9573
|
-
left:
|
|
9576
|
+
top: K,
|
|
9577
|
+
left: ue,
|
|
9574
9578
|
height: ge,
|
|
9575
9579
|
width: he
|
|
9576
9580
|
} = z;
|
|
9577
9581
|
return {
|
|
9578
|
-
top:
|
|
9582
|
+
top: K,
|
|
9579
9583
|
height: ge,
|
|
9580
|
-
width: b(I.left, I.width, he,
|
|
9581
|
-
left: E(
|
|
9584
|
+
width: b(I.left, I.width, he, G),
|
|
9585
|
+
left: E(ue)
|
|
9582
9586
|
};
|
|
9583
|
-
}, M = (I, z,
|
|
9587
|
+
}, M = (I, z, G) => {
|
|
9584
9588
|
let {
|
|
9585
|
-
top:
|
|
9586
|
-
height:
|
|
9589
|
+
top: K,
|
|
9590
|
+
height: ue,
|
|
9587
9591
|
width: ge
|
|
9588
9592
|
} = z;
|
|
9589
9593
|
const he = I.left - (ge - I.width);
|
|
9590
9594
|
return {
|
|
9591
|
-
height:
|
|
9592
|
-
width: he < 0 ? I.width : b(I.left, I.width, ge,
|
|
9593
|
-
top: C(
|
|
9595
|
+
height: ue,
|
|
9596
|
+
width: he < 0 ? I.width : b(I.left, I.width, ge, G),
|
|
9597
|
+
top: C(K),
|
|
9594
9598
|
left: E(he)
|
|
9595
9599
|
};
|
|
9596
|
-
}, P = (I, z,
|
|
9600
|
+
}, P = (I, z, G) => {
|
|
9597
9601
|
let {
|
|
9598
|
-
top:
|
|
9599
|
-
left:
|
|
9602
|
+
top: K,
|
|
9603
|
+
left: ue,
|
|
9600
9604
|
height: ge,
|
|
9601
9605
|
width: he
|
|
9602
9606
|
} = z;
|
|
9603
9607
|
return {
|
|
9604
9608
|
width: he,
|
|
9605
|
-
left:
|
|
9606
|
-
height: S(
|
|
9607
|
-
top: C(
|
|
9609
|
+
left: ue,
|
|
9610
|
+
height: S(K, I.height, ge),
|
|
9611
|
+
top: C(K)
|
|
9608
9612
|
};
|
|
9609
9613
|
}, _ = {
|
|
9610
9614
|
n: A,
|
|
@@ -9624,61 +9628,61 @@ function Y6() {
|
|
|
9624
9628
|
return A(arguments.length <= 0 ? void 0 : arguments[0], M(...arguments));
|
|
9625
9629
|
}
|
|
9626
9630
|
};
|
|
9627
|
-
function D(I, z,
|
|
9628
|
-
const
|
|
9629
|
-
return
|
|
9631
|
+
function D(I, z, G, K) {
|
|
9632
|
+
const ue = _[I];
|
|
9633
|
+
return ue ? ue(z, {
|
|
9630
9634
|
...z,
|
|
9631
|
-
...
|
|
9632
|
-
},
|
|
9635
|
+
...G
|
|
9636
|
+
}, K) : G;
|
|
9633
9637
|
}
|
|
9634
9638
|
function Z(I) {
|
|
9635
9639
|
let {
|
|
9636
9640
|
top: z,
|
|
9637
|
-
left:
|
|
9638
|
-
width:
|
|
9639
|
-
height:
|
|
9641
|
+
left: G,
|
|
9642
|
+
width: K,
|
|
9643
|
+
height: ue
|
|
9640
9644
|
} = I;
|
|
9641
|
-
const ge = `translate(${
|
|
9645
|
+
const ge = `translate(${G}px,${z}px)`;
|
|
9642
9646
|
return {
|
|
9643
9647
|
transform: ge,
|
|
9644
9648
|
WebkitTransform: ge,
|
|
9645
9649
|
MozTransform: ge,
|
|
9646
9650
|
msTransform: ge,
|
|
9647
9651
|
OTransform: ge,
|
|
9648
|
-
width: `${
|
|
9649
|
-
height: `${
|
|
9652
|
+
width: `${K}px`,
|
|
9653
|
+
height: `${ue}px`,
|
|
9650
9654
|
position: "absolute"
|
|
9651
9655
|
};
|
|
9652
9656
|
}
|
|
9653
9657
|
function k(I) {
|
|
9654
9658
|
let {
|
|
9655
9659
|
top: z,
|
|
9656
|
-
left:
|
|
9657
|
-
width:
|
|
9658
|
-
height:
|
|
9660
|
+
left: G,
|
|
9661
|
+
width: K,
|
|
9662
|
+
height: ue
|
|
9659
9663
|
} = I;
|
|
9660
9664
|
return {
|
|
9661
9665
|
top: `${z}px`,
|
|
9662
|
-
left: `${
|
|
9663
|
-
width: `${
|
|
9664
|
-
height: `${
|
|
9666
|
+
left: `${G}px`,
|
|
9667
|
+
width: `${K}px`,
|
|
9668
|
+
height: `${ue}px`,
|
|
9665
9669
|
position: "absolute"
|
|
9666
9670
|
};
|
|
9667
9671
|
}
|
|
9668
|
-
function
|
|
9672
|
+
function ee(I, z) {
|
|
9669
9673
|
return z === "horizontal" ? ie(I) : z === "vertical" ? ae(I) : I;
|
|
9670
9674
|
}
|
|
9671
9675
|
function ae(I) {
|
|
9672
|
-
return I.slice(0).sort(function(z,
|
|
9673
|
-
return z.y >
|
|
9676
|
+
return I.slice(0).sort(function(z, G) {
|
|
9677
|
+
return z.y > G.y || z.y === G.y && z.x > G.x ? 1 : z.y === G.y && z.x === G.x ? 0 : -1;
|
|
9674
9678
|
});
|
|
9675
9679
|
}
|
|
9676
9680
|
function ie(I) {
|
|
9677
|
-
return I.slice(0).sort(function(z,
|
|
9678
|
-
return z.x >
|
|
9681
|
+
return I.slice(0).sort(function(z, G) {
|
|
9682
|
+
return z.x > G.x || z.x === G.x && z.y > G.y ? 1 : -1;
|
|
9679
9683
|
});
|
|
9680
9684
|
}
|
|
9681
|
-
function
|
|
9685
|
+
function W(I, z, G, K, ue) {
|
|
9682
9686
|
I = I || [];
|
|
9683
9687
|
const ge = [];
|
|
9684
9688
|
e.default.Children.forEach(z, (xe) => {
|
|
@@ -9696,31 +9700,31 @@ function Y6() {
|
|
|
9696
9700
|
}));
|
|
9697
9701
|
});
|
|
9698
9702
|
const he = g(ge, {
|
|
9699
|
-
cols:
|
|
9703
|
+
cols: G
|
|
9700
9704
|
});
|
|
9701
|
-
return
|
|
9705
|
+
return ue ? he : T(he, K, G);
|
|
9702
9706
|
}
|
|
9703
9707
|
function X(I) {
|
|
9704
9708
|
let z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout";
|
|
9705
|
-
const
|
|
9709
|
+
const G = ["x", "y", "w", "h"];
|
|
9706
9710
|
if (!Array.isArray(I)) throw new Error(z + " must be an array!");
|
|
9707
|
-
for (let
|
|
9708
|
-
const ge = I[
|
|
9709
|
-
for (let he = 0; he <
|
|
9710
|
-
const xe =
|
|
9711
|
+
for (let K = 0, ue = I.length; K < ue; K++) {
|
|
9712
|
+
const ge = I[K];
|
|
9713
|
+
for (let he = 0; he < G.length; he++) {
|
|
9714
|
+
const xe = G[he], Ie = ge[xe];
|
|
9711
9715
|
if (typeof Ie != "number" || Number.isNaN(Ie))
|
|
9712
|
-
throw new Error(`ReactGridLayout: ${z}[${
|
|
9716
|
+
throw new Error(`ReactGridLayout: ${z}[${K}].${xe} must be a number! Received: ${Ie} (${typeof Ie})`);
|
|
9713
9717
|
}
|
|
9714
9718
|
if (typeof ge.i < "u" && typeof ge.i != "string")
|
|
9715
|
-
throw new Error(`ReactGridLayout: ${z}[${
|
|
9719
|
+
throw new Error(`ReactGridLayout: ${z}[${K}].i must be a string! Received: ${ge.i} (${typeof ge.i})`);
|
|
9716
9720
|
}
|
|
9717
9721
|
}
|
|
9718
|
-
function
|
|
9722
|
+
function J(I) {
|
|
9719
9723
|
const {
|
|
9720
9724
|
verticalCompact: z,
|
|
9721
|
-
compactType:
|
|
9725
|
+
compactType: G
|
|
9722
9726
|
} = I || {};
|
|
9723
|
-
return z === !1 ? null :
|
|
9727
|
+
return z === !1 ? null : G;
|
|
9724
9728
|
}
|
|
9725
9729
|
function re() {
|
|
9726
9730
|
}
|
|
@@ -9883,24 +9887,24 @@ function dq() {
|
|
|
9883
9887
|
var z = I.$$typeof;
|
|
9884
9888
|
switch (z) {
|
|
9885
9889
|
case e:
|
|
9886
|
-
var
|
|
9887
|
-
switch (
|
|
9890
|
+
var G = I.type;
|
|
9891
|
+
switch (G) {
|
|
9888
9892
|
case l:
|
|
9889
9893
|
case u:
|
|
9890
9894
|
case n:
|
|
9891
9895
|
case a:
|
|
9892
9896
|
case i:
|
|
9893
9897
|
case Q:
|
|
9894
|
-
return
|
|
9898
|
+
return G;
|
|
9895
9899
|
default:
|
|
9896
|
-
var
|
|
9897
|
-
switch (
|
|
9900
|
+
var K = G && G.$$typeof;
|
|
9901
|
+
switch (K) {
|
|
9898
9902
|
case s:
|
|
9899
9903
|
case c:
|
|
9900
9904
|
case h:
|
|
9901
9905
|
case f:
|
|
9902
9906
|
case o:
|
|
9903
|
-
return
|
|
9907
|
+
return K;
|
|
9904
9908
|
default:
|
|
9905
9909
|
return z;
|
|
9906
9910
|
}
|
|
@@ -9926,7 +9930,7 @@ function dq() {
|
|
|
9926
9930
|
function k(I) {
|
|
9927
9931
|
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
9928
9932
|
}
|
|
9929
|
-
function
|
|
9933
|
+
function ee(I) {
|
|
9930
9934
|
return x(I) === c;
|
|
9931
9935
|
}
|
|
9932
9936
|
function ae(I) {
|
|
@@ -9935,13 +9939,13 @@ function dq() {
|
|
|
9935
9939
|
function ie(I) {
|
|
9936
9940
|
return x(I) === h;
|
|
9937
9941
|
}
|
|
9938
|
-
function
|
|
9942
|
+
function W(I) {
|
|
9939
9943
|
return x(I) === f;
|
|
9940
9944
|
}
|
|
9941
9945
|
function X(I) {
|
|
9942
9946
|
return x(I) === r;
|
|
9943
9947
|
}
|
|
9944
|
-
function
|
|
9948
|
+
function J(I) {
|
|
9945
9949
|
return x(I) === a;
|
|
9946
9950
|
}
|
|
9947
9951
|
function re(I) {
|
|
@@ -9950,7 +9954,7 @@ function dq() {
|
|
|
9950
9954
|
function oe(I) {
|
|
9951
9955
|
return x(I) === Q;
|
|
9952
9956
|
}
|
|
9953
|
-
ot.AsyncMode = O, ot.ConcurrentMode = v, ot.ContextConsumer = L, ot.ContextProvider = b, ot.Element = S, ot.ForwardRef = E, ot.Fragment = C, ot.Lazy = A, ot.Memo = w, ot.Portal = M, ot.Profiler = P, ot.StrictMode = N, ot.Suspense = $, ot.isAsyncMode = V, ot.isConcurrentMode = _, ot.isContextConsumer = D, ot.isContextProvider = Z, ot.isElement = k, ot.isForwardRef =
|
|
9957
|
+
ot.AsyncMode = O, ot.ConcurrentMode = v, ot.ContextConsumer = L, ot.ContextProvider = b, ot.Element = S, ot.ForwardRef = E, ot.Fragment = C, ot.Lazy = A, ot.Memo = w, ot.Portal = M, ot.Profiler = P, ot.StrictMode = N, ot.Suspense = $, ot.isAsyncMode = V, ot.isConcurrentMode = _, ot.isContextConsumer = D, ot.isContextProvider = Z, ot.isElement = k, ot.isForwardRef = ee, ot.isFragment = ae, ot.isLazy = ie, ot.isMemo = W, ot.isPortal = X, ot.isProfiler = J, ot.isStrictMode = re, ot.isSuspense = oe, ot.isValidElementType = y, ot.typeOf = x;
|
|
9954
9958
|
}()), ot;
|
|
9955
9959
|
}
|
|
9956
9960
|
var Sd;
|
|
@@ -10123,33 +10127,33 @@ function gq() {
|
|
|
10123
10127
|
function g(_) {
|
|
10124
10128
|
if (process.env.NODE_ENV !== "production")
|
|
10125
10129
|
var D = {}, Z = 0;
|
|
10126
|
-
function k(ae, ie,
|
|
10127
|
-
if (X = X || T, re = re ||
|
|
10130
|
+
function k(ae, ie, W, X, J, re, oe) {
|
|
10131
|
+
if (X = X || T, re = re || W, oe !== r) {
|
|
10128
10132
|
if (l) {
|
|
10129
10133
|
var I = new Error(
|
|
10130
10134
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10131
10135
|
);
|
|
10132
10136
|
throw I.name = "Invariant Violation", I;
|
|
10133
10137
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10134
|
-
var z = X + ":" +
|
|
10138
|
+
var z = X + ":" + W;
|
|
10135
10139
|
!D[z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
10136
10140
|
Z < 3 && (a(
|
|
10137
10141
|
"You are manually calling a React.PropTypes validation function for the `" + re + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10138
10142
|
), D[z] = !0, Z++);
|
|
10139
10143
|
}
|
|
10140
10144
|
}
|
|
10141
|
-
return ie[
|
|
10145
|
+
return ie[W] == null ? ae ? ie[W] === null ? new p("The " + J + " `" + re + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new p("The " + J + " `" + re + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(ie, W, X, J, re);
|
|
10142
10146
|
}
|
|
10143
|
-
var
|
|
10144
|
-
return
|
|
10147
|
+
var ee = k.bind(null, !1);
|
|
10148
|
+
return ee.isRequired = k.bind(null, !0), ee;
|
|
10145
10149
|
}
|
|
10146
10150
|
function d(_) {
|
|
10147
|
-
function D(Z, k,
|
|
10148
|
-
var X = Z[k],
|
|
10149
|
-
if (
|
|
10151
|
+
function D(Z, k, ee, ae, ie, W) {
|
|
10152
|
+
var X = Z[k], J = N(X);
|
|
10153
|
+
if (J !== _) {
|
|
10150
10154
|
var re = $(X);
|
|
10151
10155
|
return new p(
|
|
10152
|
-
"Invalid " + ae + " `" + ie + "` of type " + ("`" + re + "` supplied to `" +
|
|
10156
|
+
"Invalid " + ae + " `" + ie + "` of type " + ("`" + re + "` supplied to `" + ee + "`, expected ") + ("`" + _ + "`."),
|
|
10153
10157
|
{ expectedType: _ }
|
|
10154
10158
|
);
|
|
10155
10159
|
}
|
|
@@ -10161,16 +10165,16 @@ function gq() {
|
|
|
10161
10165
|
return g(o);
|
|
10162
10166
|
}
|
|
10163
10167
|
function y(_) {
|
|
10164
|
-
function D(Z, k,
|
|
10168
|
+
function D(Z, k, ee, ae, ie) {
|
|
10165
10169
|
if (typeof _ != "function")
|
|
10166
|
-
return new p("Property `" + ie + "` of component `" +
|
|
10167
|
-
var
|
|
10168
|
-
if (!Array.isArray(
|
|
10169
|
-
var X = N(
|
|
10170
|
-
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" +
|
|
10171
|
-
}
|
|
10172
|
-
for (var
|
|
10173
|
-
var re = _(
|
|
10170
|
+
return new p("Property `" + ie + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
|
|
10171
|
+
var W = Z[k];
|
|
10172
|
+
if (!Array.isArray(W)) {
|
|
10173
|
+
var X = N(W);
|
|
10174
|
+
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected an array."));
|
|
10175
|
+
}
|
|
10176
|
+
for (var J = 0; J < W.length; J++) {
|
|
10177
|
+
var re = _(W, J, ee, ae, ie + "[" + J + "]", r);
|
|
10174
10178
|
if (re instanceof Error)
|
|
10175
10179
|
return re;
|
|
10176
10180
|
}
|
|
@@ -10179,32 +10183,32 @@ function gq() {
|
|
|
10179
10183
|
return g(D);
|
|
10180
10184
|
}
|
|
10181
10185
|
function x() {
|
|
10182
|
-
function _(D, Z, k,
|
|
10186
|
+
function _(D, Z, k, ee, ae) {
|
|
10183
10187
|
var ie = D[Z];
|
|
10184
10188
|
if (!s(ie)) {
|
|
10185
|
-
var
|
|
10186
|
-
return new p("Invalid " +
|
|
10189
|
+
var W = N(ie);
|
|
10190
|
+
return new p("Invalid " + ee + " `" + ae + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
10187
10191
|
}
|
|
10188
10192
|
return null;
|
|
10189
10193
|
}
|
|
10190
10194
|
return g(_);
|
|
10191
10195
|
}
|
|
10192
10196
|
function O() {
|
|
10193
|
-
function _(D, Z, k,
|
|
10197
|
+
function _(D, Z, k, ee, ae) {
|
|
10194
10198
|
var ie = D[Z];
|
|
10195
10199
|
if (!t.isValidElementType(ie)) {
|
|
10196
|
-
var
|
|
10197
|
-
return new p("Invalid " +
|
|
10200
|
+
var W = N(ie);
|
|
10201
|
+
return new p("Invalid " + ee + " `" + ae + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
10198
10202
|
}
|
|
10199
10203
|
return null;
|
|
10200
10204
|
}
|
|
10201
10205
|
return g(_);
|
|
10202
10206
|
}
|
|
10203
10207
|
function v(_) {
|
|
10204
|
-
function D(Z, k,
|
|
10208
|
+
function D(Z, k, ee, ae, ie) {
|
|
10205
10209
|
if (!(Z[k] instanceof _)) {
|
|
10206
|
-
var
|
|
10207
|
-
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" +
|
|
10210
|
+
var W = _.name || T, X = V(Z[k]);
|
|
10211
|
+
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected ") + ("instance of `" + W + "`."));
|
|
10208
10212
|
}
|
|
10209
10213
|
return null;
|
|
10210
10214
|
}
|
|
@@ -10215,28 +10219,28 @@ function gq() {
|
|
|
10215
10219
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
10216
10220
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10217
10221
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
10218
|
-
function D(Z, k,
|
|
10219
|
-
for (var
|
|
10220
|
-
if (h(
|
|
10222
|
+
function D(Z, k, ee, ae, ie) {
|
|
10223
|
+
for (var W = Z[k], X = 0; X < _.length; X++)
|
|
10224
|
+
if (h(W, _[X]))
|
|
10221
10225
|
return null;
|
|
10222
|
-
var
|
|
10226
|
+
var J = JSON.stringify(_, function(oe, I) {
|
|
10223
10227
|
var z = $(I);
|
|
10224
10228
|
return z === "symbol" ? String(I) : I;
|
|
10225
10229
|
});
|
|
10226
|
-
return new p("Invalid " + ae + " `" + ie + "` of value `" + String(
|
|
10230
|
+
return new p("Invalid " + ae + " `" + ie + "` of value `" + String(W) + "` " + ("supplied to `" + ee + "`, expected one of " + J + "."));
|
|
10227
10231
|
}
|
|
10228
10232
|
return g(D);
|
|
10229
10233
|
}
|
|
10230
10234
|
function b(_) {
|
|
10231
|
-
function D(Z, k,
|
|
10235
|
+
function D(Z, k, ee, ae, ie) {
|
|
10232
10236
|
if (typeof _ != "function")
|
|
10233
|
-
return new p("Property `" + ie + "` of component `" +
|
|
10234
|
-
var
|
|
10237
|
+
return new p("Property `" + ie + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
|
|
10238
|
+
var W = Z[k], X = N(W);
|
|
10235
10239
|
if (X !== "object")
|
|
10236
|
-
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" +
|
|
10237
|
-
for (var
|
|
10238
|
-
if (n(
|
|
10239
|
-
var re = _(
|
|
10240
|
+
return new p("Invalid " + ae + " `" + ie + "` of type " + ("`" + X + "` supplied to `" + ee + "`, expected an object."));
|
|
10241
|
+
for (var J in W)
|
|
10242
|
+
if (n(W, J)) {
|
|
10243
|
+
var re = _(W, J, ee, ae, ie + "." + J, r);
|
|
10240
10244
|
if (re instanceof Error)
|
|
10241
10245
|
return re;
|
|
10242
10246
|
}
|
|
@@ -10254,39 +10258,39 @@ function gq() {
|
|
|
10254
10258
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + R(Z) + " at index " + D + "."
|
|
10255
10259
|
), o;
|
|
10256
10260
|
}
|
|
10257
|
-
function k(
|
|
10258
|
-
for (var
|
|
10259
|
-
var oe = _[re], I = oe(
|
|
10261
|
+
function k(ee, ae, ie, W, X) {
|
|
10262
|
+
for (var J = [], re = 0; re < _.length; re++) {
|
|
10263
|
+
var oe = _[re], I = oe(ee, ae, ie, W, X, r);
|
|
10260
10264
|
if (I == null)
|
|
10261
10265
|
return null;
|
|
10262
|
-
I.data && n(I.data, "expectedType") &&
|
|
10266
|
+
I.data && n(I.data, "expectedType") && J.push(I.data.expectedType);
|
|
10263
10267
|
}
|
|
10264
|
-
var z =
|
|
10265
|
-
return new p("Invalid " +
|
|
10268
|
+
var z = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
10269
|
+
return new p("Invalid " + W + " `" + X + "` supplied to " + ("`" + ie + "`" + z + "."));
|
|
10266
10270
|
}
|
|
10267
10271
|
return g(k);
|
|
10268
10272
|
}
|
|
10269
10273
|
function E() {
|
|
10270
|
-
function _(D, Z, k,
|
|
10271
|
-
return M(D[Z]) ? null : new p("Invalid " +
|
|
10274
|
+
function _(D, Z, k, ee, ae) {
|
|
10275
|
+
return M(D[Z]) ? null : new p("Invalid " + ee + " `" + ae + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
10272
10276
|
}
|
|
10273
10277
|
return g(_);
|
|
10274
10278
|
}
|
|
10275
|
-
function C(_, D, Z, k,
|
|
10279
|
+
function C(_, D, Z, k, ee) {
|
|
10276
10280
|
return new p(
|
|
10277
|
-
(_ || "React class") + ": " + D + " type `" + Z + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
10281
|
+
(_ || "React class") + ": " + D + " type `" + Z + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
|
|
10278
10282
|
);
|
|
10279
10283
|
}
|
|
10280
10284
|
function A(_) {
|
|
10281
|
-
function D(Z, k,
|
|
10282
|
-
var
|
|
10285
|
+
function D(Z, k, ee, ae, ie) {
|
|
10286
|
+
var W = Z[k], X = N(W);
|
|
10283
10287
|
if (X !== "object")
|
|
10284
|
-
return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" +
|
|
10285
|
-
for (var
|
|
10286
|
-
var re = _[
|
|
10288
|
+
return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
|
10289
|
+
for (var J in _) {
|
|
10290
|
+
var re = _[J];
|
|
10287
10291
|
if (typeof re != "function")
|
|
10288
|
-
return C(
|
|
10289
|
-
var oe = re(
|
|
10292
|
+
return C(ee, ae, ie, J, $(re));
|
|
10293
|
+
var oe = re(W, J, ee, ae, ie + "." + J, r);
|
|
10290
10294
|
if (oe)
|
|
10291
10295
|
return oe;
|
|
10292
10296
|
}
|
|
@@ -10295,21 +10299,21 @@ function gq() {
|
|
|
10295
10299
|
return g(D);
|
|
10296
10300
|
}
|
|
10297
10301
|
function w(_) {
|
|
10298
|
-
function D(Z, k,
|
|
10299
|
-
var
|
|
10302
|
+
function D(Z, k, ee, ae, ie) {
|
|
10303
|
+
var W = Z[k], X = N(W);
|
|
10300
10304
|
if (X !== "object")
|
|
10301
|
-
return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" +
|
|
10302
|
-
var
|
|
10303
|
-
for (var re in
|
|
10305
|
+
return new p("Invalid " + ae + " `" + ie + "` of type `" + X + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
|
10306
|
+
var J = e({}, Z[k], _);
|
|
10307
|
+
for (var re in J) {
|
|
10304
10308
|
var oe = _[re];
|
|
10305
10309
|
if (n(_, re) && typeof oe != "function")
|
|
10306
|
-
return C(
|
|
10310
|
+
return C(ee, ae, ie, re, $(oe));
|
|
10307
10311
|
if (!oe)
|
|
10308
10312
|
return new p(
|
|
10309
|
-
"Invalid " + ae + " `" + ie + "` key `" + re + "` supplied to `" +
|
|
10313
|
+
"Invalid " + ae + " `" + ie + "` key `" + re + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Z[k], null, " ") + `
|
|
10310
10314
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
10311
10315
|
);
|
|
10312
|
-
var I = oe(
|
|
10316
|
+
var I = oe(W, re, ee, ae, ie + "." + re, r);
|
|
10313
10317
|
if (I)
|
|
10314
10318
|
return I;
|
|
10315
10319
|
}
|
|
@@ -10339,8 +10343,8 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
10339
10343
|
return !1;
|
|
10340
10344
|
} else
|
|
10341
10345
|
for (; !(k = Z.next()).done; ) {
|
|
10342
|
-
var
|
|
10343
|
-
if (
|
|
10346
|
+
var ee = k.value;
|
|
10347
|
+
if (ee && !M(ee[1]))
|
|
10344
10348
|
return !1;
|
|
10345
10349
|
}
|
|
10346
10350
|
} else
|
|
@@ -11671,8 +11675,8 @@ function SH() {
|
|
|
11671
11675
|
L.lastHandleRect = $, N === "w" && (C = -C), P === "n" && (A = -A);
|
|
11672
11676
|
var _ = L.props.width + (w ? C / L.props.transformScale : 0), D = L.props.height + (M ? A / L.props.transformScale : 0), Z = L.runConstraints(_, D);
|
|
11673
11677
|
_ = Z[0], D = Z[1];
|
|
11674
|
-
var k = _ !== L.props.width || D !== L.props.height,
|
|
11675
|
-
|
|
11678
|
+
var k = _ !== L.props.width || D !== L.props.height, ee = typeof L.props[O] == "function" ? L.props[O] : null, ae = O === "onResize" && !k;
|
|
11679
|
+
ee && !ae && (b.persist == null || b.persist(), ee(b, {
|
|
11676
11680
|
node: E,
|
|
11677
11681
|
size: {
|
|
11678
11682
|
width: _,
|
|
@@ -14724,12 +14728,12 @@ function rZ(t) {
|
|
|
14724
14728
|
} else {
|
|
14725
14729
|
let D = s.pos - M;
|
|
14726
14730
|
s.next();
|
|
14727
|
-
let Z = [], k = [],
|
|
14731
|
+
let Z = [], k = [], ee = C >= o ? C : -1, ae = 0, ie = w;
|
|
14728
14732
|
for (; s.pos > D; )
|
|
14729
|
-
|
|
14730
|
-
if (
|
|
14731
|
-
let
|
|
14732
|
-
R = TT($, Z, k, 0, Z.length, 0, w - A,
|
|
14733
|
+
ee >= 0 && s.id == ee && s.size >= 0 ? (s.end <= ie - i && (h(Z, k, A, ae, s.end, ie, ee, P, N), ae = Z.length, ie = s.end), s.next()) : E > 2500 ? T(A, D, Z, k) : Q(A, D, Z, k, ee, E + 1);
|
|
14734
|
+
if (ee >= 0 && ae > 0 && ae < Z.length && h(Z, k, A, ae, A, ie, ee, P, N), Z.reverse(), k.reverse(), ee > -1 && ae > 0) {
|
|
14735
|
+
let W = f($, N);
|
|
14736
|
+
R = TT($, Z, k, 0, Z.length, 0, w - A, W, W);
|
|
14733
14737
|
} else
|
|
14734
14738
|
R = p($, Z, k, w - A, P - w, N);
|
|
14735
14739
|
}
|
|
@@ -17872,7 +17876,7 @@ class ln {
|
|
|
17872
17876
|
return new ln(e);
|
|
17873
17877
|
}
|
|
17874
17878
|
}
|
|
17875
|
-
class
|
|
17879
|
+
class Xt extends ln {
|
|
17876
17880
|
constructor(e, r) {
|
|
17877
17881
|
super(e), this.inserted = r;
|
|
17878
17882
|
}
|
|
@@ -17907,7 +17911,7 @@ class zt extends ln {
|
|
|
17907
17911
|
}
|
|
17908
17912
|
a += o;
|
|
17909
17913
|
}
|
|
17910
|
-
return new
|
|
17914
|
+
return new Xt(r, n);
|
|
17911
17915
|
}
|
|
17912
17916
|
/**
|
|
17913
17917
|
Combine two subsequent change sets into a single set. `other`
|
|
@@ -17977,7 +17981,7 @@ class zt extends ln {
|
|
|
17977
17981
|
}
|
|
17978
17982
|
}
|
|
17979
17983
|
return {
|
|
17980
|
-
changes: new
|
|
17984
|
+
changes: new Xt(r, n),
|
|
17981
17985
|
filtered: ln.create(i)
|
|
17982
17986
|
};
|
|
17983
17987
|
}
|
|
@@ -18002,14 +18006,14 @@ class zt extends ln {
|
|
|
18002
18006
|
if (!c && !i.length)
|
|
18003
18007
|
return;
|
|
18004
18008
|
o < r && f1(i, r - o, -1);
|
|
18005
|
-
let Q = new
|
|
18009
|
+
let Q = new Xt(i, a);
|
|
18006
18010
|
s = s ? s.compose(Q.map(s)) : Q, i = [], a = [], o = 0;
|
|
18007
18011
|
}
|
|
18008
18012
|
function u(c) {
|
|
18009
18013
|
if (Array.isArray(c))
|
|
18010
18014
|
for (let Q of c)
|
|
18011
18015
|
u(Q);
|
|
18012
|
-
else if (c instanceof
|
|
18016
|
+
else if (c instanceof Xt) {
|
|
18013
18017
|
if (c.length != r)
|
|
18014
18018
|
throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${r})`);
|
|
18015
18019
|
l(), s = s ? s.compose(c.map(s)) : c;
|
|
@@ -18029,7 +18033,7 @@ class zt extends ln {
|
|
|
18029
18033
|
Create an empty changeset of the given length.
|
|
18030
18034
|
*/
|
|
18031
18035
|
static empty(e) {
|
|
18032
|
-
return new
|
|
18036
|
+
return new Xt(e ? [e, -1] : [], []);
|
|
18033
18037
|
}
|
|
18034
18038
|
/**
|
|
18035
18039
|
Create a changeset from its JSON representation (as produced by
|
|
@@ -18055,13 +18059,13 @@ class zt extends ln {
|
|
|
18055
18059
|
}
|
|
18056
18060
|
}
|
|
18057
18061
|
}
|
|
18058
|
-
return new
|
|
18062
|
+
return new Xt(r, n);
|
|
18059
18063
|
}
|
|
18060
18064
|
/**
|
|
18061
18065
|
@internal
|
|
18062
18066
|
*/
|
|
18063
18067
|
static createSet(e, r) {
|
|
18064
|
-
return new
|
|
18068
|
+
return new Xt(e, r);
|
|
18065
18069
|
}
|
|
18066
18070
|
}
|
|
18067
18071
|
function f1(t, e, r, n = !1) {
|
|
@@ -18124,7 +18128,7 @@ function Oc(t, e, r, n = !1) {
|
|
|
18124
18128
|
f1(i, u, l < o.i ? o.ins : 0), a && l < o.i && K3(a, i, o.text), l = o.i, o.forward(o.len - c);
|
|
18125
18129
|
} else {
|
|
18126
18130
|
if (o.done && s.done)
|
|
18127
|
-
return a ?
|
|
18131
|
+
return a ? Xt.createSet(i, a) : ln.create(i);
|
|
18128
18132
|
throw new Error("Mismatched change set lengths");
|
|
18129
18133
|
}
|
|
18130
18134
|
}
|
|
@@ -18133,7 +18137,7 @@ function GH(t, e, r = !1) {
|
|
|
18133
18137
|
let n = [], i = r ? [] : null, a = new ho(t), o = new ho(e);
|
|
18134
18138
|
for (let s = !1; ; ) {
|
|
18135
18139
|
if (a.done && o.done)
|
|
18136
|
-
return i ?
|
|
18140
|
+
return i ? Xt.createSet(n, i) : ln.create(n);
|
|
18137
18141
|
if (a.ins == 0)
|
|
18138
18142
|
f1(n, a.len, 0, s), a.next();
|
|
18139
18143
|
else if (o.len == 0 && !o.done)
|
|
@@ -18403,7 +18407,7 @@ function YH(t, e) {
|
|
|
18403
18407
|
throw new RangeError("Selection points outside of document");
|
|
18404
18408
|
}
|
|
18405
18409
|
let mT = 0;
|
|
18406
|
-
class
|
|
18410
|
+
class ve {
|
|
18407
18411
|
constructor(e, r, n, i, a) {
|
|
18408
18412
|
this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = mT++, this.default = e([]), this.extensions = typeof a == "function" ? a(this) : a;
|
|
18409
18413
|
}
|
|
@@ -18418,7 +18422,7 @@ class ye {
|
|
|
18418
18422
|
Define a new facet.
|
|
18419
18423
|
*/
|
|
18420
18424
|
static define(e = {}) {
|
|
18421
|
-
return new
|
|
18425
|
+
return new ve(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : gT), !!e.static, e.enables);
|
|
18422
18426
|
}
|
|
18423
18427
|
/**
|
|
18424
18428
|
Returns an extension that adds the given value to this facet.
|
|
@@ -18481,7 +18485,7 @@ class E7 {
|
|
|
18481
18485
|
let f, h = T.config.address[a];
|
|
18482
18486
|
if (h != null) {
|
|
18483
18487
|
let p = ul(T, h);
|
|
18484
|
-
if (this.dependencies.every((g) => g instanceof
|
|
18488
|
+
if (this.dependencies.every((g) => g instanceof ve ? T.facet(g) === Q.facet(g) : g instanceof Jt ? T.field(g, !1) == Q.field(g, !1) : !0) || (s ? vp(f = n(Q), p, i) : i(f = n(Q), p)))
|
|
18485
18489
|
return Q.values[o] = p, 0;
|
|
18486
18490
|
} else
|
|
18487
18491
|
f = n(Q);
|
|
@@ -18539,7 +18543,7 @@ function VZ(t, e, r) {
|
|
|
18539
18543
|
}
|
|
18540
18544
|
};
|
|
18541
18545
|
}
|
|
18542
|
-
const Is = /* @__PURE__ */
|
|
18546
|
+
const Is = /* @__PURE__ */ ve.define({ static: !0 });
|
|
18543
18547
|
class Jt {
|
|
18544
18548
|
constructor(e, r, n, i, a) {
|
|
18545
18549
|
this.id = e, this.createF = r, this.updateF = n, this.compareF = i, this.spec = a, this.provides = void 0;
|
|
@@ -18742,13 +18746,13 @@ function Ba(t, e) {
|
|
|
18742
18746
|
function ul(t, e) {
|
|
18743
18747
|
return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1];
|
|
18744
18748
|
}
|
|
18745
|
-
const e_ = /* @__PURE__ */
|
|
18749
|
+
const e_ = /* @__PURE__ */ ve.define(), xc = /* @__PURE__ */ ve.define({
|
|
18746
18750
|
combine: (t) => t.some((e) => e),
|
|
18747
18751
|
static: !0
|
|
18748
|
-
}), t_ = /* @__PURE__ */
|
|
18752
|
+
}), t_ = /* @__PURE__ */ ve.define({
|
|
18749
18753
|
combine: (t) => t.length ? t[0] : void 0,
|
|
18750
18754
|
static: !0
|
|
18751
|
-
}), r_ = /* @__PURE__ */
|
|
18755
|
+
}), r_ = /* @__PURE__ */ ve.define(), n_ = /* @__PURE__ */ ve.define(), i_ = /* @__PURE__ */ ve.define(), a_ = /* @__PURE__ */ ve.define({
|
|
18752
18756
|
combine: (t) => t.length ? t[0] : !1
|
|
18753
18757
|
});
|
|
18754
18758
|
class fn {
|
|
@@ -18930,7 +18934,7 @@ function BZ(t, e) {
|
|
|
18930
18934
|
function o_(t, e, r) {
|
|
18931
18935
|
var n;
|
|
18932
18936
|
let i, a, o;
|
|
18933
|
-
return r ? (i = e.changes, a =
|
|
18937
|
+
return r ? (i = e.changes, a = Xt.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), a = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), {
|
|
18934
18938
|
changes: o,
|
|
18935
18939
|
selection: e.selection ? e.selection.map(a) : (n = t.selection) === null || n === void 0 ? void 0 : n.map(i),
|
|
18936
18940
|
effects: ke.mapEffects(t.effects, i).concat(ke.mapEffects(e.effects, a)),
|
|
@@ -18941,7 +18945,7 @@ function o_(t, e, r) {
|
|
|
18941
18945
|
function Lc(t, e, r) {
|
|
18942
18946
|
let n = e.selection, i = b6(e.annotations);
|
|
18943
18947
|
return e.userEvent && (i = i.concat(Bt.userEvent.of(e.userEvent))), {
|
|
18944
|
-
changes: e.changes instanceof
|
|
18948
|
+
changes: e.changes instanceof Xt ? e.changes : Xt.of(e.changes || [], r, t.facet(t_)),
|
|
18945
18949
|
selection: n && (n instanceof le ? n : le.single(n.anchor, n.head)),
|
|
18946
18950
|
effects: b6(e.effects),
|
|
18947
18951
|
annotations: i,
|
|
@@ -18972,7 +18976,7 @@ function $Z(t) {
|
|
|
18972
18976
|
if (r !== !0) {
|
|
18973
18977
|
let i, a;
|
|
18974
18978
|
if (r === !1)
|
|
18975
|
-
a = t.changes.invertedDesc, i =
|
|
18979
|
+
a = t.changes.invertedDesc, i = Xt.empty(e.doc.length);
|
|
18976
18980
|
else {
|
|
18977
18981
|
let o = t.changes.filter(r);
|
|
18978
18982
|
i = o.changes, a = o.filtered.mapDesc(o.changes).invertedDesc;
|
|
@@ -19117,7 +19121,7 @@ class Fe {
|
|
|
19117
19121
|
separator into account.
|
|
19118
19122
|
*/
|
|
19119
19123
|
changes(e = []) {
|
|
19120
|
-
return e instanceof
|
|
19124
|
+
return e instanceof Xt ? e : Xt.of(e, this.doc.length, this.facet(Fe.lineSeparator));
|
|
19121
19125
|
}
|
|
19122
19126
|
/**
|
|
19123
19127
|
Using the state's [line
|
|
@@ -19296,12 +19300,12 @@ class Fe {
|
|
|
19296
19300
|
}
|
|
19297
19301
|
}
|
|
19298
19302
|
Fe.allowMultipleSelections = xc;
|
|
19299
|
-
Fe.tabSize = /* @__PURE__ */
|
|
19303
|
+
Fe.tabSize = /* @__PURE__ */ ve.define({
|
|
19300
19304
|
combine: (t) => t.length ? t[0] : 4
|
|
19301
19305
|
});
|
|
19302
19306
|
Fe.lineSeparator = t_;
|
|
19303
19307
|
Fe.readOnly = a_;
|
|
19304
|
-
Fe.phrases = /* @__PURE__ */
|
|
19308
|
+
Fe.phrases = /* @__PURE__ */ ve.define({
|
|
19305
19309
|
compare(t, e) {
|
|
19306
19310
|
let r = Object.keys(t), n = Object.keys(e);
|
|
19307
19311
|
return r.length == n.length && r.every((i) => t[i] == e[i]);
|
|
@@ -20603,7 +20607,7 @@ function g_(t, e, r, n, i, a) {
|
|
|
20603
20607
|
}
|
|
20604
20608
|
let B1 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Ac = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
20605
20609
|
const Mc = /* @__PURE__ */ /Edge\/(\d+)/.exec(B1.userAgent), O_ = /* @__PURE__ */ /MSIE \d/.test(B1.userAgent), Pc = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(B1.userAgent), e8 = !!(O_ || Pc || Mc), Mp = !e8 && /* @__PURE__ */ /gecko\/(\d+)/i.test(B1.userAgent), su = !e8 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(B1.userAgent), iz = "webkitFontSmoothing" in Ac.documentElement.style, y_ = !e8 && /* @__PURE__ */ /Apple Computer/.test(B1.vendor), Pp = y_ && (/* @__PURE__ */ /Mobile\/\w+/.test(B1.userAgent) || B1.maxTouchPoints > 2);
|
|
20606
|
-
var
|
|
20610
|
+
var ye = {
|
|
20607
20611
|
mac: Pp || /* @__PURE__ */ /Mac/.test(B1.platform),
|
|
20608
20612
|
windows: /* @__PURE__ */ /Win/.test(B1.platform),
|
|
20609
20613
|
linux: /* @__PURE__ */ /Linux|X11/.test(B1.platform),
|
|
@@ -20700,12 +20704,12 @@ function oz(t, e, r) {
|
|
|
20700
20704
|
let n = t.nodeValue.length;
|
|
20701
20705
|
e > n && (e = n);
|
|
20702
20706
|
let i = e, a = e, o = 0;
|
|
20703
|
-
e == 0 && r < 0 || e == n && r >= 0 ?
|
|
20707
|
+
e == 0 && r < 0 || e == n && r >= 0 ? ye.chrome || ye.gecko || (e ? (i--, o = 1) : a < n && (a++, o = -1)) : r < 0 ? i-- : a < n && a++;
|
|
20704
20708
|
let s = Mi(t, i, a).getClientRects();
|
|
20705
20709
|
if (!s.length)
|
|
20706
20710
|
return null;
|
|
20707
20711
|
let l = s[(o ? o < 0 : r >= 0) ? 0 : s.length - 1];
|
|
20708
|
-
return
|
|
20712
|
+
return ye.safari && !o && l.width == 0 && (l = Array.prototype.find.call(s, (u) => u.width) || l), o ? Wo(l, o < 0) : l || null;
|
|
20709
20713
|
}
|
|
20710
20714
|
class J3 extends pt {
|
|
20711
20715
|
static create(e, r, n) {
|
|
@@ -21178,7 +21182,7 @@ class It extends pt {
|
|
|
21178
21182
|
let i = this.dom.lastChild;
|
|
21179
21183
|
for (; i && pt.get(i) instanceof P3; )
|
|
21180
21184
|
i = i.lastChild;
|
|
21181
|
-
if (!i || !this.length || i.nodeName != "BR" && ((n = pt.get(i)) === null || n === void 0 ? void 0 : n.isEditable) == !1 && (!
|
|
21185
|
+
if (!i || !this.length || i.nodeName != "BR" && ((n = pt.get(i)) === null || n === void 0 ? void 0 : n.isEditable) == !1 && (!ye.ios || !this.children.some((a) => a instanceof kr))) {
|
|
21182
21186
|
let a = document.createElement("BR");
|
|
21183
21187
|
a.cmIgnore = !0, this.dom.appendChild(a);
|
|
21184
21188
|
}
|
|
@@ -21688,11 +21692,11 @@ function Oz(t, e, r) {
|
|
|
21688
21692
|
}
|
|
21689
21693
|
return Pi;
|
|
21690
21694
|
}
|
|
21691
|
-
const C_ = /* @__PURE__ */
|
|
21695
|
+
const C_ = /* @__PURE__ */ ve.define(), A_ = /* @__PURE__ */ ve.define(), M_ = /* @__PURE__ */ ve.define(), P_ = /* @__PURE__ */ ve.define(), Bc = /* @__PURE__ */ ve.define(), k_ = /* @__PURE__ */ ve.define(), D_ = /* @__PURE__ */ ve.define(), xT = /* @__PURE__ */ ve.define(), LT = /* @__PURE__ */ ve.define(), V_ = /* @__PURE__ */ ve.define({
|
|
21692
21696
|
combine: (t) => t.some((e) => e)
|
|
21693
|
-
}), R_ = /* @__PURE__ */
|
|
21697
|
+
}), R_ = /* @__PURE__ */ ve.define({
|
|
21694
21698
|
combine: (t) => t.some((e) => e)
|
|
21695
|
-
}), I_ = /* @__PURE__ */
|
|
21699
|
+
}), I_ = /* @__PURE__ */ ve.define();
|
|
21696
21700
|
class E6 {
|
|
21697
21701
|
constructor(e, r = "nearest", n = "nearest", i = 5, a = 5, o = !1) {
|
|
21698
21702
|
this.range = e, this.y = r, this.x = n, this.yMargin = i, this.xMargin = a, this.isSnapshot = o;
|
|
@@ -21709,9 +21713,9 @@ function j1(t, e, r) {
|
|
|
21709
21713
|
let n = t.facet(P_);
|
|
21710
21714
|
n.length ? n[0](e) : window.onerror && window.onerror(String(e), r, void 0, void 0, e) || (r ? console.error(r + ":", e) : console.error(e));
|
|
21711
21715
|
}
|
|
21712
|
-
const _3 = /* @__PURE__ */
|
|
21716
|
+
const _3 = /* @__PURE__ */ ve.define({ combine: (t) => t.length ? t[0] : !0 });
|
|
21713
21717
|
let yz = 0;
|
|
21714
|
-
const m6 = /* @__PURE__ */
|
|
21718
|
+
const m6 = /* @__PURE__ */ ve.define({
|
|
21715
21719
|
combine(t) {
|
|
21716
21720
|
return t.filter((e, r) => {
|
|
21717
21721
|
for (let n = 0; n < r; n++)
|
|
@@ -21797,7 +21801,7 @@ class lu {
|
|
|
21797
21801
|
this.spec = this.value = null;
|
|
21798
21802
|
}
|
|
21799
21803
|
}
|
|
21800
|
-
const B_ = /* @__PURE__ */
|
|
21804
|
+
const B_ = /* @__PURE__ */ ve.define(), bT = /* @__PURE__ */ ve.define(), yo = /* @__PURE__ */ ve.define(), $_ = /* @__PURE__ */ ve.define(), ST = /* @__PURE__ */ ve.define(), j_ = /* @__PURE__ */ ve.define();
|
|
21801
21805
|
function Dp(t, e) {
|
|
21802
21806
|
let r = t.state.facet(j_);
|
|
21803
21807
|
if (!r.length)
|
|
@@ -21820,7 +21824,7 @@ function Dp(t, e) {
|
|
|
21820
21824
|
}
|
|
21821
21825
|
}), i;
|
|
21822
21826
|
}
|
|
21823
|
-
const F_ = /* @__PURE__ */
|
|
21827
|
+
const F_ = /* @__PURE__ */ ve.define();
|
|
21824
21828
|
function ET(t) {
|
|
21825
21829
|
let e = 0, r = 0, n = 0, i = 0;
|
|
21826
21830
|
for (let a of t.state.facet(F_)) {
|
|
@@ -21829,7 +21833,7 @@ function ET(t) {
|
|
|
21829
21833
|
}
|
|
21830
21834
|
return { left: e, right: r, top: n, bottom: i };
|
|
21831
21835
|
}
|
|
21832
|
-
const Ca = /* @__PURE__ */
|
|
21836
|
+
const Ca = /* @__PURE__ */ ve.define();
|
|
21833
21837
|
class Z2 {
|
|
21834
21838
|
constructor(e, r, n, i) {
|
|
21835
21839
|
this.fromA = e, this.toA = r, this.fromB = n, this.toB = i;
|
|
@@ -21869,7 +21873,7 @@ class Z2 {
|
|
|
21869
21873
|
}
|
|
21870
21874
|
class Tl {
|
|
21871
21875
|
constructor(e, r, n) {
|
|
21872
|
-
this.view = e, this.state = r, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes =
|
|
21876
|
+
this.view = e, this.state = r, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = Xt.empty(this.startState.doc.length);
|
|
21873
21877
|
for (let a of n)
|
|
21874
21878
|
this.changes = this.changes.compose(a.changes);
|
|
21875
21879
|
let i = [];
|
|
@@ -21957,7 +21961,7 @@ class Vp extends pt {
|
|
|
21957
21961
|
let { from: u, to: c } = this.hasComposition;
|
|
21958
21962
|
n = new Z2(u, c, e.changes.mapPos(u, -1), e.changes.mapPos(c, 1)).addToSet(n.slice());
|
|
21959
21963
|
}
|
|
21960
|
-
this.hasComposition = a ? { from: a.range.fromB, to: a.range.toB } : null, (
|
|
21964
|
+
this.hasComposition = a ? { from: a.range.fromB, to: a.range.toB } : null, (ye.ie || ye.chrome) && !a && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
|
|
21961
21965
|
let o = this.decorations, s = this.updateDeco(), l = Sz(o, s, e.changes);
|
|
21962
21966
|
return n = Z2.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, a), e.transactions.length && (this.lastUpdate = Date.now()), !0);
|
|
21963
21967
|
}
|
|
@@ -21968,7 +21972,7 @@ class Vp extends pt {
|
|
|
21968
21972
|
let { observer: i } = this.view;
|
|
21969
21973
|
i.ignore(() => {
|
|
21970
21974
|
this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
21971
|
-
let o =
|
|
21975
|
+
let o = ye.chrome || ye.ios ? { node: i.selectionRange.focusNode, written: !1 } : void 0;
|
|
21972
21976
|
this.sync(this.view, o), this.flags &= -8, o && (o.written || i.selectionRange.focusNode != o.node) && (this.forceSelection = !0), this.dom.style.height = "";
|
|
21973
21977
|
}), this.markedForComposition.forEach(
|
|
21974
21978
|
(o) => o.flags &= -9
|
|
@@ -22035,16 +22039,16 @@ class Vp extends pt {
|
|
|
22035
22039
|
let o = this.forceSelection;
|
|
22036
22040
|
this.forceSelection = !1;
|
|
22037
22041
|
let s = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(s.anchor)), u = s.empty ? l : this.moveToLine(this.domAtPos(s.head));
|
|
22038
|
-
if (
|
|
22042
|
+
if (ye.gecko && s.empty && !this.hasComposition && vz(l)) {
|
|
22039
22043
|
let Q = document.createTextNode("");
|
|
22040
22044
|
this.view.observer.ignore(() => l.node.insertBefore(Q, l.node.childNodes[l.offset] || null)), l = u = new h1(Q, 0), o = !0;
|
|
22041
22045
|
}
|
|
22042
22046
|
let c = this.view.observer.selectionRange;
|
|
22043
22047
|
(o || !c.focusNode || (!$a(l.node, l.offset, c.anchorNode, c.anchorOffset) || !$a(u.node, u.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, s)) && (this.view.observer.ignore(() => {
|
|
22044
|
-
|
|
22048
|
+
ye.android && ye.chrome && this.dom.contains(c.focusNode) && Ez(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
|
|
22045
22049
|
let Q = Oo(this.view.root);
|
|
22046
22050
|
if (Q) if (s.empty) {
|
|
22047
|
-
if (
|
|
22051
|
+
if (ye.gecko) {
|
|
22048
22052
|
let T = Lz(l.node, l.offset);
|
|
22049
22053
|
if (T && T != 3) {
|
|
22050
22054
|
let f = (T == 1 ? h_ : d_)(l.node, l.offset);
|
|
@@ -22435,7 +22439,7 @@ function Np(t, e, r) {
|
|
|
22435
22439
|
let Q = (c.top > r ? c.top - r : r - c.bottom) - 1;
|
|
22436
22440
|
if (c.left - 1 <= e && c.right + 1 >= e && Q < a) {
|
|
22437
22441
|
let T = e >= (c.left + c.right) / 2, f = T;
|
|
22438
|
-
if ((
|
|
22442
|
+
if ((ye.chrome || ye.gecko) && Mi(t, s).getBoundingClientRect().left == c.right && (f = !T), Q <= 0)
|
|
22439
22443
|
return { node: t, offset: s + (f ? 1 : 0) };
|
|
22440
22444
|
i = s + (f ? 1 : 0), a = Q;
|
|
22441
22445
|
}
|
|
@@ -22471,7 +22475,7 @@ function Z_(t, e, r, n = -1) {
|
|
|
22471
22475
|
x && ({ offsetNode: d, offset: m } = x);
|
|
22472
22476
|
} else if (h.caretRangeFromPoint) {
|
|
22473
22477
|
let x = h.caretRangeFromPoint(c, Q);
|
|
22474
|
-
x && ({ startContainer: d, startOffset: m } = x, (!t.contentDOM.contains(d) ||
|
|
22478
|
+
x && ({ startContainer: d, startOffset: m } = x, (!t.contentDOM.contains(d) || ye.safari && Az(d, m, c) || ye.chrome && Mz(d, m, c)) && (d = void 0));
|
|
22475
22479
|
}
|
|
22476
22480
|
d && (m = Math.min(cn(d), m));
|
|
22477
22481
|
}
|
|
@@ -22712,7 +22716,7 @@ class Iz {
|
|
|
22712
22716
|
l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = jz(s, this.bounds.from);
|
|
22713
22717
|
} else {
|
|
22714
22718
|
let s = e.observer.selectionRange, l = a && a.node == s.focusNode && a.offset == s.focusOffset || !Cc(e.contentDOM, s.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(s.focusNode, s.focusOffset), u = o && o.node == s.anchorNode && o.offset == s.anchorOffset || !Cc(e.contentDOM, s.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(s.anchorNode, s.anchorOffset), c = e.viewport;
|
|
22715
|
-
if ((
|
|
22719
|
+
if ((ye.ios || ye.chrome) && e.state.selection.main.empty && l != u && (c.from > 0 || c.to < e.state.doc.length)) {
|
|
22716
22720
|
let Q = Math.min(l, u), T = Math.max(l, u), f = c.from - Q, h = c.to - T;
|
|
22717
22721
|
(f == 0 || f == 1 || Q == 0) && (h == 0 || h == -1 || T == e.state.doc.length) && (l = 0, u = e.state.doc.length);
|
|
22718
22722
|
}
|
|
@@ -22724,9 +22728,9 @@ function z_(t, e) {
|
|
|
22724
22728
|
let r, { newSel: n } = e, i = t.state.selection.main, a = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1;
|
|
22725
22729
|
if (e.bounds) {
|
|
22726
22730
|
let { from: o, to: s } = e.bounds, l = i.from, u = null;
|
|
22727
|
-
(a === 8 ||
|
|
22731
|
+
(a === 8 || ye.android && e.text.length < s - o) && (l = i.to, u = "end");
|
|
22728
22732
|
let c = Bz(t.state.doc.sliceString(o, s, Aa), e.text, l - o, u);
|
|
22729
|
-
c && (
|
|
22733
|
+
c && (ye.chrome && a == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == Aa + Aa && c.toB--, r = {
|
|
22730
22734
|
from: o + c.from,
|
|
22731
22735
|
to: o + c.toA,
|
|
22732
22736
|
insert: Ge.of(e.text.slice(c.from, c.toB).split(Aa))
|
|
@@ -22734,11 +22738,11 @@ function z_(t, e) {
|
|
|
22734
22738
|
} else n && (!t.hasFocus && t.state.facet(_3) || n.main.eq(i)) && (n = null);
|
|
22735
22739
|
if (!r && !n)
|
|
22736
22740
|
return !1;
|
|
22737
|
-
if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : (
|
|
22741
|
+
if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : (ye.mac || ye.android) && r && r.from == r.to && r.from == i.head - 1 && /^\. ?$/.test(r.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (n && r.insert.length == 2 && (n = le.single(n.main.anchor - 1, n.main.head - 1)), r = { from: r.from, to: r.to, insert: Ge.of([r.insert.toString().replace(".", " ")]) }) : r && r.from >= i.from && r.to <= i.to && (r.from != i.from || r.to != i.to) && i.to - i.from - (r.to - r.from) <= 4 ? r = {
|
|
22738
22742
|
from: i.from,
|
|
22739
22743
|
to: i.to,
|
|
22740
22744
|
insert: t.state.doc.slice(i.from, r.from).append(r.insert).append(t.state.doc.slice(r.to, i.to))
|
|
22741
|
-
} :
|
|
22745
|
+
} : ye.chrome && r && r.from == r.to && r.from == i.head && r.insert.toString() == `
|
|
22742
22746
|
` && t.lineWrapping && (n && (n = le.single(n.main.anchor - 1, n.main.head - 1)), r = { from: i.from, to: i.to, insert: Ge.of([" "]) }), r)
|
|
22743
22747
|
return HT(t, r, n, a);
|
|
22744
22748
|
if (n && !n.main.eq(i)) {
|
|
@@ -22748,10 +22752,10 @@ function z_(t, e) {
|
|
|
22748
22752
|
return !1;
|
|
22749
22753
|
}
|
|
22750
22754
|
function HT(t, e, r, n = -1) {
|
|
22751
|
-
if (
|
|
22755
|
+
if (ye.ios && t.inputState.flushIOSKey(e))
|
|
22752
22756
|
return !0;
|
|
22753
22757
|
let i = t.state.selection.main;
|
|
22754
|
-
if (
|
|
22758
|
+
if (ye.android && (e.to == i.to && // GBoard will sometimes remove a space it just inserted
|
|
22755
22759
|
// after a completion when you press enter
|
|
22756
22760
|
(e.from == i.from || e.from == i.from - 1 && t.state.sliceDoc(e.from, i.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && S6(t.contentDOM, "Enter", 13) || (e.from == i.from - 1 && e.to == i.to && e.insert.length == 0 || n == 8 && e.insert.length < e.to - e.from && e.to > i.head) && S6(t.contentDOM, "Backspace", 8) || e.from == i.from && e.to == i.to + 1 && e.insert.length == 0 && S6(t.contentDOM, "Delete", 46)))
|
|
22757
22761
|
return !0;
|
|
@@ -22840,7 +22844,7 @@ class Fz {
|
|
|
22840
22844
|
this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
|
|
22841
22845
|
}
|
|
22842
22846
|
constructor(e) {
|
|
22843
|
-
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus,
|
|
22847
|
+
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, ye.safari && e.contentDOM.addEventListener("input", () => null), ye.gecko && aX(e.contentDOM.ownerDocument);
|
|
22844
22848
|
}
|
|
22845
22849
|
handleEvent(e) {
|
|
22846
22850
|
!Yz(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
|
|
@@ -22874,17 +22878,17 @@ class Fz {
|
|
|
22874
22878
|
keydown(e) {
|
|
22875
22879
|
if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
|
|
22876
22880
|
return !0;
|
|
22877
|
-
if (this.tabFocusMode > 0 && e.keyCode != 27 && U_.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1),
|
|
22881
|
+
if (this.tabFocusMode > 0 && e.keyCode != 27 && U_.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), ye.android && ye.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
|
|
22878
22882
|
return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
|
|
22879
22883
|
let r;
|
|
22880
|
-
return
|
|
22884
|
+
return ye.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = X_.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || Zz.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
|
|
22881
22885
|
}
|
|
22882
22886
|
flushIOSKey(e) {
|
|
22883
22887
|
let r = this.pendingIOSKey;
|
|
22884
22888
|
return !r || r.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, S6(this.view.contentDOM, r.key, r.keyCode, r instanceof KeyboardEvent ? r : void 0));
|
|
22885
22889
|
}
|
|
22886
22890
|
ignoreDuringComposition(e) {
|
|
22887
|
-
return /^key/.test(e.type) ? this.composing > 0 ? !0 :
|
|
22891
|
+
return /^key/.test(e.type) ? this.composing > 0 ? !0 : ye.safari && !ye.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
|
|
22888
22892
|
}
|
|
22889
22893
|
startMouseSelection(e) {
|
|
22890
22894
|
this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
|
|
@@ -23004,11 +23008,11 @@ class Xz {
|
|
|
23004
23008
|
}
|
|
23005
23009
|
function Uz(t, e) {
|
|
23006
23010
|
let r = t.state.facet(C_);
|
|
23007
|
-
return r.length ? r[0](e) :
|
|
23011
|
+
return r.length ? r[0](e) : ye.mac ? e.metaKey : e.ctrlKey;
|
|
23008
23012
|
}
|
|
23009
23013
|
function Wz(t, e) {
|
|
23010
23014
|
let r = t.state.facet(A_);
|
|
23011
|
-
return r.length ? r[0](e) :
|
|
23015
|
+
return r.length ? r[0](e) : ye.mac ? !e.altKey : !e.ctrlKey;
|
|
23012
23016
|
}
|
|
23013
23017
|
function Gz(t, e) {
|
|
23014
23018
|
let { main: r } = t.state.selection;
|
|
@@ -23035,7 +23039,7 @@ function Yz(t, e) {
|
|
|
23035
23039
|
return !1;
|
|
23036
23040
|
return !0;
|
|
23037
23041
|
}
|
|
23038
|
-
const Dr = /* @__PURE__ */ Object.create(null), z2 = /* @__PURE__ */ Object.create(null), W_ =
|
|
23042
|
+
const Dr = /* @__PURE__ */ Object.create(null), z2 = /* @__PURE__ */ Object.create(null), W_ = ye.ie && ye.ie_version < 15 || ye.ios && ye.webkit_version < 604;
|
|
23039
23043
|
function Kz(t) {
|
|
23040
23044
|
let e = t.dom.parentNode;
|
|
23041
23045
|
if (!e)
|
|
@@ -23138,7 +23142,7 @@ function zp(t, e) {
|
|
|
23138
23142
|
let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
|
|
23139
23143
|
return { pos: r, bias: Jz(t, r, e.clientX, e.clientY) };
|
|
23140
23144
|
}
|
|
23141
|
-
const eX =
|
|
23145
|
+
const eX = ye.ie && ye.ie_version <= 11;
|
|
23142
23146
|
let Xp = null, Up = 0, Wp = 0;
|
|
23143
23147
|
function Y_(t) {
|
|
23144
23148
|
if (!eX)
|
|
@@ -23288,7 +23292,7 @@ z2.compositionstart = z2.compositionupdate = (t) => {
|
|
|
23288
23292
|
t.observer.editContext || (t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0));
|
|
23289
23293
|
};
|
|
23290
23294
|
z2.compositionend = (t) => {
|
|
23291
|
-
t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null,
|
|
23295
|
+
t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, ye.chrome && ye.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
|
|
23292
23296
|
t.inputState.composing < 0 && t.docView.hasComposition && t.update([]);
|
|
23293
23297
|
}, 50));
|
|
23294
23298
|
};
|
|
@@ -23305,14 +23309,14 @@ Dr.beforeinput = (t, e) => {
|
|
|
23305
23309
|
}
|
|
23306
23310
|
}
|
|
23307
23311
|
let i;
|
|
23308
|
-
if (
|
|
23312
|
+
if (ye.chrome && ye.android && (i = X_.find((a) => a.inputType == e.inputType)) && (t.observer.delayAndroidKey(i.key, i.keyCode), i.key == "Backspace" || i.key == "Delete")) {
|
|
23309
23313
|
let a = ((n = window.visualViewport) === null || n === void 0 ? void 0 : n.height) || 0;
|
|
23310
23314
|
setTimeout(() => {
|
|
23311
23315
|
var o;
|
|
23312
23316
|
(((o = window.visualViewport) === null || o === void 0 ? void 0 : o.height) || 0) > a + 10 && t.hasFocus && (t.contentDOM.blur(), t.focus());
|
|
23313
23317
|
}, 100);
|
|
23314
23318
|
}
|
|
23315
|
-
return
|
|
23319
|
+
return ye.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), ye.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => z2.compositionend(t, e), 20), !1;
|
|
23316
23320
|
};
|
|
23317
23321
|
const Yp = /* @__PURE__ */ new Set();
|
|
23318
23322
|
function aX(t) {
|
|
@@ -23334,7 +23338,7 @@ class oX {
|
|
|
23334
23338
|
return this.lineWrapping && (n += Math.max(0, Math.ceil((r - e - n * this.lineLength * 0.5) / this.lineLength))), this.lineHeight * n;
|
|
23335
23339
|
}
|
|
23336
23340
|
heightForLine(e) {
|
|
23337
|
-
return this.lineWrapping ? (1 + Math.max(0, Math.ceil((e - this.lineLength) / (this.lineLength - 5)))) * this.lineHeight : this.lineHeight;
|
|
23341
|
+
return this.lineWrapping ? (1 + Math.max(0, Math.ceil((e - this.lineLength) / Math.max(1, this.lineLength - 5)))) * this.lineHeight : this.lineHeight;
|
|
23338
23342
|
}
|
|
23339
23343
|
setDoc(e) {
|
|
23340
23344
|
return this.doc = e, this;
|
|
@@ -23876,7 +23880,7 @@ class tm {
|
|
|
23876
23880
|
this.state = e.state;
|
|
23877
23881
|
let n = this.stateDeco;
|
|
23878
23882
|
this.stateDeco = this.state.facet(yo).filter((c) => typeof c != "function");
|
|
23879
|
-
let i = e.changedRanges, a = Z2.extendWithRanges(i, cX(n, this.stateDeco, e ? e.changes :
|
|
23883
|
+
let i = e.changedRanges, a = Z2.extendWithRanges(i, cX(n, this.stateDeco, e ? e.changes : Xt.empty(this.state.doc.length))), o = this.heightMap.height, s = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
23880
23884
|
Jp(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), a), (this.heightMap.height != o || N6) && (e.flags |= 2), s ? (this.scrollAnchorPos = e.changes.mapPos(s.from, -1), this.scrollAnchorHeight = s.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = o);
|
|
23881
23885
|
let l = a.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
23882
23886
|
(r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r));
|
|
@@ -23907,7 +23911,7 @@ class tm {
|
|
|
23907
23911
|
let x = e.docView.measureVisibleLineHeights(this.viewport);
|
|
23908
23912
|
if (i.mustRefreshForHeights(x) && (o = !0), o || i.lineWrapping && Math.abs(m - this.contentDOMWidth) > i.charWidth) {
|
|
23909
23913
|
let { lineHeight: O, charWidth: v, textHeight: L } = e.docView.measureTextSize();
|
|
23910
|
-
o = O > 0 && i.refresh(a, O, v, L, m / v, x), o && (e.docView.minWidth = 0, u |= 16);
|
|
23914
|
+
o = O > 0 && i.refresh(a, O, v, L, Math.max(5, m / v), x), o && (e.docView.minWidth = 0, u |= 16);
|
|
23911
23915
|
}
|
|
23912
23916
|
p > 0 && g > 0 ? c = Math.max(p, g) : p < 0 && g < 0 && (c = Math.min(p, g)), Jp();
|
|
23913
23917
|
for (let O of this.viewports) {
|
|
@@ -24173,7 +24177,7 @@ function Ma(t, e) {
|
|
|
24173
24177
|
let r = e.toDOM(t.top), n = e.toDOM(t.bottom);
|
|
24174
24178
|
return new tn(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => Ma(i, e)) : t._content);
|
|
24175
24179
|
}
|
|
24176
|
-
const Us = /* @__PURE__ */
|
|
24180
|
+
const Us = /* @__PURE__ */ ve.define({ combine: (t) => t.join(" ") }), qc = /* @__PURE__ */ ve.define({ combine: (t) => t.indexOf(!0) > -1 }), Zc = /* @__PURE__ */ l4.newName(), rw = /* @__PURE__ */ l4.newName(), nw = /* @__PURE__ */ l4.newName(), iw = { "&light": "." + rw, "&dark": "." + nw };
|
|
24177
24181
|
function zc(t, e, r) {
|
|
24178
24182
|
return new l4(e, {
|
|
24179
24183
|
finish(n) {
|
|
@@ -24461,15 +24465,15 @@ const gX = /* @__PURE__ */ zc("." + Zc, {
|
|
|
24461
24465
|
subtree: !0,
|
|
24462
24466
|
attributes: !0,
|
|
24463
24467
|
characterDataOldValue: !0
|
|
24464
|
-
}, Tu =
|
|
24468
|
+
}, Tu = ye.ie && ye.ie_version <= 11;
|
|
24465
24469
|
class yX {
|
|
24466
24470
|
constructor(e) {
|
|
24467
24471
|
this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new tz(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => {
|
|
24468
24472
|
for (let n of r)
|
|
24469
24473
|
this.queue.push(n);
|
|
24470
|
-
(
|
|
24471
|
-
}), window.EditContext &&
|
|
24472
|
-
!(
|
|
24474
|
+
(ye.ie && ye.ie_version <= 11 || ye.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
24475
|
+
}), window.EditContext && ye.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
|
|
24476
|
+
!(ye.chrome && ye.chrome_version < 126) && (this.editContext = new xX(e), e.state.facet(_3) && (e.contentDOM.editContext = this.editContext.editContext)), Tu && (this.onCharData = (r) => {
|
|
24473
24477
|
this.queue.push({
|
|
24474
24478
|
target: r.target,
|
|
24475
24479
|
type: "characterData",
|
|
@@ -24520,14 +24524,14 @@ class yX {
|
|
|
24520
24524
|
r || (this.selectionChanged = !1);
|
|
24521
24525
|
return;
|
|
24522
24526
|
}
|
|
24523
|
-
(
|
|
24527
|
+
(ye.ie && ye.ie_version <= 11 || ye.android && ye.chrome) && !n.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
|
|
24524
24528
|
i.focusNode && $a(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1);
|
|
24525
24529
|
}
|
|
24526
24530
|
readSelectionRange() {
|
|
24527
24531
|
let { view: e } = this, r = Oo(e.root);
|
|
24528
24532
|
if (!r)
|
|
24529
24533
|
return !1;
|
|
24530
|
-
let n =
|
|
24534
|
+
let n = ye.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && vX(this.view, r) || r;
|
|
24531
24535
|
if (!n || this.selectionRange.eq(n))
|
|
24532
24536
|
return !1;
|
|
24533
24537
|
let i = H7(this.dom, n);
|
|
@@ -24724,7 +24728,7 @@ class xX {
|
|
|
24724
24728
|
c.main.eq(i) || e.dispatch({ selection: c, userEvent: "select" });
|
|
24725
24729
|
return;
|
|
24726
24730
|
}
|
|
24727
|
-
if ((
|
|
24731
|
+
if ((ye.mac || ye.android) && u.from == o - 1 && /^\. ?$/.test(n.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: s, to: l, insert: Ge.of([n.text.replace(".", " ")]) }), this.pendingContextChange = u, !e.state.readOnly) {
|
|
24728
24732
|
let c = this.to - this.from + (u.to - u.from + u.insert.length);
|
|
24729
24733
|
HT(e, u, le.single(this.toEditorPos(n.selectionStart, c), this.toEditorPos(n.selectionEnd, c)));
|
|
24730
24734
|
}
|
|
@@ -25118,7 +25122,7 @@ class me {
|
|
|
25118
25122
|
translate: "no",
|
|
25119
25123
|
contenteditable: this.state.facet(_3) ? "true" : "false",
|
|
25120
25124
|
class: "cm-content",
|
|
25121
|
-
style: `${
|
|
25125
|
+
style: `${ye.tabSize}: ${this.state.tabSize}`,
|
|
25122
25126
|
role: "textbox",
|
|
25123
25127
|
"aria-multiline": "true"
|
|
25124
25128
|
};
|
|
@@ -25432,7 +25436,7 @@ class me {
|
|
|
25432
25436
|
*/
|
|
25433
25437
|
get hasFocus() {
|
|
25434
25438
|
var e;
|
|
25435
|
-
return (this.dom.ownerDocument.hasFocus() ||
|
|
25439
|
+
return (this.dom.ownerDocument.hasFocus() || ye.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
|
|
25436
25440
|
}
|
|
25437
25441
|
/**
|
|
25438
25442
|
Put focus on the editor.
|
|
@@ -25586,7 +25590,7 @@ me.atomicRanges = ST;
|
|
|
25586
25590
|
me.bidiIsolatedRanges = j_;
|
|
25587
25591
|
me.scrollMargins = F_;
|
|
25588
25592
|
me.darkTheme = qc;
|
|
25589
|
-
me.cspNonce = /* @__PURE__ */
|
|
25593
|
+
me.cspNonce = /* @__PURE__ */ ve.define({ combine: (t) => t.length ? t[0] : "" });
|
|
25590
25594
|
me.contentAttributes = bT;
|
|
25591
25595
|
me.editorAttributes = B_;
|
|
25592
25596
|
me.lineWrapping = /* @__PURE__ */ me.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
@@ -25614,7 +25618,7 @@ function om(t, e, r) {
|
|
|
25614
25618
|
}
|
|
25615
25619
|
return r;
|
|
25616
25620
|
}
|
|
25617
|
-
const bX =
|
|
25621
|
+
const bX = ye.mac ? "mac" : ye.windows ? "win" : ye.linux ? "linux" : "key";
|
|
25618
25622
|
function SX(t, e) {
|
|
25619
25623
|
const r = t.split(/-(?!$)/);
|
|
25620
25624
|
let n = r[r.length - 1];
|
|
@@ -25644,7 +25648,7 @@ const EX = /* @__PURE__ */ D3.default(/* @__PURE__ */ me.domEventHandlers({
|
|
|
25644
25648
|
keydown(t, e) {
|
|
25645
25649
|
return ow(aw(e.state), t, e, "editor");
|
|
25646
25650
|
}
|
|
25647
|
-
})), K6 = /* @__PURE__ */
|
|
25651
|
+
})), K6 = /* @__PURE__ */ ve.define({ enables: EX }), sm = /* @__PURE__ */ new WeakMap();
|
|
25648
25652
|
function aw(t) {
|
|
25649
25653
|
let e = t.facet(K6), r = sm.get(e);
|
|
25650
25654
|
return r || sm.set(e, r = wX(e.reduce((n, i) => n.concat(i), []))), r;
|
|
@@ -25718,7 +25722,8 @@ function ow(t, e, r, n) {
|
|
|
25718
25722
|
return !1;
|
|
25719
25723
|
}, f = t[n], h, p;
|
|
25720
25724
|
return f && (T(f[s + Ws(i, e, !o)]) ? l = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
25721
|
-
!(
|
|
25725
|
+
!(ye.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
25726
|
+
!(ye.mac && e.altKey && !e.ctrlKey) && (h = u4[e.keyCode]) && h != i ? (T(f[s + Ws(h, e, !0)]) || e.shiftKey && (p = go[e.keyCode]) != i && p != h && T(f[s + Ws(p, e, !1)])) && (l = !0) : o && e.shiftKey && T(f[s + Ws(i, e, !0)]) && (l = !0), !l && T(f._any) && (l = !0)), u && (l = !0), l && c && e.stopPropagation(), Xc = null, l;
|
|
25722
25727
|
}
|
|
25723
25728
|
class Ko {
|
|
25724
25729
|
/**
|
|
@@ -25858,14 +25863,14 @@ class MX {
|
|
|
25858
25863
|
this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
|
|
25859
25864
|
}
|
|
25860
25865
|
}
|
|
25861
|
-
const A7 = /* @__PURE__ */
|
|
25866
|
+
const A7 = /* @__PURE__ */ ve.define();
|
|
25862
25867
|
function lw(t) {
|
|
25863
25868
|
return [
|
|
25864
25869
|
wt.define((e) => new MX(e, t)),
|
|
25865
25870
|
A7.of(t)
|
|
25866
25871
|
];
|
|
25867
25872
|
}
|
|
25868
|
-
const vo = /* @__PURE__ */
|
|
25873
|
+
const vo = /* @__PURE__ */ ve.define({
|
|
25869
25874
|
combine(t) {
|
|
25870
25875
|
return hn(t, {
|
|
25871
25876
|
cursorBlinkRate: 1200,
|
|
@@ -26121,7 +26126,7 @@ function jX() {
|
|
|
26121
26126
|
}
|
|
26122
26127
|
return fu || !1;
|
|
26123
26128
|
}
|
|
26124
|
-
const M7 = /* @__PURE__ */
|
|
26129
|
+
const M7 = /* @__PURE__ */ ve.define({
|
|
26125
26130
|
combine(t) {
|
|
26126
26131
|
let e = hn(t, {
|
|
26127
26132
|
render: null,
|
|
@@ -26383,11 +26388,11 @@ function sU(t) {
|
|
|
26383
26388
|
let e = t.dom.ownerDocument.documentElement;
|
|
26384
26389
|
return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
|
|
26385
26390
|
}
|
|
26386
|
-
const hu = /* @__PURE__ */
|
|
26391
|
+
const hu = /* @__PURE__ */ ve.define({
|
|
26387
26392
|
combine: (t) => {
|
|
26388
26393
|
var e, r, n;
|
|
26389
26394
|
return {
|
|
26390
|
-
position:
|
|
26395
|
+
position: ye.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
|
|
26391
26396
|
parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null,
|
|
26392
26397
|
tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || sU
|
|
26393
26398
|
};
|
|
@@ -26455,7 +26460,7 @@ const hu = /* @__PURE__ */ ye.define({
|
|
|
26455
26460
|
let t = 1, e = 1, r = !1;
|
|
26456
26461
|
if (this.position == "fixed" && this.manager.tooltipViews.length) {
|
|
26457
26462
|
let { dom: a } = this.manager.tooltipViews[0];
|
|
26458
|
-
if (
|
|
26463
|
+
if (ye.gecko)
|
|
26459
26464
|
r = a.offsetParent != this.container.ownerDocument.body;
|
|
26460
26465
|
else if (a.style.top == D5 && a.style.left == "0px") {
|
|
26461
26466
|
let o = a.getBoundingClientRect();
|
|
@@ -26557,7 +26562,7 @@ const lU = /* @__PURE__ */ me.baseTheme({
|
|
|
26557
26562
|
},
|
|
26558
26563
|
".cm-tooltip-arrow": {
|
|
26559
26564
|
height: "7px",
|
|
26560
|
-
width:
|
|
26565
|
+
width: "14px",
|
|
26561
26566
|
position: "absolute",
|
|
26562
26567
|
zIndex: -1,
|
|
26563
26568
|
overflow: "hidden",
|
|
@@ -26600,9 +26605,9 @@ const lU = /* @__PURE__ */ me.baseTheme({
|
|
|
26600
26605
|
borderBottomColor: "transparent"
|
|
26601
26606
|
}
|
|
26602
26607
|
}
|
|
26603
|
-
}), uU = { x: 0, y: 0 }, AT = /* @__PURE__ */
|
|
26608
|
+
}), uU = { x: 0, y: 0 }, AT = /* @__PURE__ */ ve.define({
|
|
26604
26609
|
enables: [CT, lU]
|
|
26605
|
-
}), dl = /* @__PURE__ */
|
|
26610
|
+
}), dl = /* @__PURE__ */ ve.define({
|
|
26606
26611
|
combine: (t) => t.reduce((e, r) => e.concat(r), [])
|
|
26607
26612
|
});
|
|
26608
26613
|
class r8 {
|
|
@@ -26807,7 +26812,7 @@ function fw(t, e) {
|
|
|
26807
26812
|
let n = r.manager.tooltips.indexOf(e);
|
|
26808
26813
|
return n < 0 ? null : r.manager.tooltipViews[n];
|
|
26809
26814
|
}
|
|
26810
|
-
const dU = /* @__PURE__ */ ke.define(), dm = /* @__PURE__ */
|
|
26815
|
+
const dU = /* @__PURE__ */ ke.define(), dm = /* @__PURE__ */ ve.define({
|
|
26811
26816
|
combine(t) {
|
|
26812
26817
|
let e, r;
|
|
26813
26818
|
for (let n of t)
|
|
@@ -26899,7 +26904,7 @@ function pm(t) {
|
|
|
26899
26904
|
let e = t.nextSibling;
|
|
26900
26905
|
return t.remove(), e;
|
|
26901
26906
|
}
|
|
26902
|
-
const Lo = /* @__PURE__ */
|
|
26907
|
+
const Lo = /* @__PURE__ */ ve.define({
|
|
26903
26908
|
enables: hw
|
|
26904
26909
|
});
|
|
26905
26910
|
class k3 extends Ci {
|
|
@@ -26927,7 +26932,7 @@ k3.prototype.toDOM = void 0;
|
|
|
26927
26932
|
k3.prototype.mapMode = s1.TrackBefore;
|
|
26928
26933
|
k3.prototype.startSide = k3.prototype.endSide = -1;
|
|
26929
26934
|
k3.prototype.point = !0;
|
|
26930
|
-
const P7 = /* @__PURE__ */
|
|
26935
|
+
const P7 = /* @__PURE__ */ ve.define(), pU = /* @__PURE__ */ ve.define(), mU = {
|
|
26931
26936
|
class: "",
|
|
26932
26937
|
renderEmptyElements: !1,
|
|
26933
26938
|
elementStyle: "",
|
|
@@ -26939,11 +26944,11 @@ const P7 = /* @__PURE__ */ ye.define(), pU = /* @__PURE__ */ ye.define(), mU = {
|
|
|
26939
26944
|
updateSpacer: null,
|
|
26940
26945
|
domEventHandlers: {},
|
|
26941
26946
|
side: "before"
|
|
26942
|
-
}, Fa = /* @__PURE__ */
|
|
26947
|
+
}, Fa = /* @__PURE__ */ ve.define();
|
|
26943
26948
|
function gU(t) {
|
|
26944
26949
|
return [dw(), Fa.of({ ...mU, ...t })];
|
|
26945
26950
|
}
|
|
26946
|
-
const mm = /* @__PURE__ */
|
|
26951
|
+
const mm = /* @__PURE__ */ ve.define({
|
|
26947
26952
|
combine: (t) => t.some((e) => e)
|
|
26948
26953
|
});
|
|
26949
26954
|
function dw(t) {
|
|
@@ -27156,7 +27161,7 @@ function vU(t, e) {
|
|
|
27156
27161
|
return !1;
|
|
27157
27162
|
return !0;
|
|
27158
27163
|
}
|
|
27159
|
-
const xU = /* @__PURE__ */
|
|
27164
|
+
const xU = /* @__PURE__ */ ve.define(), LU = /* @__PURE__ */ ve.define(), g6 = /* @__PURE__ */ ve.define({
|
|
27160
27165
|
combine(t) {
|
|
27161
27166
|
return hn(t, { formatNumber: String, domEventHandlers: {} }, {
|
|
27162
27167
|
domEventHandlers(e, r) {
|
|
@@ -27243,7 +27248,7 @@ function _U() {
|
|
|
27243
27248
|
var mu;
|
|
27244
27249
|
const bi = /* @__PURE__ */ new Ae();
|
|
27245
27250
|
function MT(t) {
|
|
27246
|
-
return
|
|
27251
|
+
return ve.define({
|
|
27247
27252
|
combine: t ? (e) => e.concat(t) : void 0
|
|
27248
27253
|
});
|
|
27249
27254
|
}
|
|
@@ -27631,7 +27636,7 @@ const gu = typeof navigator < "u" && (!((mu = navigator.scheduling) === null ||
|
|
|
27631
27636
|
eventHandlers: { focus() {
|
|
27632
27637
|
this.scheduleWork();
|
|
27633
27638
|
} }
|
|
27634
|
-
}), T4 = /* @__PURE__ */
|
|
27639
|
+
}), T4 = /* @__PURE__ */ ve.define({
|
|
27635
27640
|
combine(t) {
|
|
27636
27641
|
return t.length ? t[0] : null;
|
|
27637
27642
|
},
|
|
@@ -27719,7 +27724,7 @@ class pl {
|
|
|
27719
27724
|
return null;
|
|
27720
27725
|
}
|
|
27721
27726
|
}
|
|
27722
|
-
const AU = /* @__PURE__ */
|
|
27727
|
+
const AU = /* @__PURE__ */ ve.define(), J6 = /* @__PURE__ */ ve.define({
|
|
27723
27728
|
combine: (t) => {
|
|
27724
27729
|
if (!t.length)
|
|
27725
27730
|
return " ";
|
|
@@ -27980,7 +27985,7 @@ function BU() {
|
|
|
27980
27985
|
return l.length ? [t, { changes: l, sequential: !0 }] : t;
|
|
27981
27986
|
});
|
|
27982
27987
|
}
|
|
27983
|
-
const yw = /* @__PURE__ */
|
|
27988
|
+
const yw = /* @__PURE__ */ ve.define(), d4 = /* @__PURE__ */ new Ae();
|
|
27984
27989
|
function i8(t) {
|
|
27985
27990
|
let e = t.firstChild, r = t.lastChild;
|
|
27986
27991
|
return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null;
|
|
@@ -28135,7 +28140,7 @@ const zU = (t) => {
|
|
|
28135
28140
|
placeholderDOM: null,
|
|
28136
28141
|
preparePlaceholder: null,
|
|
28137
28142
|
placeholderText: "…"
|
|
28138
|
-
}, Sw = /* @__PURE__ */
|
|
28143
|
+
}, Sw = /* @__PURE__ */ ve.define({
|
|
28139
28144
|
combine(t) {
|
|
28140
28145
|
return hn(t, WU);
|
|
28141
28146
|
}
|
|
@@ -28284,7 +28289,7 @@ class es {
|
|
|
28284
28289
|
return new es(e, r || {});
|
|
28285
28290
|
}
|
|
28286
28291
|
}
|
|
28287
|
-
const Yc = /* @__PURE__ */
|
|
28292
|
+
const Yc = /* @__PURE__ */ ve.define(), _w = /* @__PURE__ */ ve.define({
|
|
28288
28293
|
combine(t) {
|
|
28289
28294
|
return t.length ? [t[0]] : null;
|
|
28290
28295
|
}
|
|
@@ -28399,7 +28404,7 @@ const tW = /* @__PURE__ */ D3.high(/* @__PURE__ */ wt.fromClass(eW, {
|
|
|
28399
28404
|
]), nW = /* @__PURE__ */ me.baseTheme({
|
|
28400
28405
|
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
28401
28406
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
28402
|
-
}), Cw = 1e4, Aw = "()[]{}", Mw = /* @__PURE__ */
|
|
28407
|
+
}), Cw = 1e4, Aw = "()[]{}", Mw = /* @__PURE__ */ ve.define({
|
|
28403
28408
|
combine(t) {
|
|
28404
28409
|
return hn(t, {
|
|
28405
28410
|
afterCursor: !0,
|
|
@@ -28776,7 +28781,7 @@ class yW {
|
|
|
28776
28781
|
return n == null ? null : (this.matched = [0, r.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
|
|
28777
28782
|
}
|
|
28778
28783
|
}
|
|
28779
|
-
const Yt = /* @__PURE__ */
|
|
28784
|
+
const Yt = /* @__PURE__ */ ve.define({
|
|
28780
28785
|
combine(t) {
|
|
28781
28786
|
return hn(t, {
|
|
28782
28787
|
activateOnTyping: !0,
|
|
@@ -29667,7 +29672,7 @@ function Bw(t) {
|
|
|
29667
29672
|
const zW = ({ state: t, dispatch: e }) => t.field(Ho, !1) ? (e(t.update({ effects: ts.of(null) })), !0) : !1, XW = /* @__PURE__ */ Bw(1), UW = /* @__PURE__ */ Bw(-1), WW = [
|
|
29668
29673
|
{ key: "Tab", run: XW, shift: UW },
|
|
29669
29674
|
{ key: "Escape", run: zW }
|
|
29670
|
-
], Dm = /* @__PURE__ */
|
|
29675
|
+
], Dm = /* @__PURE__ */ ve.define({
|
|
29671
29676
|
combine(t) {
|
|
29672
29677
|
return t.length ? t[0] : WW;
|
|
29673
29678
|
}
|
|
@@ -33855,7 +33860,7 @@ const eJ = /* @__PURE__ */ yw.of((t, e, r) => {
|
|
|
33855
33860
|
return null;
|
|
33856
33861
|
});
|
|
33857
33862
|
function KT(t) {
|
|
33858
|
-
return new j2(WC, t, [
|
|
33863
|
+
return new j2(WC, t, [], "markdown");
|
|
33859
33864
|
}
|
|
33860
33865
|
const tJ = /* @__PURE__ */ KT(YC), rJ = /* @__PURE__ */ YC.configure([kG, VG, DG, RG, {
|
|
33861
33866
|
props: [
|
|
@@ -34070,7 +34075,7 @@ function uJ(t = {}) {
|
|
|
34070
34075
|
let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = tJ, completeHTMLTags: a = !0, htmlTagLanguage: o = eA } = t;
|
|
34071
34076
|
if (!(i instanceof s8))
|
|
34072
34077
|
throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
34073
|
-
let s = t.extensions ? [t.extensions] : [], l = [o.support], u;
|
|
34078
|
+
let s = t.extensions ? [t.extensions] : [], l = [o.support, eJ], u;
|
|
34074
34079
|
r instanceof ki ? (l.push(r.support), u = r.language) : r && (u = r);
|
|
34075
34080
|
let c = e || u ? nJ(e, u) : void 0;
|
|
34076
34081
|
s.push(SG({ codeParser: c, htmlParser: o.language.parser })), n && l.push(D3.high(K6.of(lJ)));
|
|
@@ -34830,7 +34835,7 @@ function Dee(t, e, r = e.selection.ranges) {
|
|
|
34830
34835
|
}
|
|
34831
34836
|
return null;
|
|
34832
34837
|
}
|
|
34833
|
-
const TQ = /* @__PURE__ */ fn.define(), Vee = /* @__PURE__ */ fn.define(), Ree = /* @__PURE__ */
|
|
34838
|
+
const TQ = /* @__PURE__ */ fn.define(), Vee = /* @__PURE__ */ fn.define(), Ree = /* @__PURE__ */ ve.define(), TA = /* @__PURE__ */ ve.define({
|
|
34834
34839
|
combine(t) {
|
|
34835
34840
|
return hn(t, {
|
|
34836
34841
|
minDepth: 100,
|
|
@@ -34906,7 +34911,7 @@ class F1 {
|
|
|
34906
34911
|
};
|
|
34907
34912
|
}
|
|
34908
34913
|
static fromJSON(e) {
|
|
34909
|
-
return new F1(e.changes &&
|
|
34914
|
+
return new F1(e.changes && Xt.fromJSON(e.changes), [], e.mapped && ln.fromJSON(e.mapped), e.startSelection && le.fromJSON(e.startSelection), e.selectionsAfter.map(le.fromJSON));
|
|
34910
34915
|
}
|
|
34911
34916
|
// This does not check `addToHistory` and such, it assumes the
|
|
34912
34917
|
// transaction needs to be converted to an item. Returns null when
|
|
@@ -35691,7 +35696,7 @@ const za = /* @__PURE__ */ ke.define(), kg = /* @__PURE__ */ Jt.define({
|
|
|
35691
35696
|
minSelectionLength: 1,
|
|
35692
35697
|
maxMatches: 100,
|
|
35693
35698
|
wholeWords: !1
|
|
35694
|
-
}, qte = /* @__PURE__ */
|
|
35699
|
+
}, qte = /* @__PURE__ */ ve.define({
|
|
35695
35700
|
combine(t) {
|
|
35696
35701
|
return hn(t, Fte, {
|
|
35697
35702
|
highlightWordAroundCursor: (e, r) => e || r,
|
|
@@ -35789,7 +35794,7 @@ const Jte = ({ state: t, dispatch: e }) => {
|
|
|
35789
35794
|
selection: t.selection.addRange(le.range(i.from, i.to), !1),
|
|
35790
35795
|
effects: me.scrollIntoView(i.to)
|
|
35791
35796
|
})), !0) : !1;
|
|
35792
|
-
}, r5 = /* @__PURE__ */
|
|
35797
|
+
}, r5 = /* @__PURE__ */ ve.define({
|
|
35793
35798
|
combine(t) {
|
|
35794
35799
|
return hn(t, {
|
|
35795
35800
|
top: !1,
|
|
@@ -35997,7 +36002,7 @@ const i1e = /* @__PURE__ */ Le.mark({ class: "cm-searchMatch" }), a1e = /* @__PU
|
|
|
35997
36002
|
let { view: r } = this, n = new M3();
|
|
35998
36003
|
for (let i = 0, a = r.visibleRanges, o = a.length; i < o; i++) {
|
|
35999
36004
|
let { from: s, to: l } = a[i];
|
|
36000
|
-
for (; i < o - 1 && l > a[i + 1].from -
|
|
36005
|
+
for (; i < o - 1 && l > a[i + 1].from - 500; )
|
|
36001
36006
|
l = a[++i].to;
|
|
36002
36007
|
t.highlight(r.state, s, l, (u, c) => {
|
|
36003
36008
|
let Q = r.state.selection.ranges.some((T) => T.from == u && T.to == c);
|
|
@@ -36428,7 +36433,7 @@ const O1e = (t) => {
|
|
|
36428
36433
|
}, v1e = [
|
|
36429
36434
|
{ key: "Mod-Shift-m", run: O1e, preventDefault: !0 },
|
|
36430
36435
|
{ key: "F8", run: y1e }
|
|
36431
|
-
], Do = /* @__PURE__ */
|
|
36436
|
+
], Do = /* @__PURE__ */ ve.define({
|
|
36432
36437
|
combine(t) {
|
|
36433
36438
|
return Object.assign({ sources: t.map((e) => e.source).filter((e) => e != null) }, hn(t.map((e) => e.config), {
|
|
36434
36439
|
delay: 750,
|
|
@@ -37099,7 +37104,7 @@ var X1e = ["className", "value", "selection", "extensions", "onChange", "onStati
|
|
|
37099
37104
|
readOnly: v,
|
|
37100
37105
|
root: L,
|
|
37101
37106
|
initialState: b
|
|
37102
|
-
} = t, S = _ee(t, X1e), E =
|
|
37107
|
+
} = t, S = _ee(t, X1e), E = $t(null), {
|
|
37103
37108
|
state: C,
|
|
37104
37109
|
view: A,
|
|
37105
37110
|
container: w,
|
|
@@ -37147,7 +37152,7 @@ var X1e = ["className", "value", "selection", "extensions", "onChange", "onStati
|
|
|
37147
37152
|
Qf.displayName = "CodeMirror";
|
|
37148
37153
|
const m4 = Ni({
|
|
37149
37154
|
wrap: !1,
|
|
37150
|
-
value:
|
|
37155
|
+
value: void 0,
|
|
37151
37156
|
onChange: () => {
|
|
37152
37157
|
}
|
|
37153
37158
|
});
|
|
@@ -37274,18 +37279,22 @@ class G1e {
|
|
|
37274
37279
|
this.updateScheduled || (this.updateScheduled = !0, requestAnimationFrame(() => {
|
|
37275
37280
|
this.updateScheduled = !1;
|
|
37276
37281
|
const r = U1e(e.state), n = [], i = 1e3, a = e.visibleRanges;
|
|
37277
|
-
|
|
37278
|
-
|
|
37279
|
-
|
|
37280
|
-
|
|
37281
|
-
|
|
37282
|
-
|
|
37283
|
-
|
|
37284
|
-
|
|
37285
|
-
|
|
37286
|
-
|
|
37287
|
-
|
|
37288
|
-
|
|
37282
|
+
try {
|
|
37283
|
+
for (const o of r)
|
|
37284
|
+
if (o.start >= 0 && o.end <= e.state.doc.length && o.start < o.end && typeof o.pathArray[o.pathArray.length - 1] != "number" && this.isNodeInVisibleRange(o, a) && n.push(
|
|
37285
|
+
Le.mark({
|
|
37286
|
+
class: "cm-json-key",
|
|
37287
|
+
attributes: {
|
|
37288
|
+
"data-key-path": o.path,
|
|
37289
|
+
title: o.path
|
|
37290
|
+
}
|
|
37291
|
+
}).range(o.start + 1, o.end - 1)
|
|
37292
|
+
), n.length >= i)
|
|
37293
|
+
break;
|
|
37294
|
+
this.decorations = Le.set(n, !0), e.update([]);
|
|
37295
|
+
} catch (o) {
|
|
37296
|
+
console.warn(o);
|
|
37297
|
+
}
|
|
37289
37298
|
}));
|
|
37290
37299
|
}
|
|
37291
37300
|
isNodeInVisibleRange(e, r) {
|
|
@@ -37323,7 +37332,10 @@ function r2e(t, e, r, n) {
|
|
|
37323
37332
|
attributes: { "data-url": u }
|
|
37324
37333
|
};
|
|
37325
37334
|
c ? Q.attributes.onclick = `
|
|
37326
|
-
|
|
37335
|
+
const blockContainer = this.closest('[data-block-id]');
|
|
37336
|
+
if (blockContainer) {
|
|
37337
|
+
blockContainer.dispatchEvent(new CustomEvent('s3-path-click', { detail: { path: '${u}' } }))
|
|
37338
|
+
}
|
|
37327
37339
|
` : Q.attributes.onclick = `
|
|
37328
37340
|
document.dispatchEvent(new CustomEvent('s3-path-click-in-new-tab', { detail: { path: '${u}' } }))
|
|
37329
37341
|
`, i(a + 1, o - 1, Le.mark(Q));
|
|
@@ -37383,7 +37395,7 @@ const a2e = me.baseTheme({
|
|
|
37383
37395
|
}
|
|
37384
37396
|
}), o2e = [i2e(), a2e], Ug = [Hee(), kw(), uJ()];
|
|
37385
37397
|
function is({ className: t }) {
|
|
37386
|
-
const { wrap: e, value: r
|
|
37398
|
+
const { wrap: e, value: r, onChange: n } = Tf(), i = Ce(() => {
|
|
37387
37399
|
try {
|
|
37388
37400
|
return JSON.stringify(typeof r != "string" ? r : JSON.parse(r), null, 2);
|
|
37389
37401
|
} catch (o) {
|
|
@@ -37393,12 +37405,12 @@ function is({ className: t }) {
|
|
|
37393
37405
|
const o = [kw(), o2e, J1e];
|
|
37394
37406
|
return e && o.push(me.lineWrapping), o;
|
|
37395
37407
|
}, [e]);
|
|
37396
|
-
return /* @__PURE__ */ q(Qf, { className: t, value: i, height: "auto", extensions: a, onChange: n });
|
|
37408
|
+
return typeof r > "u" ? null : /* @__PURE__ */ q(Qf, { className: t, value: i ?? "", height: "auto", extensions: a, onChange: n });
|
|
37397
37409
|
}
|
|
37398
37410
|
function ff({ className: t }) {
|
|
37399
37411
|
const { wrap: e, value: r, onChange: n } = Tf(), { t: i } = m1(), a = Ce(() => {
|
|
37400
37412
|
try {
|
|
37401
|
-
return JSON.parse(r);
|
|
37413
|
+
return JSON.parse(r ?? "");
|
|
37402
37414
|
} catch (s) {
|
|
37403
37415
|
return console.error(s), r;
|
|
37404
37416
|
}
|
|
@@ -37411,7 +37423,7 @@ function ff({ className: t }) {
|
|
|
37411
37423
|
}
|
|
37412
37424
|
return r;
|
|
37413
37425
|
}, [r, i]);
|
|
37414
|
-
return typeof a == "object" ? /* @__PURE__ */ q(is, {}) : /* @__PURE__ */ q(Qf, { className: t, value: o, height: "auto", extensions: e ? [me.lineWrapping, ...Ug] : Ug, onChange: n });
|
|
37426
|
+
return typeof a == "object" ? /* @__PURE__ */ q(is, {}) : /* @__PURE__ */ q(Qf, { className: t, value: o || void 0, height: "auto", extensions: e ? [me.lineWrapping, ...Ug] : Ug, onChange: n });
|
|
37415
37427
|
}
|
|
37416
37428
|
const s2e = (t) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M14.5825 14.5832L10.4159 10.4165M10.4159 10.4165V13.3332M10.4159 10.4165H13.3325", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), l2e = (t) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ Y.createElement("path", { d: "M16.6667 17.4998H3.33333C2.87308 17.4998 2.5 17.1267 2.5 16.6664V3.33309C2.5 2.87285 2.87308 2.49976 3.33333 2.49976H16.6667C17.1269 2.49976 17.5 2.87285 17.5 3.33309V16.6664C17.5 17.1267 17.1269 17.4998 16.6667 17.4998Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.49919 3.33309C2.49919 2.87285 2.87227 2.49976 3.33252 2.49976H8.33252V8.33309H2.49919V3.33309Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ Y.createElement("path", { d: "M10.4159 10.4165L14.5825 14.5832M14.5825 14.5832V11.6665M14.5825 14.5832H11.6659", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
37417
37429
|
function u2e({ btnRef: t, activated: e, onChange: r, title: n, onTitle: i, offTitle: a, icon: o, placement: s, onIcon: l, offIcon: u, className: c }) {
|
|
@@ -38988,7 +39000,7 @@ class O1 extends Error {
|
|
|
38988
39000
|
l && (a.place = l.position);
|
|
38989
39001
|
}
|
|
38990
39002
|
const s = a.place && "start" in a.place ? a.place.start : a.place;
|
|
38991
|
-
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = s ? s.line : void 0, this.name = Xa(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = o && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
39003
|
+
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = s ? s.line : void 0, this.name = Xa(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = o && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
38992
39004
|
}
|
|
38993
39005
|
}
|
|
38994
39006
|
O1.prototype.file = "";
|
|
@@ -40573,16 +40585,16 @@ function nne(t, e, r) {
|
|
|
40573
40585
|
return k === 45 ? (t.consume(k), n.interrupt ? e : _) : r(k);
|
|
40574
40586
|
}
|
|
40575
40587
|
function h(k) {
|
|
40576
|
-
const
|
|
40577
|
-
return k ===
|
|
40588
|
+
const ee = "CDATA[";
|
|
40589
|
+
return k === ee.charCodeAt(s++) ? (t.consume(k), s === ee.length ? n.interrupt ? e : A : h) : r(k);
|
|
40578
40590
|
}
|
|
40579
40591
|
function p(k) {
|
|
40580
40592
|
return M1(k) ? (t.consume(k), o = String.fromCharCode(k), g) : r(k);
|
|
40581
40593
|
}
|
|
40582
40594
|
function g(k) {
|
|
40583
40595
|
if (k === null || k === 47 || k === 62 || mt(k)) {
|
|
40584
|
-
const
|
|
40585
|
-
return !
|
|
40596
|
+
const ee = k === 47, ae = o.toLowerCase();
|
|
40597
|
+
return !ee && !a && hO.includes(ae) ? (i = 1, n.interrupt ? e(k) : A(k)) : Kre.includes(o.toLowerCase()) ? (i = 6, ee ? (t.consume(k), d) : n.interrupt ? e(k) : A(k)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(k) : a ? m(k) : y(k));
|
|
40586
40598
|
}
|
|
40587
40599
|
return k === 45 || d1(k) ? (t.consume(k), o += String.fromCharCode(k), g) : r(k);
|
|
40588
40600
|
}
|
|
@@ -40639,8 +40651,8 @@ function nne(t, e, r) {
|
|
|
40639
40651
|
}
|
|
40640
40652
|
function R(k) {
|
|
40641
40653
|
if (k === 62) {
|
|
40642
|
-
const
|
|
40643
|
-
return hO.includes(
|
|
40654
|
+
const ee = o.toLowerCase();
|
|
40655
|
+
return hO.includes(ee) ? (t.consume(k), D) : A(k);
|
|
40644
40656
|
}
|
|
40645
40657
|
return M1(k) && o.length < 8 ? (t.consume(k), o += String.fromCharCode(k), R) : A(k);
|
|
40646
40658
|
}
|
|
@@ -41400,12 +41412,12 @@ function Une(t, e, r) {
|
|
|
41400
41412
|
])
|
|
41401
41413
|
) : D(M);
|
|
41402
41414
|
function D(ie) {
|
|
41403
|
-
return
|
|
41404
|
-
function
|
|
41405
|
-
const
|
|
41415
|
+
return W;
|
|
41416
|
+
function W(X) {
|
|
41417
|
+
const J = X !== null && ie[X], re = X !== null && ie.null, oe = [
|
|
41406
41418
|
// To do: add more extension tests.
|
|
41407
41419
|
/* c8 ignore next 2 */
|
|
41408
|
-
...Array.isArray(
|
|
41420
|
+
...Array.isArray(J) ? J : J ? [J] : [],
|
|
41409
41421
|
...Array.isArray(re) ? re : re ? [re] : []
|
|
41410
41422
|
];
|
|
41411
41423
|
return Z(oe)(X);
|
|
@@ -41415,20 +41427,20 @@ function Une(t, e, r) {
|
|
|
41415
41427
|
return $ = ie, R = 0, ie.length === 0 ? N : k(ie[R]);
|
|
41416
41428
|
}
|
|
41417
41429
|
function k(ie) {
|
|
41418
|
-
return
|
|
41419
|
-
function
|
|
41430
|
+
return W;
|
|
41431
|
+
function W(X) {
|
|
41420
41432
|
return _ = S(), V = ie, ie.partial || (u.currentConstruct = ie), ie.name && u.parser.constructs.disable.null.includes(ie.name) ? ae() : ie.tokenize.call(
|
|
41421
41433
|
// If we do have fields, create an object w/ `context` as its
|
|
41422
41434
|
// prototype.
|
|
41423
41435
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
41424
41436
|
A ? Object.assign(Object.create(u), A) : u,
|
|
41425
41437
|
l,
|
|
41426
|
-
|
|
41438
|
+
ee,
|
|
41427
41439
|
ae
|
|
41428
41440
|
)(X);
|
|
41429
41441
|
}
|
|
41430
41442
|
}
|
|
41431
|
-
function
|
|
41443
|
+
function ee(ie) {
|
|
41432
41444
|
return C(V, _), P;
|
|
41433
41445
|
}
|
|
41434
41446
|
function ae(ie) {
|
|
@@ -41595,7 +41607,7 @@ function i3e(t) {
|
|
|
41595
41607
|
autolink: a(xe),
|
|
41596
41608
|
autolinkProtocol: S,
|
|
41597
41609
|
autolinkEmail: S,
|
|
41598
|
-
atxHeading: a(
|
|
41610
|
+
atxHeading: a(K),
|
|
41599
41611
|
blockQuote: a(re),
|
|
41600
41612
|
characterEscape: S,
|
|
41601
41613
|
characterReference: S,
|
|
@@ -41611,9 +41623,9 @@ function i3e(t) {
|
|
|
41611
41623
|
definitionDestinationString: o,
|
|
41612
41624
|
definitionLabelString: o,
|
|
41613
41625
|
definitionTitleString: o,
|
|
41614
|
-
emphasis: a(
|
|
41615
|
-
hardBreakEscape: a(
|
|
41616
|
-
hardBreakTrailing: a(
|
|
41626
|
+
emphasis: a(G),
|
|
41627
|
+
hardBreakEscape: a(ue),
|
|
41628
|
+
hardBreakTrailing: a(ue),
|
|
41617
41629
|
htmlFlow: a(ge, o),
|
|
41618
41630
|
htmlFlowData: S,
|
|
41619
41631
|
htmlText: a(ge, o),
|
|
@@ -41630,7 +41642,7 @@ function i3e(t) {
|
|
|
41630
41642
|
referenceString: o,
|
|
41631
41643
|
resourceDestinationString: o,
|
|
41632
41644
|
resourceTitleString: o,
|
|
41633
|
-
setextHeading: a(
|
|
41645
|
+
setextHeading: a(K),
|
|
41634
41646
|
strong: a(Ct),
|
|
41635
41647
|
thematicBreak: a(B3)
|
|
41636
41648
|
},
|
|
@@ -41638,14 +41650,14 @@ function i3e(t) {
|
|
|
41638
41650
|
atxHeading: l(),
|
|
41639
41651
|
atxHeadingSequence: O,
|
|
41640
41652
|
autolink: l(),
|
|
41641
|
-
autolinkEmail:
|
|
41653
|
+
autolinkEmail: J,
|
|
41642
41654
|
autolinkProtocol: X,
|
|
41643
41655
|
blockQuote: l(),
|
|
41644
41656
|
characterEscapeValue: E,
|
|
41645
41657
|
characterReferenceMarkerHexadecimal: ae,
|
|
41646
41658
|
characterReferenceMarkerNumeric: ae,
|
|
41647
41659
|
characterReferenceValue: ie,
|
|
41648
|
-
characterReference:
|
|
41660
|
+
characterReference: W,
|
|
41649
41661
|
codeFenced: l(g),
|
|
41650
41662
|
codeFencedFence: p,
|
|
41651
41663
|
codeFencedFenceInfo: f,
|
|
@@ -41675,7 +41687,7 @@ function i3e(t) {
|
|
|
41675
41687
|
listOrdered: l(),
|
|
41676
41688
|
listUnordered: l(),
|
|
41677
41689
|
paragraph: l(),
|
|
41678
|
-
referenceString:
|
|
41690
|
+
referenceString: ee,
|
|
41679
41691
|
resourceDestinationString: _,
|
|
41680
41692
|
resourceTitleString: D,
|
|
41681
41693
|
resource: Z,
|
|
@@ -41964,7 +41976,7 @@ function i3e(t) {
|
|
|
41964
41976
|
function k() {
|
|
41965
41977
|
this.data.referenceType = "collapsed";
|
|
41966
41978
|
}
|
|
41967
|
-
function
|
|
41979
|
+
function ee(se) {
|
|
41968
41980
|
const pe = this.resume(), Me = this.stack[this.stack.length - 1];
|
|
41969
41981
|
Me.label = pe, Me.identifier = Mr(this.sliceSerialize(se)).toLowerCase(), this.data.referenceType = "full";
|
|
41970
41982
|
}
|
|
@@ -41978,7 +41990,7 @@ function i3e(t) {
|
|
|
41978
41990
|
const Tt = this.stack[this.stack.length - 1];
|
|
41979
41991
|
Tt.value += De;
|
|
41980
41992
|
}
|
|
41981
|
-
function
|
|
41993
|
+
function W(se) {
|
|
41982
41994
|
const pe = this.stack.pop();
|
|
41983
41995
|
pe.position.end = F3(se.end);
|
|
41984
41996
|
}
|
|
@@ -41987,7 +41999,7 @@ function i3e(t) {
|
|
|
41987
41999
|
const pe = this.stack[this.stack.length - 1];
|
|
41988
42000
|
pe.url = this.sliceSerialize(se);
|
|
41989
42001
|
}
|
|
41990
|
-
function
|
|
42002
|
+
function J(se) {
|
|
41991
42003
|
E.call(this, se);
|
|
41992
42004
|
const pe = this.stack[this.stack.length - 1];
|
|
41993
42005
|
pe.url = "mailto:" + this.sliceSerialize(se);
|
|
@@ -42021,13 +42033,13 @@ function i3e(t) {
|
|
|
42021
42033
|
url: ""
|
|
42022
42034
|
};
|
|
42023
42035
|
}
|
|
42024
|
-
function
|
|
42036
|
+
function G() {
|
|
42025
42037
|
return {
|
|
42026
42038
|
type: "emphasis",
|
|
42027
42039
|
children: []
|
|
42028
42040
|
};
|
|
42029
42041
|
}
|
|
42030
|
-
function
|
|
42042
|
+
function K() {
|
|
42031
42043
|
return {
|
|
42032
42044
|
type: "heading",
|
|
42033
42045
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -42035,7 +42047,7 @@ function i3e(t) {
|
|
|
42035
42047
|
children: []
|
|
42036
42048
|
};
|
|
42037
42049
|
}
|
|
42038
|
-
function
|
|
42050
|
+
function ue() {
|
|
42039
42051
|
return {
|
|
42040
42052
|
type: "break"
|
|
42041
42053
|
};
|
|
@@ -45455,15 +45467,15 @@ function C4e() {
|
|
|
45455
45467
|
for (var Z = n(N.keys()), k = Z.next(); !k.done; k = Z.next()) {
|
|
45456
45468
|
var V = k.value;
|
|
45457
45469
|
try {
|
|
45458
|
-
for (var
|
|
45470
|
+
for (var ee = (v = void 0, n(S[V].values())), ae = ee.next(); !ae.done; ae = ee.next()) {
|
|
45459
45471
|
var w = ae.value;
|
|
45460
45472
|
b.remove(w);
|
|
45461
45473
|
}
|
|
45462
|
-
} catch (
|
|
45463
|
-
v = { error:
|
|
45474
|
+
} catch (W) {
|
|
45475
|
+
v = { error: W };
|
|
45464
45476
|
} finally {
|
|
45465
45477
|
try {
|
|
45466
|
-
ae && !ae.done && (L =
|
|
45478
|
+
ae && !ae.done && (L = ee.return) && L.call(ee);
|
|
45467
45479
|
} finally {
|
|
45468
45480
|
if (v) throw v.error;
|
|
45469
45481
|
}
|
|
@@ -45823,7 +45835,7 @@ function O4() {
|
|
|
45823
45835
|
}();
|
|
45824
45836
|
return U5.BBox = e, U5;
|
|
45825
45837
|
}
|
|
45826
|
-
var
|
|
45838
|
+
var jt = {}, W5 = {}, zO;
|
|
45827
45839
|
function P4e() {
|
|
45828
45840
|
if (zO) return W5;
|
|
45829
45841
|
zO = 1, Object.defineProperty(W5, "__esModule", { value: !0 }), W5.AbstractWrapper = void 0;
|
|
@@ -46818,11 +46830,11 @@ function we() {
|
|
|
46818
46830
|
t.XMLNode = p;
|
|
46819
46831
|
}(ir)), ir;
|
|
46820
46832
|
}
|
|
46821
|
-
var
|
|
46833
|
+
var Ft = {}, GO;
|
|
46822
46834
|
function Nr() {
|
|
46823
|
-
if (GO) return
|
|
46835
|
+
if (GO) return Ft;
|
|
46824
46836
|
GO = 1;
|
|
46825
|
-
var t =
|
|
46837
|
+
var t = Ft && Ft.__read || function(l, u) {
|
|
46826
46838
|
var c = typeof Symbol == "function" && l[Symbol.iterator];
|
|
46827
46839
|
if (!c) return l;
|
|
46828
46840
|
var Q = c.call(l), T, f = [], h;
|
|
@@ -46838,44 +46850,44 @@ function Nr() {
|
|
|
46838
46850
|
}
|
|
46839
46851
|
}
|
|
46840
46852
|
return f;
|
|
46841
|
-
}, e =
|
|
46853
|
+
}, e = Ft && Ft.__spreadArray || function(l, u, c) {
|
|
46842
46854
|
if (c || arguments.length === 2) for (var Q = 0, T = u.length, f; Q < T; Q++)
|
|
46843
46855
|
(f || !(Q in u)) && (f || (f = Array.prototype.slice.call(u, 0, Q)), f[Q] = u[Q]);
|
|
46844
46856
|
return l.concat(f || Array.prototype.slice.call(u));
|
|
46845
46857
|
};
|
|
46846
|
-
Object.defineProperty(
|
|
46858
|
+
Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.split = Ft.isPercent = Ft.unicodeString = Ft.unicodeChars = Ft.quotePattern = Ft.sortLength = void 0;
|
|
46847
46859
|
function r(l, u) {
|
|
46848
46860
|
return l.length !== u.length ? u.length - l.length : l === u ? 0 : l < u ? -1 : 1;
|
|
46849
46861
|
}
|
|
46850
|
-
|
|
46862
|
+
Ft.sortLength = r;
|
|
46851
46863
|
function n(l) {
|
|
46852
46864
|
return l.replace(/([\^$(){}+*?\-|\[\]\:\\])/g, "\\$1");
|
|
46853
46865
|
}
|
|
46854
|
-
|
|
46866
|
+
Ft.quotePattern = n;
|
|
46855
46867
|
function i(l) {
|
|
46856
46868
|
return Array.from(l).map(function(u) {
|
|
46857
46869
|
return u.codePointAt(0);
|
|
46858
46870
|
});
|
|
46859
46871
|
}
|
|
46860
|
-
|
|
46872
|
+
Ft.unicodeChars = i;
|
|
46861
46873
|
function a(l) {
|
|
46862
46874
|
return String.fromCodePoint.apply(String, e([], t(l), !1));
|
|
46863
46875
|
}
|
|
46864
|
-
|
|
46876
|
+
Ft.unicodeString = a;
|
|
46865
46877
|
function o(l) {
|
|
46866
46878
|
return !!l.match(/%\s*$/);
|
|
46867
46879
|
}
|
|
46868
|
-
|
|
46880
|
+
Ft.isPercent = o;
|
|
46869
46881
|
function s(l) {
|
|
46870
46882
|
return l.trim().split(/\s+/);
|
|
46871
46883
|
}
|
|
46872
|
-
return
|
|
46884
|
+
return Ft.split = s, Ft;
|
|
46873
46885
|
}
|
|
46874
|
-
var
|
|
46886
|
+
var qt = {}, YO;
|
|
46875
46887
|
function Bo() {
|
|
46876
|
-
if (YO) return
|
|
46888
|
+
if (YO) return qt;
|
|
46877
46889
|
YO = 1;
|
|
46878
|
-
var t =
|
|
46890
|
+
var t = qt && qt.__assign || function() {
|
|
46879
46891
|
return t = Object.assign || function(o) {
|
|
46880
46892
|
for (var s, l = 1, u = arguments.length; l < u; l++) {
|
|
46881
46893
|
s = arguments[l];
|
|
@@ -46883,7 +46895,7 @@ function Bo() {
|
|
|
46883
46895
|
}
|
|
46884
46896
|
return o;
|
|
46885
46897
|
}, t.apply(this, arguments);
|
|
46886
|
-
}, e =
|
|
46898
|
+
}, e = qt && qt.__read || function(o, s) {
|
|
46887
46899
|
var l = typeof Symbol == "function" && o[Symbol.iterator];
|
|
46888
46900
|
if (!l) return o;
|
|
46889
46901
|
var u = l.call(o), c, Q = [], T;
|
|
@@ -46899,11 +46911,11 @@ function Bo() {
|
|
|
46899
46911
|
}
|
|
46900
46912
|
}
|
|
46901
46913
|
return Q;
|
|
46902
|
-
}, r =
|
|
46914
|
+
}, r = qt && qt.__spreadArray || function(o, s, l) {
|
|
46903
46915
|
if (l || arguments.length === 2) for (var u = 0, c = s.length, Q; u < c; u++)
|
|
46904
46916
|
(Q || !(u in s)) && (Q || (Q = Array.prototype.slice.call(s, 0, u)), Q[u] = s[u]);
|
|
46905
46917
|
return o.concat(Q || Array.prototype.slice.call(s));
|
|
46906
|
-
}, n =
|
|
46918
|
+
}, n = qt && qt.__values || function(o) {
|
|
46907
46919
|
var s = typeof Symbol == "function" && Symbol.iterator, l = s && o[s], u = 0;
|
|
46908
46920
|
if (l) return l.call(o);
|
|
46909
46921
|
if (o && typeof o.length == "number") return {
|
|
@@ -46913,9 +46925,9 @@ function Bo() {
|
|
|
46913
46925
|
};
|
|
46914
46926
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
46915
46927
|
};
|
|
46916
|
-
Object.defineProperty(
|
|
46928
|
+
Object.defineProperty(qt, "__esModule", { value: !0 }), qt.FontData = qt.NOSTRETCH = qt.H = qt.V = void 0;
|
|
46917
46929
|
var i = e1();
|
|
46918
|
-
|
|
46930
|
+
qt.V = 1, qt.H = 2, qt.NOSTRETCH = { dir: 0 };
|
|
46919
46931
|
var a = function() {
|
|
46920
46932
|
function o(s) {
|
|
46921
46933
|
var l, u, c, Q;
|
|
@@ -47227,13 +47239,13 @@ function Bo() {
|
|
|
47227
47239
|
extra_ic: 0.033
|
|
47228
47240
|
}, o.defaultDelimiters = {}, o.defaultChars = {}, o.defaultSizeVariants = [], o.defaultStretchVariants = [], o;
|
|
47229
47241
|
}();
|
|
47230
|
-
return
|
|
47242
|
+
return qt.FontData = a, qt;
|
|
47231
47243
|
}
|
|
47232
47244
|
var KO;
|
|
47233
47245
|
function D4e() {
|
|
47234
|
-
if (KO) return
|
|
47246
|
+
if (KO) return jt;
|
|
47235
47247
|
KO = 1;
|
|
47236
|
-
var t =
|
|
47248
|
+
var t = jt && jt.__extends || /* @__PURE__ */ function() {
|
|
47237
47249
|
var d = function(m, y) {
|
|
47238
47250
|
return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, O) {
|
|
47239
47251
|
x.__proto__ = O;
|
|
@@ -47250,7 +47262,7 @@ function D4e() {
|
|
|
47250
47262
|
}
|
|
47251
47263
|
m.prototype = y === null ? Object.create(y) : (x.prototype = y.prototype, new x());
|
|
47252
47264
|
};
|
|
47253
|
-
}(), e =
|
|
47265
|
+
}(), e = jt && jt.__createBinding || (Object.create ? function(d, m, y, x) {
|
|
47254
47266
|
x === void 0 && (x = y);
|
|
47255
47267
|
var O = Object.getOwnPropertyDescriptor(m, y);
|
|
47256
47268
|
(!O || ("get" in O ? !m.__esModule : O.writable || O.configurable)) && (O = { enumerable: !0, get: function() {
|
|
@@ -47258,16 +47270,16 @@ function D4e() {
|
|
|
47258
47270
|
} }), Object.defineProperty(d, x, O);
|
|
47259
47271
|
} : function(d, m, y, x) {
|
|
47260
47272
|
x === void 0 && (x = y), d[x] = m[y];
|
|
47261
|
-
}), r =
|
|
47273
|
+
}), r = jt && jt.__setModuleDefault || (Object.create ? function(d, m) {
|
|
47262
47274
|
Object.defineProperty(d, "default", { enumerable: !0, value: m });
|
|
47263
47275
|
} : function(d, m) {
|
|
47264
47276
|
d.default = m;
|
|
47265
|
-
}), n =
|
|
47277
|
+
}), n = jt && jt.__importStar || function(d) {
|
|
47266
47278
|
if (d && d.__esModule) return d;
|
|
47267
47279
|
var m = {};
|
|
47268
47280
|
if (d != null) for (var y in d) y !== "default" && Object.prototype.hasOwnProperty.call(d, y) && e(m, d, y);
|
|
47269
47281
|
return r(m, d), m;
|
|
47270
|
-
}, i =
|
|
47282
|
+
}, i = jt && jt.__values || function(d) {
|
|
47271
47283
|
var m = typeof Symbol == "function" && Symbol.iterator, y = m && d[m], x = 0;
|
|
47272
47284
|
if (y) return y.call(d);
|
|
47273
47285
|
if (d && typeof d.length == "number") return {
|
|
@@ -47276,7 +47288,7 @@ function D4e() {
|
|
|
47276
47288
|
}
|
|
47277
47289
|
};
|
|
47278
47290
|
throw new TypeError(m ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
47279
|
-
}, a =
|
|
47291
|
+
}, a = jt && jt.__read || function(d, m) {
|
|
47280
47292
|
var y = typeof Symbol == "function" && d[Symbol.iterator];
|
|
47281
47293
|
if (!y) return d;
|
|
47282
47294
|
var x = y.call(d), O, v = [], L;
|
|
@@ -47292,12 +47304,12 @@ function D4e() {
|
|
|
47292
47304
|
}
|
|
47293
47305
|
}
|
|
47294
47306
|
return v;
|
|
47295
|
-
}, o =
|
|
47307
|
+
}, o = jt && jt.__spreadArray || function(d, m, y) {
|
|
47296
47308
|
if (y || arguments.length === 2) for (var x = 0, O = m.length, v; x < O; x++)
|
|
47297
47309
|
(v || !(x in m)) && (v || (v = Array.prototype.slice.call(m, 0, x)), v[x] = m[x]);
|
|
47298
47310
|
return d.concat(v || Array.prototype.slice.call(m));
|
|
47299
47311
|
};
|
|
47300
|
-
Object.defineProperty(
|
|
47312
|
+
Object.defineProperty(jt, "__esModule", { value: !0 }), jt.CommonWrapper = void 0;
|
|
47301
47313
|
var s = P4e(), l = we(), u = Nr(), c = n(V3()), Q = _f(), T = O4(), f = Bo(), h = 2 / 18;
|
|
47302
47314
|
function p(d, m) {
|
|
47303
47315
|
return d ? m < h ? 0 : h : m;
|
|
@@ -47596,7 +47608,7 @@ function D4e() {
|
|
|
47596
47608
|
}
|
|
47597
47609
|
}, m;
|
|
47598
47610
|
}(s.AbstractWrapper);
|
|
47599
|
-
return
|
|
47611
|
+
return jt.CommonWrapper = g, jt;
|
|
47600
47612
|
}
|
|
47601
47613
|
var JO;
|
|
47602
47614
|
function Lt() {
|
|
@@ -47731,8 +47743,8 @@ function Lt() {
|
|
|
47731
47743
|
var m = r(d.value, 2), y = m[0], x = m[1], O = "border" + y, v = this.styles.get(O + "Width");
|
|
47732
47744
|
v && (f[x] = Math.max(0, this.length2em(v, 1, this.bbox.rscale)), h[x] = this.styles.get(O + "Style") || "solid", p[x] = this.styles.get(O + "Color") || "currentColor");
|
|
47733
47745
|
}
|
|
47734
|
-
} catch (
|
|
47735
|
-
u = { error:
|
|
47746
|
+
} catch (W) {
|
|
47747
|
+
u = { error: W };
|
|
47736
47748
|
} finally {
|
|
47737
47749
|
try {
|
|
47738
47750
|
d && !d.done && (c = g.return) && c.call(g);
|
|
@@ -47747,18 +47759,18 @@ function Lt() {
|
|
|
47747
47759
|
[N, M, R, _]
|
|
47748
47760
|
], Z = this.adaptor, k = Z.firstChild(this.element);
|
|
47749
47761
|
try {
|
|
47750
|
-
for (var
|
|
47762
|
+
for (var ee = e([0, 1, 2, 3]), ae = ee.next(); !ae.done; ae = ee.next()) {
|
|
47751
47763
|
var x = ae.value;
|
|
47752
47764
|
if (f[x]) {
|
|
47753
47765
|
var ie = D[x];
|
|
47754
47766
|
h[x] === "dashed" || h[x] === "dotted" ? this.addBorderBroken(ie, p[x], h[x], f[x], x) : this.addBorderSolid(ie, p[x], k);
|
|
47755
47767
|
}
|
|
47756
47768
|
}
|
|
47757
|
-
} catch (
|
|
47758
|
-
Q = { error:
|
|
47769
|
+
} catch (W) {
|
|
47770
|
+
Q = { error: W };
|
|
47759
47771
|
} finally {
|
|
47760
47772
|
try {
|
|
47761
|
-
ae && !ae.done && (T =
|
|
47773
|
+
ae && !ae.done && (T = ee.return) && T.call(ee);
|
|
47762
47774
|
} finally {
|
|
47763
47775
|
if (Q) throw Q.error;
|
|
47764
47776
|
}
|
|
@@ -55233,7 +55245,7 @@ function Oie() {
|
|
|
55233
55245
|
}((0, r.CommonMactionMixin)(e.SVGWrapper));
|
|
55234
55246
|
return Z4.SVGmaction = a, Z4;
|
|
55235
55247
|
}
|
|
55236
|
-
var r1 = {},
|
|
55248
|
+
var r1 = {}, Zt = {}, K5 = {}, mv;
|
|
55237
55249
|
function _Q() {
|
|
55238
55250
|
return mv || (mv = 1, function(t) {
|
|
55239
55251
|
var e = K5 && K5.__read || function(c, Q) {
|
|
@@ -55394,9 +55406,9 @@ function _Q() {
|
|
|
55394
55406
|
}
|
|
55395
55407
|
var gv;
|
|
55396
55408
|
function yie() {
|
|
55397
|
-
if (gv) return
|
|
55409
|
+
if (gv) return Zt;
|
|
55398
55410
|
gv = 1;
|
|
55399
|
-
var t =
|
|
55411
|
+
var t = Zt && Zt.__extends || /* @__PURE__ */ function() {
|
|
55400
55412
|
var c = function(Q, T) {
|
|
55401
55413
|
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, h) {
|
|
55402
55414
|
f.__proto__ = h;
|
|
@@ -55413,7 +55425,7 @@ function yie() {
|
|
|
55413
55425
|
}
|
|
55414
55426
|
Q.prototype = T === null ? Object.create(T) : (f.prototype = T.prototype, new f());
|
|
55415
55427
|
};
|
|
55416
|
-
}(), e =
|
|
55428
|
+
}(), e = Zt && Zt.__createBinding || (Object.create ? function(c, Q, T, f) {
|
|
55417
55429
|
f === void 0 && (f = T);
|
|
55418
55430
|
var h = Object.getOwnPropertyDescriptor(Q, T);
|
|
55419
55431
|
(!h || ("get" in h ? !Q.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
@@ -55421,16 +55433,16 @@ function yie() {
|
|
|
55421
55433
|
} }), Object.defineProperty(c, f, h);
|
|
55422
55434
|
} : function(c, Q, T, f) {
|
|
55423
55435
|
f === void 0 && (f = T), c[f] = Q[T];
|
|
55424
|
-
}), r =
|
|
55436
|
+
}), r = Zt && Zt.__setModuleDefault || (Object.create ? function(c, Q) {
|
|
55425
55437
|
Object.defineProperty(c, "default", { enumerable: !0, value: Q });
|
|
55426
55438
|
} : function(c, Q) {
|
|
55427
55439
|
c.default = Q;
|
|
55428
|
-
}), n =
|
|
55440
|
+
}), n = Zt && Zt.__importStar || function(c) {
|
|
55429
55441
|
if (c && c.__esModule) return c;
|
|
55430
55442
|
var Q = {};
|
|
55431
55443
|
if (c != null) for (var T in c) T !== "default" && Object.prototype.hasOwnProperty.call(c, T) && e(Q, c, T);
|
|
55432
55444
|
return r(Q, c), Q;
|
|
55433
|
-
}, i =
|
|
55445
|
+
}, i = Zt && Zt.__read || function(c, Q) {
|
|
55434
55446
|
var T = typeof Symbol == "function" && c[Symbol.iterator];
|
|
55435
55447
|
if (!T) return c;
|
|
55436
55448
|
var f = T.call(c), h, p = [], g;
|
|
@@ -55446,11 +55458,11 @@ function yie() {
|
|
|
55446
55458
|
}
|
|
55447
55459
|
}
|
|
55448
55460
|
return p;
|
|
55449
|
-
}, a =
|
|
55461
|
+
}, a = Zt && Zt.__spreadArray || function(c, Q, T) {
|
|
55450
55462
|
if (T || arguments.length === 2) for (var f = 0, h = Q.length, p; f < h; f++)
|
|
55451
55463
|
(p || !(f in Q)) && (p || (p = Array.prototype.slice.call(Q, 0, f)), p[f] = Q[f]);
|
|
55452
55464
|
return c.concat(p || Array.prototype.slice.call(Q));
|
|
55453
|
-
}, o =
|
|
55465
|
+
}, o = Zt && Zt.__values || function(c) {
|
|
55454
55466
|
var Q = typeof Symbol == "function" && Symbol.iterator, T = Q && c[Q], f = 0;
|
|
55455
55467
|
if (T) return T.call(c);
|
|
55456
55468
|
if (c && typeof c.length == "number") return {
|
|
@@ -55460,7 +55472,7 @@ function yie() {
|
|
|
55460
55472
|
};
|
|
55461
55473
|
throw new TypeError(Q ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
55462
55474
|
};
|
|
55463
|
-
Object.defineProperty(
|
|
55475
|
+
Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.CommonMencloseMixin = void 0;
|
|
55464
55476
|
var s = n(_Q()), l = Nr();
|
|
55465
55477
|
function u(c) {
|
|
55466
55478
|
return function(Q) {
|
|
@@ -55616,7 +55628,7 @@ function yie() {
|
|
|
55616
55628
|
}, T;
|
|
55617
55629
|
}(c);
|
|
55618
55630
|
}
|
|
55619
|
-
return
|
|
55631
|
+
return Zt.CommonMencloseMixin = u, Zt;
|
|
55620
55632
|
}
|
|
55621
55633
|
var mr = {}, Ov;
|
|
55622
55634
|
function vie() {
|
|
@@ -62181,8 +62193,8 @@ function w6e() {
|
|
|
62181
62193
|
var k = Z.value;
|
|
62182
62194
|
V.variant[k].cacheID = "TEX-" + _.variantCacheIds[k];
|
|
62183
62195
|
}
|
|
62184
|
-
} catch (
|
|
62185
|
-
$ = { error:
|
|
62196
|
+
} catch (ee) {
|
|
62197
|
+
$ = { error: ee };
|
|
62186
62198
|
} finally {
|
|
62187
62199
|
try {
|
|
62188
62200
|
Z && !Z.done && (R = D.return) && R.call(D);
|
|
@@ -62952,7 +62964,7 @@ const J6e = [
|
|
|
62952
62964
|
"textArea",
|
|
62953
62965
|
"textPath"
|
|
62954
62966
|
], yP = OP(f8, "div"), e5e = OP(o5, "g", J6e);
|
|
62955
|
-
var
|
|
62967
|
+
var zt = {}, G4 = {}, jx;
|
|
62956
62968
|
function t5e() {
|
|
62957
62969
|
if (jx) return G4;
|
|
62958
62970
|
jx = 1;
|
|
@@ -64131,9 +64143,9 @@ function s5e() {
|
|
|
64131
64143
|
}
|
|
64132
64144
|
var rL;
|
|
64133
64145
|
function l5e() {
|
|
64134
|
-
if (rL) return
|
|
64146
|
+
if (rL) return zt;
|
|
64135
64147
|
rL = 1;
|
|
64136
|
-
var t =
|
|
64148
|
+
var t = zt && zt.__extends || /* @__PURE__ */ function() {
|
|
64137
64149
|
var g = function(d, m) {
|
|
64138
64150
|
return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, x) {
|
|
64139
64151
|
y.__proto__ = x;
|
|
@@ -64150,7 +64162,7 @@ function l5e() {
|
|
|
64150
64162
|
}
|
|
64151
64163
|
d.prototype = m === null ? Object.create(m) : (y.prototype = m.prototype, new y());
|
|
64152
64164
|
};
|
|
64153
|
-
}(), e =
|
|
64165
|
+
}(), e = zt && zt.__assign || function() {
|
|
64154
64166
|
return e = Object.assign || function(g) {
|
|
64155
64167
|
for (var d, m = 1, y = arguments.length; m < y; m++) {
|
|
64156
64168
|
d = arguments[m];
|
|
@@ -64158,7 +64170,7 @@ function l5e() {
|
|
|
64158
64170
|
}
|
|
64159
64171
|
return g;
|
|
64160
64172
|
}, e.apply(this, arguments);
|
|
64161
|
-
}, r =
|
|
64173
|
+
}, r = zt && zt.__values || function(g) {
|
|
64162
64174
|
var d = typeof Symbol == "function" && Symbol.iterator, m = d && g[d], y = 0;
|
|
64163
64175
|
if (m) return m.call(g);
|
|
64164
64176
|
if (g && typeof g.length == "number") return {
|
|
@@ -64167,7 +64179,7 @@ function l5e() {
|
|
|
64167
64179
|
}
|
|
64168
64180
|
};
|
|
64169
64181
|
throw new TypeError(d ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
64170
|
-
}, n =
|
|
64182
|
+
}, n = zt && zt.__read || function(g, d) {
|
|
64171
64183
|
var m = typeof Symbol == "function" && g[Symbol.iterator];
|
|
64172
64184
|
if (!m) return g;
|
|
64173
64185
|
var y = m.call(g), x, O = [], v;
|
|
@@ -64183,12 +64195,12 @@ function l5e() {
|
|
|
64183
64195
|
}
|
|
64184
64196
|
}
|
|
64185
64197
|
return O;
|
|
64186
|
-
}, i =
|
|
64198
|
+
}, i = zt && zt.__spreadArray || function(g, d, m) {
|
|
64187
64199
|
if (m || arguments.length === 2) for (var y = 0, x = d.length, O; y < x; y++)
|
|
64188
64200
|
(O || !(y in d)) && (O || (O = Array.prototype.slice.call(d, 0, y)), O[y] = d[y]);
|
|
64189
64201
|
return g.concat(O || Array.prototype.slice.call(d));
|
|
64190
64202
|
};
|
|
64191
|
-
Object.defineProperty(
|
|
64203
|
+
Object.defineProperty(zt, "__esModule", { value: !0 }), zt.liteAdaptor = zt.LiteAdaptor = zt.LiteBase = void 0;
|
|
64192
64204
|
var a = t5e(), o = r5e(), s = vP(), l = x8(), u = xP(), c = s5e(), Q = LP(), T = _f(), f = function(g) {
|
|
64193
64205
|
t(d, g);
|
|
64194
64206
|
function d() {
|
|
@@ -64404,7 +64416,7 @@ function l5e() {
|
|
|
64404
64416
|
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
64405
64417
|
}, d;
|
|
64406
64418
|
}(a.AbstractDOMAdaptor);
|
|
64407
|
-
|
|
64419
|
+
zt.LiteBase = f;
|
|
64408
64420
|
var h = function(g) {
|
|
64409
64421
|
t(d, g);
|
|
64410
64422
|
function d() {
|
|
@@ -64412,11 +64424,11 @@ function l5e() {
|
|
|
64412
64424
|
}
|
|
64413
64425
|
return d;
|
|
64414
64426
|
}((0, o.NodeMixin)(f));
|
|
64415
|
-
|
|
64427
|
+
zt.LiteAdaptor = h;
|
|
64416
64428
|
function p(g) {
|
|
64417
64429
|
return g === void 0 && (g = null), new h(null, g);
|
|
64418
64430
|
}
|
|
64419
|
-
return
|
|
64431
|
+
return zt.liteAdaptor = p, zt;
|
|
64420
64432
|
}
|
|
64421
64433
|
var u5e = l5e(), W0 = {}, J4 = {}, ei = {}, yr = {}, G0 = {}, nL;
|
|
64422
64434
|
function bP() {
|
|
@@ -66567,99 +66579,99 @@ function gt() {
|
|
|
66567
66579
|
var n = we(), i = r(bt()), a = r(y1()), o = r(lt()), s = fs(), l;
|
|
66568
66580
|
return function(u) {
|
|
66569
66581
|
var c = 7.2, Q = 72, T = {
|
|
66570
|
-
em: function(
|
|
66571
|
-
return
|
|
66582
|
+
em: function(W) {
|
|
66583
|
+
return W;
|
|
66572
66584
|
},
|
|
66573
|
-
ex: function(
|
|
66574
|
-
return
|
|
66585
|
+
ex: function(W) {
|
|
66586
|
+
return W * 0.43;
|
|
66575
66587
|
},
|
|
66576
|
-
pt: function(
|
|
66577
|
-
return
|
|
66588
|
+
pt: function(W) {
|
|
66589
|
+
return W / 10;
|
|
66578
66590
|
},
|
|
66579
|
-
pc: function(
|
|
66580
|
-
return
|
|
66591
|
+
pc: function(W) {
|
|
66592
|
+
return W * 1.2;
|
|
66581
66593
|
},
|
|
66582
|
-
px: function(
|
|
66583
|
-
return
|
|
66594
|
+
px: function(W) {
|
|
66595
|
+
return W * c / Q;
|
|
66584
66596
|
},
|
|
66585
|
-
in: function(
|
|
66586
|
-
return
|
|
66597
|
+
in: function(W) {
|
|
66598
|
+
return W * c;
|
|
66587
66599
|
},
|
|
66588
|
-
cm: function(
|
|
66589
|
-
return
|
|
66600
|
+
cm: function(W) {
|
|
66601
|
+
return W * c / 2.54;
|
|
66590
66602
|
},
|
|
66591
|
-
mm: function(
|
|
66592
|
-
return
|
|
66603
|
+
mm: function(W) {
|
|
66604
|
+
return W * c / 25.4;
|
|
66593
66605
|
},
|
|
66594
|
-
mu: function(
|
|
66595
|
-
return
|
|
66606
|
+
mu: function(W) {
|
|
66607
|
+
return W / 18;
|
|
66596
66608
|
}
|
|
66597
66609
|
}, f = "([-+]?([.,]\\d+|\\d+([.,]\\d*)?))", h = "(pt|em|ex|mu|px|mm|cm|in|pc)", p = RegExp("^\\s*" + f + "\\s*" + h + "\\s*$"), g = RegExp("^\\s*" + f + "\\s*" + h + " ?");
|
|
66598
|
-
function d(
|
|
66610
|
+
function d(W, X) {
|
|
66599
66611
|
X === void 0 && (X = !1);
|
|
66600
|
-
var
|
|
66601
|
-
return
|
|
66612
|
+
var J = W.match(X ? g : p);
|
|
66613
|
+
return J ? m([J[1].replace(/,/, "."), J[4], J[0].length]) : [null, null, 0];
|
|
66602
66614
|
}
|
|
66603
66615
|
u.matchDimen = d;
|
|
66604
|
-
function m(
|
|
66605
|
-
var X = t(
|
|
66616
|
+
function m(W) {
|
|
66617
|
+
var X = t(W, 3), J = X[0], re = X[1], oe = X[2];
|
|
66606
66618
|
if (re !== "mu")
|
|
66607
|
-
return [
|
|
66608
|
-
var I = x(T[re](parseFloat(
|
|
66619
|
+
return [J, re, oe];
|
|
66620
|
+
var I = x(T[re](parseFloat(J || "1")));
|
|
66609
66621
|
return [I.slice(0, -2), "em", oe];
|
|
66610
66622
|
}
|
|
66611
|
-
function y(
|
|
66612
|
-
var X = t(d(
|
|
66623
|
+
function y(W) {
|
|
66624
|
+
var X = t(d(W), 2), J = X[0], re = X[1], oe = parseFloat(J || "1"), I = T[re];
|
|
66613
66625
|
return I ? I(oe) : 0;
|
|
66614
66626
|
}
|
|
66615
66627
|
u.dimen2em = y;
|
|
66616
|
-
function x(
|
|
66617
|
-
return Math.abs(
|
|
66628
|
+
function x(W) {
|
|
66629
|
+
return Math.abs(W) < 6e-4 ? "0em" : W.toFixed(3).replace(/\.?0+$/, "") + "em";
|
|
66618
66630
|
}
|
|
66619
66631
|
u.Em = x;
|
|
66620
66632
|
function O() {
|
|
66621
|
-
for (var
|
|
66622
|
-
|
|
66623
|
-
return
|
|
66624
|
-
return x(
|
|
66633
|
+
for (var W = [], X = 0; X < arguments.length; X++)
|
|
66634
|
+
W[X] = arguments[X];
|
|
66635
|
+
return W.map(function(J) {
|
|
66636
|
+
return x(J);
|
|
66625
66637
|
}).join(" ");
|
|
66626
66638
|
}
|
|
66627
66639
|
u.cols = O;
|
|
66628
|
-
function v(
|
|
66640
|
+
function v(W, X, J, re, oe, I) {
|
|
66629
66641
|
oe === void 0 && (oe = ""), I === void 0 && (I = "");
|
|
66630
|
-
var z =
|
|
66642
|
+
var z = W.nodeFactory, G = z.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.INNER }), K;
|
|
66631
66643
|
if (oe)
|
|
66632
|
-
|
|
66644
|
+
K = new a.default("\\" + oe + "l" + X, W.parser.stack.env, W).mml();
|
|
66633
66645
|
else {
|
|
66634
|
-
var
|
|
66635
|
-
|
|
66646
|
+
var ue = z.create("text", X);
|
|
66647
|
+
K = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.OPEN }, ue);
|
|
66636
66648
|
}
|
|
66637
|
-
if (i.default.appendChildren(
|
|
66638
|
-
|
|
66649
|
+
if (i.default.appendChildren(G, [K, J]), oe)
|
|
66650
|
+
K = new a.default("\\" + oe + "r" + re, W.parser.stack.env, W).mml();
|
|
66639
66651
|
else {
|
|
66640
66652
|
var ge = z.create("text", re);
|
|
66641
|
-
|
|
66653
|
+
K = z.create("node", "mo", [], { fence: !0, stretchy: !0, symmetric: !0, texClass: n.TEXCLASS.CLOSE }, ge);
|
|
66642
66654
|
}
|
|
66643
|
-
return I &&
|
|
66655
|
+
return I && K.attributes.set("mathcolor", I), i.default.appendChildren(G, [K]), G;
|
|
66644
66656
|
}
|
|
66645
66657
|
u.fenced = v;
|
|
66646
|
-
function L(
|
|
66647
|
-
var oe =
|
|
66648
|
-
return X && i.default.appendChildren(oe, [b(
|
|
66658
|
+
function L(W, X, J, re) {
|
|
66659
|
+
var oe = W.nodeFactory.create("node", "mrow", [], { open: X, close: re, texClass: n.TEXCLASS.ORD });
|
|
66660
|
+
return X && i.default.appendChildren(oe, [b(W, X, "l")]), i.default.isType(J, "mrow") ? i.default.appendChildren(oe, i.default.getChildren(J)) : i.default.appendChildren(oe, [J]), re && i.default.appendChildren(oe, [b(W, re, "r")]), oe;
|
|
66649
66661
|
}
|
|
66650
66662
|
u.fixedFence = L;
|
|
66651
|
-
function b(
|
|
66663
|
+
function b(W, X, J) {
|
|
66652
66664
|
(X === "{" || X === "}") && (X = "\\" + X);
|
|
66653
|
-
var re = "{\\bigg" +
|
|
66654
|
-
return new a.default("\\mathchoice" + re + oe + oe + oe, {},
|
|
66665
|
+
var re = "{\\bigg" + J + " " + X + "}", oe = "{\\big" + J + " " + X + "}";
|
|
66666
|
+
return new a.default("\\mathchoice" + re + oe + oe + oe, {}, W).mml();
|
|
66655
66667
|
}
|
|
66656
66668
|
u.mathPalette = b;
|
|
66657
|
-
function S(
|
|
66658
|
-
for (var
|
|
66659
|
-
var oe = X[
|
|
66669
|
+
function S(W, X) {
|
|
66670
|
+
for (var J = 0, re = X.length; J < re; J++) {
|
|
66671
|
+
var oe = X[J];
|
|
66660
66672
|
if (oe && !i.default.isType(oe, "mspace") && (!i.default.isType(oe, "TeXAtom") || i.default.getChildren(oe)[0] && i.default.getChildren(i.default.getChildren(oe)[0]).length)) {
|
|
66661
66673
|
if (i.default.isEmbellished(oe) || i.default.isType(oe, "TeXAtom") && i.default.getTexClass(oe) === n.TEXCLASS.REL) {
|
|
66662
|
-
var I =
|
|
66674
|
+
var I = W.nodeFactory.create("node", "mi");
|
|
66663
66675
|
X.unshift(I);
|
|
66664
66676
|
}
|
|
66665
66677
|
break;
|
|
@@ -66667,154 +66679,154 @@ function gt() {
|
|
|
66667
66679
|
}
|
|
66668
66680
|
}
|
|
66669
66681
|
u.fixInitialMO = S;
|
|
66670
|
-
function E(
|
|
66671
|
-
if (
|
|
66672
|
-
return
|
|
66673
|
-
var oe = re ||
|
|
66682
|
+
function E(W, X, J, re) {
|
|
66683
|
+
if (W.configuration.options.internalMath)
|
|
66684
|
+
return W.configuration.options.internalMath(W, X, J, re);
|
|
66685
|
+
var oe = re || W.stack.env.font, I = oe ? { mathvariant: oe } : {}, z = [], G = 0, K = 0, ue, ge, he = "", xe = 0;
|
|
66674
66686
|
if (X.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)) {
|
|
66675
|
-
for (;
|
|
66676
|
-
if (
|
|
66677
|
-
he === "$" && xe === 0 ? (ge =
|
|
66678
|
-
else if (
|
|
66687
|
+
for (; G < X.length; )
|
|
66688
|
+
if (ue = X.charAt(G++), ue === "$")
|
|
66689
|
+
he === "$" && xe === 0 ? (ge = W.create("node", "TeXAtom", [new a.default(X.slice(K, G - 1), {}, W.configuration).mml()]), z.push(ge), he = "", K = G) : he === "" && (K < G - 1 && z.push(C(W, X.slice(K, G - 1), I)), he = "$", K = G);
|
|
66690
|
+
else if (ue === "{" && he !== "")
|
|
66679
66691
|
xe++;
|
|
66680
|
-
else if (
|
|
66692
|
+
else if (ue === "}")
|
|
66681
66693
|
if (he === "}" && xe === 0) {
|
|
66682
|
-
var Ie = new a.default(X.slice(
|
|
66683
|
-
ge =
|
|
66694
|
+
var Ie = new a.default(X.slice(K, G), {}, W.configuration).mml();
|
|
66695
|
+
ge = W.create("node", "TeXAtom", [Ie], I), z.push(ge), he = "", K = G;
|
|
66684
66696
|
} else he !== "" && xe && xe--;
|
|
66685
|
-
else if (
|
|
66686
|
-
if (he === "" && X.substr(
|
|
66697
|
+
else if (ue === "\\")
|
|
66698
|
+
if (he === "" && X.substr(G).match(/^(eq)?ref\s*\{/)) {
|
|
66687
66699
|
var Qt = RegExp["$&"].length;
|
|
66688
|
-
|
|
66700
|
+
K < G - 1 && z.push(C(W, X.slice(K, G - 1), I)), he = "}", K = G - 1, G += Qt;
|
|
66689
66701
|
} else
|
|
66690
|
-
|
|
66702
|
+
ue = X.charAt(G++), ue === "(" && he === "" ? (K < G - 2 && z.push(C(W, X.slice(K, G - 2), I)), he = ")", K = G) : ue === ")" && he === ")" && xe === 0 ? (ge = W.create("node", "TeXAtom", [new a.default(X.slice(K, G - 2), {}, W.configuration).mml()]), z.push(ge), he = "", K = G) : ue.match(/[${}\\]/) && he === "" && (G--, X = X.substr(0, G - 1) + X.substr(G));
|
|
66691
66703
|
if (he !== "")
|
|
66692
66704
|
throw new o.default("MathNotTerminated", "Math not terminated in text box");
|
|
66693
66705
|
}
|
|
66694
|
-
return
|
|
66706
|
+
return K < X.length && z.push(C(W, X.slice(K), I)), J != null ? z = [W.create("node", "mstyle", z, { displaystyle: !1, scriptlevel: J })] : z.length > 1 && (z = [W.create("node", "mrow", z)]), z;
|
|
66695
66707
|
}
|
|
66696
66708
|
u.internalMath = E;
|
|
66697
|
-
function C(
|
|
66709
|
+
function C(W, X, J) {
|
|
66698
66710
|
X = X.replace(/^\s+/, s.entities.nbsp).replace(/\s+$/, s.entities.nbsp);
|
|
66699
|
-
var re =
|
|
66700
|
-
return
|
|
66711
|
+
var re = W.create("text", X);
|
|
66712
|
+
return W.create("node", "mtext", [], J, re);
|
|
66701
66713
|
}
|
|
66702
66714
|
u.internalText = C;
|
|
66703
|
-
function A(
|
|
66715
|
+
function A(W, X, J, re, oe) {
|
|
66704
66716
|
if (u.checkMovableLimits(X), i.default.isType(X, "munderover") && i.default.isEmbellished(X)) {
|
|
66705
66717
|
i.default.setProperties(i.default.getCoreMO(X), { lspace: 0, rspace: 0 });
|
|
66706
|
-
var I =
|
|
66707
|
-
X =
|
|
66718
|
+
var I = W.create("node", "mo", [], { rspace: 0 });
|
|
66719
|
+
X = W.create("node", "mrow", [I, X]);
|
|
66708
66720
|
}
|
|
66709
|
-
var z =
|
|
66710
|
-
i.default.setChild(z, re === "over" ? z.over : z.under,
|
|
66711
|
-
var
|
|
66712
|
-
return oe && (
|
|
66721
|
+
var z = W.create("node", "munderover", [X]);
|
|
66722
|
+
i.default.setChild(z, re === "over" ? z.over : z.under, J);
|
|
66723
|
+
var G = z;
|
|
66724
|
+
return oe && (G = W.create("node", "TeXAtom", [z], { texClass: n.TEXCLASS.OP, movesupsub: !0 })), i.default.setProperty(G, "subsupOK", !0), G;
|
|
66713
66725
|
}
|
|
66714
66726
|
u.underOver = A;
|
|
66715
|
-
function w(
|
|
66716
|
-
var X = i.default.isType(
|
|
66717
|
-
(i.default.getProperty(
|
|
66727
|
+
function w(W) {
|
|
66728
|
+
var X = i.default.isType(W, "mo") ? i.default.getForm(W) : null;
|
|
66729
|
+
(i.default.getProperty(W, "movablelimits") || X && X[3] && X[3].movablelimits) && i.default.setProperties(W, { movablelimits: !1 });
|
|
66718
66730
|
}
|
|
66719
66731
|
u.checkMovableLimits = w;
|
|
66720
|
-
function M(
|
|
66721
|
-
if (typeof
|
|
66722
|
-
return
|
|
66723
|
-
var X =
|
|
66724
|
-
return X.match(/\\$/) &&
|
|
66732
|
+
function M(W) {
|
|
66733
|
+
if (typeof W != "string")
|
|
66734
|
+
return W;
|
|
66735
|
+
var X = W.trim();
|
|
66736
|
+
return X.match(/\\$/) && W.match(/ $/) && (X += " "), X;
|
|
66725
66737
|
}
|
|
66726
66738
|
u.trimSpaces = M;
|
|
66727
|
-
function P(
|
|
66728
|
-
return X = u.trimSpaces(X || ""), X === "t" ?
|
|
66739
|
+
function P(W, X) {
|
|
66740
|
+
return X = u.trimSpaces(X || ""), X === "t" ? W.arraydef.align = "baseline 1" : X === "b" ? W.arraydef.align = "baseline -1" : X === "c" ? W.arraydef.align = "axis" : X && (W.arraydef.align = X), W;
|
|
66729
66741
|
}
|
|
66730
66742
|
u.setArrayAlign = P;
|
|
66731
|
-
function N(
|
|
66732
|
-
for (var re = "", oe = "", I = 0; I <
|
|
66733
|
-
var z =
|
|
66743
|
+
function N(W, X, J) {
|
|
66744
|
+
for (var re = "", oe = "", I = 0; I < J.length; ) {
|
|
66745
|
+
var z = J.charAt(I++);
|
|
66734
66746
|
if (z === "\\")
|
|
66735
|
-
re += z +
|
|
66747
|
+
re += z + J.charAt(I++);
|
|
66736
66748
|
else if (z === "#")
|
|
66737
|
-
if (z =
|
|
66749
|
+
if (z = J.charAt(I++), z === "#")
|
|
66738
66750
|
re += z;
|
|
66739
66751
|
else {
|
|
66740
66752
|
if (!z.match(/[1-9]/) || parseInt(z, 10) > X.length)
|
|
66741
66753
|
throw new o.default("IllegalMacroParam", "Illegal macro parameter reference");
|
|
66742
|
-
oe = $(
|
|
66754
|
+
oe = $(W, $(W, oe, re), X[parseInt(z, 10) - 1]), re = "";
|
|
66743
66755
|
}
|
|
66744
66756
|
else
|
|
66745
66757
|
re += z;
|
|
66746
66758
|
}
|
|
66747
|
-
return $(
|
|
66759
|
+
return $(W, oe, re);
|
|
66748
66760
|
}
|
|
66749
66761
|
u.substituteArgs = N;
|
|
66750
|
-
function $(
|
|
66751
|
-
if (
|
|
66762
|
+
function $(W, X, J) {
|
|
66763
|
+
if (J.match(/^[a-z]/i) && X.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i) && (X += " "), X.length + J.length > W.configuration.options.maxBuffer)
|
|
66752
66764
|
throw new o.default("MaxBufferSize", "MathJax internal buffer size exceeded; is there a recursive macro call?");
|
|
66753
|
-
return X +
|
|
66765
|
+
return X + J;
|
|
66754
66766
|
}
|
|
66755
66767
|
u.addArgs = $;
|
|
66756
|
-
function R(
|
|
66757
|
-
if (X === void 0 && (X = !0), !(++
|
|
66768
|
+
function R(W, X) {
|
|
66769
|
+
if (X === void 0 && (X = !0), !(++W.macroCount <= W.configuration.options.maxMacros))
|
|
66758
66770
|
throw X ? new o.default("MaxMacroSub1", "MathJax maximum macro substitution count exceeded; is here a recursive macro call?") : new o.default("MaxMacroSub2", "MathJax maximum substitution count exceeded; is there a recursive latex environment?");
|
|
66759
66771
|
}
|
|
66760
66772
|
u.checkMaxMacros = R;
|
|
66761
|
-
function V(
|
|
66762
|
-
if (
|
|
66773
|
+
function V(W) {
|
|
66774
|
+
if (W.stack.global.eqnenv)
|
|
66763
66775
|
throw new o.default("ErroneousNestingEq", "Erroneous nesting of equation structures");
|
|
66764
|
-
|
|
66776
|
+
W.stack.global.eqnenv = !0;
|
|
66765
66777
|
}
|
|
66766
66778
|
u.checkEqnEnv = V;
|
|
66767
|
-
function _(
|
|
66768
|
-
var
|
|
66769
|
-
return
|
|
66779
|
+
function _(W, X) {
|
|
66780
|
+
var J = W.copy(), re = X.configuration;
|
|
66781
|
+
return J.walkTree(function(oe) {
|
|
66770
66782
|
var I, z;
|
|
66771
66783
|
re.addNode(oe.kind, oe);
|
|
66772
|
-
var
|
|
66784
|
+
var G = (oe.getProperty("in-lists") || "").split(/,/);
|
|
66773
66785
|
try {
|
|
66774
|
-
for (var
|
|
66775
|
-
var ge =
|
|
66786
|
+
for (var K = e(G), ue = K.next(); !ue.done; ue = K.next()) {
|
|
66787
|
+
var ge = ue.value;
|
|
66776
66788
|
ge && re.addNode(ge, oe);
|
|
66777
66789
|
}
|
|
66778
66790
|
} catch (he) {
|
|
66779
66791
|
I = { error: he };
|
|
66780
66792
|
} finally {
|
|
66781
66793
|
try {
|
|
66782
|
-
|
|
66794
|
+
ue && !ue.done && (z = K.return) && z.call(K);
|
|
66783
66795
|
} finally {
|
|
66784
66796
|
if (I) throw I.error;
|
|
66785
66797
|
}
|
|
66786
66798
|
}
|
|
66787
|
-
}),
|
|
66799
|
+
}), J;
|
|
66788
66800
|
}
|
|
66789
66801
|
u.copyNode = _;
|
|
66790
|
-
function D(
|
|
66791
|
-
return
|
|
66802
|
+
function D(W, X, J) {
|
|
66803
|
+
return J;
|
|
66792
66804
|
}
|
|
66793
66805
|
u.MmlFilterAttribute = D;
|
|
66794
|
-
function Z(
|
|
66795
|
-
var X =
|
|
66806
|
+
function Z(W) {
|
|
66807
|
+
var X = W.stack.env.font;
|
|
66796
66808
|
return X ? { mathvariant: X } : {};
|
|
66797
66809
|
}
|
|
66798
66810
|
u.getFontDef = Z;
|
|
66799
|
-
function k(
|
|
66811
|
+
function k(W, X, J) {
|
|
66800
66812
|
var re, oe;
|
|
66801
|
-
X === void 0 && (X = null),
|
|
66802
|
-
var I =
|
|
66813
|
+
X === void 0 && (X = null), J === void 0 && (J = !1);
|
|
66814
|
+
var I = ee(W);
|
|
66803
66815
|
if (X)
|
|
66804
66816
|
try {
|
|
66805
|
-
for (var z = e(Object.keys(I)),
|
|
66806
|
-
var
|
|
66807
|
-
if (!X.hasOwnProperty(
|
|
66808
|
-
if (
|
|
66809
|
-
throw new o.default("InvalidOption", "Invalid option: %1",
|
|
66810
|
-
delete I[
|
|
66817
|
+
for (var z = e(Object.keys(I)), G = z.next(); !G.done; G = z.next()) {
|
|
66818
|
+
var K = G.value;
|
|
66819
|
+
if (!X.hasOwnProperty(K)) {
|
|
66820
|
+
if (J)
|
|
66821
|
+
throw new o.default("InvalidOption", "Invalid option: %1", K);
|
|
66822
|
+
delete I[K];
|
|
66811
66823
|
}
|
|
66812
66824
|
}
|
|
66813
|
-
} catch (
|
|
66814
|
-
re = { error:
|
|
66825
|
+
} catch (ue) {
|
|
66826
|
+
re = { error: ue };
|
|
66815
66827
|
} finally {
|
|
66816
66828
|
try {
|
|
66817
|
-
|
|
66829
|
+
G && !G.done && (oe = z.return) && oe.call(z);
|
|
66818
66830
|
} finally {
|
|
66819
66831
|
if (re) throw re.error;
|
|
66820
66832
|
}
|
|
@@ -66822,38 +66834,38 @@ function gt() {
|
|
|
66822
66834
|
return I;
|
|
66823
66835
|
}
|
|
66824
66836
|
u.keyvalOptions = k;
|
|
66825
|
-
function
|
|
66826
|
-
for (var X,
|
|
66827
|
-
X = t(ie(oe, ["=", ","]), 3), z = X[0], I = X[1], oe = X[2], I === "=" ? (
|
|
66837
|
+
function ee(W) {
|
|
66838
|
+
for (var X, J, re = {}, oe = W, I, z, G; oe; )
|
|
66839
|
+
X = t(ie(oe, ["=", ","]), 3), z = X[0], I = X[1], oe = X[2], I === "=" ? (J = t(ie(oe, [","]), 3), G = J[0], I = J[1], oe = J[2], G = G === "false" || G === "true" ? JSON.parse(G) : G, re[z] = G) : z && (re[z] = !0);
|
|
66828
66840
|
return re;
|
|
66829
66841
|
}
|
|
66830
|
-
function ae(
|
|
66842
|
+
function ae(W, X) {
|
|
66831
66843
|
for (; X > 0; )
|
|
66832
|
-
|
|
66833
|
-
return
|
|
66844
|
+
W = W.trim().slice(1, -1), X--;
|
|
66845
|
+
return W.trim();
|
|
66834
66846
|
}
|
|
66835
|
-
function ie(
|
|
66836
|
-
for (var
|
|
66837
|
-
var
|
|
66838
|
-
switch (
|
|
66847
|
+
function ie(W, X) {
|
|
66848
|
+
for (var J = W.length, re = 0, oe = "", I = 0, z = 0, G = !0, K = !1; I < J; ) {
|
|
66849
|
+
var ue = W[I++];
|
|
66850
|
+
switch (ue) {
|
|
66839
66851
|
case " ":
|
|
66840
66852
|
break;
|
|
66841
66853
|
case "{":
|
|
66842
|
-
|
|
66854
|
+
G ? z++ : (K = !1, z > re && (z = re)), re++;
|
|
66843
66855
|
break;
|
|
66844
66856
|
case "}":
|
|
66845
|
-
re && re--, (
|
|
66857
|
+
re && re--, (G || K) && (z--, K = !0), G = !1;
|
|
66846
66858
|
break;
|
|
66847
66859
|
default:
|
|
66848
|
-
if (!re && X.indexOf(
|
|
66849
|
-
return [
|
|
66850
|
-
|
|
66860
|
+
if (!re && X.indexOf(ue) !== -1)
|
|
66861
|
+
return [K ? "true" : ae(oe, z), ue, W.slice(I)];
|
|
66862
|
+
G = !1, K = !1;
|
|
66851
66863
|
}
|
|
66852
|
-
oe +=
|
|
66864
|
+
oe += ue;
|
|
66853
66865
|
}
|
|
66854
66866
|
if (re)
|
|
66855
66867
|
throw new o.default("ExtraOpenMissingClose", "Extra open brace or missing close brace");
|
|
66856
|
-
return [
|
|
66868
|
+
return [K ? "true" : ae(oe, z), "", W.slice(I)];
|
|
66857
66869
|
}
|
|
66858
66870
|
}(l || (l = {})), Zr.default = l, Zr;
|
|
66859
66871
|
}
|
|
@@ -68098,16 +68110,16 @@ function R3() {
|
|
|
68098
68110
|
}(), e = He && He.__read || function(R, V) {
|
|
68099
68111
|
var _ = typeof Symbol == "function" && R[Symbol.iterator];
|
|
68100
68112
|
if (!_) return R;
|
|
68101
|
-
var D = _.call(R), Z, k = [],
|
|
68113
|
+
var D = _.call(R), Z, k = [], ee;
|
|
68102
68114
|
try {
|
|
68103
68115
|
for (; (V === void 0 || V-- > 0) && !(Z = D.next()).done; ) k.push(Z.value);
|
|
68104
68116
|
} catch (ae) {
|
|
68105
|
-
|
|
68117
|
+
ee = { error: ae };
|
|
68106
68118
|
} finally {
|
|
68107
68119
|
try {
|
|
68108
68120
|
Z && !Z.done && (_ = D.return) && _.call(D);
|
|
68109
68121
|
} finally {
|
|
68110
|
-
if (
|
|
68122
|
+
if (ee) throw ee.error;
|
|
68111
68123
|
}
|
|
68112
68124
|
}
|
|
68113
68125
|
return k;
|
|
@@ -68231,8 +68243,8 @@ function R3() {
|
|
|
68231
68243
|
}), V.prototype.checkItem = function(_) {
|
|
68232
68244
|
var D = e(this.Peek(2), 2), Z = D[0], k = D[1];
|
|
68233
68245
|
if (!u.default.isType(Z, "msubsup") || u.default.isType(Z, "msup")) {
|
|
68234
|
-
var
|
|
68235
|
-
return [[
|
|
68246
|
+
var ee = this.create("node", "msup", [Z, k]);
|
|
68247
|
+
return [[ee, _], !0];
|
|
68236
68248
|
}
|
|
68237
68249
|
return u.default.setChild(Z, Z.sup, k), [[Z, _], !0];
|
|
68238
68250
|
}, V;
|
|
@@ -68263,8 +68275,8 @@ function R3() {
|
|
|
68263
68275
|
_.First = k;
|
|
68264
68276
|
}
|
|
68265
68277
|
u.default.setChild(D, Z, _.First), this.getProperty("movesupsub") != null && u.default.setProperty(D, "movesupsub", this.getProperty("movesupsub"));
|
|
68266
|
-
var
|
|
68267
|
-
return [[
|
|
68278
|
+
var ee = this.factory.create("mml", D);
|
|
68279
|
+
return [[ee], !0];
|
|
68268
68280
|
}
|
|
68269
68281
|
if (R.prototype.checkItem.call(this, _)[1]) {
|
|
68270
68282
|
var ae = this.getErrors(["", "sub", "sup"][Z]);
|
|
@@ -68564,8 +68576,8 @@ function R3() {
|
|
|
68564
68576
|
if (k != null && [0, 0, 1, 1, 0, 1, 1, 0, 0, 0][k[2]])
|
|
68565
68577
|
return [[D, _], !0];
|
|
68566
68578
|
}
|
|
68567
|
-
var
|
|
68568
|
-
return [[D,
|
|
68579
|
+
var ee = this.create("token", "mo", { texClass: o.TEXCLASS.NONE }, a.entities.ApplyFunction);
|
|
68580
|
+
return [[D, ee, _], !0];
|
|
68569
68581
|
}
|
|
68570
68582
|
return R.prototype.checkItem.apply(this, arguments);
|
|
68571
68583
|
}, V;
|
|
@@ -68590,7 +68602,7 @@ function R3() {
|
|
|
68590
68602
|
if (_.isKind("mml") && (u.default.isType(_.First, "mo") || u.default.isType(_.First, "mi") || u.default.isType(_.First, "mtext")) && (D = _.First, Z = u.default.getText(D), Z.length === 1 && !u.default.getProperty(D, "movesupsub") && u.default.getChildren(D).length === 1))
|
|
68591
68603
|
return this.remap.contains(Z) ? (k = this.create("text", this.remap.lookup(Z).char), u.default.setChild(D, 0, k)) : (k = this.create("text", "̸"), u.default.appendChildren(D, [k])), [[_], !0];
|
|
68592
68604
|
k = this.create("text", "⧸");
|
|
68593
|
-
var
|
|
68605
|
+
var ee = this.create("node", "mtext", [], {}, k), ae = this.create("node", "mpadded", [ee], { width: 0 });
|
|
68594
68606
|
return D = this.create("node", "TeXAtom", [ae], { texClass: o.TEXCLASS.REL }), [[D, _], !0];
|
|
68595
68607
|
}, V;
|
|
68596
68608
|
}(c.BaseItem);
|
|
@@ -71469,14 +71481,14 @@ function Rf() {
|
|
|
71469
71481
|
var e = u3 && u3.__read || function(_, D) {
|
|
71470
71482
|
var Z = typeof Symbol == "function" && _[Symbol.iterator];
|
|
71471
71483
|
if (!Z) return _;
|
|
71472
|
-
var k = Z.call(_),
|
|
71484
|
+
var k = Z.call(_), ee, ae = [], ie;
|
|
71473
71485
|
try {
|
|
71474
|
-
for (; (D === void 0 || D-- > 0) && !(
|
|
71475
|
-
} catch (
|
|
71476
|
-
ie = { error:
|
|
71486
|
+
for (; (D === void 0 || D-- > 0) && !(ee = k.next()).done; ) ae.push(ee.value);
|
|
71487
|
+
} catch (W) {
|
|
71488
|
+
ie = { error: W };
|
|
71477
71489
|
} finally {
|
|
71478
71490
|
try {
|
|
71479
|
-
|
|
71491
|
+
ee && !ee.done && (Z = k.return) && Z.call(k);
|
|
71480
71492
|
} finally {
|
|
71481
71493
|
if (ie) throw ie.error;
|
|
71482
71494
|
}
|
|
@@ -71536,21 +71548,21 @@ function Rf() {
|
|
|
71536
71548
|
if (_ === D)
|
|
71537
71549
|
return k;
|
|
71538
71550
|
if (_ !== D.parent) {
|
|
71539
|
-
var
|
|
71540
|
-
a.default.isType(
|
|
71551
|
+
var ee = _.childNodes, ae = Z ? ee.length - 1 : 0;
|
|
71552
|
+
a.default.isType(ee[ae], "mspace") && (k += u(ee[ae])), _ = D.parent;
|
|
71541
71553
|
}
|
|
71542
71554
|
if (_ === D)
|
|
71543
71555
|
return k;
|
|
71544
|
-
var ie = _.childNodes,
|
|
71545
|
-
return ie[
|
|
71556
|
+
var ie = _.childNodes, W = Z ? ie.length - 1 : 0;
|
|
71557
|
+
return ie[W] !== D && (k += u(ie[W])), k;
|
|
71546
71558
|
}, x = function(_, D) {
|
|
71547
71559
|
D === void 0 && (D = !1);
|
|
71548
|
-
var Z = c(_), k = p(Z, (0, t.getProperty)(Z, "inferenceRule")),
|
|
71549
|
-
return
|
|
71560
|
+
var Z = c(_), k = p(Z, (0, t.getProperty)(Z, "inferenceRule")), ee = y(_, Z, D), ae = u(Z), ie = u(k);
|
|
71561
|
+
return ee + (ae - ie) / 2;
|
|
71550
71562
|
}, O = function(_, D, Z, k) {
|
|
71551
71563
|
if (k === void 0 && (k = !1), (0, t.getProperty)(D, "inferenceRule") || (0, t.getProperty)(D, "labelledRule")) {
|
|
71552
|
-
var
|
|
71553
|
-
D.parent.replaceChild(
|
|
71564
|
+
var ee = _.nodeFactory.create("node", "mrow");
|
|
71565
|
+
D.parent.replaceChild(ee, D), ee.setChildren([D]), v(D, ee), D = ee;
|
|
71554
71566
|
}
|
|
71555
71567
|
var ae = k ? D.childNodes.length - 1 : 0, ie = D.childNodes[ae];
|
|
71556
71568
|
if (a.default.isType(ie, "mspace")) {
|
|
@@ -71565,8 +71577,8 @@ function Rf() {
|
|
|
71565
71577
|
}, v = function(_, D) {
|
|
71566
71578
|
var Z = ["inference", "proof", "maxAdjust", "labelledRule"];
|
|
71567
71579
|
Z.forEach(function(k) {
|
|
71568
|
-
var
|
|
71569
|
-
|
|
71580
|
+
var ee = (0, t.getProperty)(_, k);
|
|
71581
|
+
ee != null && ((0, t.setProperty)(D, k, ee), (0, t.removeProperty)(_, k));
|
|
71570
71582
|
});
|
|
71571
71583
|
}, L = function(_) {
|
|
71572
71584
|
var D = _.nodeLists.sequent;
|
|
@@ -71576,68 +71588,68 @@ function Rf() {
|
|
|
71576
71588
|
(0, t.removeProperty)(k, "sequentProcessed");
|
|
71577
71589
|
continue;
|
|
71578
71590
|
}
|
|
71579
|
-
var
|
|
71591
|
+
var ee = [], ae = m(k);
|
|
71580
71592
|
if ((0, t.getProperty)(ae, "inference") === 1) {
|
|
71581
|
-
for (
|
|
71593
|
+
for (ee.push(k); (0, t.getProperty)(ae, "inference") === 1; ) {
|
|
71582
71594
|
ae = c(ae);
|
|
71583
|
-
var ie = f(Q(ae, (0, t.getProperty)(ae, "inferenceRule"))),
|
|
71584
|
-
(0, t.getProperty)(
|
|
71595
|
+
var ie = f(Q(ae, (0, t.getProperty)(ae, "inferenceRule"))), W = (0, t.getProperty)(ie, "inferenceRule") ? p(ie, (0, t.getProperty)(ie, "inferenceRule")) : ie;
|
|
71596
|
+
(0, t.getProperty)(W, "sequent") && (k = W.childNodes[0], ee.push(k), (0, t.setProperty)(k, "sequentProcessed", !0)), ae = ie;
|
|
71585
71597
|
}
|
|
71586
|
-
S(_,
|
|
71598
|
+
S(_, ee);
|
|
71587
71599
|
}
|
|
71588
71600
|
}
|
|
71589
|
-
}, b = function(_, D, Z, k,
|
|
71590
|
-
var ae = _.nodeFactory.create("node", "mspace", [], { width: o.default.Em(
|
|
71601
|
+
}, b = function(_, D, Z, k, ee) {
|
|
71602
|
+
var ae = _.nodeFactory.create("node", "mspace", [], { width: o.default.Em(ee) });
|
|
71591
71603
|
if (k === "left") {
|
|
71592
71604
|
var ie = D.childNodes[Z].childNodes[0];
|
|
71593
71605
|
ae.parent = ie, ie.childNodes.unshift(ae);
|
|
71594
71606
|
} else
|
|
71595
71607
|
D.childNodes[Z].appendChild(ae);
|
|
71596
|
-
(0, t.setProperty)(D.parent, "sequentAdjust_" + k,
|
|
71608
|
+
(0, t.setProperty)(D.parent, "sequentAdjust_" + k, ee);
|
|
71597
71609
|
}, S = function(_, D) {
|
|
71598
71610
|
for (var Z = D.pop(); D.length; ) {
|
|
71599
|
-
var k = D.pop(),
|
|
71611
|
+
var k = D.pop(), ee = e(E(Z, k), 2), ae = ee[0], ie = ee[1];
|
|
71600
71612
|
(0, t.getProperty)(Z.parent, "axiom") && (b(_, ae < 0 ? Z : k, 0, "left", Math.abs(ae)), b(_, ie < 0 ? Z : k, 2, "right", Math.abs(ie))), Z = k;
|
|
71601
71613
|
}
|
|
71602
71614
|
}, E = function(_, D) {
|
|
71603
|
-
var Z = u(_.childNodes[2]), k = u(D.childNodes[2]),
|
|
71604
|
-
return [ie,
|
|
71615
|
+
var Z = u(_.childNodes[2]), k = u(D.childNodes[2]), ee = u(_.childNodes[0]), ae = u(D.childNodes[0]), ie = ee - ae, W = Z - k;
|
|
71616
|
+
return [ie, W];
|
|
71605
71617
|
}, C = function(_) {
|
|
71606
71618
|
var D, Z;
|
|
71607
71619
|
l = new _.document.options.MathItem("", null, _.math.display);
|
|
71608
71620
|
var k = _.data;
|
|
71609
71621
|
L(k);
|
|
71610
|
-
var
|
|
71622
|
+
var ee = k.nodeLists.inference || [];
|
|
71611
71623
|
try {
|
|
71612
|
-
for (var ae = r(
|
|
71613
|
-
var
|
|
71624
|
+
for (var ae = r(ee), ie = ae.next(); !ie.done; ie = ae.next()) {
|
|
71625
|
+
var W = ie.value, X = (0, t.getProperty)(W, "proof"), J = c(W), re = Q(J, (0, t.getProperty)(J, "inferenceRule")), oe = f(re);
|
|
71614
71626
|
if ((0, t.getProperty)(oe, "inference")) {
|
|
71615
71627
|
var I = x(oe);
|
|
71616
71628
|
if (I) {
|
|
71617
71629
|
O(k, oe, -I);
|
|
71618
|
-
var z = y(
|
|
71619
|
-
O(k,
|
|
71630
|
+
var z = y(W, J, !1);
|
|
71631
|
+
O(k, W, I - z);
|
|
71620
71632
|
}
|
|
71621
71633
|
}
|
|
71622
|
-
var
|
|
71623
|
-
if ((0, t.getProperty)(
|
|
71624
|
-
var
|
|
71625
|
-
O(k,
|
|
71626
|
-
var
|
|
71627
|
-
ge != null && (
|
|
71634
|
+
var G = h(re);
|
|
71635
|
+
if ((0, t.getProperty)(G, "inference") != null) {
|
|
71636
|
+
var K = x(G, !0);
|
|
71637
|
+
O(k, G, -K, !0);
|
|
71638
|
+
var ue = y(W, J, !0), ge = (0, t.getProperty)(W, "maxAdjust");
|
|
71639
|
+
ge != null && (K = Math.max(K, ge));
|
|
71628
71640
|
var he = void 0;
|
|
71629
|
-
if (X || !(he = g(
|
|
71630
|
-
O(k, (0, t.getProperty)(
|
|
71641
|
+
if (X || !(he = g(W))) {
|
|
71642
|
+
O(k, (0, t.getProperty)(W, "proof") ? W : W.parent, K - ue, !0);
|
|
71631
71643
|
continue;
|
|
71632
71644
|
}
|
|
71633
71645
|
var xe = d(he);
|
|
71634
71646
|
if (xe) {
|
|
71635
|
-
var Ie = k.nodeFactory.create("node", "mspace", [], { width:
|
|
71636
|
-
xe.appendChild(Ie),
|
|
71647
|
+
var Ie = k.nodeFactory.create("node", "mspace", [], { width: K - ue + "em" });
|
|
71648
|
+
xe.appendChild(Ie), W.removeProperty("maxAdjust");
|
|
71637
71649
|
continue;
|
|
71638
71650
|
}
|
|
71639
71651
|
var Qt = m(he);
|
|
71640
|
-
Qt && (
|
|
71652
|
+
Qt && (K = (0, t.getProperty)(Qt, "maxAdjust") ? Math.max((0, t.getProperty)(Qt, "maxAdjust"), K) : K, (0, t.setProperty)(Qt, "maxAdjust", K));
|
|
71641
71653
|
}
|
|
71642
71654
|
}
|
|
71643
71655
|
} catch (K2) {
|
|
@@ -71666,8 +71678,8 @@ function Rf() {
|
|
|
71666
71678
|
var $ = function(_) {
|
|
71667
71679
|
_.data.root.walkTree(function(D, Z) {
|
|
71668
71680
|
var k = [];
|
|
71669
|
-
D.getPropertyNames().forEach(function(
|
|
71670
|
-
!w[
|
|
71681
|
+
D.getPropertyNames().forEach(function(ee) {
|
|
71682
|
+
!w[ee] && ee.match(RegExp("^" + A)) && k.push(ee + ":" + D.getProperty(ee));
|
|
71671
71683
|
}), k.length && a.default.setAttribute(D, "semantics", k.join(";"));
|
|
71672
71684
|
});
|
|
71673
71685
|
};
|
|
@@ -79715,10 +79727,10 @@ function yae(t, e, r, n) {
|
|
|
79715
79727
|
}
|
|
79716
79728
|
return -1;
|
|
79717
79729
|
}
|
|
79718
|
-
var
|
|
79730
|
+
var ce;
|
|
79719
79731
|
(function(t) {
|
|
79720
79732
|
t.HTML = "http://www.w3.org/1999/xhtml", t.MATHML = "http://www.w3.org/1998/Math/MathML", t.SVG = "http://www.w3.org/2000/svg", t.XLINK = "http://www.w3.org/1999/xlink", t.XML = "http://www.w3.org/XML/1998/namespace", t.XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
79721
|
-
})(
|
|
79733
|
+
})(ce || (ce = {}));
|
|
79722
79734
|
var _i;
|
|
79723
79735
|
(function(t) {
|
|
79724
79736
|
t.TYPE = "type", t.ACTION = "action", t.ENCODING = "encoding", t.PROMPT = "prompt", t.NAME = "name", t.COLOR = "color", t.FACE = "face", t.SIZE = "size";
|
|
@@ -79727,145 +79739,145 @@ var B2;
|
|
|
79727
79739
|
(function(t) {
|
|
79728
79740
|
t.NO_QUIRKS = "no-quirks", t.QUIRKS = "quirks", t.LIMITED_QUIRKS = "limited-quirks";
|
|
79729
79741
|
})(B2 || (B2 = {}));
|
|
79730
|
-
var
|
|
79742
|
+
var te;
|
|
79731
79743
|
(function(t) {
|
|
79732
79744
|
t.A = "a", t.ADDRESS = "address", t.ANNOTATION_XML = "annotation-xml", t.APPLET = "applet", t.AREA = "area", t.ARTICLE = "article", t.ASIDE = "aside", t.B = "b", t.BASE = "base", t.BASEFONT = "basefont", t.BGSOUND = "bgsound", t.BIG = "big", t.BLOCKQUOTE = "blockquote", t.BODY = "body", t.BR = "br", t.BUTTON = "button", t.CAPTION = "caption", t.CENTER = "center", t.CODE = "code", t.COL = "col", t.COLGROUP = "colgroup", t.DD = "dd", t.DESC = "desc", t.DETAILS = "details", t.DIALOG = "dialog", t.DIR = "dir", t.DIV = "div", t.DL = "dl", t.DT = "dt", t.EM = "em", t.EMBED = "embed", t.FIELDSET = "fieldset", t.FIGCAPTION = "figcaption", t.FIGURE = "figure", t.FONT = "font", t.FOOTER = "footer", t.FOREIGN_OBJECT = "foreignObject", t.FORM = "form", t.FRAME = "frame", t.FRAMESET = "frameset", t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.HEAD = "head", t.HEADER = "header", t.HGROUP = "hgroup", t.HR = "hr", t.HTML = "html", t.I = "i", t.IMG = "img", t.IMAGE = "image", t.INPUT = "input", t.IFRAME = "iframe", t.KEYGEN = "keygen", t.LABEL = "label", t.LI = "li", t.LINK = "link", t.LISTING = "listing", t.MAIN = "main", t.MALIGNMARK = "malignmark", t.MARQUEE = "marquee", t.MATH = "math", t.MENU = "menu", t.META = "meta", t.MGLYPH = "mglyph", t.MI = "mi", t.MO = "mo", t.MN = "mn", t.MS = "ms", t.MTEXT = "mtext", t.NAV = "nav", t.NOBR = "nobr", t.NOFRAMES = "noframes", t.NOEMBED = "noembed", t.NOSCRIPT = "noscript", t.OBJECT = "object", t.OL = "ol", t.OPTGROUP = "optgroup", t.OPTION = "option", t.P = "p", t.PARAM = "param", t.PLAINTEXT = "plaintext", t.PRE = "pre", t.RB = "rb", t.RP = "rp", t.RT = "rt", t.RTC = "rtc", t.RUBY = "ruby", t.S = "s", t.SCRIPT = "script", t.SEARCH = "search", t.SECTION = "section", t.SELECT = "select", t.SOURCE = "source", t.SMALL = "small", t.SPAN = "span", t.STRIKE = "strike", t.STRONG = "strong", t.STYLE = "style", t.SUB = "sub", t.SUMMARY = "summary", t.SUP = "sup", t.TABLE = "table", t.TBODY = "tbody", t.TEMPLATE = "template", t.TEXTAREA = "textarea", t.TFOOT = "tfoot", t.TD = "td", t.TH = "th", t.THEAD = "thead", t.TITLE = "title", t.TR = "tr", t.TRACK = "track", t.TT = "tt", t.U = "u", t.UL = "ul", t.SVG = "svg", t.VAR = "var", t.WBR = "wbr", t.XMP = "xmp";
|
|
79733
|
-
})(
|
|
79745
|
+
})(te || (te = {}));
|
|
79734
79746
|
var H;
|
|
79735
79747
|
(function(t) {
|
|
79736
79748
|
t[t.UNKNOWN = 0] = "UNKNOWN", t[t.A = 1] = "A", t[t.ADDRESS = 2] = "ADDRESS", t[t.ANNOTATION_XML = 3] = "ANNOTATION_XML", t[t.APPLET = 4] = "APPLET", t[t.AREA = 5] = "AREA", t[t.ARTICLE = 6] = "ARTICLE", t[t.ASIDE = 7] = "ASIDE", t[t.B = 8] = "B", t[t.BASE = 9] = "BASE", t[t.BASEFONT = 10] = "BASEFONT", t[t.BGSOUND = 11] = "BGSOUND", t[t.BIG = 12] = "BIG", t[t.BLOCKQUOTE = 13] = "BLOCKQUOTE", t[t.BODY = 14] = "BODY", t[t.BR = 15] = "BR", t[t.BUTTON = 16] = "BUTTON", t[t.CAPTION = 17] = "CAPTION", t[t.CENTER = 18] = "CENTER", t[t.CODE = 19] = "CODE", t[t.COL = 20] = "COL", t[t.COLGROUP = 21] = "COLGROUP", t[t.DD = 22] = "DD", t[t.DESC = 23] = "DESC", t[t.DETAILS = 24] = "DETAILS", t[t.DIALOG = 25] = "DIALOG", t[t.DIR = 26] = "DIR", t[t.DIV = 27] = "DIV", t[t.DL = 28] = "DL", t[t.DT = 29] = "DT", t[t.EM = 30] = "EM", t[t.EMBED = 31] = "EMBED", t[t.FIELDSET = 32] = "FIELDSET", t[t.FIGCAPTION = 33] = "FIGCAPTION", t[t.FIGURE = 34] = "FIGURE", t[t.FONT = 35] = "FONT", t[t.FOOTER = 36] = "FOOTER", t[t.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", t[t.FORM = 38] = "FORM", t[t.FRAME = 39] = "FRAME", t[t.FRAMESET = 40] = "FRAMESET", t[t.H1 = 41] = "H1", t[t.H2 = 42] = "H2", t[t.H3 = 43] = "H3", t[t.H4 = 44] = "H4", t[t.H5 = 45] = "H5", t[t.H6 = 46] = "H6", t[t.HEAD = 47] = "HEAD", t[t.HEADER = 48] = "HEADER", t[t.HGROUP = 49] = "HGROUP", t[t.HR = 50] = "HR", t[t.HTML = 51] = "HTML", t[t.I = 52] = "I", t[t.IMG = 53] = "IMG", t[t.IMAGE = 54] = "IMAGE", t[t.INPUT = 55] = "INPUT", t[t.IFRAME = 56] = "IFRAME", t[t.KEYGEN = 57] = "KEYGEN", t[t.LABEL = 58] = "LABEL", t[t.LI = 59] = "LI", t[t.LINK = 60] = "LINK", t[t.LISTING = 61] = "LISTING", t[t.MAIN = 62] = "MAIN", t[t.MALIGNMARK = 63] = "MALIGNMARK", t[t.MARQUEE = 64] = "MARQUEE", t[t.MATH = 65] = "MATH", t[t.MENU = 66] = "MENU", t[t.META = 67] = "META", t[t.MGLYPH = 68] = "MGLYPH", t[t.MI = 69] = "MI", t[t.MO = 70] = "MO", t[t.MN = 71] = "MN", t[t.MS = 72] = "MS", t[t.MTEXT = 73] = "MTEXT", t[t.NAV = 74] = "NAV", t[t.NOBR = 75] = "NOBR", t[t.NOFRAMES = 76] = "NOFRAMES", t[t.NOEMBED = 77] = "NOEMBED", t[t.NOSCRIPT = 78] = "NOSCRIPT", t[t.OBJECT = 79] = "OBJECT", t[t.OL = 80] = "OL", t[t.OPTGROUP = 81] = "OPTGROUP", t[t.OPTION = 82] = "OPTION", t[t.P = 83] = "P", t[t.PARAM = 84] = "PARAM", t[t.PLAINTEXT = 85] = "PLAINTEXT", t[t.PRE = 86] = "PRE", t[t.RB = 87] = "RB", t[t.RP = 88] = "RP", t[t.RT = 89] = "RT", t[t.RTC = 90] = "RTC", t[t.RUBY = 91] = "RUBY", t[t.S = 92] = "S", t[t.SCRIPT = 93] = "SCRIPT", t[t.SEARCH = 94] = "SEARCH", t[t.SECTION = 95] = "SECTION", t[t.SELECT = 96] = "SELECT", t[t.SOURCE = 97] = "SOURCE", t[t.SMALL = 98] = "SMALL", t[t.SPAN = 99] = "SPAN", t[t.STRIKE = 100] = "STRIKE", t[t.STRONG = 101] = "STRONG", t[t.STYLE = 102] = "STYLE", t[t.SUB = 103] = "SUB", t[t.SUMMARY = 104] = "SUMMARY", t[t.SUP = 105] = "SUP", t[t.TABLE = 106] = "TABLE", t[t.TBODY = 107] = "TBODY", t[t.TEMPLATE = 108] = "TEMPLATE", t[t.TEXTAREA = 109] = "TEXTAREA", t[t.TFOOT = 110] = "TFOOT", t[t.TD = 111] = "TD", t[t.TH = 112] = "TH", t[t.THEAD = 113] = "THEAD", t[t.TITLE = 114] = "TITLE", t[t.TR = 115] = "TR", t[t.TRACK = 116] = "TRACK", t[t.TT = 117] = "TT", t[t.U = 118] = "U", t[t.UL = 119] = "UL", t[t.SVG = 120] = "SVG", t[t.VAR = 121] = "VAR", t[t.WBR = 122] = "WBR", t[t.XMP = 123] = "XMP";
|
|
79737
79749
|
})(H || (H = {}));
|
|
79738
79750
|
const vae = /* @__PURE__ */ new Map([
|
|
79739
|
-
[
|
|
79740
|
-
[
|
|
79741
|
-
[
|
|
79742
|
-
[
|
|
79743
|
-
[
|
|
79744
|
-
[
|
|
79745
|
-
[
|
|
79746
|
-
[
|
|
79747
|
-
[
|
|
79748
|
-
[
|
|
79749
|
-
[
|
|
79750
|
-
[
|
|
79751
|
-
[
|
|
79752
|
-
[
|
|
79753
|
-
[
|
|
79754
|
-
[
|
|
79755
|
-
[
|
|
79756
|
-
[
|
|
79757
|
-
[
|
|
79758
|
-
[
|
|
79759
|
-
[
|
|
79760
|
-
[
|
|
79761
|
-
[
|
|
79762
|
-
[
|
|
79763
|
-
[
|
|
79764
|
-
[
|
|
79765
|
-
[
|
|
79766
|
-
[
|
|
79767
|
-
[
|
|
79768
|
-
[
|
|
79769
|
-
[
|
|
79770
|
-
[
|
|
79771
|
-
[
|
|
79772
|
-
[
|
|
79773
|
-
[
|
|
79774
|
-
[
|
|
79775
|
-
[
|
|
79776
|
-
[
|
|
79777
|
-
[
|
|
79778
|
-
[
|
|
79779
|
-
[
|
|
79780
|
-
[
|
|
79781
|
-
[
|
|
79782
|
-
[
|
|
79783
|
-
[
|
|
79784
|
-
[
|
|
79785
|
-
[
|
|
79786
|
-
[
|
|
79787
|
-
[
|
|
79788
|
-
[
|
|
79789
|
-
[
|
|
79790
|
-
[
|
|
79791
|
-
[
|
|
79792
|
-
[
|
|
79793
|
-
[
|
|
79794
|
-
[
|
|
79795
|
-
[
|
|
79796
|
-
[
|
|
79797
|
-
[
|
|
79798
|
-
[
|
|
79799
|
-
[
|
|
79800
|
-
[
|
|
79801
|
-
[
|
|
79802
|
-
[
|
|
79803
|
-
[
|
|
79804
|
-
[
|
|
79805
|
-
[
|
|
79806
|
-
[
|
|
79807
|
-
[
|
|
79808
|
-
[
|
|
79809
|
-
[
|
|
79810
|
-
[
|
|
79811
|
-
[
|
|
79812
|
-
[
|
|
79813
|
-
[
|
|
79814
|
-
[
|
|
79815
|
-
[
|
|
79816
|
-
[
|
|
79817
|
-
[
|
|
79818
|
-
[
|
|
79819
|
-
[
|
|
79820
|
-
[
|
|
79821
|
-
[
|
|
79822
|
-
[
|
|
79823
|
-
[
|
|
79824
|
-
[
|
|
79825
|
-
[
|
|
79826
|
-
[
|
|
79827
|
-
[
|
|
79828
|
-
[
|
|
79829
|
-
[
|
|
79830
|
-
[
|
|
79831
|
-
[
|
|
79832
|
-
[
|
|
79833
|
-
[
|
|
79834
|
-
[
|
|
79835
|
-
[
|
|
79836
|
-
[
|
|
79837
|
-
[
|
|
79838
|
-
[
|
|
79839
|
-
[
|
|
79840
|
-
[
|
|
79841
|
-
[
|
|
79842
|
-
[
|
|
79843
|
-
[
|
|
79844
|
-
[
|
|
79845
|
-
[
|
|
79846
|
-
[
|
|
79847
|
-
[
|
|
79848
|
-
[
|
|
79849
|
-
[
|
|
79850
|
-
[
|
|
79851
|
-
[
|
|
79852
|
-
[
|
|
79853
|
-
[
|
|
79854
|
-
[
|
|
79855
|
-
[
|
|
79856
|
-
[
|
|
79857
|
-
[
|
|
79858
|
-
[
|
|
79859
|
-
[
|
|
79860
|
-
[
|
|
79861
|
-
[
|
|
79751
|
+
[te.A, H.A],
|
|
79752
|
+
[te.ADDRESS, H.ADDRESS],
|
|
79753
|
+
[te.ANNOTATION_XML, H.ANNOTATION_XML],
|
|
79754
|
+
[te.APPLET, H.APPLET],
|
|
79755
|
+
[te.AREA, H.AREA],
|
|
79756
|
+
[te.ARTICLE, H.ARTICLE],
|
|
79757
|
+
[te.ASIDE, H.ASIDE],
|
|
79758
|
+
[te.B, H.B],
|
|
79759
|
+
[te.BASE, H.BASE],
|
|
79760
|
+
[te.BASEFONT, H.BASEFONT],
|
|
79761
|
+
[te.BGSOUND, H.BGSOUND],
|
|
79762
|
+
[te.BIG, H.BIG],
|
|
79763
|
+
[te.BLOCKQUOTE, H.BLOCKQUOTE],
|
|
79764
|
+
[te.BODY, H.BODY],
|
|
79765
|
+
[te.BR, H.BR],
|
|
79766
|
+
[te.BUTTON, H.BUTTON],
|
|
79767
|
+
[te.CAPTION, H.CAPTION],
|
|
79768
|
+
[te.CENTER, H.CENTER],
|
|
79769
|
+
[te.CODE, H.CODE],
|
|
79770
|
+
[te.COL, H.COL],
|
|
79771
|
+
[te.COLGROUP, H.COLGROUP],
|
|
79772
|
+
[te.DD, H.DD],
|
|
79773
|
+
[te.DESC, H.DESC],
|
|
79774
|
+
[te.DETAILS, H.DETAILS],
|
|
79775
|
+
[te.DIALOG, H.DIALOG],
|
|
79776
|
+
[te.DIR, H.DIR],
|
|
79777
|
+
[te.DIV, H.DIV],
|
|
79778
|
+
[te.DL, H.DL],
|
|
79779
|
+
[te.DT, H.DT],
|
|
79780
|
+
[te.EM, H.EM],
|
|
79781
|
+
[te.EMBED, H.EMBED],
|
|
79782
|
+
[te.FIELDSET, H.FIELDSET],
|
|
79783
|
+
[te.FIGCAPTION, H.FIGCAPTION],
|
|
79784
|
+
[te.FIGURE, H.FIGURE],
|
|
79785
|
+
[te.FONT, H.FONT],
|
|
79786
|
+
[te.FOOTER, H.FOOTER],
|
|
79787
|
+
[te.FOREIGN_OBJECT, H.FOREIGN_OBJECT],
|
|
79788
|
+
[te.FORM, H.FORM],
|
|
79789
|
+
[te.FRAME, H.FRAME],
|
|
79790
|
+
[te.FRAMESET, H.FRAMESET],
|
|
79791
|
+
[te.H1, H.H1],
|
|
79792
|
+
[te.H2, H.H2],
|
|
79793
|
+
[te.H3, H.H3],
|
|
79794
|
+
[te.H4, H.H4],
|
|
79795
|
+
[te.H5, H.H5],
|
|
79796
|
+
[te.H6, H.H6],
|
|
79797
|
+
[te.HEAD, H.HEAD],
|
|
79798
|
+
[te.HEADER, H.HEADER],
|
|
79799
|
+
[te.HGROUP, H.HGROUP],
|
|
79800
|
+
[te.HR, H.HR],
|
|
79801
|
+
[te.HTML, H.HTML],
|
|
79802
|
+
[te.I, H.I],
|
|
79803
|
+
[te.IMG, H.IMG],
|
|
79804
|
+
[te.IMAGE, H.IMAGE],
|
|
79805
|
+
[te.INPUT, H.INPUT],
|
|
79806
|
+
[te.IFRAME, H.IFRAME],
|
|
79807
|
+
[te.KEYGEN, H.KEYGEN],
|
|
79808
|
+
[te.LABEL, H.LABEL],
|
|
79809
|
+
[te.LI, H.LI],
|
|
79810
|
+
[te.LINK, H.LINK],
|
|
79811
|
+
[te.LISTING, H.LISTING],
|
|
79812
|
+
[te.MAIN, H.MAIN],
|
|
79813
|
+
[te.MALIGNMARK, H.MALIGNMARK],
|
|
79814
|
+
[te.MARQUEE, H.MARQUEE],
|
|
79815
|
+
[te.MATH, H.MATH],
|
|
79816
|
+
[te.MENU, H.MENU],
|
|
79817
|
+
[te.META, H.META],
|
|
79818
|
+
[te.MGLYPH, H.MGLYPH],
|
|
79819
|
+
[te.MI, H.MI],
|
|
79820
|
+
[te.MO, H.MO],
|
|
79821
|
+
[te.MN, H.MN],
|
|
79822
|
+
[te.MS, H.MS],
|
|
79823
|
+
[te.MTEXT, H.MTEXT],
|
|
79824
|
+
[te.NAV, H.NAV],
|
|
79825
|
+
[te.NOBR, H.NOBR],
|
|
79826
|
+
[te.NOFRAMES, H.NOFRAMES],
|
|
79827
|
+
[te.NOEMBED, H.NOEMBED],
|
|
79828
|
+
[te.NOSCRIPT, H.NOSCRIPT],
|
|
79829
|
+
[te.OBJECT, H.OBJECT],
|
|
79830
|
+
[te.OL, H.OL],
|
|
79831
|
+
[te.OPTGROUP, H.OPTGROUP],
|
|
79832
|
+
[te.OPTION, H.OPTION],
|
|
79833
|
+
[te.P, H.P],
|
|
79834
|
+
[te.PARAM, H.PARAM],
|
|
79835
|
+
[te.PLAINTEXT, H.PLAINTEXT],
|
|
79836
|
+
[te.PRE, H.PRE],
|
|
79837
|
+
[te.RB, H.RB],
|
|
79838
|
+
[te.RP, H.RP],
|
|
79839
|
+
[te.RT, H.RT],
|
|
79840
|
+
[te.RTC, H.RTC],
|
|
79841
|
+
[te.RUBY, H.RUBY],
|
|
79842
|
+
[te.S, H.S],
|
|
79843
|
+
[te.SCRIPT, H.SCRIPT],
|
|
79844
|
+
[te.SEARCH, H.SEARCH],
|
|
79845
|
+
[te.SECTION, H.SECTION],
|
|
79846
|
+
[te.SELECT, H.SELECT],
|
|
79847
|
+
[te.SOURCE, H.SOURCE],
|
|
79848
|
+
[te.SMALL, H.SMALL],
|
|
79849
|
+
[te.SPAN, H.SPAN],
|
|
79850
|
+
[te.STRIKE, H.STRIKE],
|
|
79851
|
+
[te.STRONG, H.STRONG],
|
|
79852
|
+
[te.STYLE, H.STYLE],
|
|
79853
|
+
[te.SUB, H.SUB],
|
|
79854
|
+
[te.SUMMARY, H.SUMMARY],
|
|
79855
|
+
[te.SUP, H.SUP],
|
|
79856
|
+
[te.TABLE, H.TABLE],
|
|
79857
|
+
[te.TBODY, H.TBODY],
|
|
79858
|
+
[te.TEMPLATE, H.TEMPLATE],
|
|
79859
|
+
[te.TEXTAREA, H.TEXTAREA],
|
|
79860
|
+
[te.TFOOT, H.TFOOT],
|
|
79861
|
+
[te.TD, H.TD],
|
|
79862
|
+
[te.TH, H.TH],
|
|
79863
|
+
[te.THEAD, H.THEAD],
|
|
79864
|
+
[te.TITLE, H.TITLE],
|
|
79865
|
+
[te.TR, H.TR],
|
|
79866
|
+
[te.TRACK, H.TRACK],
|
|
79867
|
+
[te.TT, H.TT],
|
|
79868
|
+
[te.U, H.U],
|
|
79869
|
+
[te.UL, H.UL],
|
|
79870
|
+
[te.SVG, H.SVG],
|
|
79871
|
+
[te.VAR, H.VAR],
|
|
79872
|
+
[te.WBR, H.WBR],
|
|
79873
|
+
[te.XMP, H.XMP]
|
|
79862
79874
|
]);
|
|
79863
79875
|
function T5(t) {
|
|
79864
79876
|
var e;
|
|
79865
79877
|
return (e = vae.get(t)) !== null && e !== void 0 ? e : H.UNKNOWN;
|
|
79866
79878
|
}
|
|
79867
79879
|
const Qe = H, xae = {
|
|
79868
|
-
[
|
|
79880
|
+
[ce.HTML]: /* @__PURE__ */ new Set([
|
|
79869
79881
|
Qe.ADDRESS,
|
|
79870
79882
|
Qe.APPLET,
|
|
79871
79883
|
Qe.AREA,
|
|
@@ -79948,13 +79960,13 @@ const Qe = H, xae = {
|
|
|
79948
79960
|
Qe.WBR,
|
|
79949
79961
|
Qe.XMP
|
|
79950
79962
|
]),
|
|
79951
|
-
[
|
|
79952
|
-
[
|
|
79953
|
-
[
|
|
79954
|
-
[
|
|
79955
|
-
[
|
|
79963
|
+
[ce.MATHML]: /* @__PURE__ */ new Set([Qe.MI, Qe.MO, Qe.MN, Qe.MS, Qe.MTEXT, Qe.ANNOTATION_XML]),
|
|
79964
|
+
[ce.SVG]: /* @__PURE__ */ new Set([Qe.TITLE, Qe.FOREIGN_OBJECT, Qe.DESC]),
|
|
79965
|
+
[ce.XLINK]: /* @__PURE__ */ new Set(),
|
|
79966
|
+
[ce.XML]: /* @__PURE__ */ new Set(),
|
|
79967
|
+
[ce.XMLNS]: /* @__PURE__ */ new Set()
|
|
79956
79968
|
}, DQ = /* @__PURE__ */ new Set([Qe.H1, Qe.H2, Qe.H3, Qe.H4, Qe.H5, Qe.H6]);
|
|
79957
|
-
|
|
79969
|
+
te.STYLE, te.SCRIPT, te.XMP, te.IFRAME, te.NOEMBED, te.NOFRAMES, te.PLAINTEXT;
|
|
79958
79970
|
var F;
|
|
79959
79971
|
(function(t) {
|
|
79960
79972
|
t[t.DATA = 0] = "DATA", t[t.RCDATA = 1] = "RCDATA", t[t.RAWTEXT = 2] = "RAWTEXT", t[t.SCRIPT_DATA = 3] = "SCRIPT_DATA", t[t.PLAINTEXT = 4] = "PLAINTEXT", t[t.TAG_OPEN = 5] = "TAG_OPEN", t[t.END_TAG_OPEN = 6] = "END_TAG_OPEN", t[t.TAG_NAME = 7] = "TAG_NAME", t[t.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", t[t.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", t[t.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", t[t.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", t[t.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", t[t.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", t[t.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", t[t.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", t[t.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", t[t.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", t[t.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", t[t.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", t[t.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", t[t.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", t[t.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", t[t.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", t[t.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", t[t.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", t[t.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", t[t.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", t[t.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", t[t.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", t[t.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", t[t.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", t[t.COMMENT_START = 42] = "COMMENT_START", t[t.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", t[t.COMMENT = 44] = "COMMENT", t[t.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", t[t.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", t[t.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", t[t.COMMENT_END = 50] = "COMMENT_END", t[t.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", t[t.DOCTYPE = 52] = "DOCTYPE", t[t.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", t[t.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", t[t.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", t[t.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", t[t.CDATA_SECTION = 68] = "CDATA_SECTION", t[t.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", t[t.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", t[t.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", t[t.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
|
|
@@ -81918,7 +81930,7 @@ class Pae {
|
|
|
81918
81930
|
}
|
|
81919
81931
|
//Update current element
|
|
81920
81932
|
_isInTemplate() {
|
|
81921
|
-
return this.currentTagId === H.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) ===
|
|
81933
|
+
return this.currentTagId === H.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === ce.HTML;
|
|
81922
81934
|
}
|
|
81923
81935
|
_updateCurrentElement() {
|
|
81924
81936
|
this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
|
|
@@ -81943,7 +81955,7 @@ class Pae {
|
|
|
81943
81955
|
let r = this.stackTop + 1;
|
|
81944
81956
|
do
|
|
81945
81957
|
r = this.tagIDs.lastIndexOf(e, r - 1);
|
|
81946
|
-
while (r > 0 && this.treeAdapter.getNamespaceURI(this.items[r]) !==
|
|
81958
|
+
while (r > 0 && this.treeAdapter.getNamespaceURI(this.items[r]) !== ce.HTML);
|
|
81947
81959
|
this.shortenToLength(Math.max(r, 0));
|
|
81948
81960
|
}
|
|
81949
81961
|
shortenToLength(e) {
|
|
@@ -81961,10 +81973,10 @@ class Pae {
|
|
|
81961
81973
|
this.shortenToLength(Math.max(n, 0));
|
|
81962
81974
|
}
|
|
81963
81975
|
popUntilNumberedHeaderPopped() {
|
|
81964
|
-
this.popUntilPopped(DQ,
|
|
81976
|
+
this.popUntilPopped(DQ, ce.HTML);
|
|
81965
81977
|
}
|
|
81966
81978
|
popUntilTableCellPopped() {
|
|
81967
|
-
this.popUntilPopped(Mae,
|
|
81979
|
+
this.popUntilPopped(Mae, ce.HTML);
|
|
81968
81980
|
}
|
|
81969
81981
|
popAllUpToHtmlElement() {
|
|
81970
81982
|
this.tmplCount = 0, this.shortenToLength(1);
|
|
@@ -81980,13 +81992,13 @@ class Pae {
|
|
|
81980
81992
|
this.shortenToLength(n + 1);
|
|
81981
81993
|
}
|
|
81982
81994
|
clearBackToTableContext() {
|
|
81983
|
-
this.clearBackTo(Aae,
|
|
81995
|
+
this.clearBackTo(Aae, ce.HTML);
|
|
81984
81996
|
}
|
|
81985
81997
|
clearBackToTableBodyContext() {
|
|
81986
|
-
this.clearBackTo(Cae,
|
|
81998
|
+
this.clearBackTo(Cae, ce.HTML);
|
|
81987
81999
|
}
|
|
81988
82000
|
clearBackToTableRowContext() {
|
|
81989
|
-
this.clearBackTo(wae,
|
|
82001
|
+
this.clearBackTo(wae, ce.HTML);
|
|
81990
82002
|
}
|
|
81991
82003
|
remove(e) {
|
|
81992
82004
|
const r = this._indexOf(e);
|
|
@@ -82011,19 +82023,19 @@ class Pae {
|
|
|
82011
82023
|
for (let n = this.stackTop; n >= 0; n--) {
|
|
82012
82024
|
const i = this.tagIDs[n];
|
|
82013
82025
|
switch (this.treeAdapter.getNamespaceURI(this.items[n])) {
|
|
82014
|
-
case
|
|
82026
|
+
case ce.HTML: {
|
|
82015
82027
|
if (i === e)
|
|
82016
82028
|
return !0;
|
|
82017
82029
|
if (r.has(i))
|
|
82018
82030
|
return !1;
|
|
82019
82031
|
break;
|
|
82020
82032
|
}
|
|
82021
|
-
case
|
|
82033
|
+
case ce.SVG: {
|
|
82022
82034
|
if (dS.has(i))
|
|
82023
82035
|
return !1;
|
|
82024
82036
|
break;
|
|
82025
82037
|
}
|
|
82026
|
-
case
|
|
82038
|
+
case ce.MATHML: {
|
|
82027
82039
|
if (hS.has(i))
|
|
82028
82040
|
return !1;
|
|
82029
82041
|
break;
|
|
@@ -82045,19 +82057,19 @@ class Pae {
|
|
|
82045
82057
|
for (let e = this.stackTop; e >= 0; e--) {
|
|
82046
82058
|
const r = this.tagIDs[e];
|
|
82047
82059
|
switch (this.treeAdapter.getNamespaceURI(this.items[e])) {
|
|
82048
|
-
case
|
|
82060
|
+
case ce.HTML: {
|
|
82049
82061
|
if (DQ.has(r))
|
|
82050
82062
|
return !0;
|
|
82051
82063
|
if (kl.has(r))
|
|
82052
82064
|
return !1;
|
|
82053
82065
|
break;
|
|
82054
82066
|
}
|
|
82055
|
-
case
|
|
82067
|
+
case ce.SVG: {
|
|
82056
82068
|
if (dS.has(r))
|
|
82057
82069
|
return !1;
|
|
82058
82070
|
break;
|
|
82059
82071
|
}
|
|
82060
|
-
case
|
|
82072
|
+
case ce.MATHML: {
|
|
82061
82073
|
if (hS.has(r))
|
|
82062
82074
|
return !1;
|
|
82063
82075
|
break;
|
|
@@ -82068,7 +82080,7 @@ class Pae {
|
|
|
82068
82080
|
}
|
|
82069
82081
|
hasInTableScope(e) {
|
|
82070
82082
|
for (let r = this.stackTop; r >= 0; r--)
|
|
82071
|
-
if (this.treeAdapter.getNamespaceURI(this.items[r]) ===
|
|
82083
|
+
if (this.treeAdapter.getNamespaceURI(this.items[r]) === ce.HTML)
|
|
82072
82084
|
switch (this.tagIDs[r]) {
|
|
82073
82085
|
case e:
|
|
82074
82086
|
return !0;
|
|
@@ -82080,7 +82092,7 @@ class Pae {
|
|
|
82080
82092
|
}
|
|
82081
82093
|
hasTableBodyContextInTableScope() {
|
|
82082
82094
|
for (let e = this.stackTop; e >= 0; e--)
|
|
82083
|
-
if (this.treeAdapter.getNamespaceURI(this.items[e]) ===
|
|
82095
|
+
if (this.treeAdapter.getNamespaceURI(this.items[e]) === ce.HTML)
|
|
82084
82096
|
switch (this.tagIDs[e]) {
|
|
82085
82097
|
case H.TBODY:
|
|
82086
82098
|
case H.THEAD:
|
|
@@ -82094,7 +82106,7 @@ class Pae {
|
|
|
82094
82106
|
}
|
|
82095
82107
|
hasInSelectScope(e) {
|
|
82096
82108
|
for (let r = this.stackTop; r >= 0; r--)
|
|
82097
|
-
if (this.treeAdapter.getNamespaceURI(this.items[r]) ===
|
|
82109
|
+
if (this.treeAdapter.getNamespaceURI(this.items[r]) === ce.HTML)
|
|
82098
82110
|
switch (this.tagIDs[r]) {
|
|
82099
82111
|
case e:
|
|
82100
82112
|
return !0;
|
|
@@ -82514,17 +82526,17 @@ const gS = {
|
|
|
82514
82526
|
"yChannelSelector",
|
|
82515
82527
|
"zoomAndPan"
|
|
82516
82528
|
].map((t) => [t.toLowerCase(), t])), Zae = /* @__PURE__ */ new Map([
|
|
82517
|
-
["xlink:actuate", { prefix: "xlink", name: "actuate", namespace:
|
|
82518
|
-
["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace:
|
|
82519
|
-
["xlink:href", { prefix: "xlink", name: "href", namespace:
|
|
82520
|
-
["xlink:role", { prefix: "xlink", name: "role", namespace:
|
|
82521
|
-
["xlink:show", { prefix: "xlink", name: "show", namespace:
|
|
82522
|
-
["xlink:title", { prefix: "xlink", name: "title", namespace:
|
|
82523
|
-
["xlink:type", { prefix: "xlink", name: "type", namespace:
|
|
82524
|
-
["xml:lang", { prefix: "xml", name: "lang", namespace:
|
|
82525
|
-
["xml:space", { prefix: "xml", name: "space", namespace:
|
|
82526
|
-
["xmlns", { prefix: "", name: "xmlns", namespace:
|
|
82527
|
-
["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace:
|
|
82529
|
+
["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: ce.XLINK }],
|
|
82530
|
+
["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: ce.XLINK }],
|
|
82531
|
+
["xlink:href", { prefix: "xlink", name: "href", namespace: ce.XLINK }],
|
|
82532
|
+
["xlink:role", { prefix: "xlink", name: "role", namespace: ce.XLINK }],
|
|
82533
|
+
["xlink:show", { prefix: "xlink", name: "show", namespace: ce.XLINK }],
|
|
82534
|
+
["xlink:title", { prefix: "xlink", name: "title", namespace: ce.XLINK }],
|
|
82535
|
+
["xlink:type", { prefix: "xlink", name: "type", namespace: ce.XLINK }],
|
|
82536
|
+
["xml:lang", { prefix: "xml", name: "lang", namespace: ce.XML }],
|
|
82537
|
+
["xml:space", { prefix: "xml", name: "space", namespace: ce.XML }],
|
|
82538
|
+
["xmlns", { prefix: "", name: "xmlns", namespace: ce.XMLNS }],
|
|
82539
|
+
["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: ce.XMLNS }]
|
|
82528
82540
|
]), zae = new Map([
|
|
82529
82541
|
"altGlyph",
|
|
82530
82542
|
"altGlyphDef",
|
|
@@ -82636,20 +82648,20 @@ function Wae(t) {
|
|
|
82636
82648
|
e != null && (t.tagName = e, t.tagID = T5(t.tagName));
|
|
82637
82649
|
}
|
|
82638
82650
|
function Gae(t, e) {
|
|
82639
|
-
return e ===
|
|
82651
|
+
return e === ce.MATHML && (t === H.MI || t === H.MO || t === H.MN || t === H.MS || t === H.MTEXT);
|
|
82640
82652
|
}
|
|
82641
82653
|
function Yae(t, e, r) {
|
|
82642
|
-
if (e ===
|
|
82654
|
+
if (e === ce.MATHML && t === H.ANNOTATION_XML) {
|
|
82643
82655
|
for (let n = 0; n < r.length; n++)
|
|
82644
82656
|
if (r[n].name === _i.ENCODING) {
|
|
82645
82657
|
const i = r[n].value.toLowerCase();
|
|
82646
82658
|
return i === gS.TEXT_HTML || i === gS.APPLICATION_XML;
|
|
82647
82659
|
}
|
|
82648
82660
|
}
|
|
82649
|
-
return e ===
|
|
82661
|
+
return e === ce.SVG && (t === H.FOREIGN_OBJECT || t === H.DESC || t === H.TITLE);
|
|
82650
82662
|
}
|
|
82651
82663
|
function Kae(t, e, r, n) {
|
|
82652
|
-
return (!n || n ===
|
|
82664
|
+
return (!n || n === ce.HTML) && Yae(t, e, r) || (!n || n === ce.MATHML) && Gae(t, e);
|
|
82653
82665
|
}
|
|
82654
82666
|
const Jae = "hidden", eoe = 8, toe = 3;
|
|
82655
82667
|
var U;
|
|
@@ -82686,8 +82698,8 @@ class yS {
|
|
|
82686
82698
|
...OS,
|
|
82687
82699
|
...r
|
|
82688
82700
|
};
|
|
82689
|
-
e ?? (e = n.treeAdapter.createElement(
|
|
82690
|
-
const i = n.treeAdapter.createElement("documentmock",
|
|
82701
|
+
e ?? (e = n.treeAdapter.createElement(te.TEMPLATE, ce.HTML, []));
|
|
82702
|
+
const i = n.treeAdapter.createElement("documentmock", ce.HTML, []), a = new this(n, i, e);
|
|
82691
82703
|
return a.fragmentContextID === H.TEMPLATE && a.tmplInsertionModeStack.unshift(U.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
|
|
82692
82704
|
}
|
|
82693
82705
|
getFragment() {
|
|
@@ -82726,12 +82738,12 @@ class yS {
|
|
|
82726
82738
|
}
|
|
82727
82739
|
}
|
|
82728
82740
|
_setContextModes(e, r) {
|
|
82729
|
-
const n = e === this.document || e && this.treeAdapter.getNamespaceURI(e) ===
|
|
82741
|
+
const n = e === this.document || e && this.treeAdapter.getNamespaceURI(e) === ce.HTML;
|
|
82730
82742
|
this.currentNotInHTML = !n, this.tokenizer.inForeignNode = !n && e !== void 0 && r !== void 0 && !this._isIntegrationPoint(r, e);
|
|
82731
82743
|
}
|
|
82732
82744
|
/** @protected */
|
|
82733
82745
|
_switchToTextParsing(e, r) {
|
|
82734
|
-
this._insertElement(e,
|
|
82746
|
+
this._insertElement(e, ce.HTML), this.tokenizer.state = r, this.originalInsertionMode = this.insertionMode, this.insertionMode = U.TEXT;
|
|
82735
82747
|
}
|
|
82736
82748
|
switchToPlaintextParsing() {
|
|
82737
82749
|
this.insertionMode = U.TEXT, this.originalInsertionMode = U.IN_BODY, this.tokenizer.state = Dt.PLAINTEXT;
|
|
@@ -82745,7 +82757,7 @@ class yS {
|
|
|
82745
82757
|
_findFormInFragmentContext() {
|
|
82746
82758
|
let e = this.fragmentContext;
|
|
82747
82759
|
for (; e; ) {
|
|
82748
|
-
if (this.treeAdapter.getTagName(e) ===
|
|
82760
|
+
if (this.treeAdapter.getTagName(e) === te.FORM) {
|
|
82749
82761
|
this.formElement = e;
|
|
82750
82762
|
break;
|
|
82751
82763
|
}
|
|
@@ -82753,7 +82765,7 @@ class yS {
|
|
|
82753
82765
|
}
|
|
82754
82766
|
}
|
|
82755
82767
|
_initTokenizerForFragmentParsing() {
|
|
82756
|
-
if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !==
|
|
82768
|
+
if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== ce.HTML))
|
|
82757
82769
|
switch (this.fragmentContextID) {
|
|
82758
82770
|
case H.TITLE:
|
|
82759
82771
|
case H.TEXTAREA: {
|
|
@@ -82820,17 +82832,17 @@ class yS {
|
|
|
82820
82832
|
}
|
|
82821
82833
|
/** @protected */
|
|
82822
82834
|
_insertFakeElement(e, r) {
|
|
82823
|
-
const n = this.treeAdapter.createElement(e,
|
|
82835
|
+
const n = this.treeAdapter.createElement(e, ce.HTML, []);
|
|
82824
82836
|
this._attachElementToTree(n, null), this.openElements.push(n, r);
|
|
82825
82837
|
}
|
|
82826
82838
|
/** @protected */
|
|
82827
82839
|
_insertTemplate(e) {
|
|
82828
|
-
const r = this.treeAdapter.createElement(e.tagName,
|
|
82840
|
+
const r = this.treeAdapter.createElement(e.tagName, ce.HTML, e.attrs), n = this.treeAdapter.createDocumentFragment();
|
|
82829
82841
|
this.treeAdapter.setTemplateContent(r, n), this._attachElementToTree(r, e.location), this.openElements.push(r, e.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, null);
|
|
82830
82842
|
}
|
|
82831
82843
|
/** @protected */
|
|
82832
82844
|
_insertFakeRootElement() {
|
|
82833
|
-
const e = this.treeAdapter.createElement(
|
|
82845
|
+
const e = this.treeAdapter.createElement(te.HTML, ce.HTML, []);
|
|
82834
82846
|
this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(e, null), this.treeAdapter.appendChild(this.openElements.current, e), this.openElements.push(e, H.HTML);
|
|
82835
82847
|
}
|
|
82836
82848
|
/** @protected */
|
|
@@ -82879,11 +82891,11 @@ class yS {
|
|
|
82879
82891
|
if (!this.currentNotInHTML)
|
|
82880
82892
|
return !1;
|
|
82881
82893
|
let r, n;
|
|
82882
|
-
return this.openElements.stackTop === 0 && this.fragmentContext ? (r = this.fragmentContext, n = this.fragmentContextID) : { current: r, currentTagId: n } = this.openElements, e.tagID === H.SVG && this.treeAdapter.getTagName(r) ===
|
|
82894
|
+
return this.openElements.stackTop === 0 && this.fragmentContext ? (r = this.fragmentContext, n = this.fragmentContextID) : { current: r, currentTagId: n } = this.openElements, e.tagID === H.SVG && this.treeAdapter.getTagName(r) === te.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(r) === ce.MATHML ? !1 : (
|
|
82883
82895
|
// Check that `current` is not an integration point for HTML or MathML elements.
|
|
82884
82896
|
this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
|
|
82885
82897
|
// integration point.
|
|
82886
|
-
(e.tagID === H.MGLYPH || e.tagID === H.MALIGNMARK) && n !== void 0 && !this._isIntegrationPoint(n, r,
|
|
82898
|
+
(e.tagID === H.MGLYPH || e.tagID === H.MALIGNMARK) && n !== void 0 && !this._isIntegrationPoint(n, r, ce.HTML)
|
|
82887
82899
|
);
|
|
82888
82900
|
}
|
|
82889
82901
|
/** @protected */
|
|
@@ -83044,7 +83056,7 @@ class yS {
|
|
|
83044
83056
|
const r = this.openElements.items[e];
|
|
83045
83057
|
switch (this.openElements.tagIDs[e]) {
|
|
83046
83058
|
case H.TEMPLATE: {
|
|
83047
|
-
if (this.treeAdapter.getNamespaceURI(r) ===
|
|
83059
|
+
if (this.treeAdapter.getNamespaceURI(r) === ce.HTML)
|
|
83048
83060
|
return { parent: this.treeAdapter.getTemplateContent(r), beforeElement: null };
|
|
83049
83061
|
break;
|
|
83050
83062
|
}
|
|
@@ -83602,7 +83614,7 @@ function soe(t, e, r) {
|
|
|
83602
83614
|
t._fosterParentElement(r);
|
|
83603
83615
|
else {
|
|
83604
83616
|
const a = t.treeAdapter.getNamespaceURI(e);
|
|
83605
|
-
i === H.TEMPLATE && a ===
|
|
83617
|
+
i === H.TEMPLATE && a === ce.HTML && (e = t.treeAdapter.getTemplateContent(e)), t.treeAdapter.appendChild(e, r);
|
|
83606
83618
|
}
|
|
83607
83619
|
}
|
|
83608
83620
|
function loe(t, e, r) {
|
|
@@ -83654,7 +83666,7 @@ function Sa(t, e) {
|
|
|
83654
83666
|
t._err(e, ne.missingDoctype, !0), t.treeAdapter.setDocumentMode(t.document, B2.QUIRKS), t.insertionMode = U.BEFORE_HTML, t._processToken(e);
|
|
83655
83667
|
}
|
|
83656
83668
|
function Toe(t, e) {
|
|
83657
|
-
e.tagID === H.HTML ? (t._insertElement(e,
|
|
83669
|
+
e.tagID === H.HTML ? (t._insertElement(e, ce.HTML), t.insertionMode = U.BEFORE_HEAD) : Ga(t, e);
|
|
83658
83670
|
}
|
|
83659
83671
|
function foe(t, e) {
|
|
83660
83672
|
const r = e.tagID;
|
|
@@ -83670,7 +83682,7 @@ function hoe(t, e) {
|
|
|
83670
83682
|
break;
|
|
83671
83683
|
}
|
|
83672
83684
|
case H.HEAD: {
|
|
83673
|
-
t._insertElement(e,
|
|
83685
|
+
t._insertElement(e, ce.HTML), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD;
|
|
83674
83686
|
break;
|
|
83675
83687
|
}
|
|
83676
83688
|
default:
|
|
@@ -83682,7 +83694,7 @@ function doe(t, e) {
|
|
|
83682
83694
|
r === H.HEAD || r === H.BODY || r === H.HTML || r === H.BR ? Ya(t, e) : t._err(e, ne.endTagWithoutMatchingOpenElement);
|
|
83683
83695
|
}
|
|
83684
83696
|
function Ya(t, e) {
|
|
83685
|
-
t._insertFakeElement(
|
|
83697
|
+
t._insertFakeElement(te.HEAD, H.HEAD), t.headElement = t.openElements.current, t.insertionMode = U.IN_HEAD, t._processToken(e);
|
|
83686
83698
|
}
|
|
83687
83699
|
function Br(t, e) {
|
|
83688
83700
|
switch (e.tagID) {
|
|
@@ -83695,7 +83707,7 @@ function Br(t, e) {
|
|
|
83695
83707
|
case H.BGSOUND:
|
|
83696
83708
|
case H.LINK:
|
|
83697
83709
|
case H.META: {
|
|
83698
|
-
t._appendElement(e,
|
|
83710
|
+
t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
|
|
83699
83711
|
break;
|
|
83700
83712
|
}
|
|
83701
83713
|
case H.TITLE: {
|
|
@@ -83703,7 +83715,7 @@ function Br(t, e) {
|
|
|
83703
83715
|
break;
|
|
83704
83716
|
}
|
|
83705
83717
|
case H.NOSCRIPT: {
|
|
83706
|
-
t.options.scriptingEnabled ? t._switchToTextParsing(e, Dt.RAWTEXT) : (t._insertElement(e,
|
|
83718
|
+
t.options.scriptingEnabled ? t._switchToTextParsing(e, Dt.RAWTEXT) : (t._insertElement(e, ce.HTML), t.insertionMode = U.IN_HEAD_NO_SCRIPT);
|
|
83707
83719
|
break;
|
|
83708
83720
|
}
|
|
83709
83721
|
case H.NOFRAMES:
|
|
@@ -83802,11 +83814,11 @@ function Ooe(t, e) {
|
|
|
83802
83814
|
break;
|
|
83803
83815
|
}
|
|
83804
83816
|
case H.BODY: {
|
|
83805
|
-
t._insertElement(e,
|
|
83817
|
+
t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = U.IN_BODY;
|
|
83806
83818
|
break;
|
|
83807
83819
|
}
|
|
83808
83820
|
case H.FRAMESET: {
|
|
83809
|
-
t._insertElement(e,
|
|
83821
|
+
t._insertElement(e, ce.HTML), t.insertionMode = U.IN_FRAMESET;
|
|
83810
83822
|
break;
|
|
83811
83823
|
}
|
|
83812
83824
|
case H.BASE:
|
|
@@ -83847,7 +83859,7 @@ function yoe(t, e) {
|
|
|
83847
83859
|
}
|
|
83848
83860
|
}
|
|
83849
83861
|
function eo(t, e) {
|
|
83850
|
-
t._insertFakeElement(
|
|
83862
|
+
t._insertFakeElement(te.BODY, H.BODY), t.insertionMode = U.IN_BODY, S8(t, e);
|
|
83851
83863
|
}
|
|
83852
83864
|
function S8(t, e) {
|
|
83853
83865
|
switch (e.type) {
|
|
@@ -83892,20 +83904,20 @@ function xoe(t, e) {
|
|
|
83892
83904
|
}
|
|
83893
83905
|
function Loe(t, e) {
|
|
83894
83906
|
const r = t.openElements.tryPeekProperlyNestedBodyElement();
|
|
83895
|
-
t.framesetOk && r && (t.treeAdapter.detachNode(r), t.openElements.popAllUpToHtmlElement(), t._insertElement(e,
|
|
83907
|
+
t.framesetOk && r && (t.treeAdapter.detachNode(r), t.openElements.popAllUpToHtmlElement(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_FRAMESET);
|
|
83896
83908
|
}
|
|
83897
83909
|
function boe(t, e) {
|
|
83898
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83910
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML);
|
|
83899
83911
|
}
|
|
83900
83912
|
function Soe(t, e) {
|
|
83901
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t.openElements.currentTagId !== void 0 && DQ.has(t.openElements.currentTagId) && t.openElements.pop(), t._insertElement(e,
|
|
83913
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t.openElements.currentTagId !== void 0 && DQ.has(t.openElements.currentTagId) && t.openElements.pop(), t._insertElement(e, ce.HTML);
|
|
83902
83914
|
}
|
|
83903
83915
|
function Eoe(t, e) {
|
|
83904
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83916
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.skipNextNewLine = !0, t.framesetOk = !1;
|
|
83905
83917
|
}
|
|
83906
83918
|
function Hoe(t, e) {
|
|
83907
83919
|
const r = t.openElements.tmplCount > 0;
|
|
83908
|
-
(!t.formElement || r) && (t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83920
|
+
(!t.formElement || r) && (t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), r || (t.formElement = t.openElements.current));
|
|
83909
83921
|
}
|
|
83910
83922
|
function _oe(t, e) {
|
|
83911
83923
|
t.framesetOk = !1;
|
|
@@ -83919,51 +83931,51 @@ function _oe(t, e) {
|
|
|
83919
83931
|
if (i !== H.ADDRESS && i !== H.DIV && i !== H.P && t._isSpecialElement(t.openElements.items[n], i))
|
|
83920
83932
|
break;
|
|
83921
83933
|
}
|
|
83922
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83934
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML);
|
|
83923
83935
|
}
|
|
83924
83936
|
function woe(t, e) {
|
|
83925
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83937
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.tokenizer.state = Dt.PLAINTEXT;
|
|
83926
83938
|
}
|
|
83927
83939
|
function Coe(t, e) {
|
|
83928
|
-
t.openElements.hasInScope(H.BUTTON) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(H.BUTTON)), t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83940
|
+
t.openElements.hasInScope(H.BUTTON) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(H.BUTTON)), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.framesetOk = !1;
|
|
83929
83941
|
}
|
|
83930
83942
|
function Aoe(t, e) {
|
|
83931
|
-
const r = t.activeFormattingElements.getElementEntryInScopeWithTagName(
|
|
83932
|
-
r && (qf(t, e), t.openElements.remove(r.element), t.activeFormattingElements.removeEntry(r)), t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83943
|
+
const r = t.activeFormattingElements.getElementEntryInScopeWithTagName(te.A);
|
|
83944
|
+
r && (qf(t, e), t.openElements.remove(r.element), t.activeFormattingElements.removeEntry(r)), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
|
|
83933
83945
|
}
|
|
83934
83946
|
function Moe(t, e) {
|
|
83935
|
-
t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83947
|
+
t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
|
|
83936
83948
|
}
|
|
83937
83949
|
function Poe(t, e) {
|
|
83938
|
-
t._reconstructActiveFormattingElements(), t.openElements.hasInScope(H.NOBR) && (qf(t, e), t._reconstructActiveFormattingElements()), t._insertElement(e,
|
|
83950
|
+
t._reconstructActiveFormattingElements(), t.openElements.hasInScope(H.NOBR) && (qf(t, e), t._reconstructActiveFormattingElements()), t._insertElement(e, ce.HTML), t.activeFormattingElements.pushElement(t.openElements.current, e);
|
|
83939
83951
|
}
|
|
83940
83952
|
function koe(t, e) {
|
|
83941
|
-
t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83953
|
+
t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.activeFormattingElements.insertMarker(), t.framesetOk = !1;
|
|
83942
83954
|
}
|
|
83943
83955
|
function Doe(t, e) {
|
|
83944
|
-
t.treeAdapter.getDocumentMode(t.document) !== B2.QUIRKS && t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e,
|
|
83956
|
+
t.treeAdapter.getDocumentMode(t.document) !== B2.QUIRKS && t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = U.IN_TABLE;
|
|
83945
83957
|
}
|
|
83946
83958
|
function Tk(t, e) {
|
|
83947
|
-
t._reconstructActiveFormattingElements(), t._appendElement(e,
|
|
83959
|
+
t._reconstructActiveFormattingElements(), t._appendElement(e, ce.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
|
|
83948
83960
|
}
|
|
83949
83961
|
function fk(t) {
|
|
83950
83962
|
const e = tk(t, _i.TYPE);
|
|
83951
83963
|
return e != null && e.toLowerCase() === Jae;
|
|
83952
83964
|
}
|
|
83953
83965
|
function Voe(t, e) {
|
|
83954
|
-
t._reconstructActiveFormattingElements(), t._appendElement(e,
|
|
83966
|
+
t._reconstructActiveFormattingElements(), t._appendElement(e, ce.HTML), fk(e) || (t.framesetOk = !1), e.ackSelfClosing = !0;
|
|
83955
83967
|
}
|
|
83956
83968
|
function Roe(t, e) {
|
|
83957
|
-
t._appendElement(e,
|
|
83969
|
+
t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
|
|
83958
83970
|
}
|
|
83959
83971
|
function Ioe(t, e) {
|
|
83960
|
-
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._appendElement(e,
|
|
83972
|
+
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._appendElement(e, ce.HTML), t.framesetOk = !1, e.ackSelfClosing = !0;
|
|
83961
83973
|
}
|
|
83962
83974
|
function Noe(t, e) {
|
|
83963
|
-
e.tagName =
|
|
83975
|
+
e.tagName = te.IMG, e.tagID = H.IMG, Tk(t, e);
|
|
83964
83976
|
}
|
|
83965
83977
|
function Boe(t, e) {
|
|
83966
|
-
t._insertElement(e,
|
|
83978
|
+
t._insertElement(e, ce.HTML), t.skipNextNewLine = !0, t.tokenizer.state = Dt.RCDATA, t.originalInsertionMode = t.insertionMode, t.framesetOk = !1, t.insertionMode = U.TEXT;
|
|
83967
83979
|
}
|
|
83968
83980
|
function $oe(t, e) {
|
|
83969
83981
|
t.openElements.hasInButtonScope(H.P) && t._closePElement(), t._reconstructActiveFormattingElements(), t.framesetOk = !1, t._switchToTextParsing(e, Dt.RAWTEXT);
|
|
@@ -83975,25 +83987,25 @@ function vS(t, e) {
|
|
|
83975
83987
|
t._switchToTextParsing(e, Dt.RAWTEXT);
|
|
83976
83988
|
}
|
|
83977
83989
|
function Foe(t, e) {
|
|
83978
|
-
t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83990
|
+
t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML), t.framesetOk = !1, t.insertionMode = t.insertionMode === U.IN_TABLE || t.insertionMode === U.IN_CAPTION || t.insertionMode === U.IN_TABLE_BODY || t.insertionMode === U.IN_ROW || t.insertionMode === U.IN_CELL ? U.IN_SELECT_IN_TABLE : U.IN_SELECT;
|
|
83979
83991
|
}
|
|
83980
83992
|
function qoe(t, e) {
|
|
83981
|
-
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
83993
|
+
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML);
|
|
83982
83994
|
}
|
|
83983
83995
|
function Zoe(t, e) {
|
|
83984
|
-
t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTags(), t._insertElement(e,
|
|
83996
|
+
t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTags(), t._insertElement(e, ce.HTML);
|
|
83985
83997
|
}
|
|
83986
83998
|
function zoe(t, e) {
|
|
83987
|
-
t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTagsWithExclusion(H.RTC), t._insertElement(e,
|
|
83999
|
+
t.openElements.hasInScope(H.RUBY) && t.openElements.generateImpliedEndTagsWithExclusion(H.RTC), t._insertElement(e, ce.HTML);
|
|
83988
84000
|
}
|
|
83989
84001
|
function Xoe(t, e) {
|
|
83990
|
-
t._reconstructActiveFormattingElements(), sk(e), Ff(e), e.selfClosing ? t._appendElement(e,
|
|
84002
|
+
t._reconstructActiveFormattingElements(), sk(e), Ff(e), e.selfClosing ? t._appendElement(e, ce.MATHML) : t._insertElement(e, ce.MATHML), e.ackSelfClosing = !0;
|
|
83991
84003
|
}
|
|
83992
84004
|
function Uoe(t, e) {
|
|
83993
|
-
t._reconstructActiveFormattingElements(), lk(e), Ff(e), e.selfClosing ? t._appendElement(e,
|
|
84005
|
+
t._reconstructActiveFormattingElements(), lk(e), Ff(e), e.selfClosing ? t._appendElement(e, ce.SVG) : t._insertElement(e, ce.SVG), e.ackSelfClosing = !0;
|
|
83994
84006
|
}
|
|
83995
84007
|
function xS(t, e) {
|
|
83996
|
-
t._reconstructActiveFormattingElements(), t._insertElement(e,
|
|
84008
|
+
t._reconstructActiveFormattingElements(), t._insertElement(e, ce.HTML);
|
|
83997
84009
|
}
|
|
83998
84010
|
function x1(t, e) {
|
|
83999
84011
|
switch (e.tagID) {
|
|
@@ -84223,7 +84235,7 @@ function Koe(t) {
|
|
|
84223
84235
|
e || (t.formElement = null), (r || e) && t.openElements.hasInScope(H.FORM) && (t.openElements.generateImpliedEndTags(), e ? t.openElements.popUntilTagNamePopped(H.FORM) : r && t.openElements.remove(r));
|
|
84224
84236
|
}
|
|
84225
84237
|
function Joe(t) {
|
|
84226
|
-
t.openElements.hasInButtonScope(H.P) || t._insertFakeElement(
|
|
84238
|
+
t.openElements.hasInButtonScope(H.P) || t._insertFakeElement(te.P, H.P), t._closePElement();
|
|
84227
84239
|
}
|
|
84228
84240
|
function ese(t) {
|
|
84229
84241
|
t.openElements.hasInListItemScope(H.LI) && (t.openElements.generateImpliedEndTagsWithExclusion(H.LI), t.openElements.popUntilTagNamePopped(H.LI));
|
|
@@ -84240,7 +84252,7 @@ function nse(t, e) {
|
|
|
84240
84252
|
t.openElements.hasInScope(r) && (t.openElements.generateImpliedEndTags(), t.openElements.popUntilTagNamePopped(r), t.activeFormattingElements.clearToLastMarker());
|
|
84241
84253
|
}
|
|
84242
84254
|
function ise(t) {
|
|
84243
|
-
t._reconstructActiveFormattingElements(), t._insertFakeElement(
|
|
84255
|
+
t._reconstructActiveFormattingElements(), t._insertFakeElement(te.BR, H.BR), t.openElements.pop(), t.framesetOk = !1;
|
|
84244
84256
|
}
|
|
84245
84257
|
function hk(t, e) {
|
|
84246
84258
|
const r = e.tagName, n = e.tagID;
|
|
@@ -84381,28 +84393,28 @@ function x9(t, e) {
|
|
|
84381
84393
|
ps(t, e);
|
|
84382
84394
|
}
|
|
84383
84395
|
function sse(t, e) {
|
|
84384
|
-
t.openElements.clearBackToTableContext(), t.activeFormattingElements.insertMarker(), t._insertElement(e,
|
|
84396
|
+
t.openElements.clearBackToTableContext(), t.activeFormattingElements.insertMarker(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_CAPTION;
|
|
84385
84397
|
}
|
|
84386
84398
|
function lse(t, e) {
|
|
84387
|
-
t.openElements.clearBackToTableContext(), t._insertElement(e,
|
|
84399
|
+
t.openElements.clearBackToTableContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_COLUMN_GROUP;
|
|
84388
84400
|
}
|
|
84389
84401
|
function use(t, e) {
|
|
84390
|
-
t.openElements.clearBackToTableContext(), t._insertFakeElement(
|
|
84402
|
+
t.openElements.clearBackToTableContext(), t._insertFakeElement(te.COLGROUP, H.COLGROUP), t.insertionMode = U.IN_COLUMN_GROUP, zf(t, e);
|
|
84391
84403
|
}
|
|
84392
84404
|
function cse(t, e) {
|
|
84393
|
-
t.openElements.clearBackToTableContext(), t._insertElement(e,
|
|
84405
|
+
t.openElements.clearBackToTableContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_TABLE_BODY;
|
|
84394
84406
|
}
|
|
84395
84407
|
function Qse(t, e) {
|
|
84396
|
-
t.openElements.clearBackToTableContext(), t._insertFakeElement(
|
|
84408
|
+
t.openElements.clearBackToTableContext(), t._insertFakeElement(te.TBODY, H.TBODY), t.insertionMode = U.IN_TABLE_BODY, H8(t, e);
|
|
84397
84409
|
}
|
|
84398
84410
|
function Tse(t, e) {
|
|
84399
84411
|
t.openElements.hasInTableScope(H.TABLE) && (t.openElements.popUntilTagNamePopped(H.TABLE), t._resetInsertionMode(), t._processStartTag(e));
|
|
84400
84412
|
}
|
|
84401
84413
|
function fse(t, e) {
|
|
84402
|
-
fk(e) ? t._appendElement(e,
|
|
84414
|
+
fk(e) ? t._appendElement(e, ce.HTML) : ps(t, e), e.ackSelfClosing = !0;
|
|
84403
84415
|
}
|
|
84404
84416
|
function hse(t, e) {
|
|
84405
|
-
!t.formElement && t.openElements.tmplCount === 0 && (t._insertElement(e,
|
|
84417
|
+
!t.formElement && t.openElements.tmplCount === 0 && (t._insertElement(e, ce.HTML), t.formElement = t.openElements.current, t.openElements.pop());
|
|
84406
84418
|
}
|
|
84407
84419
|
function U6(t, e) {
|
|
84408
84420
|
switch (e.tagID) {
|
|
@@ -84533,7 +84545,7 @@ function zf(t, e) {
|
|
|
84533
84545
|
break;
|
|
84534
84546
|
}
|
|
84535
84547
|
case H.COL: {
|
|
84536
|
-
t._appendElement(e,
|
|
84548
|
+
t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
|
|
84537
84549
|
break;
|
|
84538
84550
|
}
|
|
84539
84551
|
case H.TEMPLATE: {
|
|
@@ -84566,12 +84578,12 @@ function Dl(t, e) {
|
|
|
84566
84578
|
function H8(t, e) {
|
|
84567
84579
|
switch (e.tagID) {
|
|
84568
84580
|
case H.TR: {
|
|
84569
|
-
t.openElements.clearBackToTableBodyContext(), t._insertElement(e,
|
|
84581
|
+
t.openElements.clearBackToTableBodyContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_ROW;
|
|
84570
84582
|
break;
|
|
84571
84583
|
}
|
|
84572
84584
|
case H.TH:
|
|
84573
84585
|
case H.TD: {
|
|
84574
|
-
t.openElements.clearBackToTableBodyContext(), t._insertFakeElement(
|
|
84586
|
+
t.openElements.clearBackToTableBodyContext(), t._insertFakeElement(te.TR, H.TR), t.insertionMode = U.IN_ROW, _8(t, e);
|
|
84575
84587
|
break;
|
|
84576
84588
|
}
|
|
84577
84589
|
case H.CAPTION:
|
|
@@ -84617,7 +84629,7 @@ function _8(t, e) {
|
|
|
84617
84629
|
switch (e.tagID) {
|
|
84618
84630
|
case H.TH:
|
|
84619
84631
|
case H.TD: {
|
|
84620
|
-
t.openElements.clearBackToTableRowContext(), t._insertElement(e,
|
|
84632
|
+
t.openElements.clearBackToTableRowContext(), t._insertElement(e, ce.HTML), t.insertionMode = U.IN_CELL, t.activeFormattingElements.insertMarker();
|
|
84621
84633
|
break;
|
|
84622
84634
|
}
|
|
84623
84635
|
case H.CAPTION:
|
|
@@ -84699,15 +84711,15 @@ function yk(t, e) {
|
|
|
84699
84711
|
break;
|
|
84700
84712
|
}
|
|
84701
84713
|
case H.OPTION: {
|
|
84702
|
-
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._insertElement(e,
|
|
84714
|
+
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t._insertElement(e, ce.HTML);
|
|
84703
84715
|
break;
|
|
84704
84716
|
}
|
|
84705
84717
|
case H.OPTGROUP: {
|
|
84706
|
-
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._insertElement(e,
|
|
84718
|
+
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._insertElement(e, ce.HTML);
|
|
84707
84719
|
break;
|
|
84708
84720
|
}
|
|
84709
84721
|
case H.HR: {
|
|
84710
|
-
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._appendElement(e,
|
|
84722
|
+
t.openElements.currentTagId === H.OPTION && t.openElements.pop(), t.openElements.currentTagId === H.OPTGROUP && t.openElements.pop(), t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
|
|
84711
84723
|
break;
|
|
84712
84724
|
}
|
|
84713
84725
|
case H.INPUT:
|
|
@@ -84824,11 +84836,11 @@ function Sse(t, e) {
|
|
|
84824
84836
|
break;
|
|
84825
84837
|
}
|
|
84826
84838
|
case H.FRAMESET: {
|
|
84827
|
-
t._insertElement(e,
|
|
84839
|
+
t._insertElement(e, ce.HTML);
|
|
84828
84840
|
break;
|
|
84829
84841
|
}
|
|
84830
84842
|
case H.FRAME: {
|
|
84831
|
-
t._appendElement(e,
|
|
84843
|
+
t._appendElement(e, ce.HTML), e.ackSelfClosing = !0;
|
|
84832
84844
|
break;
|
|
84833
84845
|
}
|
|
84834
84846
|
case H.NOFRAMES: {
|
|
@@ -84880,7 +84892,7 @@ function Mse(t, e) {
|
|
|
84880
84892
|
t._insertCharacters(e), t.framesetOk = !1;
|
|
84881
84893
|
}
|
|
84882
84894
|
function bk(t) {
|
|
84883
|
-
for (; t.treeAdapter.getNamespaceURI(t.openElements.current) !==
|
|
84895
|
+
for (; t.treeAdapter.getNamespaceURI(t.openElements.current) !== ce.HTML && t.openElements.currentTagId !== void 0 && !t._isIntegrationPoint(t.openElements.currentTagId, t.openElements.current); )
|
|
84884
84896
|
t.openElements.pop();
|
|
84885
84897
|
}
|
|
84886
84898
|
function Pse(t, e) {
|
|
@@ -84888,7 +84900,7 @@ function Pse(t, e) {
|
|
|
84888
84900
|
bk(t), t._startTagOutsideForeignContent(e);
|
|
84889
84901
|
else {
|
|
84890
84902
|
const r = t._getAdjustedCurrentElement(), n = t.treeAdapter.getNamespaceURI(r);
|
|
84891
|
-
n ===
|
|
84903
|
+
n === ce.MATHML ? sk(e) : n === ce.SVG && (Wae(e), lk(e)), Ff(e), e.selfClosing ? t._appendElement(e, n) : t._insertElement(e, n), e.ackSelfClosing = !0;
|
|
84892
84904
|
}
|
|
84893
84905
|
}
|
|
84894
84906
|
function kse(t, e) {
|
|
@@ -84898,7 +84910,7 @@ function kse(t, e) {
|
|
|
84898
84910
|
}
|
|
84899
84911
|
for (let r = t.openElements.stackTop; r > 0; r--) {
|
|
84900
84912
|
const n = t.openElements.items[r];
|
|
84901
|
-
if (t.treeAdapter.getNamespaceURI(n) ===
|
|
84913
|
+
if (t.treeAdapter.getNamespaceURI(n) === ce.HTML) {
|
|
84902
84914
|
t._endTagOutsideForeignContent(e);
|
|
84903
84915
|
break;
|
|
84904
84916
|
}
|
|
@@ -84909,7 +84921,7 @@ function kse(t, e) {
|
|
|
84909
84921
|
}
|
|
84910
84922
|
}
|
|
84911
84923
|
}
|
|
84912
|
-
|
|
84924
|
+
te.AREA, te.BASE, te.BASEFONT, te.BGSOUND, te.BR, te.COL, te.EMBED, te.FRAME, te.HR, te.IMG, te.INPUT, te.KEYGEN, te.LINK, te.META, te.PARAM, te.SOURCE, te.TRACK, te.WBR;
|
|
84913
84925
|
const Dse = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, Vse = /* @__PURE__ */ new Set([
|
|
84914
84926
|
"mdxFlowExpression",
|
|
84915
84927
|
"mdxJsxFlowElement",
|
|
@@ -87711,7 +87723,7 @@ function x8e({ name: t, data: e }) {
|
|
|
87711
87723
|
}) }) : /* @__PURE__ */ q(rD, { children: r("renderer.arrayTypeRequired") });
|
|
87712
87724
|
}
|
|
87713
87725
|
function L8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
87714
|
-
const i =
|
|
87726
|
+
const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5(), [Q] = n5(r ?? "");
|
|
87715
87727
|
rt(() => {
|
|
87716
87728
|
l(r);
|
|
87717
87729
|
}, [r]);
|
|
@@ -87781,7 +87793,7 @@ function C8e({ name: t, data: e }) {
|
|
|
87781
87793
|
] }, o)) }) : /* @__PURE__ */ q(rD, { children: n("renderer.arrayTypeRequired") });
|
|
87782
87794
|
}
|
|
87783
87795
|
function A8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
87784
|
-
const i =
|
|
87796
|
+
const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { preview: c }] = i5();
|
|
87785
87797
|
rt(() => {
|
|
87786
87798
|
l(r);
|
|
87787
87799
|
}, [r]);
|
|
@@ -87812,7 +87824,7 @@ const M8e = be.div`
|
|
|
87812
87824
|
align-items: center;
|
|
87813
87825
|
`;
|
|
87814
87826
|
function P8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
87815
|
-
const a =
|
|
87827
|
+
const a = $t(null), { headers: o, data: s } = Ce(() => _$(r ?? ""), [r]);
|
|
87816
87828
|
return /* @__PURE__ */ q(
|
|
87817
87829
|
W2,
|
|
87818
87830
|
{
|
|
@@ -87851,7 +87863,7 @@ const k8e = be(f7)`
|
|
|
87851
87863
|
flex: 1;
|
|
87852
87864
|
`;
|
|
87853
87865
|
function V8e(t) {
|
|
87854
|
-
const [e, r] = Ke(""), [n] = f7.useForm(), [i, a] = Ke(!1), o =
|
|
87866
|
+
const [e, r] = Ke(""), [n] = f7.useForm(), [i, a] = Ke(!1), o = $t(null), { t: s } = m1();
|
|
87855
87867
|
rt(() => {
|
|
87856
87868
|
n.setFieldsValue({
|
|
87857
87869
|
baseUrl: ""
|
|
@@ -87913,7 +87925,7 @@ function N8e(t) {
|
|
|
87913
87925
|
}
|
|
87914
87926
|
}
|
|
87915
87927
|
function B8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
87916
|
-
const i =
|
|
87928
|
+
const i = $t(null), [a, { wrap: o }] = h5(), [s, l] = Ke(r), [u, { base: c }, , Q] = V8e(), { value: T } = p2e(), [f, { preview: h }] = i5(), [p] = n5(r ?? ""), g = Ce(() => T && N8e(T.url) ? new URL(T.url).origin : "", [T]);
|
|
87917
87929
|
rt(() => {
|
|
87918
87930
|
Q.setFieldsValue({
|
|
87919
87931
|
baseUrl: g
|
|
@@ -87929,7 +87941,7 @@ function B8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
|
87929
87941
|
wrap: o ?? !1,
|
|
87930
87942
|
value: s,
|
|
87931
87943
|
onChange: d
|
|
87932
|
-
}), [o, s, d]), y = Ce(() => c ? s
|
|
87944
|
+
}), [o, s, d]), y = Ce(() => c ? s?.replace(/(href|src)=(["'])(\/(?!\/).*?)\2/gi, (x, O, v, L) => `${O}=${v}${c.replace(/\/+$/, "")}${L}${v}`) : s, [c, s]);
|
|
87933
87945
|
return /* @__PURE__ */ q(m4.Provider, { value: m, children: /* @__PURE__ */ q(
|
|
87934
87946
|
W2,
|
|
87935
87947
|
{
|
|
@@ -87968,7 +87980,7 @@ const $8e = be.div`
|
|
|
87968
87980
|
object-fit: contain;
|
|
87969
87981
|
`;
|
|
87970
87982
|
function F8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
87971
|
-
const a =
|
|
87983
|
+
const a = $t(null);
|
|
87972
87984
|
return /* @__PURE__ */ q(
|
|
87973
87985
|
W2,
|
|
87974
87986
|
{
|
|
@@ -88006,11 +88018,11 @@ const q8e = be.div`
|
|
|
88006
88018
|
overflow: auto;
|
|
88007
88019
|
`;
|
|
88008
88020
|
function Y8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
88009
|
-
const [a, o] = Ke(r), s = Tf(), { id: l } = Bi(), [u] = n5(a), { t: c } = m1(), Q =
|
|
88021
|
+
const [a, o] = Ke(r), s = Tf(), { id: l } = Bi(), [u] = n5(a ?? ""), { t: c } = m1(), Q = $t(null), T = $t(null), [f, h] = Ke(""), p = $t({
|
|
88010
88022
|
__root__: new Il("")
|
|
88011
88023
|
}), g = aD(T.current), d = Ce(() => {
|
|
88012
88024
|
try {
|
|
88013
|
-
return h(""), JSON.parse(
|
|
88025
|
+
return h(""), JSON.parse(r ?? "");
|
|
88014
88026
|
} catch (A) {
|
|
88015
88027
|
return a && a.length > 0 && h(A.toString()), a;
|
|
88016
88028
|
}
|
|
@@ -88096,7 +88108,7 @@ function Y8e({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88096
88108
|
{
|
|
88097
88109
|
renderAs: A.renderAs,
|
|
88098
88110
|
name: A.field,
|
|
88099
|
-
value: A.field === "__whole__" ?
|
|
88111
|
+
value: A.field === "__whole__" ? d : g7(d, A.field),
|
|
88100
88112
|
extraTail: A.field !== "__whole__" && /* @__PURE__ */ q(r4, { children: /* @__PURE__ */ q(C1, { title: c("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: () => C?.(A.id) }) }) })
|
|
88101
88113
|
}
|
|
88102
88114
|
) }, A.id))
|
|
@@ -88115,7 +88127,7 @@ const K8e = be.div`
|
|
|
88115
88127
|
align-items: center;
|
|
88116
88128
|
`;
|
|
88117
88129
|
function J8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
88118
|
-
const i =
|
|
88130
|
+
const i = $t(null), [a, { preview: o }] = i5(), [s] = n5(r ?? ""), [l, u] = Ke(r);
|
|
88119
88131
|
rt(() => {
|
|
88120
88132
|
u(r);
|
|
88121
88133
|
}, [r]);
|
|
@@ -88138,7 +88150,7 @@ function J8e({ className: t, name: e, value: r, extraTail: n }) {
|
|
|
88138
88150
|
s,
|
|
88139
88151
|
n
|
|
88140
88152
|
] }),
|
|
88141
|
-
children: o ? /* @__PURE__ */ q(tD, { value: l }) : /* @__PURE__ */ q(ff, {})
|
|
88153
|
+
children: o ? /* @__PURE__ */ q(tD, { value: l ?? "" }) : /* @__PURE__ */ q(ff, {})
|
|
88142
88154
|
}
|
|
88143
88155
|
) });
|
|
88144
88156
|
}
|
|
@@ -88148,7 +88160,7 @@ const eue = be.div`
|
|
|
88148
88160
|
align-items: center;
|
|
88149
88161
|
`;
|
|
88150
88162
|
function tue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
88151
|
-
const a =
|
|
88163
|
+
const a = $t(null), [o, { wrap: s }] = h5(), [l] = n5(r ?? ""), [u, c] = Ke(r);
|
|
88152
88164
|
rt(() => {
|
|
88153
88165
|
c(r);
|
|
88154
88166
|
}, [r]);
|
|
@@ -88359,9 +88371,9 @@ const Due = be.div`
|
|
|
88359
88371
|
border-radius: 0.25rem;
|
|
88360
88372
|
`;
|
|
88361
88373
|
function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
88362
|
-
const { id: a, path: o, onKeyClick: s } = Bi(), [l, u] = Ke(r), [c, { wrap: Q }] = h5(), T =
|
|
88374
|
+
const { id: a, path: o, onKeyClick: s } = Bi(), [l, u] = Ke(r), [c, { wrap: Q }] = h5(), T = $t(null), [f, h] = Ke(""), p = $t(null), [g, d] = Ke([]), { t: m } = m1(), y = Ce(() => {
|
|
88363
88375
|
try {
|
|
88364
|
-
return h(""), JSON.parse(l);
|
|
88376
|
+
return h(""), JSON.parse(l ?? "");
|
|
88365
88377
|
} catch (V) {
|
|
88366
88378
|
return l && l.length > 0 && h(V.toString()), l;
|
|
88367
88379
|
}
|
|
@@ -88375,21 +88387,21 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88375
88387
|
}));
|
|
88376
88388
|
d((D) => D.length === 0 ? [{ id: "whole", field: "__whole__", renderAs: "json" }, ..._] : D);
|
|
88377
88389
|
}
|
|
88378
|
-
}, [b, v, L, O, y]), [E, { preview: C }, A] = i5(!1, S), w =
|
|
88390
|
+
}, [b, v, L, O, y]), [E, { preview: C }, A] = i5(!1, S), w = $t({
|
|
88379
88391
|
__root__: new Il("")
|
|
88380
88392
|
});
|
|
88381
88393
|
rt(() => {
|
|
88382
88394
|
u(r);
|
|
88383
88395
|
}, [r]), rt(() => {
|
|
88384
88396
|
const V = (_) => {
|
|
88385
|
-
const D = _.detail.field, Z = _.detail.blockId, k = _.detail.parentField ?? "__whole__",
|
|
88386
|
-
if (w.current[
|
|
88397
|
+
const D = _.detail.field, Z = _.detail.blockId, k = _.detail.parentField ?? "__whole__", ee = `${Z}-${D}`, ae = `${Z}-${k}`, ie = w.current[ae], W = new Il(D, ie), X = oD(D, _.detail.value);
|
|
88398
|
+
if (w.current[ee] = W, a === Z) {
|
|
88387
88399
|
try {
|
|
88388
|
-
g.length === 0 ? d([{ id: "whole", field: "__whole__", renderAs: "json" }, { id: Ra(), field:
|
|
88389
|
-
} catch (
|
|
88390
|
-
console.error("error",
|
|
88400
|
+
g.length === 0 ? d([{ id: "whole", field: "__whole__", renderAs: "json" }, { id: Ra(), field: W.fullPath, renderAs: X }]) : g.find((J) => J.field === D) || d((J) => [...J, { id: Ra(), field: W.fullPath, renderAs: X }]);
|
|
88401
|
+
} catch (J) {
|
|
88402
|
+
console.error("error", J);
|
|
88391
88403
|
}
|
|
88392
|
-
A(!0), s?.(
|
|
88404
|
+
A(!0), s?.(W.fullPath, g7(y, W.fullPath) ?? "");
|
|
88393
88405
|
}
|
|
88394
88406
|
};
|
|
88395
88407
|
return document.addEventListener(Ro, V), () => {
|
|
@@ -88449,7 +88461,7 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
|
|
|
88449
88461
|
{
|
|
88450
88462
|
renderAs: V.renderAs,
|
|
88451
88463
|
name: V.field,
|
|
88452
|
-
value: V.field === "__whole__" ? y : g7(y, V.field)
|
|
88464
|
+
value: V.field === "__whole__" ? y : g7(y, V.field),
|
|
88453
88465
|
extraTail: V.field !== "__whole__" && /* @__PURE__ */ q(r4, { children: /* @__PURE__ */ q(C1, { title: m("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: () => R?.(V.id) }) }) })
|
|
88454
88466
|
}
|
|
88455
88467
|
) }, V.id))
|
|
@@ -88464,9 +88476,9 @@ const Fue = "_textLikePreviewer_7q5wf_1", que = {
|
|
|
88464
88476
|
textLikePreviewer: Fue
|
|
88465
88477
|
};
|
|
88466
88478
|
function Zue({ name: t, type: e, className: r, extraTail: n, titleExtra: i }) {
|
|
88467
|
-
const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Bi(), [c, Q] = Ke(
|
|
88479
|
+
const { data: a, onNext: o, onPrev: s, prevable: l, nextable: u } = Bi(), [c, Q] = Ke(void 0), { t: T } = m1();
|
|
88468
88480
|
rt(() => {
|
|
88469
|
-
Q(a?.content
|
|
88481
|
+
Q(a?.content);
|
|
88470
88482
|
}, [a]);
|
|
88471
88483
|
const f = ["jsonl", "json", "csv", "txt"].includes(e) ? /* @__PURE__ */ Ye(tE.Compact, { children: [
|
|
88472
88484
|
/* @__PURE__ */ q(C1, { title: T("textPreviewer.prevSection"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", disabled: !l, onClick: s, icon: /* @__PURE__ */ q(qQ, {}) }) }),
|
|
@@ -88701,7 +88713,7 @@ const l9e = be(rE.Item)`
|
|
|
88701
88713
|
}
|
|
88702
88714
|
`;
|
|
88703
88715
|
function h9e({ path: t, onPathChange: e, name: r, extraTail: n, titleExtra: i, value: a, highlightCurrent: o, pathWithoutQuery: s, showBodyOnly: l = !1 }) {
|
|
88704
|
-
const u =
|
|
88716
|
+
const u = $t(null), { id: c, onDownload: Q, renderBucketItem: T } = Bi(), { t: f } = m1(), h = Et((d) => () => {
|
|
88705
88717
|
const m = o ? d.fullPath : E$(d, t);
|
|
88706
88718
|
e?.(m), document.dispatchEvent(new CustomEvent("close-bucket-list"));
|
|
88707
88719
|
}, [t, e, o]), p = Et((d) => () => {
|
|
@@ -88716,7 +88728,7 @@ function h9e({ path: t, onPathChange: e, name: r, extraTail: n, titleExtra: i, v
|
|
|
88716
88728
|
backgroundColor: "#fff"
|
|
88717
88729
|
},
|
|
88718
88730
|
renderItem: (d) => {
|
|
88719
|
-
if (typeof T == "function"
|
|
88731
|
+
if (typeof T == "function")
|
|
88720
88732
|
return T(d);
|
|
88721
88733
|
let m = null;
|
|
88722
88734
|
return d.type === "bucket" ? m = /* @__PURE__ */ q(P9, { type: "bucket", path: d.fullPath }) : d.type === "directory" ? m = /* @__PURE__ */ q(P9, { type: "folder" }) : m = /* @__PURE__ */ q(P9, { path: d.fullPath }), /* @__PURE__ */ Ye(
|
|
@@ -88805,7 +88817,7 @@ const d9e = be(to)`
|
|
|
88805
88817
|
align-items: center;
|
|
88806
88818
|
`;
|
|
88807
88819
|
function y9e({ type: t, className: e, name: r, value: n, extraTail: i, titleExtra: a }) {
|
|
88808
|
-
const o =
|
|
88820
|
+
const o = $t(null), { onDownload: s } = Bi(), { t: l } = m1(), [u, c] = Ke(!1), Q = Et((f) => {
|
|
88809
88821
|
const h = f.target, p = h.naturalWidth, g = h.naturalHeight;
|
|
88810
88822
|
if (o.current) {
|
|
88811
88823
|
const d = f.target.closest(".ant-card-body");
|
|
@@ -88825,7 +88837,7 @@ function y9e({ type: t, className: e, name: r, value: n, extraTail: i, titleExtr
|
|
|
88825
88837
|
if (t === "epub")
|
|
88826
88838
|
return /* @__PURE__ */ q(k9, { src: n, title: "epub" });
|
|
88827
88839
|
if (t === "zip")
|
|
88828
|
-
return /* @__PURE__ */ q(g9e, { icon: /* @__PURE__ */ q($l, { type: "text" }), onClick: () => s?.(n), children: l("renderer.downloadZipFile") });
|
|
88840
|
+
return /* @__PURE__ */ q(g9e, { icon: /* @__PURE__ */ q($l, { type: "text" }), onClick: () => s?.(n ?? ""), children: l("renderer.downloadZipFile") });
|
|
88829
88841
|
}, [t, n, s, l, Q]);
|
|
88830
88842
|
return /* @__PURE__ */ q(
|
|
88831
88843
|
W2,
|
|
@@ -88923,51 +88935,53 @@ function pce({
|
|
|
88923
88935
|
onLinkClick: x,
|
|
88924
88936
|
onKeyClick: O
|
|
88925
88937
|
}) {
|
|
88926
|
-
const v = P$(e), { t: L } = m1(), b = !/\.\w+$/.test(v), [
|
|
88938
|
+
const v = P$(e), { t: L } = m1(), b = $t(null), S = !/\.\w+$/.test(v), [E, C] = Ke(), A = e?.split("?")[0] ?? "", w = Ce(() => Array.isArray(n) ? v9e(n, A) : [], [n, A]);
|
|
88927
88939
|
rt(() => {
|
|
88928
|
-
const
|
|
88929
|
-
|
|
88930
|
-
}, [n,
|
|
88931
|
-
|
|
88932
|
-
|
|
88940
|
+
const K = n?.mimetype;
|
|
88941
|
+
C(K && S ? _9e(K) : void 0);
|
|
88942
|
+
}, [n, S]), rt(() => {
|
|
88943
|
+
if (!b.current)
|
|
88944
|
+
return;
|
|
88945
|
+
const K = (ue) => {
|
|
88946
|
+
x?.(ue.detail.path, t);
|
|
88933
88947
|
};
|
|
88934
|
-
return
|
|
88935
|
-
|
|
88948
|
+
return b.current.addEventListener("s3-path-click", K), () => {
|
|
88949
|
+
b.current?.removeEventListener("s3-path-click", K);
|
|
88936
88950
|
};
|
|
88937
|
-
}, [x]);
|
|
88938
|
-
const [
|
|
88951
|
+
}, [x, t]);
|
|
88952
|
+
const [M, P] = Ke([]), N = M.length > 0, $ = n, R = $?.path ?? "", V = $?.size ?? 0, _ = sc(R.split("?")[1]), D = _ ? _.byte + _.size : 0, Z = k$(R), k = D < (V || 0), ee = Ce(() => E || S$(e), [e, E]);
|
|
88939
88953
|
rt(() => {
|
|
88940
|
-
const
|
|
88941
|
-
let
|
|
88942
|
-
Number(
|
|
88943
|
-
}, [
|
|
88944
|
-
const
|
|
88945
|
-
f?.({ pageNo:
|
|
88954
|
+
const K = sc(R);
|
|
88955
|
+
let ue = R;
|
|
88956
|
+
Number(K?.byte) === 0 && (ue = R.split("?")[0]), !(!ee || !R || !["jsonl", "csv", "txt"].includes(ee)) && c?.(ue);
|
|
88957
|
+
}, [ee, R, c]);
|
|
88958
|
+
const ae = Et((K) => {
|
|
88959
|
+
f?.({ pageNo: K });
|
|
88946
88960
|
}, [f]);
|
|
88947
88961
|
rt(() => {
|
|
88948
|
-
|
|
88962
|
+
P([]);
|
|
88949
88963
|
}, [v]);
|
|
88950
|
-
const
|
|
88951
|
-
|
|
88952
|
-
}, [t,
|
|
88953
|
-
const
|
|
88954
|
-
M
|
|
88955
|
-
}, [t,
|
|
88956
|
-
f?.({ path:
|
|
88957
|
-
}, [t, f]),
|
|
88958
|
-
let
|
|
88959
|
-
e.endsWith("/") ?
|
|
88960
|
-
}, [e, t, f]),
|
|
88964
|
+
const ie = !ee || !["image", "video", "audio", "zip", "jsonl", "pdf", "epub", "mobi"].includes(ee), W = Et(async () => {
|
|
88965
|
+
P([...M, _?.byte ?? 0]), f?.({ path: Z });
|
|
88966
|
+
}, [t, Z, M, _?.byte, f]), X = Et(async () => {
|
|
88967
|
+
const K = M[M.length - 1] ?? 0, ue = `${R.split("?")[0]}?bytes=${K},0`;
|
|
88968
|
+
P(M.slice(0, -1)), f?.({ path: ue });
|
|
88969
|
+
}, [t, M, f, R]), J = Et((K) => {
|
|
88970
|
+
f?.({ path: K, pageNo: 1 });
|
|
88971
|
+
}, [t, f]), re = Et(() => {
|
|
88972
|
+
let K = e;
|
|
88973
|
+
e.endsWith("/") ? K = e.replace(/[^\/]+\/$/, "") : K = e.replace(/[^\/]+$/, ""), K === "s3://" && (K = ""), f?.({ path: K, pageNo: 1 });
|
|
88974
|
+
}, [e, t, f]), oe = Ce(() => ({
|
|
88961
88975
|
id: t,
|
|
88962
88976
|
path: e,
|
|
88963
|
-
pathType:
|
|
88964
|
-
data:
|
|
88977
|
+
pathType: ee,
|
|
88978
|
+
data: $,
|
|
88965
88979
|
basename: v,
|
|
88966
|
-
nextable:
|
|
88967
|
-
prevable:
|
|
88968
|
-
onNext:
|
|
88969
|
-
onPrev:
|
|
88970
|
-
goParent:
|
|
88980
|
+
nextable: k && !!Z,
|
|
88981
|
+
prevable: N,
|
|
88982
|
+
onNext: W,
|
|
88983
|
+
onPrev: X,
|
|
88984
|
+
goParent: re,
|
|
88971
88985
|
onChange: f,
|
|
88972
88986
|
onClose: r,
|
|
88973
88987
|
renderBucketItem: d,
|
|
@@ -88979,15 +88993,15 @@ function pce({
|
|
|
88979
88993
|
}), [
|
|
88980
88994
|
t,
|
|
88981
88995
|
e,
|
|
88982
|
-
|
|
88983
|
-
|
|
88996
|
+
ee,
|
|
88997
|
+
$,
|
|
88984
88998
|
v,
|
|
88999
|
+
k,
|
|
88985
89000
|
Z,
|
|
88986
|
-
|
|
88987
|
-
|
|
88988
|
-
|
|
88989
|
-
|
|
88990
|
-
K,
|
|
89001
|
+
N,
|
|
89002
|
+
W,
|
|
89003
|
+
X,
|
|
89004
|
+
re,
|
|
88991
89005
|
r,
|
|
88992
89006
|
n,
|
|
88993
89007
|
f,
|
|
@@ -88996,8 +89010,8 @@ function pce({
|
|
|
88996
89010
|
m,
|
|
88997
89011
|
x,
|
|
88998
89012
|
O
|
|
88999
|
-
]),
|
|
89000
|
-
|
|
89013
|
+
]), I = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
|
|
89014
|
+
ee !== "folder" && !!e && /* @__PURE__ */ q(
|
|
89001
89015
|
KS,
|
|
89002
89016
|
{
|
|
89003
89017
|
title: L("renderer.fileInfo"),
|
|
@@ -89009,17 +89023,17 @@ function pce({
|
|
|
89009
89023
|
{
|
|
89010
89024
|
label: L("renderer.fileSize"),
|
|
89011
89025
|
span: 3,
|
|
89012
|
-
children: /* @__PURE__ */ q("span", { children: z7.format("fileSize",
|
|
89026
|
+
children: /* @__PURE__ */ q("span", { children: z7.format("fileSize", V) })
|
|
89013
89027
|
},
|
|
89014
89028
|
{
|
|
89015
89029
|
label: L("renderer.author"),
|
|
89016
89030
|
span: 3,
|
|
89017
|
-
children: /* @__PURE__ */ q("span", { children:
|
|
89031
|
+
children: /* @__PURE__ */ q("span", { children: $?.created_by })
|
|
89018
89032
|
},
|
|
89019
89033
|
{
|
|
89020
89034
|
label: L("renderer.lastModified"),
|
|
89021
89035
|
span: 3,
|
|
89022
|
-
children:
|
|
89036
|
+
children: $?.last_modified ? z7.format("dateTime", $.last_modified, {
|
|
89023
89037
|
style: "YYYY-MM-DD HH:mm:ss"
|
|
89024
89038
|
}) : ""
|
|
89025
89039
|
}
|
|
@@ -89029,7 +89043,7 @@ function pce({
|
|
|
89029
89043
|
children: /* @__PURE__ */ q(E9e, {})
|
|
89030
89044
|
}
|
|
89031
89045
|
),
|
|
89032
|
-
Q && /* @__PURE__ */ q(C1, { title: L("renderer.returnToParent"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(fE, {}), onClick:
|
|
89046
|
+
Q && /* @__PURE__ */ q(C1, { title: L("renderer.returnToParent"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(fE, {}), onClick: re }) }),
|
|
89033
89047
|
T && /* @__PURE__ */ Ye(tE.Compact, { size: "small", children: [
|
|
89034
89048
|
/* @__PURE__ */ q(C1, { title: L("renderer.prevPage"), children: /* @__PURE__ */ q(
|
|
89035
89049
|
A1,
|
|
@@ -89045,7 +89059,7 @@ function pce({
|
|
|
89045
89059
|
/* @__PURE__ */ q(C1, { title: L("renderer.nextPage"), children: /* @__PURE__ */ q(
|
|
89046
89060
|
A1,
|
|
89047
89061
|
{
|
|
89048
|
-
disabled: o ||
|
|
89062
|
+
disabled: o || w.length < Number(l),
|
|
89049
89063
|
onClick: () => {
|
|
89050
89064
|
f?.({ pageNo: u + 1 });
|
|
89051
89065
|
},
|
|
@@ -89053,35 +89067,35 @@ function pce({
|
|
|
89053
89067
|
}
|
|
89054
89068
|
) })
|
|
89055
89069
|
] })
|
|
89056
|
-
] }), [
|
|
89070
|
+
] }), [ee, e, V, $, t, re, u, o, w.length, l, ae, L, n]), z = Ce(() => /* @__PURE__ */ Ye(r4, { children: [
|
|
89057
89071
|
p && /* @__PURE__ */ q(C1, { title: L("renderer.openInNewTab"), children: /* @__PURE__ */ q(A1, { type: "text", size: "small", icon: /* @__PURE__ */ q(dE, {}), onClick: () => g?.(e) }) }),
|
|
89058
|
-
|
|
89072
|
+
ee !== "folder" && y && /* @__PURE__ */ q(C1, { title: L("renderer.downloadFile"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q($l, {}), onClick: () => s?.(A) }) }),
|
|
89059
89073
|
h && /* @__PURE__ */ Ye(r4, { children: [
|
|
89060
89074
|
/* @__PURE__ */ q(eE, { type: "vertical" }),
|
|
89061
89075
|
/* @__PURE__ */ q(C1, { title: L("renderer.close"), children: /* @__PURE__ */ q(A1, { size: "small", type: "text", icon: /* @__PURE__ */ q(Bl, {}), onClick: r }) })
|
|
89062
89076
|
] })
|
|
89063
|
-
] }), [
|
|
89064
|
-
if (
|
|
89077
|
+
] }), [ee, t, r, u, l, e, A, L, s, y]), G = Ce(() => {
|
|
89078
|
+
if (A.endsWith("/") || !e)
|
|
89065
89079
|
return /* @__PURE__ */ q(
|
|
89066
89080
|
h9e,
|
|
89067
89081
|
{
|
|
89068
89082
|
showBodyOnly: !Q,
|
|
89069
89083
|
path: e,
|
|
89070
89084
|
name: e,
|
|
89071
|
-
value:
|
|
89072
|
-
titleExtra:
|
|
89073
|
-
extraTail:
|
|
89074
|
-
pathWithoutQuery:
|
|
89075
|
-
onPathChange:
|
|
89085
|
+
value: w,
|
|
89086
|
+
titleExtra: I,
|
|
89087
|
+
extraTail: z,
|
|
89088
|
+
pathWithoutQuery: A,
|
|
89089
|
+
onPathChange: J
|
|
89076
89090
|
}
|
|
89077
89091
|
);
|
|
89078
|
-
if (
|
|
89079
|
-
return /* @__PURE__ */ q(Zue, { name: v, type:
|
|
89080
|
-
let
|
|
89081
|
-
return
|
|
89082
|
-
}, [v,
|
|
89083
|
-
return /* @__PURE__ */ q(WE.Provider, { value:
|
|
89084
|
-
|
|
89092
|
+
if (ie || ["jsonl"].includes(ee))
|
|
89093
|
+
return /* @__PURE__ */ q(Zue, { name: v, type: ee || "txt", extraTail: z, titleExtra: I });
|
|
89094
|
+
let K = `${m}${m?.includes("?") ? "&" : "?"}path=${encodeURIComponent(e)}`;
|
|
89095
|
+
return ee === "zip" && (K = e), n && "content" in n && n.content && (K = n.content), /* @__PURE__ */ q(H9e, { name: v, value: K, type: ee, extraTail: z, titleExtra: I });
|
|
89096
|
+
}, [v, z, I, w, t, ie, J, e, A, ee, n]);
|
|
89097
|
+
return /* @__PURE__ */ q(WE.Provider, { value: oe, children: /* @__PURE__ */ Ye(x9e, { "data-block-id": t, style: i, className: a, ref: b, children: [
|
|
89098
|
+
G,
|
|
89085
89099
|
/* @__PURE__ */ q(
|
|
89086
89100
|
L9e,
|
|
89087
89101
|
{
|
|
@@ -89094,13 +89108,16 @@ function pce({
|
|
|
89094
89108
|
}
|
|
89095
89109
|
export {
|
|
89096
89110
|
pce as BucketBlock,
|
|
89111
|
+
m4 as CodeViewerContext,
|
|
89097
89112
|
P9 as FileIcon,
|
|
89098
89113
|
zl as I18nContext,
|
|
89099
89114
|
F9e as I18nProvider,
|
|
89100
89115
|
fI as I18nextProvider,
|
|
89116
|
+
is as JsonViewer,
|
|
89101
89117
|
hce as PAGENATION_CHANGE_EVENT,
|
|
89102
89118
|
dce as PATH_CORRECTION_EVENT,
|
|
89103
89119
|
W2 as RenderCard,
|
|
89120
|
+
ff as TextViewer,
|
|
89104
89121
|
eD as ThemeContext,
|
|
89105
89122
|
Qce as ThemeProvider,
|
|
89106
89123
|
P9e as Trans,
|
|
@@ -89145,6 +89162,7 @@ export {
|
|
|
89145
89162
|
Jk as tokens,
|
|
89146
89163
|
F7 as typography,
|
|
89147
89164
|
fce as unregisterTextRenderer,
|
|
89165
|
+
Tf as useCodeViewerContext,
|
|
89148
89166
|
hI as useSSR,
|
|
89149
89167
|
m8e as useTheme,
|
|
89150
89168
|
m1 as useTranslation,
|