ghost
Version:
The professional publishing platform
389 lines • 4.14 MB
JavaScript
var xne = Object.defineProperty;
var _ne = (t, e, n) => e in t ? xne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
var we = (t, e, n) => (_ne(t, typeof e != "symbol" ? e + "" : e, n), n);
import * as J from "react";
import j, { useState as ft, useEffect as kt, forwardRef as One, useRef as ct, useImperativeHandle as Sne, useCallback as Mt, useContext as Au, useLayoutEffect as ah, useMemo as Gg, Fragment as Cne } from "react";
import kj, { createPortal as xj } from "react-dom";
try {
let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, e = new t.Error().stack;
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "184d76b5-7885-4654-9dd4-f59801316435", t._sentryDebugIdIdentifier = "sentry-dbid-184d76b5-7885-4654-9dd4-f59801316435");
} catch {
}
var un = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function ko(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
function Ak(t) {
if (t.__esModule)
return t;
var e = t.default;
if (typeof e == "function") {
var n = function i() {
return this instanceof i ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
};
n.prototype = e.prototype;
} else
n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(i) {
var r = Object.getOwnPropertyDescriptor(t, i);
Object.defineProperty(n, i, r.get ? r : {
enumerable: !0,
get: function() {
return t[i];
}
});
}), n;
}
var _j = { exports: {} }, Pk = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ene = j, Tne = Symbol.for("react.element"), $ne = Symbol.for("react.fragment"), Mne = Object.prototype.hasOwnProperty, Nne = Ene.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Ane = { key: !0, ref: !0, __self: !0, __source: !0 };
function Oj(t, e, n) {
var i, r = {}, s = null, o = null;
n !== void 0 && (s = "" + n), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (o = e.ref);
for (i in e)
Mne.call(e, i) && !Ane.hasOwnProperty(i) && (r[i] = e[i]);
if (t && t.defaultProps)
for (i in e = t.defaultProps, e)
r[i] === void 0 && (r[i] = e[i]);
return { $$typeof: Tne, type: t, key: s, ref: o, props: r, _owner: Nne.current };
}
Pk.Fragment = $ne;
Pk.jsx = Oj;
Pk.jsxs = Oj;
_j.exports = Pk;
var y = _j.exports;
const Sj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M12 2v20m10-10H2" })), wS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ J.createElement("path", { d: "M8 7h15" }), /* @__PURE__ */ J.createElement("path", { d: "M23 17.5V1H8v18.5", "data-cap": "butt" }), /* @__PURE__ */ J.createElement("circle", { cx: 4.5, cy: 19.5, r: 3.5 }), /* @__PURE__ */ J.createElement("circle", { cx: 19.5, cy: 17.5, r: 3.5 }))), Cj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 2v10h8a5 5 0 0 0 0-10H3m2 20V12h9c3.314 0 6 2.238 6 5s-2.686 5-6 5H3" })), kS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m21 22-9-5-9 5V3a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v19Z" })), xS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M22 6H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM7 12h10" })), _S = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z" }), /* @__PURE__ */ J.createElement("path", { fill: "currentColor", d: "M12 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 6.5v6" })), Ej = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z", fill: "#000", fillRule: "nonzero" })), OS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M2 12h20" })), SS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m2 5 10 8 10-8" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 4H3c-.53 0-1.04.199-1.414.553A1.837 1.837 0 0 0 1 5.89v13.22c0 .501.21.982.586 1.336C1.96 20.8 2.47 21 3 21h18c.53 0 1.04-.199 1.414-.553.375-.354.586-.835.586-1.336V5.89c0-.501-.21-.982-.586-1.336A2.061 2.061 0 0 0 21 4Z" })), qm = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20 7 2 2l5 18 3-7 8 8 3-3-8-8z" })), CS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m22 11.4-8.8 8.8c-2.5 2.5-6.7 2.5-9.2 0h0c-2.5-2.5-2.5-6.7 0-9.2l7.8-7.8c1.8-1.8 4.6-1.8 6.4 0h0C20 5 20 7.8 18.2 9.6L11 16.7c-1 1-2.6 1-3.5 0h0c-1-1-1-2.6 0-3.5l6-6" })), ES = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.8 5H3.2C1.985 5 1 5.806 1 6.8v14.4c0 .994.985 1.8 2.2 1.8h17.6c1.215 0 2.2-.806 2.2-1.8V6.8c0-.994-.985-1.8-2.2-1.8ZM6 1h12" }), /* @__PURE__ */ J.createElement("path", { fill: "currentColor", d: "M15.142 10.264a.75.75 0 0 1 .529.4l4 8A.75.75 0 0 1 19 19.75H6a.75.75 0 0 1-.498-1.31l9-8a.75.75 0 0 1 .64-.176ZM7 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" })), /* @__PURE__ */ J.createElement("defs", null, /* @__PURE__ */ J.createElement("clipPath", { id: "a" }, /* @__PURE__ */ J.createElement("path", { fill: "#fff", d: "M0 0h24v24H0z" })))), Tj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", ...t }, /* @__PURE__ */ J.createElement("g", { strokeLinecap: "round", strokeWidth: 2, fill: "none", stroke: "currentColor", strokeLinejoin: "round", className: "nc-icon-wrapper" }, /* @__PURE__ */ J.createElement("path", { d: "M3 9h42v36H3zm7-6h28" }), /* @__PURE__ */ J.createElement("path", { d: "m10 38 7-10 5 4 8-11 9 17H10z" }), /* @__PURE__ */ J.createElement("circle", { cx: 17, cy: 19, r: 3 }))), $j = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M1.5 2.75h21m-21 18.5h21M16 17V9a2 2 0 0 1 2-2h2m-4 6h3m-7 4V7m-5 6h1v2a2 2 0 0 1-4 0V9a2 2 0 0 1 2-2h2" })), iy = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M22 7H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM1 21h22M1 3h22" })), Mj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 19.5v-6.25M7 7v6.25m0 0h10M17 7v12.5" })), Nj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 22V12M4 2v10m0 0h16m0-10v20" })), TS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m8 6-6 6 6 6m8-12 6 6-6 6" })), $S = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z" }), /* @__PURE__ */ J.createElement("path", { fill: "currentColor", d: "m19.642 16.276-3.85-7a.517.517 0 0 0-.181-.189.585.585 0 0 0-.749.115l-4.533 5.494-2.307-2.516a.548.548 0 0 0-.206-.14.598.598 0 0 0-.499.031.529.529 0 0 0-.183.164l-2.75 4a.468.468 0 0 0-.015.507.526.526 0 0 0 .202.189c.084.045.18.069.28.069H19.15a.594.594 0 0 0 .268-.063.532.532 0 0 0 .2-.174.462.462 0 0 0 .024-.487ZM9.25 9c.911 0 1.65-.672 1.65-1.5S10.161 6 9.25 6c-.91 0-1.65.672-1.65 1.5S8.34 9 9.25 9Z" })), e1 = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 12h16m-4-4 4 4-4 4m-8 0-4-4 4-4" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: 0.5, d: "M1 3v18M23 3v18" })), MS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", ...t }, /* @__PURE__ */ J.createElement("g", { strokeLinecap: "round", strokeWidth: 2, fill: "none", stroke: "currentColor", strokeLinejoin: "round", className: "nc-icon-wrapper" }, /* @__PURE__ */ J.createElement("circle", { cx: 18, cy: 16, r: 4 }), /* @__PURE__ */ J.createElement("path", { "data-cap": "butt", d: "M20.849 33.164 33 20l13 13M2 38l12-11 10 9" }), /* @__PURE__ */ J.createElement("path", { d: "M2 6h44v36H2z" }))), t1 = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M23 8H1v8h22V8Z" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: 0.5, d: "M1 21h22M1 3h22" })), n1 = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M23 8H1v8h22V8Z" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: 0.5, d: "M8 21h8M8 3h8" })), Aj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M22 2h-9.333m-1.334 20H2m4.667 0L17.333 2" })), NS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M13.54 10.46c2.2 2.2 2.2 5.61 0 7.81l-3.08 3.08c-2.2 2.2-5.61 2.2-7.81 0-2.2-2.2-2.2-5.61 0-7.81L5.4 10.9" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.46 13.54c-2.2-2.2-2.2-5.61 0-7.81l3.08-3.08c2.2-2.2 5.61-2.2 7.81 0 2.2 2.2 2.2 5.61 0 7.81L18.6 13.1" })), AS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 25 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 6v12m-3-2 2.813 2.813L23.625 16" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14 19V6h-1L8 18.071H7L2 6H1v13" })), Pne = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z", fill: "#2081E2" }), /* @__PURE__ */ J.createElement("path", { d: "M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z", fill: "white" }), /* @__PURE__ */ J.createElement("path", { d: "M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z", fill: "white" })), PS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ J.createElement("circle", { cx: 12, cy: 13, r: 2 }), /* @__PURE__ */ J.createElement("circle", { cx: 3, cy: 13, r: 2 }), /* @__PURE__ */ J.createElement("circle", { cx: 21, cy: 13, r: 2 }))), Dk = (t) => /* @__PURE__ */ J.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ J.createElement("path", { d: "M12 1.5v21M1.5 12h21", strokeLinecap: "round", strokeLinejoin: "round" }))), DS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ J.createElement("path", { d: "M1.373 13.183a2.064 2.064 0 0 1 0-2.366C2.946 8.59 6.819 4 12 4s9.054 4.59 10.627 6.817a2.064 2.064 0 0 1 0 2.366C21.054 15.41 17.181 20 12 20s-9.054-4.59-10.627-6.817Z" }), /* @__PURE__ */ J.createElement("circle", { cx: 12, cy: 12, r: 4 }))), IS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m12 2.489 3.09 6.262L22 9.755l-5 4.874 1.18 6.882-6.18-3.25-6.18 3.25L7 14.629 2 9.755l6.91-1.004L12 2.489z" })), Pj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M1 12h8v10H1V12Zm0 0C1 5 2.75 3.344 6 2m8 10h8v10h-8V12Zm0 0c0-7 1.75-8.656 5-10" })), Dj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M13.5 22H10a5 5 0 0 1-5-5v-7" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "m1 14 4-4 4 4m1.5-12H14a5 5 0 0 1 5 5v7" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "m23 10-4 4-4-4" })), Ij = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M22 13.667V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9.667M22 13.667 13.667 22M22 13.667h-6.333a2 2 0 0 0-2 2V22" })), ry = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M22 13.667V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9.667M22 13.667 13.667 22M22 13.667h-6.333a2 2 0 0 0-2 2V22" })), Rj = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z", fill: "#EE7C25", fillRule: "evenodd" })), Lj = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z", fill: "#1ED760", fillRule: "nonzero" })), RS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z" }), /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M16.5 11 12 15l-4.5-4" })), Dne = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944", fill: "#1DA1F2", fillRule: "nonzero" })), jj = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 122.43 122.41", ...t }, /* @__PURE__ */ J.createElement("path", { d: "M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z" })), LS = (t) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ J.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6.555 20.963A1 1 0 0 1 5 20.131V3.87a1 1 0 0 1 1.555-.833l12.197 8.132a1 1 0 0 1 0 1.664l-12.197 8.13Z" })), Fj = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ J.createElement("path", { d: "M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131", fill: "#0FB7FF" }), /* @__PURE__ */ J.createElement("path", { d: "M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765", fill: "#FFFFFE" }))), Bj = (t) => /* @__PURE__ */ J.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ J.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ J.createElement("path", { d: "M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682", fill: "#D9252A" }), /* @__PURE__ */ J.createElement("path", { fill: "#FFFFFE", d: "M12.77 20.958l8.291-4.788-8.291-4.788v9.576" }))), gZe = () => {
return /* @__PURE__ */ y.jsxs("div", { className: "koenig-lexical", children: [
/* @__PURE__ */ y.jsx(t, { label: "Text toolbar" }),
/* @__PURE__ */ y.jsx(e, {}),
/* @__PURE__ */ y.jsx(t, { label: "Image toolbar" }),
/* @__PURE__ */ y.jsx(n, {}),
/* @__PURE__ */ y.jsx(t, { label: "Gallery toolbar" }),
/* @__PURE__ */ y.jsx(i, {}),
/* @__PURE__ */ y.jsx(t, { label: "Plus menu" }),
/* @__PURE__ */ y.jsx(o, {}),
/* @__PURE__ */ y.jsx(t, { label: "Card menu" }),
/* @__PURE__ */ y.jsx(a, {}),
/* @__PURE__ */ y.jsx(t, { label: "Divider card" }),
/* @__PURE__ */ y.jsx("div", { className: "relative max-w-[740px]", children: /* @__PURE__ */ y.jsx(d, {}) }),
/* @__PURE__ */ y.jsx(t, { label: "Code block" }),
/* @__PURE__ */ y.jsx("div", { className: "relative max-w-[740px]", children: /* @__PURE__ */ y.jsx(h, {}) }),
/* @__PURE__ */ y.jsx(t, { label: "Image card" }),
/* @__PURE__ */ y.jsx("div", { className: "relative max-w-[740px]", children: /* @__PURE__ */ y.jsx(g, {}) }),
/* @__PURE__ */ y.jsx(t, { label: "Gallery card" }),
/* @__PURE__ */ y.jsx("div", { className: "relative max-w-[1172px]", children: /* @__PURE__ */ y.jsx(x, {}) })
] });
function t({ label: _ }) {
return /* @__PURE__ */ y.jsx("h3", { className: "mb-4 mt-20 text-xl font-bold first-of-type:mt-8", children: _ });
}
function e() {
return /* @__PURE__ */ y.jsx("div", { className: "max-w-fit", children: /* @__PURE__ */ y.jsxs("ul", { className: "m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white", children: [
/* @__PURE__ */ y.jsx(r, { Icon: Cj, label: "Format text as bold" }),
/* @__PURE__ */ y.jsx(r, { Icon: Aj, label: "Format text as italics" }),
/* @__PURE__ */ y.jsx(r, { Icon: Nj, label: "Toggle heading 1" }),
/* @__PURE__ */ y.jsx(r, { Icon: Mj, label: "Toggle heading 2" }),
/* @__PURE__ */ y.jsx(s, {}),
/* @__PURE__ */ y.jsx(r, { Icon: Pj, label: "Toggle blockquote" }),
/* @__PURE__ */ y.jsx(r, { Icon: NS, label: "Insert link" }),
/* @__PURE__ */ y.jsx(s, {}),
/* @__PURE__ */ y.jsx(r, { Icon: ry, label: "Save as snippet" })
] }) });
}
function n() {
return /* @__PURE__ */ y.jsx("div", { className: "max-w-fit", children: /* @__PURE__ */ y.jsxs("ul", { className: "m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white", children: [
/* @__PURE__ */ y.jsx(r, { Icon: t1, label: "Set image to regular" }),
/* @__PURE__ */ y.jsx(r, { Icon: n1, label: "Set image to wide" }),
/* @__PURE__ */ y.jsx(r, { Icon: e1, label: "Set image to full" }),
/* @__PURE__ */ y.jsx(s, {}),
/* @__PURE__ */ y.jsx(r, { Icon: NS, label: "Insert link" }),
/* @__PURE__ */ y.jsx(r, { Icon: Dj, label: "Replace image" }),
/* @__PURE__ */ y.jsx(s, {}),
/* @__PURE__ */ y.jsx(r, { Icon: ry, label: "Save as snippet" })
] }) });
}
function i() {
return /* @__PURE__ */ y.jsx("div", { className: "max-w-fit", children: /* @__PURE__ */ y.jsxs("ul", { className: "m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white", children: [
/* @__PURE__ */ y.jsx(r, { Icon: Sj, label: "Add image" }),
/* @__PURE__ */ y.jsx(s, {}),
/* @__PURE__ */ y.jsx(r, { Icon: ry, label: "Save as snippet" })
] }) });
}
function r({ label: _, Icon: S, ...C }) {
return /* @__PURE__ */ y.jsx("li", { className: "m-0 flex p-0 first:m-0", ...C, children: /* @__PURE__ */ y.jsx(
"div",
{
className: "flex size-9 items-center justify-center",
type: "button",
children: /* @__PURE__ */ y.jsx(S, { className: "fill-white" })
}
) });
}
function s() {
return /* @__PURE__ */ y.jsx("li", { className: "m-0 mx-1 h-5 w-px bg-grey-900" });
}
function o() {
return /* @__PURE__ */ y.jsx(
"button",
{
"aria-label": "Add a card",
className: "group relative flex size-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:size-9",
type: "button",
children: /* @__PURE__ */ y.jsx(Dk, { className: "size-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900" })
}
);
}
function a() {
return /* @__PURE__ */ y.jsxs("div", { className: "z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 text-sm shadow", children: [
/* @__PURE__ */ y.jsx(l, { label: "Primary" }),
/* @__PURE__ */ y.jsx(u, { desc: "Upload, or embed with /image [url]", Icon: $S, label: "Image" }),
/* @__PURE__ */ y.jsx(u, { desc: "Insert a Markdown editor card", Icon: AS, label: "Markdown" }),
/* @__PURE__ */ y.jsx(u, { desc: "Insert a raw HTML card", Icon: TS, label: "HTML" }),
/* @__PURE__ */ y.jsx(u, { desc: "Create an image gallery", Icon: ES, label: "Gallery" }),
/* @__PURE__ */ y.jsx(u, { desc: "Insert a dividing line", Icon: OS, label: "Divider" }),
/* @__PURE__ */ y.jsx(u, { desc: "Embed a link as a visual bookmark", Icon: kS, label: "Bookmark" }),
/* @__PURE__ */ y.jsx(u, { desc: "Only visible when delivered by email", Icon: SS, label: "Email content" }),
/* @__PURE__ */ y.jsx(u, { desc: "Target free or paid members with a CTA", Icon: qm, label: "Email call to action" }),
/* @__PURE__ */ y.jsx(u, { desc: "Attract signups with a public intro", Icon: DS, label: "Public preview" }),
/* @__PURE__ */ y.jsx(u, { desc: "Add a button to your post", Icon: xS, label: "Button" }),
/* @__PURE__ */ y.jsx(u, { desc: "Info boxes that stand out", Icon: _S, label: "Callout" }),
/* @__PURE__ */ y.jsx(u, { desc: "Search and embed gifs", Icon: $j, label: "GIF" }),
/* @__PURE__ */ y.jsx(u, { desc: "Add collapsible content", Icon: RS, label: "Toggle" }),
/* @__PURE__ */ y.jsx(u, { desc: "Upload and play a video", Icon: LS, label: "Video" }),
/* @__PURE__ */ y.jsx(u, { desc: "Upload and play an audio file", Icon: wS, label: "Audio" }),
/* @__PURE__ */ y.jsx(u, { desc: "Upload a downloadable file", Icon: CS, label: "File" }),
/* @__PURE__ */ y.jsx(u, { desc: "Add a product recommendation", Icon: IS, label: "Product" }),
/* @__PURE__ */ y.jsx(u, { desc: "Add a bold section header", Icon: iy, label: "Header" }),
/* @__PURE__ */ y.jsx(l, { label: "Embed" }),
/* @__PURE__ */ y.jsx(u, { desc: "/youtube [video url]", Icon: Bj, label: "YouTube" }),
/* @__PURE__ */ y.jsx(u, { desc: "/twitter [tweet url]", Icon: Dne, label: "Twitter" }),
/* @__PURE__ */ y.jsx(u, { desc: "/unsplash [search-term or url]", Icon: jj, label: "Unsplash" }),
/* @__PURE__ */ y.jsx(u, { desc: "/vimeo [video url]", Icon: Fj, label: "Vimeo" }),
/* @__PURE__ */ y.jsx(u, { desc: "/codepen [pen url]", Icon: Ej, label: "CodePen" }),
/* @__PURE__ */ y.jsx(u, { desc: "/spotify [track or playlist url]", Icon: Lj, label: "Spotify" }),
/* @__PURE__ */ y.jsx(u, { desc: "/soundcloud [track or playlist url]", Icon: Rj, label: "SoundCloud" }),
/* @__PURE__ */ y.jsx(u, { desc: "/nft [opensea url]", Icon: Pne, label: "NFT" }),
/* @__PURE__ */ y.jsx(u, { desc: "/embed [url]", Icon: PS, label: "Other..." }),
/* @__PURE__ */ y.jsx(l, { label: "Snippets" }),
/* @__PURE__ */ y.jsx(f, { Icon: Ij, label: "A random snippet" })
] });
}
function l({ label: _, ...S }) {
return /* @__PURE__ */ y.jsx("div", { className: "mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-2xs font-medium uppercase tracking-[.06rem] text-grey", style: { minWidth: "calc(100% - 3.2rem)" }, ...S, children: _ });
}
function u({ label: _, desc: S, Icon: C, ...E }) {
return /* @__PURE__ */ y.jsxs("div", { className: "flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100", ...E, children: [
/* @__PURE__ */ y.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ y.jsx(C, { className: "size-7" }) }),
/* @__PURE__ */ y.jsxs("div", { className: "flex flex-col", children: [
/* @__PURE__ */ y.jsx("div", { className: "m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900", children: _ }),
/* @__PURE__ */ y.jsx("div", { className: "m-0 ml-4 truncate text-2xs font-normal leading-[1.333em] tracking-[.02rem] text-grey", children: S })
] })
] });
}
function f({ label: _, Icon: S, ...C }) {
return /* @__PURE__ */ y.jsxs("div", { className: "flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100", ...C, children: [
/* @__PURE__ */ y.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ y.jsx(S, { className: "size-7" }) }),
/* @__PURE__ */ y.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ y.jsx("div", { className: "m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900", children: _ }) })
] });
}
function d() {
return /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx("hr", { className: "block h-[1px] border-0 border-t border-grey-300" }) });
}
function h() {
return /* @__PURE__ */ y.jsxs("div", { className: "border-2 border-green", children: [
/* @__PURE__ */ y.jsx("div", { className: "rounded bg-grey-50 px-3 py-2", children: /* @__PURE__ */ y.jsx("textarea", { className: "w-full resize-none bg-grey-50 font-mono text-[1.7rem]" }) }),
/* @__PURE__ */ y.jsx(w, { placeholder: "Type caption for code block (optional)" })
] });
}
function g() {
const [_, S] = ft(!1), [C, E] = ft(!1), M = () => {
S(!_);
}, T = (D) => {
D.stopPropagation(), E(!C);
};
return _ ? /* @__PURE__ */ y.jsxs(
"div",
{
className: `border border-transparent ${_ ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
onClick: M,
children: [
/* @__PURE__ */ y.jsx(m, { desc: "Click to select an image", Icon: MS }),
/* @__PURE__ */ y.jsx(w, { placeholder: "Type caption for image (optional)" }),
/* @__PURE__ */ y.jsx(
"button",
{
className: `absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${C ? "border-green bg-green text-white" : "border-grey text-grey"} `,
type: "button",
onClick: (D) => T(D),
children: "Alt"
}
)
]
}
) : /* @__PURE__ */ y.jsx(
"div",
{
className: `border border-transparent ${_ ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
onClick: M,
children: /* @__PURE__ */ y.jsx(m, { desc: "Click to select an image", Icon: MS })
}
);
}
function m({ desc: _, Icon: S, ...C }) {
return /* @__PURE__ */ y.jsxs("div", { className: "relative", children: [
/* @__PURE__ */ y.jsx("figure", { className: "cursor-pointer border border-transparent", ...C, children: /* @__PURE__ */ y.jsx("div", { className: "h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]", children: /* @__PURE__ */ y.jsxs("button", { className: "group flex flex-col items-center justify-center p-20", type: "button", children: [
/* @__PURE__ */ y.jsx(S, { className: "size-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100" }),
/* @__PURE__ */ y.jsx("p", { className: "mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800", children: _ })
] }) }) }),
/* @__PURE__ */ y.jsx("form", { children: /* @__PURE__ */ y.jsx(
"input",
{
accept: "image/*",
hidden: !0,
name: "image",
type: "file"
}
) })
] });
}
function w({ placeholder: _ }) {
return /* @__PURE__ */ y.jsx(
"input",
{
className: "not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",
placeholder: _
}
);
}
function x() {
return /* @__PURE__ */ y.jsxs("div", { className: "border-2 border-green", children: [
/* @__PURE__ */ y.jsx(m, { desc: "Click to select up to 9 images", Icon: Tj }),
/* @__PURE__ */ y.jsx(w, { placeholder: "Type caption for gallery (optional)" })
] });
}
}, Rn = j.createContext({}), ht = j.createContext({});
var ge = {};
let Ik = {}, zj = {}, lh = {}, km = {}, jS = {}, uh = {}, V6 = {}, FS = {}, Ym = {}, Vm = {}, ku = {}, X6 = {}, G6 = {}, Wj = {}, Hj = {}, Qj = {}, Zj = {}, Uj = {}, qj = {}, Yj = {}, Yy = {}, Vj = {}, Xj = {}, Gj = {}, Kj = {}, Jj = {}, eF = {}, tF = {}, nF = {}, iF = {}, K6 = {}, J6 = {}, BS = {}, rF = {}, sF = {}, oF = {};
function Re(t) {
let e = new URLSearchParams();
e.append("code", t);
for (let n = 1; n < arguments.length; n++)
e.append("v", arguments[n]);
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
}
let Ra = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ine = Ra && "documentMode" in document ? document.documentMode : null, br = Ra && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Wu = Ra && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Vy = Ra && "InputEvent" in window && !Ine ? "getTargetRanges" in new window.InputEvent("input") : !1, e5 = Ra && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Rk = Ra && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Rne = Ra && /Android/.test(navigator.userAgent), Lne = Ra && /^(?=.*Chrome).*/i.test(navigator.userAgent), t5 = Ra && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Lne, Lk = e5 || Rk || t5 ? " " : "", jne = Wu ? " " : Lk, Fne = /^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/, Bne = /^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/, Pu = { bold: 1, code: 16, highlight: 128, italic: 2, strikethrough: 4, subscript: 32, superscript: 64, underline: 8 }, zne = { directionless: 1, unmergeable: 2 }, z$ = { center: 2, end: 6, justify: 4, left: 1, right: 3, start: 5 }, Wne = { 2: "center", 6: "end", 4: "justify", 1: "left", 3: "right", 5: "start" }, Hne = { normal: 0, segmented: 2, token: 1 }, Qne = { 0: "normal", 2: "segmented", 1: "token" }, zS = !1, n5 = 0;
function Zne(t) {
n5 = t.timeStamp;
}
function eO(t, e, n) {
return e.__lexicalLineBreak === t || t[`__lexicalKey_${n._key}`] !== void 0;
}
function Une(t) {
return t.getEditorState().read(() => {
let e = gn();
return e !== null ? e.clone() : null;
});
}
function aF(t, e, n) {
zS = !0;
let i = 100 < performance.now() - n5;
try {
qs(t, () => {
let r = gn() || Une(t);
var s = /* @__PURE__ */ new Map(), o = t.getRootElement(), a = t._editorState, l = t._blockCursorElement;
let u = !1, f = "";
for (var d = 0; d < e.length; d++) {
var h = e[d], g = h.type, m = h.target, w = r1(m, a);
if (!(w === null && m !== o || Vn(w))) {
if (g === "characterData") {
if (h = i && Ue(w))
e: {
h = r, g = m;
var x = w;
if (xt(h)) {
var _ = h.anchor.getNode();
if (_.is(x) && h.format !== _.getFormat()) {
h = !1;
break e;
}
}
h = g.nodeType === 3 && x.isAttached();
}
h && (x = La(t._window), g = h = null, x !== null && x.anchorNode === m && (h = x.anchorOffset, g = x.focusOffset), m = m.nodeValue, m !== null && a5(w, m, h, g, !1));
} else if (g === "childList") {
for (u = !0, g = h.addedNodes, x = 0; x < g.length; x++) {
_ = g[x];
var S = hF(_), C = _.parentNode;
C == null || _ === l || S !== null || _.nodeName === "BR" && eO(_, C, t) || (Wu && (S = _.innerText || _.nodeValue) && (f += S), C.removeChild(_));
}
if (h = h.removedNodes, g = h.length, 0 < g) {
for (x = 0, _ = 0; _ < g; _++)
C = h[_], (C.nodeName === "BR" && eO(C, m, t) || l === C) && (m.appendChild(C), x++);
g !== x && (m === o && (w = a._nodeMap.get("root")), s.set(m, w));
}
}
}
}
if (0 < s.size)
for (let [
E,
M
] of s)
if (xe(M))
for (s = M.getChildrenKeys(), o = E.firstChild, a = 0; a < s.length; a++)
l = t.getElementByKey(s[a]), l !== null && (o == null ? (E.appendChild(l), o = l) : o !== l && E.replaceChild(l, o), o = o.nextSibling);
else
Ue(M) && M.markDirty();
if (s = n.takeRecords(), 0 < s.length) {
for (o = 0; o < s.length; o++)
for (l = s[o], a = l.addedNodes, l = l.target, d = 0; d < a.length; d++)
w = a[d], m = w.parentNode, m == null || w.nodeName !== "BR" || eO(w, l, t) || m.removeChild(w);
n.takeRecords();
}
r !== null && (u && (r.dirty = !0, Ma(r)), Wu && vF(t) && r.insertRawText(f));
});
} finally {
zS = !1;
}
}
function lF(t) {
let e = t._observer;
if (e !== null) {
let n = e.takeRecords();
aF(t, n, e);
}
}
function uF(t) {
n5 === 0 && Fk(t).addEventListener("textInput", Zne, !0), t._observer = new MutationObserver((e, n) => {
aF(t, e, n);
});
}
function W$(t, e) {
let n = t.__mode, i = t.__format;
t = t.__style;
let r = e.__mode, s = e.__format;
return e = e.__style, (n === null || n === r) && (i === null || i === s) && (t === null || t === e);
}
function H$(t, e) {
let n = t.mergeWithSibling(e), i = Pn()._normalizedNodes;
return i.add(t.__key), i.add(e.__key), n;
}
function cF(t) {
if (t.__text === "" && t.isSimpleText() && !t.isUnmergeable())
t.remove();
else {
for (var e; (e = t.getPreviousSibling()) !== null && Ue(e) && e.isSimpleText() && !e.isUnmergeable(); )
if (e.__text === "")
e.remove();
else {
W$(e, t) && (t = H$(e, t));
break;
}
for (var n; (n = t.getNextSibling()) !=