@fileverse-dev/ddoc 7.2.5-tiptap.2 → 7.2.5-tiptap.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,8 +2,8 @@ var Wd = Object.defineProperty;
2
2
  var $d = (e, t, n) => t in e ? Wd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var te = (e, t, n) => $d(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as i, jsxs as C, Fragment as ot } from "react/jsx-runtime";
5
- import { P as ss, a as zn, p as ll, N as gr, C as qd, i as cl, E as os, g as Gd, b as Yd, u as dl, l as Xd, d as kt, e as z, f as zt, r as ul, n as rs, h as To, j as Qd, k as Ls, F as Zd, L as Jd, m as hl, o as eu, q as tu, s as Li, t as _s, v as yr, I as We, S as nu, w as xr, x as su, T as it, y as ml, z as ou, A as pl, B as ru, D as iu, G as fl, H as Jn, J as gl, K as Lr, M as au, O as _r, Q as yl, R as Hn, U as xl, V as lu, W as cu, X as Pr, Y as du, Z as uu, _ as hu, $ as mu, a0 as wl, a1 as pu, a2 as fu, a3 as gu, a4 as oo, a5 as yu, a6 as Yo, a7 as xu, a8 as wu, a9 as yt, aa as bu, ab as _i, ac as vu, ad as Cu, ae as ku, af as Su, ag as Bn, ah as bl, ai as Nu, aj as Tu, ak as Eu, al as Au, am as Ru, an as Rs, ao as Iu, ap as Eo, aq as Du, ar as Mu, as as Ou, at as vl, au as Ps, av as Cl, aw as kl, ax as kn, ay as Fu, az as wr, aA as Pi, aB as Ui, aC as Bu, aD as Lu, aE as _u, aF as Sl, aG as Pu, aH as Uu, aI as Hu, aJ as zu, aK as Ku, aL as ju, aM as Vu, aN as Wu, aO as $u, aP as qu, aQ as Gu, aR as Yu, aS as Xu, aT as Qu, aU as Zu, aV as Xo, aW as Ju, aX as eh, aY as th, aZ as Nl, a_ as nh, a$ as sh, b0 as oh, b1 as rh, b2 as ih, b3 as pn, b4 as ah, b5 as Hi, b6 as Is, b7 as Ur, b8 as lh, b9 as Hr, ba as ch, bb as Qo, bc as dh, bd as Tl, be as ht, bf as uh, bg as zi, bh as hh, bi as mh, bj as El, bk as ph, bl as Ts, bm as fh, bn as gh, bo as yh, bp as xh, bq as wh, br as bh, bs as vh, bt as Al, bu as Ch, bv as kh, bw as Ki, bx as br, by as Sh, bz as vr, bA as Nh, bB as Zo, bC as Th, bD as Eh, bE as Ah, bF as Rh, bG as Ih, bH as ji, bI as Dh, bJ as Mh, bK as Vi, bL as Oh, bM as Fh, bN as Bh, bO as Lh, bP as _h, bQ as Wi, bR as Cr, bS as $i, bT as Ph, bU as Uh, bV as Hh, bW as zh, bX as Kh, bY as Rl, bZ as qi, b_ as Gi, b$ as jh, c0 as Vh, c1 as Wh, c2 as Yi, c3 as $h, c4 as qh, c5 as Gh, c6 as Yh, c7 as Xh } from "./use-headless-editor-CjTkqBM4.mjs";
6
- import { c8 as ww, c9 as bw } from "./use-headless-editor-CjTkqBM4.mjs";
5
+ import { P as ss, a as zn, p as ll, N as gr, C as qd, i as cl, E as os, g as Gd, b as Yd, u as dl, l as Xd, d as kt, e as z, f as zt, r as ul, n as rs, h as To, j as Qd, k as Ls, F as Zd, L as Jd, m as hl, o as eu, q as tu, s as Li, t as _s, v as yr, I as We, S as nu, w as xr, x as su, T as it, y as ml, z as ou, A as pl, B as ru, D as iu, G as fl, H as Jn, J as gl, K as Lr, M as au, O as _r, Q as yl, R as Hn, U as xl, V as lu, W as cu, X as Pr, Y as du, Z as uu, _ as hu, $ as mu, a0 as wl, a1 as pu, a2 as fu, a3 as gu, a4 as oo, a5 as yu, a6 as Yo, a7 as xu, a8 as wu, a9 as yt, aa as bu, ab as _i, ac as vu, ad as Cu, ae as ku, af as Su, ag as Bn, ah as bl, ai as Nu, aj as Tu, ak as Eu, al as Au, am as Ru, an as Rs, ao as Iu, ap as Eo, aq as Du, ar as Mu, as as Ou, at as vl, au as Ps, av as Cl, aw as kl, ax as kn, ay as Fu, az as wr, aA as Pi, aB as Ui, aC as Bu, aD as Lu, aE as _u, aF as Sl, aG as Pu, aH as Uu, aI as Hu, aJ as zu, aK as Ku, aL as ju, aM as Vu, aN as Wu, aO as $u, aP as qu, aQ as Gu, aR as Yu, aS as Xu, aT as Qu, aU as Zu, aV as Xo, aW as Ju, aX as eh, aY as th, aZ as Nl, a_ as nh, a$ as sh, b0 as oh, b1 as rh, b2 as ih, b3 as pn, b4 as ah, b5 as Hi, b6 as Is, b7 as Ur, b8 as lh, b9 as Hr, ba as ch, bb as Qo, bc as dh, bd as Tl, be as ht, bf as uh, bg as zi, bh as hh, bi as mh, bj as El, bk as ph, bl as Ts, bm as fh, bn as gh, bo as yh, bp as xh, bq as wh, br as bh, bs as vh, bt as Al, bu as Ch, bv as kh, bw as Ki, bx as br, by as Sh, bz as vr, bA as Nh, bB as Zo, bC as Th, bD as Eh, bE as Ah, bF as Rh, bG as Ih, bH as ji, bI as Dh, bJ as Mh, bK as Vi, bL as Oh, bM as Fh, bN as Bh, bO as Lh, bP as _h, bQ as Wi, bR as Cr, bS as $i, bT as Ph, bU as Uh, bV as Hh, bW as zh, bX as Kh, bY as Rl, bZ as qi, b_ as Gi, b$ as jh, c0 as Vh, c1 as Wh, c2 as Yi, c3 as $h, c4 as qh, c5 as Gh, c6 as Yh, c7 as Xh } from "./use-headless-editor-D94uXsr3.mjs";
6
+ import { c8 as bw, c9 as vw } from "./use-headless-editor-D94uXsr3.mjs";
7
7
  import { flip as Il, shift as Dl, offset as Ml, arrow as Ol, size as Fl, autoPlacement as Bl, hide as Ll, inline as _l, computePosition as zr, platform as bs } from "@floating-ui/dom";
8
8
  import Je, { useRef as F, useState as Y, useEffect as K, useLayoutEffect as dt, useCallback as O, createContext as Qh, useContext as Zh, useMemo as be, forwardRef as bt, useReducer as Jh, memo as Ao, createElement as kr, lazy as Pl, Suspense as Xi, useSyncExternalStore as Qi, useImperativeHandle as Ul } from "react";
9
9
  import { createPortal as fn } from "react-dom";
@@ -2087,7 +2087,7 @@ const wp = ({ editor: e, elementRef: t }) => {
2087
2087
  options: T,
2088
2088
  shouldShow: V,
2089
2089
  className: ce(
2090
- "flex gap-2 overflow-hidden rounded-lg min-w-fit w-full p-1 border color-bg-default items-center shadow-elevation-3",
2090
+ "flex gap-2 overflow-hidden rounded-lg min-w-fit p-1 border color-bg-default items-center shadow-elevation-3",
2091
2091
  Ep({
2092
2092
  isCommentOpen: _,
2093
2093
  isLinkPopupOpen: R === We.LINK_POPUP,
@@ -4366,7 +4366,12 @@ ${N}`, w = await c(S);
4366
4366
  }
4367
4367
  }), hf = "data:image/svg+xml,%3csvg%20width='20'%20height='28'%20viewBox='0%200%2020%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='wizard_svg'%3e%3cg%20id='&%23208;&%23191;&%23208;&%23190;&%23209;&%23129;&%23208;&%23190;&%23209;&%23133;'%3e%3crect%20id='Rectangle%2044'%20y='9.00293'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2047'%20x='1'%20y='10.001'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2048'%20x='2'%20y='11.0005'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2055'%20x='2'%20y='12.002'%20width='1'%20height='1'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2057'%20x='2'%20y='19.0015'%20width='1'%20height='1'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2059'%20x='2'%20y='24.0015'%20width='1'%20height='1'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2060'%20x='2'%20y='25.001'%20width='1'%20height='1'%20fill='%23924C15'/%3e%3crect%20id='Rectangle%2061'%20x='1'%20y='25.001'%20width='1'%20height='2'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2063'%20x='3'%20y='22.0005'%20width='1'%20height='2'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2062'%20x='2'%20y='26.0005'%20width='1'%20height='2'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%2056'%20x='2'%20y='13'%20width='1'%20height='6'%20fill='%23924C15'/%3e%3crect%20id='Rectangle%2058'%20x='2'%20y='19.9995'%20width='1'%20height='4'%20fill='%23924C15'/%3e%3crect%20id='Rectangle%2049'%20x='3'%20y='10.001'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2050'%20x='4'%20y='9.00293'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2051'%20x='3'%20y='7.00195'%20width='2'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2052'%20y='7.00195'%20width='2'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2053'%20x='1'%20y='6.00049'%20width='3'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2054'%20x='2'%20y='5.00098'%20width='1'%20height='1'%20fill='%23FFDE00'/%3e%3crect%20id='Rectangle%2045'%20x='1'%20y='8'%20width='3'%20height='1'%20fill='%23FFBA00'/%3e%3crect%20id='Rectangle%2046'%20x='3'%20y='7.00195'%20width='3'%20height='1'%20transform='rotate(90%203%207.00195)'%20fill='%23FFBA00'/%3e%3c/g%3e%3cg%20id='hand'%3e%3crect%20id='Rectangle%2063_2'%20x='1'%20y='15.001'%20width='1'%20height='4'%20fill='%23DD9868'/%3e%3crect%20id='Rectangle%2064'%20x='3'%20y='15.001'%20width='1'%20height='4'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%2065'%20x='4'%20y='16.0005'%20width='1'%20height='2'%20fill='%23F1B68D'/%3e%3c/g%3e%3cg%20id='body'%3e%3crect%20id='Rectangle%20100'%20x='10'%20y='10.9985'%20width='8.00001'%20height='11'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20105'%20width='1'%20height='6'%20transform='matrix(-1%200%200%201%2019%2015.9985)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2066'%20x='4'%20y='15.0005'%20width='2'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2072'%20x='5'%20y='13.9976'%20width='2'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2079'%20x='5'%20y='12.9995'%20width='3'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2080'%20x='6'%20y='11.998'%20width='2'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2081'%20x='5'%20y='11.998'%20width='1'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2082'%20x='6'%20y='10.9985'%20width='3'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2083'%20x='8'%20y='11.998'%20width='2'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2084'%20x='8'%20y='12.9995'%20width='2'%20height='1'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%2086'%20x='10'%20y='13.9976'%20width='3'%20height='1'%20transform='rotate(90%2010%2013.9976)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%2085'%20x='7'%20y='13.9976'%20width='2'%20height='1'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2087'%20x='9'%20y='15.0005'%20width='2'%20height='1'%20transform='rotate(90%209%2015.0005)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2088'%20x='10'%20y='16.998'%20width='2'%20height='2'%20transform='rotate(90%2010%2016.998)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2089'%20x='10'%20y='18.9976'%20width='3'%20height='3'%20transform='rotate(90%2010%2018.9976)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2091'%20x='11'%20y='18.9976'%20width='2'%20height='1'%20transform='rotate(90%2011%2018.9976)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20110'%20x='17'%20y='24.999'%20width='1'%20height='1'%20transform='rotate(90%2017%2024.999)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%2090'%20x='9'%20y='21.998'%20width='1'%20height='2'%20transform='rotate(90%209%2021.998)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2092'%20x='8'%20y='22.998'%20width='1'%20height='1'%20transform='rotate(90%208%2022.998)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%2073'%20x='6'%20y='15.0005'%20width='2'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2075'%20x='8'%20y='15.9985'%20width='2'%20height='1'%20transform='rotate(90%208%2015.9985)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2074'%20x='6'%20y='17.9995'%20width='2'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2076'%20x='6'%20y='18.9976'%20width='1'%20height='6'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2068'%20x='4'%20y='17.9995'%20width='2'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2070'%20x='3'%20y='19.999'%20width='2'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2077'%20x='3'%20y='20.9985'%20width='3'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2069'%20x='3'%20y='18.9976'%20width='3'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2067'%20x='5'%20y='15.9985'%20width='2'%20height='2'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%2071'%20x='3'%20y='12.9995'%20width='2'%20height='2'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2078'%20x='5'%20y='19.999'%20width='1'%20height='4'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2093'%20x='7'%20y='23.9995'%20width='11'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2096'%20x='9'%20y='24.999'%20width='7.00001'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2094'%20x='8'%20y='22.998'%20width='11'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2095'%20x='9'%20y='21.998'%20width='10'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20109'%20x='19'%20y='20.9985'%20width='1'%20height='2'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%2097'%20x='12'%20y='19.999'%20width='3'%20height='3'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%20106'%20x='12'%20y='17.9995'%20width='3'%20height='1'%20fill='%23E57B27'/%3e%3crect%20id='Rectangle%20107'%20x='12'%20y='16.998'%20width='3'%20height='1'%20fill='%23924C15'/%3e%3crect%20id='Rectangle%20108'%20x='12'%20y='15.9985'%20width='3'%20height='1'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%20101'%20x='17'%20y='13.9976'%20width='9.00001'%20height='1'%20transform='rotate(90%2017%2013.9976)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20102'%20x='18'%20y='19.999'%20width='2'%20height='1'%20transform='rotate(90%2018%2019.999)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20104'%20x='18'%20y='16.998'%20width='1'%20height='1'%20transform='rotate(90%2018%2016.998)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20103'%20x='18'%20y='17.9995'%20width='2'%20height='1'%20transform='rotate(90%2018%2017.9995)'%20fill='%237B62CF'/%3e%3c/g%3e%3cg%20id='hat'%3e%3crect%20id='Rectangle%20111'%20x='8'%20y='6.99854'%20width='2'%20height='1'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20113'%20x='7'%20y='6.99854'%20width='1'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20114'%20x='10'%20y='5.99902'%20width='1'%20height='1'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20112'%20x='7'%20y='5.99902'%20width='3'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20115'%20x='11'%20y='5.99902'%20width='3'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20116'%20x='15'%20y='5.99902'%20width='4'%20height='1'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20117'%20x='16'%20y='8'%20width='3'%20height='1'%20transform='rotate(-90%2016%208)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20118'%20x='15'%20y='5.99902'%20width='1'%20height='1'%20transform='rotate(-90%2015%205.99902)'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%20129'%20x='14'%20y='4.99951'%20width='1'%20height='1'%20transform='rotate(-90%2014%204.99951)'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%20120'%20x='13'%20y='5.99902'%20width='1'%20height='1'%20transform='rotate(-90%2013%205.99902)'%20fill='%235E5DEC'/%3e%3crect%20id='Rectangle%20121'%20x='9'%20y='5.99902'%20width='1'%20height='4'%20transform='rotate(-90%209%205.99902)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20131'%20x='11'%20y='4.99951'%20width='1'%20height='3'%20transform='rotate(-90%2011%204.99951)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20132'%20x='10'%20y='3.99951'%20width='1'%20height='2'%20transform='rotate(-90%2010%203.99951)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20133'%20x='8'%20y='3'%20width='1'%20height='4'%20transform='rotate(-90%208%203)'%20fill='%239291FF'/%3e%3crect%20id='Rectangle%20119'%20x='14'%20y='5.99902'%20width='1'%20height='1'%20transform='rotate(-90%2014%205.99902)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20130'%20x='15'%20y='4.99951'%20width='1'%20height='1'%20transform='rotate(-90%2015%204.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20135'%20x='14'%20y='3.99951'%20width='1'%20height='1'%20transform='rotate(-90%2014%203.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20134'%20x='12'%20y='3.99951'%20width='2'%20height='2'%20transform='rotate(-90%2012%203.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20122'%20x='8'%20y='5.99902'%20width='3'%20height='1'%20transform='rotate(-90%208%205.99902)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20123'%20x='9'%20y='4.99951'%20width='2'%20height='1'%20transform='rotate(-90%209%204.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20124'%20x='10'%20y='4.99951'%20width='1'%20height='1'%20transform='rotate(-90%2010%204.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20125'%20x='7'%20y='3.99951'%20width='1'%20height='1'%20transform='rotate(-90%207%203.99951)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20128'%20x='7'%20y='0.999023'%20width='1'%20height='2'%20transform='rotate(-90%207%200.999023)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20127'%20x='6'%20y='2.00049'%20width='1'%20height='7.00001'%20transform='rotate(-90%206%202.00049)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20126'%20x='5'%20y='3'%20width='1'%20height='3'%20transform='rotate(-90%205%203)'%20fill='%232C2CA4'/%3e%3c/g%3e%3cg%20id='legs'%3e%3crect%20id='Rectangle%20111_2'%20x='12'%20y='25.999'%20width='1'%20height='2'%20transform='rotate(90%2012%2025.999)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20114_2'%20x='12'%20y='26.9985'%20width='1'%20height='2'%20transform='rotate(90%2012%2026.9985)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20113_2'%20x='10'%20y='26.9985'%20width='1'%20height='1'%20transform='rotate(90%2010%2026.9985)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20112_2'%20x='13'%20y='25.999'%20width='2'%20height='1'%20transform='rotate(90%2013%2025.999)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20116_2'%20x='17'%20y='26.9985'%20width='1'%20height='2'%20transform='rotate(90%2017%2026.9985)'%20fill='%232C2CA4'/%3e%3crect%20id='Rectangle%20117_2'%20x='15'%20y='26.9985'%20width='1'%20height='1'%20transform='rotate(90%2015%2026.9985)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20119_2'%20x='19'%20y='26.9985'%20width='1'%20height='1'%20transform='rotate(90%2019%2026.9985)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20118_2'%20x='18'%20y='25.999'%20width='2'%20height='1'%20transform='rotate(90%2018%2025.999)'%20fill='%237B62CF'/%3e%3crect%20id='Rectangle%20115_2'%20x='17'%20y='25.999'%20width='1'%20height='3'%20transform='rotate(90%2017%2025.999)'%20fill='%232C2CA4'/%3e%3c/g%3e%3cg%20id='head'%3e%3crect%20id='Rectangle%2093_2'%20x='6'%20y='10.0005'%20width='2'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%2095_2'%20x='7'%20y='8.99756'%20width='1'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%2096_2'%20x='8'%20y='7.99951'%20width='1'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%20117_3'%20x='17'%20y='8.99756'%20width='1'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%2098'%20x='9'%20y='7.99951'%20width='1'%20height='2'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%20113_3'%20x='12'%20y='7.99951'%20width='1'%20height='1'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%20104_2'%20x='10'%20y='8.99756'%20width='1'%20height='4'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20105_2'%20x='11'%20y='8.99756'%20width='1'%20height='5'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20107_2'%20x='12'%20y='10.9985'%20width='1'%20height='4'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20108_2'%20x='12'%20y='8.99756'%20width='4'%20height='1'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20109_2'%20x='14'%20y='10.0005'%20width='3'%20height='1'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20112_3'%20x='13'%20y='14.999'%20width='1'%20height='1'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20110_2'%20x='13'%20y='10.9985'%20width='3'%20height='2'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20111_3'%20x='12'%20y='12.9995'%20width='3'%20height='2'%20fill='%23DBF0F6'/%3e%3crect%20id='Rectangle%20101_2'%20x='10'%20y='6.99805'%20width='5'%20height='1'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%20122_2'%20x='14'%20y='5.99854'%20width='1'%20height='1'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%20102_2'%20x='10'%20y='7.99951'%20width='2'%20height='1'%20fill='%23141445'/%3e%3crect%20id='Rectangle%20106_2'%20x='12'%20y='10.0005'%20width='2'%20height='1'%20fill='%23F1B68D'/%3e%3crect%20id='Rectangle%20103_2'%20x='13'%20y='7.99951'%20width='2'%20height='1'%20fill='%23141445'/%3e%3crect%20id='Rectangle%2099'%20x='9'%20y='10.0005'%20width='1'%20height='1'%20fill='%23F2C6A7'/%3e%3crect%20id='Rectangle%20114_3'%20x='15'%20y='7.99951'%20width='1'%20height='1'%20fill='%23F2C6A7'/%3e%3crect%20id='Rectangle%20115_3'%20x='15'%20y='6.99805'%20width='1'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%20116_3'%20x='16'%20y='7.99951'%20width='1'%20height='2'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%20118_3'%20x='17'%20y='10.0005'%20width='1'%20height='2'%20fill='%23778A8F'/%3e%3crect%20id='Rectangle%20121_2'%20x='19'%20y='12.9995'%20width='1'%20height='1'%20fill='%23778A8F'/%3e%3crect%20id='Rectangle%20119_3'%20x='18'%20y='13.9976'%20width='1'%20height='2'%20fill='%23778A8F'/%3e%3crect%20id='Rectangle%20120_2'%20x='18'%20y='10.9985'%20width='1'%20height='3'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%20100_2'%20x='9'%20y='10.9985'%20width='1'%20height='1'%20fill='%23ADBFC4'/%3e%3crect%20id='Rectangle%2094_2'%20x='8'%20y='8.99756'%20width='1'%20height='2'%20fill='%23778A8F'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", mf = "_previewContent_6kbis_1", pf = {
4368
4368
  previewContent: mf
4369
- }, ua = [
4369
+ }, ff = () => [
4370
+ Nu.configure({ orderedList: !1, blockquote: !1 }),
4371
+ Tu,
4372
+ Eu,
4373
+ ...Au
4374
+ ], ua = [
4370
4375
  "Reflecting",
4371
4376
  "Your wizard is never late, nor is he early",
4372
4377
  "Your wizard arrives precisely when it is meant"
@@ -4379,7 +4384,7 @@ const ha = () => {
4379
4384
  html: !0,
4380
4385
  linkify: !0,
4381
4386
  typographer: !0
4382
- }), ff = Ao(
4387
+ }), gf = Ao(
4383
4388
  ({
4384
4389
  node: e,
4385
4390
  editor: t,
@@ -4392,13 +4397,8 @@ const ha = () => {
4392
4397
  !!localStorage.getItem("include-ddoc-context")
4393
4398
  ), [b, T] = Y(!0), { prompt: S, content: w } = e.attrs, k = F(null), R = F(null), I = F(null), { isSuggestionMode: _ } = fl(), $ = !t.isEditable || !!_, { isWindows: H } = zt(), X = H ? "Ctrl" : "Cmd", W = window.__MODEL_CONTEXT__, j = F(null), [Z, de] = Y(
4394
4399
  ha()
4395
- ), q = Nu({
4396
- extensions: [
4397
- Tu.configure({ orderedList: !1, blockquote: !1 }),
4398
- Eu,
4399
- Au,
4400
- ...Ru
4401
- ],
4400
+ ), q = Ru({
4401
+ extensions: ff(),
4402
4402
  content: "",
4403
4403
  editable: !0,
4404
4404
  immediatelyRender: !1,
@@ -4914,7 +4914,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
4914
4914
  }
4915
4915
  );
4916
4916
  }
4917
- ), gf = Du.create({
4917
+ ), yf = Du.create({
4918
4918
  name: "aiWriter",
4919
4919
  group: "block",
4920
4920
  atom: !0,
@@ -4957,7 +4957,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
4957
4957
  ];
4958
4958
  },
4959
4959
  addNodeView() {
4960
- return Mu(ff);
4960
+ return Mu(gf);
4961
4961
  },
4962
4962
  addCommands() {
4963
4963
  return {
@@ -4976,13 +4976,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
4976
4976
  e();
4977
4977
  } catch {
4978
4978
  }
4979
- }, yf = (e) => {
4979
+ }, xf = (e) => {
4980
4980
  try {
4981
4981
  return vl.getState(e.state) ?? null;
4982
4982
  } catch {
4983
4983
  return null;
4984
4984
  }
4985
- }, xf = (e) => {
4985
+ }, wf = (e) => {
4986
4986
  var t;
4987
4987
  try {
4988
4988
  return ((t = Ps.getState(e.state)) == null ? void 0 : t.binding) ?? null;
@@ -4992,7 +4992,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
4992
4992
  }, pa = (e) => {
4993
4993
  if (!e)
4994
4994
  return;
4995
- const t = xf(e);
4995
+ const t = wf(e);
4996
4996
  t && (Xt(() => {
4997
4997
  var n;
4998
4998
  return (n = t.destroy) == null ? void 0 : n.call(t);
@@ -5010,7 +5010,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5010
5010
  }, fa = (e) => {
5011
5011
  if (!e)
5012
5012
  return;
5013
- const t = yf(e), n = t == null ? void 0 : t.undoManager;
5013
+ const t = xf(e), n = t == null ? void 0 : t.undoManager;
5014
5014
  n && (Xt(() => {
5015
5015
  var s;
5016
5016
  return (s = n.clear) == null ? void 0 : s.call(n, !0, !0);
@@ -5026,9 +5026,9 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5026
5026
  }), Xt(() => {
5027
5027
  t.prevSel = null;
5028
5028
  }));
5029
- }, wf = (e) => {
5029
+ }, bf = (e) => {
5030
5030
  e && (fa(e), pa(e), e.isDestroyed || e.destroy(), fa(e), pa(e));
5031
- }, bf = 4, vf = (e, t) => {
5031
+ }, vf = 4, Cf = (e, t) => {
5032
5032
  var s;
5033
5033
  const n = (s = e.view) == null ? void 0 : s.dom;
5034
5034
  if (n) {
@@ -5044,7 +5044,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5044
5044
  var n;
5045
5045
  const t = (n = e.view) == null ? void 0 : n.dom;
5046
5046
  !t || typeof document > "u" || (document.activeElement && t.contains(document.activeElement) && document.activeElement.blur(), t.blur());
5047
- }, Cf = ({
5047
+ }, kf = ({
5048
5048
  activeTabId: e,
5049
5049
  tabIds: t,
5050
5050
  activeTabIdRef: n,
@@ -5079,7 +5079,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5079
5079
  m.current.forEach((S) => {
5080
5080
  const w = S.tabId === T;
5081
5081
  if (!S.editor.isDestroyed) {
5082
- if (vf(S.editor, !w), w) {
5082
+ if (Cf(S.editor, !w), w) {
5083
5083
  ga(S.editor, f.current), f.current || ya(S.editor);
5084
5084
  return;
5085
5085
  }
@@ -5100,7 +5100,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5100
5100
  p.current = [
5101
5101
  T,
5102
5102
  ...p.current.filter((S) => S !== T)
5103
- ].slice(0, bf);
5103
+ ].slice(0, vf);
5104
5104
  }, []), A = O(() => {
5105
5105
  const T = new Set(p.current);
5106
5106
  m.current.forEach((S, w) => {
@@ -5165,7 +5165,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5165
5165
  editor: c,
5166
5166
  cachedEditorEntries: d
5167
5167
  };
5168
- }, kf = ["words", "characters", "selectedWords", "pages"], Sf = (e) => {
5168
+ }, Sf = ["words", "characters", "selectedWords", "pages"], Nf = (e) => {
5169
5169
  let t = {
5170
5170
  words: 0,
5171
5171
  characters: 0,
@@ -5173,7 +5173,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
5173
5173
  pages: null
5174
5174
  }, n = null, s = !1;
5175
5175
  const o = () => {
5176
- s && (n && kf.every((r) => n[r] === t[r]) || (n = t, e(t)));
5176
+ s && (n && Sf.every((r) => n[r] === t[r]) || (n = t, e(t)));
5177
5177
  };
5178
5178
  return {
5179
5179
  // Called when a tab becomes active; nothing is emitted until its first tick.
@@ -5190,7 +5190,7 @@ function uc(e) {
5190
5190
  const t = (s = (n = e.storage.pagination) == null ? void 0 : n.store) == null ? void 0 : s.get();
5191
5191
  return t != null && t.enabled && typeof t.pageCount == "number" ? t.pageCount : null;
5192
5192
  }
5193
- function Nf(e, t, n) {
5193
+ function Tf(e, t, n) {
5194
5194
  var a;
5195
5195
  const s = (a = e.storage.pagination) == null ? void 0 : a.store;
5196
5196
  if (!s) return () => {
@@ -5204,14 +5204,14 @@ function Nf(e, t, n) {
5204
5204
  };
5205
5205
  return r(), s.subscribe(r);
5206
5206
  }
5207
- const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5207
+ const Ef = (e, t, n) => t ? Nl(n) : nh(e).then(
5208
5208
  (s) => {
5209
5209
  s || Hn(e.getHTML());
5210
5210
  },
5211
5211
  (s) => {
5212
5212
  console.error("Pages print failed, using the plain path", s), Hn(e.getHTML());
5213
5213
  }
5214
- ), Ef = {
5214
+ ), Af = {
5215
5215
  ...dc.attributes
5216
5216
  }, xa = [
5217
5217
  "#30bced",
@@ -5222,7 +5222,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5222
5222
  "#db3041",
5223
5223
  "#0ad7f2",
5224
5224
  "#1bff39"
5225
- ], Af = 4e4, Rf = 0.02, If = 6e4, Df = (e) => !th(e), wa = (e) => typeof window.requestIdleCallback == "function" ? {
5225
+ ], Rf = 4e4, If = 0.02, Df = 6e4, Mf = (e) => !th(e), wa = (e) => typeof window.requestIdleCallback == "function" ? {
5226
5226
  kind: "idle",
5227
5227
  handle: window.requestIdleCallback(() => e(), {
5228
5228
  timeout: 300
@@ -5238,9 +5238,9 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5238
5238
  }
5239
5239
  window.clearTimeout(e.handle);
5240
5240
  }
5241
- }, Cs = (e, t) => (t == null ? void 0 : t.view) === e && !t.isDestroyed, nr = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, Mf = () => typeof document > "u" ? !1 : !!document.querySelector(
5241
+ }, Cs = (e, t) => (t == null ? void 0 : t.view) === e && !t.isDestroyed, nr = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, Of = () => typeof document > "u" ? !1 : !!document.querySelector(
5242
5242
  '[data-floating-comment-hidden="false"] [data-floating-comment-card]'
5243
- ), Of = ({
5243
+ ), Ff = ({
5244
5244
  ydoc: e,
5245
5245
  editorWidthStore: t,
5246
5246
  isVersionMode: n,
@@ -5291,9 +5291,9 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5291
5291
  dBlockRuntimeStateRef: Q,
5292
5292
  docSchemaVersion: L = 1
5293
5293
  }) => {
5294
- const B = (c == null ? void 0 : c.enabled) === !0, M = B ? c.connection : null, { activeCommentId: ne, setActiveCommentId: pe, focusCommentWithActiveId: ke } = Ff(), ae = F(V);
5294
+ const B = (c == null ? void 0 : c.enabled) === !0, M = B ? c.connection : null, { activeCommentId: ne, setActiveCommentId: pe, focusCommentWithActiveId: ke } = Bf(), ae = F(V);
5295
5295
  ae.current = V;
5296
- const ee = F(null), he = !!(A && b), { tocItems: De, setTocItems: Ne, handleTocUpdateForTab: He } = Bf(V), ze = !!(r && a === "suggest"), et = F(Cl), mt = Q ?? et, gt = O(
5296
+ const ee = F(null), he = !!(A && b), { tocItems: De, setTocItems: Ne, handleTocUpdateForTab: He } = Lf(V), ze = !!(r && a === "suggest"), et = F(Cl), mt = Q ?? et, gt = O(
5297
5297
  (fe, ge) => {
5298
5298
  ae.current === fe && (pe(ge || null), ge && setTimeout(() => ke(ge)));
5299
5299
  },
@@ -5308,7 +5308,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5308
5308
  commentAnchorsRef: je,
5309
5309
  draftAnchorsRef: jt,
5310
5310
  storeApiRef: Qe
5311
- } = Lf({
5311
+ } = _f({
5312
5312
  ydoc: e,
5313
5313
  onError: f,
5314
5314
  ipfsImageUploadFn: y,
@@ -5330,7 +5330,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5330
5330
  isSuggestionMode: ze,
5331
5331
  dBlockRuntimeStateRef: mt,
5332
5332
  docSchemaVersion: L
5333
- }), { handleCommentInteraction: Ze, handleCommentClick: Vt } = _f({
5333
+ }), { handleCommentInteraction: Ze, handleCommentClick: Vt } = Pf({
5334
5334
  isFocusMode: m,
5335
5335
  onCommentInteraction: p
5336
5336
  }), tn = F(m);
@@ -5378,7 +5378,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5378
5378
  },
5379
5379
  blur: (xe) => (Cs(xe, ee.current) && requestAnimationFrame(() => {
5380
5380
  requestAnimationFrame(() => {
5381
- if (Mf())
5381
+ if (Of())
5382
5382
  return;
5383
5383
  const Te = ee.current;
5384
5384
  Te && wr(Te);
@@ -5438,7 +5438,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5438
5438
  // data-schema-version lets CSS target one schema (v1 keeps the
5439
5439
  // dBlock-era compensation rules, v2 gets its own rhythm).
5440
5440
  attributes: {
5441
- ...Ef,
5441
+ ...Af,
5442
5442
  "data-schema-version": String(L)
5443
5443
  }
5444
5444
  },
@@ -5455,8 +5455,8 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5455
5455
  L
5456
5456
  ]
5457
5457
  ), Wn = be(() => B, [B]), Nn = be(() => !(r && !ze), [r, ze]), yn = O((fe) => {
5458
- Pi(fe), wf(fe), Pi(fe);
5459
- }, []), { editor: le, cachedEditorEntries: ms } = Cf({
5458
+ Pi(fe), bf(fe), Pi(fe);
5459
+ }, []), { editor: le, cachedEditorEntries: ms } = kf({
5460
5460
  activeTabId: V,
5461
5461
  tabIds: U,
5462
5462
  activeTabIdRef: ae,
@@ -5611,7 +5611,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5611
5611
  ]);
5612
5612
  const Nt = F(() => {
5613
5613
  }), $t = F(null), Tn = 3e4, qt = F(null), sn = F(!1);
5614
- Pf({
5614
+ Uf({
5615
5615
  editor: le,
5616
5616
  isReady: u,
5617
5617
  awareness: d,
@@ -5652,7 +5652,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5652
5652
  An.current = R;
5653
5653
  });
5654
5654
  const ps = F(null);
5655
- ps.current || (ps.current = Sf(
5655
+ ps.current || (ps.current = Nf(
5656
5656
  (fe) => {
5657
5657
  var ge;
5658
5658
  return (ge = An.current) == null ? void 0 : ge.call(An, fe);
@@ -5684,7 +5684,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5684
5684
  xe ? [
5685
5685
  ...xe.transaction ? [xe.transaction] : [],
5686
5686
  ...xe.appendedTransactions ?? []
5687
- ].some(Df) && (Tt.current += 1) : (Tt.current += 1, It.beginTab(
5687
+ ].some(Mf) && (Tt.current += 1) : (Tt.current += 1, It.beginTab(
5688
5688
  ((Te = En.current[V]) == null ? void 0 : Te.pageCount) ?? null
5689
5689
  )), on.current && clearTimeout(on.current), on.current = setTimeout(() => {
5690
5690
  if (on.current = null, le && ee.current === le && !le.isDestroyed) {
@@ -5696,7 +5696,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5696
5696
  if (!Oe)
5697
5697
  return;
5698
5698
  const Be = En.current[V];
5699
- if (Be && Ee > Af && Be.structuralVersion === Tt.current && Math.abs(Ee - Be.characters) < Be.characters * Rf && Date.now() - Be.at < If) {
5699
+ if (Be && Ee > Rf && Be.structuralVersion === Tt.current && Math.abs(Ee - Be.characters) < Be.characters * If && Date.now() - Be.at < Df) {
5700
5700
  const Dt = Math.max(
5701
5701
  1,
5702
5702
  Math.round(
@@ -5731,7 +5731,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5731
5731
  }, 500);
5732
5732
  };
5733
5733
  ge(), fe();
5734
- const Re = k || we ? Nf(
5734
+ const Re = k || we ? Tf(
5735
5735
  le,
5736
5736
  (xe) => {
5737
5737
  ee.current === le && (k == null || k(xe), It.publish({ pages: xe }));
@@ -5754,7 +5754,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5754
5754
  It
5755
5755
  ]), K(() => {
5756
5756
  const fe = (ge) => {
5757
- (ge.ctrlKey || ge.metaKey) && ge.key === "p" && (ge.preventDefault(), le && Tf(le, H, un));
5757
+ (ge.ctrlKey || ge.metaKey) && ge.key === "p" && (ge.preventDefault(), le && Ef(le, H, un));
5758
5758
  };
5759
5759
  return window.addEventListener("keydown", fe), () => {
5760
5760
  window.removeEventListener("keydown", fe);
@@ -5862,7 +5862,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5862
5862
  }), xe && (ge.setMeta("addToHistory", !1), le.view.dispatch(ge));
5863
5863
  }, 0);
5864
5864
  return () => clearTimeout(fe);
5865
- }, [le, l, P, re]), Uf(le, l, !1);
5865
+ }, [le, l, P, re]), Hf(le, l, !1);
5866
5866
  const qn = F(null);
5867
5867
  return K(() => {
5868
5868
  le && qn.current !== ne && (qn.current = ne, Uu(le));
@@ -5882,7 +5882,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5882
5882
  draftAnchorsRef: jt,
5883
5883
  storeApiRef: Qe
5884
5884
  };
5885
- }, Ff = () => {
5885
+ }, Bf = () => {
5886
5886
  const [e, t] = Y(null), n = F(null), s = O((o) => {
5887
5887
  if (!n.current) return;
5888
5888
  const r = n.current.querySelector(`input#${o}`);
@@ -5899,7 +5899,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5899
5899
  setActiveCommentId: t,
5900
5900
  focusCommentWithActiveId: s
5901
5901
  };
5902
- }, Bf = (e) => {
5902
+ }, Lf = (e) => {
5903
5903
  const [t, n] = Y([]), s = F(null), o = F({}), r = F(e);
5904
5904
  K(() => {
5905
5905
  r.current = e;
@@ -5933,7 +5933,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
5933
5933
  setTocItems: n,
5934
5934
  handleTocUpdateForTab: a
5935
5935
  };
5936
- }, Lf = ({
5936
+ }, _f = ({
5937
5937
  ydoc: e,
5938
5938
  onError: t,
5939
5939
  ipfsImageUploadFn: n,
@@ -6090,7 +6090,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6090
6090
  temperature: 0.1,
6091
6091
  tone: "neutral"
6092
6092
  }),
6093
- gf,
6093
+ yf,
6094
6094
  // v2 has no dBlock: the filter above removed nothing, re-add nothing.
6095
6095
  ...v >= 2 ? [] : [
6096
6096
  Xu({
@@ -6126,7 +6126,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6126
6126
  draftAnchorsRef: _,
6127
6127
  storeApiRef: X
6128
6128
  };
6129
- }, _f = ({
6129
+ }, Pf = ({
6130
6130
  isFocusMode: e = !1,
6131
6131
  onCommentInteraction: t
6132
6132
  }) => {
@@ -6177,7 +6177,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6177
6177
  [r]
6178
6178
  );
6179
6179
  return { handleCommentInteraction: r, handleCommentClick: a };
6180
- }, Pf = ({
6180
+ }, Uf = ({
6181
6181
  editor: e,
6182
6182
  isReady: t,
6183
6183
  awareness: n,
@@ -6246,7 +6246,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6246
6246
  isEns: a.isEns
6247
6247
  });
6248
6248
  }, [t, r, a == null ? void 0 : a.username, a == null ? void 0 : a.isEns, n]);
6249
- }, Uf = (e, t, n) => {
6249
+ }, Hf = (e, t, n) => {
6250
6250
  const s = F(localStorage.getItem("theme") !== null), o = F(!1);
6251
6251
  K(() => {
6252
6252
  if (!e || n || !s.current || o.current)
@@ -6280,13 +6280,13 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6280
6280
  for (let r = n + 1; r < e.length && !(Er(e[r]) <= s); r++)
6281
6281
  o.push(e[r].id);
6282
6282
  return o;
6283
- }, Hf = (e) => !!e && Er(e) < bo, hc = (e, t) => {
6283
+ }, zf = (e) => !!e && Er(e) < bo, hc = (e, t) => {
6284
6284
  const n = e.toArray();
6285
6285
  t.map((o) => n.indexOf(o)).filter((o) => o !== -1).sort((o, r) => r - o).forEach((o) => e.delete(o, 1));
6286
6286
  }, Mo = (e, t) => {
6287
6287
  const n = e.toArray(), s = Math.max(-1, ...t.map((o) => n.indexOf(o)));
6288
6288
  return s === -1 ? n.length : s + 1;
6289
- }, zf = (e, t, n) => {
6289
+ }, Kf = (e, t, n) => {
6290
6290
  const s = St(e), o = s.parentById.get(t);
6291
6291
  e.transact(() => {
6292
6292
  if (o === void 0) {
@@ -6296,16 +6296,16 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6296
6296
  const r = ns(ls(s), t);
6297
6297
  n.forEach((a) => s.parentById.set(a, o)), s.order.insert(Mo(s.order, r), n);
6298
6298
  });
6299
- }, Kf = (e, t, n, s) => {
6299
+ }, jf = (e, t, n, s) => {
6300
6300
  const o = St(e), r = ls(o), a = r.find((u) => u.id === t);
6301
- if (!a || !Hf(a)) return null;
6301
+ if (!a || !zf(a)) return null;
6302
6302
  const l = ns(r, t), c = r.filter((u) => u.parentId === t).length;
6303
6303
  return e.transact(() => {
6304
6304
  o.nameById.set(n, `Subtab ${c + 1}`), o.emojiById.set(n, null), o.parentById.set(n, t), e.getXmlFragment(n), s && o.tabState.set("activeTabId", n), o.order.insert(Mo(o.order, l), [
6305
6305
  n
6306
6306
  ]);
6307
6307
  }), n;
6308
- }, jf = (e, t, n) => {
6308
+ }, Vf = (e, t, n) => {
6309
6309
  const s = St(e), { order: o } = s;
6310
6310
  if (!ei(e)) {
6311
6311
  const h = o.toArray(), m = h.indexOf(n), p = h.indexOf(t);
@@ -6321,7 +6321,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6321
6321
  const h = d ? Mo(o, u) : Math.max(0, o.toArray().indexOf(t));
6322
6322
  o.insert(h, c);
6323
6323
  }), !0;
6324
- }, Vf = (e, t, n, s) => {
6324
+ }, Wf = (e, t, n, s) => {
6325
6325
  const o = St(e), { order: r } = o, a = ts(o, t);
6326
6326
  if (!a) return;
6327
6327
  if (!ei(e)) {
@@ -6350,7 +6350,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6350
6350
  c.map((m) => u.get(m))
6351
6351
  ), s && o.tabState.set("activeTabId", h);
6352
6352
  }), h;
6353
- }, Wf = (e, t, n, s) => {
6353
+ }, $f = (e, t, n, s) => {
6354
6354
  var f, y;
6355
6355
  const o = St(e), { order: r } = o;
6356
6356
  if (!ei(e)) {
@@ -6393,7 +6393,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6393
6393
  o.nameById.delete(g), o.emojiById.delete(g), o.deletedById.set(g, !0);
6394
6394
  }), p && s && o.tabState.set("activeTabId", p), hc(r, u);
6395
6395
  }), { snapshots: h, fallbackId: p };
6396
- }, $f = (e, t, n) => {
6396
+ }, qf = (e, t, n) => {
6397
6397
  const s = St(e), { order: o } = s, r = t.filter(
6398
6398
  (l) => !s.nameById.has(l.tabId)
6399
6399
  );
@@ -6409,7 +6409,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6409
6409
  o.insert(c, [l.tabId]);
6410
6410
  }), n && s.tabState.set("activeTabId", a);
6411
6411
  }), !0;
6412
- }, qf = (e) => {
6412
+ }, Gf = (e) => {
6413
6413
  const t = F([]), n = F([]), s = F(!1), o = O(
6414
6414
  (c, u) => {
6415
6415
  const d = St(e);
@@ -6456,7 +6456,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6456
6456
  undo: r,
6457
6457
  redo: a
6458
6458
  };
6459
- }, ba = 1e4, sr = () => Ut(Sr(5), !0), va = (e, t) => e && (t.length === 0 || t.some((n) => n.id === e)) ? e : void 0, Gf = ({
6459
+ }, ba = 1e4, sr = () => Ut(Sr(5), !0), va = (e, t) => e && (t.length === 0 || t.some((n) => n.id === e)) ? e : void 0, Yf = ({
6460
6460
  ydoc: e,
6461
6461
  initialContent: t,
6462
6462
  enableCollaboration: n,
@@ -6547,7 +6547,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6547
6547
  applyRename: R,
6548
6548
  undo: I,
6549
6549
  redo: _
6550
- } = qf(e);
6550
+ } = Gf(e);
6551
6551
  K(() => {
6552
6552
  const P = N || null;
6553
6553
  u == null || u(P);
@@ -6641,7 +6641,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6641
6641
  }), v(U), d == null || d(), U;
6642
6642
  }, [a, e, d]), X = O(
6643
6643
  (P) => {
6644
- const V = Kf(
6644
+ const V = jf(
6645
6645
  e,
6646
6646
  P,
6647
6647
  sr(),
@@ -6652,7 +6652,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6652
6652
  [a, e, d]
6653
6653
  ), W = O(
6654
6654
  (P) => {
6655
- const { snapshots: V, fallbackId: U } = Wf(
6655
+ const { snapshots: V, fallbackId: U } = $f(
6656
6656
  e,
6657
6657
  P,
6658
6658
  S.current,
@@ -6666,7 +6666,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6666
6666
  if (!P) return !1;
6667
6667
  if (Date.now() - P.timestamp > ba)
6668
6668
  return T.current = null, !1;
6669
- const V = $f(
6669
+ const V = qf(
6670
6670
  e,
6671
6671
  P.tabs,
6672
6672
  a
@@ -6710,7 +6710,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6710
6710
  [R, d]
6711
6711
  ), q = O(
6712
6712
  (P) => {
6713
- const V = Vf(
6713
+ const V = Wf(
6714
6714
  e,
6715
6715
  P,
6716
6716
  sr,
@@ -6725,7 +6725,7 @@ const Tf = (e, t, n) => t ? Nl(n) : nh(e).then(
6725
6725
  [e, a, d]
6726
6726
  ), se = O(
6727
6727
  (P, V) => {
6728
- jf(e, P, V) && (d == null || d());
6728
+ Vf(e, P, V) && (d == null || d());
6729
6729
  },
6730
6730
  [e, d]
6731
6731
  );
@@ -6754,7 +6754,7 @@ const mc = "#9CA3AF", or = [
6754
6754
  "#0ad7f2",
6755
6755
  "#1bff39"
6756
6756
  ];
6757
- function Yf(e) {
6757
+ function Xf(e) {
6758
6758
  const t = /* @__PURE__ */ new Map();
6759
6759
  return e.forEach((n) => {
6760
6760
  const s = n == null ? void 0 : n.socketId, o = n == null ? void 0 : n.user;
@@ -6765,7 +6765,7 @@ function Yf(e) {
6765
6765
  });
6766
6766
  }), t;
6767
6767
  }
6768
- function Xf(e, t) {
6768
+ function Qf(e, t) {
6769
6769
  const n = e.map((o) => {
6770
6770
  const r = t.get(o);
6771
6771
  return r ? {
@@ -6786,7 +6786,7 @@ function Xf(e, t) {
6786
6786
  const s = /* @__PURE__ */ new Set();
6787
6787
  return n.filter((o) => o.isPlaceholder || !o.name || s.has(o.name) ? !1 : (s.add(o.name), !0));
6788
6788
  }
6789
- function Qf(e, t) {
6789
+ function Zf(e, t) {
6790
6790
  const n = new Set(
6791
6791
  e.filter(({ isPlaceholder: o, name: r }) => !o && r).map(({ name: o }) => o)
6792
6792
  );
@@ -6800,19 +6800,19 @@ function Qf(e, t) {
6800
6800
  (!r || s.has(r)) && (r = or.find((a) => !s.has(a)) ?? r ?? or[t.size % or.length], t.set(o.name, r)), s.add(r), o.color = r;
6801
6801
  }), e;
6802
6802
  }
6803
- function Zf(e, t) {
6803
+ function Jf(e, t) {
6804
6804
  return e.slice().sort().map((n) => {
6805
6805
  const s = t.get(n);
6806
6806
  return s ? `${n}:${s.name}:${s.isEns}` : `${n}:?`;
6807
6807
  }).join("|");
6808
6808
  }
6809
- const Jf = "FVXC1", Ar = "__n__", pc = Jf + Ar, e0 = new TextEncoder().encode(
6809
+ const e0 = "FVXC1", Ar = "__n__", pc = e0 + Ar, t0 = new TextEncoder().encode(
6810
6810
  "FILEVERSE-COLLAB-WIRE-XCHACHA20POLY1305-FVXC1"
6811
- ), Ca = 24, t0 = 8, ks = /* @__PURE__ */ new Map(), ka = (e) => {
6811
+ ), Ca = 24, n0 = 8, ks = /* @__PURE__ */ new Map(), ka = (e) => {
6812
6812
  const t = Ut(e), n = ks.get(t);
6813
6813
  if (n) return n;
6814
- const s = Am(e, new Uint8Array(0), e0);
6815
- if (ks.size >= t0) {
6814
+ const s = Am(e, new Uint8Array(0), t0);
6815
+ if (ks.size >= n0) {
6816
6816
  const o = ks.keys().next().value;
6817
6817
  o !== void 0 && ks.delete(o);
6818
6818
  }
@@ -6842,9 +6842,9 @@ const Jf = "FVXC1", Ar = "__n__", pc = Jf + Ar, e0 = new TextEncoder().encode(
6842
6842
  return Nm(e, t);
6843
6843
  },
6844
6844
  generateRandomBytes: Sr
6845
- }, n0 = 60, s0 = 3600, o0 = 60, r0 = 1e12, i0 = 1e14, a0 = (e) => typeof e == "number" && e >= r0 && e < i0, l0 = typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : null;
6846
- class c0 {
6847
- constructor(t = () => Date.now(), n = l0) {
6845
+ }, s0 = 60, o0 = 3600, r0 = 60, i0 = 1e12, a0 = 1e14, l0 = (e) => typeof e == "number" && e >= i0 && e < a0, c0 = typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : null;
6846
+ class d0 {
6847
+ constructor(t = () => Date.now(), n = c0) {
6848
6848
  te(this, "anchor", null);
6849
6849
  this.wallNow = t, this.monoNow = n;
6850
6850
  }
@@ -6855,7 +6855,7 @@ class c0 {
6855
6855
  * token window absorbs.
6856
6856
  */
6857
6857
  sync(t) {
6858
- this.anchor = a0(t) ? { serverMs: t, localMs: this.elapsedBase() } : null;
6858
+ this.anchor = l0(t) ? { serverMs: t, localMs: this.elapsedBase() } : null;
6859
6859
  }
6860
6860
  nowSeconds() {
6861
6861
  const t = this.anchor ? this.anchor.serverMs + (this.elapsedBase() - this.anchor.localMs) : this.wallNow();
@@ -6864,14 +6864,14 @@ class c0 {
6864
6864
  ucanWindow() {
6865
6865
  const t = this.nowSeconds();
6866
6866
  return {
6867
- notBefore: t - n0,
6868
- expiration: t + s0
6867
+ notBefore: t - s0,
6868
+ expiration: t + o0
6869
6869
  };
6870
6870
  }
6871
6871
  /** Whether a cached UCAN can still be presented: active, and not expiring within the margin. */
6872
6872
  isUsable(t) {
6873
6873
  const { nbf: n, exp: s } = t.payload, o = this.nowSeconds();
6874
- return (!n || n <= o) && (!s || s > o + o0);
6874
+ return (!n || n <= o) && (!s || s > o + r0);
6875
6875
  }
6876
6876
  elapsedBase() {
6877
6877
  return this.monoNow ? this.monoNow() : this.wallNow();
@@ -6902,7 +6902,7 @@ class ti {
6902
6902
  te(this, "contractAddress");
6903
6903
  te(this, "ownerUcan");
6904
6904
  te(this, "collaborationUcan");
6905
- te(this, "serverClock", new c0());
6905
+ te(this, "serverClock", new d0());
6906
6906
  te(this, "ownerAddress");
6907
6907
  te(this, "ddocId");
6908
6908
  te(this, "editLock");
@@ -6929,11 +6929,11 @@ class ti {
6929
6929
  te(this, "_recomputePresence", () => {
6930
6930
  var l, c, u;
6931
6931
  if (!this.isConnected || !this.awareness || !this._onPresenceChange) return;
6932
- const t = Yf(this.awareness.getStates()), n = Zf(this.roomMembers, t);
6932
+ const t = Xf(this.awareness.getStates()), n = Jf(this.roomMembers, t);
6933
6933
  if (n === this._lastPresenceSignature) return;
6934
6934
  this._lastPresenceSignature = n;
6935
- const s = Qf(
6936
- Xf(this.roomMembers, t),
6935
+ const s = Zf(
6936
+ Qf(this.roomMembers, t),
6937
6937
  this._presenceColorByName
6938
6938
  ), o = (l = this.awareness.getLocalState()) == null ? void 0 : l.user, r = (c = this._socket) != null && c.id ? (u = t.get(this._socket.id)) == null ? void 0 : u.name : void 0, a = r ? this._presenceColorByName.get(r) : void 0;
6939
6939
  o && a && o.color !== a && this.awareness.setLocalStateField("user", {
@@ -7426,23 +7426,23 @@ const Ta = (e, t, n, s) => {
7426
7426
  r && clearTimeout(r), r = setTimeout(l, a);
7427
7427
  };
7428
7428
  };
7429
- function d0(e, t) {
7429
+ function u0(e, t) {
7430
7430
  let n = e;
7431
7431
  for (const s of t)
7432
7432
  s > n && (n = s);
7433
7433
  return n;
7434
7434
  }
7435
- function u0(e) {
7435
+ function h0(e) {
7436
7436
  return e.canAuthor && e.updatesSinceLastSnapshot >= e.threshold;
7437
7437
  }
7438
- function h0(e, t) {
7438
+ function m0(e, t) {
7439
7439
  const n = Ge.encodeStateAsUpdate(e);
7440
7440
  if (n.length <= 2) return null;
7441
7441
  if (t === null) return n;
7442
7442
  const s = Ge.encodeStateVectorFromUpdate(t), o = Ge.encodeStateAsUpdate(e, s), r = Ge.diffUpdate(t, s);
7443
7443
  return o.length === r.length && o.every((a, l) => a === r[l]) ? null : o;
7444
7444
  }
7445
- function m0(e, t) {
7445
+ function p0(e, t) {
7446
7446
  const n = [];
7447
7447
  let s = t;
7448
7448
  for (const o of e)
@@ -7456,7 +7456,7 @@ const Cn = {
7456
7456
  error: null,
7457
7457
  terminationReason: void 0
7458
7458
  };
7459
- function p0(e, t, n) {
7459
+ function f0(e, t, n) {
7460
7460
  const s = t.type;
7461
7461
  switch (e) {
7462
7462
  case "idle":
@@ -7572,14 +7572,14 @@ function rr(e, t) {
7572
7572
  function Ss(e, t, n = !1) {
7573
7573
  return { code: e, message: t, recoverable: n };
7574
7574
  }
7575
- const ir = 3, lo = 4e3, f0 = 1e3, g0 = 3e4, Ea = 2e3, Aa = 3e4, y0 = 4e6, x0 = 9e6, ar = (e, t, n) => Math.min(n, t * 2 ** Math.min(Math.max(e - 1, 0), 10));
7576
- function w0(e, t) {
7575
+ const ir = 3, lo = 4e3, g0 = 1e3, y0 = 3e4, Ea = 2e3, Aa = 3e4, x0 = 4e6, w0 = 9e6, ar = (e, t, n) => Math.min(n, t * 2 ** Math.min(Math.max(e - 1, 0), 10));
7576
+ function b0(e, t) {
7577
7577
  if (e.length !== t.length) return !1;
7578
7578
  for (let n = 0; n < e.length; n++)
7579
7579
  if (e[n] !== t[n]) return !1;
7580
7580
  return !0;
7581
7581
  }
7582
- class b0 {
7582
+ class v0 {
7583
7583
  constructor(t, n) {
7584
7584
  // --- State machine ---
7585
7585
  te(this, "_status", "idle");
@@ -7739,7 +7739,7 @@ class b0 {
7739
7739
  }
7740
7740
  send(t) {
7741
7741
  var r, a;
7742
- const n = p0(this._status, t, this._context);
7742
+ const n = f0(this._status, t, this._context);
7743
7743
  if (!n)
7744
7744
  return console.warn(
7745
7745
  `SyncManager: invalid transition (${this._status}, ${t.type}) — ignored`
@@ -7953,7 +7953,7 @@ class b0 {
7953
7953
  return this.rotating || !t ? Promise.resolve("failed") : (this.healingPromise = (async () => {
7954
7954
  try {
7955
7955
  const s = await t();
7956
- return s ? this.roomKeyBytes && w0(lt(s), this.roomKeyBytes) ? "current-key-ok" : (await this.rekey(s), this.healBackoffUntil = 0, "rekeyed") : (console.warn(
7956
+ return s ? this.roomKeyBytes && b0(lt(s), this.roomKeyBytes) ? "current-key-ok" : (await this.rekey(s), this.healBackoffUntil = 0, "rekeyed") : (console.warn(
7957
7957
  "SyncManager: rotation self-heal yielded no key (post-rotation blob may not be anchored yet)"
7958
7958
  ), this.healBackoffUntil = Date.now() + lo, "failed");
7959
7959
  } catch (s) {
@@ -8036,13 +8036,13 @@ class b0 {
8036
8036
  takeBatch() {
8037
8037
  let t = 0, n = 0;
8038
8038
  for (const s of this.updateQueue) {
8039
- if (n > 0 && t + s.byteLength > y0) break;
8039
+ if (n > 0 && t + s.byteLength > x0) break;
8040
8040
  t += s.byteLength, n += 1;
8041
8041
  }
8042
8042
  return this.updateQueue.slice(0, n);
8043
8043
  }
8044
8044
  isUndeliverable(t, n) {
8045
- return t.length !== 1 || n.length <= x0 ? !1 : (console.error(
8045
+ return t.length !== 1 || n.length <= w0 ? !1 : (console.error(
8046
8046
  `SyncManager: dropping a ${t[0].byteLength}-byte update, over the collaboration server's packet limit`
8047
8047
  ), !0);
8048
8048
  }
@@ -8066,7 +8066,7 @@ class b0 {
8066
8066
  console.error("SyncManager: send retry failed", n);
8067
8067
  });
8068
8068
  },
8069
- ar(this.sendFailures, f0, g0)
8069
+ ar(this.sendFailures, g0, y0)
8070
8070
  );
8071
8071
  }
8072
8072
  // Extracted from sendUpdateBatch so a 'current-key-ok' 409 (a stale ack for a pre-rotation
@@ -8171,7 +8171,7 @@ class b0 {
8171
8171
  // of growing forever. authorSnapshot's own isAuthoringSnapshot/syncId guards keep the
8172
8172
  // fire-and-forget re-entrant-safe when triggered mid-hydrate.
8173
8173
  maybeAuthorSnapshotAfterSend() {
8174
- this.updatesSinceSnapshot += 1, u0({
8174
+ this.updatesSinceSnapshot += 1, h0({
8175
8175
  canAuthor: !this.joinOnly,
8176
8176
  updatesSinceLastSnapshot: this.updatesSinceSnapshot,
8177
8177
  threshold: this.SNAPSHOT_THRESHOLD
@@ -8425,7 +8425,7 @@ class b0 {
8425
8425
  decrypted: x
8426
8426
  }), n && x && (Rr(g.data) ? n.xchachaRows += 1 : n.eciesRows += 1);
8427
8427
  }
8428
- const p = m0(h, a);
8428
+ const p = p0(h, a);
8429
8429
  a = p.incomplete;
8430
8430
  const f = p.seqs;
8431
8431
  if (n && (n.pages += 1, n.tailRows += h.filter((g) => g.isTail).length, u.snapshot && n.snapshotFormat === null && (n.snapshotFormat = Rr(u.snapshot.data) ? "xchacha" : "ecies")), d.length) {
@@ -8433,7 +8433,7 @@ class b0 {
8433
8433
  Ge.applyUpdate(this.ydoc, g, "self"), r = r || h.some((x) => x.isTail && x.seq !== null), n && (n.merged = n.merged ? Ge.mergeUpdates([n.merged, g]) : g);
8434
8434
  }
8435
8435
  const y = u.snapshot && typeof u.snapshot.floorSeq == "number" && m && !a ? u.snapshot.floorSeq : 0;
8436
- if (this.floor = d0(Math.max(this.floor, y), f), u.hasMore && typeof u.nextSeq == "number") {
8436
+ if (this.floor = u0(Math.max(this.floor, y), f), u.hasMore && typeof u.nextSeq == "number") {
8437
8437
  o = u.nextSeq;
8438
8438
  continue;
8439
8439
  }
@@ -8483,7 +8483,7 @@ class b0 {
8483
8483
  await this.withRetry(async () => {
8484
8484
  const l = await this.catchUpFloor(t, r);
8485
8485
  if (!n() || (l && this.isOwner && this.send({ type: "SET_UNMERGED_UPDATES", hasUpdates: !0 }), !s || !o) || r.pages === 0 || r.incomplete && r.merged === null) return;
8486
- const c = h0(this.ydoc, r.merged);
8486
+ const c = m0(this.ydoc, r.merged);
8487
8487
  c && n() && await this.broadcastLocalContents(Ut(c), t);
8488
8488
  }, "hydrate"), s && r.pages > 0 && n() && this.emitWireTelemetry({
8489
8489
  type: "hydrate",
@@ -8750,9 +8750,9 @@ class b0 {
8750
8750
  this.sessionGen += 1, this.flushTimer && (clearTimeout(this.flushTimer), this.flushTimer = null), this.sendRetryTimer && (clearTimeout(this.sendRetryTimer), this.sendRetryTimer = null), this.sendFailures = 0, this.mirrorIdleTimer && (clearTimeout(this.mirrorIdleTimer), this.mirrorIdleTimer = null), this.deferredSnapshotTimer && (clearTimeout(this.deferredSnapshotTimer), this.deferredSnapshotTimer = null), this.gapCatchUpTimer && (clearTimeout(this.gapCatchUpTimer), this.gapCatchUpTimer = null), this.gapCatchUpInFlight = !1, this.gapCatchUpCooldownUntil = 0, this.socketClient = null, this.updateQueue = [], this.contentTobeAppliedQueue = [], this.isProcessing = !1, this.roomKey = "", this.roomKeyBytes = null, this.isOwner = !1, this.floor = 0, this.hydrationIncomplete = !1, this.wireFormat = "ecies", this.lastReportedWriteFormat = null, this.updatesSinceSnapshot = 0, this.isAuthoringSnapshot = !1, this.rotating = !1, this.roomKeyBytesPrev = null, this.pendingRotationKey = null, this.healingPromise = null, this.staleAckRetries = 0;
8751
8751
  }
8752
8752
  }
8753
- const v0 = { status: "idle" }, C0 = (e) => {
8754
- const [t, n] = Y(v0), s = F(null), o = F(!1);
8755
- s.current || (s.current = new b0(e, n));
8753
+ const C0 = { status: "idle" }, k0 = (e) => {
8754
+ const [t, n] = Y(C0), s = F(null), o = F(!1);
8755
+ s.current || (s.current = new v0(e, n));
8756
8756
  const r = s.current;
8757
8757
  r.updateRefs(
8758
8758
  e.services,
@@ -8845,7 +8845,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8845
8845
  awareness: l,
8846
8846
  hasCollabContentInitialised: g
8847
8847
  };
8848
- }, lr = "updates", k0 = 3, fc = /* @__PURE__ */ new WeakSet(), S0 = (e) => fc.has(e), N0 = async (e, t = k0) => {
8848
+ }, lr = "updates", S0 = 3, fc = /* @__PURE__ */ new WeakSet(), N0 = (e) => fc.has(e), T0 = async (e, t = S0) => {
8849
8849
  const n = Math.max(2, t);
8850
8850
  if (e._destroyed || (await e.whenSynced, e._destroyed)) return 0;
8851
8851
  const s = e.db;
@@ -8887,9 +8887,9 @@ const v0 = { status: "idle" }, C0 = (e) => {
8887
8887
  c > 0 && typeof e._dbsize == "number" && (e._dbsize = Math.max(1, e._dbsize - c + 1)), o(c);
8888
8888
  };
8889
8889
  });
8890
- }, T0 = (e, t) => e instanceof Error ? e : new Error(e == null ? t : String(e)), gc = (e) => new Promise((t, n) => {
8890
+ }, E0 = (e, t) => e instanceof Error ? e : new Error(e == null ? t : String(e)), gc = (e) => new Promise((t, n) => {
8891
8891
  e.whenSynced.then(() => t(), n), e._db.catch(n);
8892
- }), E0 = (e, t) => new Promise((n, s) => {
8892
+ }), A0 = (e, t) => new Promise((n, s) => {
8893
8893
  const o = setTimeout(() => n("stalled"), t);
8894
8894
  gc(e).then(
8895
8895
  () => {
@@ -8899,13 +8899,13 @@ const v0 = { status: "idle" }, C0 = (e) => {
8899
8899
  clearTimeout(o), s(r);
8900
8900
  }
8901
8901
  );
8902
- }), A0 = (e, { onError: t, onDetached: n }) => {
8902
+ }), R0 = (e, { onError: t, onDetached: n }) => {
8903
8903
  const s = e.db;
8904
8904
  if (!s) return () => {
8905
8905
  };
8906
8906
  const o = (d) => {
8907
8907
  const h = d.target;
8908
- h && S0(h) || t(T0(h == null ? void 0 : h.error, "dDoc IndexedDB write was aborted"));
8908
+ h && N0(h) || t(E0(h == null ? void 0 : h.error, "dDoc IndexedDB write was aborted"));
8909
8909
  };
8910
8910
  let r = !1;
8911
8911
  const a = (d) => {
@@ -8915,7 +8915,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8915
8915
  s.removeEventListener("abort", o), s.removeEventListener("close", l), s.removeEventListener("versionchange", c);
8916
8916
  };
8917
8917
  return s.addEventListener("abort", o), s.addEventListener("close", l), s.addEventListener("versionchange", c), u;
8918
- }, R0 = 5e3, I0 = 2, D0 = ({
8918
+ }, I0 = 5e3, D0 = 2, M0 = ({
8919
8919
  onChange: e,
8920
8920
  onLocalChange: t,
8921
8921
  enableIndexeddbSync: n,
@@ -8923,7 +8923,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8923
8923
  collaboration: o,
8924
8924
  onCollaboratorChange: r,
8925
8925
  onIndexedDbError: a,
8926
- indexeddbStallCheckMs: l = R0
8926
+ indexeddbStallCheckMs: l = I0
8927
8927
  }) => {
8928
8928
  const [c] = Y(new Ge.Doc()), [u, d] = Y(!n), h = (o == null ? void 0 : o.enabled) === !0, m = h ? o.services : void 0, p = h ? { ...o.on, onCollaboratorsChange: r } : void 0, f = F(null), y = F(null), g = F(null), x = F(a);
8929
8929
  K(() => {
@@ -8939,7 +8939,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8939
8939
  awareness: T,
8940
8940
  hasCollabContentInitialised: S,
8941
8941
  state: w
8942
- } = C0({
8942
+ } = k0({
8943
8943
  ydoc: c,
8944
8944
  services: m,
8945
8945
  callbacks: p,
@@ -8981,7 +8981,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8981
8981
  }), B), G = (B) => (
8982
8982
  // Rejects if the database cannot be opened (plain whenSynced would hang).
8983
8983
  Promise.race([
8984
- re(E0(B, l)),
8984
+ re(A0(B, l)),
8985
8985
  Z
8986
8986
  ])
8987
8987
  ), oe = async () => {
@@ -8991,7 +8991,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
8991
8991
  const pe = await Om(s);
8992
8992
  if (!W) return "superseded";
8993
8993
  if (pe.status === "corrupt") return "corrupt";
8994
- if (B >= I0)
8994
+ if (B >= D0)
8995
8995
  return Promise.race([
8996
8996
  re(gc(M)).then(
8997
8997
  () => "synced"
@@ -9037,7 +9037,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9037
9037
  }
9038
9038
  const M = de.provider;
9039
9039
  if (!M || !W) return q();
9040
- y.current = A0(
9040
+ y.current = R0(
9041
9041
  M,
9042
9042
  {
9043
9043
  onError: (ne) => {
@@ -9047,7 +9047,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9047
9047
  f.current === M && (y.current = null);
9048
9048
  }
9049
9049
  }
9050
- ), d(!0), N0(M).catch((ne) => {
9050
+ ), d(!0), T0(M).catch((ne) => {
9051
9051
  console.warn("IndexedDB compaction failed:", ne);
9052
9052
  });
9053
9053
  } catch (B) {
@@ -9187,7 +9187,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9187
9187
  ]
9188
9188
  ), ke = F(pe);
9189
9189
  ke.current = pe;
9190
- const ae = D0({
9190
+ const ae = M0({
9191
9191
  onChange: r,
9192
9192
  onLocalChange: a,
9193
9193
  enableIndexeddbSync: E,
@@ -9202,7 +9202,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9202
9202
  const He = O(
9203
9203
  () => Ne.current ? Promise.resolve() : ee(),
9204
9204
  [ee]
9205
- ), ze = !!(E && !M && V.isDDocOwner && !L && !e && !B), et = !!(!L && !e && !M && V.isDDocOwner), mt = l === !0, gt = !!(V.isDDocOwner && !M && !B), Ke = Gf({
9205
+ ), ze = !!(E && !M && V.isDDocOwner && !L && !e && !B), et = !!(!L && !e && !M && V.isDDocOwner), mt = l === !0, gt = !!(V.isDDocOwner && !M && !B), Ke = Yf({
9206
9206
  ydoc: ae.ydoc,
9207
9207
  initialContent: B,
9208
9208
  isNewDocument: mt,
@@ -9242,7 +9242,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9242
9242
  isContentResolved: !ze || ae.isIndexeddbSynced,
9243
9243
  preferredSchemaVersion: se,
9244
9244
  onSchemaStampGuard: P
9245
- }), Ze = Of({
9245
+ }), Ze = Ff({
9246
9246
  ydoc: ae.ydoc,
9247
9247
  editorWidthStore: ie,
9248
9248
  isPreviewMode: e,
@@ -9323,7 +9323,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9323
9323
  duplicateTab: Ke.duplicateTab,
9324
9324
  orderTab: Ke.orderTab
9325
9325
  };
9326
- }, M0 = (e) => {
9326
+ }, O0 = (e) => {
9327
9327
  var r, a, l;
9328
9328
  const t = (r = e == null ? void 0 : e.view) == null ? void 0 : r.dom;
9329
9329
  if (!t) return;
@@ -9332,7 +9332,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9332
9332
  if (!n || n.rangeCount === 0) return;
9333
9333
  const { anchorNode: s, focusNode: o } = n;
9334
9334
  !s || !t.contains(s) || o && !t.contains(o) || n.removeAllRanges();
9335
- }, O0 = (e, t, n) => {
9335
+ }, F0 = (e, t, n) => {
9336
9336
  const { from: s, to: o } = e.state.selection;
9337
9337
  if (s < o && t === e.state.doc.textBetween(s, o)) {
9338
9338
  const l = e.chain().focus().extendMarkRange("link");
@@ -9346,7 +9346,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9346
9346
  c.schema.marks.link
9347
9347
  ), !0));
9348
9348
  n && a.setTextSelection({ from: s, to: r }).setLink({ href: n }), a.setTextSelection(r).run();
9349
- }, F0 = ({
9349
+ }, B0 = ({
9350
9350
  editor: e,
9351
9351
  onError: t,
9352
9352
  isKeyboardVisible: n,
@@ -9377,7 +9377,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9377
9377
  v(!1), t && t("Invalid URL");
9378
9378
  return;
9379
9379
  }
9380
- w = w.trim(), O0(e, y, w), v(!0), E(!0), h(We.NONE);
9380
+ w = w.trim(), F0(e, y, w), v(!0), E(!0), h(We.NONE);
9381
9381
  const R = oh(p);
9382
9382
  R && !R.headingEl && (t == null || t("This heading link belongs to a different document."));
9383
9383
  }, [e, y, t, h, p]), D = O(() => {
@@ -9406,7 +9406,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9406
9406
  );
9407
9407
  K(() => {
9408
9408
  const w = d !== We.NONE;
9409
- return T(w), w && M0(e), () => T(!1);
9409
+ return T(w), w && O0(e), () => T(!1);
9410
9410
  }, [d, e, T]), K(() => {
9411
9411
  if (d === We.LINK_POPUP) {
9412
9412
  const { text: w, url: k } = D();
@@ -9524,7 +9524,7 @@ const v0 = { status: "idle" }, C0 = (e) => {
9524
9524
  }
9525
9525
  )
9526
9526
  ] });
9527
- }, xc = Je.memo(F0);
9527
+ }, xc = Je.memo(B0);
9528
9528
  xc.displayName = "MobileToolbar";
9529
9529
  new Yr({
9530
9530
  html: !0,
@@ -9543,7 +9543,7 @@ pn.addRule("pageBreak", {
9543
9543
  `;
9544
9544
  }
9545
9545
  });
9546
- const B0 = (e) => {
9546
+ const L0 = (e) => {
9547
9547
  if (!e.nodeName) return "";
9548
9548
  switch (e.nodeName) {
9549
9549
  case "H1":
@@ -9559,7 +9559,7 @@ const B0 = (e) => {
9559
9559
  pn.addRule("heading", {
9560
9560
  filter: ["h1", "h2", "h3"],
9561
9561
  replacement: function(e, t) {
9562
- const n = B0(t), s = e.replace(/\n\n===\n\n/g, "<br>");
9562
+ const n = L0(t), s = e.replace(/\n\n===\n\n/g, "<br>");
9563
9563
  return `${n} ${s}`;
9564
9564
  }
9565
9565
  });
@@ -9626,7 +9626,7 @@ pn.addRule("taskListItem", {
9626
9626
  ` : ""}`;
9627
9627
  }
9628
9628
  });
9629
- const L0 = async (e, t, n) => {
9629
+ const _0 = async (e, t, n) => {
9630
9630
  const s = e.state.doc, o = await ah(
9631
9631
  s,
9632
9632
  t,
@@ -9642,7 +9642,7 @@ const L0 = async (e, t, n) => {
9642
9642
  } finally {
9643
9643
  Hi(!1), r.destroy();
9644
9644
  }
9645
- }, _0 = ({
9645
+ }, P0 = ({
9646
9646
  slides: e,
9647
9647
  currentSlide: t,
9648
9648
  setCurrentSlide: n,
@@ -9749,7 +9749,7 @@ vt.renderer.rules.list_item_open = (e, t) => {
9749
9749
  }
9750
9750
  return "<li>";
9751
9751
  };
9752
- const P0 = (e, t, n) => {
9752
+ const U0 = (e, t, n) => {
9753
9753
  const s = [], o = t.reduce((a, l) => a + l.length, 0) / t.length, r = Math.min(
9754
9754
  n - 2,
9755
9755
  // Account for header and separator
@@ -9780,7 +9780,7 @@ const P0 = (e, t, n) => {
9780
9780
  else
9781
9781
  s += (s ? " " : "") + r;
9782
9782
  return s && n.push(s.trim()), n;
9783
- }, U0 = (e, t) => {
9783
+ }, H0 = (e, t) => {
9784
9784
  const n = [], s = e[0].slice(3).trim(), o = e.slice(1, -1);
9785
9785
  for (let r = 0; r < o.length; r += t - 2) {
9786
9786
  const a = [
@@ -9798,7 +9798,7 @@ const P0 = (e, t, n) => {
9798
9798
  /^\d+\.\s/.test(e) || // Unordered list items
9799
9799
  /^[-*+]\s/.test(e) || // Indented list items (nested)
9800
9800
  /^\s+[-*+]\s/.test(e) || /^\s+\d+\.\s/.test(e)
9801
- ), H0 = (e, t) => {
9801
+ ), z0 = (e, t) => {
9802
9802
  const n = [];
9803
9803
  let s = t;
9804
9804
  for (; s < e.length && (wc(e[s]) || e[s].trim() === ""); )
@@ -9815,18 +9815,18 @@ const P0 = (e, t, n) => {
9815
9815
  s.push(n.slice(o, o + t).join(`
9816
9816
  `));
9817
9817
  return s;
9818
- }, z0 = (e) => {
9818
+ }, K0 = (e) => {
9819
9819
  var o, r, a;
9820
9820
  const s = new DOMParser().parseFromString(e, "text/html").querySelector(
9821
9821
  'figure[data-type="resizable-media"]'
9822
9822
  );
9823
9823
  return s ? (s.classList.add("slide-media"), (o = s.querySelector("img")) == null || o.classList.add("slide-image"), (r = s.querySelector("video")) == null || r.classList.add("slide-video"), (a = s.querySelector("figcaption")) == null || a.classList.add("slide-caption"), s.outerHTML) : null;
9824
- }, K0 = (e) => {
9824
+ }, j0 = (e) => {
9825
9825
  var r;
9826
9826
  const n = new DOMParser().parseFromString(e, "text/html"), s = n.querySelector("img.slide-image"), o = n.querySelector("figcaption, .slide-caption");
9827
9827
  return !!s && !((r = o == null ? void 0 : o.textContent) != null && r.trim()) && n.body.children.length === 1;
9828
9828
  };
9829
- function j0(e, t = {}) {
9829
+ function V0(e, t = {}) {
9830
9830
  var v, A;
9831
9831
  const {
9832
9832
  preserveNewlines: n = !0,
@@ -9906,7 +9906,7 @@ function j0(e, t = {}) {
9906
9906
  if (b.length < 2) return [""];
9907
9907
  const T = b[0].split("|").map((R) => R.trim()).filter(Boolean), S = b[1], w = b.slice(2);
9908
9908
  return b.length <= a ? [`<div class="table-wrapper">${vt.render(D.join(`
9909
- `))}</div>`] : P0(T, w, a).map((R) => {
9909
+ `))}</div>`] : U0(T, w, a).map((R) => {
9910
9910
  const I = [
9911
9911
  `|${T.join("|")}|`,
9912
9912
  S,
@@ -9920,7 +9920,7 @@ function j0(e, t = {}) {
9920
9920
  for (let D = 0; D < x.length; D++) {
9921
9921
  const b = x[D].trim();
9922
9922
  if (wc(b)) {
9923
- const { listContent: T, endIndex: S } = H0(x, D), w = T.split(`
9923
+ const { listContent: T, endIndex: S } = z0(x, D), w = T.split(`
9924
9924
  `).filter((R) => R.trim()), k = w.reduce(
9925
9925
  (R, I) => R + h(I),
9926
9926
  0
@@ -9997,7 +9997,7 @@ function j0(e, t = {}) {
9997
9997
  d.push(b);
9998
9998
  else {
9999
9999
  if (d.push(b), d.length > a)
10000
- U0(d, 23).forEach((S, w) => {
10000
+ H0(d, 23).forEach((S, w) => {
10001
10001
  (w > 0 || m(S, c)) && f(), c.push({
10002
10002
  type: "content",
10003
10003
  content: vt.render(S)
@@ -10024,7 +10024,7 @@ function j0(e, t = {}) {
10024
10024
  for (; D + 1 < x.length && !T.some((k) => k.includes("</figure>")); )
10025
10025
  T.push(x[++D]);
10026
10026
  const S = T.join(`
10027
- `).trim(), w = z0(S);
10027
+ `).trim(), w = K0(S);
10028
10028
  if (w) {
10029
10029
  y("media", w, S);
10030
10030
  continue;
@@ -10077,7 +10077,7 @@ function j0(e, t = {}) {
10077
10077
  `).replace(/>\n+</g, `>
10078
10078
  <`)), s && (N = Pm.sanitize(N)), N;
10079
10079
  }
10080
- const V0 = ({
10080
+ const W0 = ({
10081
10081
  content: e,
10082
10082
  editor: t,
10083
10083
  onTouchStart: n,
@@ -10090,7 +10090,7 @@ const V0 = ({
10090
10090
  K(() => {
10091
10091
  setTimeout(() => {
10092
10092
  var h;
10093
- (h = t.view) != null && h.dom && (t.commands.setContent(e), K0(e) ? t.view.dom.classList.add("solo-slide-image") : t.view.dom.classList.remove("solo-slide-image"));
10093
+ (h = t.view) != null && h.dom && (t.commands.setContent(e), j0(e) ? t.view.dom.classList.add("solo-slide-image") : t.view.dom.classList.remove("solo-slide-image"));
10094
10094
  });
10095
10095
  }, [e]);
10096
10096
  const c = Is(
@@ -10121,7 +10121,7 @@ const V0 = ({
10121
10121
  onTouchEnd: o
10122
10122
  }
10123
10123
  );
10124
- }, W0 = ({
10124
+ }, $0 = ({
10125
10125
  editor: e,
10126
10126
  onClose: t,
10127
10127
  isFullscreen: n,
@@ -10172,11 +10172,11 @@ const V0 = ({
10172
10172
  return;
10173
10173
  }
10174
10174
  b(!0);
10175
- const P = await L0(
10175
+ const P = await _0(
10176
10176
  e,
10177
10177
  f,
10178
10178
  g
10179
- ), V = j0(P, {
10179
+ ), V = V0(P, {
10180
10180
  preserveNewlines: !0,
10181
10181
  sanitize: !0,
10182
10182
  maxCharsPerSlide: 1e3,
@@ -10259,7 +10259,7 @@ const V0 = ({
10259
10259
  ),
10260
10260
  children: [
10261
10261
  !n && /* @__PURE__ */ i(
10262
- _0,
10262
+ P0,
10263
10263
  {
10264
10264
  slides: d,
10265
10265
  currentSlide: v,
@@ -10403,7 +10403,7 @@ const V0 = ({
10403
10403
  },
10404
10404
  v
10405
10405
  ) }) : /* @__PURE__ */ i(
10406
- V0,
10406
+ W0,
10407
10407
  {
10408
10408
  content: d[v],
10409
10409
  editor: X,
@@ -10446,7 +10446,7 @@ const V0 = ({
10446
10446
  ]
10447
10447
  }
10448
10448
  );
10449
- }, $0 = ({
10449
+ }, q0 = ({
10450
10450
  username: e,
10451
10451
  setUsername: t,
10452
10452
  isConnected: n,
@@ -10517,15 +10517,15 @@ const V0 = ({
10517
10517
  }
10518
10518
  )
10519
10519
  }
10520
- ), q0 = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20fill='white'/%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208V8C38.8366%208%2046%2015.1634%2046%2024V24C46%2032.8366%2038.8366%2040%2030%2040V40C21.1634%2040%2014%2032.8366%2014%2024V24Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23E8EBEC'/%3e%3cg%20filter='url(%23filter0_d_4765_56257)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='white'/%3e%3cpath%20d='M10%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64C2.5%2059.8579%205.85786%2056.5%2010%2056.5Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064V64C38.8366%2064%2046%2071.1634%2046%2080V80C46%2088.8366%2038.8366%2096%2030%2096V96C21.1634%2096%2014%2088.8366%2014%2080V80Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23E8EBEC'/%3e%3c/g%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20fill='white'/%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120V120C38.8366%20120%2046%20127.163%2046%20136V136C46%20144.837%2038.8366%20152%2030%20152V152C21.1634%20152%2014%20144.837%2014%20136V136Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23E8EBEC'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_4765_56257)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_4765_56257)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_4765_56257'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4765_56257'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4765_56257'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_4765_56257'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4765_56257'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", G0 = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208C38.8366%208%2046%2015.1634%2046%2024C46%2032.8366%2038.8366%2040%2030%2040C21.1634%2040%2014%2032.8366%2014%2024Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23404040'/%3e%3cg%20filter='url(%23filter0_d_5573_80525)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%2064C2.5%2059.8579%205.85786%2056.5%2010%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064C38.8366%2064%2046%2071.1634%2046%2080C46%2088.8366%2038.8366%2096%2030%2096C21.1634%2096%2014%2088.8366%2014%2080Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23404040'/%3e%3c/g%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120C38.8366%20120%2046%20127.163%2046%20136C46%20144.837%2038.8366%20152%2030%20152C21.1634%20152%2014%20144.837%2014%20136Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23404040'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_5573_80525)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_5573_80525)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_5573_80525'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_5573_80525'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_5573_80525'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_5573_80525'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5573_80525'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Y0 = ({
10520
+ ), G0 = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20fill='white'/%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208V8C38.8366%208%2046%2015.1634%2046%2024V24C46%2032.8366%2038.8366%2040%2030%2040V40C21.1634%2040%2014%2032.8366%2014%2024V24Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23E8EBEC'/%3e%3cg%20filter='url(%23filter0_d_4765_56257)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='white'/%3e%3cpath%20d='M10%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64C2.5%2059.8579%205.85786%2056.5%2010%2056.5Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064V64C38.8366%2064%2046%2071.1634%2046%2080V80C46%2088.8366%2038.8366%2096%2030%2096V96C21.1634%2096%2014%2088.8366%2014%2080V80Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23E8EBEC'/%3e%3c/g%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20fill='white'/%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120V120C38.8366%20120%2046%20127.163%2046%20136V136C46%20144.837%2038.8366%20152%2030%20152V152C21.1634%20152%2014%20144.837%2014%20136V136Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23E8EBEC'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_4765_56257)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_4765_56257)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_4765_56257'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4765_56257'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4765_56257'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_4765_56257'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4765_56257'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Y0 = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208C38.8366%208%2046%2015.1634%2046%2024C46%2032.8366%2038.8366%2040%2030%2040C21.1634%2040%2014%2032.8366%2014%2024Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23404040'/%3e%3cg%20filter='url(%23filter0_d_5573_80525)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%2064C2.5%2059.8579%205.85786%2056.5%2010%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064C38.8366%2064%2046%2071.1634%2046%2080C46%2088.8366%2038.8366%2096%2030%2096C21.1634%2096%2014%2088.8366%2014%2080Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23404040'/%3e%3c/g%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120C38.8366%20120%2046%20127.163%2046%20136C46%20144.837%2038.8366%20152%2030%20152C21.1634%20152%2014%20144.837%2014%20136Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23404040'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_5573_80525)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_5573_80525)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_5573_80525'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_5573_80525'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_5573_80525'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_5573_80525'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5573_80525'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", X0 = ({
10521
10521
  commentType: e,
10522
10522
  handleReset: t
10523
10523
  }) => /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center h-full color-text-default", children: [
10524
- /* @__PURE__ */ i("img", { src: q0, alt: "empty comments", className: "dark:hidden" }),
10524
+ /* @__PURE__ */ i("img", { src: G0, alt: "empty comments", className: "dark:hidden" }),
10525
10525
  /* @__PURE__ */ i(
10526
10526
  "img",
10527
10527
  {
10528
- src: G0,
10528
+ src: Y0,
10529
10529
  alt: "empty comments",
10530
10530
  className: "hidden dark:block"
10531
10531
  }
@@ -10547,14 +10547,14 @@ const V0 = ({
10547
10547
  " ",
10548
10548
  "the filter parameters"
10549
10549
  ] })
10550
- ] }), X0 = 20, ft = (e, t = 296) => {
10550
+ ] }), Q0 = 20, ft = (e, t = 296) => {
10551
10551
  e.rows = 1, e.style.height = "auto";
10552
10552
  const n = Math.min(
10553
- Math.max(e.scrollHeight, X0),
10553
+ Math.max(e.scrollHeight, Q0),
10554
10554
  t
10555
10555
  );
10556
10556
  e.style.height = `${n}px`;
10557
- }, Q0 = ({
10557
+ }, Z0 = ({
10558
10558
  commentId: e,
10559
10559
  replyCount: t,
10560
10560
  commentUsername: n
@@ -10657,7 +10657,7 @@ const V0 = ({
10657
10657
  }
10658
10658
  )
10659
10659
  ] });
10660
- }, Z0 = ({ tabId: e }) => {
10660
+ }, J0 = ({ tabId: e }) => {
10661
10661
  const t = z((c) => c.comment), n = z((c) => c.username), s = z((c) => c.handleCommentChange), o = z((c) => c.handleCommentKeyDown), r = z((c) => c.handleCommentSubmit), a = F(null), l = en(n);
10662
10662
  return K(() => {
10663
10663
  a.current && ft(a.current, 96);
@@ -10708,7 +10708,7 @@ const V0 = ({
10708
10708
  ) })
10709
10709
  ] });
10710
10710
  };
10711
- function J0(e, t, n, s = !1) {
10711
+ function eg(e, t, n, s = !1) {
10712
10712
  const {
10713
10713
  activeCommentAnchorIds: o,
10714
10714
  activeCommentAnchorIdsTabId: r,
@@ -10762,7 +10762,7 @@ const bc = ({
10762
10762
  }
10763
10763
  ),
10764
10764
  U.map((G) => /* @__PURE__ */ i(
10765
- eg,
10765
+ tg,
10766
10766
  {
10767
10767
  comment: G,
10768
10768
  tabName: se(G),
@@ -10841,7 +10841,7 @@ const bc = ({
10841
10841
  !_ && "px-4 pb-4",
10842
10842
  " w-full overflow-y-auto h-full"
10843
10843
  ),
10844
- children: Z.length === 0 ? /* @__PURE__ */ i(Y0, { commentType: r, handleReset: h }) : /* @__PURE__ */ i(
10844
+ children: Z.length === 0 ? /* @__PURE__ */ i(X0, { commentType: r, handleReset: h }) : /* @__PURE__ */ i(
10845
10845
  "div",
10846
10846
  {
10847
10847
  ref: R,
@@ -10868,9 +10868,9 @@ const bc = ({
10868
10868
  )
10869
10869
  }
10870
10870
  ),
10871
- u && /* @__PURE__ */ i(Z0, { tabId: c }),
10871
+ u && /* @__PURE__ */ i(J0, { tabId: c }),
10872
10872
  _ && W && /* @__PURE__ */ i(
10873
- tg,
10873
+ ng,
10874
10874
  {
10875
10875
  onUndo: () => {
10876
10876
  v(W), j(null);
@@ -10880,7 +10880,7 @@ const bc = ({
10880
10880
  ]
10881
10881
  }
10882
10882
  ) : /* @__PURE__ */ i(
10883
- $0,
10883
+ q0,
10884
10884
  {
10885
10885
  connectViaWallet: T,
10886
10886
  username: p,
@@ -10890,7 +10890,7 @@ const bc = ({
10890
10890
  isLoading: S
10891
10891
  }
10892
10892
  );
10893
- }, eg = ({
10893
+ }, tg = ({
10894
10894
  comment: e,
10895
10895
  tabName: t,
10896
10896
  activeCommentId: n,
@@ -10907,7 +10907,7 @@ const bc = ({
10907
10907
  onSetOpenReplyId: p
10908
10908
  }) => {
10909
10909
  var N, v;
10910
- const [f, y] = Y(!1), { isBelow1280px: g } = zt(), x = J0(
10910
+ const [f, y] = Y(!1), { isBelow1280px: g } = zt(), x = eg(
10911
10911
  e.id,
10912
10912
  e.selectedContent,
10913
10913
  e.tabId,
@@ -10983,7 +10983,7 @@ const bc = ({
10983
10983
  className: ce("flex flex-col gap-2", e.resolved && "hidden"),
10984
10984
  onClick: (A) => A.stopPropagation(),
10985
10985
  children: l === e.id && /* @__PURE__ */ i(
10986
- Q0,
10986
+ Z0,
10987
10987
  {
10988
10988
  commentId: e.id,
10989
10989
  commentUsername: e.username,
@@ -11006,7 +11006,7 @@ const bc = ({
11006
11006
  ]
11007
11007
  }
11008
11008
  );
11009
- }, tg = ({ onUndo: e }) => /* @__PURE__ */ i(
11009
+ }, ng = ({ onUndo: e }) => /* @__PURE__ */ i(
11010
11010
  "div",
11011
11011
  {
11012
11012
  className: "fixed bottom-4 left-0 right-0 z-[999999] flex items-center justify-center",
@@ -11034,7 +11034,7 @@ const bc = ({
11034
11034
  )
11035
11035
  ] })
11036
11036
  }
11037
- ), ng = (e = 1) => e > 1 ? { paddingLeft: 8 + (e - 1) * 12 } : void 0, sg = ({
11037
+ ), sg = (e = 1) => e > 1 ? { paddingLeft: 8 + (e - 1) * 12 } : void 0, og = ({
11038
11038
  activeCommentId: e,
11039
11039
  commentType: t,
11040
11040
  commentTypeOptions: n,
@@ -11116,7 +11116,7 @@ const bc = ({
11116
11116
  Bs,
11117
11117
  {
11118
11118
  value: T.id,
11119
- style: ng(T.depth),
11119
+ style: sg(T.depth),
11120
11120
  children: T.label
11121
11121
  },
11122
11122
  T.id
@@ -11145,7 +11145,7 @@ const bc = ({
11145
11145
  }
11146
11146
  )
11147
11147
  }
11148
- ), og = ({
11148
+ ), rg = ({
11149
11149
  activeDraft: e,
11150
11150
  activeDraftId: t,
11151
11151
  isConnected: n,
@@ -11308,7 +11308,7 @@ const bc = ({
11308
11308
  return {
11309
11309
  submitLabel: o
11310
11310
  };
11311
- }, rg = ({
11311
+ }, ig = ({
11312
11312
  activeSuggestionDraftCard: e,
11313
11313
  isConnected: t,
11314
11314
  isDiscardSuggestionOverlayVisible: n,
@@ -11405,7 +11405,7 @@ const bc = ({
11405
11405
  ]
11406
11406
  }
11407
11407
  );
11408
- }, ig = ({
11408
+ }, ag = ({
11409
11409
  activeCommentId: e,
11410
11410
  activeDraft: t,
11411
11411
  activeDraftId: n,
@@ -11451,7 +11451,7 @@ const bc = ({
11451
11451
  ),
11452
11452
  "data-comment-drawer-mobile-input": !0,
11453
11453
  children: s ? /* @__PURE__ */ i(
11454
- rg,
11454
+ ig,
11455
11455
  {
11456
11456
  activeSuggestionDraftCard: s,
11457
11457
  isConnected: c,
@@ -11464,7 +11464,7 @@ const bc = ({
11464
11464
  onSubmit: _
11465
11465
  }
11466
11466
  ) : h ? /* @__PURE__ */ i(
11467
- og,
11467
+ rg,
11468
11468
  {
11469
11469
  activeDraft: t,
11470
11470
  activeDraftId: n,
@@ -11578,7 +11578,7 @@ const bc = ({
11578
11578
  }
11579
11579
  )
11580
11580
  }
11581
- ), ag = ({
11581
+ ), lg = ({
11582
11582
  selectedCommentTabId: e,
11583
11583
  setOpenReplyId: t
11584
11584
  }) => {
@@ -11628,11 +11628,11 @@ const bc = ({
11628
11628
  setIsDiscardSuggestionOverlayVisible: f,
11629
11629
  updateInlineDraftText: d
11630
11630
  };
11631
- }, Ns = "__all_tabs__", lg = [
11631
+ }, Ns = "__all_tabs__", cg = [
11632
11632
  { id: "all", label: "All types" },
11633
11633
  { id: "active", label: "Active" },
11634
11634
  { id: "resolved", label: "Resolved" }
11635
- ], cg = ({
11635
+ ], dg = ({
11636
11636
  activeTabId: e,
11637
11637
  comments: t,
11638
11638
  tabs: n
@@ -11663,7 +11663,7 @@ const bc = ({
11663
11663
  c(!1), d(!1);
11664
11664
  }, []),
11665
11665
  commentType: s,
11666
- commentTypeOptions: lg,
11666
+ commentTypeOptions: cg,
11667
11667
  filteredComments: g,
11668
11668
  handleCommentTypeSelectOpenChange: E,
11669
11669
  handleTabSelectOpenChange: N,
@@ -11679,7 +11679,7 @@ const bc = ({
11679
11679
  tabList: m,
11680
11680
  tabNameById: p
11681
11681
  };
11682
- }, dg = ({
11682
+ }, ug = ({
11683
11683
  activeTabId: e,
11684
11684
  comments: t,
11685
11685
  focusCommentInEditor: n,
@@ -11736,7 +11736,7 @@ const bc = ({
11736
11736
  window.removeEventListener("keydown", t);
11737
11737
  };
11738
11738
  }, [e]);
11739
- }, ug = ({
11739
+ }, hg = ({
11740
11740
  activeSuggestionDraftCard: e,
11741
11741
  closeFilterSelects: t,
11742
11742
  isBelow1280px: n,
@@ -11771,7 +11771,7 @@ const bc = ({
11771
11771
  } : (Qo(), () => {
11772
11772
  Qo();
11773
11773
  }), [n, s, o, r]);
11774
- }, hg = ({
11774
+ }, mg = ({
11775
11775
  comments: e,
11776
11776
  mobileDrawerRef: t,
11777
11777
  onCommentFocus: n,
@@ -11820,7 +11820,7 @@ const bc = ({
11820
11820
  mobileActiveCommentsCount: r.length,
11821
11821
  mobileFocusedCommentIndex: a
11822
11822
  };
11823
- }, mg = ({
11823
+ }, pg = ({
11824
11824
  isOpen: e,
11825
11825
  onClose: t,
11826
11826
  isNavbarVisible: n,
@@ -11852,7 +11852,7 @@ const bc = ({
11852
11852
  setTab: de,
11853
11853
  tabList: q,
11854
11854
  tabNameById: se
11855
- } = cg({ activeTabId: r, comments: d, tabs: c }), {
11855
+ } = dg({ activeTabId: r, comments: d, tabs: c }), {
11856
11856
  activeDraft: ie,
11857
11857
  activeDraftId: P,
11858
11858
  activeSuggestionDraftCard: V,
@@ -11866,7 +11866,7 @@ const bc = ({
11866
11866
  setIsDiscardCommentOverlayVisible: M,
11867
11867
  setIsDiscardSuggestionOverlayVisible: ne,
11868
11868
  updateInlineDraftText: pe
11869
- } = ag({ selectedCommentTabId: X, setOpenReplyId: g }), ke = f && B, ae = e || V !== null, { clearPendingCommentFocus: ee, handleCommentFocus: he } = dg({
11869
+ } = lg({ selectedCommentTabId: X, setOpenReplyId: g }), ke = f && B, ae = e || V !== null, { clearPendingCommentFocus: ee, handleCommentFocus: he } = ug({
11870
11870
  activeTabId: r,
11871
11871
  comments: d,
11872
11872
  focusCommentInEditor: m,
@@ -11881,14 +11881,14 @@ const bc = ({
11881
11881
  handleViewAllComments: et,
11882
11882
  mobileActiveCommentsCount: mt,
11883
11883
  mobileFocusedCommentIndex: gt
11884
- } = hg({
11884
+ } = mg({
11885
11885
  comments: d,
11886
11886
  mobileDrawerRef: v,
11887
11887
  onCommentFocus: he,
11888
11888
  openReplyId: y,
11889
11889
  setOpenReplyId: g
11890
11890
  });
11891
- ug({
11891
+ hg({
11892
11892
  activeSuggestionDraftCard: V,
11893
11893
  closeFilterSelects: b,
11894
11894
  isBelow1280px: N,
@@ -11900,7 +11900,7 @@ const bc = ({
11900
11900
  setIsDiscardSuggestionOverlayVisible: ne
11901
11901
  });
11902
11902
  const ct = /* @__PURE__ */ i("div", { ref: v, "data-testid": "comment-drawer", children: N ? /* @__PURE__ */ i(
11903
- ig,
11903
+ ag,
11904
11904
  {
11905
11905
  activeCommentId: o,
11906
11906
  activeDraft: ie,
@@ -11945,7 +11945,7 @@ const bc = ({
11945
11945
  username: E
11946
11946
  }
11947
11947
  ) : /* @__PURE__ */ i(
11948
- sg,
11948
+ og,
11949
11949
  {
11950
11950
  activeCommentId: o,
11951
11951
  commentType: T,
@@ -11974,7 +11974,7 @@ const bc = ({
11974
11974
  }
11975
11975
  ) });
11976
11976
  return N && u ? fn(ct, u) : ct;
11977
- }, pg = (e) => {
11977
+ }, fg = (e) => {
11978
11978
  const [t, n] = Y(!1);
11979
11979
  return K(() => {
11980
11980
  const s = e.current;
@@ -11987,7 +11987,7 @@ const bc = ({
11987
11987
  };
11988
11988
  return o(), s.subscribe(o);
11989
11989
  }, [e]), t;
11990
- }, fg = ({
11990
+ }, gg = ({
11991
11991
  editor: e,
11992
11992
  activeCommentId: t,
11993
11993
  commentDrawerOpen: n,
@@ -12072,7 +12072,7 @@ const bc = ({
12072
12072
  )
12073
12073
  }
12074
12074
  );
12075
- }, gg = 1, ko = (e) => e.type === "draft" ? {
12075
+ }, yg = 1, ko = (e) => e.type === "draft" ? {
12076
12076
  anchorId: e.draftId,
12077
12077
  anchorType: "draft"
12078
12078
  } : e.type === "suggestion-draft" ? {
@@ -12081,21 +12081,21 @@ const bc = ({
12081
12081
  } : {
12082
12082
  anchorId: e.commentId,
12083
12083
  anchorType: "thread"
12084
- }, yg = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), xg = ({
12084
+ }, xg = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), wg = ({
12085
12085
  anchorId: e,
12086
12086
  anchorType: t
12087
12087
  }) => {
12088
12088
  let n = "data-comment-id";
12089
- return t === "draft" && (n = "data-draft-comment-id"), t === "suggestion-draft" && (n = "data-suggestion-id"), `[${n}="${yg(e)}"]`;
12090
- }, wg = ({
12089
+ return t === "draft" && (n = "data-draft-comment-id"), t === "suggestion-draft" && (n = "data-suggestion-id"), `[${n}="${xg(e)}"]`;
12090
+ }, bg = ({
12091
12091
  editorRoot: e,
12092
12092
  anchorId: t,
12093
12093
  anchorType: n
12094
12094
  }) => Array.from(
12095
12095
  e.querySelectorAll(
12096
- xg({ anchorId: t, anchorType: n })
12096
+ wg({ anchorId: t, anchorType: n })
12097
12097
  )
12098
- ), bg = ({
12098
+ ), vg = ({
12099
12099
  editor: e,
12100
12100
  editorRoot: t,
12101
12101
  anchorId: n
@@ -12115,7 +12115,7 @@ const bc = ({
12115
12115
  } catch {
12116
12116
  return null;
12117
12117
  }
12118
- }, vg = (e, t) => {
12118
+ }, Cg = (e, t) => {
12119
12119
  let n = null;
12120
12120
  return t.forEach((s) => {
12121
12121
  try {
@@ -12130,18 +12130,18 @@ const bc = ({
12130
12130
  } catch {
12131
12131
  return null;
12132
12132
  }
12133
- }, Cg = (e, t) => e.length !== t.length ? !1 : e.every(
12133
+ }, kg = (e, t) => e.length !== t.length ? !1 : e.every(
12134
12134
  (n, s) => n === t[s]
12135
12135
  ), Da = (e, t) => e.lastSeenEditorRoot === t && e.elements.length > 0 && e.elements.every(
12136
12136
  (n) => n.isConnected && t.contains(n)
12137
- ), kg = ({
12137
+ ), Sg = ({
12138
12138
  cachedRect: e,
12139
12139
  scrollTop: t,
12140
12140
  containerTop: n
12141
12141
  }) => ({
12142
12142
  top: e.top - (t - e.scrollTop) + (e.containerTop - n),
12143
12143
  height: e.height
12144
- }), Sg = ({
12144
+ }), Ng = ({
12145
12145
  elements: e,
12146
12146
  viewportTop: t,
12147
12147
  viewportBottom: n
@@ -12159,7 +12159,7 @@ const bc = ({
12159
12159
  height: Math.max(1, a - r),
12160
12160
  intersectsViewport: o
12161
12161
  };
12162
- }, Ng = (e, t) => e === t ? 0 : e === null ? 1 : t === null ? -1 : e - t, Tg = ({
12162
+ }, Tg = (e, t) => e === t ? 0 : e === null ? 1 : t === null ? -1 : e - t, Eg = ({
12163
12163
  previousOrderedFloatingCardIds: e,
12164
12164
  nextFloatingCards: t,
12165
12165
  getPos: n
@@ -12178,7 +12178,7 @@ const bc = ({
12178
12178
  const h = o.get(u) ?? Number.NaN, m = o.get(d) ?? Number.NaN;
12179
12179
  return Number.isFinite(h) && Number.isFinite(m) && h !== m ? h - m : (s.get(u) ?? Number.POSITIVE_INFINITY) - (s.get(d) ?? Number.POSITIVE_INFINITY) || u.localeCompare(d);
12180
12180
  }, a = t.map((u) => u.floatingCardId).sort((u, d) => {
12181
- const h = Ng(n(u), n(d));
12181
+ const h = Tg(n(u), n(d));
12182
12182
  return h !== 0 ? h : r(u, d);
12183
12183
  });
12184
12184
  let l = null;
@@ -12195,7 +12195,7 @@ const bc = ({
12195
12195
  orderedFloatingCardIds: a,
12196
12196
  firstChangedIndex: l
12197
12197
  };
12198
- }, Ma = (e, t) => e.length !== t.length ? !1 : e.every((n, s) => n === t[s]), Eg = (e) => ({
12198
+ }, Ma = (e, t) => e.length !== t.length ? !1 : e.every((n, s) => n === t[s]), Ag = (e) => ({
12199
12199
  floatingCardId: e.floatingCardId,
12200
12200
  anchorTop: e.anchorTop,
12201
12201
  height: e.height,
@@ -12203,7 +12203,7 @@ const bc = ({
12203
12203
  isMeasured: e.isMeasured,
12204
12204
  lastCommittedTranslateY: e.lastCommittedTranslateY,
12205
12205
  invalidationFlags: e.invalidationFlags
12206
- }), Ag = () => {
12206
+ }), Rg = () => {
12207
12207
  const e = F(/* @__PURE__ */ new Map()), t = F(/* @__PURE__ */ new Set()), n = F(null), s = F(null), o = O((c) => {
12208
12208
  t.current.add(c);
12209
12209
  }, []), r = O(
@@ -12251,13 +12251,13 @@ const bc = ({
12251
12251
  I.anchorPosition = (H == null ? void 0 : H.pmPos) ?? I.anchorPosition;
12252
12252
  return;
12253
12253
  }
12254
- const W = wg({
12254
+ const W = bg({
12255
12255
  editorRoot: h,
12256
12256
  anchorId: _,
12257
12257
  anchorType: $
12258
12258
  });
12259
12259
  if (!W.length && $ === "thread") {
12260
- const q = bg({
12260
+ const q = vg({
12261
12261
  editor: d,
12262
12262
  editorRoot: h,
12263
12263
  anchorId: _
@@ -12284,7 +12284,7 @@ const bc = ({
12284
12284
  }), N = !0, I.anchorPosition = (H == null ? void 0 : H.pmPos) ?? I.anchorPosition;
12285
12285
  return;
12286
12286
  }
12287
- const j = vg(d, W), Z = !H || H.anchorType !== $ || H.pmPos !== j || H.lastSeenEditorRoot !== h || !Cg(H.elements, W), de = {
12287
+ const j = Cg(d, W), Z = !H || H.anchorType !== $ || H.pmPos !== j || H.lastSeenEditorRoot !== h || !kg(H.elements, W), de = {
12288
12288
  floatingCardId: R.floatingCardId,
12289
12289
  anchorId: _,
12290
12290
  anchorType: $,
@@ -12337,7 +12337,7 @@ const bc = ({
12337
12337
  resetAnchorRegistry: a,
12338
12338
  syncAnchors: l
12339
12339
  };
12340
- }, Rg = () => {
12340
+ }, Ig = () => {
12341
12341
  const e = F(
12342
12342
  /* @__PURE__ */ new Map()
12343
12343
  ), t = F([]), n = F(/* @__PURE__ */ new Map()), s = F(!0), o = F(/* @__PURE__ */ new Set()), r = F({
@@ -12389,7 +12389,7 @@ const bc = ({
12389
12389
  orderedFloatingCardIds: t.current,
12390
12390
  firstChangedIndex: null
12391
12391
  };
12392
- const D = Tg({
12392
+ const D = Eg({
12393
12393
  previousOrderedFloatingCardIds: t.current,
12394
12394
  nextFloatingCards: v,
12395
12395
  getPos: (b) => u(b).anchorPosition
@@ -12439,7 +12439,7 @@ const bc = ({
12439
12439
  []
12440
12440
  ), E = O(
12441
12441
  () => t.current.map(
12442
- (v) => Eg(u(v))
12442
+ (v) => Ag(u(v))
12443
12443
  ),
12444
12444
  [u]
12445
12445
  ), N = O(() => {
@@ -12465,23 +12465,23 @@ const bc = ({
12465
12465
  getFloatingCardLayoutInputs: E,
12466
12466
  resetFloatingCardState: N
12467
12467
  };
12468
- }, Ig = (e) => e instanceof Element ? !!e.closest(
12468
+ }, Dg = (e) => e instanceof Element ? !!e.closest(
12469
12469
  '[data-inline-comment-actions-menu], [data-radix-popper-content-wrapper], [data-floating-ui-portal], [role="dialog"]'
12470
- ) : !1, Dg = "--floating-comment-container-min-height", dr = ({
12470
+ ) : !1, Mg = "--floating-comment-container-min-height", dr = ({
12471
12471
  top: e,
12472
12472
  bottom: t,
12473
12473
  viewportTop: n,
12474
12474
  viewportBottom: s,
12475
12475
  viewportHeight: o
12476
12476
  }) => {
12477
- const r = o * gg;
12477
+ const r = o * yg;
12478
12478
  return t >= n - r && e <= s + r;
12479
- }, Mg = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, Og = (e, t) => {
12480
- const n = Mg(e);
12479
+ }, Og = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, Fg = (e, t) => {
12480
+ const n = Og(e);
12481
12481
  return !n || !t ? !1 : !!(t.contains(n) && n.closest(
12482
12482
  '[data-comment-id], [data-draft-comment-id], .inline-comment, mark[data-color="yellow"]'
12483
12483
  ));
12484
- }, Fg = ({
12484
+ }, Bg = ({
12485
12485
  blurFloatingCard: e,
12486
12486
  closeFloatingCard: t,
12487
12487
  editor: n,
@@ -12604,7 +12604,7 @@ const bc = ({
12604
12604
  ), w(Le)), Ae.anchorTop = null, Ae.anchorHeight = 0;
12605
12605
  return;
12606
12606
  }
12607
- let ut = at.cachedRect ? kg({
12607
+ let ut = at.cachedRect ? Sg({
12608
12608
  cachedRect: at.cachedRect,
12609
12609
  scrollTop: pe.scrollTop,
12610
12610
  containerTop: ct.top
@@ -12618,7 +12618,7 @@ const bc = ({
12618
12618
  viewportHeight: Qe
12619
12619
  }), $t = Ae.anchorVersion !== at.anchorVersion;
12620
12620
  if ((!at.cachedRect || Ae.isInViewport || Nt || $t || !Ae.isMeasured || dn && Nt || tn && Ae.isInViewport) && Da(at, ne)) {
12621
- const pt = Sg({
12621
+ const pt = Ng({
12622
12622
  elements: at.elements,
12623
12623
  viewportTop: Ke.top,
12624
12624
  viewportBottom: Ke.bottom
@@ -12729,7 +12729,7 @@ const bc = ({
12729
12729
  Math.max(jt, ms)
12730
12730
  );
12731
12731
  G.current !== xt && (ke.style.setProperty(
12732
- Dg,
12732
+ Mg,
12733
12733
  `${xt}px`
12734
12734
  ), G.current = xt), x(yn.stopIndex), b.current.recomputeFromIndex = R.current.length, ze.size > 0 && ze.forEach((Pe) => {
12735
12735
  t(Pe);
@@ -12826,10 +12826,10 @@ const bc = ({
12826
12826
  ]), Ks(
12827
12827
  se,
12828
12828
  (M) => {
12829
- if (!l || !a || Ig(M.target))
12829
+ if (!l || !a || Dg(M.target))
12830
12830
  return;
12831
12831
  const ne = cr(n);
12832
- Og(M.target, ne) || e(a);
12832
+ Fg(M.target, ne) || e(a);
12833
12833
  },
12834
12834
  "mousedown",
12835
12835
  { capture: !0 }
@@ -12975,7 +12975,7 @@ const bc = ({
12975
12975
  floatingCardListContainerRef: W,
12976
12976
  registerCardNode: B
12977
12977
  };
12978
- }, Bg = ({
12978
+ }, Lg = ({
12979
12979
  blurFloatingCard: e,
12980
12980
  closeFloatingCard: t,
12981
12981
  editor: n,
@@ -12987,7 +12987,7 @@ const bc = ({
12987
12987
  isHidden: c,
12988
12988
  scrollContainerRef: u
12989
12989
  }) => {
12990
- const d = Ag(), h = Rg(), { floatingCardListContainerRef: m, registerCardNode: p } = Fg({
12990
+ const d = Rg(), h = Ig(), { floatingCardListContainerRef: m, registerCardNode: p } = Bg({
12991
12991
  blurFloatingCard: e,
12992
12992
  closeFloatingCard: t,
12993
12993
  editor: n,
@@ -13006,7 +13006,7 @@ const bc = ({
13006
13006
  mountedFloatingCardIds: h.mountedFloatingCardIds,
13007
13007
  registerCardNode: p
13008
13008
  };
13009
- }, Lg = () => {
13009
+ }, _g = () => {
13010
13010
  const e = z((u) => u.blurFloatingCard), t = z((u) => u.closeFloatingCard), n = z((u) => u.floatingCards), s = z((u) => u.tabComments), o = z(
13011
13011
  (u) => u.isDesktopFloatingEnabled
13012
13012
  ), r = be(() => {
@@ -13043,7 +13043,7 @@ const bc = ({
13043
13043
  focusedFloatingCardId: c,
13044
13044
  isDesktopFloatingEnabled: o
13045
13045
  };
13046
- }, _g = ({
13046
+ }, Pg = ({
13047
13047
  editor: e,
13048
13048
  editorWrapperRef: t,
13049
13049
  scrollContainerRef: n,
@@ -13057,11 +13057,11 @@ const bc = ({
13057
13057
  floatingCards: c,
13058
13058
  focusedFloatingCardId: u,
13059
13059
  isDesktopFloatingEnabled: d
13060
- } = Lg(), {
13060
+ } = _g(), {
13061
13061
  floatingCardListContainerRef: h,
13062
13062
  mountedFloatingCardIds: m,
13063
13063
  registerCardNode: p
13064
- } = Bg({
13064
+ } = Lg({
13065
13065
  blurFloatingCard: o,
13066
13066
  closeFloatingCard: r,
13067
13067
  editor: e,
@@ -13084,7 +13084,7 @@ const bc = ({
13084
13084
  registerCardNode: p,
13085
13085
  shouldRender: y
13086
13086
  };
13087
- }, Pg = (e) => e instanceof Element ? !!e.closest(
13087
+ }, Ug = (e) => e instanceof Element ? !!e.closest(
13088
13088
  'button, [role="button"], a, [data-inline-comment-actions-menu], [data-radix-popper-content-wrapper]'
13089
13089
  ) : !1, Ws = bt(({ floatingCardId: e, isHidden: t, isFocused: n, onFocus: s, children: o }, r) => /* @__PURE__ */ i(
13090
13090
  "div",
@@ -13102,13 +13102,13 @@ const bc = ({
13102
13102
  opacity: t ? 0 : 1
13103
13103
  },
13104
13104
  onMouseDown: (a) => {
13105
- Pg(a.target) || s();
13105
+ Ug(a.target) || s();
13106
13106
  },
13107
13107
  children: o
13108
13108
  }
13109
13109
  ));
13110
13110
  Ws.displayName = "FloatingCardShell";
13111
- const Ug = ({
13111
+ const Hg = ({
13112
13112
  draft: e,
13113
13113
  isHidden: t,
13114
13114
  registerCardNode: n
@@ -13162,11 +13162,11 @@ const Ug = ({
13162
13162
  )
13163
13163
  ] })
13164
13164
  ] }),
13165
- /* @__PURE__ */ i(Hg, { draftState: o, draft: e })
13165
+ /* @__PURE__ */ i(zg, { draftState: o, draft: e })
13166
13166
  ] }) : /* @__PURE__ */ i(Vs, { isDraft: !0 })
13167
13167
  }
13168
13168
  ) : null;
13169
- }, Hg = ({
13169
+ }, zg = ({
13170
13170
  draftState: e,
13171
13171
  draft: t
13172
13172
  }) => {
@@ -13219,7 +13219,7 @@ const Ug = ({
13219
13219
  )
13220
13220
  ] })
13221
13221
  ] });
13222
- }, zg = ({
13222
+ }, Kg = ({
13223
13223
  card: e,
13224
13224
  isHidden: t,
13225
13225
  registerCardNode: n
@@ -13301,7 +13301,7 @@ const Ug = ({
13301
13301
  ] }) : /* @__PURE__ */ i(Vs, { isDraft: !0 })
13302
13302
  }
13303
13303
  );
13304
- }, Kg = ({
13304
+ }, jg = ({
13305
13305
  thread: e,
13306
13306
  comment: t,
13307
13307
  isHidden: n,
@@ -13331,7 +13331,7 @@ const Ug = ({
13331
13331
  onFocus: h,
13332
13332
  children: /* @__PURE__ */ C("div", { className: "flex group flex-col gap-2 p-3 pb-0", children: [
13333
13333
  /* @__PURE__ */ i(
13334
- jg,
13334
+ Vg,
13335
13335
  {
13336
13336
  username: t.username,
13337
13337
  createdAt: t.createdAt,
@@ -13351,18 +13351,18 @@ const Ug = ({
13351
13351
  }
13352
13352
  ) }),
13353
13353
  /* @__PURE__ */ i(
13354
- Vg,
13354
+ Wg,
13355
13355
  {
13356
13356
  thread: e,
13357
13357
  comment: t,
13358
13358
  onFocusRequest: h
13359
13359
  }
13360
13360
  ),
13361
- /* @__PURE__ */ i(Wg, { thread: e, comment: t })
13361
+ /* @__PURE__ */ i($g, { thread: e, comment: t })
13362
13362
  ] })
13363
13363
  }
13364
13364
  );
13365
- }, jg = ({
13365
+ }, Vg = ({
13366
13366
  username: e,
13367
13367
  createdAt: t,
13368
13368
  canAcceptReject: n,
@@ -13432,7 +13432,7 @@ const Ug = ({
13432
13432
  }
13433
13433
  )
13434
13434
  ] });
13435
- }, Vg = ({
13435
+ }, Wg = ({
13436
13436
  thread: e,
13437
13437
  comment: t,
13438
13438
  onFocusRequest: n
@@ -13474,7 +13474,7 @@ const Ug = ({
13474
13474
  visibleReplies: m
13475
13475
  }
13476
13476
  ) });
13477
- }, Wg = ({
13477
+ }, $g = ({
13478
13478
  thread: e,
13479
13479
  comment: t
13480
13480
  }) => {
@@ -13563,7 +13563,7 @@ const Ug = ({
13563
13563
  }
13564
13564
  )
13565
13565
  ] }) : null : null;
13566
- }, $g = ({
13566
+ }, qg = ({
13567
13567
  thread: e,
13568
13568
  comment: t,
13569
13569
  tabName: n,
@@ -13619,7 +13619,7 @@ const Ug = ({
13619
13619
  }
13620
13620
  ),
13621
13621
  e.isFocused && !l && /* @__PURE__ */ i(Vs, {}),
13622
- /* @__PURE__ */ i("div", { className: "px-3", children: /* @__PURE__ */ i(qg, { comment: t, thread: e }) }),
13622
+ /* @__PURE__ */ i("div", { className: "px-3", children: /* @__PURE__ */ i(Gg, { comment: t, thread: e }) }),
13623
13623
  /* @__PURE__ */ i(
13624
13624
  js,
13625
13625
  {
@@ -13632,7 +13632,7 @@ const Ug = ({
13632
13632
  ] })
13633
13633
  }
13634
13634
  );
13635
- }, qg = ({
13635
+ }, Gg = ({
13636
13636
  comment: e,
13637
13637
  thread: t
13638
13638
  }) => {
@@ -13738,7 +13738,7 @@ const Ug = ({
13738
13738
  }
13739
13739
  )
13740
13740
  ] });
13741
- }, Gg = ({
13741
+ }, Yg = ({
13742
13742
  editor: e,
13743
13743
  editorWrapperRef: t,
13744
13744
  scrollContainerRef: n,
@@ -13750,7 +13750,7 @@ const Ug = ({
13750
13750
  mountedFloatingCards: l,
13751
13751
  registerCardNode: c,
13752
13752
  shouldRender: u
13753
- } = _g({
13753
+ } = Pg({
13754
13754
  editor: e,
13755
13755
  editorWrapperRef: t,
13756
13756
  scrollContainerRef: n,
@@ -13774,7 +13774,7 @@ const Ug = ({
13774
13774
  children: l.map((d) => {
13775
13775
  if (d.type === "draft")
13776
13776
  return /* @__PURE__ */ i(
13777
- Ug,
13777
+ Hg,
13778
13778
  {
13779
13779
  draft: d,
13780
13780
  isHidden: o,
@@ -13784,7 +13784,7 @@ const Ug = ({
13784
13784
  );
13785
13785
  if (d.type === "suggestion-draft")
13786
13786
  return /* @__PURE__ */ i(
13787
- zg,
13787
+ Kg,
13788
13788
  {
13789
13789
  card: d,
13790
13790
  isHidden: o,
@@ -13796,7 +13796,7 @@ const Ug = ({
13796
13796
  (m) => m.id === d.commentId
13797
13797
  );
13798
13798
  return h != null && h.isSuggestion ? /* @__PURE__ */ i(
13799
- Kg,
13799
+ jg,
13800
13800
  {
13801
13801
  thread: d,
13802
13802
  comment: h,
@@ -13806,7 +13806,7 @@ const Ug = ({
13806
13806
  },
13807
13807
  d.floatingCardId
13808
13808
  ) : /* @__PURE__ */ i(
13809
- $g,
13809
+ qg,
13810
13810
  {
13811
13811
  thread: d,
13812
13812
  comment: h,
@@ -14192,7 +14192,7 @@ const So = Je.memo(Nc), Ir = ({
14192
14192
  className: ce("fixed z-50"),
14193
14193
  style: { top: h.top, left: h.left },
14194
14194
  children: /* @__PURE__ */ C(
14195
- Yg,
14195
+ Xg,
14196
14196
  {
14197
14197
  className: ce(
14198
14198
  "color-bg-default rounded-lg border shadow-md",
@@ -14202,9 +14202,9 @@ const So = Je.memo(Nc), Ir = ({
14202
14202
  t(y), a(!1);
14203
14203
  },
14204
14204
  children: [
14205
- /* @__PURE__ */ i(Xg, {}),
14206
- /* @__PURE__ */ i(e2, {}),
14207
- /* @__PURE__ */ i(t2, {})
14205
+ /* @__PURE__ */ i(Qg, {}),
14206
+ /* @__PURE__ */ i(t2, {}),
14207
+ /* @__PURE__ */ i(n2, {})
14208
14208
  ]
14209
14209
  }
14210
14210
  )
@@ -14212,7 +14212,7 @@ const So = Je.memo(Nc), Ir = ({
14212
14212
  )
14213
14213
  ] });
14214
14214
  };
14215
- function Yg({
14215
+ function Xg({
14216
14216
  className: e,
14217
14217
  ...t
14218
14218
  }) {
@@ -14228,7 +14228,7 @@ function Yg({
14228
14228
  }
14229
14229
  );
14230
14230
  }
14231
- function Xg({
14231
+ function Qg({
14232
14232
  className: e,
14233
14233
  ...t
14234
14234
  }) {
@@ -14251,13 +14251,13 @@ function Xg({
14251
14251
  }
14252
14252
  );
14253
14253
  }
14254
- function Qg({
14254
+ function Zg({
14255
14255
  children: e,
14256
14256
  ...t
14257
14257
  }) {
14258
14258
  return /* @__PURE__ */ i("div", { ...t, className: "scroll-my-1 px-1", "data-slot": "emoji-picker-row", children: e });
14259
14259
  }
14260
- function Zg({
14260
+ function Jg({
14261
14261
  emoji: e,
14262
14262
  className: t,
14263
14263
  ...n
@@ -14275,7 +14275,7 @@ function Zg({
14275
14275
  }
14276
14276
  );
14277
14277
  }
14278
- function Jg({
14278
+ function e2({
14279
14279
  category: e,
14280
14280
  ...t
14281
14281
  }) {
@@ -14289,7 +14289,7 @@ function Jg({
14289
14289
  }
14290
14290
  );
14291
14291
  }
14292
- function e2({
14292
+ function t2({
14293
14293
  className: e,
14294
14294
  ...t
14295
14295
  }) {
@@ -14321,9 +14321,9 @@ function e2({
14321
14321
  {
14322
14322
  className: "select-none pb-1",
14323
14323
  components: {
14324
- Row: Qg,
14325
- Emoji: Zg,
14326
- CategoryHeader: Jg
14324
+ Row: Zg,
14325
+ Emoji: Jg,
14326
+ CategoryHeader: e2
14327
14327
  },
14328
14328
  "data-slot": "emoji-picker-list"
14329
14329
  }
@@ -14332,7 +14332,7 @@ function e2({
14332
14332
  }
14333
14333
  );
14334
14334
  }
14335
- function t2({
14335
+ function n2({
14336
14336
  className: e,
14337
14337
  ...t
14338
14338
  }) {
@@ -14352,7 +14352,7 @@ function t2({
14352
14352
  }
14353
14353
  );
14354
14354
  }
14355
- const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center w-full", s2 = ({
14355
+ const s2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center w-full", o2 = ({
14356
14356
  children: e,
14357
14357
  ...t
14358
14358
  }) => {
@@ -14659,7 +14659,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14659
14659
  ]
14660
14660
  }
14661
14661
  );
14662
- }, o2 = ({
14662
+ }, r2 = ({
14663
14663
  name: e,
14664
14664
  emoji: t
14665
14665
  }) => /* @__PURE__ */ C(
@@ -14673,14 +14673,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14673
14673
  /* @__PURE__ */ i("span", { className: "text-heading-xsm color-text-default truncate", children: e })
14674
14674
  ]
14675
14675
  }
14676
- ), r2 = ({
14676
+ ), i2 = ({
14677
14677
  item: e
14678
14678
  }) => {
14679
14679
  const [t, n] = Y(!1), s = /* @__PURE__ */ C(
14680
14680
  "div",
14681
14681
  {
14682
14682
  "data-testid": `tab-menu-${e.id}`,
14683
- className: ye(n2, e.disabled && "!cursor-not-allowed"),
14683
+ className: ye(s2, e.disabled && "!cursor-not-allowed"),
14684
14684
  onClick: (r) => {
14685
14685
  var a;
14686
14686
  r.stopPropagation(), !e.disabled && ((a = e.onSelect) == null || a.call(e));
@@ -14742,7 +14742,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14742
14742
  className: ye("w-[160px] space-xsm", n),
14743
14743
  children: s.map((o, r) => /* @__PURE__ */ C("div", { children: [
14744
14744
  r > 0 && /* @__PURE__ */ i("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
14745
- o.map((a) => /* @__PURE__ */ i(r2, { item: a }, a.id))
14745
+ o.map((a) => /* @__PURE__ */ i(i2, { item: a }, a.id))
14746
14746
  ] }, `section-${r}`))
14747
14747
  }
14748
14748
  )
@@ -14818,14 +14818,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14818
14818
  } catch {
14819
14819
  return /* @__PURE__ */ new Set();
14820
14820
  }
14821
- }, i2 = (e, t) => {
14821
+ }, a2 = (e, t) => {
14822
14822
  if (e)
14823
14823
  try {
14824
14824
  const n = Rc(e);
14825
14825
  t.size === 0 ? window.localStorage.removeItem(n) : window.localStorage.setItem(n, JSON.stringify([...t]));
14826
14826
  } catch {
14827
14827
  }
14828
- }, a2 = 16, Ic = ({
14828
+ }, l2 = 16, Ic = ({
14829
14829
  tabs: e,
14830
14830
  activeTabId: t,
14831
14831
  ddocId: n
@@ -14853,7 +14853,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14853
14853
  (g) => {
14854
14854
  l((x) => {
14855
14855
  const E = g(x);
14856
- return E !== x && i2(n, E), E;
14856
+ return E !== x && a2(n, E), E;
14857
14857
  });
14858
14858
  },
14859
14859
  [n]
@@ -14909,12 +14909,12 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
14909
14909
  nextSiblingOf: (g) => p(g, 1),
14910
14910
  canDelete: (g) => !!g.parentId || f > 1,
14911
14911
  canAddSubtabTo: (g) => (g.depth ?? 1) < bo,
14912
- indentOf: (g) => Math.min((g.depth ?? 1) - 1, bo - 1) * a2
14912
+ indentOf: (g) => Math.min((g.depth ?? 1) - 1, bo - 1) * l2
14913
14913
  };
14914
14914
  }, Mr = (e) => e != null && e.hasChildren ? {
14915
14915
  title: "Delete this tab and all subtabs?",
14916
14916
  text: "This tab and all its content, including subtabs, will be deleted"
14917
- } : { title: void 0, text: void 0 }, l2 = 24, c2 = ({
14917
+ } : { title: void 0, text: void 0 }, c2 = 24, d2 = ({
14918
14918
  tabSectionContainer: e,
14919
14919
  ...t
14920
14920
  }) => !e && t.isVersionHistoryMode ? null : e ? fn(/* @__PURE__ */ i(Ba, { ...t }), e) : /* @__PURE__ */ i(Ba, { ...t }), Ba = ({
@@ -15018,7 +15018,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15018
15018
  children: L.map((B) => {
15019
15019
  const M = P.previousSiblingOf(B), ne = P.nextSiblingOf(B), pe = P.expandStateOf(B);
15020
15020
  return /* @__PURE__ */ i(
15021
- d2,
15021
+ u2,
15022
15022
  {
15023
15023
  tab: B,
15024
15024
  canMoveUp: !!M,
@@ -15159,7 +15159,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15159
15159
  }
15160
15160
  ),
15161
15161
  /* @__PURE__ */ i(Vm, { children: k ? /* @__PURE__ */ i(
15162
- o2,
15162
+ r2,
15163
15163
  {
15164
15164
  emoji: (_ == null ? void 0 : _.emoji) ?? "",
15165
15165
  name: (_ == null ? void 0 : _.name) ?? ""
@@ -15191,7 +15191,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15191
15191
  }
15192
15192
  )
15193
15193
  ] });
15194
- }, d2 = ({
15194
+ }, u2 = ({
15195
15195
  tab: e,
15196
15196
  canMoveUp: t,
15197
15197
  canMoveDown: n,
@@ -15221,9 +15221,9 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15221
15221
  onShowOutlineChange: w,
15222
15222
  isConnected: k
15223
15223
  }) => {
15224
- const R = o + (r ? l2 : 0);
15224
+ const R = o + (r ? c2 : 0);
15225
15225
  return /* @__PURE__ */ i("div", { className: "w-full flex flex-col gap-2", children: /* @__PURE__ */ C(
15226
- s2,
15226
+ o2,
15227
15227
  {
15228
15228
  id: e.id,
15229
15229
  tabId: e.id,
@@ -15276,7 +15276,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15276
15276
  },
15277
15277
  e.id
15278
15278
  ) });
15279
- }, u2 = ({
15279
+ }, h2 = ({
15280
15280
  isOpen: e,
15281
15281
  initialName: t,
15282
15282
  onClose: n,
@@ -15339,7 +15339,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15339
15339
  )
15340
15340
  }
15341
15341
  );
15342
- }, h2 = 24, m2 = ({
15342
+ }, m2 = 24, p2 = ({
15343
15343
  tabs: e,
15344
15344
  activeTabId: t,
15345
15345
  setActiveTabId: n,
@@ -15495,7 +15495,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15495
15495
  "transition-opacity duration-300"
15496
15496
  ),
15497
15497
  children: _.visibleTabs.map((G) => {
15498
- const oe = _.previousSiblingOf(G), Q = _.nextSiblingOf(G), L = _.expandStateOf(G), B = _.indentOf(G), M = B + (L ? h2 : 0);
15498
+ const oe = _.previousSiblingOf(G), Q = _.nextSiblingOf(G), L = _.expandStateOf(G), B = _.indentOf(G), M = B + (L ? m2 : 0);
15499
15499
  return /* @__PURE__ */ C(
15500
15500
  "div",
15501
15501
  {
@@ -15722,7 +15722,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15722
15722
  }
15723
15723
  ),
15724
15724
  /* @__PURE__ */ i(
15725
- u2,
15725
+ h2,
15726
15726
  {
15727
15727
  isOpen: !!w,
15728
15728
  initialName: (w == null ? void 0 : w.name) ?? "",
@@ -15737,7 +15737,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15737
15737
  }
15738
15738
  );
15739
15739
  return V ? v ? fn(U, v) : null : U;
15740
- }, p2 = ({
15740
+ }, f2 = ({
15741
15741
  editor: e,
15742
15742
  hasToC: t,
15743
15743
  items: n,
@@ -15849,7 +15849,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15849
15849
  }) => {
15850
15850
  const { isBelow1150px: R } = zt();
15851
15851
  return c.length ? !R || N ? /* @__PURE__ */ i(
15852
- c2,
15852
+ d2,
15853
15853
  {
15854
15854
  tabs: c,
15855
15855
  setTabs: u,
@@ -15880,7 +15880,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15880
15880
  ddocId: k
15881
15881
  }
15882
15882
  ) : /* @__PURE__ */ i(
15883
- m2,
15883
+ p2,
15884
15884
  {
15885
15885
  tabs: c,
15886
15886
  setTabs: u,
@@ -15907,7 +15907,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15907
15907
  ddocId: k
15908
15908
  }
15909
15909
  ) : /* @__PURE__ */ i(
15910
- p2,
15910
+ f2,
15911
15911
  {
15912
15912
  editor: e,
15913
15913
  hasToC: t,
@@ -15919,14 +15919,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15919
15919
  orientation: l
15920
15920
  }
15921
15921
  );
15922
- }, f2 = {
15922
+ }, g2 = {
15923
15923
  initial: { opacity: 0 },
15924
15924
  animate: { opacity: 1 },
15925
15925
  exit: { opacity: 0 }
15926
15926
  }, Dc = (e, t) => /* @__PURE__ */ i(
15927
15927
  Ht.div,
15928
15928
  {
15929
- variants: f2,
15929
+ variants: g2,
15930
15930
  initial: "initial",
15931
15931
  animate: "animate",
15932
15932
  exit: "exit",
@@ -15934,14 +15934,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15934
15934
  children: e
15935
15935
  },
15936
15936
  t
15937
- ), g2 = {
15937
+ ), y2 = {
15938
15938
  initial: { y: 10, opacity: 0 },
15939
15939
  animate: { y: 0, opacity: 1 },
15940
15940
  exit: { y: -10, opacity: 0 }
15941
15941
  }, Mc = (e, t) => /* @__PURE__ */ i(
15942
15942
  Ht.div,
15943
15943
  {
15944
- variants: g2,
15944
+ variants: y2,
15945
15945
  initial: "initial",
15946
15946
  animate: "animate",
15947
15947
  exit: "exit",
@@ -15962,7 +15962,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15962
15962
  className: ye(t, !e && "invisible pointer-events-none"),
15963
15963
  children: n
15964
15964
  }
15965
- ), y2 = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Bt = ({ className: e }) => /* @__PURE__ */ i("div", { className: ce(y2, e) }), Oc = () => /* @__PURE__ */ i("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ C(
15965
+ ), x2 = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Bt = ({ className: e }) => /* @__PURE__ */ i("div", { className: ce(x2, e) }), Oc = () => /* @__PURE__ */ i("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ C(
15966
15966
  wm,
15967
15967
  {
15968
15968
  transition: {
@@ -16018,10 +16018,10 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16018
16018
  )
16019
16019
  ]
16020
16020
  }
16021
- ) }), x2 = (e) => e == null ? void 0 : e.classList.add("ddoc-floating-menu"), w2 = ({ editor: e }) => e.isEditable && Ts(e.state) !== null, b2 = {
16021
+ ) }), w2 = (e) => e == null ? void 0 : e.classList.add("ddoc-floating-menu"), b2 = ({ editor: e }) => e.isEditable && Ts(e.state) !== null, v2 = {
16022
16022
  tweet: { label: "Embed Tweet", icon: "GalleryVertical" },
16023
16023
  image: { label: "Image", icon: "Image" }
16024
- }, v2 = ({ editor: e }) => {
16024
+ }, C2 = ({ editor: e }) => {
16025
16025
  const t = F([]), n = F(null), s = Pr({
16026
16026
  editor: e,
16027
16027
  selector: ({ editor: d }) => {
@@ -16075,15 +16075,15 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16075
16075
  }
16076
16076
  }),
16077
16077
  [l, r]
16078
- ), u = b2[s ?? "image"];
16078
+ ), u = v2[s ?? "image"];
16079
16079
  return /* @__PURE__ */ i(
16080
16080
  Io,
16081
16081
  {
16082
- ref: x2,
16082
+ ref: w2,
16083
16083
  pluginKey: "pasteAsMenu",
16084
16084
  editor: e,
16085
16085
  options: c,
16086
- shouldShow: w2,
16086
+ shouldShow: b2,
16087
16087
  className: "p-2 border color-border-default shadow-elevation-3 color-bg-default rounded-lg",
16088
16088
  children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-0.5", ref: n, children: [
16089
16089
  /* @__PURE__ */ i("p", { className: "text-helper-sm text-xs color-text-secondary p-2", children: "Paste as" }),
@@ -16123,7 +16123,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16123
16123
  if (t === "") return null;
16124
16124
  const n = Number.parseFloat(t);
16125
16125
  return Number.isNaN(n) ? null : Math.min(bh, Math.max(vh, Math.round(n)));
16126
- }, ur = (e, t) => e === "mixed" || e === null ? "" : t === "lineHeight" ? xh(String(e)) : String(e), C2 = ({
16126
+ }, ur = (e, t) => e === "mixed" || e === null ? "" : t === "lineHeight" ? xh(String(e)) : String(e), k2 = ({
16127
16127
  editor: e,
16128
16128
  open: t,
16129
16129
  onOpenChange: n
@@ -16279,12 +16279,12 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16279
16279
  /* @__PURE__ */ i(Se, { onClick: d, className: "!min-w-[80px] !w-[80px]", children: "Apply" })
16280
16280
  ] }) })
16281
16281
  ] }) });
16282
- }, k2 = ({
16282
+ }, S2 = ({
16283
16283
  editor: e
16284
16284
  }) => {
16285
16285
  const t = yr((s) => s.isCustomSpacingOpen), n = yr((s) => s.setCustomSpacingOpen);
16286
- return /* @__PURE__ */ i(C2, { editor: e, open: t, onOpenChange: n });
16287
- }, S2 = ({
16286
+ return /* @__PURE__ */ i(k2, { editor: e, open: t, onOpenChange: n });
16287
+ }, N2 = ({
16288
16288
  editor: e,
16289
16289
  ydoc: t,
16290
16290
  tabs: n,
@@ -16345,7 +16345,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16345
16345
  Object.is(m, h.current) || (h.isControlled || (c.current = { ...h, current: m }, a(m)), (p = h.onChange) == null || p.call(h, m), (f = h.legacySetter) == null || f.call(h, m));
16346
16346
  }, []);
16347
16347
  return [l, u];
16348
- }, N2 = ({
16348
+ }, T2 = ({
16349
16349
  onFocusMode: e,
16350
16350
  isFocusMode: t,
16351
16351
  onFocusModeChange: n
@@ -16368,7 +16368,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16368
16368
  }, [r, a]), Cc(() => {
16369
16369
  s && a();
16370
16370
  }), { isFocusMode: s, toggleFocusMode: a };
16371
- }, T2 = [
16371
+ }, E2 = [
16372
16372
  "[data-editor-bubble-menu]",
16373
16373
  "[data-radix-dialog-content]",
16374
16374
  '[role="dialog"]',
@@ -16376,7 +16376,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16376
16376
  "[data-overlay]",
16377
16377
  "[data-radix-popper-content-wrapper]",
16378
16378
  "[data-floating-ui-portal]"
16379
- ].join(", "), E2 = (e, t) => !(t != null && t.contains(e)) && !e.closest(T2), A2 = ({
16379
+ ].join(", "), A2 = (e, t) => !(t != null && t.contains(e)) && !e.closest(E2), R2 = ({
16380
16380
  dropdownOpen: e,
16381
16381
  setDropdownOpen: t,
16382
16382
  showTOC: n,
@@ -16452,7 +16452,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
16452
16452
  }
16453
16453
  ) })
16454
16454
  ] });
16455
- }, R2 = (e) => {
16455
+ }, I2 = (e) => {
16456
16456
  switch (e) {
16457
16457
  case "meeting-notes":
16458
16458
  return {
@@ -19250,14 +19250,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19250
19250
  }), nt = (e) => ({
19251
19251
  type: "dBlock",
19252
19252
  content: [e]
19253
- }), _e = (e) => Me(e, [{ type: "bold" }]), $e = (e) => Me(e, [{ type: "italic" }]), I2 = (e) => ({
19253
+ }), _e = (e) => Me(e, [{ type: "bold" }]), $e = (e) => Me(e, [{ type: "italic" }]), D2 = (e) => ({
19254
19254
  type: "listItem",
19255
19255
  content: [Lt(e)]
19256
19256
  }), es = (e) => ({
19257
19257
  type: "bulletList",
19258
19258
  attrs: { tight: !0 },
19259
- content: e.map(I2)
19260
- }), D2 = {
19259
+ content: e.map(D2)
19260
+ }), M2 = {
19261
19261
  type: "doc",
19262
19262
  content: [
19263
19263
  nt(
@@ -19305,7 +19305,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19305
19305
  Lt([$e("[A little spicy blurb to hook your readers in]")])
19306
19306
  )
19307
19307
  ]
19308
- }, M2 = {
19308
+ }, O2 = {
19309
19309
  type: "doc",
19310
19310
  content: [
19311
19311
  nt(Un(1, [Me("★Plot & outline")])),
@@ -19383,7 +19383,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19383
19383
  ])
19384
19384
  )
19385
19385
  ]
19386
- }, O2 = {
19386
+ }, F2 = {
19387
19387
  type: "doc",
19388
19388
  content: [
19389
19389
  nt(Un(1, [Me("𖠋 Characters")])),
@@ -19431,7 +19431,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19431
19431
  ])
19432
19432
  )
19433
19433
  ]
19434
- }, F2 = {
19434
+ }, B2 = {
19435
19435
  type: "doc",
19436
19436
  content: [
19437
19437
  nt(Un(1, [Me("꩜ World & Canon")])),
@@ -19486,14 +19486,14 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19486
19486
  ])
19487
19487
  )
19488
19488
  ]
19489
- }, B2 = {
19489
+ }, L2 = {
19490
19490
  type: "tabbed-doc",
19491
19491
  title: "Fanfic Planner",
19492
19492
  tabs: [
19493
- { name: "Ship Basis", emoji: "🥐", content: D2 },
19494
- { name: "Plot & Outline", emoji: "🍩", content: M2 },
19495
- { name: "Characters", emoji: "🍦", content: O2 },
19496
- { name: "World & Canon", emoji: "🧋", content: F2 }
19493
+ { name: "Ship Basis", emoji: "🥐", content: M2 },
19494
+ { name: "Plot & Outline", emoji: "🍩", content: O2 },
19495
+ { name: "Characters", emoji: "🍦", content: F2 },
19496
+ { name: "World & Canon", emoji: "🧋", content: B2 }
19497
19497
  ]
19498
19498
  }, Fc = {
19499
19499
  id: "todo-list",
@@ -19503,11 +19503,11 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19503
19503
  id: "breathe",
19504
19504
  label: "Breathe!",
19505
19505
  icon: "🧘‍♂️"
19506
- }, L2 = {
19506
+ }, _2 = {
19507
19507
  id: "fanfic",
19508
19508
  label: "Fanfic",
19509
19509
  icon: "✍️",
19510
- tabbedContent: B2
19510
+ tabbedContent: L2
19511
19511
  }, Ua = [
19512
19512
  {
19513
19513
  id: "meeting-notes",
@@ -19530,7 +19530,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19530
19530
  icon: "🏄🏻‍♂️"
19531
19531
  }
19532
19532
  ], Bc = (e, t, n) => {
19533
- const s = e.tabbedContent ?? R2(e.id);
19533
+ const s = e.tabbedContent ?? I2(e.id);
19534
19534
  return {
19535
19535
  label: e.label,
19536
19536
  icon: e.icon,
@@ -19539,7 +19539,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19539
19539
  },
19540
19540
  content: s
19541
19541
  };
19542
- }, _2 = (e, t = !1) => (t ? [Fc, ...Ua] : Ua).map((n) => Bc(n, e)), P2 = (e, t, n = !1) => (n ? [Pa, L2] : [Fc, Pa]).map(
19542
+ }, P2 = (e, t = !1) => (t ? [Fc, ...Ua] : Ua).map((n) => Bc(n, e)), U2 = (e, t, n = !1) => (n ? [Pa, _2] : [Fc, Pa]).map(
19543
19543
  (s) => Bc(s, e, t)
19544
19544
  ), Ha = (e, t) => typeof e == "string" && cm[e] ? /* @__PURE__ */ i(
19545
19545
  me,
@@ -19547,7 +19547,7 @@ const n2 = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19547
19547
  name: e,
19548
19548
  className: t
19549
19549
  }
19550
- ) : typeof e == "string" ? /* @__PURE__ */ i("span", { className: t, children: e }) : null, U2 = (e, t, n, s, o, r, a, l) => r || a || l ? null : /* @__PURE__ */ C(lm, { className: "template-buttons space-x-0 gap-2 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
19550
+ ) : typeof e == "string" ? /* @__PURE__ */ i("span", { className: t, children: e }) : null, H2 = (e, t, n, s, o, r, a, l) => r || a || l ? null : /* @__PURE__ */ C(lm, { className: "template-buttons space-x-0 gap-2 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
19551
19551
  e.map((c, u) => /* @__PURE__ */ C(
19552
19552
  Se,
19553
19553
  {
@@ -19621,7 +19621,7 @@ function za(e) {
19621
19621
  r && t.push(bl.node(o, o + r.nodeSize, { class: "ProseMirror-selectednoderange" }));
19622
19622
  }), Bn.create(n, t);
19623
19623
  }
19624
- function H2(e, t, n) {
19624
+ function z2(e, t, n) {
19625
19625
  const s = n.isText || n.isAtom ? 0 : 1;
19626
19626
  return {
19627
19627
  start: e + s,
@@ -19633,13 +19633,13 @@ function Oo(e, t, n, s = {}) {
19633
19633
  typeof n == "number" && n >= 0 || (e.sameParent(t) ? n = Math.max(0, e.sharedDepth(t.pos) - 1) : n = e.sharedDepth(t.pos));
19634
19634
  const l = new Ch(e, t, n), c = l.depth === 0 ? 0 : r.resolve(l.start).posAtIndex(0);
19635
19635
  return l.parent.forEach((u, d) => {
19636
- const h = c + d, m = h + u.nodeSize, p = H2(h, u.nodeSize, u), f = a ? t.pos >= p.start && e.pos <= p.end : t.pos > p.start && e.pos < p.end;
19636
+ const h = c + d, m = h + u.nodeSize, p = z2(h, u.nodeSize, u), f = a ? t.pos >= p.start && e.pos <= p.end : t.pos > p.start && e.pos < p.end;
19637
19637
  if (h < l.start || h >= l.end || !f) return;
19638
19638
  const y = new kh(r.resolve(h), r.resolve(m));
19639
19639
  o.push(y);
19640
19640
  }), o;
19641
19641
  }
19642
- var z2 = class Lc {
19642
+ var K2 = class Lc {
19643
19643
  constructor(t, n, s) {
19644
19644
  this.anchor = t, this.head = n, this.depth = s ?? 0;
19645
19645
  }
@@ -19703,7 +19703,7 @@ var z2 = class Lc {
19703
19703
  return new this(t.resolve(n), t.resolve(s), o, r);
19704
19704
  }
19705
19705
  getBookmark() {
19706
- return new z2(this.anchor, this.head, this.depth);
19706
+ return new K2(this.anchor, this.head, this.depth);
19707
19707
  }
19708
19708
  };
19709
19709
  Qt.prototype.visible = !1;
@@ -19781,20 +19781,20 @@ os.create({
19781
19781
  })];
19782
19782
  }
19783
19783
  });
19784
- function K2(e, t) {
19784
+ function j2(e, t) {
19785
19785
  const n = getComputedStyle(e);
19786
19786
  if (t) return t.map((o) => o.trim()).filter((o) => o.length > 0).map((o) => `${o}:${n.getPropertyValue(o)};`).join("");
19787
19787
  let s = "";
19788
19788
  for (let o = 0; o < n.length; o += 1) s += `${n[o]}:${n.getPropertyValue(n[o])};`;
19789
19789
  return s;
19790
19790
  }
19791
- function j2(e, t) {
19791
+ function V2(e, t) {
19792
19792
  const n = e.cloneNode(!0), s = [e, ...Array.from(e.getElementsByTagName("*"))], o = [n, ...Array.from(n.getElementsByTagName("*"))];
19793
19793
  return s.forEach((r, a) => {
19794
- o[a].style.cssText = K2(r, t);
19794
+ o[a].style.cssText = j2(r, t);
19795
19795
  }), n;
19796
19796
  }
19797
- const V2 = [
19797
+ const W2 = [
19798
19798
  {
19799
19799
  id: "listItemFirstChild",
19800
19800
  evaluate: ({ parent: e, isFirst: t }) => t && e && ["listItem", "taskItem"].includes(e.type.name) ? 1e3 : 0
@@ -19845,28 +19845,28 @@ function hr(e) {
19845
19845
  ...e
19846
19846
  };
19847
19847
  }
19848
- function W2(e, t, n) {
19848
+ function $2(e, t, n) {
19849
19849
  if (n.edges.length === 0) return !1;
19850
19850
  const s = t.getBoundingClientRect(), { threshold: o, edges: r } = n;
19851
19851
  return r.some((a) => a === "left" ? e.x - s.left < o : a === "right" ? s.right - e.x < o : a === "top" ? e.y - s.top < o : a === "bottom" ? s.bottom - e.y < o : !1);
19852
19852
  }
19853
- function $2(e, t, n, s) {
19854
- return !t || n.edges.length === 0 ? 0 : W2(e, t, n) ? n.strength * s : 0;
19853
+ function q2(e, t, n, s) {
19854
+ return !t || n.edges.length === 0 ? 0 : $2(e, t, n) ? n.strength * s : 0;
19855
19855
  }
19856
- const q2 = 1e3;
19856
+ const G2 = 1e3;
19857
19857
  function ja(e, t, n, s) {
19858
- let o = q2, r = !1;
19858
+ let o = G2, r = !1;
19859
19859
  if (t.every((l) => {
19860
19860
  const c = l.evaluate(e);
19861
19861
  return o -= c, o <= 0 ? (r = !0, !1) : !0;
19862
19862
  }), r) return -1;
19863
19863
  const a = e.view.nodeDOM(e.pos);
19864
- return o -= $2(s, a, n, e.depth), o <= 0 ? -1 : o;
19864
+ return o -= q2(s, a, n, e.depth), o <= 0 ? -1 : o;
19865
19865
  }
19866
19866
  function Va(e, t, n) {
19867
19867
  return Array.from({ length: t }, (s, o) => t - 1 - o).some((s) => n.includes(e.node(s).type.name));
19868
19868
  }
19869
- function G2(e, t, n) {
19869
+ function Y2(e, t, n) {
19870
19870
  if (!Number.isFinite(t.x) || !Number.isFinite(t.y)) return null;
19871
19871
  const s = e.posAtCoords({
19872
19872
  left: t.x,
@@ -19874,7 +19874,7 @@ function G2(e, t, n) {
19874
19874
  });
19875
19875
  if (!s) return null;
19876
19876
  const { doc: o } = e.state, r = o.resolve(s.pos), a = [];
19877
- n.defaultRules && a.push(...V2), a.push(...n.rules);
19877
+ n.defaultRules && a.push(...W2), a.push(...n.rules);
19878
19878
  const l = Array.from({ length: r.depth }, (d, h) => r.depth - h).map((d) => {
19879
19879
  const h = r.node(d), m = r.before(d);
19880
19880
  if (n.allowedContainers && d > 0 && !Va(r, d, n.allowedContainers))
@@ -19934,26 +19934,26 @@ function G2(e, t, n) {
19934
19934
  dom: u.dom
19935
19935
  } : null;
19936
19936
  }
19937
- function Y2(e, t) {
19937
+ function X2(e, t) {
19938
19938
  var n;
19939
19939
  let s = e;
19940
19940
  for (; s != null && s.parentElement && s.parentElement !== t.dom; ) s = s.parentElement;
19941
19941
  if ((s == null ? void 0 : s.parentElement) === t.dom && !((n = s.pmViewDesc) === null || n === void 0) && n.node)
19942
19942
  return s;
19943
19943
  }
19944
- function X2(e) {
19944
+ function Q2(e) {
19945
19945
  return Number.isFinite(e.top) && Number.isFinite(e.bottom) && Number.isFinite(e.left) && Number.isFinite(e.right) && e.width > 0 && e.height > 0;
19946
19946
  }
19947
19947
  function Wa(e, t) {
19948
19948
  let n = t === "first" ? e.firstElementChild : e.lastElementChild;
19949
19949
  for (; n; ) {
19950
19950
  const s = n.getBoundingClientRect();
19951
- if (X2(s)) return s;
19951
+ if (Q2(s)) return s;
19952
19952
  n = t === "first" ? n.nextElementSibling : n.previousElementSibling;
19953
19953
  }
19954
19954
  return null;
19955
19955
  }
19956
- function Q2(e, t, n, s = 5) {
19956
+ function Z2(e, t, n, s = 5) {
19957
19957
  if (!Number.isFinite(t) || !Number.isFinite(n)) return null;
19958
19958
  const o = e.dom, r = Wa(o, "first"), a = Wa(o, "last");
19959
19959
  if (!r || !a) return null;
@@ -19967,7 +19967,7 @@ function Q2(e, t, n, s = 5) {
19967
19967
  };
19968
19968
  }
19969
19969
  const _c = (e) => {
19970
- const { x: t, y: n, editor: s, nestedOptions: o } = e, { view: r, state: a } = s, l = Q2(r, t, n, 5);
19970
+ const { x: t, y: n, editor: s, nestedOptions: o } = e, { view: r, state: a } = s, l = Z2(r, t, n, 5);
19971
19971
  if (!l) return {
19972
19972
  resultElement: null,
19973
19973
  resultNode: null,
@@ -19975,7 +19975,7 @@ const _c = (e) => {
19975
19975
  };
19976
19976
  const { x: c, y: u } = l;
19977
19977
  if (o != null && o.enabled) {
19978
- const f = G2(r, {
19978
+ const f = Y2(r, {
19979
19979
  x: c,
19980
19980
  y: u
19981
19981
  }, o);
@@ -19993,7 +19993,7 @@ const _c = (e) => {
19993
19993
  let h;
19994
19994
  if (Array.prototype.some.call(d, (f) => {
19995
19995
  if (!r.dom.contains(f)) return !1;
19996
- const y = Y2(f, r);
19996
+ const y = X2(f, r);
19997
19997
  return y ? (h = y, !0) : !1;
19998
19998
  }), !h) {
19999
19999
  const f = r.posAtCoords({
@@ -20048,7 +20048,7 @@ function Pc(e, t) {
20048
20048
  const { node: s, offset: o } = e.domAtPos(t), r = s.childNodes[o];
20049
20049
  return r instanceof Element ? r : s instanceof Element ? s : s.nodeType === Node.TEXT_NODE && s.parentElement ? s.parentElement : null;
20050
20050
  }
20051
- function Z2(e, t) {
20051
+ function J2(e, t) {
20052
20052
  const n = Pc(e, t);
20053
20053
  return (n ? getComputedStyle(n).direction : getComputedStyle(e.dom).direction) || "ltr";
20054
20054
  }
@@ -20056,16 +20056,16 @@ function Uc(e) {
20056
20056
  var t;
20057
20057
  (t = e.parentNode) === null || t === void 0 || t.removeChild(e);
20058
20058
  }
20059
- function J2(e, t) {
20059
+ function ey(e, t) {
20060
20060
  return e === "rtl" ? t : 0;
20061
20061
  }
20062
- function ey(e) {
20062
+ function ty(e) {
20063
20063
  return e ? !e.some((t) => {
20064
20064
  const n = t.trim().toLowerCase();
20065
20065
  return n === "margin" || n.startsWith("margin-");
20066
20066
  }) : !0;
20067
20067
  }
20068
- function ty(e, t, n, s) {
20068
+ function ny(e, t, n, s) {
20069
20069
  const { doc: o } = t.view.state;
20070
20070
  if (n != null && n.enabled && (s != null && s.node) && s.pos >= 0) {
20071
20071
  const u = s.pos, d = s.pos + s.node.nodeSize;
@@ -20084,24 +20084,24 @@ function ty(e, t, n, s) {
20084
20084
  const a = r.resultNode.isText || r.resultNode.isAtom ? 0 : -1, l = o.resolve(r.pos), c = o.resolve(r.pos + r.resultNode.nodeSize + a);
20085
20085
  return Oo(l, c, 0, { extendOnBoundaryOverlap: !1 });
20086
20086
  }
20087
- function ny(e, t, n, s, o) {
20087
+ function sy(e, t, n, s, o) {
20088
20088
  const { view: r } = t;
20089
20089
  if (!e.dataTransfer) return;
20090
- const { empty: a, $from: l, $to: c } = r.state.selection, u = ty(e, t, n, s), d = Oo(l, c, 0, { extendOnBoundaryOverlap: !1 }), h = d.some((k) => u.find((R) => R.$from === k.$from && R.$to === k.$to)), m = a || !h ? u : d;
20090
+ const { empty: a, $from: l, $to: c } = r.state.selection, u = ny(e, t, n, s), d = Oo(l, c, 0, { extendOnBoundaryOverlap: !1 }), h = d.some((k) => u.find((R) => R.$from === k.$from && R.$to === k.$to)), m = a || !h ? u : d;
20091
20091
  if (!m.length) return;
20092
- const { tr: p } = r.state, f = document.createElement("div"), y = m[0].$from.pos, g = m[m.length - 1].$to.pos, x = Z2(r, y);
20092
+ const { tr: p } = r.state, f = document.createElement("div"), y = m[0].$from.pos, g = m[m.length - 1].$to.pos, x = J2(r, y);
20093
20093
  f.setAttribute("dir", x);
20094
20094
  const E = (n == null ? void 0 : n.enabled) && (s == null ? void 0 : s.node), N = m.length === 1;
20095
20095
  let v, A;
20096
20096
  E && N ? (v = r.state.doc.slice(y, g), A = gr.create(r.state.doc, y)) : (A = Qt.create(r.state.doc, y, g), v = A.content());
20097
- const D = ey(o);
20097
+ const D = ty(o);
20098
20098
  m.forEach((k) => {
20099
20099
  const R = Pc(r, k.$from.pos);
20100
20100
  if (!R) return;
20101
- const I = j2(R, o);
20101
+ const I = V2(R, o);
20102
20102
  D && (I.style.margin = "0"), f.append(I);
20103
20103
  }), f.style.position = "absolute", f.style.top = "-10000px", document.body.append(f), e.dataTransfer.clearData();
20104
- const b = J2(x, f.getBoundingClientRect().width);
20104
+ const b = ey(x, f.getBoundingClientRect().width);
20105
20105
  e.dataTransfer.setDragImage(f, b, 0);
20106
20106
  let T = !1;
20107
20107
  const S = () => {
@@ -20125,7 +20125,7 @@ const $a = (e, t) => {
20125
20125
  }
20126
20126
  return r;
20127
20127
  };
20128
- function sy(e, t, n) {
20128
+ function oy(e, t, n) {
20129
20129
  if (!t.docChanged) return e;
20130
20130
  if (n.isChangeOrigin && e.relativeAnchorPos != null) {
20131
20131
  const o = n.getAbsolutePos(e.relativeAnchorPos);
@@ -20145,7 +20145,7 @@ function Ga(e, t, n) {
20145
20145
  for (let o = t; o < n; o += 1) s += e.child(o).nodeSize;
20146
20146
  return s;
20147
20147
  }
20148
- function oy(e) {
20148
+ function ry(e) {
20149
20149
  var t;
20150
20150
  return Es(e) ? {
20151
20151
  anchorPos: e.from,
@@ -20153,7 +20153,7 @@ function oy(e) {
20153
20153
  depth: (t = e.depth) !== null && t !== void 0 ? t : 0
20154
20154
  } : null;
20155
20155
  }
20156
- function ry(e, t, n, s) {
20156
+ function iy(e, t, n, s) {
20157
20157
  const o = e.resolve(t), r = o.node(s);
20158
20158
  let a = o.index(s);
20159
20159
  a >= r.childCount && (a = Math.max(0, r.childCount - n));
@@ -20166,9 +20166,9 @@ function ry(e, t, n, s) {
20166
20166
  count: l
20167
20167
  };
20168
20168
  }
20169
- function iy(e, t, n, s) {
20169
+ function ay(e, t, n, s) {
20170
20170
  try {
20171
- const o = ry(e, t, n, s);
20171
+ const o = iy(e, t, n, s);
20172
20172
  if (!o) return null;
20173
20173
  const r = Qt.create(e, o.anchor, o.head, s);
20174
20174
  return r.ranges.length === n ? r : null;
@@ -20194,14 +20194,14 @@ const co = (e, t) => {
20194
20194
  x = null, E = null;
20195
20195
  }
20196
20196
  function v(I, _) {
20197
- E && (E = sy(E, I, {
20197
+ E && (E = oy(E, I, {
20198
20198
  isChangeOrigin: Ki(I),
20199
20199
  getAbsolutePos: ($) => Ya(_, $)
20200
20200
  }));
20201
20201
  }
20202
20202
  function A(I) {
20203
20203
  if (!E) return null;
20204
- const _ = iy(I.doc, E.anchorPos, E.nodeCount, E.depth);
20204
+ const _ = ay(I.doc, E.anchorPos, E.nodeCount, E.depth);
20205
20205
  return _ ? (N(), I.tr.setSelection(_)) : (E = null, x = null, null);
20206
20206
  }
20207
20207
  function D() {
@@ -20227,10 +20227,10 @@ const co = (e, t) => {
20227
20227
  });
20228
20228
  }
20229
20229
  function S(I) {
20230
- a == null || a(I), ny(I, n, c, {
20230
+ a == null || a(I), sy(I, n, c, {
20231
20231
  node: m,
20232
20232
  pos: p
20233
- }, u), x = oy(n.state.selection), t && (t.dataset.dragging = "true"), setTimeout(() => {
20233
+ }, u), x = ry(n.state.selection), t && (t.dataset.dragging = "true"), setTimeout(() => {
20234
20234
  t && (t.style.pointerEvents = "none");
20235
20235
  }, 0);
20236
20236
  }
@@ -20431,7 +20431,7 @@ os.create({
20431
20431
  }).plugin];
20432
20432
  }
20433
20433
  });
20434
- const ay = (e) => {
20434
+ const ly = (e) => {
20435
20435
  const { className: t = "drag-handle", children: n, editor: s, pluginKey: o = Hc, onNodeChange: r, onElementDragStart: a, onElementDragEnd: l, getReferencedVirtualElement: c, computePositionConfig: u = Fr, nested: d = !1 } = e, h = F(null);
20436
20436
  h.current === null && typeof document < "u" && (h.current = document.createElement("div"));
20437
20437
  const m = {
@@ -20488,7 +20488,7 @@ const ay = (e) => {
20488
20488
  const y = h.current;
20489
20489
  return y ? fn(n, y) : null;
20490
20490
  };
20491
- function ly(e) {
20491
+ function cy(e) {
20492
20492
  const [t, n] = Y(!1), s = F(e), o = F(null), r = O(() => {
20493
20493
  if (!s.current) {
20494
20494
  n(!1);
@@ -20519,8 +20519,8 @@ function ly(e) {
20519
20519
  [t]
20520
20520
  );
20521
20521
  }
20522
- const cy = (e, t) => {
20523
- const { hasAIWriter: n } = ly(e), s = O(() => {
20522
+ const dy = (e, t) => {
20523
+ const { hasAIWriter: n } = cy(e), s = O(() => {
20524
20524
  const l = t();
20525
20525
  if (!l)
20526
20526
  return;
@@ -20643,7 +20643,7 @@ const qc = bt(
20643
20643
  (e, t) => /* @__PURE__ */ i("div", { ref: t, className: "flex items-center", children: e.children })
20644
20644
  );
20645
20645
  qc.displayName = "MenuTrigger";
20646
- const dy = Je.memo(
20646
+ const uy = Je.memo(
20647
20647
  ({ isOpen: e, onOpenChange: t, trigger: n, actions: s }) => /* @__PURE__ */ i(Ym, { onMountAutoFocus: (o) => o.preventDefault(), trapped: !1, children: /* @__PURE__ */ C(is, { open: e, onOpenChange: t, children: [
20648
20648
  /* @__PURE__ */ i(Us, { asChild: !0, children: /* @__PURE__ */ i(qc, { children: n }) }),
20649
20649
  /* @__PURE__ */ i(
@@ -20691,7 +20691,7 @@ const dy = Je.memo(
20691
20691
  }
20692
20692
  )
20693
20693
  ] }) })
20694
- ), Qa = (e) => e instanceof Element && !!e.closest("[data-ddoc-zoom-layer]"), uy = {
20694
+ ), Qa = (e) => e instanceof Element && !!e.closest("[data-ddoc-zoom-layer]"), hy = {
20695
20695
  ...bs,
20696
20696
  getScale: (e) => Qa(e) ? { x: Zo(e), y: Zo(e) } : bs.getScale(e),
20697
20697
  async getElementRects(e) {
@@ -20718,7 +20718,7 @@ const dy = Je.memo(
20718
20718
  position: t = "bottom",
20719
20719
  children: n
20720
20720
  }) => /* @__PURE__ */ i(Xe, { text: e, position: t, asTriggerChild: !0, children: n })
20721
- ), hy = Je.memo(
20721
+ ), my = Je.memo(
20722
20722
  ({ children: e }) => /* @__PURE__ */ i(
20723
20723
  Fo,
20724
20724
  {
@@ -20730,7 +20730,7 @@ const dy = Je.memo(
20730
20730
  children: e
20731
20731
  }
20732
20732
  )
20733
- ), my = Je.memo(
20733
+ ), py = Je.memo(
20734
20734
  ({ children: e }) => /* @__PURE__ */ i(
20735
20735
  Fo,
20736
20736
  {
@@ -20742,7 +20742,7 @@ const dy = Je.memo(
20742
20742
  children: e
20743
20743
  }
20744
20744
  )
20745
- ), py = Je.memo(
20745
+ ), fy = Je.memo(
20746
20746
  ({
20747
20747
  isCollapsed: e,
20748
20748
  children: t
@@ -20754,9 +20754,9 @@ const dy = Je.memo(
20754
20754
  children: t
20755
20755
  }
20756
20756
  )
20757
- ), fy = Je.memo(
20757
+ ), gy = Je.memo(
20758
20758
  ({ children: e }) => /* @__PURE__ */ i(Fo, { text: "Copy link to heading", position: "bottom", children: e })
20759
- ), gy = 24, Za = (e, t) => {
20759
+ ), yy = 24, Za = (e, t) => {
20760
20760
  try {
20761
20761
  const n = e.view.nodeDOM(t), s = (n == null ? void 0 : n.querySelector("[data-node-view-content] > *")) ?? n ?? null;
20762
20762
  return s ? parseFloat(getComputedStyle(s).lineHeight) : NaN;
@@ -20764,19 +20764,19 @@ const dy = Je.memo(
20764
20764
  return NaN;
20765
20765
  }
20766
20766
  }, Ja = (e, t) => {
20767
- const n = gy / t, s = Number.isFinite(e) && e > n ? Math.round((e - n) / 2) : 0;
20767
+ const n = yy / t, s = Number.isFinite(e) && e > n ? Math.round((e - n) / 2) : 0;
20768
20768
  return [
20769
20769
  s ? `translateY(${s}px)` : "",
20770
20770
  t !== 1 ? `scale(${1 / t})` : ""
20771
20771
  ].filter(Boolean).join(" ");
20772
- }, yy = (e, t) => {
20772
+ }, xy = (e, t) => {
20773
20773
  const { doc: n } = e.state;
20774
20774
  if (t < 0 || t > n.content.size) return null;
20775
20775
  const s = n.resolve(t);
20776
20776
  if (s.depth !== 0) return null;
20777
20777
  const o = s.nodeAfter;
20778
20778
  return o ? { editor: e, node: o, pos: t } : null;
20779
- }, xy = (e, t, n, s) => {
20779
+ }, wy = (e, t, n, s) => {
20780
20780
  if (n.childCount > 0 || !s.dataTransfer) return !1;
20781
20781
  const { view: o } = e, r = Qt.create(
20782
20782
  o.state.doc,
@@ -20793,10 +20793,10 @@ const dy = Je.memo(
20793
20793
  const c = document.querySelector(".drag-handle");
20794
20794
  c && (c.style.pointerEvents = "none");
20795
20795
  }, 0), !0;
20796
- }, wy = {
20796
+ }, by = {
20797
20797
  placement: "left-start",
20798
- platform: uy
20799
- }, by = ({
20798
+ platform: hy
20799
+ }, vy = ({
20800
20800
  editor: e,
20801
20801
  runtimeState: t,
20802
20802
  onCopyHeadingLink: n
@@ -20804,9 +20804,9 @@ const dy = Je.memo(
20804
20804
  const [s, o] = Y(null), [r, a] = Y(!1), l = F(null), { scale: c } = ds(), u = F(c);
20805
20805
  u.current = c;
20806
20806
  const d = kt("(max-width: 767px)"), h = O(
20807
- () => s ? yy(e, s.pos) : null,
20807
+ () => s ? xy(e, s.pos) : null,
20808
20808
  [e, s]
20809
- ), m = cy(e, h), p = O(
20809
+ ), m = dy(e, h), p = O(
20810
20810
  ({
20811
20811
  node: S,
20812
20812
  editor: w,
@@ -20833,7 +20833,7 @@ const dy = Je.memo(
20833
20833
  if (!S) return;
20834
20834
  const w = (k) => {
20835
20835
  const R = f.current();
20836
- R && xy(
20836
+ R && wy(
20837
20837
  R.editor,
20838
20838
  R.pos,
20839
20839
  R.node,
@@ -20871,10 +20871,10 @@ const dy = Je.memo(
20871
20871
  "d-block-button color-text-default hover:color-bg-default-hover aspect-square h-5 w-5 min-w-0 shrink-0"
20872
20872
  );
20873
20873
  return /* @__PURE__ */ i(
20874
- ay,
20874
+ ly,
20875
20875
  {
20876
20876
  editor: e,
20877
- computePositionConfig: wy,
20877
+ computePositionConfig: by,
20878
20878
  onNodeChange: p,
20879
20879
  children: /* @__PURE__ */ C(
20880
20880
  "div",
@@ -20892,7 +20892,7 @@ const dy = Je.memo(
20892
20892
  },
20893
20893
  children: [
20894
20894
  g ? /* @__PURE__ */ C(ot, { children: [
20895
- /* @__PURE__ */ i(hy, { children: /* @__PURE__ */ i(
20895
+ /* @__PURE__ */ i(my, { children: /* @__PURE__ */ i(
20896
20896
  Vc,
20897
20897
  {
20898
20898
  onClick: v,
@@ -20900,11 +20900,11 @@ const dy = Je.memo(
20900
20900
  }
20901
20901
  ) }),
20902
20902
  /* @__PURE__ */ i(
20903
- dy,
20903
+ uy,
20904
20904
  {
20905
20905
  isOpen: r,
20906
20906
  onOpenChange: a,
20907
- trigger: /* @__PURE__ */ i(my, { children: /* @__PURE__ */ i(
20907
+ trigger: /* @__PURE__ */ i(py, { children: /* @__PURE__ */ i(
20908
20908
  jc,
20909
20909
  {
20910
20910
  onClick: A,
@@ -20915,7 +20915,7 @@ const dy = Je.memo(
20915
20915
  }
20916
20916
  )
20917
20917
  ] }) : null,
20918
- /* @__PURE__ */ i(py, { isCollapsed: !!(y != null && y.isThisHeadingCollapsed), children: /* @__PURE__ */ i(
20918
+ /* @__PURE__ */ i(fy, { isCollapsed: !!(y != null && y.isThisHeadingCollapsed), children: /* @__PURE__ */ i(
20919
20919
  Wc,
20920
20920
  {
20921
20921
  isCollapsed: !!(y != null && y.isThisHeadingCollapsed),
@@ -20926,7 +20926,7 @@ const dy = Je.memo(
20926
20926
  )
20927
20927
  }
20928
20928
  ) }),
20929
- N ? /* @__PURE__ */ i(fy, { children: /* @__PURE__ */ i(
20929
+ N ? /* @__PURE__ */ i(gy, { children: /* @__PURE__ */ i(
20930
20930
  $c,
20931
20931
  {
20932
20932
  onClick: b,
@@ -20941,7 +20941,7 @@ const dy = Je.memo(
20941
20941
  )
20942
20942
  }
20943
20943
  );
20944
- }, vy = (e) => {
20944
+ }, Cy = (e) => {
20945
20945
  var n;
20946
20946
  const t = e.type.name === "dBlock" ? e.content.firstChild : e;
20947
20947
  if ((t == null ? void 0 : t.type.name) !== "paragraph")
@@ -20954,7 +20954,7 @@ const dy = Je.memo(
20954
20954
  return !0;
20955
20955
  }, Br = (e) => {
20956
20956
  for (let t = 0; t < e.childCount; t += 1)
20957
- if (!vy(e.child(t)))
20957
+ if (!Cy(e.child(t)))
20958
20958
  return !1;
20959
20959
  return !0;
20960
20960
  }, po = (e) => {
@@ -20969,11 +20969,11 @@ const dy = Je.memo(
20969
20969
  node: s,
20970
20970
  pos: o
20971
20971
  };
20972
- }, Cy = (e, t) => !e || e.isDestroyed ? null : Gc(
20972
+ }, ky = (e, t) => !e || e.isDestroyed ? null : Gc(
20973
20973
  e,
20974
20974
  t,
20975
20975
  Br(e.state.doc)
20976
- ), ky = ({
20976
+ ), Sy = ({
20977
20977
  editor: e,
20978
20978
  enableFanficTemplate: t,
20979
20979
  onApplyTabbedTemplate: n,
@@ -21025,7 +21025,7 @@ const dy = Je.memo(
21025
21025
  c.isBlank
21026
21026
  ) : null, p = O(
21027
21027
  (N) => {
21028
- const v = Cy(e, s);
21028
+ const v = ky(e, s);
21029
21029
  if (!v)
21030
21030
  return;
21031
21031
  const A = !!(e != null && e.schema.nodes.dBlock);
@@ -21036,14 +21036,14 @@ const dy = Je.memo(
21036
21036
  },
21037
21037
  [e, s]
21038
21038
  ), f = be(
21039
- () => P2(
21039
+ () => U2(
21040
21040
  p,
21041
21041
  n,
21042
21042
  t
21043
21043
  ),
21044
21044
  [p, t, n]
21045
21045
  ), y = be(
21046
- () => _2(p, t),
21046
+ () => P2(p, t),
21047
21047
  [p, t]
21048
21048
  ), g = O(() => {
21049
21049
  r((N) => (l(N ? 2 : y.length), !N));
@@ -21055,7 +21055,7 @@ const dy = Je.memo(
21055
21055
  "data-template-overlay": "true",
21056
21056
  contentEditable: !1,
21057
21057
  className: "top-[66px] right-20 w-max absolute z-10 ddoc-max-md:right-[unset] ddoc-max-md:left-9",
21058
- children: U2(
21058
+ children: H2(
21059
21059
  f,
21060
21060
  y,
21061
21061
  a,
@@ -21080,7 +21080,7 @@ const dy = Je.memo(
21080
21080
  }) => o ? /* @__PURE__ */ i(ot, { children: e }) : /* @__PURE__ */ C(ot, { children: [
21081
21081
  e,
21082
21082
  t && !t.isDestroyed ? /* @__PURE__ */ i(
21083
- by,
21083
+ vy,
21084
21084
  {
21085
21085
  editor: t,
21086
21086
  runtimeState: s,
@@ -21088,7 +21088,7 @@ const dy = Je.memo(
21088
21088
  }
21089
21089
  ) : null,
21090
21090
  /* @__PURE__ */ i(
21091
- ky,
21091
+ Sy,
21092
21092
  {
21093
21093
  editor: t,
21094
21094
  enableFanficTemplate: n,
@@ -21096,7 +21096,7 @@ const dy = Je.memo(
21096
21096
  onApplyTabbedTemplate: r
21097
21097
  }
21098
21098
  )
21099
- ] }), Sy = ({
21099
+ ] }), Ny = ({
21100
21100
  editor: e,
21101
21101
  viewerMode: t
21102
21102
  }) => {
@@ -21305,14 +21305,14 @@ const dy = Je.memo(
21305
21305
  * This source code is licensed under the ISC license.
21306
21306
  * See the LICENSE file in the root directory of this source tree.
21307
21307
  */
21308
- const Ny = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Xc = (...e) => e.filter((t, n, s) => !!t && t.trim() !== "" && s.indexOf(t) === n).join(" ").trim();
21308
+ const Ty = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Xc = (...e) => e.filter((t, n, s) => !!t && t.trim() !== "" && s.indexOf(t) === n).join(" ").trim();
21309
21309
  /**
21310
21310
  * @license lucide-react v0.475.0 - ISC
21311
21311
  *
21312
21312
  * This source code is licensed under the ISC license.
21313
21313
  * See the LICENSE file in the root directory of this source tree.
21314
21314
  */
21315
- var Ty = {
21315
+ var Ey = {
21316
21316
  xmlns: "http://www.w3.org/2000/svg",
21317
21317
  width: 24,
21318
21318
  height: 24,
@@ -21329,7 +21329,7 @@ var Ty = {
21329
21329
  * This source code is licensed under the ISC license.
21330
21330
  * See the LICENSE file in the root directory of this source tree.
21331
21331
  */
21332
- const Ey = bt(
21332
+ const Ay = bt(
21333
21333
  ({
21334
21334
  color: e = "currentColor",
21335
21335
  size: t = 24,
@@ -21343,7 +21343,7 @@ const Ey = bt(
21343
21343
  "svg",
21344
21344
  {
21345
21345
  ref: c,
21346
- ...Ty,
21346
+ ...Ey,
21347
21347
  width: t,
21348
21348
  height: t,
21349
21349
  stroke: e,
@@ -21363,12 +21363,12 @@ const Ey = bt(
21363
21363
  * This source code is licensed under the ISC license.
21364
21364
  * See the LICENSE file in the root directory of this source tree.
21365
21365
  */
21366
- const Ay = (e, t) => {
21366
+ const Ry = (e, t) => {
21367
21367
  const n = bt(
21368
- ({ className: s, ...o }, r) => kr(Ey, {
21368
+ ({ className: s, ...o }, r) => kr(Ay, {
21369
21369
  ref: r,
21370
21370
  iconNode: t,
21371
- className: Xc(`lucide-${Ny(e)}`, s),
21371
+ className: Xc(`lucide-${Ty(e)}`, s),
21372
21372
  ...o
21373
21373
  })
21374
21374
  );
@@ -21380,7 +21380,7 @@ const Ay = (e, t) => {
21380
21380
  * This source code is licensed under the ISC license.
21381
21381
  * See the LICENSE file in the root directory of this source tree.
21382
21382
  */
21383
- const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRight", Ry), Dy = ({
21383
+ const Iy = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dy = Ry("ChevronRight", Iy), My = ({
21384
21384
  customCSS: e
21385
21385
  }) => {
21386
21386
  const [t, n] = Y(!1), s = e == null ? void 0 : e.trim();
@@ -21394,7 +21394,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21394
21394
  className: "w-full flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium color-text-secondary hover:color-bg-default-hover transition-all",
21395
21395
  children: [
21396
21396
  /* @__PURE__ */ i(
21397
- Iy,
21397
+ Dy,
21398
21398
  {
21399
21399
  size: 12,
21400
21400
  className: `transition-transform ${t ? "rotate-90" : ""}`
@@ -21407,7 +21407,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21407
21407
  ),
21408
21408
  t && /* @__PURE__ */ i("pre", { className: "m-0 px-3 pb-2 text-[11px] leading-relaxed font-mono color-text-secondary whitespace-pre-wrap break-words max-h-40 overflow-auto select-text", children: s })
21409
21409
  ] }) : null;
21410
- }, My = Pl(() => import("./markdown-source-pane-BJbpMXo2.mjs")), Oy = Pl(() => import("./split-view-toolbar-6aBSjsO2.mjs")), Fy = ({
21410
+ }, Oy = Pl(() => import("./markdown-source-pane-BJbpMXo2.mjs")), Fy = Pl(() => import("./split-view-toolbar-6aBSjsO2.mjs")), By = ({
21411
21411
  markdown: e,
21412
21412
  onMarkdownChange: t,
21413
21413
  ipfsImageUploadFn: n,
@@ -21425,20 +21425,20 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21425
21425
  className: "flex-1 min-w-0 h-full flex flex-col color-bg-default rounded border color-border-default overflow-hidden",
21426
21426
  children: [
21427
21427
  /* @__PURE__ */ i(Xi, { fallback: null, children: /* @__PURE__ */ i(
21428
- Oy,
21428
+ Fy,
21429
21429
  {
21430
21430
  view: a,
21431
21431
  ipfsImageUploadFn: n,
21432
21432
  onError: s
21433
21433
  }
21434
21434
  ) }),
21435
- /* @__PURE__ */ i(Dy, { customCSS: o }),
21435
+ /* @__PURE__ */ i(My, { customCSS: o }),
21436
21436
  /* @__PURE__ */ i("div", { className: "flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ i(
21437
21437
  Xi,
21438
21438
  {
21439
21439
  fallback: /* @__PURE__ */ i("div", { className: "px-4 py-3 text-sm color-text-secondary", children: "Loading editor…" }),
21440
21440
  children: /* @__PURE__ */ i(
21441
- My,
21441
+ Oy,
21442
21442
  {
21443
21443
  value: e,
21444
21444
  onChange: t,
@@ -21456,7 +21456,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21456
21456
  }, tl = (e, t) => {
21457
21457
  const n = document.createElement("a");
21458
21458
  n.href = e, n.download = t, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(e);
21459
- }, By = ({
21459
+ }, Ly = ({
21460
21460
  editor: e,
21461
21461
  onExitSplitView: t,
21462
21462
  showTabsPanel: n,
@@ -21525,7 +21525,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21525
21525
  ) })
21526
21526
  ] })
21527
21527
  ] })
21528
- ] }), Ly = /^\s*<style>[\s\S]*?<\/style>\s*\n*/i, _y = ({
21528
+ ] }), _y = /^\s*<style>[\s\S]*?<\/style>\s*\n*/i, Py = ({
21529
21529
  editor: e,
21530
21530
  isSplitView: t,
21531
21531
  isPreviewMode: n,
@@ -21583,7 +21583,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21583
21583
  embedImages: !1
21584
21584
  });
21585
21585
  if (!N && typeof D == "string") {
21586
- const b = xl(D).replace(Ly, "");
21586
+ const b = xl(D).replace(_y, "");
21587
21587
  c(b), h.current = !0;
21588
21588
  }
21589
21589
  } catch (D) {
@@ -21611,7 +21611,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21611
21611
  onMarkdownChange: E,
21612
21612
  rightScrollRef: m
21613
21613
  };
21614
- }, Py = ({
21614
+ }, Uy = ({
21615
21615
  defaultRatio: e = 0.5,
21616
21616
  min: t = 0.2,
21617
21617
  max: n = 0.8
@@ -21637,7 +21637,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21637
21637
  var c;
21638
21638
  return (c = a.current) == null ? void 0 : c.call(a);
21639
21639
  }, []), { containerRef: s, leftRatio: o, onSeparatorMouseDown: l };
21640
- }, Uy = ({
21640
+ }, Hy = ({
21641
21641
  activeTabId: e,
21642
21642
  editor: t,
21643
21643
  flushPendingUpdate: n,
@@ -21662,19 +21662,19 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21662
21662
  s.tabs.forEach((u, d) => {
21663
21663
  const h = a[d];
21664
21664
  l.nameById.set(h, u.name), l.emojiById.set(h, u.emoji);
21665
- }), l.order.toArray().includes(e) || l.order.push([e]), a.length > 1 && zf(o, e, a.slice(1)), l.tabState.set(pm, e);
21665
+ }), l.order.toArray().includes(e) || l.order.push([e]), a.length > 1 && Kf(o, e, a.slice(1)), l.tabState.set(pm, e);
21666
21666
  }), n == null || n(), a;
21667
21667
  }, No = /* @__PURE__ */ new Map(), uo = (e, t) => `${e ?? "ddoc"}::${t}`, Qc = (e) => {
21668
21668
  let t = No.get(e);
21669
21669
  return t || (t = { interacted: !1 }, No.set(e, t)), t;
21670
- }, Hy = (e) => {
21670
+ }, zy = (e) => {
21671
21671
  Qc(e).interacted = !0;
21672
- }, zy = (e, t) => {
21672
+ }, Ky = (e, t) => {
21673
21673
  const n = No.get(e);
21674
21674
  return n != null && n.interacted ? (n.cursor = t, !0) : !1;
21675
- }, Ky = (e, t) => {
21675
+ }, jy = (e, t) => {
21676
21676
  Qc(e).scrollTop = t;
21677
- }, jy = (e) => No.get(e), Vy = (e) => {
21677
+ }, Vy = (e) => No.get(e), Wy = (e) => {
21678
21678
  var r;
21679
21679
  if (e.isDestroyed) return null;
21680
21680
  const { state: t } = e, { anchor: n, head: s } = t.selection, o = Ps.getState(t);
@@ -21704,7 +21704,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21704
21704
  absHead: s,
21705
21705
  docGuid: null
21706
21706
  };
21707
- }, Wy = (e, t) => {
21707
+ }, $y = (e, t) => {
21708
21708
  var r;
21709
21709
  const n = e.state.doc.content.size, s = (a) => Math.max(0, Math.min(a, n)), o = Ps.getState(e.state);
21710
21710
  if (t.docGuid && ((r = o == null ? void 0 : o.doc) != null && r.guid) && t.docGuid !== o.doc.guid)
@@ -21727,7 +21727,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21727
21727
  } catch {
21728
21728
  }
21729
21729
  return { anchor: s(t.absAnchor), head: s(t.absHead) };
21730
- }, $y = ({
21730
+ }, qy = ({
21731
21731
  caretTop: e,
21732
21732
  containerTop: t,
21733
21733
  containerClientHeight: n,
@@ -21735,14 +21735,14 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21735
21735
  }) => Math.max(
21736
21736
  0,
21737
21737
  s + (e - t) - n / 2
21738
- ), qy = '[data-editor-scroll-container="true"]', mr = (e) => {
21738
+ ), Gy = '[data-editor-scroll-container="true"]', mr = (e) => {
21739
21739
  var t, n;
21740
21740
  return ((n = (t = e.view) == null ? void 0 : t.dom) == null ? void 0 : n.getAttribute("data-ddoc-editor-inactive")) === "true";
21741
21741
  }, nl = (e) => {
21742
21742
  var n;
21743
21743
  const t = e && !e.isDestroyed ? (n = e.view) == null ? void 0 : n.dom : null;
21744
- return t ? kn({ targetElement: t, editorRoot: t }) : document.querySelector(qy);
21745
- }, Gy = ({
21744
+ return t ? kn({ targetElement: t, editorRoot: t }) : document.querySelector(Gy);
21745
+ }, Yy = ({
21746
21746
  editor: e,
21747
21747
  activeTabId: t,
21748
21748
  ddocId: n,
@@ -21760,13 +21760,13 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21760
21760
  const d = (p = e.view) == null ? void 0 : p.dom;
21761
21761
  if (!d) return;
21762
21762
  const h = () => {
21763
- e.isDestroyed || mr(e) || Hy(
21763
+ e.isDestroyed || mr(e) || zy(
21764
21764
  uo(c.current, l.current)
21765
21765
  );
21766
21766
  }, m = () => {
21767
21767
  if (e.isDestroyed || mr(e)) return;
21768
- const f = Vy(e);
21769
- f && zy(
21768
+ const f = Wy(e);
21769
+ f && Ky(
21770
21770
  uo(c.current, l.current),
21771
21771
  f
21772
21772
  );
@@ -21780,7 +21780,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21780
21780
  const h = l.current;
21781
21781
  if (!a && e && !e.isDestroyed && h && d !== h) {
21782
21782
  const m = nl(e);
21783
- m && Ky(
21783
+ m && jy(
21784
21784
  uo(c.current, h),
21785
21785
  m.scrollTop
21786
21786
  );
@@ -21797,9 +21797,9 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21797
21797
  return;
21798
21798
  }
21799
21799
  if (mr(e)) return;
21800
- const h = jy(uo(n, t));
21800
+ const h = Vy(uo(n, t));
21801
21801
  if (h != null && h.cursor) {
21802
- const m = Wy(e, h.cursor);
21802
+ const m = $y(e, h.cursor);
21803
21803
  if (m) {
21804
21804
  const { anchor: p, head: f } = m, { doc: y, tr: g } = e.state, x = Rs.between(
21805
21805
  y.resolve(p),
@@ -21810,7 +21810,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21810
21810
  ), r || e.commands.focus(null, { scrollIntoView: !1 }), d)
21811
21811
  try {
21812
21812
  const E = e.view.coordsAtPos(x.head), N = d.getBoundingClientRect();
21813
- d.scrollTop = $y({
21813
+ d.scrollTop = qy({
21814
21814
  caretTop: E.top,
21815
21815
  containerTop: N.top,
21816
21816
  containerClientHeight: d.clientHeight,
@@ -21827,10 +21827,10 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21827
21827
  }
21828
21828
  d && (d.scrollTop = 0);
21829
21829
  }, [t, e]), { switchTab: u };
21830
- }, Yy = 148, sl = (e, t, n) => ({
21831
- shouldHideRight: t + Yy * 2 > e,
21830
+ }, Xy = 148, sl = (e, t, n) => ({
21831
+ shouldHideRight: t + Xy * 2 > e,
21832
21832
  shouldScroll: t > e - n
21833
- }), Xy = ({
21833
+ }), Qy = ({
21834
21834
  canvasRef: e,
21835
21835
  rootRef: t,
21836
21836
  scaledWidth: n,
@@ -21882,7 +21882,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21882
21882
  const f = new ResizeObserver(m);
21883
21883
  return f.observe(p), () => f.disconnect();
21884
21884
  }, [e, m]), c;
21885
- }, Qy = (e, t) => {
21885
+ }, Zy = (e, t) => {
21886
21886
  const n = e.getBoundingClientRect(), s = t.getBoundingClientRect();
21887
21887
  return {
21888
21888
  top: e.scrollTop,
@@ -21890,7 +21890,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21890
21890
  layerTop: s.top - n.top + e.scrollTop,
21891
21891
  layerLeft: s.left - n.left + e.scrollLeft
21892
21892
  };
21893
- }, Zy = ({
21893
+ }, Jy = ({
21894
21894
  wrapperRef: e,
21895
21895
  layerRef: t,
21896
21896
  scrollerRef: n,
@@ -21907,7 +21907,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21907
21907
  }
21908
21908
  const c = r.current;
21909
21909
  r.current = s;
21910
- const u = n.current, d = u && c !== null && c !== s ? Qy(u, l) : null, h = () => {
21910
+ const u = n.current, d = u && c !== null && c !== s ? Zy(u, l) : null, h = () => {
21911
21911
  a.style.height = `${l.offsetHeight * s}px`;
21912
21912
  };
21913
21913
  if (h(), u && d && c !== null && (u.scrollTop = Wi(
@@ -21925,7 +21925,7 @@ const Ry = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Iy = Ay("ChevronRi
21925
21925
  return m.observe(l), () => m.disconnect();
21926
21926
  }, [e, t, n, s, o]);
21927
21927
  };
21928
- function Jy(e, {
21928
+ function ex(e, {
21929
21929
  pageSetup: t,
21930
21930
  orientation: n,
21931
21931
  zoom: s,
@@ -21963,10 +21963,10 @@ function Jy(e, {
21963
21963
  };
21964
21964
  }, [e]);
21965
21965
  }
21966
- const ex = (e, t) => {
21966
+ const tx = (e, t) => {
21967
21967
  const n = t ? e.metaKey : e.ctrlKey, s = t ? e.ctrlKey : e.metaKey;
21968
21968
  return !n || s || e.shiftKey || e.altKey ? null : e.key === "=" ? 1 : e.key === "-" ? -1 : null;
21969
- }, tx = ({
21969
+ }, nx = ({
21970
21970
  enabled: e,
21971
21971
  onStep: t
21972
21972
  }) => {
@@ -21974,20 +21974,20 @@ const ex = (e, t) => {
21974
21974
  n.current = t, K(() => {
21975
21975
  if (!e) return;
21976
21976
  const s = /Mac|iPhone|iPad/.test(navigator.platform), o = (r) => {
21977
- const a = ex(r, s);
21977
+ const a = tx(r, s);
21978
21978
  a !== null && (r.preventDefault(), n.current(a));
21979
21979
  };
21980
21980
  return window.addEventListener("keydown", o, !0), () => window.removeEventListener("keydown", o, !0);
21981
21981
  }, [e]);
21982
- }, nx = 6, ol = (e, t) => Math.min(t, Math.max(0, e));
21983
- function sx(e) {
21982
+ }, sx = 6, ol = (e, t) => Math.min(t, Math.max(0, e));
21983
+ function ox(e) {
21984
21984
  const t = e.cycle * e.scale, n = e.scrollTop - 2 * e.viewportHeight - e.originTop, s = e.scrollTop + 3 * e.viewportHeight - e.originTop, o = e.pageCount - 1;
21985
21985
  return [
21986
21986
  ol(Math.floor(n / t), o),
21987
21987
  ol(Math.floor(s / t), o)
21988
21988
  ];
21989
21989
  }
21990
- function ox(e, t, n) {
21990
+ function rx(e, t, n) {
21991
21991
  var o;
21992
21992
  const s = [];
21993
21993
  for (let r = e; r < t; r++)
@@ -22002,7 +22002,7 @@ const rl = (e, t, n) => {
22002
22002
  a.style.backgroundSize = `${t.clientWidth / n}px ${t.clientHeight / n}px`, a.style.backgroundPosition = `${(o - l.left) / n}px ${(r - l.top) / n}px`;
22003
22003
  });
22004
22004
  }, il = () => () => {
22005
- }, rx = () => {
22005
+ }, ix = () => {
22006
22006
  if (typeof document > "u") return null;
22007
22007
  const e = document.createElement("div");
22008
22008
  return e.className = "ddoc-page-masks", e.setAttribute("aria-hidden", "true"), e;
@@ -22012,7 +22012,7 @@ const rl = (e, t, n) => {
22012
22012
  n += o.offsetTop, s += o.offsetLeft, o = o.offsetParent;
22013
22013
  return { top: n, left: s };
22014
22014
  };
22015
- function ix({
22015
+ function ax({
22016
22016
  editor: e,
22017
22017
  grid: t,
22018
22018
  canvasStyle: n,
@@ -22025,7 +22025,7 @@ function ix({
22025
22025
  }), a = Qi(
22026
22026
  o ? o.subscribe : il,
22027
22027
  () => (o == null ? void 0 : o.get().pageStarts.map((j) => j.kind === "continued" ? 1 : 0).join("")) ?? ""
22028
- ), { scale: l } = ds(), c = F(null), [u] = Y(rx), [d, h] = Y(0), [m, p] = Y(null), [f, y] = Y(0), [g, x] = Y(0), [E, N] = Y(0), [v, A] = Y(-1), D = t.height + $i, b = !!s, T = s ? JSON.stringify(s) : "", S = !!e && !!r && !!m;
22028
+ ), { scale: l } = ds(), c = F(null), [u] = Y(ix), [d, h] = Y(0), [m, p] = Y(null), [f, y] = Y(0), [g, x] = Y(0), [E, N] = Y(0), [v, A] = Y(-1), D = t.height + $i, b = !!s, T = s ? JSON.stringify(s) : "", S = !!e && !!r && !!m;
22029
22029
  dt(() => {
22030
22030
  u && (!S || !m ? u.remove() : u.parentNode !== m && m.appendChild(u));
22031
22031
  }), dt(() => () => u == null ? void 0 : u.remove(), [u]);
@@ -22045,7 +22045,7 @@ function ix({
22045
22045
  N(0), A(r - 1);
22046
22046
  return;
22047
22047
  }
22048
- const [ie, P] = sx({
22048
+ const [ie, P] = ox({
22049
22049
  scrollTop: se.scrollTop,
22050
22050
  viewportHeight: se.clientHeight,
22051
22051
  originTop: j.getBoundingClientRect().top - se.getBoundingClientRect().top + se.scrollTop + de * l,
@@ -22111,7 +22111,7 @@ function ix({
22111
22111
  {
22112
22112
  className: "ddoc-page-number color-text-secondary",
22113
22113
  style: {
22114
- left: `calc(100% + ${nx / l}px)`,
22114
+ left: `calc(100% + ${sx / l}px)`,
22115
22115
  transform: l === 1 ? void 0 : `scale(${1 / l})`
22116
22116
  },
22117
22117
  children: j + 1
@@ -22121,7 +22121,7 @@ function ix({
22121
22121
  j
22122
22122
  )
22123
22123
  );
22124
- const $ = (o == null ? void 0 : o.get().pageStarts) ?? [], H = { backgroundColor: R, height: `${Ph}px` }, X = ox(E, k, $).map((j) => /* @__PURE__ */ C(
22124
+ const $ = (o == null ? void 0 : o.get().pageStarts) ?? [], H = { backgroundColor: R, height: `${Ph}px` }, X = rx(E, k, $).map((j) => /* @__PURE__ */ C(
22125
22125
  "div",
22126
22126
  {
22127
22127
  className: "ddoc-page-mask",
@@ -22150,7 +22150,7 @@ function ix({
22150
22150
  S && u && fn(X, u)
22151
22151
  ] });
22152
22152
  }
22153
- const ax = () => {
22153
+ const lx = () => {
22154
22154
  let e = null;
22155
22155
  const t = /* @__PURE__ */ new Set();
22156
22156
  return {
@@ -22166,7 +22166,7 @@ const ax = () => {
22166
22166
  };
22167
22167
  };
22168
22168
  let ho = null;
22169
- const lx = () => {
22169
+ const cx = () => {
22170
22170
  var r;
22171
22171
  if (ho !== null) return ho;
22172
22172
  if (typeof document > "u" || typeof CSS > "u" || !((r = CSS.supports) != null && r.call(CSS, "container-type: inline-size")))
@@ -22177,7 +22177,7 @@ const lx = () => {
22177
22177
  t.style.cssText = "position:fixed;left:0;top:0;width:1px;height:1px", e.appendChild(t), document.body.appendChild(e);
22178
22178
  const n = e.getBoundingClientRect(), s = t.getBoundingClientRect(), o = Math.abs(s.left - n.left) > 1 || Math.abs(s.top - n.top) > 1;
22179
22179
  return e.remove(), ho = o;
22180
- }, cx = ({
22180
+ }, dx = ({
22181
22181
  editor: e,
22182
22182
  renderNavbar: t,
22183
22183
  container: n,
@@ -22197,7 +22197,7 @@ const lx = () => {
22197
22197
  children: o
22198
22198
  }
22199
22199
  );
22200
- }, pr = (e) => !!(e != null && e.enabled && (e.connection.livePresence ?? !0)), cw = bt(
22200
+ }, pr = (e) => !!(e != null && e.enabled && (e.connection.livePresence ?? !0)), dw = bt(
22201
22201
  ({
22202
22202
  isPreviewMode: e = !1,
22203
22203
  viewerMode: t,
@@ -22347,7 +22347,7 @@ const lx = () => {
22347
22347
  ), qe = be(
22348
22348
  () => rc(Gt, En),
22349
22349
  [Gt, En]
22350
- ), { isFocusMode: Ie, toggleFocusMode: Dt } = N2({
22350
+ ), { isFocusMode: Ie, toggleFocusMode: Dt } = T2({
22351
22351
  isFocusMode: ke,
22352
22352
  onFocusModeChange: ae,
22353
22353
  onFocusMode: (J) => {
@@ -22385,10 +22385,10 @@ const lx = () => {
22385
22385
  })(), $s = () => Dn.canvas, si = () => Dn.background, ed = F(null), oi = F(null), ri = F(null), Bo = F(null), [ii, td] = Y(
22386
22386
  null
22387
22387
  ), [nd, sd] = Y(null), Lo = F(null), _o = F(null);
22388
- _o.current || (_o.current = ax());
22388
+ _o.current || (_o.current = lx());
22389
22389
  const Mn = _o.current, [ai, od] = Y(!1);
22390
22390
  dt(() => {
22391
- od(lx());
22391
+ od(cx());
22392
22392
  }, []);
22393
22393
  const { isBelow1150px: li, isBelow1280px: ci, isNativeMobile: Yn } = zt(Mn), [di, Po] = Y(!1), ui = F(null), rd = (_ == null ? void 0 : _.slice(0, 4)) || [], hi = _ ? Math.max(0, _.length - 4) : 0;
22394
22394
  Ks(ui, () => {
@@ -22489,7 +22489,7 @@ const lx = () => {
22489
22489
  [Ot, bn]
22490
22490
  ), bd = O(
22491
22491
  (J) => {
22492
- !ue || ue.isDestroyed || !Ot || Uy({
22492
+ !ue || ue.isDestroyed || !Ot || Hy({
22493
22493
  activeTabId: Ot,
22494
22494
  editor: ue,
22495
22495
  flushPendingUpdate: Ci,
@@ -22498,7 +22498,7 @@ const lx = () => {
22498
22498
  });
22499
22499
  },
22500
22500
  [Ot, ue, Ci, mn]
22501
- ), { switchTab: zo } = Gy({
22501
+ ), { switchTab: zo } = Yy({
22502
22502
  editor: ue,
22503
22503
  activeTabId: Ot,
22504
22504
  ddocId: de,
@@ -22520,11 +22520,11 @@ const lx = () => {
22520
22520
  containerRef: Cd,
22521
22521
  leftRatio: Ko,
22522
22522
  onSeparatorMouseDown: kd
22523
- } = Py(), [ki, Sd] = Y(!1), {
22523
+ } = Uy(), [ki, Sd] = Y(!1), {
22524
22524
  markdown: Nd,
22525
22525
  onMarkdownChange: Td,
22526
22526
  rightScrollRef: Ed
22527
- } = _y({
22527
+ } = Py({
22528
22528
  editor: ue,
22529
22529
  isSplitView: Ue,
22530
22530
  isPreviewMode: e,
@@ -22685,7 +22685,7 @@ const lx = () => {
22685
22685
  return J[Ve] = (J[Ve] || 0) + 1, J;
22686
22686
  },
22687
22687
  {}
22688
- ), [tn]), Dd = pg(bi), jo = !!Re || !!$t, Ei = Dd && !jo, Zs = (we == null ? void 0 : we.orientation) === "landscape", Md = kt(
22688
+ ), [tn]), Dd = fg(bi), jo = !!Re || !!$t, Ei = Dd && !jo, Zs = (we == null ? void 0 : we.orientation) === "landscape", Md = kt(
22689
22689
  "(min-width: 1024px)",
22690
22690
  Mn
22691
22691
  ), ln = we == null ? void 0 : we.pageSetup, Ft = Hh({
@@ -22711,7 +22711,7 @@ const lx = () => {
22711
22711
  isCommentColumnVisible: Ei,
22712
22712
  isLandscape: Zs,
22713
22713
  isPagesMode: Ft
22714
- }), { shouldHideRight: Ri, shouldScroll: Bd, fitScale: Wo } = Xy({
22714
+ }), { shouldHideRight: Ri, shouldScroll: Bd, fitScale: Wo } = Qy({
22715
22715
  canvasRef: Bo,
22716
22716
  rootRef: ri,
22717
22717
  scaledWidth: Js * (xs ? Gi(Qn, 1) : 1),
@@ -22721,7 +22721,7 @@ const lx = () => {
22721
22721
  fitReservedWidth: Fd,
22722
22722
  isFit: Vo
22723
22723
  }), On = xs ? Gi(Qn, Wo) : 1;
22724
- tx({
22724
+ nx({
22725
22725
  enabled: xs && !Te && Gh(q, ie, se),
22726
22726
  onStep: (J) => {
22727
22727
  const Ce = Yh(Qn, J, Wo);
@@ -22735,7 +22735,7 @@ const lx = () => {
22735
22735
  () => Zn ? new Kh(Zn, qo) : void 0,
22736
22736
  [Zn, qo]
22737
22737
  );
22738
- Jy(ue, {
22738
+ ex(ue, {
22739
22739
  pageSetup: Ld,
22740
22740
  orientation: qo,
22741
22741
  zoom: On,
@@ -22747,7 +22747,7 @@ const lx = () => {
22747
22747
  const J = $s();
22748
22748
  return Ft && J ? { ...J, backgroundColor: void 0 } : J;
22749
22749
  })(), Di = Ue ? oi : Bo;
22750
- Zy({
22750
+ Jy({
22751
22751
  wrapperRef: Lo,
22752
22752
  layerRef: Xn,
22753
22753
  scrollerRef: Di,
@@ -22768,7 +22768,7 @@ const lx = () => {
22768
22768
  },
22769
22769
  []
22770
22770
  ), Hd = (J) => {
22771
- !Ie || !ue || J.button !== 0 || E2(
22771
+ !Ie || !ue || J.button !== 0 || A2(
22772
22772
  J.target,
22773
22773
  to.current
22774
22774
  ) && (J.preventDefault(), ue.commands.focus("end", { scrollIntoView: !1 }));
@@ -22860,7 +22860,7 @@ const lx = () => {
22860
22860
  }
22861
22861
  ) : null, jd = () => /* @__PURE__ */ i(Hs, { children: /* @__PURE__ */ C(ot, { children: [
22862
22862
  (e || Ue) && ue && /* @__PURE__ */ i(
22863
- S2,
22863
+ N2,
22864
22864
  {
22865
22865
  editor: ue,
22866
22866
  ydoc: mn,
@@ -22885,7 +22885,7 @@ const lx = () => {
22885
22885
  ),
22886
22886
  Te && ue && // Viewport-level overlay: its width checks stay on the window.
22887
22887
  /* @__PURE__ */ i(qi.Provider, { value: null, children: /* @__PURE__ */ i(
22888
- W0,
22888
+ $0,
22889
22889
  {
22890
22890
  editor: ue,
22891
22891
  onClose: Rd,
@@ -23082,7 +23082,7 @@ const lx = () => {
23082
23082
  },
23083
23083
  children: [
23084
23084
  Ft && eo && /* @__PURE__ */ i(
23085
- ix,
23085
+ ax,
23086
23086
  {
23087
23087
  editor: ue,
23088
23088
  grid: eo,
@@ -23117,8 +23117,8 @@ const lx = () => {
23117
23117
  isCollabDocOwner: s != null && s.enabled ? s.connection.isOwner : !0
23118
23118
  }
23119
23119
  ),
23120
- /* @__PURE__ */ i(v2, { editor: ue }),
23121
- /* @__PURE__ */ i(k2, { editor: ue })
23120
+ /* @__PURE__ */ i(C2, { editor: ue }),
23121
+ /* @__PURE__ */ i(S2, { editor: ue })
23122
23122
  ] }),
23123
23123
  ue && /* @__PURE__ */ i(
23124
23124
  Up,
@@ -23306,7 +23306,7 @@ const lx = () => {
23306
23306
  jo ? "w-0 overflow-hidden" : "overflow-visible"
23307
23307
  ),
23308
23308
  children: /* @__PURE__ */ i(
23309
- Gg,
23309
+ Yg,
23310
23310
  {
23311
23311
  editor: ue,
23312
23312
  editorWrapperRef: Lo,
@@ -23361,7 +23361,7 @@ const lx = () => {
23361
23361
  }
23362
23362
  ),
23363
23363
  /* @__PURE__ */ i("div", { children: ue && ci && !Ie && /* @__PURE__ */ i(
23364
- fg,
23364
+ gg,
23365
23365
  {
23366
23366
  editor: ue,
23367
23367
  activeCommentId: Xs,
@@ -23444,7 +23444,7 @@ const lx = () => {
23444
23444
  initialCommentAnchors: dn,
23445
23445
  children: [
23446
23446
  /* @__PURE__ */ i(
23447
- cx,
23447
+ dx,
23448
23448
  {
23449
23449
  editor: ue ?? null,
23450
23450
  renderNavbar: a,
@@ -23455,7 +23455,7 @@ const lx = () => {
23455
23455
  !Ue && zd,
23456
23456
  Kd,
23457
23457
  Ie && /* @__PURE__ */ i(
23458
- A2,
23458
+ R2,
23459
23459
  {
23460
23460
  dropdownOpen: id,
23461
23461
  setDropdownOpen: ad,
@@ -23490,9 +23490,9 @@ const lx = () => {
23490
23490
  Te && "ddoc-drawer-anchor--presenting"
23491
23491
  ),
23492
23492
  children: [
23493
- /* @__PURE__ */ i(Sy, { editor: ue, viewerMode: t }),
23493
+ /* @__PURE__ */ i(Ny, { editor: ue, viewerMode: t }),
23494
23494
  /* @__PURE__ */ i("div", { className: "ddoc-drawer-clip", children: ue && /* @__PURE__ */ i(
23495
- mg,
23495
+ pg,
23496
23496
  {
23497
23497
  isOpen: Re,
23498
23498
  onClose: () => xe(!1),
@@ -23518,7 +23518,7 @@ const lx = () => {
23518
23518
  ),
23519
23519
  children: [
23520
23520
  ue && Ue && /* @__PURE__ */ i(
23521
- Fy,
23521
+ By,
23522
23522
  {
23523
23523
  markdown: Nd,
23524
23524
  onMarkdownChange: Td,
@@ -23550,7 +23550,7 @@ const lx = () => {
23550
23550
  ),
23551
23551
  children: [
23552
23552
  ue && Ue && /* @__PURE__ */ i(
23553
- By,
23553
+ Ly,
23554
23554
  {
23555
23555
  editor: ue,
23556
23556
  onExitSplitView: () => Oe == null ? void 0 : Oe(!1),
@@ -23650,7 +23650,7 @@ const lx = () => {
23650
23650
  }
23651
23651
  );
23652
23652
  }
23653
- ), dx = bt(
23653
+ ), ux = bt(
23654
23654
  ({
23655
23655
  isPreviewMode: e = !1,
23656
23656
  initialContent: t,
@@ -23910,19 +23910,19 @@ const lx = () => {
23910
23910
  )
23911
23911
  ] });
23912
23912
  }
23913
- ), dw = bt(
23913
+ ), uw = bt(
23914
23914
  (e, t) => {
23915
23915
  var r, a;
23916
23916
  const n = !!((r = e.versionHistoryState) != null && r.enabled), s = ((a = e.versionHistoryState) == null ? void 0 : a.versionId) || "default", o = n ? s : "default";
23917
- return /* @__PURE__ */ i(dx, { ...e, ref: t }, o);
23917
+ return /* @__PURE__ */ i(ux, { ...e, ref: t }, o);
23918
23918
  }
23919
- ), ux = [
23919
+ ), hx = [
23920
23920
  "pdf",
23921
23921
  "md",
23922
23922
  "html",
23923
23923
  "txt",
23924
23924
  "odt"
23925
- ], hx = (e) => e !== void 0 && ux.includes(e), uw = (e) => {
23925
+ ], mx = (e) => e !== void 0 && hx.includes(e), hw = (e) => {
23926
23926
  const t = F(null), n = F(!1), [s, o] = Y(null), [r, a] = Y(!1), l = Xh(e), { getEditor: c, setContent: u } = l, d = O(
23927
23927
  (S, w) => {
23928
23928
  S && !S.isDestroyed && S.destroy(), w && !w.isDestroyed && w.destroy();
@@ -24114,7 +24114,7 @@ const lx = () => {
24114
24114
  tabs: _,
24115
24115
  activeTabId: H,
24116
24116
  exportName: X,
24117
- initialFormat: hx(S.initialFormat) ? S.initialFormat : "pdf",
24117
+ initialFormat: mx(S.initialFormat) ? S.initialFormat : "pdf",
24118
24118
  pageSetup: S.pageSetup,
24119
24119
  orientation: S.orientation
24120
24120
  };
@@ -24177,18 +24177,18 @@ const lx = () => {
24177
24177
  exportModalProps: T
24178
24178
  };
24179
24179
  }, ni = { type: "doc", content: [] };
24180
- function mx(e) {
24180
+ function px(e) {
24181
24181
  return e && typeof e == "object" && e.type === "doc" && Array.isArray(e.content) ? e : ni;
24182
24182
  }
24183
24183
  function fr(e, t) {
24184
24184
  try {
24185
24185
  const n = jp(e, t);
24186
- return mx(n);
24186
+ return px(n);
24187
24187
  } catch {
24188
24188
  return ni;
24189
24189
  }
24190
24190
  }
24191
- function hw(e) {
24191
+ function mw(e) {
24192
24192
  var n;
24193
24193
  const t = new Ge.Doc();
24194
24194
  try {
@@ -24231,7 +24231,7 @@ function hw(e) {
24231
24231
  t.isDestroyed || t.destroy();
24232
24232
  }
24233
24233
  }
24234
- const mw = (e, t, n = "ecies") => _t.encryptData(lt(e), t, n), pw = (e, t) => _t.decryptData(lt(e), t);
24234
+ const pw = (e, t, n = "ecies") => _t.encryptData(lt(e), t, n), fw = (e, t) => _t.decryptData(lt(e), t);
24235
24235
  function Zc(e, t, n, s) {
24236
24236
  return {
24237
24237
  wsUrl: e.wsUrl,
@@ -24279,7 +24279,7 @@ function Jc(e) {
24279
24279
  });
24280
24280
  });
24281
24281
  }
24282
- async function fw(e) {
24282
+ async function gw(e) {
24283
24283
  const t = new ti(
24284
24284
  Zc(e.ownerAuth, e.roomKey, e.ddocId, !0)
24285
24285
  );
@@ -24306,7 +24306,7 @@ async function fw(e) {
24306
24306
  t.disconnect();
24307
24307
  }
24308
24308
  }
24309
- async function gw(e) {
24309
+ async function yw(e) {
24310
24310
  const t = new ti(
24311
24311
  Zc(
24312
24312
  e.ownerAuth,
@@ -24329,25 +24329,25 @@ async function gw(e) {
24329
24329
  }
24330
24330
  }
24331
24331
  export {
24332
- cw as DdocEditor,
24332
+ dw as DdocEditor,
24333
24333
  Hp as DdocExportModal,
24334
24334
  kl as Editor,
24335
- B2 as FANFIC_TEMPLATE,
24336
- dw as PreviewDdocEditor,
24337
- Jf as WIRE_TAG,
24338
- hw as buildVersionDiffSnapshot,
24339
- pw as decryptForRoomKey,
24340
- mw as encryptForRoomKey,
24341
- fw as fetchSessionState,
24335
+ L2 as FANFIC_TEMPLATE,
24336
+ uw as PreviewDdocEditor,
24337
+ e0 as WIRE_TAG,
24338
+ mw as buildVersionDiffSnapshot,
24339
+ fw as decryptForRoomKey,
24340
+ pw as encryptForRoomKey,
24341
+ gw as fetchSessionState,
24342
24342
  Hn as handleContentPrint,
24343
24343
  Rr as isXChaChaCipher,
24344
24344
  fm as mergeTabAwareYjsUpdates,
24345
24345
  rc as resolveImageFetchFn,
24346
24346
  oc as resolveImageUploadFn,
24347
24347
  Uh as sanitizeCustomCss,
24348
- gw as seedSession,
24349
- ww as useEditorCommands,
24350
- uw as useExportHeadlessEditorContent,
24348
+ yw as seedSession,
24349
+ bw as useEditorCommands,
24350
+ hw as useExportHeadlessEditorContent,
24351
24351
  Xh as useHeadlessEditor,
24352
- bw as validateCustomCss
24352
+ vw as validateCustomCss
24353
24353
  };