@yext/pages-components 1.0.0 → 1.0.1
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/{debugger-BZHlGtkp.js → debugger-DIg74Hi7.js} +1 -1
- package/dist/{debugger-B7hxI1lw.cjs → debugger-Xi29RTwX.cjs} +1 -1
- package/dist/{index-DaOqO1Xz.js → index-BAeydPvg.js} +299 -299
- package/dist/{index-De2GfwGG.cjs → index-BPyzlGXA.cjs} +1 -1
- package/dist/{index-CPtU5eOw.cjs → index-Cads-eer.cjs} +32 -32
- package/dist/{index-BDDHMUxc.js → index-D008ceFk.js} +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +20 -19
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ var b_ = Object.defineProperty;
|
|
|
2
2
|
var L_ = (t, e, n) => e in t ? b_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Vn = (t, e, n) => L_(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as k_ from "react";
|
|
5
|
-
import dn, { createElement as I_, createContext as pc,
|
|
5
|
+
import dn, { createElement as I_, createContext as pc, lazy as P_, useRef as id, useState as lr, useEffect as tr, Suspense as $_, useContext as hs, Fragment as F_, useMemo as qg } from "react";
|
|
6
6
|
import Zg, { createPortal as B_ } from "react-dom";
|
|
7
|
-
var
|
|
7
|
+
var tf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Jg(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
@@ -18,10 +18,10 @@ var Bu = { exports: {} }, Il = {};
|
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
21
|
+
var nf;
|
|
22
22
|
function H_() {
|
|
23
|
-
if (
|
|
24
|
-
|
|
23
|
+
if (nf) return Il;
|
|
24
|
+
nf = 1;
|
|
25
25
|
var t = dn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
26
26
|
function g(p, C, v) {
|
|
27
27
|
var x, O = {}, R = null, b = null;
|
|
@@ -42,9 +42,9 @@ var Pl = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
45
|
+
var rf;
|
|
46
46
|
function W_() {
|
|
47
|
-
return
|
|
47
|
+
return rf || (rf = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
var t = dn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), p = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), T = Symbol.iterator, w = "@@iterator";
|
|
49
49
|
function P(ye) {
|
|
50
50
|
if (ye === null || typeof ye != "object")
|
|
@@ -1029,7 +1029,7 @@ function K_(t) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
const z_ = {
|
|
1031
1031
|
GOOGLEMYBUSINESS: "GOOGLEMYBUSINESS"
|
|
1032
|
-
},
|
|
1032
|
+
}, of = {
|
|
1033
1033
|
GOOGLE: "google",
|
|
1034
1034
|
APPLE: "apple",
|
|
1035
1035
|
BING: "bing"
|
|
@@ -1043,7 +1043,7 @@ const z_ = {
|
|
|
1043
1043
|
route: !1
|
|
1044
1044
|
}) => {
|
|
1045
1045
|
const c = "Failed to construct query for maps service.";
|
|
1046
|
-
let d = t &&
|
|
1046
|
+
let d = t && sf([
|
|
1047
1047
|
t.line1,
|
|
1048
1048
|
t.line2,
|
|
1049
1049
|
t.city,
|
|
@@ -1052,7 +1052,7 @@ const z_ = {
|
|
|
1052
1052
|
t.countryCode
|
|
1053
1053
|
]);
|
|
1054
1054
|
switch (r.provider) {
|
|
1055
|
-
case
|
|
1055
|
+
case of.APPLE: {
|
|
1056
1056
|
if (!d) {
|
|
1057
1057
|
console.warn(
|
|
1058
1058
|
`${c} Check that you've provided a valid Yext Address.`
|
|
@@ -1061,8 +1061,8 @@ const z_ = {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
return G_(d, r.route);
|
|
1063
1063
|
}
|
|
1064
|
-
case
|
|
1065
|
-
if (d = t &&
|
|
1064
|
+
case of.BING: {
|
|
1065
|
+
if (d = t && sf([
|
|
1066
1066
|
t.line1,
|
|
1067
1067
|
t.city,
|
|
1068
1068
|
t.region,
|
|
@@ -1098,7 +1098,7 @@ const z_ = {
|
|
|
1098
1098
|
}, G_ = (t, e) => e ? `https://maps.apple.com/?daddr=${t}` : `https://maps.apple.com/?address=${t}`, Y_ = (t, e) => e ? `https://bing.com/maps/default.aspx?rtp=adr.${t}` : `https://bing.com/maps/default.aspx?where1=${t}`, j_ = (t, e, n) => {
|
|
1099
1099
|
const r = e ? `&query=${e}` : "";
|
|
1100
1100
|
return n ? `https://maps.google.com/maps/dir/?api=1${r}&destination_place_id=${t}&destination=direct` : r ? `https://maps.google.com/maps/search/?api=1${r}&query_place_id=${t}` : `https://maps.google.com/maps/dir/?api=1&destination_place_id=${t}&destination=direct`;
|
|
1101
|
-
}, V_ = (t, e) => e ? `https://maps.google.com/maps/dir/?api=1&destination=${t}` : `https://maps.google.com/maps/search/?api=1&query=${t}`,
|
|
1101
|
+
}, V_ = (t, e) => e ? `https://maps.google.com/maps/dir/?api=1&destination=${t}` : `https://maps.google.com/maps/search/?api=1&query=${t}`, sf = (t = []) => {
|
|
1102
1102
|
if (!t.length) return "";
|
|
1103
1103
|
const e = t.filter(Boolean).join(", ");
|
|
1104
1104
|
return encodeURI(e);
|
|
@@ -1156,7 +1156,7 @@ var Z_ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
|
|
|
1156
1156
|
return typeof t;
|
|
1157
1157
|
} : function(t) {
|
|
1158
1158
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1159
|
-
}, J_ = typeof window < "u" && typeof window.document < "u", X_ = typeof process < "u" && process.versions != null && process.versions.node != null, Q_ = (typeof self > "u" ? "undefined" : Z_(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", ey = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), ty = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u",
|
|
1159
|
+
}, J_ = typeof window < "u" && typeof window.document < "u", X_ = typeof process < "u" && process.versions != null && process.versions.node != null, Q_ = (typeof self > "u" ? "undefined" : Z_(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", ey = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), ty = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", lf = el.isBrowser = J_;
|
|
1160
1160
|
el.isWebWorker = Q_;
|
|
1161
1161
|
var ny = el.isNode = X_;
|
|
1162
1162
|
el.isJsDom = ey;
|
|
@@ -1172,7 +1172,7 @@ class iy {
|
|
|
1172
1172
|
Vn(this, "isServerSide");
|
|
1173
1173
|
Vn(this, "version");
|
|
1174
1174
|
var e;
|
|
1175
|
-
ry ? (this.name = "deno", this.version = "",
|
|
1175
|
+
ry ? (this.name = "deno", this.version = "", lf && (this.version = ((e = window.Deno) == null ? void 0 : e.version.deno) || ""), this.isServerSide = !0) : ny ? (this.name = "node", this.version = process.versions.node, this.isServerSide = !0) : lf ? (this.name = "browser", this.version = navigator.userAgent, this.isServerSide = !1) : (this.name = "unknown", this.version = "", this.isServerSide = !1);
|
|
1176
1176
|
}
|
|
1177
1177
|
getNodeMajorVersion() {
|
|
1178
1178
|
if (this.name !== "node")
|
|
@@ -1182,10 +1182,10 @@ class iy {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
const Zl = () => new iy(), oy = (...t) => typeof window < "u" && window.IS_PRODUCTION || !1;
|
|
1184
1184
|
function Gc(t) {
|
|
1185
|
-
if (!
|
|
1185
|
+
if (!od(t))
|
|
1186
1186
|
throw new Error("Parameter was not an error");
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function od(t) {
|
|
1189
1189
|
return sy(t) === "[object Error]" || t instanceof Error;
|
|
1190
1190
|
}
|
|
1191
1191
|
function sy(t) {
|
|
@@ -1195,7 +1195,7 @@ function ly(t) {
|
|
|
1195
1195
|
let e, n = "";
|
|
1196
1196
|
if (t.length === 0)
|
|
1197
1197
|
e = {};
|
|
1198
|
-
else if (
|
|
1198
|
+
else if (od(t[0]))
|
|
1199
1199
|
e = {
|
|
1200
1200
|
cause: t[0]
|
|
1201
1201
|
}, n = t.slice(1).join(" ") || "";
|
|
@@ -1220,7 +1220,7 @@ class pi extends Error {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
static cause(e) {
|
|
1223
|
-
return Gc(e), e._cause &&
|
|
1223
|
+
return Gc(e), e._cause && od(e._cause) ? e._cause : null;
|
|
1224
1224
|
}
|
|
1225
1225
|
static fullStack(e) {
|
|
1226
1226
|
Gc(e);
|
|
@@ -1241,7 +1241,7 @@ caused by: ${pi.fullStack(n)}` : e.stack;
|
|
|
1241
1241
|
return this.message && (e = `${e}: ${this.message}`), e;
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
const Xg = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", jl = 32,
|
|
1244
|
+
const Xg = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", jl = 32, af = 281474976710655, ay = 10, cy = 16, Gl = Object.freeze({
|
|
1245
1245
|
source: "ulid"
|
|
1246
1246
|
});
|
|
1247
1247
|
function uy(t) {
|
|
@@ -1277,13 +1277,13 @@ function hy(t, e) {
|
|
|
1277
1277
|
...Gl
|
|
1278
1278
|
}
|
|
1279
1279
|
}, `Time must be a number: ${t}`);
|
|
1280
|
-
if (t >
|
|
1280
|
+
if (t > af)
|
|
1281
1281
|
throw new pi({
|
|
1282
1282
|
info: {
|
|
1283
1283
|
code: "ENC_TIME_SIZE_EXCEED",
|
|
1284
1284
|
...Gl
|
|
1285
1285
|
}
|
|
1286
|
-
}, `Cannot encode a time larger than ${
|
|
1286
|
+
}, `Cannot encode a time larger than ${af}: ${t}`);
|
|
1287
1287
|
if (t < 0)
|
|
1288
1288
|
throw new pi({
|
|
1289
1289
|
info: {
|
|
@@ -1314,13 +1314,13 @@ function my(t, e) {
|
|
|
1314
1314
|
const n = uy(), r = isNaN(t) ? Date.now() : t;
|
|
1315
1315
|
return hy(r, ay) + fy(cy, n);
|
|
1316
1316
|
}
|
|
1317
|
-
var
|
|
1317
|
+
var cf = "yext_analytics_session_id";
|
|
1318
1318
|
function _y() {
|
|
1319
1319
|
if (typeof window > "u")
|
|
1320
1320
|
return null;
|
|
1321
1321
|
try {
|
|
1322
|
-
var t = window.sessionStorage.getItem(
|
|
1323
|
-
return t || (t = my(), window.sessionStorage.setItem(
|
|
1322
|
+
var t = window.sessionStorage.getItem(cf);
|
|
1323
|
+
return t || (t = my(), window.sessionStorage.setItem(cf, t)), t;
|
|
1324
1324
|
} catch (e) {
|
|
1325
1325
|
return console.warn(`Unable to use browser sessionStorage for sessionId.
|
|
1326
1326
|
`, e), null;
|
|
@@ -1391,7 +1391,7 @@ const yy = "@yext/analytics", Ny = "1.0.0-beta.5", Cy = "An analytics library fo
|
|
|
1391
1391
|
passWithNoTests: !0
|
|
1392
1392
|
}, Ry = {
|
|
1393
1393
|
ulidx: "^2.0.0"
|
|
1394
|
-
},
|
|
1394
|
+
}, uf = {
|
|
1395
1395
|
name: yy,
|
|
1396
1396
|
version: Ny,
|
|
1397
1397
|
description: Cy,
|
|
@@ -1555,7 +1555,7 @@ var $y = function(t, e, n, r) {
|
|
|
1555
1555
|
return $y(this, void 0, void 0, function() {
|
|
1556
1556
|
var r, c, d, g, p = this;
|
|
1557
1557
|
return Fy(this, function(C) {
|
|
1558
|
-
return r = Wu((n = this.payload) !== null && n !== void 0 ? n : {}, e ?? {}), this.config.sessionTrackingEnabled ? r.sessionId || (r.sessionId = _y()) : r.sessionId = void 0, r.clientSdk ? r.clientSdk.ANALYTICS =
|
|
1558
|
+
return r = Wu((n = this.payload) !== null && n !== void 0 ? n : {}, e ?? {}), this.config.sessionTrackingEnabled ? r.sessionId || (r.sessionId = _y()) : r.sessionId = void 0, r.clientSdk ? r.clientSdk.ANALYTICS = uf.version : r.clientSdk = (g = {}, g.ANALYTICS = uf.version, g), r.authorization = this.config.authorizationType === "apiKey" ? "KEY " + this.config.authorization : "Bearer " + this.config.authorization, c = ky(r, this.config.forceFetch), d = Py(this.config.env, this.config.region), c ? [2, new Promise(function(v, x) {
|
|
1559
1559
|
by(d, r, p.config) ? v("") : x("Failed Beacon Call");
|
|
1560
1560
|
})] : [2, Ly(d, r, this.config).then(function(v) {
|
|
1561
1561
|
return v;
|
|
@@ -1585,8 +1585,37 @@ const Wy = (t) => {
|
|
|
1585
1585
|
default:
|
|
1586
1586
|
return "";
|
|
1587
1587
|
}
|
|
1588
|
-
};
|
|
1589
|
-
|
|
1588
|
+
}, tp = pc(null), Ky = P_(() => import("./debugger-DIg74Hi7.js"));
|
|
1589
|
+
function _S(t) {
|
|
1590
|
+
const {
|
|
1591
|
+
children: e,
|
|
1592
|
+
apiKey: n,
|
|
1593
|
+
currency: r,
|
|
1594
|
+
templateData: c,
|
|
1595
|
+
requireOptIn: d,
|
|
1596
|
+
disableSessionTracking: g,
|
|
1597
|
+
enableDebugging: p
|
|
1598
|
+
} = t, C = id(null), [v, x] = lr(!1);
|
|
1599
|
+
tr(() => {
|
|
1600
|
+
x(!0);
|
|
1601
|
+
}, []), C.current === null && (C.current = new zy(
|
|
1602
|
+
n,
|
|
1603
|
+
r,
|
|
1604
|
+
c,
|
|
1605
|
+
d,
|
|
1606
|
+
g,
|
|
1607
|
+
p ?? zu()
|
|
1608
|
+
));
|
|
1609
|
+
const O = C.current;
|
|
1610
|
+
return /* @__PURE__ */ lt.jsxs(lt.Fragment, { children: [
|
|
1611
|
+
/* @__PURE__ */ lt.jsx(tp.Provider, { value: O, children: e }),
|
|
1612
|
+
v && (p || zu()) && Zl().name === "browser" ? /* @__PURE__ */ lt.jsx($_, { fallback: /* @__PURE__ */ lt.jsx(lt.Fragment, {}), children: /* @__PURE__ */ lt.jsx(Ky, {}) }) : null
|
|
1613
|
+
] });
|
|
1614
|
+
}
|
|
1615
|
+
function zu() {
|
|
1616
|
+
return Zl().name !== "browser" || typeof window === void 0 ? !1 : !!new URL(window.location.href).searchParams.get("xYextDebug");
|
|
1617
|
+
}
|
|
1618
|
+
class zy {
|
|
1590
1619
|
/**
|
|
1591
1620
|
* Creates an Analytics instance, will fire a pageview event if requireOptin
|
|
1592
1621
|
* is false
|
|
@@ -1608,7 +1637,7 @@ class Ky {
|
|
|
1608
1637
|
makeReporter() {
|
|
1609
1638
|
if (Zl().name !== "browser" || !this._optedIn)
|
|
1610
1639
|
return;
|
|
1611
|
-
if (!oy() && !this.
|
|
1640
|
+
if (!oy() && !this.getDebugEnabled()) {
|
|
1612
1641
|
console.warn("Yext Analytics disabled for non-production domains");
|
|
1613
1642
|
return;
|
|
1614
1643
|
}
|
|
@@ -1620,7 +1649,7 @@ class Ky {
|
|
|
1620
1649
|
env: "PRODUCTION",
|
|
1621
1650
|
region: e || "US",
|
|
1622
1651
|
sessionTrackingEnabled: this._sessionTrackingEnabled,
|
|
1623
|
-
debug: this.
|
|
1652
|
+
debug: this.getDebugEnabled()
|
|
1624
1653
|
}, r = {
|
|
1625
1654
|
pages: {
|
|
1626
1655
|
siteUid: this.templateData.document.siteId,
|
|
@@ -1674,18 +1703,18 @@ class Ky {
|
|
|
1674
1703
|
}
|
|
1675
1704
|
/** {@inheritDoc AnalyticsMethods.getDebugEnabled} */
|
|
1676
1705
|
getDebugEnabled() {
|
|
1677
|
-
return this.enableDebugging;
|
|
1706
|
+
return this.enableDebugging || zu();
|
|
1678
1707
|
}
|
|
1679
1708
|
}
|
|
1680
|
-
const
|
|
1681
|
-
function
|
|
1709
|
+
const Uu = pc({ name: "" }), np = () => hs(Uu).name;
|
|
1710
|
+
function yS(t) {
|
|
1682
1711
|
var g;
|
|
1683
1712
|
const e = np(), [n] = lr({
|
|
1684
1713
|
name: ep(e, t.name)
|
|
1685
1714
|
}), r = (g = ea()) == null ? void 0 : g.getDebugEnabled(), [c, d] = lr(!1);
|
|
1686
1715
|
return tr(() => {
|
|
1687
1716
|
d(!0);
|
|
1688
|
-
}, []), r && c ? /* @__PURE__ */ lt.jsx("section", { "data-ya-scope": n.name, children: /* @__PURE__ */ lt.jsx(
|
|
1717
|
+
}, []), r && c ? /* @__PURE__ */ lt.jsx("section", { "data-ya-scope": n.name, children: /* @__PURE__ */ lt.jsx(Uu.Provider, { value: n, children: t.children }) }) : /* @__PURE__ */ lt.jsx(Uu.Provider, { value: n, children: t.children });
|
|
1689
1718
|
}
|
|
1690
1719
|
function ea() {
|
|
1691
1720
|
const t = hs(tp);
|
|
@@ -1717,46 +1746,16 @@ function ea() {
|
|
|
1717
1746
|
}
|
|
1718
1747
|
};
|
|
1719
1748
|
}
|
|
1720
|
-
const
|
|
1749
|
+
const NS = () => {
|
|
1721
1750
|
var t;
|
|
1722
1751
|
return (t = ea()) == null ? void 0 : t.track;
|
|
1723
|
-
},
|
|
1752
|
+
}, CS = () => {
|
|
1724
1753
|
var t;
|
|
1725
1754
|
return (t = ea()) == null ? void 0 : t.pageView;
|
|
1726
|
-
},
|
|
1755
|
+
}, ES = () => {
|
|
1727
1756
|
var t;
|
|
1728
1757
|
return (t = ea()) == null ? void 0 : t.identify;
|
|
1729
|
-
},
|
|
1730
|
-
function ES(t) {
|
|
1731
|
-
const {
|
|
1732
|
-
children: e,
|
|
1733
|
-
apiKey: n,
|
|
1734
|
-
currency: r,
|
|
1735
|
-
templateData: c,
|
|
1736
|
-
requireOptIn: d,
|
|
1737
|
-
disableSessionTracking: g,
|
|
1738
|
-
enableDebugging: p
|
|
1739
|
-
} = t, C = rd(null), [v, x] = lr(!1);
|
|
1740
|
-
tr(() => {
|
|
1741
|
-
x(!0);
|
|
1742
|
-
}, []), C.current === null && (C.current = new Ky(
|
|
1743
|
-
n,
|
|
1744
|
-
r,
|
|
1745
|
-
c,
|
|
1746
|
-
d,
|
|
1747
|
-
g,
|
|
1748
|
-
p ?? uf()
|
|
1749
|
-
));
|
|
1750
|
-
const O = C.current;
|
|
1751
|
-
return /* @__PURE__ */ lt.jsxs(lt.Fragment, { children: [
|
|
1752
|
-
/* @__PURE__ */ lt.jsx(tp.Provider, { value: O, children: e }),
|
|
1753
|
-
v && (p ?? uf()) && Zl().name === "browser" ? /* @__PURE__ */ lt.jsx($_, { fallback: /* @__PURE__ */ lt.jsx(lt.Fragment, {}), children: /* @__PURE__ */ lt.jsx(zy, {}) }) : null
|
|
1754
|
-
] });
|
|
1755
|
-
}
|
|
1756
|
-
function uf() {
|
|
1757
|
-
return Zl().name !== "browser" || typeof window === void 0 ? !1 : !!new URL(window.location.href).searchParams.get("xYextDebug");
|
|
1758
|
-
}
|
|
1759
|
-
const cs = {
|
|
1758
|
+
}, cs = {
|
|
1760
1759
|
/**
|
|
1761
1760
|
* The the default layout if one is not specified. An image will be scaled down to fit the
|
|
1762
1761
|
* container but not exceed the absolute size of the image.
|
|
@@ -1932,7 +1931,7 @@ const cs = {
|
|
|
1932
1931
|
return `${r}/${c}/${t.contentHash}/width=${Math.round(
|
|
1933
1932
|
e
|
|
1934
1933
|
)},height=${Math.round(n)}`;
|
|
1935
|
-
},
|
|
1934
|
+
}, Gu = (t, e, n) => {
|
|
1936
1935
|
if (!rp(t)) {
|
|
1937
1936
|
console.error(`Invalid image url: ${t}.`);
|
|
1938
1937
|
return;
|
|
@@ -1968,7 +1967,7 @@ const cs = {
|
|
|
1968
1967
|
style: C = {},
|
|
1969
1968
|
loading: v = "lazy"
|
|
1970
1969
|
}) => {
|
|
1971
|
-
const x =
|
|
1970
|
+
const x = id(null), [O, R] = lr(!1), b = "image" in t ? t.image : t;
|
|
1972
1971
|
tr(() => {
|
|
1973
1972
|
var le;
|
|
1974
1973
|
(le = x.current) != null && le.complete && R(!0);
|
|
@@ -1995,7 +1994,7 @@ const cs = {
|
|
|
1995
1994
|
H,
|
|
1996
1995
|
c
|
|
1997
1996
|
), K = B.map(
|
|
1998
|
-
(le) => `${
|
|
1997
|
+
(le) => `${Gu(b.url, le, w / T * le)} ${le}w`
|
|
1999
1998
|
).join(", "), X = [640, 768, 1024, 1280, 1536], ee = B.map(
|
|
2000
1999
|
(le, V) => V === B.length - 1 ? `${le}px` : `(max-width: ${X[V]}px) ${le}px`
|
|
2001
2000
|
).join(", ");
|
|
@@ -2035,7 +2034,7 @@ const cs = {
|
|
|
2035
2034
|
"Using aspect layout but aspectRatio is not passed as a prop."
|
|
2036
2035
|
);
|
|
2037
2036
|
}, qy = (t, e, n, r, c, d, g, p) => {
|
|
2038
|
-
let C = [100, 320, 640, 960, 1280, 1920], v =
|
|
2037
|
+
let C = [100, 320, 640, 960, 1280, 1920], v = Gu(c, 500, 500);
|
|
2039
2038
|
const x = { ...r };
|
|
2040
2039
|
switch (x.objectFit = x.objectFit || "cover", x.objectPosition = x.objectPosition || "center", t) {
|
|
2041
2040
|
case cs.INTRINSIC:
|
|
@@ -2049,7 +2048,7 @@ const cs = {
|
|
|
2049
2048
|
d,
|
|
2050
2049
|
g
|
|
2051
2050
|
);
|
|
2052
|
-
x.width = O, x.height = R, C = b, v =
|
|
2051
|
+
x.width = O, x.height = R, C = b, v = Gu(c, O, R);
|
|
2053
2052
|
break;
|
|
2054
2053
|
}
|
|
2055
2054
|
case cs.ASPECT:
|
|
@@ -2159,7 +2158,7 @@ const Jl = /* @__PURE__ */ Jg(Jy), df = (t) => t.linkType === "Email" || !t.link
|
|
|
2159
2158
|
rel: e.target && !e.rel ? "noopener" : void 0,
|
|
2160
2159
|
ref: n
|
|
2161
2160
|
};
|
|
2162
|
-
return P != null && P.getDebugEnabled() && (B["data-ya-action"] = T, B["data-ya-scopeoverride"] = C, B["data-ya-eventname"] = w), /* @__PURE__ */ lt.jsx("a", { ...B, ...b, children: c || r.label || W });
|
|
2161
|
+
return P != null && P.getDebugEnabled() && (B["data-ya-action"] = T, B["data-ya-scopeoverride"] = C, B["data-ya-eventname"] = w), /* @__PURE__ */ lt.jsx("a", { ...B, ...b, suppressHydrationWarning: !0, children: c || r.label || W });
|
|
2163
2162
|
}
|
|
2164
2163
|
), xS = {
|
|
2165
2164
|
URL: "URL",
|
|
@@ -2519,7 +2518,7 @@ class ap {
|
|
|
2519
2518
|
return new e(this);
|
|
2520
2519
|
}
|
|
2521
2520
|
}
|
|
2522
|
-
class
|
|
2521
|
+
class sd {
|
|
2523
2522
|
/**
|
|
2524
2523
|
* The constructor creates a pin instance using the provider's API and initializes it with all the
|
|
2525
2524
|
* given options. See {@link module:@yext/components-maps~ProviderPinOptions ProviderPinOptions}
|
|
@@ -2564,7 +2563,7 @@ const oN = Object.freeze({
|
|
|
2564
2563
|
position: "absolute",
|
|
2565
2564
|
top: "0"
|
|
2566
2565
|
});
|
|
2567
|
-
class mc extends
|
|
2566
|
+
class mc extends sd {
|
|
2568
2567
|
/**
|
|
2569
2568
|
* This is the base style applied to pin elements. It is a map from CSS property to value, such
|
|
2570
2569
|
* as 'position': 'absolute'
|
|
@@ -2624,7 +2623,7 @@ class mc extends od {
|
|
|
2624
2623
|
}
|
|
2625
2624
|
class gs {
|
|
2626
2625
|
constructor() {
|
|
2627
|
-
this.loadFunction = (e, n, r, c) => e(), this.mapClass = tl, this.pinClass =
|
|
2626
|
+
this.loadFunction = (e, n, r, c) => e(), this.mapClass = tl, this.pinClass = sd, this.providerName = "";
|
|
2628
2627
|
}
|
|
2629
2628
|
/**
|
|
2630
2629
|
* @param {module:@yext/components-maps~ProviderLoadFunction} loadFunction
|
|
@@ -3065,7 +3064,7 @@ class dN {
|
|
|
3065
3064
|
return this._zIndex = e, this;
|
|
3066
3065
|
}
|
|
3067
3066
|
}
|
|
3068
|
-
class
|
|
3067
|
+
class ld {
|
|
3069
3068
|
/**
|
|
3070
3069
|
* Initialize with default options
|
|
3071
3070
|
*/
|
|
@@ -3129,7 +3128,7 @@ class fN {
|
|
|
3129
3128
|
* @param {module:@yext/components-maps~MapPinOptions} options
|
|
3130
3129
|
*/
|
|
3131
3130
|
constructor(e) {
|
|
3132
|
-
if (gr(e,
|
|
3131
|
+
if (gr(e, ld), gr(e.provider, ps), !e.provider.loaded)
|
|
3133
3132
|
throw new Error(
|
|
3134
3133
|
`MapProvider '${e.provider.getProviderName()}' is not loaded. The MapProvider must be loaded before calling MapPin constructor.`
|
|
3135
3134
|
);
|
|
@@ -3464,7 +3463,7 @@ let up = class {
|
|
|
3464
3463
|
* instance with the same provider as this map
|
|
3465
3464
|
*/
|
|
3466
3465
|
newPinOptions() {
|
|
3467
|
-
return new
|
|
3466
|
+
return new ld().withProvider(this._provider);
|
|
3468
3467
|
}
|
|
3469
3468
|
/**
|
|
3470
3469
|
* Called when the map has finished moving, at most once per animation frame.
|
|
@@ -3627,7 +3626,7 @@ const hN = ({
|
|
|
3627
3626
|
providerOptions: b = {},
|
|
3628
3627
|
singleZoom: T = 14
|
|
3629
3628
|
}) => {
|
|
3630
|
-
const w =
|
|
3629
|
+
const w = id(null), [P, H] = lr(g), [$, W] = lr(!1), [B, K] = lr(), [X, ee] = lr(p), le = (V, U) => {
|
|
3631
3630
|
x(V, U), H(U.getCenter());
|
|
3632
3631
|
};
|
|
3633
3632
|
return tr(() => {
|
|
@@ -3693,11 +3692,11 @@ const hN = ({
|
|
|
3693
3692
|
)
|
|
3694
3693
|
] })
|
|
3695
3694
|
}
|
|
3696
|
-
),
|
|
3695
|
+
), ad = pc(
|
|
3697
3696
|
null
|
|
3698
3697
|
);
|
|
3699
3698
|
function wS() {
|
|
3700
|
-
const t = hs(
|
|
3699
|
+
const t = hs(ad);
|
|
3701
3700
|
if (!t)
|
|
3702
3701
|
throw new Error(
|
|
3703
3702
|
"Attempted to call useClustererContext() outside of <Clusterer>."
|
|
@@ -3742,7 +3741,7 @@ const OS = ({
|
|
|
3742
3741
|
}
|
|
3743
3742
|
}));
|
|
3744
3743
|
}, [g]), /* @__PURE__ */ lt.jsx(
|
|
3745
|
-
|
|
3744
|
+
ad.Provider,
|
|
3746
3745
|
{
|
|
3747
3746
|
value: {
|
|
3748
3747
|
clusters: g ?? [],
|
|
@@ -3814,7 +3813,7 @@ const OS = ({
|
|
|
3814
3813
|
onHover: p = () => null,
|
|
3815
3814
|
zIndex: C
|
|
3816
3815
|
}) => {
|
|
3817
|
-
const { map: v, provider: x } = hs(_c), O = hs(
|
|
3816
|
+
const { map: v, provider: x } = hs(_c), O = hs(ad), R = qg(() => new ld().withCoordinate(e).withHideOffscreen(n).withProvider(x).build(), []);
|
|
3818
3817
|
tr(() => {
|
|
3819
3818
|
if (C !== 0 && !C)
|
|
3820
3819
|
return;
|
|
@@ -4204,7 +4203,7 @@ function NN() {
|
|
|
4204
4203
|
u.__key = o;
|
|
4205
4204
|
return;
|
|
4206
4205
|
}
|
|
4207
|
-
rr(),
|
|
4206
|
+
rr(), Kd();
|
|
4208
4207
|
const a = gn(), f = ki(), _ = ul();
|
|
4209
4208
|
f._nodeMap.set(_, u), Je(u) ? a._dirtyElements.set(_, !0) : a._dirtyLeaves.add(_), a._cloneNotNeeded.add(_), a._dirtyType = _t, u.__key = _;
|
|
4210
4209
|
}
|
|
@@ -4257,7 +4256,7 @@ function NN() {
|
|
|
4257
4256
|
}
|
|
4258
4257
|
}
|
|
4259
4258
|
function lo(u) {
|
|
4260
|
-
|
|
4259
|
+
Kd();
|
|
4261
4260
|
const o = u.getLatest(), a = o.__parent, f = ki(), _ = gn(), E = f._nodeMap, I = _._dirtyElements;
|
|
4262
4261
|
a !== null && Io(a, E, I);
|
|
4263
4262
|
const F = o.__key;
|
|
@@ -4619,7 +4618,7 @@ function NN() {
|
|
|
4619
4618
|
return a === "insertFromPaste" || a === "insertFromPasteAsQuotation";
|
|
4620
4619
|
}
|
|
4621
4620
|
function ot(u, o, a) {
|
|
4622
|
-
return
|
|
4621
|
+
return jd(u, o, a);
|
|
4623
4622
|
}
|
|
4624
4623
|
function Uo(u) {
|
|
4625
4624
|
return !kr(u) && !u.isLastChild() && !u.isInline();
|
|
@@ -6704,7 +6703,7 @@ function NN() {
|
|
|
6704
6703
|
const oe = $r();
|
|
6705
6704
|
(oe === E.anchor.key || oe === E.focus.key) && _n(F), E.setTextNodeRange(this, f, this, _);
|
|
6706
6705
|
} else
|
|
6707
|
-
return
|
|
6706
|
+
return Pd(F, f, F, _, "text", "text");
|
|
6708
6707
|
return E;
|
|
6709
6708
|
}
|
|
6710
6709
|
selectStart() {
|
|
@@ -6814,7 +6813,7 @@ function NN() {
|
|
|
6814
6813
|
const oe = an();
|
|
6815
6814
|
if (gt(oe)) {
|
|
6816
6815
|
const xe = oe.anchor, Ce = oe.focus;
|
|
6817
|
-
xe !== null && xe.key === _ && (
|
|
6816
|
+
xe !== null && xe.key === _ && (Fd(xe, a, f, o, I), oe.dirty = !0), Ce !== null && Ce.key === _ && (Fd(Ce, a, f, o, I), oe.dirty = !0);
|
|
6818
6817
|
}
|
|
6819
6818
|
const de = o.__text, Ne = a ? de + E : E + de;
|
|
6820
6819
|
this.setTextContent(Ne);
|
|
@@ -7183,7 +7182,7 @@ function NN() {
|
|
|
7183
7182
|
return u instanceof tn;
|
|
7184
7183
|
}
|
|
7185
7184
|
function qi(u) {
|
|
7186
|
-
const [o, , a] =
|
|
7185
|
+
const [o, , a] = Hd(u), f = a.getChildren(), _ = f.length, E = f[0].getChildren().length, I = new Array(_);
|
|
7187
7186
|
for (let F = 0; F < _; F++)
|
|
7188
7187
|
I[F] = new Array(E);
|
|
7189
7188
|
for (let F = 0; F < _; F++) {
|
|
@@ -7293,7 +7292,7 @@ function NN() {
|
|
|
7293
7292
|
}
|
|
7294
7293
|
return this.getNodes();
|
|
7295
7294
|
}
|
|
7296
|
-
const [de, Ne, Ee] =
|
|
7295
|
+
const [de, Ne, Ee] = Bd(F, _, E);
|
|
7297
7296
|
let xe = Math.min(Ne.startColumn, Ee.startColumn), Ce = Math.min(Ne.startRow, Ee.startRow), He = Math.max(Ne.startColumn + Ne.cell.__colSpan - 1, Ee.startColumn + Ee.cell.__colSpan - 1), Ie = Math.max(Ne.startRow + Ne.cell.__rowSpan - 1, Ee.startRow + Ee.cell.__rowSpan - 1), Ae = xe, pt = Ce, ze = xe, et = Ce;
|
|
7298
7297
|
function $t(xt) {
|
|
7299
7298
|
const {
|
|
@@ -7446,7 +7445,7 @@ function NN() {
|
|
|
7446
7445
|
* @param range a DOM Selection range conforming to the StaticRange interface.
|
|
7447
7446
|
*/
|
|
7448
7447
|
applyDOMRange(o) {
|
|
7449
|
-
const a = gn(), _ = a.getEditorState()._selection, E =
|
|
7448
|
+
const a = gn(), _ = a.getEditorState()._selection, E = Id(o.startContainer, o.startOffset, o.endContainer, o.endOffset, a, _);
|
|
7450
7449
|
if (E === null)
|
|
7451
7450
|
return;
|
|
7452
7451
|
const [I, F] = E;
|
|
@@ -7537,7 +7536,7 @@ function NN() {
|
|
|
7537
7536
|
} else if (!this.isCollapsed() && o !== "") {
|
|
7538
7537
|
const et = ze.getParent();
|
|
7539
7538
|
if (!Ae.canInsertTextBefore() || !Ae.canInsertTextAfter() || Je(et) && (!et.canInsertTextBefore() || !et.canInsertTextAfter())) {
|
|
7540
|
-
this.insertText(""),
|
|
7539
|
+
this.insertText(""), kd(this.anchor, this.focus, null), this.insertText(o);
|
|
7541
7540
|
return;
|
|
7542
7541
|
}
|
|
7543
7542
|
}
|
|
@@ -7860,13 +7859,13 @@ function NN() {
|
|
|
7860
7859
|
if (E = f.type === "text" ? f.getNode() : null, F !== null && F.isSegmented()) {
|
|
7861
7860
|
const oe = _.offset, de = F.getTextContentSize();
|
|
7862
7861
|
if (F.is(E) || o && oe !== de || !o && oe !== 0) {
|
|
7863
|
-
|
|
7862
|
+
Rd(F, o, oe);
|
|
7864
7863
|
return;
|
|
7865
7864
|
}
|
|
7866
7865
|
} else if (E !== null && E.isSegmented()) {
|
|
7867
7866
|
const oe = f.offset, de = E.getTextContentSize();
|
|
7868
7867
|
if (E.is(F) || o && oe !== 0 || !o && oe !== de) {
|
|
7869
|
-
|
|
7868
|
+
Rd(E, o, oe);
|
|
7870
7869
|
return;
|
|
7871
7870
|
}
|
|
7872
7871
|
}
|
|
@@ -7928,7 +7927,7 @@ function NN() {
|
|
|
7928
7927
|
}
|
|
7929
7928
|
}
|
|
7930
7929
|
}
|
|
7931
|
-
function
|
|
7930
|
+
function Rd(u, o, a) {
|
|
7932
7931
|
const f = u, E = f.getTextContent().split(/(?=\s)/g), I = E.length;
|
|
7933
7932
|
let F = 0, oe = 0;
|
|
7934
7933
|
for (let Ne = 0; Ne < I; Ne++) {
|
|
@@ -7945,7 +7944,7 @@ function NN() {
|
|
|
7945
7944
|
const f = u.getParent();
|
|
7946
7945
|
return a === null || f === null || !f.canBeEmpty() || f !== a.getNode();
|
|
7947
7946
|
}
|
|
7948
|
-
function
|
|
7947
|
+
function bd(u, o, a, f) {
|
|
7949
7948
|
let _ = o, E;
|
|
7950
7949
|
if (u.nodeType === Be) {
|
|
7951
7950
|
let I = !1;
|
|
@@ -7976,7 +7975,7 @@ function NN() {
|
|
|
7976
7975
|
E = ni(u);
|
|
7977
7976
|
return ht(E) ? Yr(E.__key, _, "text") : null;
|
|
7978
7977
|
}
|
|
7979
|
-
function
|
|
7978
|
+
function Ld(u, o, a) {
|
|
7980
7979
|
const f = u.offset, _ = u.getNode();
|
|
7981
7980
|
if (f === 0) {
|
|
7982
7981
|
const E = _.getPreviousSibling(), I = _.getParent();
|
|
@@ -7996,10 +7995,10 @@ function NN() {
|
|
|
7996
7995
|
}
|
|
7997
7996
|
}
|
|
7998
7997
|
}
|
|
7999
|
-
function
|
|
7998
|
+
function kd(u, o, a) {
|
|
8000
7999
|
if (u.type === "text" && o.type === "text") {
|
|
8001
8000
|
const f = u.isBefore(o), _ = u.is(o);
|
|
8002
|
-
|
|
8001
|
+
Ld(u, f, _), Ld(o, !f, _), _ && (o.key = u.key, o.offset = u.offset, o.type = u.type);
|
|
8003
8002
|
const E = gn();
|
|
8004
8003
|
if (E.isComposing() && E._compositionKey !== u.key && gt(a)) {
|
|
8005
8004
|
const I = a.anchor, F = a.focus;
|
|
@@ -8007,13 +8006,13 @@ function NN() {
|
|
|
8007
8006
|
}
|
|
8008
8007
|
}
|
|
8009
8008
|
}
|
|
8010
|
-
function
|
|
8009
|
+
function Id(u, o, a, f, _, E) {
|
|
8011
8010
|
if (u === null || a === null || !ti(_, u, a))
|
|
8012
8011
|
return null;
|
|
8013
|
-
const I =
|
|
8012
|
+
const I = bd(u, o, gt(E) ? E.anchor : null, _);
|
|
8014
8013
|
if (I === null)
|
|
8015
8014
|
return null;
|
|
8016
|
-
const F =
|
|
8015
|
+
const F = bd(a, f, gt(E) ? E.focus : null, _);
|
|
8017
8016
|
if (F === null)
|
|
8018
8017
|
return null;
|
|
8019
8018
|
if (I.type === "element" && F.type === "element") {
|
|
@@ -8021,12 +8020,12 @@ function NN() {
|
|
|
8021
8020
|
if (Sn(oe) && Sn(de))
|
|
8022
8021
|
return null;
|
|
8023
8022
|
}
|
|
8024
|
-
return
|
|
8023
|
+
return kd(I, F, E), [I, F];
|
|
8025
8024
|
}
|
|
8026
8025
|
function t_(u) {
|
|
8027
8026
|
return Je(u) && !u.isInline();
|
|
8028
8027
|
}
|
|
8029
|
-
function
|
|
8028
|
+
function Pd(u, o, a, f, _, E) {
|
|
8030
8029
|
const I = ki(), F = new In(Yr(u, o, _), Yr(a, f, E), 0, "");
|
|
8031
8030
|
return F.dirty = !0, I._selection = F, F;
|
|
8032
8031
|
}
|
|
@@ -8058,7 +8057,7 @@ function NN() {
|
|
|
8058
8057
|
return u.clone();
|
|
8059
8058
|
} else
|
|
8060
8059
|
return u.clone();
|
|
8061
|
-
const xe =
|
|
8060
|
+
const xe = Id(oe, Ne, de, Ee, a, u);
|
|
8062
8061
|
if (xe === null)
|
|
8063
8062
|
return null;
|
|
8064
8063
|
const [Ce, He] = xe;
|
|
@@ -8079,7 +8078,7 @@ function NN() {
|
|
|
8079
8078
|
const de = _.offset;
|
|
8080
8079
|
if (a <= de && f > 0 || a < de && f < 0) {
|
|
8081
8080
|
const Ne = Math.max(0, de + f);
|
|
8082
|
-
_.set(oe, Ne, "element"), E.set(oe, Ne, "element"),
|
|
8081
|
+
_.set(oe, Ne, "element"), E.set(oe, Ne, "element"), $d(u);
|
|
8083
8082
|
}
|
|
8084
8083
|
} else {
|
|
8085
8084
|
const de = u.isBackward(), Ne = de ? E : _, Ee = Ne.getNode(), xe = de ? _ : E, Ce = xe.getNode();
|
|
@@ -8092,9 +8091,9 @@ function NN() {
|
|
|
8092
8091
|
(a <= He && f > 0 || a < He && f < 0) && xe.set(oe, Math.max(0, He + f), "element");
|
|
8093
8092
|
}
|
|
8094
8093
|
}
|
|
8095
|
-
|
|
8094
|
+
$d(u);
|
|
8096
8095
|
}
|
|
8097
|
-
function
|
|
8096
|
+
function $d(u) {
|
|
8098
8097
|
const o = u.anchor, a = o.offset, f = u.focus, _ = f.offset, E = o.getNode(), I = f.getNode();
|
|
8099
8098
|
if (u.isCollapsed()) {
|
|
8100
8099
|
if (!Je(E))
|
|
@@ -8136,7 +8135,7 @@ function NN() {
|
|
|
8136
8135
|
let E = null, I = 0, F = null;
|
|
8137
8136
|
f !== null ? (E = f.__key, ht(f) ? (I = f.getTextContentSize(), F = "text") : Je(f) && (I = f.getChildrenSize(), F = "element")) : _ !== null && (E = _.__key, ht(_) ? F = "text" : Je(_) && (F = "element")), E !== null && F !== null ? u.set(E, I, F) : (I = o.getIndexWithinParent(), I === -1 && (I = a.getChildrenSize()), u.set(a.__key, I, "element"));
|
|
8138
8137
|
}
|
|
8139
|
-
function
|
|
8138
|
+
function Fd(u, o, a, f, _) {
|
|
8140
8139
|
u.type === "text" ? (u.key = a, o || (u.offset += _)) : u.offset > f.getIndexWithinParent() && (u.offset -= 1);
|
|
8141
8140
|
}
|
|
8142
8141
|
function s_(u, o, a, f, _, E, I) {
|
|
@@ -8185,7 +8184,7 @@ function NN() {
|
|
|
8185
8184
|
const u = an();
|
|
8186
8185
|
return u === null ? "" : u.getTextContent();
|
|
8187
8186
|
}
|
|
8188
|
-
function
|
|
8187
|
+
function Bd(u, o, a) {
|
|
8189
8188
|
const f = [];
|
|
8190
8189
|
let _ = null, E = null;
|
|
8191
8190
|
function I(de, Ne, Ee) {
|
|
@@ -8225,7 +8224,7 @@ function NN() {
|
|
|
8225
8224
|
throw Error("Focus not found in Grid");
|
|
8226
8225
|
return [f, _, E];
|
|
8227
8226
|
}
|
|
8228
|
-
function
|
|
8227
|
+
function Hd(u) {
|
|
8229
8228
|
let o;
|
|
8230
8229
|
if (u instanceof zc)
|
|
8231
8230
|
o = u;
|
|
@@ -8282,7 +8281,7 @@ function NN() {
|
|
|
8282
8281
|
return o;
|
|
8283
8282
|
}
|
|
8284
8283
|
let Yn = null, jn = null, vr = !1, Bc = !1, Ga = 0;
|
|
8285
|
-
const
|
|
8284
|
+
const Wd = {
|
|
8286
8285
|
characterData: !0,
|
|
8287
8286
|
childList: !0,
|
|
8288
8287
|
subtree: !0
|
|
@@ -8294,7 +8293,7 @@ function NN() {
|
|
|
8294
8293
|
if (vr)
|
|
8295
8294
|
throw Error("Cannot use method in read-only mode.");
|
|
8296
8295
|
}
|
|
8297
|
-
function
|
|
8296
|
+
function Kd() {
|
|
8298
8297
|
if (Ga > 99)
|
|
8299
8298
|
throw Error("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.");
|
|
8300
8299
|
}
|
|
@@ -8311,7 +8310,7 @@ function NN() {
|
|
|
8311
8310
|
function u_() {
|
|
8312
8311
|
return jn;
|
|
8313
8312
|
}
|
|
8314
|
-
function
|
|
8313
|
+
function zd(u, o, a) {
|
|
8315
8314
|
const f = o.__type, _ = Pr(u, f);
|
|
8316
8315
|
let E = a.get(f);
|
|
8317
8316
|
E === void 0 && (E = Array.from(_.transforms), a.set(f, E));
|
|
@@ -8319,7 +8318,7 @@ function NN() {
|
|
|
8319
8318
|
for (let F = 0; F < I && (E[F](o), !!o.isAttached()); F++)
|
|
8320
8319
|
;
|
|
8321
8320
|
}
|
|
8322
|
-
function
|
|
8321
|
+
function Ud(u, o) {
|
|
8323
8322
|
return u !== void 0 && // We don't want to transform nodes being composed
|
|
8324
8323
|
u.__key !== o && u.isAttached();
|
|
8325
8324
|
}
|
|
@@ -8338,7 +8337,7 @@ function NN() {
|
|
|
8338
8337
|
o._dirtyLeaves = /* @__PURE__ */ new Set();
|
|
8339
8338
|
for (const Ee of F) {
|
|
8340
8339
|
const xe = _.get(Ee);
|
|
8341
|
-
ht(xe) && xe.isAttached() && xe.isSimpleText() && !xe.isUnmergeable() && al(xe), xe !== void 0 &&
|
|
8340
|
+
ht(xe) && xe.isAttached() && xe.isSimpleText() && !xe.isUnmergeable() && al(xe), xe !== void 0 && Ud(xe, E) && zd(o, xe, I), a.add(Ee);
|
|
8342
8341
|
}
|
|
8343
8342
|
if (F = o._dirtyLeaves, oe = F.size, oe > 0) {
|
|
8344
8343
|
Ga++;
|
|
@@ -8351,7 +8350,7 @@ function NN() {
|
|
|
8351
8350
|
if (xe !== "root" && !Ce)
|
|
8352
8351
|
continue;
|
|
8353
8352
|
const He = _.get(xe);
|
|
8354
|
-
He !== void 0 &&
|
|
8353
|
+
He !== void 0 && Ud(He, E) && zd(o, He, I), f.set(xe, Ce);
|
|
8355
8354
|
}
|
|
8356
8355
|
F = o._dirtyLeaves, oe = F.size, de = o._dirtyElements, Ne = de.size, Ga++;
|
|
8357
8356
|
}
|
|
@@ -8380,7 +8379,7 @@ function NN() {
|
|
|
8380
8379
|
o._dirtyElements = /* @__PURE__ */ new Map(), o._dirtyLeaves = /* @__PURE__ */ new Set(), o._cloneNotNeeded = /* @__PURE__ */ new Set(), o._dirtyType = 0, Yn = f, vr = !1, jn = o;
|
|
8381
8380
|
try {
|
|
8382
8381
|
const Ee = o._nodes, xe = u.root;
|
|
8383
|
-
Hc(xe, Ee), a && a(), f._readOnly = !0,
|
|
8382
|
+
Hc(xe, Ee), a && a(), f._readOnly = !0, Yd(f);
|
|
8384
8383
|
} catch (Ee) {
|
|
8385
8384
|
Ee instanceof Error && o._onError(Ee);
|
|
8386
8385
|
} finally {
|
|
@@ -8388,7 +8387,7 @@ function NN() {
|
|
|
8388
8387
|
}
|
|
8389
8388
|
return f;
|
|
8390
8389
|
}
|
|
8391
|
-
function
|
|
8390
|
+
function Gd(u, o) {
|
|
8392
8391
|
const a = Yn, f = vr, _ = jn;
|
|
8393
8392
|
Yn = u, vr = !0, jn = null;
|
|
8394
8393
|
try {
|
|
@@ -8397,7 +8396,7 @@ function NN() {
|
|
|
8397
8396
|
Yn = a, vr = f, jn = _;
|
|
8398
8397
|
}
|
|
8399
8398
|
}
|
|
8400
|
-
function
|
|
8399
|
+
function Yd(u) {
|
|
8401
8400
|
const o = u._nodeMap;
|
|
8402
8401
|
o.set = () => {
|
|
8403
8402
|
throw new Error("Cannot call set() on a frozen Lexical node map");
|
|
@@ -8420,15 +8419,15 @@ function NN() {
|
|
|
8420
8419
|
Ce.disconnect(), He = ar(E, a, u, Nt, xt, Ht);
|
|
8421
8420
|
} catch (Nt) {
|
|
8422
8421
|
if (Nt instanceof Error && u._onError(Nt), !Bc)
|
|
8423
|
-
|
|
8422
|
+
Xd(u, null, f, a), qn(u), u._dirtyType = ut, Bc = !0, rs(u, E), Bc = !1;
|
|
8424
8423
|
else
|
|
8425
8424
|
throw Nt;
|
|
8426
8425
|
return;
|
|
8427
8426
|
} finally {
|
|
8428
|
-
Ce.observe(f,
|
|
8427
|
+
Ce.observe(f, Wd), u._updating = xe, Yn = de, vr = Ne, jn = Ee;
|
|
8429
8428
|
}
|
|
8430
8429
|
}
|
|
8431
|
-
a._readOnly || (a._readOnly = !0,
|
|
8430
|
+
a._readOnly || (a._readOnly = !0, Yd(a), gt(F) && (Object.freeze(F.anchor), Object.freeze(F.focus)), Object.freeze(F));
|
|
8432
8431
|
const Ie = u._dirtyLeaves, Ae = u._dirtyElements, pt = u._normalizedNodes, ze = u._updateTags, et = u._deferred;
|
|
8433
8432
|
oe && (u._dirtyType = at, u._cloneNotNeeded.clear(), u._dirtyLeaves = /* @__PURE__ */ new Set(), u._dirtyElements = /* @__PURE__ */ new Map(), u._normalizedNodes = /* @__PURE__ */ new Set(), u._updateTags = /* @__PURE__ */ new Set()), wa(u, a);
|
|
8434
8433
|
const $t = _ ? null : Nr(u._window);
|
|
@@ -8440,7 +8439,7 @@ function NN() {
|
|
|
8440
8439
|
const Nt = u._blockCursorElement;
|
|
8441
8440
|
Nt !== null && St(Nt, u, f), s_(I, F, u, $t, ze, f);
|
|
8442
8441
|
}
|
|
8443
|
-
xl(u, f, F), Ce !== null && Ce.observe(f,
|
|
8442
|
+
xl(u, f, F), Ce !== null && Ce.observe(f, Wd);
|
|
8444
8443
|
} finally {
|
|
8445
8444
|
jn = Ee, Yn = de;
|
|
8446
8445
|
}
|
|
@@ -8482,11 +8481,11 @@ function NN() {
|
|
|
8482
8481
|
o._updating = _;
|
|
8483
8482
|
}
|
|
8484
8483
|
}
|
|
8485
|
-
function
|
|
8484
|
+
function jd(u, o, a) {
|
|
8486
8485
|
if (u._updating === !1 || jn !== u) {
|
|
8487
8486
|
let _ = !1;
|
|
8488
8487
|
return u.update(() => {
|
|
8489
|
-
_ =
|
|
8488
|
+
_ = jd(u, o, a);
|
|
8490
8489
|
}), _;
|
|
8491
8490
|
}
|
|
8492
8491
|
const f = ws(u);
|
|
@@ -8511,7 +8510,7 @@ function NN() {
|
|
|
8511
8510
|
const a = o.shift();
|
|
8512
8511
|
if (a) {
|
|
8513
8512
|
const [f, _] = a;
|
|
8514
|
-
|
|
8513
|
+
qd(u, f, _);
|
|
8515
8514
|
}
|
|
8516
8515
|
}
|
|
8517
8516
|
}
|
|
@@ -8527,7 +8526,7 @@ function NN() {
|
|
|
8527
8526
|
}
|
|
8528
8527
|
}
|
|
8529
8528
|
}
|
|
8530
|
-
function
|
|
8529
|
+
function Vd(u, o) {
|
|
8531
8530
|
const a = u._updates;
|
|
8532
8531
|
let f = o || !1;
|
|
8533
8532
|
for (; a.length !== 0; ) {
|
|
@@ -8540,7 +8539,7 @@ function NN() {
|
|
|
8540
8539
|
}
|
|
8541
8540
|
return f;
|
|
8542
8541
|
}
|
|
8543
|
-
function
|
|
8542
|
+
function qd(u, o, a) {
|
|
8544
8543
|
const f = u._updateTags;
|
|
8545
8544
|
let _, E, I = !1, F = !1;
|
|
8546
8545
|
a !== void 0 && (_ = a.onUpdate, E = a.tag, E != null && f.add(E), I = a.skipTransforms || !1, F = a.discrete || !1), _ && u._deferred.push(_);
|
|
@@ -8552,7 +8551,7 @@ function NN() {
|
|
|
8552
8551
|
try {
|
|
8553
8552
|
Ne && (u._headless ? oe._selection != null && (de._selection = oe._selection.clone()) : de._selection = i_(u));
|
|
8554
8553
|
const Ae = u._compositionKey;
|
|
8555
|
-
o(), I =
|
|
8554
|
+
o(), I = Vd(u, I), o_(de, u), u._dirtyType !== at && (I ? d_(de, u) : f_(de, u), Vd(u), Oa(oe, de, u._dirtyLeaves, u._dirtyElements));
|
|
8556
8555
|
const pt = u._compositionKey;
|
|
8557
8556
|
Ae !== pt && (de._flushSync = !0);
|
|
8558
8557
|
const ze = de._selection;
|
|
@@ -8572,7 +8571,7 @@ function NN() {
|
|
|
8572
8571
|
}) : (de._flushSync = !1, Ne && (f.clear(), u._deferred = [], u._pendingEditorState = null));
|
|
8573
8572
|
}
|
|
8574
8573
|
function Lr(u, o, a) {
|
|
8575
|
-
u._updating ? u._updates.push([o, a]) :
|
|
8574
|
+
u._updating ? u._updates.push([o, a]) : qd(u, o, a);
|
|
8576
8575
|
}
|
|
8577
8576
|
class Wc extends Mt {
|
|
8578
8577
|
constructor(o) {
|
|
@@ -8782,7 +8781,7 @@ function NN() {
|
|
|
8782
8781
|
if (gt(f))
|
|
8783
8782
|
f.anchor.set(F, _, "element"), f.focus.set(F, E, "element"), f.dirty = !0;
|
|
8784
8783
|
else
|
|
8785
|
-
return
|
|
8784
|
+
return Pd(F, _, F, E, "element", "element");
|
|
8786
8785
|
return f;
|
|
8787
8786
|
}
|
|
8788
8787
|
selectStart() {
|
|
@@ -8868,7 +8867,7 @@ function NN() {
|
|
|
8868
8867
|
anchor: pt,
|
|
8869
8868
|
focus: ze
|
|
8870
8869
|
} = He;
|
|
8871
|
-
|
|
8870
|
+
Zd(pt, Ie, Ae) && Ua(pt, pt.getNode(), this, Ee, Ne), Zd(ze, Ie, Ae) && Ua(ze, ze.getNode(), this, Ee, Ne), xe === 0 && !this.canBeEmpty() && !Hr(this) && this.remove();
|
|
8872
8871
|
}
|
|
8873
8872
|
}
|
|
8874
8873
|
return I;
|
|
@@ -8941,7 +8940,7 @@ function NN() {
|
|
|
8941
8940
|
function Je(u) {
|
|
8942
8941
|
return u instanceof is;
|
|
8943
8942
|
}
|
|
8944
|
-
function
|
|
8943
|
+
function Zd(u, o, a) {
|
|
8945
8944
|
let f = u.getNode();
|
|
8946
8945
|
for (; f; ) {
|
|
8947
8946
|
const _ = f.__key;
|
|
@@ -9033,7 +9032,7 @@ function NN() {
|
|
|
9033
9032
|
function Kc() {
|
|
9034
9033
|
return new Ya(/* @__PURE__ */ new Map([["root", N_()]]));
|
|
9035
9034
|
}
|
|
9036
|
-
function
|
|
9035
|
+
function Jd(u) {
|
|
9037
9036
|
const o = u.exportJSON(), a = u.constructor;
|
|
9038
9037
|
if (o.type !== a.getType())
|
|
9039
9038
|
throw Error(`LexicalNode: Node ${a.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`);
|
|
@@ -9043,7 +9042,7 @@ function NN() {
|
|
|
9043
9042
|
throw Error(`LexicalNode: Node ${a.name} is an element but .exportJSON() does not have a children array.`);
|
|
9044
9043
|
const _ = u.getChildren();
|
|
9045
9044
|
for (let E = 0; E < _.length; E++) {
|
|
9046
|
-
const I = _[E], F =
|
|
9045
|
+
const I = _[E], F = Jd(I);
|
|
9047
9046
|
f.push(F);
|
|
9048
9047
|
}
|
|
9049
9048
|
}
|
|
@@ -9057,15 +9056,15 @@ function NN() {
|
|
|
9057
9056
|
return this._nodeMap.size === 1 && this._selection === null;
|
|
9058
9057
|
}
|
|
9059
9058
|
read(o) {
|
|
9060
|
-
return
|
|
9059
|
+
return Gd(this, o);
|
|
9061
9060
|
}
|
|
9062
9061
|
clone(o) {
|
|
9063
9062
|
const a = new Ya(this._nodeMap, o === void 0 ? this._selection : o);
|
|
9064
9063
|
return a._readOnly = !0, a;
|
|
9065
9064
|
}
|
|
9066
9065
|
toJSON() {
|
|
9067
|
-
return
|
|
9068
|
-
root:
|
|
9066
|
+
return Gd(this, () => ({
|
|
9067
|
+
root: Jd(Zn())
|
|
9069
9068
|
}));
|
|
9070
9069
|
}
|
|
9071
9070
|
}
|
|
@@ -9154,7 +9153,7 @@ function NN() {
|
|
|
9154
9153
|
return u instanceof Gs;
|
|
9155
9154
|
}
|
|
9156
9155
|
const v_ = 0, S_ = 1, w_ = 2, O_ = 3, D_ = 4;
|
|
9157
|
-
function
|
|
9156
|
+
function Xd(u, o, a, f) {
|
|
9158
9157
|
const _ = u._keyToDOMMap;
|
|
9159
9158
|
_.clear(), u._editorState = Kc(), u._pendingEditorState = f, u._compositionKey = null, u._dirtyType = at, u._cloneNotNeeded.clear(), u._dirtyLeaves = /* @__PURE__ */ new Set(), u._dirtyElements.clear(), u._normalizedNodes = /* @__PURE__ */ new Set(), u._updateTags = /* @__PURE__ */ new Set(), u._updates = [], u._blockCursorElement = null;
|
|
9160
9159
|
const E = u._observer;
|
|
@@ -9472,7 +9471,7 @@ function NN() {
|
|
|
9472
9471
|
const a = this._rootElement;
|
|
9473
9472
|
if (o !== a) {
|
|
9474
9473
|
const f = Ki(this._config.theme, "root"), _ = this._pendingEditorState || this._editorState;
|
|
9475
|
-
if (this._rootElement = o,
|
|
9474
|
+
if (this._rootElement = o, Xd(this, a, o, _), a !== null && (this._config.disableEvents || ke(a), f != null && a.classList.remove(...f)), o !== null) {
|
|
9476
9475
|
const E = ho(o), I = o.style;
|
|
9477
9476
|
I.userSelect = "text", I.whiteSpace = "pre-wrap", I.wordBreak = "break-word", o.setAttribute("data-lexical-editor", "true"), this._window = E, this._dirtyType = ut, qn(this), this._updateTags.add("history-merge"), rs(this), this._config.disableEvents || Ke(o, this), f != null && o.classList.add(...f);
|
|
9478
9477
|
} else
|
|
@@ -9622,17 +9621,17 @@ function NN() {
|
|
|
9622
9621
|
function jr(u) {
|
|
9623
9622
|
return u instanceof zc;
|
|
9624
9623
|
}
|
|
9625
|
-
class
|
|
9624
|
+
class Qd extends is {
|
|
9626
9625
|
}
|
|
9627
9626
|
function Uc(u) {
|
|
9628
|
-
return u instanceof
|
|
9627
|
+
return u instanceof Qd;
|
|
9629
9628
|
}
|
|
9630
|
-
class
|
|
9629
|
+
class ef extends is {
|
|
9631
9630
|
}
|
|
9632
9631
|
function kl(u) {
|
|
9633
|
-
return u instanceof
|
|
9632
|
+
return u instanceof ef;
|
|
9634
9633
|
}
|
|
9635
|
-
return Pe.$INTERNAL_isPointSelection = Tr, Pe.$addUpdateTag = vi, Pe.$applyNodeReplacement = go, Pe.$copyNode = El, Pe.$createLineBreakNode = Mi, Pe.$createNodeSelection = Pc, Pe.$createParagraphNode = Ji, Pe.$createRangeSelection = n_, Pe.$createTabNode = Vi, Pe.$createTextNode = Wn, Pe.$getAdjacentNode = oi, Pe.$getNearestNodeFromDOMNode = yr, Pe.$getNearestRootOrShadowRoot = Ar, Pe.$getNodeByKey = En, Pe.$getPreviousSelection = Ks, Pe.$getRoot = Zn, Pe.$getSelection = an, Pe.$getTextContent = a_, Pe.$hasAncestor = ft, Pe.$hasUpdateTag = kc, Pe.$insertNodes = l_, Pe.$isBlockElementNode = t_, Pe.$isDecoratorNode = Sn, Pe.$isElementNode = Je, Pe.$isInlineElementOrDecoratorNode = Sa, Pe.$isLeafNode = Ni, Pe.$isLineBreakNode = Ai, Pe.$isNodeSelection = xr, Pe.$isParagraphNode = x_, Pe.$isRangeSelection = gt, Pe.$isRootNode = kr, Pe.$isRootOrShadowRoot = Hr, Pe.$isTabNode = ts, Pe.$isTextNode = ht, Pe.$nodesOfType = Cl, Pe.$normalizeSelection__EXPERIMENTAL = Wi, Pe.$parseSerializedNode = h_, Pe.$selectAll = Nl, Pe.$setCompositionKey = _n, Pe.$setSelection = Mr, Pe.$splitNode = As, Pe.BLUR_COMMAND = Z, Pe.CAN_REDO_COMMAND = m, Pe.CAN_UNDO_COMMAND = y, Pe.CLEAR_EDITOR_COMMAND = Q, Pe.CLEAR_HISTORY_COMMAND = k, Pe.CLICK_COMMAND = n, Pe.COMMAND_PRIORITY_CRITICAL = D_, Pe.COMMAND_PRIORITY_EDITOR = v_, Pe.COMMAND_PRIORITY_HIGH = O_, Pe.COMMAND_PRIORITY_LOW = S_, Pe.COMMAND_PRIORITY_NORMAL = w_, Pe.CONTROLLED_TEXT_INSERTION_COMMAND = g, Pe.COPY_COMMAND = ne, Pe.CUT_COMMAND = Y, Pe.DELETE_CHARACTER_COMMAND = r, Pe.DELETE_LINE_COMMAND = x, Pe.DELETE_WORD_COMMAND = v, Pe.DEPRECATED_$computeGridMap =
|
|
9634
|
+
return Pe.$INTERNAL_isPointSelection = Tr, Pe.$addUpdateTag = vi, Pe.$applyNodeReplacement = go, Pe.$copyNode = El, Pe.$createLineBreakNode = Mi, Pe.$createNodeSelection = Pc, Pe.$createParagraphNode = Ji, Pe.$createRangeSelection = n_, Pe.$createTabNode = Vi, Pe.$createTextNode = Wn, Pe.$getAdjacentNode = oi, Pe.$getNearestNodeFromDOMNode = yr, Pe.$getNearestRootOrShadowRoot = Ar, Pe.$getNodeByKey = En, Pe.$getPreviousSelection = Ks, Pe.$getRoot = Zn, Pe.$getSelection = an, Pe.$getTextContent = a_, Pe.$hasAncestor = ft, Pe.$hasUpdateTag = kc, Pe.$insertNodes = l_, Pe.$isBlockElementNode = t_, Pe.$isDecoratorNode = Sn, Pe.$isElementNode = Je, Pe.$isInlineElementOrDecoratorNode = Sa, Pe.$isLeafNode = Ni, Pe.$isLineBreakNode = Ai, Pe.$isNodeSelection = xr, Pe.$isParagraphNode = x_, Pe.$isRangeSelection = gt, Pe.$isRootNode = kr, Pe.$isRootOrShadowRoot = Hr, Pe.$isTabNode = ts, Pe.$isTextNode = ht, Pe.$nodesOfType = Cl, Pe.$normalizeSelection__EXPERIMENTAL = Wi, Pe.$parseSerializedNode = h_, Pe.$selectAll = Nl, Pe.$setCompositionKey = _n, Pe.$setSelection = Mr, Pe.$splitNode = As, Pe.BLUR_COMMAND = Z, Pe.CAN_REDO_COMMAND = m, Pe.CAN_UNDO_COMMAND = y, Pe.CLEAR_EDITOR_COMMAND = Q, Pe.CLEAR_HISTORY_COMMAND = k, Pe.CLICK_COMMAND = n, Pe.COMMAND_PRIORITY_CRITICAL = D_, Pe.COMMAND_PRIORITY_EDITOR = v_, Pe.COMMAND_PRIORITY_HIGH = O_, Pe.COMMAND_PRIORITY_LOW = S_, Pe.COMMAND_PRIORITY_NORMAL = w_, Pe.CONTROLLED_TEXT_INSERTION_COMMAND = g, Pe.COPY_COMMAND = ne, Pe.CUT_COMMAND = Y, Pe.DELETE_CHARACTER_COMMAND = r, Pe.DELETE_LINE_COMMAND = x, Pe.DELETE_WORD_COMMAND = v, Pe.DEPRECATED_$computeGridMap = Bd, Pe.DEPRECATED_$createGridSelection = r_, Pe.DEPRECATED_$getGridCellNodeRect = qi, Pe.DEPRECATED_$getNodeTriplet = Hd, Pe.DEPRECATED_$isGridCellNode = jr, Pe.DEPRECATED_$isGridNode = Uc, Pe.DEPRECATED_$isGridRowNode = kl, Pe.DEPRECATED_$isGridSelection = dr, Pe.DEPRECATED_GridCellNode = zc, Pe.DEPRECATED_GridNode = Qd, Pe.DEPRECATED_GridRowNode = ef, Pe.DRAGEND_COMMAND = j, Pe.DRAGOVER_COMMAND = D, Pe.DRAGSTART_COMMAND = z, Pe.DROP_COMMAND = pe, Pe.DecoratorNode = Wc, Pe.ElementNode = is, Pe.FOCUS_COMMAND = A, Pe.FORMAT_ELEMENT_COMMAND = ue, Pe.FORMAT_TEXT_COMMAND = O, Pe.INDENT_CONTENT_COMMAND = me, Pe.INSERT_LINE_BREAK_COMMAND = c, Pe.INSERT_PARAGRAPH_COMMAND = d, Pe.INSERT_TAB_COMMAND = q, Pe.KEY_ARROW_DOWN_COMMAND = B, Pe.KEY_ARROW_LEFT_COMMAND = H, Pe.KEY_ARROW_RIGHT_COMMAND = w, Pe.KEY_ARROW_UP_COMMAND = W, Pe.KEY_BACKSPACE_COMMAND = ee, Pe.KEY_DELETE_COMMAND = V, Pe.KEY_DOWN_COMMAND = T, Pe.KEY_ENTER_COMMAND = K, Pe.KEY_ESCAPE_COMMAND = le, Pe.KEY_MODIFIER_COMMAND = ae, Pe.KEY_SPACE_COMMAND = X, Pe.KEY_TAB_COMMAND = U, Pe.LineBreakNode = zr, Pe.MOVE_TO_END = P, Pe.MOVE_TO_START = $, Pe.OUTDENT_CONTENT_COMMAND = _e, Pe.PASTE_COMMAND = p, Pe.ParagraphNode = Gs, Pe.REDO_COMMAND = b, Pe.REMOVE_TEXT_COMMAND = C, Pe.RootNode = Us, Pe.SELECTION_CHANGE_COMMAND = e, Pe.SELECT_ALL_COMMAND = G, Pe.TabNode = Ri, Pe.TextNode = ji, Pe.UNDO_COMMAND = R, Pe.createCommand = t, Pe.createEditor = A_, Pe.getNearestEditorFromDOMNode = ko, Pe.isHTMLAnchorElement = Yo, Pe.isHTMLElement = jo, Pe.isSelectionCapturedInDecoratorInput = so, Pe.isSelectionWithinEditor = ti, Pe;
|
|
9636
9635
|
}
|
|
9637
9636
|
var $e = {}, Cf;
|
|
9638
9637
|
function CN() {
|
|
@@ -15866,14 +15865,14 @@ function HN() {
|
|
|
15866
15865
|
}, fi;
|
|
15867
15866
|
}
|
|
15868
15867
|
var uu, jf;
|
|
15869
|
-
function
|
|
15868
|
+
function cd() {
|
|
15870
15869
|
return jf || (jf = 1, uu = process.env.NODE_ENV === "development" ? BN() : HN()), uu;
|
|
15871
15870
|
}
|
|
15872
15871
|
var Vf;
|
|
15873
15872
|
function WN() {
|
|
15874
15873
|
if (Vf) return Xc;
|
|
15875
15874
|
Vf = 1;
|
|
15876
|
-
var t = Un(), e = fp(), n = dn, r = hp(), c = rn(), d = Zg, g = gp(), p =
|
|
15875
|
+
var t = Un(), e = fp(), n = dn, r = hp(), c = rn(), d = Zg, g = gp(), p = cd(), x = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? n.useLayoutEffect : n.useEffect;
|
|
15877
15876
|
function O(H) {
|
|
15878
15877
|
return H.getEditorState().read(r.$canShowPlaceholderCurry(H.isComposing()));
|
|
15879
15878
|
}
|
|
@@ -15937,7 +15936,7 @@ var du = {}, qf;
|
|
|
15937
15936
|
function KN() {
|
|
15938
15937
|
if (qf) return du;
|
|
15939
15938
|
qf = 1;
|
|
15940
|
-
var t = Un(), e = fp(), n = dn, r = hp(), c = rn(), d = Zg, g = gp(), p =
|
|
15939
|
+
var t = Un(), e = fp(), n = dn, r = hp(), c = rn(), d = Zg, g = gp(), p = cd(), C = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? n.useLayoutEffect : n.useEffect;
|
|
15941
15940
|
function v(T) {
|
|
15942
15941
|
return T.getEditorState().read(r.$canShowPlaceholderCurry(T.isComposing()));
|
|
15943
15942
|
}
|
|
@@ -17361,14 +17360,14 @@ function tC() {
|
|
|
17361
17360
|
}, or;
|
|
17362
17361
|
}
|
|
17363
17362
|
var _u, nh;
|
|
17364
|
-
function
|
|
17363
|
+
function ud() {
|
|
17365
17364
|
return nh || (nh = 1, _u = process.env.NODE_ENV === "development" ? eC() : tC()), _u;
|
|
17366
17365
|
}
|
|
17367
17366
|
var rh;
|
|
17368
17367
|
function nC() {
|
|
17369
17368
|
if (rh) return mu;
|
|
17370
17369
|
rh = 1;
|
|
17371
|
-
var t =
|
|
17370
|
+
var t = ud(), e = Un(), n = dn, r = rn(), c = Ft();
|
|
17372
17371
|
function d(p) {
|
|
17373
17372
|
n.useEffect(() => r.mergeRegister(p.registerCommand(t.INSERT_ORDERED_LIST_COMMAND, () => (t.insertList(p, "number"), !0), c.COMMAND_PRIORITY_LOW), p.registerCommand(t.INSERT_UNORDERED_LIST_COMMAND, () => (t.insertList(p, "bullet"), !0), c.COMMAND_PRIORITY_LOW), p.registerCommand(t.REMOVE_LIST_COMMAND, () => (t.removeList(p), !0), c.COMMAND_PRIORITY_LOW), p.registerCommand(c.INSERT_PARAGRAPH_COMMAND, () => !!t.$handleListInsertParagraph(), c.COMMAND_PRIORITY_LOW)), [p]);
|
|
17374
17373
|
}
|
|
@@ -17385,7 +17384,7 @@ var yu = {}, ih;
|
|
|
17385
17384
|
function rC() {
|
|
17386
17385
|
if (ih) return yu;
|
|
17387
17386
|
ih = 1;
|
|
17388
|
-
var t =
|
|
17387
|
+
var t = ud(), e = Un(), n = dn, r = rn(), c = Ft();
|
|
17389
17388
|
function d(g) {
|
|
17390
17389
|
n.useEffect(() => r.mergeRegister(g.registerCommand(t.INSERT_ORDERED_LIST_COMMAND, () => (t.insertList(g, "number"), !0), c.COMMAND_PRIORITY_LOW), g.registerCommand(t.INSERT_UNORDERED_LIST_COMMAND, () => (t.insertList(g, "bullet"), !0), c.COMMAND_PRIORITY_LOW), g.registerCommand(t.REMOVE_LIST_COMMAND, () => (t.removeList(g), !0), c.COMMAND_PRIORITY_LOW), g.registerCommand(c.INSERT_PARAGRAPH_COMMAND, () => !!t.$handleListInsertParagraph(), c.COMMAND_PRIORITY_LOW)), [g]);
|
|
17391
17390
|
}
|
|
@@ -17831,14 +17830,14 @@ function lC() {
|
|
|
17831
17830
|
}, Fi;
|
|
17832
17831
|
}
|
|
17833
17832
|
var Cu, lh;
|
|
17834
|
-
function
|
|
17833
|
+
function dd() {
|
|
17835
17834
|
return lh || (lh = 1, Cu = process.env.NODE_ENV === "development" ? sC() : lC()), Cu;
|
|
17836
17835
|
}
|
|
17837
17836
|
var ah;
|
|
17838
17837
|
function aC() {
|
|
17839
17838
|
if (ah) return Nu;
|
|
17840
17839
|
ah = 1;
|
|
17841
|
-
var t =
|
|
17840
|
+
var t = dd(), e = Un(), n = rn(), r = Ft(), c = dn;
|
|
17842
17841
|
function d({
|
|
17843
17842
|
validateUrl: g
|
|
17844
17843
|
}) {
|
|
@@ -17880,7 +17879,7 @@ var Eu = {}, ch;
|
|
|
17880
17879
|
function cC() {
|
|
17881
17880
|
if (ch) return Eu;
|
|
17882
17881
|
ch = 1;
|
|
17883
|
-
var t =
|
|
17882
|
+
var t = dd(), e = Un(), n = rn(), r = Ft(), c = dn;
|
|
17884
17883
|
return Eu.LinkPlugin = function({ validateUrl: d }) {
|
|
17885
17884
|
let [g] = e.useLexicalComposerContext();
|
|
17886
17885
|
return c.useEffect(() => {
|
|
@@ -19955,14 +19954,14 @@ function hC() {
|
|
|
19955
19954
|
}, Gt;
|
|
19956
19955
|
}
|
|
19957
19956
|
var xu, fh;
|
|
19958
|
-
function
|
|
19957
|
+
function fd() {
|
|
19959
19958
|
return fh || (fh = 1, xu = process.env.NODE_ENV === "development" ? fC() : hC()), xu;
|
|
19960
19959
|
}
|
|
19961
19960
|
var hh;
|
|
19962
19961
|
function gC() {
|
|
19963
19962
|
if (hh) return Tu;
|
|
19964
19963
|
hh = 1;
|
|
19965
|
-
var t = Un(), e =
|
|
19964
|
+
var t = Un(), e = fd(), n = rn(), r = Ft(), c = dn;
|
|
19966
19965
|
function d({
|
|
19967
19966
|
hasCellMerge: g = !0,
|
|
19968
19967
|
hasCellBackgroundColor: p = !0,
|
|
@@ -20052,7 +20051,7 @@ var vu = {}, gh;
|
|
|
20052
20051
|
function pC() {
|
|
20053
20052
|
if (gh) return vu;
|
|
20054
20053
|
gh = 1;
|
|
20055
|
-
var t = Un(), e =
|
|
20054
|
+
var t = Un(), e = fd(), n = rn(), r = Ft(), c = dn;
|
|
20056
20055
|
function d(g) {
|
|
20057
20056
|
let p = new URLSearchParams();
|
|
20058
20057
|
p.append("code", g);
|
|
@@ -20811,7 +20810,7 @@ function _p() {
|
|
|
20811
20810
|
}
|
|
20812
20811
|
return p;
|
|
20813
20812
|
}(e);
|
|
20814
|
-
t.exports && (t.exports = n), typeof
|
|
20813
|
+
t.exports && (t.exports = n), typeof tf < "u" && (tf.Prism = n), n.languages.markup = {
|
|
20815
20814
|
comment: {
|
|
20816
20815
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
20817
20816
|
greedy: !0
|
|
@@ -23723,10 +23722,10 @@ function NC() {
|
|
|
23723
23722
|
}, An;
|
|
23724
23723
|
}
|
|
23725
23724
|
const CC = process.env.NODE_ENV === "development" ? yC() : NC();
|
|
23726
|
-
var
|
|
23725
|
+
var Yu = CC, hd = Un();
|
|
23727
23726
|
function EC() {
|
|
23728
|
-
const [t] =
|
|
23729
|
-
return tr(() =>
|
|
23727
|
+
const [t] = hd.useLexicalComposerContext();
|
|
23728
|
+
return tr(() => Yu.registerCodeHighlighting(t), [t]), null;
|
|
23730
23729
|
}
|
|
23731
23730
|
var Yh = rn(), Rn = Ft();
|
|
23732
23731
|
function TC({
|
|
@@ -23834,7 +23833,7 @@ const vC = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
23834
23833
|
"INSERT_IMAGE_COMMAND"
|
|
23835
23834
|
);
|
|
23836
23835
|
function wC() {
|
|
23837
|
-
const [t] =
|
|
23836
|
+
const [t] = hd.useLexicalComposerContext();
|
|
23838
23837
|
return tr(() => {
|
|
23839
23838
|
if (!t.hasNodes([nl]))
|
|
23840
23839
|
throw new Error("ImagePlugin: ImageNode not registered on editor");
|
|
@@ -23868,7 +23867,7 @@ function wC() {
|
|
|
23868
23867
|
function OC(t) {
|
|
23869
23868
|
const e = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", n = document.createElement("img");
|
|
23870
23869
|
n.src = e;
|
|
23871
|
-
const r =
|
|
23870
|
+
const r = gd();
|
|
23872
23871
|
if (!r)
|
|
23873
23872
|
return !1;
|
|
23874
23873
|
const c = t.dataTransfer;
|
|
@@ -23888,10 +23887,10 @@ function OC(t) {
|
|
|
23888
23887
|
), !0) : !1;
|
|
23889
23888
|
}
|
|
23890
23889
|
function DC(t) {
|
|
23891
|
-
return
|
|
23890
|
+
return gd() ? (kp(t) || t.preventDefault(), !0) : !1;
|
|
23892
23891
|
}
|
|
23893
23892
|
function MC(t, e) {
|
|
23894
|
-
const n =
|
|
23893
|
+
const n = gd();
|
|
23895
23894
|
if (!n)
|
|
23896
23895
|
return !1;
|
|
23897
23896
|
const r = AC(t);
|
|
@@ -23905,7 +23904,7 @@ function MC(t, e) {
|
|
|
23905
23904
|
}
|
|
23906
23905
|
return !0;
|
|
23907
23906
|
}
|
|
23908
|
-
function
|
|
23907
|
+
function gd() {
|
|
23909
23908
|
const t = Rn.$getSelection();
|
|
23910
23909
|
if (!Rn.$isNodeSelection(t))
|
|
23911
23910
|
return null;
|
|
@@ -23935,7 +23934,7 @@ function RC(t) {
|
|
|
23935
23934
|
throw Error("Cannot get the selection when dragging");
|
|
23936
23935
|
return e;
|
|
23937
23936
|
}
|
|
23938
|
-
var as =
|
|
23937
|
+
var as = ud();
|
|
23939
23938
|
function bC(t) {
|
|
23940
23939
|
const e = t.getNodes();
|
|
23941
23940
|
return e.length === 0 ? /* @__PURE__ */ new Set([
|
|
@@ -23966,14 +23965,14 @@ function kC(t) {
|
|
|
23966
23965
|
return r <= t;
|
|
23967
23966
|
}
|
|
23968
23967
|
function IC({ maxDepth: t }) {
|
|
23969
|
-
const [e] =
|
|
23968
|
+
const [e] = hd.useLexicalComposerContext();
|
|
23970
23969
|
return tr(() => e.registerCommand(
|
|
23971
23970
|
Rn.INDENT_CONTENT_COMMAND,
|
|
23972
23971
|
() => !kC(t || 7),
|
|
23973
23972
|
LC
|
|
23974
23973
|
), [e, t]), null;
|
|
23975
23974
|
}
|
|
23976
|
-
var wu =
|
|
23975
|
+
var wu = fd(), jh = dd(), Vh = cd(), Bl = {}, qh;
|
|
23977
23976
|
function PC() {
|
|
23978
23977
|
if (qh) return Bl;
|
|
23979
23978
|
qh = 1;
|
|
@@ -24453,8 +24452,8 @@ function qC(t, e) {
|
|
|
24453
24452
|
as.ListNode,
|
|
24454
24453
|
as.ListItemNode,
|
|
24455
24454
|
Vh.QuoteNode,
|
|
24456
|
-
|
|
24457
|
-
|
|
24455
|
+
Yu.CodeNode,
|
|
24456
|
+
Yu.CodeHighlightNode,
|
|
24458
24457
|
wu.TableNode,
|
|
24459
24458
|
wu.TableCellNode,
|
|
24460
24459
|
wu.TableRowNode,
|
|
@@ -24501,7 +24500,7 @@ function MS({
|
|
|
24501
24500
|
}
|
|
24502
24501
|
);
|
|
24503
24502
|
}
|
|
24504
|
-
function
|
|
24503
|
+
function pd(t, e, n, r) {
|
|
24505
24504
|
const c = t.length;
|
|
24506
24505
|
let d = 0, g;
|
|
24507
24506
|
if (e < 0 ? e = -e > c ? 0 : c + e : e = e > c ? c : e, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -24511,7 +24510,7 @@ function gd(t, e, n, r) {
|
|
|
24511
24510
|
g = r.slice(d, d + 1e4), g.unshift(e, 0), [].splice.apply(t, g), d += 1e4, e += 1e4;
|
|
24512
24511
|
}
|
|
24513
24512
|
function Wl(t, e) {
|
|
24514
|
-
return t.length > 0 ? (
|
|
24513
|
+
return t.length > 0 ? (pd(t, t.length, 0, e), t) : e;
|
|
24515
24514
|
}
|
|
24516
24515
|
const ng = {}.hasOwnProperty;
|
|
24517
24516
|
function ZC(t) {
|
|
@@ -24542,7 +24541,7 @@ function XC(t, e) {
|
|
|
24542
24541
|
const r = [];
|
|
24543
24542
|
for (; ++n < e.length; )
|
|
24544
24543
|
(e[n].add === "after" ? t : r).push(e[n]);
|
|
24545
|
-
|
|
24544
|
+
pd(t, 0, 0, r);
|
|
24546
24545
|
}
|
|
24547
24546
|
const no = {
|
|
24548
24547
|
carriageReturn: -5,
|
|
@@ -24836,10 +24835,10 @@ function Vl(t, e) {
|
|
|
24836
24835
|
}
|
|
24837
24836
|
return t !== t && e !== e;
|
|
24838
24837
|
}
|
|
24839
|
-
let
|
|
24840
|
-
typeof process < "u" && ({ FORCE_COLOR:
|
|
24838
|
+
let ju, Pp, $p, Fp, Bp = !0;
|
|
24839
|
+
typeof process < "u" && ({ FORCE_COLOR: ju, NODE_DISABLE_COLORS: Pp, NO_COLOR: $p, TERM: Fp } = process.env || {}, Bp = process.stdout && process.stdout.isTTY);
|
|
24841
24840
|
const Kt = {
|
|
24842
|
-
enabled: !Pp && $p == null && Fp !== "dumb" && (
|
|
24841
|
+
enabled: !Pp && $p == null && Fp !== "dumb" && (ju != null && ju !== "0" || Bp),
|
|
24843
24842
|
// modifiers
|
|
24844
24843
|
reset: cn(0, 0),
|
|
24845
24844
|
bold: cn(1, 22),
|
|
@@ -25066,12 +25065,12 @@ Xl.castInput = function(t) {
|
|
|
25066
25065
|
var e = this.options, n = e.undefinedReplacement, r = e.stringifyReplacer, c = r === void 0 ? function(d, g) {
|
|
25067
25066
|
return typeof g > "u" ? n : g;
|
|
25068
25067
|
} : r;
|
|
25069
|
-
return typeof t == "string" ? t : JSON.stringify(
|
|
25068
|
+
return typeof t == "string" ? t : JSON.stringify(Vu(t, null, null, c), c, " ");
|
|
25070
25069
|
};
|
|
25071
25070
|
Xl.equals = function(t, e) {
|
|
25072
25071
|
return bo.prototype.equals.call(Xl, t.replace(/,([\r\n])/g, "$1"), e.replace(/,([\r\n])/g, "$1"));
|
|
25073
25072
|
};
|
|
25074
|
-
function
|
|
25073
|
+
function Vu(t, e, n, r, c) {
|
|
25075
25074
|
e = e || [], n = n || [], r && (t = r(c, t));
|
|
25076
25075
|
var d;
|
|
25077
25076
|
for (d = 0; d < e.length; d += 1)
|
|
@@ -25080,7 +25079,7 @@ function ju(t, e, n, r, c) {
|
|
|
25080
25079
|
var g;
|
|
25081
25080
|
if (rE.call(t) === "[object Array]") {
|
|
25082
25081
|
for (e.push(t), g = new Array(t.length), n.push(g), d = 0; d < t.length; d += 1)
|
|
25083
|
-
g[d] =
|
|
25082
|
+
g[d] = Vu(t[d], e, n, r, c);
|
|
25084
25083
|
return e.pop(), n.pop(), g;
|
|
25085
25084
|
}
|
|
25086
25085
|
if (t && t.toJSON && (t = t.toJSON()), ic(t) === "object" && t !== null) {
|
|
@@ -25089,17 +25088,17 @@ function ju(t, e, n, r, c) {
|
|
|
25089
25088
|
for (C in t)
|
|
25090
25089
|
t.hasOwnProperty(C) && p.push(C);
|
|
25091
25090
|
for (p.sort(), d = 0; d < p.length; d += 1)
|
|
25092
|
-
C = p[d], g[C] =
|
|
25091
|
+
C = p[d], g[C] = Vu(t[C], e, n, r, C);
|
|
25093
25092
|
e.pop(), n.pop();
|
|
25094
25093
|
} else
|
|
25095
25094
|
g = t;
|
|
25096
25095
|
return g;
|
|
25097
25096
|
}
|
|
25098
|
-
var
|
|
25099
|
-
|
|
25097
|
+
var qu = new bo();
|
|
25098
|
+
qu.tokenize = function(t) {
|
|
25100
25099
|
return t.slice();
|
|
25101
25100
|
};
|
|
25102
|
-
|
|
25101
|
+
qu.join = qu.removeEmpty = function(t) {
|
|
25103
25102
|
return t;
|
|
25104
25103
|
};
|
|
25105
25104
|
Kt.red, Kt.grey, Kt.green;
|
|
@@ -25623,13 +25622,13 @@ const dE = {
|
|
|
25623
25622
|
chunkText: "chunkText",
|
|
25624
25623
|
chunkString: "chunkString"
|
|
25625
25624
|
};
|
|
25626
|
-
function
|
|
25625
|
+
function md(t, e) {
|
|
25627
25626
|
return !!(t[0] === "enter" && t[1].type === `${e}SequenceTemporary` && t[1]._close);
|
|
25628
25627
|
}
|
|
25629
|
-
function
|
|
25628
|
+
function _d(t, e) {
|
|
25630
25629
|
return !!(t[0] === "exit" && t[1].type === `${e}SequenceTemporary` && t[1]._open);
|
|
25631
25630
|
}
|
|
25632
|
-
function
|
|
25631
|
+
function yd(t, e, n, r, c, d) {
|
|
25633
25632
|
const [g, p, C, v] = fE(
|
|
25634
25633
|
t[e],
|
|
25635
25634
|
t[n],
|
|
@@ -25663,7 +25662,7 @@ function _d(t, e, n, r, c, d) {
|
|
|
25663
25662
|
return t[n][1].end.offset - t[n][1].start.offset && (O = 2, x = Wl(x, [
|
|
25664
25663
|
["enter", t[n][1], r],
|
|
25665
25664
|
["exit", t[n][1], r]
|
|
25666
|
-
])),
|
|
25665
|
+
])), pd(t, e - 1, n - e + 3, x), e + x.length - O - 2;
|
|
25667
25666
|
}
|
|
25668
25667
|
function fE(t, e, n, r) {
|
|
25669
25668
|
const c = Object.assign({}, t[1].end), d = Object.assign({}, e[1].start);
|
|
@@ -25690,7 +25689,7 @@ function fE(t, e, n, r) {
|
|
|
25690
25689
|
function cg(t, e) {
|
|
25691
25690
|
t.column += e, t.offset += e, t._bufferIndex += e;
|
|
25692
25691
|
}
|
|
25693
|
-
function
|
|
25692
|
+
function Nd(t, e) {
|
|
25694
25693
|
t.forEach((n) => {
|
|
25695
25694
|
n[1].type === `${e}SequenceTemporary` && (n[1].type = dE.data);
|
|
25696
25695
|
});
|
|
@@ -25698,12 +25697,12 @@ function yd(t, e) {
|
|
|
25698
25697
|
function hE(t, e) {
|
|
25699
25698
|
let n = -1;
|
|
25700
25699
|
for (; ++n < t.length; )
|
|
25701
|
-
if (
|
|
25700
|
+
if (md(t[n], "tilde")) {
|
|
25702
25701
|
let r = n;
|
|
25703
25702
|
for (; r--; )
|
|
25704
|
-
if (
|
|
25703
|
+
if (_d(t[r], "tilde")) {
|
|
25705
25704
|
const c = gE(t[r], t[n]);
|
|
25706
|
-
n =
|
|
25705
|
+
n = yd(
|
|
25707
25706
|
t,
|
|
25708
25707
|
r,
|
|
25709
25708
|
n,
|
|
@@ -25714,7 +25713,7 @@ function hE(t, e) {
|
|
|
25714
25713
|
break;
|
|
25715
25714
|
}
|
|
25716
25715
|
}
|
|
25717
|
-
return
|
|
25716
|
+
return Nd(t, "tilde"), t;
|
|
25718
25717
|
}
|
|
25719
25718
|
function gE(t, e) {
|
|
25720
25719
|
const n = t[1].end.offset - t[1].start.offset, r = e[1].end.offset - e[1].start.offset;
|
|
@@ -25733,11 +25732,11 @@ function pE() {
|
|
|
25733
25732
|
function mE(t, e) {
|
|
25734
25733
|
let n = -1;
|
|
25735
25734
|
for (; ++n < t.length; )
|
|
25736
|
-
if (
|
|
25735
|
+
if (md(t[n], "superscript")) {
|
|
25737
25736
|
let r = n;
|
|
25738
25737
|
for (; r--; )
|
|
25739
|
-
if (
|
|
25740
|
-
n =
|
|
25738
|
+
if (_d(t[r], "superscript")) {
|
|
25739
|
+
n = yd(
|
|
25741
25740
|
t,
|
|
25742
25741
|
r,
|
|
25743
25742
|
n,
|
|
@@ -25748,7 +25747,7 @@ function mE(t, e) {
|
|
|
25748
25747
|
break;
|
|
25749
25748
|
}
|
|
25750
25749
|
}
|
|
25751
|
-
return
|
|
25750
|
+
return Nd(t, "superscript"), t;
|
|
25752
25751
|
}
|
|
25753
25752
|
function _E(t, e) {
|
|
25754
25753
|
return n;
|
|
@@ -25791,11 +25790,11 @@ function NE(t, e, n) {
|
|
|
25791
25790
|
function CE(t, e) {
|
|
25792
25791
|
let n = -1;
|
|
25793
25792
|
for (; ++n < t.length; )
|
|
25794
|
-
if (
|
|
25793
|
+
if (md(t[n], "underline") && t[n][1].end.offset - t[n][1].start.offset > 1) {
|
|
25795
25794
|
let r = n;
|
|
25796
25795
|
for (; r--; )
|
|
25797
|
-
if (
|
|
25798
|
-
n =
|
|
25796
|
+
if (_d(t[r], "underline") && t[r][1].end.offset - t[r][1].start.offset > 1) {
|
|
25797
|
+
n = yd(
|
|
25799
25798
|
t,
|
|
25800
25799
|
r,
|
|
25801
25800
|
n,
|
|
@@ -25806,7 +25805,7 @@ function CE(t, e) {
|
|
|
25806
25805
|
break;
|
|
25807
25806
|
}
|
|
25808
25807
|
}
|
|
25809
|
-
return
|
|
25808
|
+
return Nd(t, "underline"), t;
|
|
25810
25809
|
}
|
|
25811
25810
|
function EE() {
|
|
25812
25811
|
const t = {
|
|
@@ -26144,9 +26143,9 @@ function tT(t, e) {
|
|
|
26144
26143
|
};
|
|
26145
26144
|
return t.patch(e, n), t.applyData(e, n);
|
|
26146
26145
|
}
|
|
26147
|
-
const
|
|
26146
|
+
const Cd = Gp("start"), Ed = Gp("end");
|
|
26148
26147
|
function nT(t) {
|
|
26149
|
-
return { start:
|
|
26148
|
+
return { start: Cd(t), end: Ed(t) };
|
|
26150
26149
|
}
|
|
26151
26150
|
function Gp(t) {
|
|
26152
26151
|
return e;
|
|
@@ -26179,7 +26178,7 @@ function rT(t, e) {
|
|
|
26179
26178
|
tagName: "tbody",
|
|
26180
26179
|
properties: {},
|
|
26181
26180
|
children: t.wrap(n, !0)
|
|
26182
|
-
}, p =
|
|
26181
|
+
}, p = Cd(e.children[1]), C = Ed(e.children[e.children.length - 1]);
|
|
26183
26182
|
p.line && C.line && (g.position = { start: p, end: C }), c.push(g);
|
|
26184
26183
|
}
|
|
26185
26184
|
const d = {
|
|
@@ -26468,7 +26467,7 @@ function FS(t, e) {
|
|
|
26468
26467
|
}
|
|
26469
26468
|
if (v) {
|
|
26470
26469
|
const O = "type" in v ? v : { position: v };
|
|
26471
|
-
yT(O) || (x.position = { start:
|
|
26470
|
+
yT(O) || (x.position = { start: Cd(O), end: Ed(O) });
|
|
26472
26471
|
}
|
|
26473
26472
|
return x;
|
|
26474
26473
|
}
|
|
@@ -26560,7 +26559,7 @@ const vT = (t, e) => t(e, "i", oo(t, e)), ST = (t, e) => t(e, "b", oo(t, e)), wT
|
|
|
26560
26559
|
(async () => {
|
|
26561
26560
|
if (!r)
|
|
26562
26561
|
try {
|
|
26563
|
-
r = (await import("./index-
|
|
26562
|
+
r = (await import("./index-D008ceFk.js")).default;
|
|
26564
26563
|
} catch {
|
|
26565
26564
|
throw new Error(
|
|
26566
26565
|
"Failed to import React Markdown, cannot properly render LegacyRichText."
|
|
@@ -26991,23 +26990,23 @@ function HT(t, e = {}) {
|
|
|
26991
26990
|
let r = mg[n];
|
|
26992
26991
|
return r || (r = new Intl.ListFormat(t, e), mg[n] = r), r;
|
|
26993
26992
|
}
|
|
26994
|
-
let
|
|
26995
|
-
function
|
|
26993
|
+
let Zu = {};
|
|
26994
|
+
function Ju(t, e = {}) {
|
|
26996
26995
|
const n = JSON.stringify([t, e]);
|
|
26997
|
-
let r =
|
|
26998
|
-
return r || (r = new Intl.DateTimeFormat(t, e),
|
|
26996
|
+
let r = Zu[n];
|
|
26997
|
+
return r || (r = new Intl.DateTimeFormat(t, e), Zu[n] = r), r;
|
|
26999
26998
|
}
|
|
27000
|
-
let
|
|
26999
|
+
let Xu = {};
|
|
27001
27000
|
function WT(t, e = {}) {
|
|
27002
27001
|
const n = JSON.stringify([t, e]);
|
|
27003
|
-
let r =
|
|
27004
|
-
return r || (r = new Intl.NumberFormat(t, e),
|
|
27002
|
+
let r = Xu[n];
|
|
27003
|
+
return r || (r = new Intl.NumberFormat(t, e), Xu[n] = r), r;
|
|
27005
27004
|
}
|
|
27006
|
-
let
|
|
27005
|
+
let Qu = {};
|
|
27007
27006
|
function KT(t, e = {}) {
|
|
27008
27007
|
const { base: n, ...r } = e, c = JSON.stringify([t, r]);
|
|
27009
|
-
let d =
|
|
27010
|
-
return d || (d = new Intl.RelativeTimeFormat(t, e),
|
|
27008
|
+
let d = Qu[c];
|
|
27009
|
+
return d || (d = new Intl.RelativeTimeFormat(t, e), Qu[c] = d), d;
|
|
27011
27010
|
}
|
|
27012
27011
|
let Yl = null;
|
|
27013
27012
|
function zT() {
|
|
@@ -27031,10 +27030,10 @@ function GT(t) {
|
|
|
27031
27030
|
{
|
|
27032
27031
|
let r, c;
|
|
27033
27032
|
try {
|
|
27034
|
-
r =
|
|
27033
|
+
r = Ju(t).resolvedOptions(), c = t;
|
|
27035
27034
|
} catch {
|
|
27036
27035
|
const C = t.substring(0, n);
|
|
27037
|
-
r =
|
|
27036
|
+
r = Ju(C).resolvedOptions(), c = C;
|
|
27038
27037
|
}
|
|
27039
27038
|
const { numberingSystem: d, calendar: g } = r;
|
|
27040
27039
|
return [c, d, g];
|
|
@@ -27080,7 +27079,7 @@ class ZT {
|
|
|
27080
27079
|
const n = this.floor ? Math.floor(e) : e;
|
|
27081
27080
|
return this.inf.format(n);
|
|
27082
27081
|
} else {
|
|
27083
|
-
const n = this.floor ? Math.floor(e) :
|
|
27082
|
+
const n = this.floor ? Math.floor(e) : Sd(e, 3);
|
|
27084
27083
|
return Pn(n, this.padTo);
|
|
27085
27084
|
}
|
|
27086
27085
|
}
|
|
@@ -27096,7 +27095,7 @@ class JT {
|
|
|
27096
27095
|
e.offset !== 0 && io.create(p).valid ? (c = p, this.dt = e) : (c = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
27097
27096
|
} else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, c = e.zone.name) : (c = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
27098
27097
|
const d = { ...this.opts };
|
|
27099
|
-
d.timeZone = d.timeZone || c, this.dtf =
|
|
27098
|
+
d.timeZone = d.timeZone || c, this.dtf = Ju(n, d);
|
|
27100
27099
|
}
|
|
27101
27100
|
format() {
|
|
27102
27101
|
return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
|
|
@@ -27148,11 +27147,11 @@ class Qt {
|
|
|
27148
27147
|
);
|
|
27149
27148
|
}
|
|
27150
27149
|
static create(e, n, r, c, d = !1) {
|
|
27151
|
-
const g = e || bn.defaultLocale, p = g || (d ? "en-US" : zT()), C = n || bn.defaultNumberingSystem, v = r || bn.defaultOutputCalendar, x =
|
|
27150
|
+
const g = e || bn.defaultLocale, p = g || (d ? "en-US" : zT()), C = n || bn.defaultNumberingSystem, v = r || bn.defaultOutputCalendar, x = ed(c) || bn.defaultWeekSettings;
|
|
27152
27151
|
return new Qt(p, C, v, x, g);
|
|
27153
27152
|
}
|
|
27154
27153
|
static resetCache() {
|
|
27155
|
-
Yl = null,
|
|
27154
|
+
Yl = null, Zu = {}, Xu = {}, Qu = {};
|
|
27156
27155
|
}
|
|
27157
27156
|
static fromObject({ locale: e, numberingSystem: n, outputCalendar: r, weekSettings: c } = {}) {
|
|
27158
27157
|
return Qt.create(e, n, r, c);
|
|
@@ -27173,7 +27172,7 @@ class Qt {
|
|
|
27173
27172
|
e.locale || this.specifiedLocale,
|
|
27174
27173
|
e.numberingSystem || this.numberingSystem,
|
|
27175
27174
|
e.outputCalendar || this.outputCalendar,
|
|
27176
|
-
|
|
27175
|
+
ed(e.weekSettings) || this.weekSettings,
|
|
27177
27176
|
e.defaultToEN || !1
|
|
27178
27177
|
);
|
|
27179
27178
|
}
|
|
@@ -27472,7 +27471,7 @@ class bn {
|
|
|
27472
27471
|
* @param {WeekSettings|null} weekSettings
|
|
27473
27472
|
*/
|
|
27474
27473
|
static set defaultWeekSettings(e) {
|
|
27475
|
-
Sg =
|
|
27474
|
+
Sg = ed(e);
|
|
27476
27475
|
}
|
|
27477
27476
|
/**
|
|
27478
27477
|
* Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
|
|
@@ -27529,7 +27528,7 @@ function Zr(t, e) {
|
|
|
27529
27528
|
`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
|
|
27530
27529
|
);
|
|
27531
27530
|
}
|
|
27532
|
-
function
|
|
27531
|
+
function Td(t, e, n) {
|
|
27533
27532
|
const r = new Date(Date.UTC(t, e - 1, n));
|
|
27534
27533
|
t < 100 && t >= 0 && r.setUTCFullYear(r.getUTCFullYear() - 1900);
|
|
27535
27534
|
const c = r.getUTCDay();
|
|
@@ -27542,16 +27541,16 @@ function ym(t, e) {
|
|
|
27542
27541
|
const n = ra(t) ? mm : pm, r = n.findIndex((d) => d < e), c = e - n[r];
|
|
27543
27542
|
return { month: r + 1, day: c };
|
|
27544
27543
|
}
|
|
27545
|
-
function
|
|
27544
|
+
function xd(t, e) {
|
|
27546
27545
|
return (t - e + 7) % 7 + 1;
|
|
27547
27546
|
}
|
|
27548
27547
|
function fc(t, e = 4, n = 1) {
|
|
27549
|
-
const { year: r, month: c, day: d } = t, g = _m(r, c, d), p = Td(
|
|
27548
|
+
const { year: r, month: c, day: d } = t, g = _m(r, c, d), p = xd(Td(r, c, d), n);
|
|
27550
27549
|
let C = Math.floor((g - p + 14 - e) / 7), v;
|
|
27551
27550
|
return C < 1 ? (v = r - 1, C = Ql(v, e, n)) : C > Ql(r, e, n) ? (v = r + 1, C = 1) : v = r, { weekYear: v, weekNumber: C, weekday: p, ...vc(t) };
|
|
27552
27551
|
}
|
|
27553
27552
|
function wg(t, e = 4, n = 1) {
|
|
27554
|
-
const { weekYear: r, weekNumber: c, weekday: d } = t, g = Td(
|
|
27553
|
+
const { weekYear: r, weekNumber: c, weekday: d } = t, g = xd(Td(r, 1, e), n), p = Js(r);
|
|
27555
27554
|
let C = c * 7 + d - g - 7 + e, v;
|
|
27556
27555
|
C < 1 ? (v = r - 1, C += Js(v)) : C > p ? (v = r + 1, C -= Js(r)) : v = r;
|
|
27557
27556
|
const { month: x, day: O } = ym(v, C);
|
|
@@ -27643,7 +27642,7 @@ function sx(t, e) {
|
|
|
27643
27642
|
function Qs(t, e) {
|
|
27644
27643
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
27645
27644
|
}
|
|
27646
|
-
function
|
|
27645
|
+
function ed(t) {
|
|
27647
27646
|
if (t == null)
|
|
27648
27647
|
return null;
|
|
27649
27648
|
if (typeof t != "object")
|
|
@@ -27675,13 +27674,13 @@ function os(t) {
|
|
|
27675
27674
|
if (!(bt(t) || t === null || t === ""))
|
|
27676
27675
|
return parseFloat(t);
|
|
27677
27676
|
}
|
|
27678
|
-
function
|
|
27677
|
+
function vd(t) {
|
|
27679
27678
|
if (!(bt(t) || t === null || t === "")) {
|
|
27680
27679
|
const e = parseFloat("0." + t) * 1e3;
|
|
27681
27680
|
return Math.floor(e);
|
|
27682
27681
|
}
|
|
27683
27682
|
}
|
|
27684
|
-
function
|
|
27683
|
+
function Sd(t, e, n = !1) {
|
|
27685
27684
|
const r = 10 ** e;
|
|
27686
27685
|
return (n ? Math.trunc : Math.round)(t * r) / r;
|
|
27687
27686
|
}
|
|
@@ -27708,13 +27707,13 @@ function Tc(t) {
|
|
|
27708
27707
|
return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
|
|
27709
27708
|
}
|
|
27710
27709
|
function Ag(t, e, n) {
|
|
27711
|
-
return -Td(
|
|
27710
|
+
return -xd(Td(t, 1, e), n) + e - 1;
|
|
27712
27711
|
}
|
|
27713
27712
|
function Ql(t, e = 4, n = 1) {
|
|
27714
27713
|
const r = Ag(t, e, n), c = Ag(t + 1, e, n);
|
|
27715
27714
|
return (Js(t) - r + c) / 7;
|
|
27716
27715
|
}
|
|
27717
|
-
function
|
|
27716
|
+
function td(t) {
|
|
27718
27717
|
return t > 99 ? t : t > bn.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
|
27719
27718
|
}
|
|
27720
27719
|
function xm(t, e, n, r = null) {
|
|
@@ -28156,8 +28155,8 @@ function Lm(...t) {
|
|
|
28156
28155
|
return [r, null, n + c];
|
|
28157
28156
|
};
|
|
28158
28157
|
}
|
|
28159
|
-
const km = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Cx = `(?:${km.source}?(?:\\[(${bm.source})\\])?)?`,
|
|
28160
|
-
`${
|
|
28158
|
+
const km = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Cx = `(?:${km.source}?(?:\\[(${bm.source})\\])?)?`, wd = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Im = RegExp(`${wd.source}${Cx}`), Od = RegExp(`(?:T${Im.source})?`), Ex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Tx = /(\d{4})-?W(\d\d)(?:-?(\d))?/, xx = /(\d{4})-?(\d{3})/, vx = Lm("weekYear", "weekNumber", "weekDay"), Sx = Lm("year", "ordinal"), wx = /(\d{4})-(\d\d)-(\d\d)/, Pm = RegExp(
|
|
28159
|
+
`${wd.source} ?(?:${km.source}|(${bm.source}))?`
|
|
28161
28160
|
), Ox = RegExp(`(?: ${Pm.source})?`);
|
|
28162
28161
|
function Xs(t, e, n) {
|
|
28163
28162
|
const r = t[e];
|
|
@@ -28175,7 +28174,7 @@ function sl(t, e) {
|
|
|
28175
28174
|
hours: Xs(t, e, 0),
|
|
28176
28175
|
minutes: Xs(t, e + 1, 0),
|
|
28177
28176
|
seconds: Xs(t, e + 2, 0),
|
|
28178
|
-
milliseconds:
|
|
28177
|
+
milliseconds: vd(t[e + 3])
|
|
28179
28178
|
}, null, e + 4];
|
|
28180
28179
|
}
|
|
28181
28180
|
function ia(t, e) {
|
|
@@ -28186,7 +28185,7 @@ function oa(t, e) {
|
|
|
28186
28185
|
const n = t[e] ? io.create(t[e]) : null;
|
|
28187
28186
|
return [{}, n, e + 1];
|
|
28188
28187
|
}
|
|
28189
|
-
const Mx = RegExp(`^T?${
|
|
28188
|
+
const Mx = RegExp(`^T?${wd.source}$`), Ax = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
28190
28189
|
function Rx(t) {
|
|
28191
28190
|
const [e, n, r, c, d, g, p, C, v] = t, x = e[0] === "-", O = C && C[0] === "-", R = (b, T = !1) => b !== void 0 && (T || b && x) ? -b : b;
|
|
28192
28191
|
return [
|
|
@@ -28198,7 +28197,7 @@ function Rx(t) {
|
|
|
28198
28197
|
hours: R(os(g)),
|
|
28199
28198
|
minutes: R(os(p)),
|
|
28200
28199
|
seconds: R(os(C), C === "-0"),
|
|
28201
|
-
milliseconds: R(
|
|
28200
|
+
milliseconds: R(vd(v), O)
|
|
28202
28201
|
}
|
|
28203
28202
|
];
|
|
28204
28203
|
}
|
|
@@ -28213,9 +28212,9 @@ const bx = {
|
|
|
28213
28212
|
PDT: -7 * 60,
|
|
28214
28213
|
PST: -8 * 60
|
|
28215
28214
|
};
|
|
28216
|
-
function
|
|
28215
|
+
function Dd(t, e, n, r, c, d, g) {
|
|
28217
28216
|
const p = {
|
|
28218
|
-
year: e.length === 2 ?
|
|
28217
|
+
year: e.length === 2 ? td(Mo(e)) : Mo(e),
|
|
28219
28218
|
month: Sm.indexOf(n) + 1,
|
|
28220
28219
|
day: Mo(r),
|
|
28221
28220
|
hour: Mo(c),
|
|
@@ -28238,7 +28237,7 @@ function kx(t) {
|
|
|
28238
28237
|
v,
|
|
28239
28238
|
x,
|
|
28240
28239
|
O
|
|
28241
|
-
] = t, R =
|
|
28240
|
+
] = t, R = Dd(e, c, r, n, d, g, p);
|
|
28242
28241
|
let b;
|
|
28243
28242
|
return C ? b = bx[C] : v ? b = 0 : b = xc(x, O), [R, new fr(b)];
|
|
28244
28243
|
}
|
|
@@ -28248,13 +28247,13 @@ function Ix(t) {
|
|
|
28248
28247
|
const Px = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, $x = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, Fx = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
28249
28248
|
function bg(t) {
|
|
28250
28249
|
const [, e, n, r, c, d, g, p] = t;
|
|
28251
|
-
return [
|
|
28250
|
+
return [Dd(e, c, r, n, d, g, p), fr.utcInstance];
|
|
28252
28251
|
}
|
|
28253
28252
|
function Bx(t) {
|
|
28254
28253
|
const [, e, n, r, c, d, g, p] = t;
|
|
28255
|
-
return [
|
|
28254
|
+
return [Dd(e, p, n, r, c, d, g), fr.utcInstance];
|
|
28256
28255
|
}
|
|
28257
|
-
const Hx = rl(Ex,
|
|
28256
|
+
const Hx = rl(Ex, Od), Wx = rl(Tx, Od), Kx = rl(xx, Od), zx = rl(Im), $m = il(
|
|
28258
28257
|
Dx,
|
|
28259
28258
|
sl,
|
|
28260
28259
|
ia,
|
|
@@ -28688,7 +28687,7 @@ class Yt {
|
|
|
28688
28687
|
toISO() {
|
|
28689
28688
|
if (!this.isValid) return null;
|
|
28690
28689
|
let e = "P";
|
|
28691
|
-
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e +=
|
|
28690
|
+
return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += Sd(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
|
|
28692
28691
|
}
|
|
28693
28692
|
/**
|
|
28694
28693
|
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
|
@@ -29679,7 +29678,7 @@ function cv(t, e, n, r) {
|
|
|
29679
29678
|
const x = Yt.fromObject(d, r);
|
|
29680
29679
|
return v.length > 0 ? Yt.fromMillis(C, r).shiftTo(...v).plus(x) : x;
|
|
29681
29680
|
}
|
|
29682
|
-
const
|
|
29681
|
+
const Md = {
|
|
29683
29682
|
arab: "[٠-٩]",
|
|
29684
29683
|
arabext: "[۰-۹]",
|
|
29685
29684
|
bali: "[᭐-᭙]",
|
|
@@ -29721,14 +29720,14 @@ const Dd = {
|
|
|
29721
29720
|
telu: [3174, 3183],
|
|
29722
29721
|
thai: [3664, 3673],
|
|
29723
29722
|
tibt: [3872, 3881]
|
|
29724
|
-
}, uv =
|
|
29723
|
+
}, uv = Md.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
29725
29724
|
function dv(t) {
|
|
29726
29725
|
let e = parseInt(t, 10);
|
|
29727
29726
|
if (isNaN(e)) {
|
|
29728
29727
|
e = "";
|
|
29729
29728
|
for (let n = 0; n < t.length; n++) {
|
|
29730
29729
|
const r = t.charCodeAt(n);
|
|
29731
|
-
if (t[n].search(
|
|
29730
|
+
if (t[n].search(Md.hanidec) !== -1)
|
|
29732
29731
|
e += uv.indexOf(t[n]);
|
|
29733
29732
|
else
|
|
29734
29733
|
for (const c in Pg) {
|
|
@@ -29741,7 +29740,7 @@ function dv(t) {
|
|
|
29741
29740
|
return e;
|
|
29742
29741
|
}
|
|
29743
29742
|
function hi({ numberingSystem: t }, e = "") {
|
|
29744
|
-
return new RegExp(`${
|
|
29743
|
+
return new RegExp(`${Md[t || "latn"]}${e}`);
|
|
29745
29744
|
}
|
|
29746
29745
|
const fv = "missing Intl.DateTimeFormat.formatToParts support";
|
|
29747
29746
|
function Zt(t, e = (n) => n) {
|
|
@@ -29781,7 +29780,7 @@ function mv(t, e) {
|
|
|
29781
29780
|
case "y":
|
|
29782
29781
|
return Zt(v);
|
|
29783
29782
|
case "yy":
|
|
29784
|
-
return Zt(O,
|
|
29783
|
+
return Zt(O, td);
|
|
29785
29784
|
case "yyyy":
|
|
29786
29785
|
return Zt(d);
|
|
29787
29786
|
case "yyyyy":
|
|
@@ -29847,7 +29846,7 @@ function mv(t, e) {
|
|
|
29847
29846
|
case "kkkk":
|
|
29848
29847
|
return Zt(d);
|
|
29849
29848
|
case "kk":
|
|
29850
|
-
return Zt(O,
|
|
29849
|
+
return Zt(O, td);
|
|
29851
29850
|
case "W":
|
|
29852
29851
|
return Zt(p);
|
|
29853
29852
|
case "WW":
|
|
@@ -29993,7 +29992,7 @@ function Ev(t) {
|
|
|
29993
29992
|
}
|
|
29994
29993
|
};
|
|
29995
29994
|
let n = null, r;
|
|
29996
|
-
return bt(t.z) || (n = io.create(t.z)), bt(t.Z) || (n || (n = new fr(t.Z)), r = t.Z), bt(t.q) || (t.M = (t.q - 1) * 3 + 1), bt(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), bt(t.u) || (t.S =
|
|
29995
|
+
return bt(t.z) || (n = io.create(t.z)), bt(t.Z) || (n || (n = new fr(t.Z)), r = t.Z), bt(t.q) || (t.M = (t.q - 1) * 3 + 1), bt(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), bt(t.u) || (t.S = vd(t.u)), [Object.keys(t).reduce((d, g) => {
|
|
29997
29996
|
const p = e(g);
|
|
29998
29997
|
return p && (d[p] = t[g]), d;
|
|
29999
29998
|
}, {}), n, r];
|
|
@@ -30224,7 +30223,7 @@ function zg(t, e) {
|
|
|
30224
30223
|
return new Ot({ ts: d, zone: n, loc: r, o: g });
|
|
30225
30224
|
}
|
|
30226
30225
|
function Ug(t, e, n) {
|
|
30227
|
-
const r = bt(n.round) ? !0 : n.round, c = (g, p) => (g =
|
|
30226
|
+
const r = bt(n.round) ? !0 : n.round, c = (g, p) => (g = Sd(g, r || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(g, p)), d = (g) => n.calendary ? e.hasSame(t, g) ? 0 : e.startOf(g).diff(t.startOf(g), g).get(g) : e.diff(t, g).get(g);
|
|
30228
30227
|
if (n.unit)
|
|
30229
30228
|
return c(d(n.unit), n.unit);
|
|
30230
30229
|
for (const g of n.units) {
|
|
@@ -31735,7 +31734,7 @@ function zl(t) {
|
|
|
31735
31734
|
);
|
|
31736
31735
|
}
|
|
31737
31736
|
var Jt = /* @__PURE__ */ ((t) => (t.Monday = "MONDAY", t.Tuesday = "TUESDAY", t.Wednesday = "WEDNESDAY", t.Thursday = "THURSDAY", t.Friday = "FRIDAY", t.Saturday = "SATURDAY", t.Sunday = "SUNDAY", t))(Jt || {});
|
|
31738
|
-
function
|
|
31737
|
+
function Ad(t) {
|
|
31739
31738
|
const e = {
|
|
31740
31739
|
1: Jt.Monday,
|
|
31741
31740
|
2: Jt.Tuesday,
|
|
@@ -31922,7 +31921,7 @@ class Vm {
|
|
|
31922
31921
|
getNormalHours(e) {
|
|
31923
31922
|
if (this.isTemporarilyClosedAt(e))
|
|
31924
31923
|
return null;
|
|
31925
|
-
const n = Bi(
|
|
31924
|
+
const n = Bi(Ad(e)).toLowerCase();
|
|
31926
31925
|
return this.hours[n];
|
|
31927
31926
|
}
|
|
31928
31927
|
/**
|
|
@@ -32102,7 +32101,7 @@ function Bv(t, e) {
|
|
|
32102
32101
|
function Hv(t, e, n) {
|
|
32103
32102
|
const r = [];
|
|
32104
32103
|
for (let c = 1; c <= 7; c++) {
|
|
32105
|
-
const d = Ot.fromObject({ weekday: c }), g =
|
|
32104
|
+
const d = Ot.fromObject({ weekday: c }), g = Ad(d);
|
|
32106
32105
|
r.push({
|
|
32107
32106
|
startDay: g,
|
|
32108
32107
|
endDay: g,
|
|
@@ -32125,7 +32124,7 @@ const WS = (t) => {
|
|
|
32125
32124
|
let g = Hv(d, c, t.dayOfWeekNames);
|
|
32126
32125
|
function p(x) {
|
|
32127
32126
|
return x ? {
|
|
32128
|
-
today:
|
|
32127
|
+
today: Ad(c),
|
|
32129
32128
|
monday: Jt.Monday,
|
|
32130
32129
|
tuesday: Jt.Tuesday,
|
|
32131
32130
|
wednesday: Jt.Wednesday,
|
|
@@ -32166,7 +32165,7 @@ const WS = (t) => {
|
|
|
32166
32165
|
x.dayName
|
|
32167
32166
|
);
|
|
32168
32167
|
}) }) });
|
|
32169
|
-
},
|
|
32168
|
+
}, nd = Math.log2(1.6745627884839434), Wv = 4, Kv = 19, rd = "js-baidu-neg-lng-fix";
|
|
32170
32169
|
let qm;
|
|
32171
32170
|
const zv = new Promise((t) => qm = t), Uv = "https://api.map.baidu.com/geoconv/v1/";
|
|
32172
32171
|
let Ul = [];
|
|
@@ -32247,7 +32246,7 @@ class jv extends tl {
|
|
|
32247
32246
|
* @inheritdoc
|
|
32248
32247
|
*/
|
|
32249
32248
|
getZoom() {
|
|
32250
|
-
return this.map.getZoom() -
|
|
32249
|
+
return this.map.getZoom() - nd;
|
|
32251
32250
|
}
|
|
32252
32251
|
/**
|
|
32253
32252
|
* @inheritdoc
|
|
@@ -32269,7 +32268,7 @@ class jv extends tl {
|
|
|
32269
32268
|
this.map.setViewport(
|
|
32270
32269
|
{
|
|
32271
32270
|
center: this.map.getCenter(),
|
|
32272
|
-
zoom: Math.floor(e +
|
|
32271
|
+
zoom: Math.floor(e + nd)
|
|
32273
32272
|
// Baidu only allows integer zoom
|
|
32274
32273
|
},
|
|
32275
32274
|
{ enableAnimation: n }
|
|
@@ -32321,7 +32320,7 @@ class Vv extends mc {
|
|
|
32321
32320
|
n.latitude
|
|
32322
32321
|
)
|
|
32323
32322
|
), this._wrapper && this._wrapper.classList[this._negativeLngFix ? "add" : "remove"](
|
|
32324
|
-
|
|
32323
|
+
rd
|
|
32325
32324
|
);
|
|
32326
32325
|
}
|
|
32327
32326
|
);
|
|
@@ -32346,7 +32345,7 @@ class Vv extends mc {
|
|
|
32346
32345
|
* @returns {string}
|
|
32347
32346
|
*/
|
|
32348
32347
|
_getClass() {
|
|
32349
|
-
return `${this._originalWrapperClass} ${this._negativeLngFix ?
|
|
32348
|
+
return `${this._originalWrapperClass} ${this._negativeLngFix ? rd : ""} ${this._wrapperClass}`;
|
|
32350
32349
|
}
|
|
32351
32350
|
}
|
|
32352
32351
|
const qv = "https://api.map.baidu.com/getscript";
|
|
@@ -32362,8 +32361,8 @@ function Zv(t, e, n, { params: r = {}, version: c = "3.0" } = {}) {
|
|
|
32362
32361
|
p.src = qv + "?" + Object.entries(g).map(([x, O]) => x + "=" + O).join("&"), p.onload = () => t(), document.head.appendChild(p);
|
|
32363
32362
|
let C = "";
|
|
32364
32363
|
for (let x = Wv; x <= Kv; x++) {
|
|
32365
|
-
const O = 2 ** (x -
|
|
32366
|
-
C += `[data-baidu-zoom="${x}"] .${
|
|
32364
|
+
const O = 2 ** (x - nd + 7);
|
|
32365
|
+
C += `[data-baidu-zoom="${x}"] .${rd}{transform:translateX(-${O}px);}`;
|
|
32367
32366
|
}
|
|
32368
32367
|
const v = document.createElement("style");
|
|
32369
32368
|
v.appendChild(document.createTextNode(C)), document.head.appendChild(v);
|
|
@@ -32658,7 +32657,7 @@ let Xm = class extends tl {
|
|
|
32658
32657
|
};
|
|
32659
32658
|
c.accessToken = this.constructor.apiKey, L.tileLayer(r, c).addTo(this.map);
|
|
32660
32659
|
}
|
|
32661
|
-
}, oS = class extends
|
|
32660
|
+
}, oS = class extends sd {
|
|
32662
32661
|
/**
|
|
32663
32662
|
* @param {module:@yext/components-maps~ProviderPinOptions} options
|
|
32664
32663
|
*/
|
|
@@ -32732,38 +32731,39 @@ function dS(t, e, n, { version: r = "v1.3.2" } = {}) {
|
|
|
32732
32731
|
}
|
|
32733
32732
|
const jS = new gs().withLoadFunction(dS).withMapClass(cS).withPinClass(uS).withProviderName("MapQuest").build();
|
|
32734
32733
|
export {
|
|
32735
|
-
|
|
32734
|
+
uN as $,
|
|
32736
32735
|
mS as A,
|
|
32737
|
-
|
|
32738
|
-
|
|
32739
|
-
|
|
32740
|
-
|
|
32741
|
-
|
|
32742
|
-
|
|
32743
|
-
|
|
32736
|
+
NS as B,
|
|
32737
|
+
CS as C,
|
|
32738
|
+
ES as D,
|
|
32739
|
+
_S as E,
|
|
32740
|
+
zu as F,
|
|
32741
|
+
np as G,
|
|
32742
|
+
yS as H,
|
|
32744
32743
|
TS as I,
|
|
32745
|
-
|
|
32746
|
-
|
|
32744
|
+
cs as J,
|
|
32745
|
+
Qy as K,
|
|
32747
32746
|
z_ as L,
|
|
32748
|
-
|
|
32749
|
-
|
|
32750
|
-
|
|
32751
|
-
|
|
32752
|
-
|
|
32753
|
-
|
|
32754
|
-
|
|
32755
|
-
|
|
32756
|
-
|
|
32757
|
-
|
|
32758
|
-
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32747
|
+
of as M,
|
|
32748
|
+
xS as N,
|
|
32749
|
+
hN as O,
|
|
32750
|
+
SS as P,
|
|
32751
|
+
dp as Q,
|
|
32752
|
+
OS as R,
|
|
32753
|
+
wS as S,
|
|
32754
|
+
DS as T,
|
|
32755
|
+
MS as U,
|
|
32756
|
+
BS as V,
|
|
32757
|
+
HS as W,
|
|
32758
|
+
WS as X,
|
|
32759
|
+
Jt as Y,
|
|
32760
|
+
KS as Z,
|
|
32761
|
+
zS as _,
|
|
32763
32762
|
FS as a,
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
|
|
32763
|
+
US as a0,
|
|
32764
|
+
Qm as a1,
|
|
32765
|
+
jS as a2,
|
|
32766
|
+
nn as a3,
|
|
32767
32767
|
Jg as b,
|
|
32768
32768
|
Jl as c,
|
|
32769
32769
|
PS as d,
|
|
@@ -32781,12 +32781,12 @@ export {
|
|
|
32781
32781
|
Wl as p,
|
|
32782
32782
|
LS as q,
|
|
32783
32783
|
uE as r,
|
|
32784
|
-
|
|
32784
|
+
pd as s,
|
|
32785
32785
|
sE as t,
|
|
32786
32786
|
ZC as u,
|
|
32787
32787
|
jp as v,
|
|
32788
32788
|
pS as w,
|
|
32789
|
-
|
|
32789
|
+
zy as x,
|
|
32790
32790
|
tp as y,
|
|
32791
32791
|
ea as z
|
|
32792
32792
|
};
|