@fileverse-dev/ddoc 7.1.6-pages.1 → 7.1.6-pages.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
@@ -8,7 +8,7 @@ import { flip as yl, shift as xl, offset as wl, arrow as bl, size as Cl, autoPla
8
8
  import Ze, { useRef as F, useEffect as j, useState as Y, useCallback as M, createContext as Ah, useContext as Rh, useMemo as ve, forwardRef as bt, useReducer as Ih, useLayoutEffect as yt, memo as Ro, createElement as vr, lazy as Nl, Suspense as Vi, useSyncExternalStore as Wi, useImperativeHandle as Tl } from "react";
9
9
  import { createPortal as Tn } from "react-dom";
10
10
  import ye from "classnames";
11
- import { DynamicDropdown as vt, LucideIcon as he, Dialog as Hr, DialogContent as zr, cn as ae, DialogHeader as Kr, DialogTitle as jr, DialogFooter as Vr, DialogClose as go, Button as Ne, Tooltip as Ge, IconButton as be, Skeleton as yo, Avatar as Jt, PopoverClose as Io, TextAreaFieldV2 as Nn, DynamicModal as Wr, Select as Rs, SelectTrigger as Is, SelectValue as Ds, SelectContent as Ms, SelectItem as Fs, DropdownMenu as Un, DropdownMenuTrigger as Hn, DropdownMenuContent as zn, DropdownMenuSub as $i, DropdownMenuSubTrigger as qi, DropdownMenuSubContent as Gi, DropdownMenuItem as Lt, useTheme as Dh, Popover as ls, PopoverTrigger as _s, PopoverContent as cs, SelectGroup as Mh, Checkbox as Fh, toast as xo, Drawer as Bh, DrawerTrigger as Oh, TextField as Qt, AnimatedLoader as Lh, Label as po, DynamicDropdownV2 as El, DynamicDrawerV2 as _h, BottomDrawer as Ph, ButtonGroup as Uh, Divider as Al, UltimateIcons as Hh, PopoverAnchor as zh, Tag as wo, TagInput as Rl } from "@fileverse/ui";
11
+ import { DynamicDropdown as vt, LucideIcon as he, Dialog as Hr, DialogContent as zr, cn as ae, DialogHeader as Kr, DialogTitle as jr, DialogFooter as Vr, DialogClose as go, Button as Ne, Tooltip as Ge, IconButton as be, Skeleton as yo, Avatar as Jt, PopoverClose as Io, TextAreaFieldV2 as Nn, DynamicModal as Wr, Select as Rs, SelectTrigger as Is, SelectValue as Ds, SelectContent as Ms, SelectItem as Fs, DropdownMenu as Un, DropdownMenuTrigger as Hn, DropdownMenuContent as zn, DropdownMenuSub as $i, DropdownMenuSubTrigger as qi, DropdownMenuSubContent as Gi, DropdownMenuItem as _t, useTheme as Dh, Popover as ls, PopoverTrigger as _s, PopoverContent as cs, SelectGroup as Mh, Checkbox as Fh, toast as xo, Drawer as Bh, DrawerTrigger as Oh, TextField as Qt, AnimatedLoader as Lh, Label as po, DynamicDropdownV2 as El, DynamicDrawerV2 as _h, BottomDrawer as Ph, ButtonGroup as Uh, Divider as Al, UltimateIcons as Hh, PopoverAnchor as zh, Tag as wo, TagInput as Rl } from "@fileverse/ui";
12
12
  import { create as Kh } from "zustand";
13
13
  import jh from "react-uuid";
14
14
  import { g as Cs, a as kt, b as ds, c as ns, d as bo, D as tt, e as Yi, M as Co, f as $r, s as Xi, L as Vh, h as vo, A as Wh, m as $h } from "./tab-utils-Cvs3qmhi.mjs";
@@ -25,9 +25,9 @@ import "lib0/environment";
25
25
  import "lib0/dom";
26
26
  import "lib0/eventloop";
27
27
  import "lib0/map";
28
- import { toUint8Array as at, fromUint8Array as _t } from "js-base64";
28
+ import { toUint8Array as at, fromUint8Array as Pt } from "js-base64";
29
29
  import { Ollama as Yh } from "ollama/browser";
30
- import { AnimatePresence as Ps, motion as Pt, MotionConfig as Xh } from "framer-motion";
30
+ import { AnimatePresence as Ps, motion as Ut, MotionConfig as Xh } from "framer-motion";
31
31
  import qr from "markdown-it";
32
32
  import { generateRandomBytes as kr } from "@fileverse/crypto/utils";
33
33
  import { IndexeddbPersistence as Qh } from "y-indexeddb";
@@ -573,7 +573,7 @@ const Mm = ({ editor: e, elementRef: t }) => {
573
573
  },
574
574
  "NodeSelector"
575
575
  );
576
- }, Ut = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M0%2012C0%205.37258%205.37258%200%2012%200C18.6274%200%2024%205.37258%2024%2012C24%2018.6274%2018.6274%2024%2012%2024C5.37258%2024%200%2018.6274%200%2012Z'%20fill='url(%23pattern0_2594_44493)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_2594_44493'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_2594_44493'%20transform='translate(0%20-0.0714286)%20scale(0.0102041)'/%3e%3c/pattern%3e%3cimage%20id='image0_2594_44493'%20width='98'%20height='112'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABwCAYAAADlu6WeAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABJOSURBVHgB7Z0LeFXVlcf/+9xcQgCBovazWhVRrFP5KFrbiuUhmhBEBPohtGodwVpbdfCBUkAeOSHhpShaqq2vGSxYHcXailISQgIKfTjWMs44MrU6tIOOjxFQECXJPbv/dU4SktzXed3kXMLv+3I53LvPueeetffaa6+19t4K+YbWCotqj0fCmAjdkIA5+mct75fX3s2jdeh3cBtuHHsQeYSBfMKsOw5mzU1oRA104ieA+mLLZ1OeMiiMkVD6OewurIRZfTzyCIV8oGx9bxjdh/LhL+Itnw37vtVOoOGrMMfsbim3oPZiGNYTPOrBv5cQ01djfsnryAOi3SKufTmOhVvOguq2Atr6FR/+V2ELQVuAdV8bIQh7Pqvh6yNOGZyLhHoR5TXfg2lGvuVH9wYXv3AsTth7G6zGZ/m/q/nXvdWn/wYUrEo6ZyX7BR1bDo3tTe8czeMHgWFPY+66ExBhoqeazLoCWIlJVCsV0GpgcgH1CWv6SFRc8Me011hYOxKW9TREEIfYxVY0H9i7FuaU/YgY0WoRFdUD2dmu5V2tSS0EQT+cUQiCpf7A1/vbvcuO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qI6Z+xCPWs1rZqD/4MHJKd3lszb2QZHtUmk/Kt/P81YzfLDQXkMpgkR7apVd82Pir1qOlskz1nAUFf4gpYoqoimsUdLqHUlwqGHrmoz9jTOjKgQhfyaQOL4nWctiAGRknsBEBupfPPS5TCnu93rT5/LL3mY/QEusYL0ssYCIE+0W0RqzeAMHgBPsrRFkmm0Bytt8ro6diWYhSQvSCfq0tq3KByEI+TelyjFzGQk0vo3XPhxvr7MqmDX3SNYa1RCDUt125Nta5X8H3LvgGvQafyIAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", us = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.76891%200.220314C7.29839%20-0.0734379%206.70161%20-0.0734378%206.23109%200.220314L4.81636%201.10354C4.68024%201.18851%204.53098%201.25034%204.37464%201.2865L2.74974%201.66233C2.20932%201.78733%201.78733%202.20932%201.66233%202.74974L1.2865%204.37464C1.25034%204.53098%201.18851%204.68024%201.10354%204.81636L0.220314%206.23109C-0.0734379%206.70161%20-0.0734378%207.29839%200.220314%207.76891L1.10354%209.18364C1.18851%209.31976%201.25034%209.46902%201.2865%209.62537L1.66233%2011.2503C1.78733%2011.7907%202.20932%2012.2127%202.74974%2012.3377L4.37464%2012.7135C4.53098%2012.7497%204.68024%2012.8115%204.81636%2012.8965L6.23109%2013.7797C6.70161%2014.0734%207.29839%2014.0734%207.76891%2013.7797L9.18364%2012.8965C9.31976%2012.8115%209.46902%2012.7497%209.62537%2012.7135L11.2503%2012.3377C11.7907%2012.2127%2012.2127%2011.7907%2012.3377%2011.2503L12.7135%209.62536C12.7497%209.46902%2012.8115%209.31976%2012.8965%209.18364L13.7797%207.76891C14.0734%207.29839%2014.0734%206.70161%2013.7797%206.23109L12.8965%204.81636C12.8115%204.68024%2012.7497%204.53098%2012.7135%204.37464L12.3377%202.74974C12.2127%202.20932%2011.7907%201.78733%2011.2503%201.66233L9.62537%201.2865C9.46902%201.25034%209.31976%201.18851%209.18364%201.10354L7.76891%200.220314ZM9.45472%204.37291C9.70279%204.12484%2010.105%204.12484%2010.3531%204.37291C10.6011%204.62098%2010.6011%205.02318%2010.3531%205.27126L6.36021%209.2641C6.11214%209.51218%205.70994%209.51218%205.46187%209.2641L3.64694%207.44917C3.39887%207.2011%203.39887%206.7989%203.64694%206.55083C3.89501%206.30276%204.29721%206.30276%204.54528%206.55083L5.91104%207.91659L9.45472%204.37291Z'%20fill='%234A99E9'/%3e%3c/svg%3e", Fm = ({ size: e = "lg" }) => /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r(
576
+ }, Ht = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M0%2012C0%205.37258%205.37258%200%2012%200C18.6274%200%2024%205.37258%2024%2012C24%2018.6274%2018.6274%2024%2012%2024C5.37258%2024%200%2018.6274%200%2012Z'%20fill='url(%23pattern0_2594_44493)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_2594_44493'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_2594_44493'%20transform='translate(0%20-0.0714286)%20scale(0.0102041)'/%3e%3c/pattern%3e%3cimage%20id='image0_2594_44493'%20width='98'%20height='112'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABwCAYAAADlu6WeAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABJOSURBVHgB7Z0LeFXVlcf/+9xcQgCBovazWhVRrFP5KFrbiuUhmhBEBPohtGodwVpbdfCBUkAeOSHhpShaqq2vGSxYHcXailISQgIKfTjWMs44MrU6tIOOjxFQECXJPbv/dU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iBCXzotUvEN9f3BFCcL6yMzCrz7FnGSHFgvBt+YS6eZzd3/hBxjfH75llb6fj1pWh1If2bpE69kBHLgbWeVkVZh31dUJG5JLqnj6OLWtFHdAjsazEe05uWd25UAmZoeMmI0PGA3+AkfgnLCj9IzqYznNBi/VhFk/l0TQ+7UyT7gejyN6KzOP1OTBUlpyXXQj20tLG/bTySjtDCM4tRAE7e0I2CFQUSsrWsY81+wqUlbpPejOrx/N6T7kIf25lmVnsC8LaANAX0Un4ksxrFf9H3pLU4v7JBTTjH59e5GpnFhlBw2JcQA9KW0ax/9Ga/VTBslyNDbwQnfkLto2+7X4+IekzfoWkQaA6G6rnZFczV5XY/WmFoO1lQbVtBMyJghCEaKZAOqrqZh5d186by/i2NYmmcProoJ0WE5MoWYrBm95Nt/Vy9Oz+E8watg8RItq5qI6Z+xCPWs1rZqD/4MHJKd3lszb2QZHtUmk/Kt/P81YzfLDQXkMpgkR7apVd82Pir1qOlskz1nAUFf4gpYoqoimsUdLqHUlwqGHrmoz9jTOjKgQhfyaQOL4nWctiAGRknsBEBupfPPS5TCnu93rT5/LL3mY/QEusYL0ssYCIE+0W0RqzeAMHgBPsrRFkmm0Bytt8ro6diWYhSQvSCfq0tq3KByEI+TelyjFzGQk0vo3XPhxvr7MqmDX3SNYa1RCDUt125Nta5X8H3LvgGvQafyIAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", us = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.76891%200.220314C7.29839%20-0.0734379%206.70161%20-0.0734378%206.23109%200.220314L4.81636%201.10354C4.68024%201.18851%204.53098%201.25034%204.37464%201.2865L2.74974%201.66233C2.20932%201.78733%201.78733%202.20932%201.66233%202.74974L1.2865%204.37464C1.25034%204.53098%201.18851%204.68024%201.10354%204.81636L0.220314%206.23109C-0.0734379%206.70161%20-0.0734378%207.29839%200.220314%207.76891L1.10354%209.18364C1.18851%209.31976%201.25034%209.46902%201.2865%209.62537L1.66233%2011.2503C1.78733%2011.7907%202.20932%2012.2127%202.74974%2012.3377L4.37464%2012.7135C4.53098%2012.7497%204.68024%2012.8115%204.81636%2012.8965L6.23109%2013.7797C6.70161%2014.0734%207.29839%2014.0734%207.76891%2013.7797L9.18364%2012.8965C9.31976%2012.8115%209.46902%2012.7497%209.62537%2012.7135L11.2503%2012.3377C11.7907%2012.2127%2012.2127%2011.7907%2012.3377%2011.2503L12.7135%209.62536C12.7497%209.46902%2012.8115%209.31976%2012.8965%209.18364L13.7797%207.76891C14.0734%207.29839%2014.0734%206.70161%2013.7797%206.23109L12.8965%204.81636C12.8115%204.68024%2012.7497%204.53098%2012.7135%204.37464L12.3377%202.74974C12.2127%202.20932%2011.7907%201.78733%2011.2503%201.66233L9.62537%201.2865C9.46902%201.25034%209.31976%201.18851%209.18364%201.10354L7.76891%200.220314ZM9.45472%204.37291C9.70279%204.12484%2010.105%204.12484%2010.3531%204.37291C10.6011%204.62098%2010.6011%205.02318%2010.3531%205.27126L6.36021%209.2641C6.11214%209.51218%205.70994%209.51218%205.46187%209.2641L3.64694%207.44917C3.39887%207.2011%203.39887%206.7989%203.64694%206.55083C3.89501%206.30276%204.29721%206.30276%204.54528%206.55083L5.91104%207.91659L9.45472%204.37291Z'%20fill='%234A99E9'/%3e%3c/svg%3e", Fm = ({ size: e = "lg" }) => /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r(
577
577
  he,
578
578
  {
579
579
  name: "LoaderCircle",
@@ -829,7 +829,7 @@ const Mm = ({ editor: e, elementRef: t }) => {
829
829
  /* @__PURE__ */ r(
830
830
  Jt,
831
831
  {
832
- src: n.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
832
+ src: n.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
833
833
  n.name
834
834
  )}`,
835
835
  size: "sm",
@@ -979,7 +979,7 @@ const Mm = ({ editor: e, elementRef: t }) => {
979
979
  !d && /* @__PURE__ */ r("div", { className: "flex items-center -space-x-1", children: h.slice(0, 2).map((m) => /* @__PURE__ */ r(
980
980
  Jt,
981
981
  {
982
- src: n.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
982
+ src: n.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
983
983
  m.username || ""
984
984
  )}`,
985
985
  size: "sm",
@@ -2741,7 +2741,7 @@ ${te.getHTML()}`
2741
2741
  /* @__PURE__ */ r(Gi, { sideOffset: 6, children: n.filter((C) => C !== null).map((C, T) => {
2742
2742
  var S, w, b;
2743
2743
  return /* @__PURE__ */ v(
2744
- Lt,
2744
+ _t,
2745
2745
  {
2746
2746
  disabled: C == null ? void 0 : C.disabled,
2747
2747
  onClick: () => {
@@ -2774,7 +2774,7 @@ ${te.getHTML()}`
2774
2774
  /* @__PURE__ */ r(Gi, { sideOffset: 6, children: s.filter((C) => C !== null).map((C, T) => {
2775
2775
  var S, w, b;
2776
2776
  return /* @__PURE__ */ v(
2777
- Lt,
2777
+ _t,
2778
2778
  {
2779
2779
  className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
2780
2780
  "data-testid": `import-${((w = (S = C == null ? void 0 : C.title) == null ? void 0 : S.match(/\(\.(\w+)\)/)) == null ? void 0 : w[1]) || ((b = C == null ? void 0 : C.title) == null ? void 0 : b.toLowerCase().replace(/[^a-z]/g, "-"))}`,
@@ -2789,7 +2789,7 @@ ${te.getHTML()}`
2789
2789
  }) })
2790
2790
  ] }),
2791
2791
  /* @__PURE__ */ v(
2792
- Lt,
2792
+ _t,
2793
2793
  {
2794
2794
  className: "appearance-none bg-transparent hover:color-bg-default-hover h-8 rounded gap-2 p-2 w-full text-left flex items-center justify-start transition text-body-sm",
2795
2795
  onClick: A,
@@ -2831,7 +2831,7 @@ ${te.getHTML()}`
2831
2831
  /* @__PURE__ */ r(he, { name: "ChevronDown", size: "sm" })
2832
2832
  ] }) }),
2833
2833
  /* @__PURE__ */ r(zn, { children: ko.map((s) => /* @__PURE__ */ r(
2834
- Lt,
2834
+ _t,
2835
2835
  {
2836
2836
  className: "h-8 rounded py-1 px-2 w-full text-left space-x-2 text-sm color-text-default transition",
2837
2837
  onClick: () => {
@@ -2863,7 +2863,7 @@ ${te.getHTML()}`
2863
2863
  const o = $d();
2864
2864
  return /* @__PURE__ */ v("div", { className: "z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1", children: [
2865
2865
  o.map((i) => /* @__PURE__ */ v(
2866
- Lt,
2866
+ _t,
2867
2867
  {
2868
2868
  onMouseDown: (a) => a.preventDefault(),
2869
2869
  onClick: () => n(i.value),
@@ -2883,7 +2883,7 @@ ${te.getHTML()}`
2883
2883
  )),
2884
2884
  /* @__PURE__ */ r("div", { className: "w-full my-1 h-[1px] color-bg-default-hover" }),
2885
2885
  qd(e).map((i) => /* @__PURE__ */ v(
2886
- Lt,
2886
+ _t,
2887
2887
  {
2888
2888
  onMouseDown: (a) => a.preventDefault(),
2889
2889
  onClick: i.onSelect,
@@ -2897,7 +2897,7 @@ ${te.getHTML()}`
2897
2897
  )),
2898
2898
  /* @__PURE__ */ r("div", { className: "w-full my-1 h-[1px] color-bg-default-hover" }),
2899
2899
  /* @__PURE__ */ v(
2900
- Lt,
2900
+ _t,
2901
2901
  {
2902
2902
  onMouseDown: (i) => i.preventDefault(),
2903
2903
  onClick: s,
@@ -2937,7 +2937,7 @@ ${te.getHTML()}`
2937
2937
  Gd.map((t) => {
2938
2938
  const s = il(t.color) === "#000000" ? "text-black" : "text-white";
2939
2939
  return /* @__PURE__ */ r(
2940
- Lt,
2940
+ _t,
2941
2941
  {
2942
2942
  onMouseDown: (o) => o.preventDefault(),
2943
2943
  onClick: () => {
@@ -2965,7 +2965,7 @@ ${te.getHTML()}`
2965
2965
  );
2966
2966
  }),
2967
2967
  /* @__PURE__ */ v(
2968
- Lt,
2968
+ _t,
2969
2969
  {
2970
2970
  onMouseDown: (t) => t.preventDefault(),
2971
2971
  onClick: () => {
@@ -3000,7 +3000,7 @@ ${te.getHTML()}`
3000
3000
  n[t] || n.light
3001
3001
  ) === "#000000" ? "text-black" : "text-white", i = `var(--color-editor-${n.name})`;
3002
3002
  return /* @__PURE__ */ r(
3003
- Lt,
3003
+ _t,
3004
3004
  {
3005
3005
  onMouseDown: (a) => a.preventDefault(),
3006
3006
  onClick: () => {
@@ -3028,7 +3028,7 @@ ${te.getHTML()}`
3028
3028
  );
3029
3029
  }) }),
3030
3030
  /* @__PURE__ */ v(
3031
- Lt,
3031
+ _t,
3032
3032
  {
3033
3033
  onMouseDown: (n) => n.preventDefault(),
3034
3034
  onClick: () => {
@@ -3062,7 +3062,7 @@ ${te.getHTML()}`
3062
3062
  { value: "right", icon: "AlignRight" },
3063
3063
  { value: "justify", icon: "AlignJustify" }
3064
3064
  ], lp = ({ editor: e }) => /* @__PURE__ */ r("div", { className: "z-50 h-auto flex flex-wrap gap-1 max-h-[330px] overflow-y-auto scroll-smooth rounded color-bg-default px-1 py-2 shadow-elevation-3 transition-all", children: ap.map((t) => /* @__PURE__ */ r(
3065
- Lt,
3065
+ _t,
3066
3066
  {
3067
3067
  onMouseDown: (n) => n.preventDefault(),
3068
3068
  onClick: () => {
@@ -3477,7 +3477,7 @@ const dp = ({
3477
3477
  const n = document.createElement("div");
3478
3478
  n.classList.add("custom-cursor__label-container"), n.setAttribute("style", `border: 1px solid ${e.color}`);
3479
3479
  const s = document.createElement("img");
3480
- s.src = Ut, s.classList.add("custom-cursor__icon");
3480
+ s.src = Ht, s.classList.add("custom-cursor__icon");
3481
3481
  const o = document.createElement("div");
3482
3482
  o.classList.add("custom-cursor__label");
3483
3483
  const i = document.createElement("span");
@@ -4138,7 +4138,7 @@ const ra = () => {
4138
4138
  d(w), m(!!b);
4139
4139
  }, [w, b]);
4140
4140
  const oe = M(() => {
4141
- var je, Ht;
4141
+ var je, zt;
4142
4142
  if (!R) return "";
4143
4143
  const J = t.getJSON();
4144
4144
  if (typeof n() != "number") return "";
@@ -4157,7 +4157,7 @@ const ra = () => {
4157
4157
  ` + ze, Ye += Qe.length;
4158
4158
  }
4159
4159
  let ht = "", Ke = 0;
4160
- const lt = ((Ht = J.content) == null ? void 0 : Ht.slice(-1)) || [];
4160
+ const lt = ((zt = J.content) == null ? void 0 : zt.slice(-1)) || [];
4161
4161
  for (const Xe of lt) {
4162
4162
  const Qe = He(Xe);
4163
4163
  if (Ke + Qe.length > De) {
@@ -4364,7 +4364,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
4364
4364
  className: "flex items-center gap-1",
4365
4365
  children: [
4366
4366
  /* @__PURE__ */ r(
4367
- Pt.span,
4367
+ Ut.span,
4368
4368
  {
4369
4369
  initial: { opacity: 0, y: 4 },
4370
4370
  animate: { opacity: 1, y: 0 },
@@ -4997,7 +4997,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
4997
4997
  ), {
4998
4998
  buildExtensionsForTab: lt,
4999
4999
  commentAnchorsRef: je,
5000
- draftAnchorsRef: Ht,
5000
+ draftAnchorsRef: zt,
5001
5001
  storeApiRef: Xe
5002
5002
  } = qp({
5003
5003
  ydoc: e,
@@ -5039,13 +5039,13 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5039
5039
  return !Fe || !(((Ae = Xe.current) == null ? void 0 : Ae.getState().focusSubmittedSuggestionFromEditor(Fe)) ?? !1) ? !1 : (pe.preventDefault(), pe.stopPropagation(), we.dom.blur(), !0);
5040
5040
  },
5041
5041
  [Xe]
5042
- ), zt = F(!0), [cn, ms] = Y([]), gn = F(X);
5042
+ ), Kt = F(!0), [cn, ms] = Y([]), gn = F(X);
5043
5043
  gn.current = X, j(() => {
5044
5044
  H && fe(null);
5045
5045
  }, [H, fe]);
5046
5046
  const ps = M(
5047
5047
  (we) => {
5048
- const pe = !gn.current && zt.current && Se.current === we, Te = new dl({
5048
+ const pe = !gn.current && Kt.current && Se.current === we, Te = new dl({
5049
5049
  extensions: lt(we),
5050
5050
  editorProps: {
5051
5051
  clipboardTextSerializer(ge) {
@@ -5087,12 +5087,12 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5087
5087
  const Dt = decodeURIComponent(Tt.hash.slice(1)), Et = new URLSearchParams(Dt).get("heading");
5088
5088
  if (Et) {
5089
5089
  Ie.preventDefault();
5090
- const qt = Et.split("-").pop();
5091
- if (qt) {
5090
+ const Gt = Et.split("-").pop();
5091
+ if (Gt) {
5092
5092
  const Yn = ge.dom.querySelectorAll("[data-toc-id]"), Vs = Array.from(Yn).find(
5093
5093
  (bn) => {
5094
5094
  var Rn;
5095
- return (Rn = bn.dataset.tocId) == null ? void 0 : Rn.includes(qt);
5095
+ return (Rn = bn.dataset.tocId) == null ? void 0 : Rn.includes(Gt);
5096
5096
  }
5097
5097
  );
5098
5098
  if (Vs) {
@@ -5136,7 +5136,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5136
5136
  textDirection: "auto",
5137
5137
  autofocus: pe ? "start" : !1
5138
5138
  });
5139
- return zt.current = !1, Te;
5139
+ return Kt.current = !1, Te;
5140
5140
  },
5141
5141
  [
5142
5142
  lt,
@@ -5158,7 +5158,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5158
5158
  destroyEditor: yn
5159
5159
  });
5160
5160
  j(() => {
5161
- ie && (zt.current = !1);
5161
+ ie && (Kt.current = !1);
5162
5162
  }, [ie]), j(() => {
5163
5163
  var pe;
5164
5164
  if (!ie || ie.isDestroyed) return;
@@ -5236,7 +5236,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5236
5236
  }, [i]), j(() => {
5237
5237
  Kn && _(!u && !W);
5238
5238
  }, [Kn, u, W]);
5239
- const Re = F(!1), Kt = F(null), rt = M(
5239
+ const Re = F(!1), jt = F(null), rt = M(
5240
5240
  (we) => {
5241
5241
  const pe = we.map((Te) => at(Te));
5242
5242
  qe.applyUpdate(e, qe.mergeUpdates(pe), "self");
@@ -5262,7 +5262,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5262
5262
  B(!1);
5263
5263
  return;
5264
5264
  }
5265
- if (n && Kt.current === pe) {
5265
+ if (n && jt.current === pe) {
5266
5266
  B(!1);
5267
5267
  return;
5268
5268
  }
@@ -5275,7 +5275,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5275
5275
  wrapInDBlock: !!ie.schema.nodes.dBlock
5276
5276
  })
5277
5277
  )), n) {
5278
- Kt.current = pe, B(!1);
5278
+ jt.current = pe, B(!1);
5279
5279
  return;
5280
5280
  }
5281
5281
  const Te = l === void 0 && ie.isEmpty;
@@ -5301,7 +5301,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5301
5301
  oe
5302
5302
  ]);
5303
5303
  const mt = F(() => {
5304
- }), jn = F(null), An = 3e4, jt = F(null), nn = F(!1);
5304
+ }), jn = F(null), An = 3e4, Vt = F(null), nn = F(!1);
5305
5305
  Yp({
5306
5306
  editor: ie,
5307
5307
  isReady: u,
@@ -5336,7 +5336,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5336
5336
  ie.off("paste", we);
5337
5337
  };
5338
5338
  }, [ie]);
5339
- const Vt = F(null), Nt = F(null), pt = F(0), Wt = F(
5339
+ const Wt = F(null), Nt = F(null), pt = F(0), $t = F(
5340
5340
  null
5341
5341
  ), Rt = F({}), wn = F(0), Vn = F(I);
5342
5342
  j(() => {
@@ -5349,19 +5349,19 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5349
5349
  return (pe = Vn.current) == null ? void 0 : pe.call(Vn, we);
5350
5350
  }
5351
5351
  ));
5352
- const xe = Wn.current, $t = !!I;
5352
+ const xe = Wn.current, qt = !!I;
5353
5353
  j(() => {
5354
- if (!N && !$t)
5354
+ if (!N && !qt)
5355
5355
  return;
5356
5356
  const we = gu();
5357
- return Wt.current = we, () => {
5358
- Wt.current === we && (Wt.current = null), we.destroy();
5357
+ return $t.current = we, () => {
5358
+ $t.current === we && ($t.current = null), we.destroy();
5359
5359
  };
5360
- }, [N, $t]), j(() => {
5361
- if (!ie || !S && !w && !b && !N && !$t)
5360
+ }, [N, qt]), j(() => {
5361
+ if (!ie || !S && !w && !b && !N && !qt)
5362
5362
  return;
5363
5363
  const we = () => {
5364
- if (!b && !$t || J.current !== ie || ie.isDestroyed)
5364
+ if (!b && !qt || J.current !== ie || ie.isDestroyed)
5365
5365
  return;
5366
5366
  const { from: ge, to: Fe, empty: Ie } = ie.state.selection;
5367
5367
  if (Ie) {
@@ -5377,13 +5377,13 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5377
5377
  ...ge.appendedTransactions ?? []
5378
5378
  ].some(Kp) && (wn.current += 1) : (wn.current += 1, xe.beginTab(
5379
5379
  ((Fe = Rt.current[H]) == null ? void 0 : Fe.pageCount) ?? null
5380
- )), Vt.current && clearTimeout(Vt.current), Vt.current = setTimeout(() => {
5381
- if (Vt.current = null, ie && J.current === ie && !ie.isDestroyed) {
5380
+ )), Wt.current && clearTimeout(Wt.current), Wt.current = setTimeout(() => {
5381
+ if (Wt.current = null, ie && J.current === ie && !ie.isDestroyed) {
5382
5382
  const Ie = ie.storage.characterCount.characters() ?? 0;
5383
5383
  S == null || S(Ie);
5384
5384
  const Ae = ie.storage.characterCount.words() ?? 0;
5385
- if (w == null || w(Ae), xe.publish({ characters: Ie, words: Ae }, { tick: !0 }), (N || $t) && Gl(ie) === null) {
5386
- const _e = Wt.current;
5385
+ if (w == null || w(Ae), xe.publish({ characters: Ie, words: Ae }, { tick: !0 }), (N || qt) && Gl(ie) === null) {
5386
+ const _e = $t.current;
5387
5387
  if (!_e)
5388
5388
  return;
5389
5389
  const Oe = Rt.current[H];
@@ -5412,8 +5412,8 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5412
5412
  }).catch(() => {
5413
5413
  var Et;
5414
5414
  if (Ce === pt.current && J.current === ie && ie && !ie.isDestroyed) {
5415
- const qt = ((Et = Rt.current[H]) == null ? void 0 : Et.pageCount) ?? 1;
5416
- N == null || N(qt), xe.publish({ pages: qt });
5415
+ const Gt = ((Et = Rt.current[H]) == null ? void 0 : Et.pageCount) ?? 1;
5416
+ N == null || N(Gt), xe.publish({ pages: Gt });
5417
5417
  }
5418
5418
  });
5419
5419
  });
@@ -5422,7 +5422,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5422
5422
  }, 500);
5423
5423
  };
5424
5424
  pe(), we();
5425
- const Te = N || $t ? Lp(
5425
+ const Te = N || qt ? Lp(
5426
5426
  ie,
5427
5427
  (ge) => {
5428
5428
  J.current === ie && (N == null || N(ge), xe.publish({ pages: ge }));
@@ -5432,7 +5432,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5432
5432
  }
5433
5433
  ) : void 0;
5434
5434
  return ie.on("update", pe), ie.on("selectionUpdate", we), () => {
5435
- Te == null || Te(), ie.off("update", pe), ie.off("selectionUpdate", we), Vt.current && clearTimeout(Vt.current), ao(Nt.current), Nt.current = null, pt.current += 1;
5435
+ Te == null || Te(), ie.off("update", pe), ie.off("selectionUpdate", we), Wt.current && clearTimeout(Wt.current), ao(Nt.current), Nt.current = null, pt.current += 1;
5436
5436
  };
5437
5437
  }, [
5438
5438
  H,
@@ -5441,7 +5441,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5441
5441
  N,
5442
5442
  w,
5443
5443
  b,
5444
- $t,
5444
+ qt,
5445
5445
  xe
5446
5446
  ]), j(() => {
5447
5447
  const we = (pe) => {
@@ -5457,8 +5457,8 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5457
5457
  }, Te = () => {
5458
5458
  nn.current && (nn.current = !1, ee());
5459
5459
  }, ge = () => {
5460
- jt.current && clearTimeout(jt.current), jt.current = setTimeout(() => {
5461
- jt.current = null, D.livePresence !== !0 && D.connectOnOpen !== !0 && Te();
5460
+ Vt.current && clearTimeout(Vt.current), Vt.current = setTimeout(() => {
5461
+ Vt.current = null, D.livePresence !== !0 && D.connectOnOpen !== !0 && Te();
5462
5462
  }, An);
5463
5463
  };
5464
5464
  we && pe();
@@ -5466,7 +5466,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5466
5466
  Ae === "self" || Ae === "remote" || !me || (pe(), ge());
5467
5467
  };
5468
5468
  return e == null || e.on("update", Fe), () => {
5469
- e == null || e.off("update", Fe), jt.current && (clearTimeout(jt.current), jt.current = null);
5469
+ e == null || e.off("update", Fe), Vt.current && (clearTimeout(Vt.current), Vt.current = null);
5470
5470
  };
5471
5471
  }, [
5472
5472
  V,
@@ -5570,7 +5570,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
5570
5570
  focusCommentWithActiveId: re,
5571
5571
  isContentLoading: O,
5572
5572
  commentAnchorsRef: je,
5573
- draftAnchorsRef: Ht,
5573
+ draftAnchorsRef: zt,
5574
5574
  storeApiRef: Xe
5575
5575
  };
5576
5576
  }, Wp = () => {
@@ -6147,7 +6147,7 @@ const _p = (e, t, n) => t ? ml(n) : Fu(e).then(
6147
6147
  undo: i,
6148
6148
  redo: a
6149
6149
  };
6150
- }, ma = 1e4, sr = () => _t(kr(5), !0), pa = (e, t) => e && (t.length === 0 || t.some((n) => n.id === e)) ? e : void 0, rf = ({
6150
+ }, ma = 1e4, sr = () => Pt(kr(5), !0), pa = (e, t) => e && (t.length === 0 || t.some((n) => n.id === e)) ? e : void 0, rf = ({
6151
6151
  ydoc: e,
6152
6152
  initialContent: t,
6153
6153
  enableCollaboration: n,
@@ -6500,7 +6500,7 @@ function df(e, t) {
6500
6500
  const uf = "FVXC1", Tr = "__n__", Ql = uf + Tr, hf = new TextEncoder().encode(
6501
6501
  "FILEVERSE-COLLAB-WIRE-XCHACHA20POLY1305-FVXC1"
6502
6502
  ), fa = 24, mf = 8, ks = /* @__PURE__ */ new Map(), ga = (e) => {
6503
- const t = _t(e), n = ks.get(t);
6503
+ const t = Pt(e), n = ks.get(t);
6504
6504
  if (n) return n;
6505
6505
  const s = rm(e, new Uint8Array(0), hf);
6506
6506
  if (ks.size >= mf) {
@@ -6508,12 +6508,12 @@ const uf = "FVXC1", Tr = "__n__", Ql = uf + Tr, hf = new TextEncoder().encode(
6508
6508
  o !== void 0 && ks.delete(o);
6509
6509
  }
6510
6510
  return ks.set(t, s), s;
6511
- }, Er = (e) => typeof e == "string" && e.startsWith(Ql), Ot = {
6511
+ }, Er = (e) => typeof e == "string" && e.startsWith(Ql), Lt = {
6512
6512
  generateKeyPair: () => om(),
6513
6513
  encryptData: (e, t, n = "ecies") => {
6514
6514
  if (n === "xchacha") {
6515
6515
  const o = kr(fa), i = Qi(ga(e), o).encrypt(t);
6516
- return Ql + _t(o) + Tr + _t(i);
6516
+ return Ql + Pt(o) + Tr + Pt(i);
6517
6517
  }
6518
6518
  const s = im.getPublicKey(e);
6519
6519
  return sm(s, t, "base64");
@@ -6692,7 +6692,7 @@ class Jr {
6692
6692
  documentId: this.roomId,
6693
6693
  wireFormats: ["ecies", "xchacha"]
6694
6694
  };
6695
- this.roomInfo && (s.roomInfo = Ot.encryptData(
6695
+ this.roomInfo && (s.roomInfo = Lt.encryptData(
6696
6696
  at(this.roomKey),
6697
6697
  new TextEncoder().encode(JSON.stringify(this.roomInfo)),
6698
6698
  this.wireFormat
@@ -6733,7 +6733,7 @@ class Jr {
6733
6733
  const n = this.roomKey, s = t.data.position;
6734
6734
  if (n)
6735
6735
  try {
6736
- const o = Ot.decryptData(
6736
+ const o = Lt.decryptData(
6737
6737
  at(n),
6738
6738
  s
6739
6739
  );
@@ -6760,7 +6760,7 @@ class Jr {
6760
6760
  at(t.roomKey)
6761
6761
  );
6762
6762
  this.roomKey = t.roomKey, this.roomId = t.roomId, this.collaborationKeyPair = rn.EdKeypair.fromSecretKey(
6763
- _t(n)
6763
+ Pt(n)
6764
6764
  ), t.ownerEdSecret && (this.ownerKeyPair = rn.EdKeypair.fromSecretKey(t.ownerEdSecret)), t.contractAddress && (this.contractAddress = t.contractAddress), t.ownerAddress && (this.ownerAddress = t.ownerAddress), t.ddocId && (this.ddocId = t.ddocId), t.editLock && (this.editLock = t.editLock), t.identityToken && (this.identityToken = t.identityToken), t.editUcan && (this.editUcan = t.editUcan), this.lastGoodEditUcan = t.editUcan, t.refreshEditClaim && (this.refreshEditClaim = t.refreshEditClaim), t.actorHandle && (this.actorHandle = t.actorHandle), t.joinOnly && (this.joinOnly = t.joinOnly), t.encryptedTitle && (this.encryptedTitle = t.encryptedTitle), t.onHandshakeData && (this._onHandshakeData = t.onHandshakeData), t.onEpochAvailable && (this._onEpochAvailable = t.onEpochAvailable), t.onCutover && (this._onCutover = t.onCutover), t.roomInfo && (this.roomInfo = t.roomInfo);
6765
6765
  }
6766
6766
  get isConnected() {
@@ -6911,7 +6911,7 @@ class Jr {
6911
6911
  s && (this.lastGoodEditUcan = s), this.roomKey = t;
6912
6912
  const { secretKey: a } = er(at(t));
6913
6913
  this.collaborationKeyPair = rn.EdKeypair.fromSecretKey(
6914
- _t(a)
6914
+ Pt(a)
6915
6915
  ), this.collaborationUcan = void 0, n !== void 0 && (this.editLock = n);
6916
6916
  const l = await this._authenticate({ rotationCutover: !0 });
6917
6917
  if (l.statusCode !== 200)
@@ -6923,7 +6923,7 @@ class Jr {
6923
6923
  this.roomKey = o;
6924
6924
  const { secretKey: l } = er(at(o));
6925
6925
  throw this.collaborationKeyPair = rn.EdKeypair.fromSecretKey(
6926
- _t(l)
6926
+ Pt(l)
6927
6927
  ), this.collaborationUcan = void 0, this.editLock = i, a;
6928
6928
  } finally {
6929
6929
  this._rotating = !1;
@@ -7077,7 +7077,7 @@ class Jr {
7077
7077
  this.awareness.clientID
7078
7078
  ]), u = this.roomKey;
7079
7079
  if (u) {
7080
- const d = Ot.encryptData(
7080
+ const d = Lt.encryptData(
7081
7081
  at(u),
7082
7082
  c,
7083
7083
  this.wireFormat
@@ -7097,7 +7097,7 @@ const wa = (e, t, n, s) => {
7097
7097
  o = [];
7098
7098
  const u = am(e, c);
7099
7099
  if (t.isConnected) {
7100
- const d = Ot.encryptData(
7100
+ const d = Lt.encryptData(
7101
7101
  at(n),
7102
7102
  u,
7103
7103
  s()
@@ -7361,7 +7361,7 @@ class Mf {
7361
7361
  return this.wireFormat;
7362
7362
  }
7363
7363
  encryptForWire(t) {
7364
- const n = Ot.encryptData(
7364
+ const n = Lt.encryptData(
7365
7365
  this.roomKeyBytes,
7366
7366
  t,
7367
7367
  this.wireFormat
@@ -7484,7 +7484,7 @@ class Mf {
7484
7484
  try {
7485
7485
  const c = JSON.parse(
7486
7486
  new TextDecoder().decode(
7487
- Ot.decryptData(this.roomKeyBytes, a.payload)
7487
+ Lt.decryptData(this.roomKeyBytes, a.payload)
7488
7488
  )
7489
7489
  ), u = t.onRotationPrepare ? await t.onRotationPrepare(c) : null, d = typeof u == "string" ? u : u == null ? void 0 : u.roomKey;
7490
7490
  d || console.warn(
@@ -8076,11 +8076,11 @@ class Mf {
8076
8076
  // next inbound row — try the current key, then the pre-rotation key, before giving up.
8077
8077
  tryDecrypt(t) {
8078
8078
  try {
8079
- return Ot.decryptData(this.roomKeyBytes, t);
8079
+ return Lt.decryptData(this.roomKeyBytes, t);
8080
8080
  } catch {
8081
8081
  if (this.roomKeyBytesPrev)
8082
8082
  try {
8083
- return Ot.decryptData(this.roomKeyBytesPrev, t);
8083
+ return Lt.decryptData(this.roomKeyBytesPrev, t);
8084
8084
  } catch {
8085
8085
  }
8086
8086
  return null;
@@ -8175,7 +8175,7 @@ class Mf {
8175
8175
  const l = await this.catchUpFloor(t, i);
8176
8176
  if (!n() || (l && this.isOwner && this.send({ type: "SET_UNMERGED_UPDATES", hasUpdates: !0 }), !s || !o) || i.pages === 0 || i.incomplete && i.merged === null) return;
8177
8177
  const c = Sf(this.ydoc, i.merged);
8178
- c && n() && await this.broadcastLocalContents(_t(c), t);
8178
+ c && n() && await this.broadcastLocalContents(Pt(c), t);
8179
8179
  }, "hydrate"), s && i.pages > 0 && n() && this.emitWireTelemetry({
8180
8180
  type: "hydrate",
8181
8181
  eciesRows: i.eciesRows,
@@ -8377,8 +8377,8 @@ class Mf {
8377
8377
  var n;
8378
8378
  try {
8379
8379
  this.onLocalUpdate && typeof this.onLocalUpdate == "function" && this.onLocalUpdate(
8380
- _t(qe.encodeStateAsUpdate(this.ydoc)),
8381
- _t(t)
8380
+ Pt(qe.encodeStateAsUpdate(this.ydoc)),
8381
+ Pt(t)
8382
8382
  );
8383
8383
  } catch (s) {
8384
8384
  console.error("SyncManager: onLocalUpdate callback threw", s);
@@ -8776,7 +8776,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8776
8776
  const X = M(
8777
8777
  (te) => {
8778
8778
  var P;
8779
- B.current && B.current(_t(qe.encodeStateAsUpdate(c)), te), (P = _.current) == null || P.call(_);
8779
+ B.current && B.current(Pt(qe.encodeStateAsUpdate(c)), te), (P = _.current) == null || P.call(_);
8780
8780
  },
8781
8781
  [c]
8782
8782
  ), $ = M(() => {
@@ -8786,7 +8786,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8786
8786
  const te = (P, Q) => {
8787
8787
  if (Q === "self" || Q === f.current)
8788
8788
  return;
8789
- const ee = B.current ? _t(P) : "";
8789
+ const ee = B.current ? Pt(P) : "";
8790
8790
  I.current && clearTimeout(I.current), I.current = setTimeout(() => {
8791
8791
  I.current = null, X(ee);
8792
8792
  }, 300);
@@ -8855,7 +8855,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8855
8855
  onSchemaStampGuard: O,
8856
8856
  ...H
8857
8857
  }) => {
8858
- var zt;
8858
+ var Kt;
8859
8859
  j(() => {
8860
8860
  Bu(W ?? []);
8861
8861
  }, [W]);
@@ -8902,7 +8902,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8902
8902
  createDefaultTabIfMissing: !!(!K && !e && H.isDDocOwner && !D && // Wait for y-indexedDB sync before deciding whether an unsaved local doc
8903
8903
  // still needs a default tab, otherwise refresh keeps bootstrapping one.
8904
8904
  (!ze || Se.isIndexeddbSynced)),
8905
- defaultTabId: (zt = H.tabConfig) == null ? void 0 : zt.defaultTabId,
8905
+ defaultTabId: (Kt = H.tabConfig) == null ? void 0 : Kt.defaultTabId,
8906
8906
  shouldSyncActiveTab: Ye,
8907
8907
  // Viewers (non-owners) should land on the first tab, not whatever the
8908
8908
  // owner last selected, since active-tab is persisted in the shared Yjs doc.
@@ -8927,7 +8927,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8927
8927
  O,
8928
8928
  oe
8929
8929
  ]);
8930
- const { docSchemaVersion: Ht, isSchemaUnsupported: Xe } = dp({
8930
+ const { docSchemaVersion: zt, isSchemaUnsupported: Xe } = dp({
8931
8931
  ydoc: Se.ydoc,
8932
8932
  isNewDdoc: xt,
8933
8933
  isContentResolved: !ze || Se.isIndexeddbSynced,
@@ -8981,7 +8981,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8981
8981
  // nor before a body the host has promised (isAwaitingBody).
8982
8982
  activeTabId: Xe || ue || De ? "" : Ke.activeTabId,
8983
8983
  tabIds: lt,
8984
- docSchemaVersion: Ht,
8984
+ docSchemaVersion: zt,
8985
8985
  hasTabState: Ke.hasTabState,
8986
8986
  isVersionMode: K,
8987
8987
  theme: R,
@@ -8998,7 +8998,7 @@ const Ff = { status: "idle" }, Bf = (e) => {
8998
8998
  terminateSession: Se.terminateSession,
8999
8999
  isContentLoading: !!ln,
9000
9000
  isSchemaUnsupported: Xe,
9001
- docSchemaVersion: Ht,
9001
+ docSchemaVersion: zt,
9002
9002
  tabs: Ke.tabs,
9003
9003
  hasTabState: Ke.hasTabState,
9004
9004
  dBlockRuntimeState: fe,
@@ -10061,7 +10061,7 @@ const t0 = ({
10061
10061
  }
10062
10062
  },
10063
10063
  children: /* @__PURE__ */ r(Pr, { isPreviewMode: !0, isPresentationMode: !0, children: n ? /* @__PURE__ */ r(Ps, { mode: "wait", children: /* @__PURE__ */ r(
10064
- Pt.div,
10064
+ Ut.div,
10065
10065
  {
10066
10066
  initial: {
10067
10067
  opacity: 0,
@@ -10268,7 +10268,7 @@ const t0 = ({
10268
10268
  /* @__PURE__ */ r(
10269
10269
  Jt,
10270
10270
  {
10271
- src: k.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10271
+ src: k.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10272
10272
  k.name || ""
10273
10273
  )}`,
10274
10274
  className: "w-[16px] h-[16px]"
@@ -10357,7 +10357,7 @@ const t0 = ({
10357
10357
  /* @__PURE__ */ r(
10358
10358
  Jt,
10359
10359
  {
10360
- src: l.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10360
+ src: l.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10361
10361
  l.name
10362
10362
  )}`,
10363
10363
  className: "w-[16px] h-[16px]"
@@ -10870,7 +10870,7 @@ const sc = ({
10870
10870
  /* @__PURE__ */ r(
10871
10871
  Jt,
10872
10872
  {
10873
- src: m.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10873
+ src: m.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
10874
10874
  m.name
10875
10875
  )}`,
10876
10876
  className: "w-[16px] h-[16px]"
@@ -11035,7 +11035,7 @@ const sc = ({
11035
11035
  /* @__PURE__ */ r(
11036
11036
  Jt,
11037
11037
  {
11038
- src: u.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
11038
+ src: u.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
11039
11039
  u.name
11040
11040
  )}`,
11041
11041
  size: "sm",
@@ -12266,7 +12266,7 @@ const sc = ({
12266
12266
  );
12267
12267
  }
12268
12268
  B(new Set(He.keys()));
12269
- const Ke = fe.getBoundingClientRect(), lt = re.getBoundingClientRect(), je = (tn = s.current) == null ? void 0 : tn.getBoundingClientRect(), Ht = je !== void 0 ? Math.max(
12269
+ const Ke = fe.getBoundingClientRect(), lt = re.getBoundingClientRect(), je = (tn = s.current) == null ? void 0 : tn.getBoundingClientRect(), zt = je !== void 0 ? Math.max(
12270
12270
  0,
12271
12271
  je.bottom - lt.top
12272
12272
  ) : 0;
@@ -12278,7 +12278,7 @@ const sc = ({
12278
12278
  const st = He.get(Pe);
12279
12279
  if (!st)
12280
12280
  return;
12281
- const Re = R(Pe), { anchorId: Kt } = So(st), rt = m.current.get(Kt);
12281
+ const Re = R(Pe), { anchorId: jt } = So(st), rt = m.current.get(jt);
12282
12282
  if (!rt) {
12283
12283
  Re.isInViewport && (Re.isInViewport = !1, S(
12284
12284
  Pe,
@@ -12306,29 +12306,29 @@ const sc = ({
12306
12306
  viewportBottom: Ke.bottom
12307
12307
  });
12308
12308
  if (pt) {
12309
- const Wt = pt.top - lt.top;
12310
- Re.anchorTop = Wt, Re.anchorHeight = pt.height, rt.cachedRect = {
12311
- top: Wt,
12309
+ const $t = pt.top - lt.top;
12310
+ Re.anchorTop = $t, Re.anchorHeight = pt.height, rt.cachedRect = {
12311
+ top: $t,
12312
12312
  height: pt.height,
12313
12313
  scrollTop: fe.scrollTop,
12314
12314
  containerTop: lt.top
12315
- }, ct = { top: Wt, height: pt.height };
12315
+ }, ct = { top: $t, height: pt.height };
12316
12316
  } else ct && (Re.anchorTop = ct.top, Re.anchorHeight = ct.height);
12317
12317
  }
12318
12318
  Re.anchorVersion = rt.anchorVersion;
12319
- const jt = Re.anchorTop !== null && dr({
12319
+ const Vt = Re.anchorTop !== null && dr({
12320
12320
  top: Re.anchorTop,
12321
12321
  bottom: Re.anchorTop + Math.max(Re.anchorHeight, 1),
12322
12322
  viewportTop: Qe,
12323
12323
  viewportBottom: St,
12324
12324
  viewportHeight: Xe
12325
- }), nn = Re.translateY ?? Re.lastCommittedTranslateY, Vt = Re.isMeasured && nn !== null && dr({
12325
+ }), nn = Re.translateY ?? Re.lastCommittedTranslateY, Wt = Re.isMeasured && nn !== null && dr({
12326
12326
  top: nn,
12327
12327
  bottom: nn + Re.height,
12328
12328
  viewportTop: Qe,
12329
12329
  viewportBottom: St,
12330
12330
  viewportHeight: Xe
12331
- }), Nt = jt || Vt;
12331
+ }), Nt = Vt || Wt;
12332
12332
  if (Re.isInViewport !== Nt) {
12333
12333
  const pt = Re.isInViewport;
12334
12334
  Re.isInViewport = Nt, S(
@@ -12337,11 +12337,11 @@ const sc = ({
12337
12337
  ), b(Me), !pt && Nt && (Re.needsTransformSync = !0, C.current.add(Pe), ue = !0);
12338
12338
  }
12339
12339
  }), L.current.appliedScroll = L.current.scroll, L.current.appliedContainerOffset = L.current.containerOffset;
12340
- const zt = I.current.filter((Pe) => {
12340
+ const Kt = I.current.filter((Pe) => {
12341
12341
  const Me = A.current.get(Pe);
12342
12342
  return !!(Me != null && Me.isInViewport);
12343
- }), { didChange: cn, previousMountedFloatingCardIds: ms } = $(zt);
12344
- cn && zt.forEach((Pe) => {
12343
+ }), { didChange: cn, previousMountedFloatingCardIds: ms } = $(Kt);
12344
+ cn && Kt.forEach((Pe) => {
12345
12345
  if (ms.has(Pe))
12346
12346
  return;
12347
12347
  C.current.add(Pe);
@@ -12357,11 +12357,11 @@ const sc = ({
12357
12357
  const Re = Math.round(Me.offsetHeight);
12358
12358
  if (Re > 0 && (!st.isMeasured || st.height !== Re)) {
12359
12359
  st.height = Re, st.isMeasured = !0;
12360
- const Kt = k(Pe);
12360
+ const jt = k(Pe);
12361
12361
  S(
12362
12362
  Pe,
12363
12363
  dt.Height
12364
- ), b(Kt ?? 0);
12364
+ ), b(jt ?? 0);
12365
12365
  }
12366
12366
  }), C.current.clear();
12367
12367
  let gn = Number.POSITIVE_INFINITY;
@@ -12391,9 +12391,9 @@ const sc = ({
12391
12391
  const Re = yn.placements.get(Pe) ?? {
12392
12392
  translateY: Me.translateY,
12393
12393
  isVisible: Me.lastCommittedVisible
12394
- }, Kt = Re.translateY ?? Me.translateY ?? Me.lastCommittedTranslateY;
12395
- if (!c && Me.isMeasured && Kt !== null) {
12396
- const An = Li(Kt);
12394
+ }, jt = Re.translateY ?? Me.translateY ?? Me.lastCommittedTranslateY;
12395
+ if (!c && Me.isMeasured && jt !== null) {
12396
+ const An = Li(jt);
12397
12397
  An !== null && (ie = Math.max(
12398
12398
  ie,
12399
12399
  An + Me.height
@@ -12408,7 +12408,7 @@ const sc = ({
12408
12408
  (mt !== Me.lastCommittedVisible || (Me.invalidationFlags & (dt.Visibility | dt.Height)) !== 0) && (st.style.visibility = mt ? "visible" : "hidden", st.style.opacity = mt ? "1" : "0", Me.lastCommittedVisible = mt);
12409
12409
  });
12410
12410
  const xn = ie > 0 ? ie + ju : 0, At = Math.ceil(
12411
- Math.max(Ht, xn)
12411
+ Math.max(zt, xn)
12412
12412
  );
12413
12413
  q.current !== At && (re.style.setProperty(
12414
12414
  K0,
@@ -12825,7 +12825,7 @@ const X0 = ({
12825
12825
  /* @__PURE__ */ r(
12826
12826
  Jt,
12827
12827
  {
12828
- src: c.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
12828
+ src: c.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
12829
12829
  c.name
12830
12830
  )}`,
12831
12831
  size: "sm",
@@ -12931,7 +12931,7 @@ const X0 = ({
12931
12931
  /* @__PURE__ */ r(
12932
12932
  Jt,
12933
12933
  {
12934
- src: m.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
12934
+ src: m.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
12935
12935
  m.name
12936
12936
  )}`,
12937
12937
  size: "sm",
@@ -13058,7 +13058,7 @@ const X0 = ({
13058
13058
  /* @__PURE__ */ r(
13059
13059
  Jt,
13060
13060
  {
13061
- src: l.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13061
+ src: l.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13062
13062
  l.name
13063
13063
  )}`,
13064
13064
  size: "sm",
@@ -13185,7 +13185,7 @@ const X0 = ({
13185
13185
  /* @__PURE__ */ r(
13186
13186
  Jt,
13187
13187
  {
13188
- src: f.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13188
+ src: f.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13189
13189
  f.name || ""
13190
13190
  )}`,
13191
13191
  className: "w-[16px] h-[16px]"
@@ -13360,7 +13360,7 @@ const X0 = ({
13360
13360
  /* @__PURE__ */ r(
13361
13361
  Jt,
13362
13362
  {
13363
- src: k.isEns ? Ut : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13363
+ src: k.isEns ? Ht : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
13364
13364
  k.name
13365
13365
  )}`,
13366
13366
  className: "w-[16px] h-[16px]"
@@ -15606,7 +15606,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15606
15606
  animate: { opacity: 1 },
15607
15607
  exit: { opacity: 0 }
15608
15608
  }, pc = (e, t) => /* @__PURE__ */ r(
15609
- Pt.div,
15609
+ Ut.div,
15610
15610
  {
15611
15611
  variants: Tg,
15612
15612
  initial: "initial",
@@ -15621,7 +15621,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15621
15621
  animate: { y: 0, opacity: 1 },
15622
15622
  exit: { y: -10, opacity: 0 }
15623
15623
  }, fc = (e, t) => /* @__PURE__ */ r(
15624
- Pt.div,
15624
+ Ut.div,
15625
15625
  {
15626
15626
  variants: Eg,
15627
15627
  initial: "initial",
@@ -15636,7 +15636,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15636
15636
  className: t,
15637
15637
  children: n
15638
15638
  }) => /* @__PURE__ */ r(
15639
- Pt.div,
15639
+ Ut.div,
15640
15640
  {
15641
15641
  initial: !1,
15642
15642
  animate: { opacity: e ? 1 : 0 },
@@ -15644,7 +15644,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15644
15644
  className: ye(t, !e && "invisible pointer-events-none"),
15645
15645
  children: n
15646
15646
  }
15647
- ), Ag = "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))]", Ft = ({ className: e }) => /* @__PURE__ */ r("div", { className: ae(Ag, e) }), gc = () => /* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ v(
15647
+ ), Ag = "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__ */ r("div", { className: ae(Ag, e) }), gc = () => /* @__PURE__ */ r("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ v(
15648
15648
  Xh,
15649
15649
  {
15650
15650
  transition: {
@@ -15654,47 +15654,47 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
15654
15654
  },
15655
15655
  children: [
15656
15656
  /* @__PURE__ */ v(
15657
- Pt.div,
15657
+ Ut.div,
15658
15658
  {
15659
15659
  className: "space-y-4",
15660
15660
  animate: {
15661
15661
  opacity: [0.4, 1, 1, 1, 0.4]
15662
15662
  },
15663
15663
  children: [
15664
- /* @__PURE__ */ r(Ft, { className: "h-10" }),
15665
- /* @__PURE__ */ r(Ft, { className: "w-[77.54%]" }),
15666
- /* @__PURE__ */ r(Ft, { className: "w-[83.62%]" }),
15667
- /* @__PURE__ */ r(Ft, { className: "w-[51.01%]" })
15664
+ /* @__PURE__ */ r(Bt, { className: "h-10" }),
15665
+ /* @__PURE__ */ r(Bt, { className: "w-[77.54%]" }),
15666
+ /* @__PURE__ */ r(Bt, { className: "w-[83.62%]" }),
15667
+ /* @__PURE__ */ r(Bt, { className: "w-[51.01%]" })
15668
15668
  ]
15669
15669
  }
15670
15670
  ),
15671
15671
  /* @__PURE__ */ v(
15672
- Pt.div,
15672
+ Ut.div,
15673
15673
  {
15674
15674
  className: "space-y-4",
15675
15675
  animate: {
15676
15676
  opacity: [0.2, 0.4, 1, 1, 0.2]
15677
15677
  },
15678
15678
  children: [
15679
- /* @__PURE__ */ r(Ft, { className: "w-[83.62%]" }),
15680
- /* @__PURE__ */ r(Ft, { className: "w-[90.43%]" }),
15681
- /* @__PURE__ */ r(Ft, { className: "w-[77.54%]" }),
15682
- /* @__PURE__ */ r(Ft, { className: "w-[72.75%]" })
15679
+ /* @__PURE__ */ r(Bt, { className: "w-[83.62%]" }),
15680
+ /* @__PURE__ */ r(Bt, { className: "w-[90.43%]" }),
15681
+ /* @__PURE__ */ r(Bt, { className: "w-[77.54%]" }),
15682
+ /* @__PURE__ */ r(Bt, { className: "w-[72.75%]" })
15683
15683
  ]
15684
15684
  }
15685
15685
  ),
15686
15686
  /* @__PURE__ */ v(
15687
- Pt.div,
15687
+ Ut.div,
15688
15688
  {
15689
15689
  className: "space-y-4",
15690
15690
  animate: {
15691
15691
  opacity: [0.1, 0.2, 0.4, 1, 0.1]
15692
15692
  },
15693
15693
  children: [
15694
- /* @__PURE__ */ r(Ft, { className: "w-[83.62%]" }),
15695
- /* @__PURE__ */ r(Ft, { className: "w-[90.43%]" }),
15696
- /* @__PURE__ */ r(Ft, { className: "w-[77.54%]" }),
15697
- /* @__PURE__ */ r(Ft, { className: "w-[72.75%]" })
15694
+ /* @__PURE__ */ r(Bt, { className: "w-[83.62%]" }),
15695
+ /* @__PURE__ */ r(Bt, { className: "w-[90.43%]" }),
15696
+ /* @__PURE__ */ r(Bt, { className: "w-[77.54%]" }),
15697
+ /* @__PURE__ */ r(Bt, { className: "w-[72.75%]" })
15698
15698
  ]
15699
15699
  }
15700
15700
  )
@@ -18914,7 +18914,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18914
18914
  type: "text",
18915
18915
  text: e,
18916
18916
  ...t ? { marks: t } : {}
18917
- }), Bt = (e) => ({
18917
+ }), Ot = (e) => ({
18918
18918
  type: "paragraph",
18919
18919
  attrs: { textAlign: "left" },
18920
18920
  content: e
@@ -18927,7 +18927,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18927
18927
  content: [e]
18928
18928
  }), Le = (e) => Be(e, [{ type: "bold" }]), $e = (e) => Be(e, [{ type: "italic" }]), Hg = (e) => ({
18929
18929
  type: "listItem",
18930
- content: [Bt(e)]
18930
+ content: [Ot(e)]
18931
18931
  }), ts = (e) => ({
18932
18932
  type: "bulletList",
18933
18933
  attrs: { tight: !0 },
@@ -18948,7 +18948,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18948
18948
  et({
18949
18949
  type: "callout",
18950
18950
  content: [
18951
- Bt([
18951
+ Ot([
18952
18952
  Be("✨ "),
18953
18953
  Le("Welcome dear writer!"),
18954
18954
  Be(
@@ -18957,7 +18957,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18957
18957
  ])
18958
18958
  ]
18959
18959
  }),
18960
- et(Bt([])),
18960
+ et(Ot([])),
18961
18961
  et(_n(1, [Be("☾ Ship Basis")])),
18962
18962
  et(
18963
18963
  ts([
@@ -18973,11 +18973,11 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18973
18973
  ),
18974
18974
  et(_n(3, [Be("Premise")])),
18975
18975
  et(
18976
- Bt([$e("[The idea that made you open this cute dDoc]")])
18976
+ Ot([$e("[The idea that made you open this cute dDoc]")])
18977
18977
  ),
18978
18978
  et(_n(3, [Be("Summary")])),
18979
18979
  et(
18980
- Bt([$e("[A little spicy blurb to hook your readers in]")])
18980
+ Ot([$e("[A little spicy blurb to hook your readers in]")])
18981
18981
  )
18982
18982
  ]
18983
18983
  }, Kg = {
@@ -18985,7 +18985,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18985
18985
  content: [
18986
18986
  et(_n(1, [Be("★Plot & outline")])),
18987
18987
  et(
18988
- Bt([
18988
+ Ot([
18989
18989
  Le("Brain dump"),
18990
18990
  Be(" "),
18991
18991
  $e(
@@ -18993,7 +18993,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
18993
18993
  )
18994
18994
  ])
18995
18995
  ),
18996
- et(Bt([Le("The spine")])),
18996
+ et(Ot([Le("The spine")])),
18997
18997
  et(
18998
18998
  ts([
18999
18999
  [
@@ -19015,7 +19015,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19015
19015
  ]
19016
19016
  ])
19017
19017
  ),
19018
- et(Bt([Le("The skeleton")])),
19018
+ et(Ot([Le("The skeleton")])),
19019
19019
  et(
19020
19020
  ts([
19021
19021
  [
@@ -19036,7 +19036,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19036
19036
  ])
19037
19037
  ),
19038
19038
  et(
19039
- Bt([
19039
+ Ot([
19040
19040
  Le("Scenes in order"),
19041
19041
  Be(" "),
19042
19042
  $e(
@@ -19045,7 +19045,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19045
19045
  ])
19046
19046
  ),
19047
19047
  et(
19048
- Bt([
19048
+ Ot([
19049
19049
  Le("Chapter breakdown"),
19050
19050
  Be(" "),
19051
19051
  $e("(if multichap)")
@@ -19062,7 +19062,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19062
19062
  type: "doc",
19063
19063
  content: [
19064
19064
  et(_n(1, [Be("𖠋 Characters")])),
19065
- et(Bt([$e("[Copy this block for each character]")])),
19065
+ et(Ot([$e("[Copy this block for each character]")])),
19066
19066
  et(
19067
19067
  ts([
19068
19068
  [Le("name / role"), Be(":")],
@@ -19111,7 +19111,7 @@ const mg = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30p
19111
19111
  content: [
19112
19112
  et(_n(1, [Be("꩜ World & Canon")])),
19113
19113
  et(
19114
- Bt([
19114
+ Ot([
19115
19115
  $e(
19116
19116
  "[for AUs, canon-divergence, and fix-its. Skip if canon-compliant]"
19117
19117
  )
@@ -20497,7 +20497,7 @@ const c2 = Ze.memo(
20497
20497
  arrowPadding: 12,
20498
20498
  container: document.querySelector("#editor-canvas"),
20499
20499
  className: "pt-2 border-none bg-transparent",
20500
- children: /* @__PURE__ */ v(Pt.div, { className: "p-2 border color-border-default w-80 max-w-full rounded-lg space-y-2 color-bg-default", children: [
20500
+ children: /* @__PURE__ */ v(Ut.div, { className: "p-2 border color-border-default w-80 max-w-full rounded-lg space-y-2 color-bg-default", children: [
20501
20501
  /* @__PURE__ */ v("div", { className: "flex items-center gap-2 pr-1 pl-2 border rounded-md", children: [
20502
20502
  /* @__PURE__ */ r(
20503
20503
  Qt,
@@ -20549,7 +20549,7 @@ const c2 = Ze.memo(
20549
20549
  /* @__PURE__ */ r(Io, { asChild: !0, onClick: y, children: /* @__PURE__ */ r(be, { icon: "X", variant: "ghost", size: "sm" }) })
20550
20550
  ] }),
20551
20551
  /* @__PURE__ */ r(Ps, { children: a && !n && /* @__PURE__ */ v(
20552
- Pt.div,
20552
+ Ut.div,
20553
20553
  {
20554
20554
  className: "space-y-2 overflow-clip",
20555
20555
  initial: { height: 0 },
@@ -21279,7 +21279,7 @@ const J2 = (e, t) => {
21279
21279
  };
21280
21280
  return window.addEventListener("keydown", o, !0), () => window.removeEventListener("keydown", o, !0);
21281
21281
  }, [e]);
21282
- }, ty = 12, Wa = (e, t) => Math.min(t, Math.max(0, e));
21282
+ }, ty = 6, Wa = (e, t) => Math.min(t, Math.max(0, e));
21283
21283
  function ny(e) {
21284
21284
  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;
21285
21285
  return [
@@ -21550,13 +21550,13 @@ const iy = () => {
21550
21550
  documentName: Ke,
21551
21551
  onInvalidContentError: lt,
21552
21552
  ignoreCorruptedData: je,
21553
- commentDrawerOpen: Ht,
21553
+ commentDrawerOpen: zt,
21554
21554
  setCommentDrawerOpen: Xe,
21555
21555
  onCommentDrawerOpenChange: Qe,
21556
21556
  initialComments: St = [],
21557
21557
  initialCommentAnchors: an,
21558
21558
  onNewComment: ln,
21559
- onEditComment: zt,
21559
+ onEditComment: Kt,
21560
21560
  onEditReply: cn,
21561
21561
  onCommentReply: ms,
21562
21562
  setInitialComments: gn,
@@ -21572,25 +21572,25 @@ const iy = () => {
21572
21572
  isConnected: Me,
21573
21573
  connectViaWallet: st,
21574
21574
  isLoading: Re,
21575
- connectViaUsername: Kt,
21575
+ connectViaUsername: jt,
21576
21576
  isDDocOwner: rt,
21577
21577
  isCollabDocumentPublished: ct = !0,
21578
21578
  disableInlineComment: mt,
21579
21579
  renderThemeToggle: jn,
21580
21580
  renderToolbarLeading: An,
21581
- metadataProxyUrl: jt,
21581
+ metadataProxyUrl: Vt,
21582
21582
  extensions: nn,
21583
- onCopyHeadingLink: Vt,
21583
+ onCopyHeadingLink: Wt,
21584
21584
  tabConfig: Nt,
21585
21585
  imageFetchFn: pt,
21586
- ipfsImageFetchFn: Wt,
21586
+ ipfsImageFetchFn: $t,
21587
21587
  fetchV1ImageFn: Rt,
21588
21588
  activeModel: wn,
21589
21589
  maxTokens: Vn,
21590
21590
  isAIAgentEnabled: Wn,
21591
21591
  // Document styling object
21592
21592
  documentStyling: xe,
21593
- fonts: $t,
21593
+ fonts: qt,
21594
21594
  ...$n
21595
21595
  }, qn) => {
21596
21596
  var Ai, Ri, Ii;
@@ -21610,7 +21610,7 @@ const iy = () => {
21610
21610
  Pe,
21611
21611
  tn
21612
21612
  ), [pe, Te] = Mn(
21613
- Ht,
21613
+ zt,
21614
21614
  !1,
21615
21615
  Qe,
21616
21616
  Xe
@@ -21628,15 +21628,15 @@ const iy = () => {
21628
21628
  () => zl(A, E),
21629
21629
  [A, E]
21630
21630
  ), Oe = ve(
21631
- () => Kl(pt, Wt),
21632
- [pt, Wt]
21631
+ () => Kl(pt, $t),
21632
+ [pt, $t]
21633
21633
  ), { isFocusMode: Ce, toggleFocusMode: Tt } = Og({
21634
21634
  isFocusMode: re,
21635
21635
  onFocusModeChange: Se,
21636
21636
  onFocusMode: (Z) => {
21637
21637
  pe && (Te == null || Te(!1)), fe == null || fe(Z);
21638
21638
  }
21639
- }), [It, Dt] = Y(!1), [hn, Et] = Y(!1), qt = F(null), Yn = F({ isPagesActive: !1 }), bn = (() => {
21639
+ }), [It, Dt] = Y(!1), [hn, Et] = Y(!1), Gt = F(null), Yn = F({ isPagesActive: !1 }), bn = (() => {
21640
21640
  if (!xe)
21641
21641
  return { canvas: void 0, background: void 0 };
21642
21642
  const Z = {}, ke = {}, Ve = xn ?? "light";
@@ -21750,9 +21750,9 @@ const iy = () => {
21750
21750
  onInvalidContentError: lt,
21751
21751
  ignoreCorruptedData: je,
21752
21752
  isPresentationMode: ge,
21753
- metadataProxyUrl: jt,
21753
+ metadataProxyUrl: Vt,
21754
21754
  extensions: nn,
21755
- onCopyHeadingLink: Vt,
21755
+ onCopyHeadingLink: Wt,
21756
21756
  disableInlineComment: mt,
21757
21757
  isFocusMode: Ce,
21758
21758
  isConnected: Me,
@@ -21762,7 +21762,7 @@ const iy = () => {
21762
21762
  isDDocOwner: rt,
21763
21763
  tabConfig: Nt,
21764
21764
  onNewComment: ln,
21765
- fonts: $t,
21765
+ fonts: qt,
21766
21766
  ...$n
21767
21767
  }), ed = ve(
21768
21768
  () => {
@@ -21867,7 +21867,7 @@ const iy = () => {
21867
21867
  },
21868
21868
  exportCurrentTabOrOpenExportModal: (Z = "pdf", ke) => {
21869
21869
  var Ve;
21870
- (Ve = qt.current) == null || Ve.call(qt, Z, ke);
21870
+ (Ve = Gt.current) == null || Ve.call(Gt, Z, ke);
21871
21871
  },
21872
21872
  printCurrentTab: async () => {
21873
21873
  if (!de) return;
@@ -21971,7 +21971,7 @@ const iy = () => {
21971
21971
  ), [St]), hd = N0(fi), Vo = !!pe || !!mt, vi = hd && !Vo, Zs = (xe == null ? void 0 : xe.orientation) === "landscape", md = wt(
21972
21972
  "(min-width: 1024px)",
21973
21973
  In
21974
- ), on = xe == null ? void 0 : xe.pageSetup, Gt = yh({
21974
+ ), on = xe == null ? void 0 : xe.pageSetup, Ft = yh({
21975
21975
  pageSetup: on,
21976
21976
  isWideEnough: md,
21977
21977
  isSplitViewActive: Ue,
@@ -21980,11 +21980,11 @@ const iy = () => {
21980
21980
  Yn.current = {
21981
21981
  pageSetup: on,
21982
21982
  orientation: xe == null ? void 0 : xe.orientation,
21983
- isPagesActive: Gt,
21983
+ isPagesActive: Ft,
21984
21984
  ipfsImageFetchFn: Oe,
21985
21985
  fetchV1ImageFn: Rt
21986
21986
  };
21987
- const Js = Gt && on ? xh(on, xe == null ? void 0 : xe.orientation) : Zs ? 1190 : 850, Zn = bh(fs), ys = Qs && !Ue, Wo = ys && Zn === "fit", xs = (
21987
+ const Js = Ft && on ? xh(on, xe == null ? void 0 : xe.orientation) : Zs ? 1190 : 850, Zn = bh(fs), ys = Qs && !Ue, Wo = ys && Zn === "fit", xs = (
21988
21988
  // Hidden in Split View — the right pane has its own tabs panel (the
21989
21989
  // List button in the split header), so the editor's native left rail
21990
21990
  // would just duplicate it.
@@ -21993,7 +21993,7 @@ const iy = () => {
21993
21993
  hasLeftRail: ki,
21994
21994
  isCommentColumnVisible: vi,
21995
21995
  isLandscape: Zs,
21996
- isPagesMode: Gt
21996
+ isPagesMode: Ft
21997
21997
  }), { shouldHideRight: Si, shouldScroll: gd, fitScale: $o } = Y2({
21998
21998
  canvasRef: Lo,
21999
21999
  rootRef: ni,
@@ -22022,13 +22022,13 @@ const iy = () => {
22022
22022
  pageSetup: yd,
22023
22023
  orientation: Go,
22024
22024
  zoom: Dn,
22025
- isPagesMode: Gt,
22025
+ isPagesMode: Ft,
22026
22026
  onPagesError: T,
22027
22027
  printInputs: () => Yn.current
22028
22028
  });
22029
22029
  const Yo = (() => {
22030
22030
  const Z = Rn();
22031
- return Gt && Z ? { ...Z, backgroundColor: void 0 } : Z;
22031
+ return Ft && Z ? { ...Z, backgroundColor: void 0 } : Z;
22032
22032
  })(), Ti = Ue ? ti : Lo;
22033
22033
  Q2({
22034
22034
  wrapperRef: _o,
@@ -22101,9 +22101,9 @@ const iy = () => {
22101
22101
  !gs && (ce === void 0 || L || q) ? () => Ae((Z) => !Z) : void 0
22102
22102
  ),
22103
22103
  onRegisterExportTrigger: (Z) => {
22104
- qt.current = Z;
22104
+ Gt.current = Z;
22105
22105
  },
22106
- fonts: $t,
22106
+ fonts: qt,
22107
22107
  renderToolbarLeading: An
22108
22108
  }
22109
22109
  ) })
@@ -22134,7 +22134,7 @@ const iy = () => {
22134
22134
  ipfsImageUploadFn: _e,
22135
22135
  ipfsImageFetchFn: Oe,
22136
22136
  fetchV1ImageFn: Rt,
22137
- fonts: $t
22137
+ fonts: qt
22138
22138
  }
22139
22139
  )
22140
22140
  }
@@ -22148,7 +22148,7 @@ const iy = () => {
22148
22148
  ydoc: mn,
22149
22149
  tabs: Cn,
22150
22150
  onRegisterExportTrigger: (Z) => {
22151
- qt.current = Z;
22151
+ Gt.current = Z;
22152
22152
  },
22153
22153
  onError: C,
22154
22154
  ipfsImageUploadFn: _e,
@@ -22270,7 +22270,7 @@ const iy = () => {
22270
22270
  {
22271
22271
  className: ye(
22272
22272
  "editor-main-lane flex-grow min-w-0 flex overflow-visible items-stretch",
22273
- !Ue && "mb-12",
22273
+ Ft && !Ue && "mb-12",
22274
22274
  gd ? "justify-start" : "justify-center",
22275
22275
  sn && "w-full",
22276
22276
  !Ue && !e && !Ce && (ft ? "ddoc-md:mt-[0.8rem]" : null),
@@ -22304,7 +22304,7 @@ const iy = () => {
22304
22304
  // The rail absorbs the left gutter; this keeps the right
22305
22305
  // one. With no rail, the left gutter is a margin too.
22306
22306
  ...Wo && {
22307
- marginRight: ji + (Gt ? kh : 0) + (vi ? Sh : 0),
22307
+ marginRight: ji + (Ft ? kh : 0) + (vi ? Sh : 0),
22308
22308
  marginLeft: ki ? void 0 : ji
22309
22309
  }
22310
22310
  },
@@ -22327,7 +22327,7 @@ const iy = () => {
22327
22327
  className: ye(
22328
22328
  "w-full flex-grow min-w-0 no-scrollbar rounded mx-auto",
22329
22329
  !Wo && "transition-[width,max-width] duration-300 ease-in-out",
22330
- !(xe != null && xe.canvasBackground) && !Ce && !Gt && "color-bg-default"
22330
+ !(xe != null && xe.canvasBackground) && !Ce && !Ft && "color-bg-default"
22331
22331
  ),
22332
22332
  style: {
22333
22333
  ...sn ? {} : {
@@ -22349,7 +22349,7 @@ const iy = () => {
22349
22349
  className: ye(
22350
22350
  "w-full",
22351
22351
  e && "pt-3",
22352
- Gt && "relative isolate"
22352
+ Ft && "relative isolate"
22353
22353
  ),
22354
22354
  "data-ddoc-zoom-layer": "",
22355
22355
  "data-ddoc-zoom": String(Dn),
@@ -22362,7 +22362,7 @@ const iy = () => {
22362
22362
  transformOrigin: "top left"
22363
22363
  },
22364
22364
  children: [
22365
- Gt && eo && /* @__PURE__ */ r(
22365
+ Ft && eo && /* @__PURE__ */ r(
22366
22366
  oy,
22367
22367
  {
22368
22368
  editor: de,
@@ -22469,7 +22469,7 @@ const iy = () => {
22469
22469
  }
22470
22470
  ),
22471
22471
  ri && /* @__PURE__ */ r(
22472
- Pt.div,
22472
+ Ut.div,
22473
22473
  {
22474
22474
  initial: { opacity: 0, height: 0 },
22475
22475
  animate: {
@@ -22513,7 +22513,7 @@ const iy = () => {
22513
22513
  enableFanficTemplate: R,
22514
22514
  runtimeState: nd,
22515
22515
  onApplyTabbedTemplate: td,
22516
- onCopyHeadingLink: Vt,
22516
+ onCopyHeadingLink: Wt,
22517
22517
  children: /* @__PURE__ */ r("div", { className: "grammarly-wrapper", children: (qs != null && qs.length ? qs : de ? [
22518
22518
  {
22519
22519
  tabId: Mt,
@@ -22674,8 +22674,8 @@ const iy = () => {
22674
22674
  ge ? "color-bg-default" : "color-bg-secondary",
22675
22675
  oi && "ddoc-editor-cq"
22676
22676
  ),
22677
- "data-page-mode": Gt ? "pages" : void 0,
22678
- style: Gt && eo ? {
22677
+ "data-page-mode": Ft ? "pages" : void 0,
22678
+ style: Ft && eo ? {
22679
22679
  "--ddoc-page-text-h": `${eo.textHeight}px`
22680
22680
  } : void 0,
22681
22681
  children: /* @__PURE__ */ r(zi.Provider, { value: In, children: /* @__PURE__ */ v(
@@ -22703,7 +22703,7 @@ const iy = () => {
22703
22703
  initialComments: St,
22704
22704
  setInitialComments: gn,
22705
22705
  onNewComment: ln,
22706
- onEditComment: zt,
22706
+ onEditComment: Kt,
22707
22707
  onEditReply: cn,
22708
22708
  onCommentReply: ms,
22709
22709
  onResolveComment: Kn,
@@ -22714,7 +22714,7 @@ const iy = () => {
22714
22714
  isConnected: Me,
22715
22715
  connectViaWallet: st,
22716
22716
  isLoading: Re,
22717
- connectViaUsername: Kt,
22717
+ connectViaUsername: jt,
22718
22718
  isDDocOwner: rt,
22719
22719
  onInlineComment: se,
22720
22720
  onComment: D,
@@ -23132,7 +23132,7 @@ const iy = () => {
23132
23132
  }
23133
23133
  ),
23134
23134
  /* @__PURE__ */ r(Ps, { children: Q && /* @__PURE__ */ r(
23135
- Pt.div,
23135
+ Ut.div,
23136
23136
  {
23137
23137
  initial: { opacity: 0, height: 0 },
23138
23138
  animate: { opacity: 1, height: "auto" },
@@ -23512,7 +23512,7 @@ function dx(e) {
23512
23512
  t.isDestroyed || t.destroy();
23513
23513
  }
23514
23514
  }
23515
- const ux = (e, t, n = "ecies") => Ot.encryptData(at(e), t, n), hx = (e, t) => Ot.decryptData(at(e), t);
23515
+ const ux = (e, t, n = "ecies") => Lt.encryptData(at(e), t, n), hx = (e, t) => Lt.decryptData(at(e), t);
23516
23516
  function Fc(e, t, n, s) {
23517
23517
  return {
23518
23518
  wsUrl: e.wsUrl,
@@ -23574,7 +23574,7 @@ async function mx(e) {
23574
23574
  throw new Error((i == null ? void 0 : i.error) || "fetchSessionState: history pull failed");
23575
23575
  for (const a of i.data.history)
23576
23576
  try {
23577
- s.push(Ot.decryptData(n, a.data));
23577
+ s.push(Lt.decryptData(n, a.data));
23578
23578
  } catch {
23579
23579
  }
23580
23580
  if (i.data.hasMore && typeof i.data.nextSeq == "number") {
@@ -23598,7 +23598,7 @@ async function px(e) {
23598
23598
  );
23599
23599
  try {
23600
23600
  await Bc(t);
23601
- const n = Ot.encryptData(
23601
+ const n = Lt.encryptData(
23602
23602
  at(e.newRoomKey),
23603
23603
  e.state,
23604
23604
  t.getWireFormat()