ghost 5.92.0 → 5.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/tryghost-adapter-cache-memory-ttl-5.94.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.94.0.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.92.0.tgz → tryghost-adapter-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-announcement-bar-settings-5.92.0.tgz → tryghost-announcement-bar-settings-5.94.0.tgz} +0 -0
- package/components/{tryghost-api-framework-5.92.0.tgz → tryghost-api-framework-5.94.0.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.92.0.tgz → tryghost-api-version-compatibility-service-5.94.0.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.94.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.94.0.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.92.0.tgz → tryghost-bootstrap-socket-5.94.0.tgz} +0 -0
- package/components/{tryghost-collections-5.92.0.tgz → tryghost-collections-5.94.0.tgz} +0 -0
- package/components/{tryghost-constants-5.92.0.tgz → tryghost-constants-5.94.0.tgz} +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.92.0.tgz → tryghost-custom-theme-settings-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-data-generator-5.92.0.tgz → tryghost-data-generator-5.94.0.tgz} +0 -0
- package/components/{tryghost-domain-events-5.92.0.tgz → tryghost-domain-events-5.94.0.tgz} +0 -0
- package/components/tryghost-donations-5.94.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.94.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.94.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.94.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.94.0.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.92.0.tgz → tryghost-email-content-generator-5.94.0.tgz} +0 -0
- package/components/{tryghost-email-events-5.92.0.tgz → tryghost-email-events-5.94.0.tgz} +0 -0
- package/components/tryghost-email-service-5.94.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.94.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.94.0.tgz +0 -0
- package/components/{tryghost-external-media-inliner-5.92.0.tgz → tryghost-external-media-inliner-5.94.0.tgz} +0 -0
- package/components/tryghost-extract-api-key-5.94.0.tgz +0 -0
- package/components/tryghost-ghost-5.94.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.94.0.tgz +0 -0
- package/components/{tryghost-i18n-5.92.0.tgz → tryghost-i18n-5.94.0.tgz} +0 -0
- package/components/{tryghost-importer-handler-content-files-5.92.0.tgz → tryghost-importer-handler-content-files-5.94.0.tgz} +0 -0
- package/components/{tryghost-importer-revue-5.92.0.tgz → tryghost-importer-revue-5.94.0.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.94.0.tgz +0 -0
- package/components/{tryghost-job-manager-5.92.0.tgz → tryghost-job-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-link-redirects-5.92.0.tgz → tryghost-link-redirects-5.94.0.tgz} +0 -0
- package/components/tryghost-link-replacer-5.94.0.tgz +0 -0
- package/components/{tryghost-link-tracking-5.92.0.tgz → tryghost-link-tracking-5.94.0.tgz} +0 -0
- package/components/{tryghost-magic-link-5.92.0.tgz → tryghost-magic-link-5.94.0.tgz} +0 -0
- package/components/{tryghost-mail-events-5.92.0.tgz → tryghost-mail-events-5.94.0.tgz} +0 -0
- package/components/tryghost-mailgun-client-5.94.0.tgz +0 -0
- package/components/{tryghost-member-attribution-5.92.0.tgz → tryghost-member-attribution-5.94.0.tgz} +0 -0
- package/components/{tryghost-member-events-5.92.0.tgz → tryghost-member-events-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-api-5.92.0.tgz → tryghost-members-api-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-csv-5.92.0.tgz → tryghost-members-csv-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-events-service-5.92.0.tgz → tryghost-members-events-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-importer-5.92.0.tgz → tryghost-members-importer-5.94.0.tgz} +0 -0
- package/components/tryghost-members-offers-5.94.0.tgz +0 -0
- package/components/tryghost-members-payments-5.94.0.tgz +0 -0
- package/components/{tryghost-members-ssr-5.92.0.tgz → tryghost-members-ssr-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.92.0.tgz → tryghost-members-stripe-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-mentions-email-report-5.92.0.tgz → tryghost-mentions-email-report-5.94.0.tgz} +0 -0
- package/components/tryghost-milestones-5.94.0.tgz +0 -0
- package/components/tryghost-minifier-5.94.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.94.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.94.0.tgz +0 -0
- package/components/{tryghost-mw-cache-control-5.92.0.tgz → tryghost-mw-cache-control-5.94.0.tgz} +0 -0
- package/components/tryghost-mw-error-handler-5.94.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.94.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.94.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.94.0.tgz +0 -0
- package/components/{tryghost-mw-vhost-5.92.0.tgz → tryghost-mw-vhost-5.94.0.tgz} +0 -0
- package/components/tryghost-nql-filter-expansions-5.94.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.94.0.tgz +0 -0
- package/components/{tryghost-package-json-5.92.0.tgz → tryghost-package-json-5.94.0.tgz} +0 -0
- package/components/tryghost-post-events-5.94.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.94.0.tgz +0 -0
- package/components/{tryghost-posts-service-5.92.0.tgz → tryghost-posts-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-recommendations-5.92.0.tgz → tryghost-recommendations-5.94.0.tgz} +0 -0
- package/components/tryghost-referrers-5.94.0.tgz +0 -0
- package/components/{tryghost-security-5.92.0.tgz → tryghost-security-5.94.0.tgz} +0 -0
- package/components/{tryghost-session-service-5.92.0.tgz → tryghost-session-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-settings-path-manager-5.92.0.tgz → tryghost-settings-path-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-slack-notifications-5.92.0.tgz → tryghost-slack-notifications-5.94.0.tgz} +0 -0
- package/components/{tryghost-staff-service-5.92.0.tgz → tryghost-staff-service-5.94.0.tgz} +0 -0
- package/components/tryghost-stats-service-5.94.0.tgz +0 -0
- package/components/tryghost-tiers-5.94.0.tgz +0 -0
- package/components/{tryghost-update-check-service-5.92.0.tgz → tryghost-update-check-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-verification-trigger-5.92.0.tgz → tryghost-verification-trigger-5.94.0.tgz} +0 -0
- package/components/{tryghost-version-notifications-data-service-5.92.0.tgz → tryghost-version-notifications-data-service-5.94.0.tgz} +0 -0
- package/components/tryghost-webmentions-5.94.0.tgz +0 -0
- package/core/app.js +22 -0
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
- package/core/built/admin/assets/admin-x-activitypub/{index-5eac6af1.mjs → index-51277f76.mjs} +3000 -2661
- package/core/built/admin/assets/admin-x-activitypub/modals-c85985ad.mjs +815 -0
- package/core/built/admin/assets/{chunk.524.1bc6b183876a00383f90.js → chunk.524.b9da8e9c62fc112baf2b.js} +5 -5
- package/core/built/admin/assets/{chunk.582.9682daf3be0962298c43.js → chunk.582.27ddbcbd7a6e7a439db8.js} +6 -6
- package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js → chunk.785.78610bd253a9e2419ec9.js} +27 -20
- package/core/built/admin/assets/{ghost-acdb9966c24d49e97ac26215cb4933e1.js → ghost-535088daf62c8cbea78a012bb6bbafc6.js} +866 -827
- package/core/built/admin/assets/ghost-d1c51d3a2d840dda5aa7b4ffe6057756.css +1 -0
- package/core/built/admin/assets/ghost-dark-98b3a7e593292a7cb410609e17727a3c.css +1 -0
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +207 -197
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +26 -26
- package/core/built/admin/assets/{vendor-bff75d127fcf4a75c8a83b473bdb308f.js → vendor-649dc64bfd9ecc1bd7361b53680dfdc2.js} +19 -17
- package/core/built/admin/index.html +6 -6
- package/core/server/data/migrations/versions/5.93/2024-09-03-18-51-01-update-stripe-prices-nickname-length.js +19 -0
- package/core/server/data/migrations/versions/5.94/2024-09-03-20-09-40-null-analytics-jobs-timings.js +20 -0
- package/core/server/data/schema/schema.js +1 -1
- package/core/server/services/email-analytics/EmailAnalyticsServiceWrapper.js +49 -11
- package/core/server/services/email-analytics/lib/queries.js +154 -30
- package/core/server/services/oembed/service.js +2 -1
- package/package.json +150 -150
- package/yarn.lock +48 -58
- package/components/tryghost-adapter-cache-memory-ttl-5.92.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.92.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.92.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.92.0.tgz +0 -0
- package/components/tryghost-donations-5.92.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.92.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.92.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.92.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.92.0.tgz +0 -0
- package/components/tryghost-email-service-5.92.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.92.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.92.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.92.0.tgz +0 -0
- package/components/tryghost-ghost-5.92.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.92.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.92.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.92.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.92.0.tgz +0 -0
- package/components/tryghost-members-offers-5.92.0.tgz +0 -0
- package/components/tryghost-members-payments-5.92.0.tgz +0 -0
- package/components/tryghost-milestones-5.92.0.tgz +0 -0
- package/components/tryghost-minifier-5.92.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.92.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.92.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.92.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.92.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.92.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.92.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.92.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.92.0.tgz +0 -0
- package/components/tryghost-post-events-5.92.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.92.0.tgz +0 -0
- package/components/tryghost-referrers-5.92.0.tgz +0 -0
- package/components/tryghost-stats-service-5.92.0.tgz +0 -0
- package/components/tryghost-tiers-5.92.0.tgz +0 -0
- package/components/tryghost-webmentions-5.92.0.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/modals-62a088d9.mjs +0 -965
- package/core/built/admin/assets/ghost-8c20f019d522f17d318e799568924958.css +0 -1
- package/core/built/admin/assets/ghost-dark-b27530aaada81101d641ff1ca5f5df6b.css +0 -1
- /package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js.LICENSE.txt → chunk.785.78610bd253a9e2419ec9.js.LICENSE.txt} +0 -0
|
@@ -7,7 +7,7 @@ import dj, { createPortal as hj } from "react-dom";
|
|
|
7
7
|
(function() {
|
|
8
8
|
try {
|
|
9
9
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
10
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
10
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "bce9c4fc-f97a-4a3d-9b4b-4a3277a2ce17", t._sentryDebugIdIdentifier = "sentry-dbid-bce9c4fc-f97a-4a3d-9b4b-4a3277a2ce17");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -2636,15 +2636,15 @@ function ef(t, e) {
|
|
|
2636
2636
|
let Tt = L.anchorNode, Lt = L.focusNode, Fe = L.anchorOffset, De = L.focusOffset, oe = document.activeElement;
|
|
2637
2637
|
if (!(M.has("collaboration") && oe !== i || oe !== null && z6(oe)))
|
|
2638
2638
|
if (kt(a)) {
|
|
2639
|
-
var Z = a.anchor, G = a.focus, H = Z.key, R = G.key, q = By(t, H), V = By(t, R), K = Z.offset, te = G.offset, se = a.format, fe = a.style, U = a.isCollapsed(), F = q, ae = V,
|
|
2639
|
+
var Z = a.anchor, G = a.focus, H = Z.key, R = G.key, q = By(t, H), V = By(t, R), K = Z.offset, te = G.offset, se = a.format, fe = a.style, U = a.isCollapsed(), F = q, ae = V, ue = !1;
|
|
2640
2640
|
if (Z.type === "text") {
|
|
2641
2641
|
F = Ry(q);
|
|
2642
2642
|
let Re = Z.getNode();
|
|
2643
|
-
|
|
2643
|
+
ue = Re.getFormat() !== se || Re.getStyle() !== fe;
|
|
2644
2644
|
} else
|
|
2645
|
-
kt(o) && o.anchor.type === "text" && (
|
|
2645
|
+
kt(o) && o.anchor.type === "text" && (ue = !0);
|
|
2646
2646
|
if (G.type === "text" && (ae = Ry(V)), F !== null && ae !== null) {
|
|
2647
|
-
if (U && (o === null ||
|
|
2647
|
+
if (U && (o === null || ue || kt(o) && (o.format !== se || o.style !== fe))) {
|
|
2648
2648
|
var ve = performance.now();
|
|
2649
2649
|
wF = [se, fe, K, H, ve];
|
|
2650
2650
|
}
|
|
@@ -7303,13 +7303,13 @@ function Bo() {
|
|
|
7303
7303
|
return K;
|
|
7304
7304
|
const te = this.options.loose, se = te ? l[u.HYPHENRANGELOOSE] : l[u.HYPHENRANGE];
|
|
7305
7305
|
R = R.replace(se, Z(this.options.includePrerelease)), o("hyphen replace", R), R = R.replace(l[u.COMPARATORTRIM], f), o("comparator trim", R), R = R.replace(l[u.TILDETRIM], d), o("tilde trim", R), R = R.replace(l[u.CARETTRIM], h), o("caret trim", R);
|
|
7306
|
-
let fe = R.split(" ").map((
|
|
7307
|
-
te && (fe = fe.filter((
|
|
7308
|
-
const U = /* @__PURE__ */ new Map(), F = fe.map((
|
|
7309
|
-
for (const
|
|
7310
|
-
if (k(
|
|
7311
|
-
return [
|
|
7312
|
-
U.set(
|
|
7306
|
+
let fe = R.split(" ").map((ue) => S(ue, this.options)).join(" ").split(/\s+/).map((ue) => L(ue, this.options));
|
|
7307
|
+
te && (fe = fe.filter((ue) => (o("loose invalid filter", ue, this.options), !!ue.match(l[u.COMPARATORLOOSE])))), o("range list", fe);
|
|
7308
|
+
const U = /* @__PURE__ */ new Map(), F = fe.map((ue) => new s(ue, this.options));
|
|
7309
|
+
for (const ue of F) {
|
|
7310
|
+
if (k(ue))
|
|
7311
|
+
return [ue];
|
|
7312
|
+
U.set(ue.value, ue);
|
|
7313
7313
|
}
|
|
7314
7314
|
U.size > 1 && U.has("") && U.delete("");
|
|
7315
7315
|
const ae = [...U.values()];
|
|
@@ -7370,10 +7370,10 @@ function Bo() {
|
|
|
7370
7370
|
const q = R.loose ? l[u.XRANGELOOSE] : l[u.XRANGE];
|
|
7371
7371
|
return H.replace(q, (V, K, te, se, fe, U) => {
|
|
7372
7372
|
o("xRange", H, V, K, te, se, fe, U);
|
|
7373
|
-
const F = C(te), ae = F || C(se),
|
|
7374
|
-
return K === "=" && ve && (K = ""), U = R.includePrerelease ? "-0" : "", F ? K === ">" || K === "<" ? V = "<0.0.0-0" : V = "*" : K && ve ? (ae && (se = 0), fe = 0, K === ">" ? (K = ">=", ae ? (te = +te + 1, se = 0, fe = 0) : (se = +se + 1, fe = 0)) : K === "<=" && (K = "<", ae ? te = +te + 1 : se = +se + 1), K === "<" && (U = "-0"), V = `${K + te}.${se}.${fe}${U}`) : ae ? V = `>=${te}.0.0${U} <${+te + 1}.0.0-0` :
|
|
7373
|
+
const F = C(te), ae = F || C(se), ue = ae || C(fe), ve = ue;
|
|
7374
|
+
return K === "=" && ve && (K = ""), U = R.includePrerelease ? "-0" : "", F ? K === ">" || K === "<" ? V = "<0.0.0-0" : V = "*" : K && ve ? (ae && (se = 0), fe = 0, K === ">" ? (K = ">=", ae ? (te = +te + 1, se = 0, fe = 0) : (se = +se + 1, fe = 0)) : K === "<=" && (K = "<", ae ? te = +te + 1 : se = +se + 1), K === "<" && (U = "-0"), V = `${K + te}.${se}.${fe}${U}`) : ae ? V = `>=${te}.0.0${U} <${+te + 1}.0.0-0` : ue && (V = `>=${te}.${se}.0${U} <${te}.${+se + 1}.0-0`), o("xRange return", V), V;
|
|
7375
7375
|
});
|
|
7376
|
-
}, Q = (H, R) => (o("replaceStars", H, R), H.trim().replace(l[u.STAR], "")), L = (H, R) => (o("replaceGTE0", H, R), H.trim().replace(l[R.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Z = (H) => (R, q, V, K, te, se, fe, U, F, ae,
|
|
7376
|
+
}, Q = (H, R) => (o("replaceStars", H, R), H.trim().replace(l[u.STAR], "")), L = (H, R) => (o("replaceGTE0", H, R), H.trim().replace(l[R.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Z = (H) => (R, q, V, K, te, se, fe, U, F, ae, ue, ve) => (C(V) ? q = "" : C(K) ? q = `>=${V}.0.0${H ? "-0" : ""}` : C(te) ? q = `>=${V}.${K}.0${H ? "-0" : ""}` : se ? q = `>=${q}` : q = `>=${q}${H ? "-0" : ""}`, C(F) ? U = "" : C(ae) ? U = `<${+F + 1}.0.0-0` : C(ue) ? U = `<${F}.${+ae + 1}.0-0` : ve ? U = `<=${F}.${ae}.${ue}-${ve}` : H ? U = `<${F}.${ae}.${+ue + 1}-0` : U = `<=${U}`, `${q} ${U}`.trim()), G = (H, R, q) => {
|
|
7377
7377
|
for (let V = 0; V < H.length; V++)
|
|
7378
7378
|
if (!H[V].test(R))
|
|
7379
7379
|
return !1;
|
|
@@ -16081,7 +16081,7 @@ function ui({
|
|
|
16081
16081
|
static get urlTransformMap() {
|
|
16082
16082
|
let s = {};
|
|
16083
16083
|
return e.forEach((o) => {
|
|
16084
|
-
o.urlType && (s[o.name] = o.urlType);
|
|
16084
|
+
o.urlType && (o.urlPath ? s[o.urlPath] = o.urlType : s[o.name] = o.urlType);
|
|
16085
16085
|
}), s;
|
|
16086
16086
|
}
|
|
16087
16087
|
/**
|
|
@@ -17638,7 +17638,7 @@ function y0e(t, e) {
|
|
|
17638
17638
|
</div>
|
|
17639
17639
|
</div>
|
|
17640
17640
|
${l ? `<div class="kg-bookmark-thumbnail" style="background-image: url('${l}')">
|
|
17641
|
-
<img src="${l}" alt=""></div>` : ""}
|
|
17641
|
+
<img src="${l}" alt="" onerror="this.style.display='none'"></div>` : ""}
|
|
17642
17642
|
</a>
|
|
17643
17643
|
${u ? `<figcaption>${u}</figcaption>` : ""}
|
|
17644
17644
|
</figure>
|
|
@@ -17725,7 +17725,7 @@ function w0e(t, e) {
|
|
|
17725
17725
|
const f = e.createElement("div");
|
|
17726
17726
|
f.setAttribute("class", "kg-bookmark-thumbnail"), s.appendChild(f);
|
|
17727
17727
|
const d = e.createElement("img");
|
|
17728
|
-
d.src = u.thumbnail, d.alt = "", f.appendChild(d);
|
|
17728
|
+
d.src = u.thumbnail, d.alt = "", d.setAttribute("onerror", "this.style.display = 'none'"), f.appendChild(d);
|
|
17729
17729
|
}
|
|
17730
17730
|
if (i) {
|
|
17731
17731
|
const f = e.createElement("figcaption");
|
|
@@ -17762,10 +17762,12 @@ let p1 = class extends ui({
|
|
|
17762
17762
|
default: ""
|
|
17763
17763
|
}, {
|
|
17764
17764
|
name: "icon",
|
|
17765
|
+
urlPath: "metadata.icon",
|
|
17765
17766
|
default: "",
|
|
17766
17767
|
urlType: "url"
|
|
17767
17768
|
}, {
|
|
17768
17769
|
name: "thumbnail",
|
|
17770
|
+
urlPath: "metadata.thumbnail",
|
|
17769
17771
|
default: "",
|
|
17770
17772
|
urlType: "url"
|
|
17771
17773
|
}]
|
|
@@ -30713,10 +30715,10 @@ function Fye(t) {
|
|
|
30713
30715
|
} else {
|
|
30714
30716
|
let se = a.pos - H;
|
|
30715
30717
|
a.next();
|
|
30716
|
-
let fe = [], U = [], F = L >= o ? L : -1, ae = 0,
|
|
30718
|
+
let fe = [], U = [], F = L >= o ? L : -1, ae = 0, ue = G;
|
|
30717
30719
|
for (; a.pos > se; )
|
|
30718
|
-
F >= 0 && a.id == F && a.size >= 0 ? (a.end <=
|
|
30719
|
-
if (F >= 0 && ae > 0 && ae < fe.length && g(fe, U, Z, ae, Z,
|
|
30720
|
+
F >= 0 && a.id == F && a.size >= 0 ? (a.end <= ue - r && (g(fe, U, Z, ae, a.end, ue, F, R), ae = fe.length, ue = a.end), a.next()) : Q > 2500 ? h(Z, se, fe, U) : d(Z, se, fe, U, F, Q + 1);
|
|
30721
|
+
if (F >= 0 && ae > 0 && ae < fe.length && g(fe, U, Z, ae, Z, ue, F, R), fe.reverse(), U.reverse(), F > -1 && ae > 0) {
|
|
30720
30722
|
let ve = m(q);
|
|
30721
30723
|
V = nE(q, fe, U, 0, fe.length, 0, G - Z, ve, ve);
|
|
30722
30724
|
} else
|
|
@@ -85530,6 +85532,9 @@ function nq({
|
|
|
85530
85532
|
urlError: S,
|
|
85531
85533
|
searchLinks: C
|
|
85532
85534
|
}) {
|
|
85535
|
+
const [E, M] = j.useState(!0), T = () => {
|
|
85536
|
+
M(!1);
|
|
85537
|
+
};
|
|
85533
85538
|
return o && !S && f ? /* @__PURE__ */ y.jsxs("div", { children: [
|
|
85534
85539
|
/* @__PURE__ */ y.jsxs("div", { className: "not-kg-prose relative flex min-h-[120px] w-full rounded-md border border-grey/40 bg-transparent font-sans dark:border-grey/20", "data-testid": "bookmark-container", children: [
|
|
85535
85540
|
/* @__PURE__ */ y.jsxs("div", { className: "flex grow basis-full flex-col items-start justify-start p-5", "data-testid": "bookmark-text-container", children: [
|
|
@@ -85541,7 +85546,7 @@ function nq({
|
|
|
85541
85546
|
t && /* @__PURE__ */ y.jsx("span", { className: "font-normal text-grey-800 before:mx-1.5 before:text-grey-900 before:content-['•'] dark:text-grey-600 dark:before:text-grey-100", "data-testid": "bookmark-author", children: t })
|
|
85542
85547
|
] })
|
|
85543
85548
|
] }),
|
|
85544
|
-
u && /* @__PURE__ */ y.jsx("div", { className: "grow-1 relative m-0 min-w-[33%]", "data-testid": "bookmark-thumbnail-container", children: /* @__PURE__ */ y.jsx("img", { alt: "", className: "absolute inset-0 size-full rounded-r-[.5rem] object-cover", "data-testid": "bookmark-thumbnail", src: u }) }),
|
|
85549
|
+
u && E && /* @__PURE__ */ y.jsx("div", { className: "grow-1 relative m-0 min-w-[33%]", "data-testid": "bookmark-thumbnail-container", children: /* @__PURE__ */ y.jsx("img", { alt: "", className: "absolute inset-0 size-full rounded-r-[.5rem] object-cover", "data-testid": "bookmark-thumbnail", src: u, onError: T }) }),
|
|
85545
85550
|
/* @__PURE__ */ y.jsx("div", { className: "absolute inset-0 z-50 mt-0" })
|
|
85546
85551
|
] }),
|
|
85547
85552
|
/* @__PURE__ */ y.jsx(
|
|
@@ -86879,7 +86884,7 @@ function yq() {
|
|
|
86879
86884
|
const U = Rt({}, [...jD, ...aO, ...lO, ...uO, ...FD]);
|
|
86880
86885
|
let F = null;
|
|
86881
86886
|
const ae = Rt({}, [...BD, ...cO, ...zD, ...Sb]);
|
|
86882
|
-
let
|
|
86887
|
+
let ue = Object.seal(gq(null, {
|
|
86883
86888
|
tagNameCheck: {
|
|
86884
86889
|
writable: !0,
|
|
86885
86890
|
configurable: !1,
|
|
@@ -86931,7 +86936,7 @@ function yq() {
|
|
|
86931
86936
|
// eslint-disable-line indent
|
|
86932
86937
|
$t
|
|
86933
86938
|
// eslint-disable-line indent
|
|
86934
|
-
) : Ha, Dt = Co(ie, "FORBID_CONTENTS") ? Rt({}, ie.FORBID_CONTENTS, $t) : ti, ve = Co(ie, "FORBID_TAGS") ? Rt({}, ie.FORBID_TAGS, $t) : {}, Qe = Co(ie, "FORBID_ATTR") ? Rt({}, ie.FORBID_ATTR, $t) : {}, Ln = Co(ie, "USE_PROFILES") ? ie.USE_PROFILES : !1, Xe = ie.ALLOW_ARIA_ATTR !== !1, rt = ie.ALLOW_DATA_ATTR !== !1, _t = ie.ALLOW_UNKNOWN_PROTOCOLS || !1, qe = ie.ALLOW_SELF_CLOSE_IN_ATTR !== !1, lt = ie.SAFE_FOR_TEMPLATES || !1, mt = ie.SAFE_FOR_XML !== !1, Pt = ie.WHOLE_DOCUMENT || !1, Le = ie.RETURN_DOM || !1, Tt = ie.RETURN_DOM_FRAGMENT || !1, Lt = ie.RETURN_TRUSTED_TYPE || !1, tn = ie.FORCE_BODY || !1, Fe = ie.SANITIZE_DOM !== !1, De = ie.SANITIZE_NAMED_PROPS || !1, Re = ie.KEEP_CONTENT !== !1, Wt = ie.IN_PLACE || !1, se = ie.ALLOWED_URI_REGEXP || vq, Us = ie.NAMESPACE || $r,
|
|
86939
|
+
) : Ha, Dt = Co(ie, "FORBID_CONTENTS") ? Rt({}, ie.FORBID_CONTENTS, $t) : ti, ve = Co(ie, "FORBID_TAGS") ? Rt({}, ie.FORBID_TAGS, $t) : {}, Qe = Co(ie, "FORBID_ATTR") ? Rt({}, ie.FORBID_ATTR, $t) : {}, Ln = Co(ie, "USE_PROFILES") ? ie.USE_PROFILES : !1, Xe = ie.ALLOW_ARIA_ATTR !== !1, rt = ie.ALLOW_DATA_ATTR !== !1, _t = ie.ALLOW_UNKNOWN_PROTOCOLS || !1, qe = ie.ALLOW_SELF_CLOSE_IN_ATTR !== !1, lt = ie.SAFE_FOR_TEMPLATES || !1, mt = ie.SAFE_FOR_XML !== !1, Pt = ie.WHOLE_DOCUMENT || !1, Le = ie.RETURN_DOM || !1, Tt = ie.RETURN_DOM_FRAGMENT || !1, Lt = ie.RETURN_TRUSTED_TYPE || !1, tn = ie.FORCE_BODY || !1, Fe = ie.SANITIZE_DOM !== !1, De = ie.SANITIZE_NAMED_PROPS || !1, Re = ie.KEEP_CONTENT !== !1, Wt = ie.IN_PLACE || !1, se = ie.ALLOWED_URI_REGEXP || vq, Us = ie.NAMESPACE || $r, ue = ie.CUSTOM_ELEMENT_HANDLING || {}, ie.CUSTOM_ELEMENT_HANDLING && Nr(ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ue.tagNameCheck = ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ie.CUSTOM_ELEMENT_HANDLING && Nr(ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ue.attributeNameCheck = ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ie.CUSTOM_ELEMENT_HANDLING && typeof ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ue.allowCustomizedBuiltInElements = ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), lt && (rt = !1), Tt && (Le = !0), Ln && (fe = Rt({}, FD), F = [], Ln.html === !0 && (Rt(fe, jD), Rt(F, BD)), Ln.svg === !0 && (Rt(fe, aO), Rt(F, cO), Rt(F, Sb)), Ln.svgFilters === !0 && (Rt(fe, lO), Rt(F, cO), Rt(F, Sb)), Ln.mathMl === !0 && (Rt(fe, uO), Rt(F, zD), Rt(F, Sb))), ie.ADD_TAGS && (fe === U && (fe = Pc(fe)), Rt(fe, ie.ADD_TAGS, $t)), ie.ADD_ATTR && (F === ae && (F = Pc(F)), Rt(F, ie.ADD_ATTR, $t)), ie.ADD_URI_SAFE_ATTR && Rt(Zo, ie.ADD_URI_SAFE_ATTR, $t), ie.FORBID_CONTENTS && (Dt === ti && (Dt = Pc(Dt)), Rt(Dt, ie.FORBID_CONTENTS, $t)), Re && (fe["#text"] = !0), Pt && Rt(fe, ["html", "head", "body"]), fe.table && (Rt(fe, ["tbody"]), delete ve.tbody), ie.TRUSTED_TYPES_POLICY) {
|
|
86935
86940
|
if (typeof ie.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
86936
86941
|
throw Em('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
86937
86942
|
if (typeof ie.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -87032,7 +87037,7 @@ function yq() {
|
|
|
87032
87037
|
}), ie.hasChildNodes() && !Hf(ie.firstElementChild) && Rr(/<[/\w]/g, ie.innerHTML) && Rr(/<[/\w]/g, ie.textContent) || ie.nodeType === $m.progressingInstruction || mt && ie.nodeType === $m.comment && Rr(/<[/\w]/g, ie.data))
|
|
87033
87038
|
return qs(ie), !0;
|
|
87034
87039
|
if (!fe[ze] || ve[ze]) {
|
|
87035
|
-
if (!ve[ze] && J1(ze) && (
|
|
87040
|
+
if (!ve[ze] && J1(ze) && (ue.tagNameCheck instanceof RegExp && Rr(ue.tagNameCheck, ze) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(ze)))
|
|
87036
87041
|
return !1;
|
|
87037
87042
|
if (Re && !Dt[ze]) {
|
|
87038
87043
|
const Ht = C(ie) || ie.parentNode, Di = S(ie) || ie.childNodes;
|
|
@@ -87061,9 +87066,9 @@ function yq() {
|
|
|
87061
87066
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
87062
87067
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
87063
87068
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
87064
|
-
!(J1(ie) && (
|
|
87069
|
+
!(J1(ie) && (ue.tagNameCheck instanceof RegExp && Rr(ue.tagNameCheck, ie) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(ie)) && (ue.attributeNameCheck instanceof RegExp && Rr(ue.attributeNameCheck, xe) || ue.attributeNameCheck instanceof Function && ue.attributeNameCheck(xe)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
87065
87070
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
87066
|
-
xe === "is" &&
|
|
87071
|
+
xe === "is" && ue.allowCustomizedBuiltInElements && (ue.tagNameCheck instanceof RegExp && Rr(ue.tagNameCheck, ze) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(ze)))
|
|
87067
87072
|
)
|
|
87068
87073
|
return !1;
|
|
87069
87074
|
} else if (!Zo[xe]) {
|
|
@@ -89502,10 +89507,10 @@ function JEe({ nodeKey: t, initialFile: e, src: n, altText: i, captionEditor: r,
|
|
|
89502
89507
|
const [u] = _e.useLexicalComposerContext(), [f, d] = j.useState(!1), { fileUploader: h, cardConfig: m } = j.useContext(ct), { isSelected: g, cardWidth: k, setCardWidth: x } = j.useContext(Dn), _ = j.useRef(), S = j.useRef(), [C, E] = j.useState(!1), M = h.useFileUpload("image"), T = Ea({ handleDrop: K }), I = j.useCallback((se) => se.type === "card" && se.cardName === "image" && se.nodeKey !== t, [t]), z = j.useCallback((se) => {
|
|
89503
89508
|
const { type: fe, cardName: U, nodeKey: F, dataset: ae } = se;
|
|
89504
89509
|
fe === "card" && U === "image" && F && ae && u.update(() => {
|
|
89505
|
-
const
|
|
89510
|
+
const ue = N.$getNodeByKey(t), ve = N.$getNodeByKey(F), Qe = Fq();
|
|
89506
89511
|
ae.fileName = (ae == null ? void 0 : ae.fileName) || $C(ae.src);
|
|
89507
|
-
const Xe =
|
|
89508
|
-
Xe.fileName = (Xe == null ? void 0 : Xe.fileName) || $C(Xe.src), Qe.addImages([Xe, ae]),
|
|
89512
|
+
const Xe = ue.getDataset();
|
|
89513
|
+
Xe.fileName = (Xe == null ? void 0 : Xe.fileName) || $C(Xe.src), Qe.addImages([Xe, ae]), ue.replace(Qe), ve.remove();
|
|
89509
89514
|
});
|
|
89510
89515
|
}, [u, t]), W = gCe({
|
|
89511
89516
|
canDrop: I,
|
|
@@ -89520,17 +89525,22 @@ function JEe({ nodeKey: t, initialFile: e, src: n, altText: i, captionEditor: r,
|
|
|
89520
89525
|
se && await Jm([U], t, u, M.upload);
|
|
89521
89526
|
})(), () => se = !1;
|
|
89522
89527
|
}, [u, M.isLoading, M.upload, t, n]), j.useEffect(() => {
|
|
89523
|
-
(async (
|
|
89524
|
-
|
|
89525
|
-
})(e)
|
|
89528
|
+
(async (F) => {
|
|
89529
|
+
F && !n && await Jm([F], t, u, M.upload);
|
|
89530
|
+
})(e);
|
|
89531
|
+
const fe = async () => {
|
|
89526
89532
|
if (n && !e && !o) {
|
|
89527
|
-
const { width:
|
|
89533
|
+
const { width: F, height: ae } = await rp(n);
|
|
89528
89534
|
u.update(() => {
|
|
89529
|
-
const
|
|
89530
|
-
|
|
89535
|
+
const ue = N.$getNodeByKey(t);
|
|
89536
|
+
ue.width = F, ue.height = ae;
|
|
89531
89537
|
});
|
|
89532
89538
|
}
|
|
89533
|
-
}
|
|
89539
|
+
};
|
|
89540
|
+
u.getEditorState().read(() => {
|
|
89541
|
+
const F = N.$getNodeByKey(t);
|
|
89542
|
+
return !F.width || !F.height;
|
|
89543
|
+
}) && fe();
|
|
89534
89544
|
}, []);
|
|
89535
89545
|
const Z = async (se) => {
|
|
89536
89546
|
const fe = se.target.files;
|
|
@@ -89881,13 +89891,13 @@ const lTe = 540, uTe = 940, cTe = ({ onGifInsert: t, onClickOutside: e, updateSe
|
|
|
89881
89891
|
K ? m(K) : _();
|
|
89882
89892
|
}
|
|
89883
89893
|
function I(K) {
|
|
89884
|
-
var
|
|
89894
|
+
var ue;
|
|
89885
89895
|
const se = document.querySelector(`[data-tenor-index="${h.index}"]`).getBoundingClientRect();
|
|
89886
89896
|
let fe;
|
|
89887
89897
|
K === "left" ? fe = se.left - se.width / 2 : fe = se.right + se.width / 2;
|
|
89888
89898
|
let U = se.top + se.height / 3, F, ae = 0;
|
|
89889
89899
|
for (; !F; ) {
|
|
89890
|
-
let ve = (
|
|
89900
|
+
let ve = (ue = document.elementFromPoint(fe, U)) == null ? void 0 : ue.closest("[data-tenor-index]");
|
|
89891
89901
|
if ((ve == null ? void 0 : ve.dataset.tenorIndex) !== void 0) {
|
|
89892
89902
|
F = ve;
|
|
89893
89903
|
break;
|
|
@@ -98350,8 +98360,8 @@ var In = {}, vi = {}, dV = { exports: {} };
|
|
|
98350
98360
|
K = K.next, ae += K.value.length;
|
|
98351
98361
|
if (ae -= K.value.length, te = ae, K.value instanceof l)
|
|
98352
98362
|
continue;
|
|
98353
|
-
for (var
|
|
98354
|
-
fe++, ae +=
|
|
98363
|
+
for (var ue = K; ue !== C.tail && (ae < F || typeof ue.value == "string"); ue = ue.next)
|
|
98364
|
+
fe++, ae += ue.value.length;
|
|
98355
98365
|
fe--, se = S.slice(te, ae), U.index -= te;
|
|
98356
98366
|
} else if (U = u(V, 0, se, G), !U)
|
|
98357
98367
|
continue;
|
|
@@ -107174,7 +107184,7 @@ function oG({
|
|
|
107174
107184
|
handleButtonUrl: fe,
|
|
107175
107185
|
setFileInputRef: U
|
|
107176
107186
|
}) {
|
|
107177
|
-
const [F, ae] = wt(!1), [
|
|
107187
|
+
const [F, ae] = wt(!1), [ue, ve] = wt(!1), Qe = (oe) => oe === "transparent" ? "" : nG(Yt(oe)).hex(), Xe = ({ r: oe, g: Re, b: Wt, a: Ln }) => {
|
|
107178
107188
|
const Dt = Ln / 255;
|
|
107179
107189
|
return Tg({
|
|
107180
107190
|
r: oe * Dt + 255 * (1 - Dt),
|
|
@@ -107513,7 +107523,7 @@ function oG({
|
|
|
107513
107523
|
{
|
|
107514
107524
|
dataTestId: "header-button-color",
|
|
107515
107525
|
eyedropper: z === "split",
|
|
107516
|
-
isExpanded:
|
|
107526
|
+
isExpanded: ue,
|
|
107517
107527
|
label: "Button Color",
|
|
107518
107528
|
swatches: [
|
|
107519
107529
|
{ title: "White", hex: "#ffffff" },
|
|
@@ -107640,12 +107650,12 @@ function DPe({
|
|
|
107640
107650
|
});
|
|
107641
107651
|
}, ae = (oe) => {
|
|
107642
107652
|
oe.preventDefault(), oe.stopPropagation(), T.dispatchCommand(co, { cardKey: d, focusEditor: !1 });
|
|
107643
|
-
},
|
|
107653
|
+
}, ue = z.useFileUpload("image"), ve = async (oe) => {
|
|
107644
107654
|
T.update(() => {
|
|
107645
107655
|
const Dt = N.$getNodeByKey(d);
|
|
107646
107656
|
Dt.backgroundImageSrc = "";
|
|
107647
107657
|
});
|
|
107648
|
-
const { imageSrc: Re, width: Wt, height: Ln } = await VE(oe,
|
|
107658
|
+
const { imageSrc: Re, width: Wt, height: Ln } = await VE(oe, ue.upload);
|
|
107649
107659
|
T.update(() => {
|
|
107650
107660
|
const Dt = N.$getNodeByKey(d);
|
|
107651
107661
|
Dt.backgroundImageSrc = Re, Dt.backgroundImageWidth = Wt, Dt.backgroundImageHeight = Ln;
|
|
@@ -107733,7 +107743,7 @@ function DPe({
|
|
|
107733
107743
|
buttonText: a,
|
|
107734
107744
|
buttonTextColor: l,
|
|
107735
107745
|
buttonUrl: u,
|
|
107736
|
-
fileUploader:
|
|
107746
|
+
fileUploader: ue,
|
|
107737
107747
|
handleAlignment: U,
|
|
107738
107748
|
handleBackgroundColor: Yt,
|
|
107739
107749
|
handleBackgroundSize: F,
|
|
@@ -109300,9 +109310,9 @@ var gG = { exports: {} };
|
|
|
109300
109310
|
return c.display.wrapper.ownerDocument;
|
|
109301
109311
|
}
|
|
109302
109312
|
function ae(c) {
|
|
109303
|
-
return
|
|
109313
|
+
return ue(c.display.wrapper);
|
|
109304
109314
|
}
|
|
109305
|
-
function
|
|
109315
|
+
function ue(c) {
|
|
109306
109316
|
return c.getRootNode ? c.getRootNode() : c.ownerDocument;
|
|
109307
109317
|
}
|
|
109308
109318
|
function ve(c) {
|
|
@@ -109450,8 +109460,8 @@ var gG = { exports: {} };
|
|
|
109450
109460
|
var J = X == "ltr" ? "L" : "R";
|
|
109451
109461
|
if (B.length == 0 || X == "ltr" && !v.test(B))
|
|
109452
109462
|
return !1;
|
|
109453
|
-
for (var re = B.length, ne = [],
|
|
109454
|
-
ne.push(b(B.charCodeAt(
|
|
109463
|
+
for (var re = B.length, ne = [], ce = 0; ce < re; ++ce)
|
|
109464
|
+
ne.push(b(B.charCodeAt(ce)));
|
|
109455
109465
|
for (var de = 0, we = J; de < re; ++de) {
|
|
109456
109466
|
var Oe = ne[de];
|
|
109457
109467
|
Oe == "m" ? ne[de] = we : we = Oe;
|
|
@@ -109921,18 +109931,18 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
109921
109931
|
for (var $ = b.state, A = function(B) {
|
|
109922
109932
|
b.baseTokens = w;
|
|
109923
109933
|
var X = c.state.overlays[B], J = 1, re = 0;
|
|
109924
|
-
b.state = !0, j8(c, p.text, X.mode, b, function(ne,
|
|
109934
|
+
b.state = !0, j8(c, p.text, X.mode, b, function(ne, ce) {
|
|
109925
109935
|
for (var de = J; re < ne; ) {
|
|
109926
109936
|
var we = w[J];
|
|
109927
109937
|
we > ne && w.splice(J, 1, ne, w[J + 1], we), J += 2, re = Math.min(ne, we);
|
|
109928
109938
|
}
|
|
109929
|
-
if (
|
|
109939
|
+
if (ce)
|
|
109930
109940
|
if (X.opaque)
|
|
109931
|
-
w.splice(de, J - de, ne, "overlay " +
|
|
109941
|
+
w.splice(de, J - de, ne, "overlay " + ce), J = de + 2;
|
|
109932
109942
|
else
|
|
109933
109943
|
for (; de < J; de += 2) {
|
|
109934
109944
|
var Oe = w[de + 1];
|
|
109935
|
-
w[de + 1] = (Oe ? Oe + " " : "") + "overlay " +
|
|
109945
|
+
w[de + 1] = (Oe ? Oe + " " : "") + "overlay " + ce;
|
|
109936
109946
|
}
|
|
109937
109947
|
}, O), b.state = $, b.baseTokens = null, b.baseTokenPos = 1;
|
|
109938
109948
|
}, D = 0; D < c.state.overlays.length; ++D)
|
|
@@ -110020,8 +110030,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110020
110030
|
X.start = X.pos;
|
|
110021
110031
|
}
|
|
110022
110032
|
for (; D < X.pos; ) {
|
|
110023
|
-
var
|
|
110024
|
-
w(
|
|
110033
|
+
var ce = Math.min(X.pos, D + 5e3);
|
|
110034
|
+
w(ce, B), D = ce;
|
|
110025
110035
|
}
|
|
110026
110036
|
}
|
|
110027
110037
|
function aee(c, p, b) {
|
|
@@ -110119,8 +110129,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110119
110129
|
}
|
|
110120
110130
|
}
|
|
110121
110131
|
if (D)
|
|
110122
|
-
for (var
|
|
110123
|
-
var de = D[
|
|
110132
|
+
for (var ce = 0; ce < D.length; ++ce) {
|
|
110133
|
+
var de = D[ce];
|
|
110124
110134
|
if (de.to != null && (de.to += X), de.from == null) {
|
|
110125
110135
|
var we = xp(A, de.marker);
|
|
110126
110136
|
we || (de.from = X, B && (A || (A = [])).push(de));
|
|
@@ -110151,8 +110161,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110151
110161
|
var v = null;
|
|
110152
110162
|
if (c.iter(p.line, b.line + 1, function(ne) {
|
|
110153
110163
|
if (ne.markedSpans)
|
|
110154
|
-
for (var
|
|
110155
|
-
var de = ne.markedSpans[
|
|
110164
|
+
for (var ce = 0; ce < ne.markedSpans.length; ++ce) {
|
|
110165
|
+
var de = ne.markedSpans[ce].marker;
|
|
110156
110166
|
de.readOnly && (!v || qe(v, de) == -1) && (v || (v = [])).push(de);
|
|
110157
110167
|
}
|
|
110158
110168
|
}), !v)
|
|
@@ -110380,8 +110390,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110380
110390
|
D.lastIndex = J;
|
|
110381
110391
|
var re = D.exec(p), ne = re ? re.index - J : p.length - J;
|
|
110382
110392
|
if (ne) {
|
|
110383
|
-
var
|
|
110384
|
-
l && u < 9 ? X.appendChild(R("span", [
|
|
110393
|
+
var ce = document.createTextNode(A.slice(J, J + ne));
|
|
110394
|
+
l && u < 9 ? X.appendChild(R("span", [ce])) : X.appendChild(ce), c.map.push(c.pos, c.pos + ne, ce), c.col += ne, c.pos += ne;
|
|
110385
110395
|
}
|
|
110386
110396
|
if (!re)
|
|
110387
110397
|
break;
|
|
@@ -110440,15 +110450,15 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110440
110450
|
p.addToken(p, w.slice(O, O = b[$]), q8(b[$ + 1], p.cm.options));
|
|
110441
110451
|
return;
|
|
110442
110452
|
}
|
|
110443
|
-
for (var A = w.length, D = 0, B = 1, X = "", J, re, ne = 0,
|
|
110453
|
+
for (var A = w.length, D = 0, B = 1, X = "", J, re, ne = 0, ce, de, we, Oe, Ce; ; ) {
|
|
110444
110454
|
if (ne == D) {
|
|
110445
|
-
|
|
110455
|
+
ce = de = we = re = "", Ce = null, Oe = null, ne = 1 / 0;
|
|
110446
110456
|
for (var Se = [], Ne = void 0, Je = 0; Je < v.length; ++Je) {
|
|
110447
110457
|
var Ze = v[Je], St = Ze.marker;
|
|
110448
110458
|
if (St.type == "bookmark" && Ze.from == D && St.widgetNode)
|
|
110449
110459
|
Se.push(St);
|
|
110450
110460
|
else if (Ze.from <= D && (Ze.to == null || Ze.to > D || St.collapsed && Ze.to == D && Ze.from == D)) {
|
|
110451
|
-
if (Ze.to != null && Ze.to != D && ne > Ze.to && (ne = Ze.to, de = ""), St.className && (
|
|
110461
|
+
if (Ze.to != null && Ze.to != D && ne > Ze.to && (ne = Ze.to, de = ""), St.className && (ce += " " + St.className), St.css && (re = (re ? re + ";" : "") + St.css), St.startStyle && Ze.from == D && (we += " " + St.startStyle), St.endStyle && Ze.to == ne && (Ne || (Ne = [])).push(St.endStyle, Ze.to), St.title && ((Ce || (Ce = {})).title = St.title), St.attributes)
|
|
110452
110462
|
for (var nn in St.attributes)
|
|
110453
110463
|
(Ce || (Ce = {}))[nn] = St.attributes[nn];
|
|
110454
110464
|
St.collapsed && (!Oe || Wx(Oe.marker, St) < 0) && (Oe = Ze);
|
|
@@ -110482,7 +110492,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110482
110492
|
p.addToken(
|
|
110483
110493
|
p,
|
|
110484
110494
|
ni,
|
|
110485
|
-
J ? J +
|
|
110495
|
+
J ? J + ce : ce,
|
|
110486
110496
|
we,
|
|
110487
110497
|
D + ni.length == ne ? de : "",
|
|
110488
110498
|
re,
|
|
@@ -110803,7 +110813,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110803
110813
|
var re = O.parentNode.getClientRects()[0];
|
|
110804
110814
|
re ? B = { left: re.left, right: re.left + Gf(c.display), top: re.top, bottom: re.bottom } : B = s9;
|
|
110805
110815
|
}
|
|
110806
|
-
for (var ne = B.top - p.rect.top,
|
|
110816
|
+
for (var ne = B.top - p.rect.top, ce = B.bottom - p.rect.top, de = (ne + ce) / 2, we = p.view.measure.heights, Oe = 0; Oe < we.length - 1 && !(de < we[Oe]); Oe++)
|
|
110807
110817
|
;
|
|
110808
110818
|
var Ce = Oe ? we[Oe - 1] : 0, Se = we[Oe], Ne = {
|
|
110809
110819
|
left: (D == "right" ? B.right : B.left) - p.rect.left,
|
|
@@ -110811,7 +110821,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110811
110821
|
top: Ce,
|
|
110812
110822
|
bottom: Se
|
|
110813
110823
|
};
|
|
110814
|
-
return !B.left && !B.right && (Ne.bogus = !0), c.options.singleCursorHeightPerLine || (Ne.rtop = ne, Ne.rbottom =
|
|
110824
|
+
return !B.left && !B.right && (Ne.bogus = !0), c.options.singleCursorHeightPerLine || (Ne.rtop = ne, Ne.rbottom = ce), Ne;
|
|
110815
110825
|
}
|
|
110816
110826
|
function zee(c, p) {
|
|
110817
110827
|
if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !J1(c))
|
|
@@ -110885,16 +110895,16 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110885
110895
|
}
|
|
110886
110896
|
function ko(c, p, b, v, w, O) {
|
|
110887
110897
|
v = v || $e(c.doc, p.line), w || (w = Vf(c, v));
|
|
110888
|
-
function $(
|
|
110889
|
-
var we = Ko(c, w,
|
|
110898
|
+
function $(ce, de) {
|
|
110899
|
+
var we = Ko(c, w, ce, de ? "right" : "left", O);
|
|
110890
110900
|
return de ? we.left = we.right : we.right = we.left, cv(c, v, we, b);
|
|
110891
110901
|
}
|
|
110892
110902
|
var A = bs(v, c.doc.direction), D = p.ch, B = p.sticky;
|
|
110893
110903
|
if (D >= v.text.length ? (D = v.text.length, B = "before") : D <= 0 && (D = 0, B = "after"), !A)
|
|
110894
110904
|
return $(B == "before" ? D - 1 : D, B == "before");
|
|
110895
|
-
function X(
|
|
110905
|
+
function X(ce, de, we) {
|
|
110896
110906
|
var Oe = A[de], Ce = Oe.level == 1;
|
|
110897
|
-
return $(we ?
|
|
110907
|
+
return $(we ? ce - 1 : ce, Ce != we);
|
|
110898
110908
|
}
|
|
110899
110909
|
var J = Us(A, D, B), re = $r, ne = X(D, J, B == "before");
|
|
110900
110910
|
return re != null && (ne.other = X(D, re, B != "before")), ne;
|
|
@@ -110951,19 +110961,19 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110951
110961
|
var J = (c.options.lineWrapping ? Qee : Hee)(c, p, b, O, X, v, w);
|
|
110952
110962
|
B = J.level != 1, A = B ? J.from : J.to - 1, D = B ? J.to : J.from - 1;
|
|
110953
110963
|
}
|
|
110954
|
-
var re = null, ne = null,
|
|
110964
|
+
var re = null, ne = null, ce = Uo(function(Je) {
|
|
110955
110965
|
var Ze = Ko(c, O, Je);
|
|
110956
110966
|
return Ze.top += $, Ze.bottom += $, Jx(Ze, v, w, !1) ? (Ze.top <= w && Ze.left <= v && (re = Je, ne = Ze), !0) : !1;
|
|
110957
110967
|
}, A, D), de, we, Oe = !1;
|
|
110958
110968
|
if (ne) {
|
|
110959
110969
|
var Ce = v - ne.left < ne.right - v, Se = Ce == B;
|
|
110960
|
-
|
|
110970
|
+
ce = re + (Se ? 0 : 1), we = Se ? "after" : "before", de = Ce ? ne.left : ne.right;
|
|
110961
110971
|
} else {
|
|
110962
|
-
!B && (
|
|
110963
|
-
var Ne = ko(c, be(b,
|
|
110972
|
+
!B && (ce == D || ce == A) && ce++, we = ce == 0 ? "after" : ce == p.text.length ? "before" : Ko(c, O, ce - (B ? 1 : 0)).bottom + $ <= w == B ? "after" : "before";
|
|
110973
|
+
var Ne = ko(c, be(b, ce, we), "line", p, O);
|
|
110964
110974
|
de = Ne.left, Oe = w < Ne.top ? -1 : w >= Ne.bottom ? 1 : 0;
|
|
110965
110975
|
}
|
|
110966
|
-
return
|
|
110976
|
+
return ce = mp(p.text, ce, 1), Gx(b, ce, we, Oe, v - de);
|
|
110967
110977
|
}
|
|
110968
110978
|
function Hee(c, p, b, v, w, O, $) {
|
|
110969
110979
|
var A = Uo(function(J) {
|
|
@@ -110994,7 +111004,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
110994
111004
|
for (var X = null, J = null, re = 0; re < w.length; re++) {
|
|
110995
111005
|
var ne = w[re];
|
|
110996
111006
|
if (!(ne.from >= B || ne.to <= D)) {
|
|
110997
|
-
var
|
|
111007
|
+
var ce = ne.level != 1, de = Ko(c, v, ce ? Math.min(B, ne.to) - 1 : Math.max(D, ne.from)).right, we = de < O ? O - de + 1e9 : de - O;
|
|
110998
111008
|
(!X || J > we) && (X = ne, J = we);
|
|
110999
111009
|
}
|
|
111000
111010
|
}
|
|
@@ -111219,7 +111229,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111219
111229
|
if (re.line == ne.line)
|
|
111220
111230
|
J(re.line, re.ch, ne.ch);
|
|
111221
111231
|
else {
|
|
111222
|
-
var
|
|
111232
|
+
var ce = $e(w, re.line), de = $e(w, ne.line), we = wo(ce) == wo(de), Oe = J(re.line, re.ch, we ? ce.text.length + 1 : null).end, Ce = J(ne.line, we ? 0 : null, ne.ch).start;
|
|
111223
111233
|
we && (Oe.top < Ce.top - 2 ? (X(Oe.right, Oe.top, null, Oe.bottom), X(A, Ce.top, Ce.left, Ce.bottom)) : X(Oe.right, Oe.top, Ce.left - Oe.right, Oe.bottom)), Oe.bottom < Ce.top && X(A, Oe.bottom, null, Ce.top);
|
|
111224
111234
|
}
|
|
111225
111235
|
b.appendChild(O);
|
|
@@ -111265,8 +111275,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111265
111275
|
}
|
|
111266
111276
|
var ne = A.line.height - B;
|
|
111267
111277
|
if ((ne > 5e-3 || ne < -5e-3) && (w < v && (O -= ne), Vo(A.line, B), y9(A.line), A.rest))
|
|
111268
|
-
for (var
|
|
111269
|
-
y9(A.rest[
|
|
111278
|
+
for (var ce = 0; ce < A.rest.length; ce++)
|
|
111279
|
+
y9(A.rest[ce]);
|
|
111270
111280
|
if (X > c.display.sizerWidth) {
|
|
111271
111281
|
var de = Math.ceil(X / Gf(c.display));
|
|
111272
111282
|
de > c.display.maxLineLength && (c.display.maxLineLength = de, c.display.maxLine = A.line, c.display.maxLineChanged = !0);
|
|
@@ -111338,8 +111348,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111338
111348
|
var X = Math.min(p.top, (B ? A : p.bottom) - O);
|
|
111339
111349
|
X != w && ($.scrollTop = X);
|
|
111340
111350
|
}
|
|
111341
|
-
var J = c.options.fixedGutter ? 0 : b.gutters.offsetWidth, re = c.curOp && c.curOp.scrollLeft != null ? c.curOp.scrollLeft : b.scroller.scrollLeft - J, ne = mc(c) - b.gutters.offsetWidth,
|
|
111342
|
-
return
|
|
111351
|
+
var J = c.options.fixedGutter ? 0 : b.gutters.offsetWidth, re = c.curOp && c.curOp.scrollLeft != null ? c.curOp.scrollLeft : b.scroller.scrollLeft - J, ne = mc(c) - b.gutters.offsetWidth, ce = p.right - p.left > ne;
|
|
111352
|
+
return ce && (p.right = p.left + ne), p.left < 10 ? $.scrollLeft = 0 : p.left < re ? $.scrollLeft = Math.max(0, p.left + J - (ce ? 0 : 10)) : p.right > ne + re - 3 && ($.scrollLeft = p.right + (ce ? 0 : 10) - ne), $;
|
|
111343
111353
|
}
|
|
111344
111354
|
function l_(c, p) {
|
|
111345
111355
|
p != null && (gv(c), c.curOp.scrollTop = (c.curOp.scrollTop == null ? c.doc.scrollTop : c.curOp.scrollTop) + p);
|
|
@@ -111663,7 +111673,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111663
111673
|
return b;
|
|
111664
111674
|
}
|
|
111665
111675
|
function ate(c) {
|
|
111666
|
-
if (!(!c || !c.activeElt || c.activeElt == te(
|
|
111676
|
+
if (!(!c || !c.activeElt || c.activeElt == te(ue(c.activeElt))) && (c.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(c.activeElt.nodeName) && c.anchorNode && K(document.body, c.anchorNode) && K(document.body, c.focusNode))) {
|
|
111667
111677
|
var p = c.activeElt.ownerDocument, b = p.defaultView.getSelection(), v = p.createRange();
|
|
111668
111678
|
v.setEnd(c.anchorNode, c.anchorOffset), v.collapse(!1), b.removeAllRanges(), b.addRange(v), b.extend(c.focusNode, c.focusOffset);
|
|
111669
111679
|
}
|
|
@@ -111710,9 +111720,9 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111710
111720
|
}
|
|
111711
111721
|
function lte(c, p, b) {
|
|
111712
111722
|
var v = c.display, w = c.options.lineNumbers, O = v.lineDiv, $ = O.firstChild;
|
|
111713
|
-
function A(
|
|
111714
|
-
var de =
|
|
111715
|
-
return f && M && c.display.currentWheelTarget ==
|
|
111723
|
+
function A(ce) {
|
|
111724
|
+
var de = ce.nextSibling;
|
|
111725
|
+
return f && M && c.display.currentWheelTarget == ce ? ce.style.display = "none" : ce.parentNode.removeChild(ce), de;
|
|
111716
111726
|
}
|
|
111717
111727
|
for (var D = v.view, B = v.viewFrom, X = 0; X < D.length; X++) {
|
|
111718
111728
|
var J = D[X];
|
|
@@ -111833,8 +111843,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111833
111843
|
return;
|
|
111834
111844
|
}
|
|
111835
111845
|
if (w && O != null) {
|
|
111836
|
-
var ne = w * O,
|
|
111837
|
-
ne < 0 ?
|
|
111846
|
+
var ne = w * O, ce = c.doc.scrollTop, de = ce + $.wrapper.clientHeight;
|
|
111847
|
+
ne < 0 ? ce = Math.max(0, ce + ne - 50) : de = Math.min(c.doc.height, de + ne + 50), c_(c, { top: ce, bottom: de });
|
|
111838
111848
|
}
|
|
111839
111849
|
bv < 20 && p.deltaMode !== 0 && ($.wheelStartX == null ? ($.wheelStartX = A.scrollLeft, $.wheelStartY = A.scrollTop, $.wheelDX = v, $.wheelDY = w, setTimeout(function() {
|
|
111840
111850
|
if ($.wheelStartX != null) {
|
|
@@ -111966,12 +111976,12 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111966
111976
|
Ne.push(new qf(B[Je], w(Je), v));
|
|
111967
111977
|
return Ne;
|
|
111968
111978
|
}
|
|
111969
|
-
var A = p.from, D = p.to, B = p.text, X = $e(c, A.line), J = $e(c, D.line), re = Fe(B), ne = w(B.length - 1),
|
|
111979
|
+
var A = p.from, D = p.to, B = p.text, X = $e(c, A.line), J = $e(c, D.line), re = Fe(B), ne = w(B.length - 1), ce = D.line - A.line;
|
|
111970
111980
|
if (p.full)
|
|
111971
111981
|
c.insert(0, $(0, B.length)), c.remove(B.length, c.size - B.length);
|
|
111972
111982
|
else if (P9(c, p)) {
|
|
111973
111983
|
var de = $(0, B.length - 1);
|
|
111974
|
-
O(J, J.text, ne),
|
|
111984
|
+
O(J, J.text, ne), ce && c.remove(A.line, ce), de.length && c.insert(A.line, de);
|
|
111975
111985
|
} else if (X == J)
|
|
111976
111986
|
if (B.length == 1)
|
|
111977
111987
|
O(X, X.text.slice(0, A.ch) + re + X.text.slice(D.ch), ne);
|
|
@@ -111980,11 +111990,11 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
111980
111990
|
we.push(new qf(re + X.text.slice(D.ch), ne, v)), O(X, X.text.slice(0, A.ch) + B[0], w(0)), c.insert(A.line + 1, we);
|
|
111981
111991
|
}
|
|
111982
111992
|
else if (B.length == 1)
|
|
111983
|
-
O(X, X.text.slice(0, A.ch) + B[0] + J.text.slice(D.ch), w(0)), c.remove(A.line + 1,
|
|
111993
|
+
O(X, X.text.slice(0, A.ch) + B[0] + J.text.slice(D.ch), w(0)), c.remove(A.line + 1, ce);
|
|
111984
111994
|
else {
|
|
111985
111995
|
O(X, X.text.slice(0, A.ch) + B[0], w(0)), O(J, re + J.text.slice(D.ch), ne);
|
|
111986
111996
|
var Oe = $(1, B.length - 1);
|
|
111987
|
-
|
|
111997
|
+
ce > 1 && c.remove(A.line + 1, ce - 1), c.insert(A.line + 1, Oe);
|
|
111988
111998
|
}
|
|
111989
111999
|
bi(c, "change", c, p);
|
|
111990
112000
|
}
|
|
@@ -112303,9 +112313,9 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
112303
112313
|
!Ne && qe(Ce, Se.history) == -1 && (J9(Se.history, we), Ce.push(Se.history)), Ip(Se, we, null, F9(Se, we));
|
|
112304
112314
|
});
|
|
112305
112315
|
}, ne = O.changes.length - 1; ne >= 0; --ne) {
|
|
112306
|
-
var
|
|
112307
|
-
if (
|
|
112308
|
-
return
|
|
112316
|
+
var ce = re(ne);
|
|
112317
|
+
if (ce)
|
|
112318
|
+
return ce.v;
|
|
112309
112319
|
}
|
|
112310
112320
|
}
|
|
112311
112321
|
}
|
|
@@ -112354,8 +112364,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
112354
112364
|
if (ne == w.maxLine)
|
|
112355
112365
|
return A = !0, !0;
|
|
112356
112366
|
})), v.sel.contains(p.from, p.to) > -1 && Y1(c), g_(v, p, b, m9(c)), c.options.lineWrapping || (v.iter(D, O.line + p.text.length, function(ne) {
|
|
112357
|
-
var
|
|
112358
|
-
|
|
112367
|
+
var ce = av(ne);
|
|
112368
|
+
ce > w.maxLineLength && (w.maxLine = ne, w.maxLineLength = ce, w.maxLineChanged = !0, A = !1);
|
|
112359
112369
|
}), A && (c.curOp.updateMaxLine = !0)), lee(v, O.line), Ap(c, 400);
|
|
112360
112370
|
var B = p.text.length - ($.line - O.line) - 1;
|
|
112361
112371
|
p.full ? Ar(c) : O.line == $.line && p.text.length == 1 && !P9(c.doc, p) ? Hl(c, O.line, "text") : Ar(c, O.line, $.line + 1, B);
|
|
@@ -113105,15 +113115,15 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
113105
113115
|
from: b,
|
|
113106
113116
|
to: b,
|
|
113107
113117
|
text: p.doc.splitLines(
|
|
113108
|
-
O.filter(function(
|
|
113109
|
-
return
|
|
113118
|
+
O.filter(function(ce) {
|
|
113119
|
+
return ce != null;
|
|
113110
113120
|
}).join(p.doc.lineSeparator())
|
|
113111
113121
|
),
|
|
113112
113122
|
origin: "paste"
|
|
113113
113123
|
};
|
|
113114
113124
|
id(p.doc, ne), W9(p.doc, Zl(dt(p.doc, b), dt(p.doc, Ul(ne))));
|
|
113115
113125
|
})();
|
|
113116
|
-
}, D = function(ne,
|
|
113126
|
+
}, D = function(ne, ce) {
|
|
113117
113127
|
if (p.options.allowDropFileTypes && qe(p.options.allowDropFileTypes, ne.type) == -1) {
|
|
113118
113128
|
A();
|
|
113119
113129
|
return;
|
|
@@ -113127,7 +113137,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
113127
113137
|
A();
|
|
113128
113138
|
return;
|
|
113129
113139
|
}
|
|
113130
|
-
O[
|
|
113140
|
+
O[ce] = we, A();
|
|
113131
113141
|
}, de.readAsText(ne);
|
|
113132
113142
|
}, B = 0; B < v.length; B++)
|
|
113133
113143
|
D(v[B], B);
|
|
@@ -113504,7 +113514,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
113504
113514
|
return new be(b.line, re, ne);
|
|
113505
113515
|
}
|
|
113506
113516
|
}
|
|
113507
|
-
var
|
|
113517
|
+
var ce = function(Oe, Ce, Se) {
|
|
113508
113518
|
for (var Ne = function(nn, ki) {
|
|
113509
113519
|
return ki ? new be(b.line, A(nn, 1), "before") : new be(b.line, nn, "after");
|
|
113510
113520
|
}; Oe >= 0 && Oe < w.length; Oe += Ce) {
|
|
@@ -113512,11 +113522,11 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
113512
113522
|
if (Je.from <= St && St < Je.to || (St = Ze ? Je.from : A(Je.to, -1), Se.begin <= St && St < Se.end))
|
|
113513
113523
|
return Ne(St, Ze);
|
|
113514
113524
|
}
|
|
113515
|
-
}, de =
|
|
113525
|
+
}, de = ce(O + v, v, X);
|
|
113516
113526
|
if (de)
|
|
113517
113527
|
return de;
|
|
113518
113528
|
var we = v > 0 ? X.end : A(X.begin, -1);
|
|
113519
|
-
return we != null && !(v > 0 && we == p.text.length) && (de =
|
|
113529
|
+
return we != null && !(v > 0 && we == p.text.length) && (de = ce(v > 0 ? 0 : w.length - 1, v, B(we)), de) ? de : null;
|
|
113520
113530
|
}
|
|
113521
113531
|
var Hp = {
|
|
113522
113532
|
selectAll: q9,
|
|
@@ -113973,25 +113983,25 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
113973
113983
|
Rn[A] = Ute(c, new Ut(dt(O, di), ii)), Gi(O, xo(c, Rn, A), Yt);
|
|
113974
113984
|
}
|
|
113975
113985
|
}
|
|
113976
|
-
var ne = w.wrapper.getBoundingClientRect(),
|
|
113986
|
+
var ne = w.wrapper.getBoundingClientRect(), ce = 0;
|
|
113977
113987
|
function de(Se) {
|
|
113978
|
-
var Ne = ++
|
|
113988
|
+
var Ne = ++ce, Je = vc(c, Se, !0, v.unit == "rectangle");
|
|
113979
113989
|
if (Je)
|
|
113980
113990
|
if (ft(Je, J) != 0) {
|
|
113981
113991
|
c.curOp.focus = te(ae(c)), re(Je);
|
|
113982
113992
|
var Ze = mv(w, O);
|
|
113983
113993
|
(Je.line >= Ze.to || Je.line < Ze.from) && setTimeout(yi(c, function() {
|
|
113984
|
-
|
|
113994
|
+
ce == Ne && de(Se);
|
|
113985
113995
|
}), 150);
|
|
113986
113996
|
} else {
|
|
113987
113997
|
var St = Se.clientY < ne.top ? -20 : Se.clientY > ne.bottom ? 20 : 0;
|
|
113988
113998
|
St && setTimeout(yi(c, function() {
|
|
113989
|
-
|
|
113999
|
+
ce == Ne && (w.scroller.scrollTop += St, de(Se));
|
|
113990
114000
|
}), 50);
|
|
113991
114001
|
}
|
|
113992
114002
|
}
|
|
113993
114003
|
function we(Se) {
|
|
113994
|
-
c.state.selectingText = !1,
|
|
114004
|
+
c.state.selectingText = !1, ce = 1 / 0, Se && (Pi(Se), w.input.focus()), Mr(w.wrapper.ownerDocument, "mousemove", Oe), Mr(w.wrapper.ownerDocument, "mouseup", Ce), O.history.lastSelOrigin = null;
|
|
113995
114005
|
}
|
|
113996
114006
|
var Oe = yi(c, function(Se) {
|
|
113997
114007
|
Se.buttons === 0 || !V1(Se) ? we(Se) : de(Se);
|
|
@@ -114018,8 +114028,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114018
114028
|
var X = Us(O, v.ch, v.sticky), J = X - $ || (v.ch - b.ch) * (A.level == 1 ? -1 : 1);
|
|
114019
114029
|
X == D - 1 || X == D ? B = J < 0 : B = J > 0;
|
|
114020
114030
|
}
|
|
114021
|
-
var re = O[D + (B ? -1 : 0)], ne = B == (re.level == 1),
|
|
114022
|
-
return b.ch ==
|
|
114031
|
+
var re = O[D + (B ? -1 : 0)], ne = B == (re.level == 1), ce = ne ? re.from : re.to, de = ne ? "after" : "before";
|
|
114032
|
+
return b.ch == ce && b.sticky == de ? p : new Ut(new be(b.line, ce, de), v);
|
|
114023
114033
|
}
|
|
114024
114034
|
function y$(c, p, b, v) {
|
|
114025
114035
|
var w, O;
|
|
@@ -114302,11 +114312,11 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114302
114312
|
re += $, J += " ";
|
|
114303
114313
|
if (re < X && (J += Lt(X - re)), J != B)
|
|
114304
114314
|
return rd(w, J, be(p, 0), be(p, B.length), "+input"), A.stateAfter = null, !0;
|
|
114305
|
-
for (var
|
|
114306
|
-
var de = w.sel.ranges[
|
|
114315
|
+
for (var ce = 0; ce < w.sel.ranges.length; ce++) {
|
|
114316
|
+
var de = w.sel.ranges[ce];
|
|
114307
114317
|
if (de.head.line == p && de.head.ch < B.length) {
|
|
114308
114318
|
var we = be(p, B.length);
|
|
114309
|
-
y_(w,
|
|
114319
|
+
y_(w, ce, new Ut(we, we));
|
|
114310
114320
|
break;
|
|
114311
114321
|
}
|
|
114312
114322
|
}
|
|
@@ -114332,12 +114342,12 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114332
114342
|
return [Oe];
|
|
114333
114343
|
}));
|
|
114334
114344
|
for (var J = c.curOp.updateInput, re = v.ranges.length - 1; re >= 0; re--) {
|
|
114335
|
-
var ne = v.ranges[re],
|
|
114336
|
-
ne.empty() && (b && b > 0 ?
|
|
114345
|
+
var ne = v.ranges[re], ce = ne.from(), de = ne.to();
|
|
114346
|
+
ne.empty() && (b && b > 0 ? ce = be(ce.line, ce.ch - b) : c.state.overwrite && !A ? de = be(de.line, Math.min($e(O, de.line).text.length, de.ch + Fe(D).length)) : A && _o && _o.lineWise && _o.text.join(`
|
|
114337
114347
|
`) == D.join(`
|
|
114338
|
-
`) && (
|
|
114348
|
+
`) && (ce = de = be(ce.line, 0)));
|
|
114339
114349
|
var we = {
|
|
114340
|
-
from:
|
|
114350
|
+
from: ce,
|
|
114341
114351
|
to: de,
|
|
114342
114352
|
text: B ? B[re % B.length] : D,
|
|
114343
114353
|
origin: w || (A ? "paste" : c.state.cutIncoming > $ ? "cut" : "+input")
|
|
@@ -114743,15 +114753,15 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114743
114753
|
else if (v == "column")
|
|
114744
114754
|
X(!0);
|
|
114745
114755
|
else if (v == "word" || v == "group")
|
|
114746
|
-
for (var J = null, re = v == "group", ne = c.cm && c.cm.getHelper(p, "wordChars"),
|
|
114756
|
+
for (var J = null, re = v == "group", ne = c.cm && c.cm.getHelper(p, "wordChars"), ce = !0; !(b < 0 && !X(!ce)); ce = !1) {
|
|
114747
114757
|
var de = A.text.charAt(p.ch) || `
|
|
114748
114758
|
`, we = ti(de, ne) ? "w" : re && de == `
|
|
114749
114759
|
` ? "n" : !re || /\s/.test(de) ? null : "p";
|
|
114750
|
-
if (re && !
|
|
114760
|
+
if (re && !ce && !we && (we = "s"), J && J != we) {
|
|
114751
114761
|
b < 0 && (b = 1, X(), p.sticky = "after");
|
|
114752
114762
|
break;
|
|
114753
114763
|
}
|
|
114754
|
-
if (we && (J = we), b > 0 && !X(!
|
|
114764
|
+
if (we && (J = we), b > 0 && !X(!ce))
|
|
114755
114765
|
break;
|
|
114756
114766
|
}
|
|
114757
114767
|
var Oe = _v(c, p, O, $, !0);
|
|
@@ -114826,7 +114836,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114826
114836
|
var X = C$(), J = X.firstChild;
|
|
114827
114837
|
T_(J), v.display.lineSpace.insertBefore(X, v.display.lineSpace.firstChild), J.value = _o.text.join(`
|
|
114828
114838
|
`);
|
|
114829
|
-
var re = te(
|
|
114839
|
+
var re = te(ue(w));
|
|
114830
114840
|
U(J), setTimeout(function() {
|
|
114831
114841
|
v.display.lineSpace.removeChild(X), re.focus(), re == w && b.showPrimarySelection();
|
|
114832
114842
|
}, 50);
|
|
@@ -114837,7 +114847,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114837
114847
|
c ? this.div.setAttribute("aria-label", c) : this.div.removeAttribute("aria-label");
|
|
114838
114848
|
}, Xt.prototype.prepareSelection = function() {
|
|
114839
114849
|
var c = v9(this.cm, !1);
|
|
114840
|
-
return c.focus = te(
|
|
114850
|
+
return c.focus = te(ue(this.div)) == this.div, c;
|
|
114841
114851
|
}, Xt.prototype.showSelection = function(c, p) {
|
|
114842
114852
|
!c || !this.cm.display.view.length || ((c.focus || p) && this.showPrimarySelection(), this.showMultipleSelections(c));
|
|
114843
114853
|
}, Xt.prototype.getSelection = function() {
|
|
@@ -114885,7 +114895,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114885
114895
|
var p = c.getRangeAt(0).commonAncestorContainer;
|
|
114886
114896
|
return K(this.div, p);
|
|
114887
114897
|
}, Xt.prototype.focus = function() {
|
|
114888
|
-
this.cm.options.readOnly != "nocursor" && ((!this.selectionInEditor() || te(
|
|
114898
|
+
this.cm.options.readOnly != "nocursor" && ((!this.selectionInEditor() || te(ue(this.div)) != this.div) && this.showSelection(this.prepareSelection(), !0), this.div.focus());
|
|
114889
114899
|
}, Xt.prototype.blur = function() {
|
|
114890
114900
|
this.div.blur();
|
|
114891
114901
|
}, Xt.prototype.getField = function() {
|
|
@@ -114938,18 +114948,18 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
114938
114948
|
J.shift(), re.shift(), $++;
|
|
114939
114949
|
else
|
|
114940
114950
|
break;
|
|
114941
|
-
for (var ne = 0,
|
|
114951
|
+
for (var ne = 0, ce = 0, de = J[0], we = re[0], Oe = Math.min(de.length, we.length); ne < Oe && de.charCodeAt(ne) == we.charCodeAt(ne); )
|
|
114942
114952
|
++ne;
|
|
114943
114953
|
for (var Ce = Fe(J), Se = Fe(re), Ne = Math.min(
|
|
114944
114954
|
Ce.length - (J.length == 1 ? ne : 0),
|
|
114945
114955
|
Se.length - (re.length == 1 ? ne : 0)
|
|
114946
|
-
);
|
|
114947
|
-
++
|
|
114956
|
+
); ce < Ne && Ce.charCodeAt(Ce.length - ce - 1) == Se.charCodeAt(Se.length - ce - 1); )
|
|
114957
|
+
++ce;
|
|
114948
114958
|
if (J.length == 1 && re.length == 1 && $ == v.line)
|
|
114949
|
-
for (; ne && ne > v.ch && Ce.charCodeAt(Ce.length -
|
|
114950
|
-
ne--,
|
|
114951
|
-
J[J.length - 1] = Ce.slice(0, Ce.length -
|
|
114952
|
-
var Je = be($, ne), Ze = be(B, re.length ? Fe(re).length -
|
|
114959
|
+
for (; ne && ne > v.ch && Ce.charCodeAt(Ce.length - ce - 1) == Se.charCodeAt(Se.length - ce - 1); )
|
|
114960
|
+
ne--, ce++;
|
|
114961
|
+
J[J.length - 1] = Ce.slice(0, Ce.length - ce).replace(/^\u200b+/, ""), J[0] = J[0].slice(ne).replace(/\u200b+$/, "");
|
|
114962
|
+
var Je = be($, ne), Ze = be(B, re.length ? Fe(re).length - ce : 0);
|
|
114953
114963
|
if (J.length > 1 || J[0] || ft(Je, Ze))
|
|
114954
114964
|
return rd(c.doc, J, Je, Ze, "+input"), !0;
|
|
114955
114965
|
}, Xt.prototype.ensurePolled = function() {
|
|
@@ -115006,8 +115016,8 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115006
115016
|
function ene(c, p, b, v, w) {
|
|
115007
115017
|
var O = "", $ = !1, A = c.doc.lineSeparator(), D = !1;
|
|
115008
115018
|
function B(ne) {
|
|
115009
|
-
return function(
|
|
115010
|
-
return
|
|
115019
|
+
return function(ce) {
|
|
115020
|
+
return ce.id == ne;
|
|
115011
115021
|
};
|
|
115012
115022
|
}
|
|
115013
115023
|
function X() {
|
|
@@ -115018,9 +115028,9 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115018
115028
|
}
|
|
115019
115029
|
function re(ne) {
|
|
115020
115030
|
if (ne.nodeType == 1) {
|
|
115021
|
-
var
|
|
115022
|
-
if (
|
|
115023
|
-
J(
|
|
115031
|
+
var ce = ne.getAttribute("cm-text");
|
|
115032
|
+
if (ce) {
|
|
115033
|
+
J(ce);
|
|
115024
115034
|
return;
|
|
115025
115035
|
}
|
|
115026
115036
|
var de = ne.getAttribute("cm-marker"), we;
|
|
@@ -115094,10 +115104,10 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115094
115104
|
return ud(be(J.line, J.ch - ne), w);
|
|
115095
115105
|
ne += re.textContent.length;
|
|
115096
115106
|
}
|
|
115097
|
-
for (var
|
|
115098
|
-
if (J = X(
|
|
115107
|
+
for (var ce = A.previousSibling, de = b; ce; ce = ce.previousSibling) {
|
|
115108
|
+
if (J = X(ce, ce.firstChild, -1), J)
|
|
115099
115109
|
return ud(be(J.line, J.ch + de), w);
|
|
115100
|
-
de +=
|
|
115110
|
+
de += ce.textContent.length;
|
|
115101
115111
|
}
|
|
115102
115112
|
}
|
|
115103
115113
|
var Qn = function(c) {
|
|
@@ -115183,7 +115193,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115183
115193
|
}, Qn.prototype.supportsTouch = function() {
|
|
115184
115194
|
return !1;
|
|
115185
115195
|
}, Qn.prototype.focus = function() {
|
|
115186
|
-
if (this.cm.options.readOnly != "nocursor" && (!E || te(
|
|
115196
|
+
if (this.cm.options.readOnly != "nocursor" && (!E || te(ue(this.textarea)) != this.textarea))
|
|
115187
115197
|
try {
|
|
115188
115198
|
this.textarea.focus();
|
|
115189
115199
|
} catch {
|
|
@@ -115273,10 +115283,10 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115273
115283
|
}
|
|
115274
115284
|
if (l && u >= 9 && re(), Q) {
|
|
115275
115285
|
Fl(c);
|
|
115276
|
-
var
|
|
115277
|
-
Mr(window, "mouseup",
|
|
115286
|
+
var ce = function() {
|
|
115287
|
+
Mr(window, "mouseup", ce), setTimeout(ne, 20);
|
|
115278
115288
|
};
|
|
115279
|
-
Ye(window, "mouseup",
|
|
115289
|
+
Ye(window, "mouseup", ce);
|
|
115280
115290
|
} else
|
|
115281
115291
|
setTimeout(ne, 50);
|
|
115282
115292
|
}, Qn.prototype.readOnlyChanged = function(c) {
|
|
@@ -115285,7 +115295,7 @@ b`.split(/\n/).length != 3 ? function(c) {
|
|
|
115285
115295
|
}, Qn.prototype.needsContentAttribute = !1;
|
|
115286
115296
|
function nne(c, p) {
|
|
115287
115297
|
if (p = p ? Xe(p) : {}, p.value = c.value, !p.tabindex && c.tabIndex && (p.tabindex = c.tabIndex), !p.placeholder && c.placeholder && (p.placeholder = c.placeholder), p.autofocus == null) {
|
|
115288
|
-
var b = te(
|
|
115298
|
+
var b = te(ue(c));
|
|
115289
115299
|
p.autofocus = b == c || c.getAttribute("autofocus") != null && b == document.body;
|
|
115290
115300
|
}
|
|
115291
115301
|
function v() {
|
|
@@ -116047,7 +116057,7 @@ function tDe() {
|
|
|
116047
116057
|
return U.trailingSpace = 0, U.trailingSpaceNewLine = !1, U.prevLine = U.thisLine, U.thisLine = { stream: null }, null;
|
|
116048
116058
|
}
|
|
116049
116059
|
function z(U, F) {
|
|
116050
|
-
var ae = U.column() === F.indentation,
|
|
116060
|
+
var ae = U.column() === F.indentation, ue = T(F.prevLine.stream), ve = F.indentedCode, Qe = F.prevLine.hr, Xe = F.list !== !1, rt = (F.listStack[F.listStack.length - 1] || 0) + 3;
|
|
116051
116061
|
F.indentedCode = !1;
|
|
116052
116062
|
var _t = F.indentation;
|
|
116053
116063
|
if (F.indentationDiff === null && (F.indentationDiff = F.indentation, Xe)) {
|
|
@@ -116055,8 +116065,8 @@ function tDe() {
|
|
|
116055
116065
|
F.listStack.pop(), F.listStack.length ? F.indentation = F.listStack[F.listStack.length - 1] : F.list = !1;
|
|
116056
116066
|
F.list !== !1 && (F.indentationDiff = _t - F.listStack[F.listStack.length - 1]);
|
|
116057
116067
|
}
|
|
116058
|
-
var qe = !
|
|
116059
|
-
if (F.indentationDiff >= 4 && (ve || F.prevLine.fencedCodeEnd || F.prevLine.header ||
|
|
116068
|
+
var qe = !ue && !Qe && !F.prevLine.header && (!Xe || !ve) && !F.prevLine.fencedCodeEnd, lt = (F.list === !1 || Qe || ue) && F.indentation <= rt && U.match(f), mt = null;
|
|
116069
|
+
if (F.indentationDiff >= 4 && (ve || F.prevLine.fencedCodeEnd || F.prevLine.header || ue))
|
|
116060
116070
|
return U.skipToEnd(), F.indentedCode = !0, l.code;
|
|
116061
116071
|
if (U.eatSpace())
|
|
116062
116072
|
return null;
|
|
@@ -116086,17 +116096,17 @@ function tDe() {
|
|
|
116086
116096
|
function W(U, F) {
|
|
116087
116097
|
var ae = s.token(U, F.htmlState);
|
|
116088
116098
|
if (!o) {
|
|
116089
|
-
var
|
|
116090
|
-
(
|
|
116099
|
+
var ue = n.innerMode(s, F.htmlState);
|
|
116100
|
+
(ue.mode.name == "xml" && ue.state.tagStart === null && !ue.state.context && ue.state.tokenize.isInText || F.md_inside && U.current().indexOf(">") > -1) && (F.f = G, F.block = z, F.htmlState = null);
|
|
116091
116101
|
}
|
|
116092
116102
|
return ae;
|
|
116093
116103
|
}
|
|
116094
116104
|
function Q(U, F) {
|
|
116095
|
-
var ae = F.listStack[F.listStack.length - 1] || 0,
|
|
116096
|
-
if (F.fencedEndRE && F.indentation <= ve && (
|
|
116105
|
+
var ae = F.listStack[F.listStack.length - 1] || 0, ue = F.indentation < ae, ve = ae + 3;
|
|
116106
|
+
if (F.fencedEndRE && F.indentation <= ve && (ue || U.match(F.fencedEndRE))) {
|
|
116097
116107
|
r.highlightFormatting && (F.formatting = "code-block");
|
|
116098
116108
|
var Qe;
|
|
116099
|
-
return
|
|
116109
|
+
return ue || (Qe = L(F)), F.localMode = F.localState = null, F.block = z, F.f = G, F.fencedEndRE = null, F.code = 0, F.thisLine.fencedCodeEnd = !0, ue ? M(U, F, F.block) : Qe;
|
|
116100
116110
|
} else
|
|
116101
116111
|
return F.localMode ? F.localMode.token(U, F.localState) : (U.skipToEnd(), l.code);
|
|
116102
116112
|
}
|
|
@@ -116112,8 +116122,8 @@ function tDe() {
|
|
|
116112
116122
|
if (U.taskClosed)
|
|
116113
116123
|
return F.push("property"), F.length ? F.join(" ") : null;
|
|
116114
116124
|
if (U.linkHref ? F.push(l.linkHref, "url") : (U.strong && F.push(l.strong), U.em && F.push(l.em), U.strikethrough && F.push(l.strikethrough), U.emoji && F.push(l.emoji), U.linkText && F.push(l.linkText), U.code && F.push(l.code), U.image && F.push(l.image), U.imageAltText && F.push(l.imageAltText, "link"), U.imageMarker && F.push(l.imageMarker)), U.header && F.push(l.header, l.header + "-" + U.header), U.quote && (F.push(l.quote), !r.maxBlockquoteDepth || r.maxBlockquoteDepth >= U.quote ? F.push(l.quote + "-" + U.quote) : F.push(l.quote + "-" + r.maxBlockquoteDepth)), U.list !== !1) {
|
|
116115
|
-
var
|
|
116116
|
-
|
|
116125
|
+
var ue = (U.listStack.length - 1) % 3;
|
|
116126
|
+
ue ? ue === 1 ? F.push(l.list2) : F.push(l.list3) : F.push(l.list1);
|
|
116117
116127
|
}
|
|
116118
116128
|
return U.trailingSpaceNewLine ? F.push("trailing-space-new-line") : U.trailingSpace && F.push("trailing-space-" + (U.trailingSpace % 2 ? "a" : "b")), F.length ? F.join(" ") : null;
|
|
116119
116129
|
}
|
|
@@ -116128,8 +116138,8 @@ function tDe() {
|
|
|
116128
116138
|
if (F.list)
|
|
116129
116139
|
return F.list = null, L(F);
|
|
116130
116140
|
if (F.taskList) {
|
|
116131
|
-
var
|
|
116132
|
-
return
|
|
116141
|
+
var ue = U.match(h, !0)[1] === " ";
|
|
116142
|
+
return ue ? F.taskOpen = !0 : F.taskClosed = !0, r.highlightFormatting && (F.formatting = "task"), F.taskList = !1, L(F);
|
|
116133
116143
|
}
|
|
116134
116144
|
if (F.taskOpen = !1, F.taskClosed = !1, F.header && U.match(/^#+$/, !0))
|
|
116135
116145
|
return r.highlightFormatting && (F.formatting = "header"), L(F);
|
|
@@ -116234,8 +116244,8 @@ function tDe() {
|
|
|
116234
116244
|
var ae = U.next();
|
|
116235
116245
|
if (ae === ">") {
|
|
116236
116246
|
F.f = F.inline = G, r.highlightFormatting && (F.formatting = "link");
|
|
116237
|
-
var
|
|
116238
|
-
return
|
|
116247
|
+
var ue = L(F);
|
|
116248
|
+
return ue ? ue += " " : ue = "", ue + l.linkInline;
|
|
116239
116249
|
}
|
|
116240
116250
|
return U.match(/^[^>]+/, !0), l.linkInline;
|
|
116241
116251
|
}
|
|
@@ -116251,8 +116261,8 @@ function tDe() {
|
|
|
116251
116261
|
};
|
|
116252
116262
|
function V(U) {
|
|
116253
116263
|
return function(F, ae) {
|
|
116254
|
-
var
|
|
116255
|
-
if (
|
|
116264
|
+
var ue = F.next();
|
|
116265
|
+
if (ue === U) {
|
|
116256
116266
|
ae.f = ae.inline = G, r.highlightFormatting && (ae.formatting = "link-string");
|
|
116257
116267
|
var ve = L(ae);
|
|
116258
116268
|
return ae.linkHref = !1, ve;
|
|
@@ -118548,53 +118558,53 @@ function NDe({
|
|
|
118548
118558
|
j.useEffect(() => {
|
|
118549
118559
|
f.setEditable(x), h.setEditable(x);
|
|
118550
118560
|
}, [x, f, h]);
|
|
118551
|
-
const H = async (
|
|
118561
|
+
const H = async (ue) => {
|
|
118552
118562
|
var qe;
|
|
118553
|
-
const ve = URL.createObjectURL(
|
|
118563
|
+
const ve = URL.createObjectURL(ue[0]);
|
|
118554
118564
|
L(ve);
|
|
118555
|
-
const { width: Qe, height: Xe } = await rp(ve), rt = await W.upload(
|
|
118565
|
+
const { width: Qe, height: Xe } = await rp(ve), rt = await W.upload(ue), _t = (qe = rt == null ? void 0 : rt[0]) == null ? void 0 : qe.url;
|
|
118556
118566
|
_t && k.update(() => {
|
|
118557
118567
|
const lt = N.$getNodeByKey(t);
|
|
118558
118568
|
lt.productImageSrc = _t, lt.productImageHeight = Xe, lt.productImageWidth = Qe;
|
|
118559
118569
|
}), L(""), URL.revokeObjectURL(ve);
|
|
118560
|
-
}, R = async (
|
|
118561
|
-
|
|
118570
|
+
}, R = async (ue) => {
|
|
118571
|
+
ue.target.files[0] && await H(ue.target.files);
|
|
118562
118572
|
}, q = () => {
|
|
118563
118573
|
k.update(() => {
|
|
118564
|
-
const
|
|
118565
|
-
|
|
118574
|
+
const ue = N.$getNodeByKey(t);
|
|
118575
|
+
ue.productImageSrc = "";
|
|
118566
118576
|
});
|
|
118567
118577
|
};
|
|
118568
|
-
async function V(
|
|
118569
|
-
await H(
|
|
118578
|
+
async function V(ue) {
|
|
118579
|
+
await H(ue);
|
|
118570
118580
|
}
|
|
118571
|
-
const K = (
|
|
118581
|
+
const K = (ue) => {
|
|
118572
118582
|
k.update(() => {
|
|
118573
118583
|
const ve = N.$getNodeByKey(t);
|
|
118574
|
-
ve.productButtonEnabled =
|
|
118584
|
+
ve.productButtonEnabled = ue.target.checked;
|
|
118575
118585
|
});
|
|
118576
|
-
}, te = (
|
|
118586
|
+
}, te = (ue) => {
|
|
118577
118587
|
k.update(() => {
|
|
118578
118588
|
const ve = N.$getNodeByKey(t);
|
|
118579
|
-
ve.productButton =
|
|
118589
|
+
ve.productButton = ue.target.value;
|
|
118580
118590
|
});
|
|
118581
|
-
}, se = (
|
|
118591
|
+
}, se = (ue) => {
|
|
118582
118592
|
k.update(() => {
|
|
118583
118593
|
const ve = N.$getNodeByKey(t);
|
|
118584
|
-
ve.productUrl =
|
|
118594
|
+
ve.productUrl = ue;
|
|
118585
118595
|
});
|
|
118586
|
-
}, fe = (
|
|
118596
|
+
}, fe = (ue) => {
|
|
118587
118597
|
k.update(() => {
|
|
118588
118598
|
const ve = N.$getNodeByKey(t);
|
|
118589
|
-
ve.productRatingEnabled =
|
|
118599
|
+
ve.productRatingEnabled = ue.target.checked;
|
|
118590
118600
|
});
|
|
118591
|
-
}, U = (
|
|
118601
|
+
}, U = (ue) => {
|
|
118592
118602
|
k.update(() => {
|
|
118593
118603
|
const ve = N.$getNodeByKey(t);
|
|
118594
|
-
ve.productStarRating =
|
|
118604
|
+
ve.productStarRating = ue;
|
|
118595
118605
|
});
|
|
118596
|
-
}, F = (
|
|
118597
|
-
|
|
118606
|
+
}, F = (ue) => {
|
|
118607
|
+
ue.preventDefault(), ue.stopPropagation(), S(!0);
|
|
118598
118608
|
};
|
|
118599
118609
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
118600
118610
|
/* @__PURE__ */ y.jsx(
|
|
@@ -118798,7 +118808,7 @@ function $G({
|
|
|
118798
118808
|
handleButtonTextBlur: U,
|
|
118799
118809
|
setFileInputRef: F
|
|
118800
118810
|
}) {
|
|
118801
|
-
const [ae,
|
|
118811
|
+
const [ae, ue] = wt(!1), [ve, Qe] = wt(!1), Xe = (oe) => oe === "transparent" ? "" : nG(Le(oe)).hex(), rt = ({ r: oe, g: Re, b: Wt, a: Ln }) => {
|
|
118802
118812
|
const Dt = Ln / 255;
|
|
118803
118813
|
return Tg({
|
|
118804
118814
|
r: oe * Dt + 255 * (1 - Dt),
|
|
@@ -119080,7 +119090,7 @@ function $G({
|
|
|
119080
119090
|
title: "Image",
|
|
119081
119091
|
type: "button",
|
|
119082
119092
|
onClick: () => {
|
|
119083
|
-
m(),
|
|
119093
|
+
m(), ue(!1), Qe(!1);
|
|
119084
119094
|
},
|
|
119085
119095
|
children: /* @__PURE__ */ y.jsx(KX, { className: "size-[1.4rem]" })
|
|
119086
119096
|
}
|
|
@@ -119093,10 +119103,10 @@ function $G({
|
|
|
119093
119103
|
value: n && T !== "split" ? "" : s,
|
|
119094
119104
|
onPickerChange: (oe) => x(oe, Xe(oe)),
|
|
119095
119105
|
onSwatchChange: (oe) => {
|
|
119096
|
-
x(oe, Xe(oe)),
|
|
119106
|
+
x(oe, Xe(oe)), ue(!1);
|
|
119097
119107
|
},
|
|
119098
119108
|
onTogglePicker: (oe) => {
|
|
119099
|
-
oe && (T !== "split" && g(), s && x(s, Xe(s))),
|
|
119109
|
+
oe && (T !== "split" && g(), s && x(s, Xe(s))), ue(oe), oe && Qe(!oe);
|
|
119100
119110
|
}
|
|
119101
119111
|
}
|
|
119102
119112
|
),
|
|
@@ -119146,7 +119156,7 @@ function $G({
|
|
|
119146
119156
|
_(oe, Xe(oe)), Qe(!1);
|
|
119147
119157
|
},
|
|
119148
119158
|
onTogglePicker: (oe) => {
|
|
119149
|
-
Qe(oe), oe &&
|
|
119159
|
+
Qe(oe), oe && ue(!oe);
|
|
119150
119160
|
}
|
|
119151
119161
|
}
|
|
119152
119162
|
),
|
|
@@ -119263,7 +119273,7 @@ function DDe({
|
|
|
119263
119273
|
const oe = N.$getNodeByKey(a);
|
|
119264
119274
|
oe.backgroundSize = De;
|
|
119265
119275
|
});
|
|
119266
|
-
},
|
|
119276
|
+
}, ue = (De) => {
|
|
119267
119277
|
De.preventDefault(), De.stopPropagation(), M.dispatchCommand(co, { cardKey: a, focusEditor: !1 });
|
|
119268
119278
|
}, ve = I.useFileUpload("image"), Qe = async (De) => {
|
|
119269
119279
|
M.update(() => {
|
|
@@ -119397,7 +119407,7 @@ function DDe({
|
|
|
119397
119407
|
"data-kg-card-toolbar": "signup",
|
|
119398
119408
|
isVisible: W && !z && !Q,
|
|
119399
119409
|
children: /* @__PURE__ */ y.jsxs(fi, { children: [
|
|
119400
|
-
/* @__PURE__ */ y.jsx(ot, { icon: "edit", isActive: !1, label: "Edit", onClick:
|
|
119410
|
+
/* @__PURE__ */ y.jsx(ot, { icon: "edit", isActive: !1, label: "Edit", onClick: ue }),
|
|
119401
119411
|
/* @__PURE__ */ y.jsx(Xn, { hide: !T.createSnippet }),
|
|
119402
119412
|
/* @__PURE__ */ y.jsx(
|
|
119403
119413
|
ot,
|
|
@@ -119909,16 +119919,16 @@ function BDe({
|
|
|
119909
119919
|
const ae = F[0];
|
|
119910
119920
|
if (!ae)
|
|
119911
119921
|
return;
|
|
119912
|
-
let
|
|
119922
|
+
let ue, ve, Qe, Xe, rt;
|
|
119913
119923
|
try {
|
|
119914
|
-
({ thumbnailBlob:
|
|
119924
|
+
({ thumbnailBlob: ue, duration: ve, width: Qe, height: Xe, mimeType: rt } = await FDe(ae));
|
|
119915
119925
|
} catch {
|
|
119916
119926
|
I([{
|
|
119917
119927
|
name: ae.name,
|
|
119918
119928
|
message: `The file type you uploaded is not supported. Please use .${Q.join(", .").toUpperCase()}`
|
|
119919
119929
|
}]);
|
|
119920
119930
|
}
|
|
119921
|
-
x(URL.createObjectURL(
|
|
119931
|
+
x(URL.createObjectURL(ue));
|
|
119922
119932
|
const _t = await _.upload([ae]), qe = (Yt = _t == null ? void 0 : _t[0]) == null ? void 0 : Yt.url;
|
|
119923
119933
|
if (!qe) {
|
|
119924
119934
|
x("");
|
|
@@ -119928,7 +119938,7 @@ function BDe({
|
|
|
119928
119938
|
const Le = N.$getNodeByKey(t);
|
|
119929
119939
|
Le.src = qe, Le.duration = ve, Le.fileName = ae.name, Le.width = Qe, Le.height = Xe, Le.mimeType = rt, Le.customThumbnailSrc || (Le.thumbnailWidth = Qe, Le.thumbnailHeight = Xe);
|
|
119930
119940
|
});
|
|
119931
|
-
const lt = new File([
|
|
119941
|
+
const lt = new File([ue], `${ae.name}.jpg`, { type: "image/jpeg" }), mt = await S.upload([lt], { formData: { url: qe } }), Pt = (tn = mt == null ? void 0 : mt[0]) == null ? void 0 : tn.url;
|
|
119932
119942
|
Pt && f.update(() => {
|
|
119933
119943
|
const Le = N.$getNodeByKey(t);
|
|
119934
119944
|
Le.thumbnailSrc = Pt;
|
|
@@ -119937,10 +119947,10 @@ function BDe({
|
|
|
119937
119947
|
F.target.files[0] && await L(F.target.files);
|
|
119938
119948
|
}, G = async (F) => {
|
|
119939
119949
|
var Xe;
|
|
119940
|
-
const ae = await C.upload(F),
|
|
119941
|
-
|
|
119950
|
+
const ae = await C.upload(F), ue = (Xe = ae == null ? void 0 : ae[0]) == null ? void 0 : Xe.url, { width: ve, height: Qe } = await rp(ue);
|
|
119951
|
+
ue && f.update(() => {
|
|
119942
119952
|
const rt = N.$getNodeByKey(t);
|
|
119943
|
-
rt.customThumbnailSrc =
|
|
119953
|
+
rt.customThumbnailSrc = ue, rt.thumbnailWidth = ve, rt.thumbnailHeight = Qe;
|
|
119944
119954
|
});
|
|
119945
119955
|
}, H = async (F) => {
|
|
119946
119956
|
await G(F.target.files);
|
|
@@ -130415,7 +130425,7 @@ const xQe = [
|
|
|
130415
130425
|
pi.ListItemNode,
|
|
130416
130426
|
Mi.LinkNode,
|
|
130417
130427
|
ro
|
|
130418
|
-
], U1 = xQe, oZe = "1.3.
|
|
130428
|
+
], U1 = xQe, oZe = "1.3.25";
|
|
130419
130429
|
export {
|
|
130420
130430
|
PD as $isAtStartOfDocument,
|
|
130421
130431
|
DD as $isAtTopOfNode,
|