eddyter 1.4.12-beta.1 → 1.4.13

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.
@@ -1,21 +1,22 @@
1
1
  import { jsx as o, jsxs as b, Fragment as Jt } from "react/jsx-runtime";
2
2
  import { I as De } from "./ImageResizer-BVwxL4Eh.js";
3
- import { c as Et, n as ne, o as se, p as de, q as ce, r as le, s as ue, B as Qt, t as zt, I as Le, S as Te, v as $e, w as Z, x as M, y as We, z as Ye, G as Oe, W as je, b as _e, A as He, d as Fe, e as Xe, H as Be, L as Ue, J as Ge, K as Ke, M as qe, X as Ve, N as Je, O as Qe, P as Ze, Q as tr, R as er, U as rr } from "./index-BMOkFC_x.js";
4
- import { LinkNode as or } from "@lexical/link";
5
- import { AutoFocusPlugin as ar } from "@lexical/react/LexicalAutoFocusPlugin";
6
- import { useCollaborationContext as ir } from "@lexical/react/LexicalCollaborationContext";
7
- import { useLexicalComposerContext as nr } from "@lexical/react/LexicalComposerContext";
8
- import { ContentEditable as sr } from "@lexical/react/LexicalContentEditable";
9
- import { LexicalErrorBoundary as dr } from "@lexical/react/LexicalErrorBoundary";
10
- import { HistoryPlugin as cr } from "@lexical/react/LexicalHistoryPlugin";
11
- import { LexicalNestedComposer as lr } from "@lexical/react/LexicalNestedComposer";
12
- import { OnChangePlugin as ur } from "@lexical/react/LexicalOnChangePlugin";
13
- import { RichTextPlugin as mr } from "@lexical/react/LexicalRichTextPlugin";
14
- import { useLexicalEditable as gr } from "@lexical/react/useLexicalEditable";
15
- import { useLexicalNodeSelection as fr } from "@lexical/react/useLexicalNodeSelection";
16
- import { mergeRegister as hr } from "@lexical/utils";
17
- import { $getRoot as Zt, $isNodeSelection as lt, $getSelection as rt, $isParagraphNode as _t, $setSelection as bt, $isRangeSelection as pr, SELECTION_CHANGE_COMMAND as br, COMMAND_PRIORITY_LOW as ot, CLICK_COMMAND as yr, DRAGSTART_COMMAND as xr, KEY_DELETE_COMMAND as wr, KEY_BACKSPACE_COMMAND as vr, KEY_ENTER_COMMAND as Cr, KEY_ESCAPE_COMMAND as Nr, $getNodeByKey as at, RootNode as kr, TextNode as Rr, LineBreakNode as Er, ParagraphNode as Ir, createCommand as Pr } from "lexical";
18
- import Nt, { useState as E, useEffect as K, useRef as G, useMemo as te, useCallback as S, useLayoutEffect as ee, Suspense as Sr } from "react";
3
+ import { CodeNode as Le } from "@lexical/code";
4
+ import { LinkNode as Te } from "@lexical/link";
5
+ import { AutoFocusPlugin as $e } from "@lexical/react/LexicalAutoFocusPlugin";
6
+ import { useCollaborationContext as We } from "@lexical/react/LexicalCollaborationContext";
7
+ import { useLexicalComposerContext as Ye } from "@lexical/react/LexicalComposerContext";
8
+ import { ContentEditable as Oe } from "@lexical/react/LexicalContentEditable";
9
+ import { LexicalErrorBoundary as je } from "@lexical/react/LexicalErrorBoundary";
10
+ import { HistoryPlugin as _e } from "@lexical/react/LexicalHistoryPlugin";
11
+ import { LexicalNestedComposer as He } from "@lexical/react/LexicalNestedComposer";
12
+ import { OnChangePlugin as Fe } from "@lexical/react/LexicalOnChangePlugin";
13
+ import { RichTextPlugin as Xe } from "@lexical/react/LexicalRichTextPlugin";
14
+ import { useLexicalEditable as Be } from "@lexical/react/useLexicalEditable";
15
+ import { useLexicalNodeSelection as Ue } from "@lexical/react/useLexicalNodeSelection";
16
+ import { mergeRegister as Ge } from "@lexical/utils";
17
+ import { $getRoot as Qt, $isNodeSelection as lt, $getSelection as rt, $isParagraphNode as _t, $setSelection as bt, $isRangeSelection as Ke, SELECTION_CHANGE_COMMAND as qe, COMMAND_PRIORITY_LOW as ot, CLICK_COMMAND as Ve, DRAGSTART_COMMAND as Je, KEY_DELETE_COMMAND as Qe, KEY_BACKSPACE_COMMAND as Ze, KEY_ENTER_COMMAND as tr, KEY_ESCAPE_COMMAND as er, $getNodeByKey as it, RootNode as rr, TextNode as or, LineBreakNode as ir, ParagraphNode as ar, createCommand as nr } from "lexical";
18
+ import Nt, { useState as E, useEffect as K, useRef as G, useMemo as Zt, useCallback as S, useLayoutEffect as te, Suspense as sr } from "react";
19
+ import { c as Et, n as ne, o as se, p as de, q as ce, r as le, s as ue, B as ee, t as zt, I as dr, S as cr, v as lr, w as Z, x as M, y as ur, z as mr, G as gr, W as fr, b as hr, A as pr, d as br, e as yr, H as xr, L as wr, J as vr, K as Cr, M as Nr, X as kr, N as Rr, O as Er, P as Ir, Q as Pr, R as Sr } from "./index-DFEFJp4J.js";
19
20
  import "react-dom";
20
21
  const me = Et("Crop", [
21
22
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
@@ -36,13 +37,13 @@ const Mr = Et("RotateCcw", [
36
37
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
37
38
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
38
39
  ]), Ar = ({
39
- open: a,
40
+ open: i,
40
41
  onOpenChange: r,
41
42
  oldImageUrl: e,
42
43
  newImageUrl: d,
43
44
  onReplace: v,
44
45
  onCancel: g
45
- }) => /* @__PURE__ */ o(ne, { open: a, onOpenChange: r, children: /* @__PURE__ */ b(se, { className: "sm:max-w-[800px] max-h-[90vh] overflow-y-auto", children: [
46
+ }) => /* @__PURE__ */ o(ne, { open: i, onOpenChange: r, children: /* @__PURE__ */ b(se, { className: "sm:max-w-[800px] max-h-[90vh] overflow-y-auto", children: [
46
47
  /* @__PURE__ */ b(de, { children: [
47
48
  /* @__PURE__ */ b(ce, { className: "flex items-center gap-2 text-xl", children: [
48
49
  /* @__PURE__ */ o("span", { className: "text-2xl", children: "🔄" }),
@@ -72,7 +73,7 @@ const Mr = Et("RotateCcw", [
72
73
  ] }),
73
74
  /* @__PURE__ */ b(ue, { className: "gap-2", children: [
74
75
  /* @__PURE__ */ o(
75
- Qt,
76
+ ee,
76
77
  {
77
78
  variant: "outline",
78
79
  onClick: g,
@@ -80,7 +81,7 @@ const Mr = Et("RotateCcw", [
80
81
  }
81
82
  ),
82
83
  /* @__PURE__ */ b(
83
- Qt,
84
+ ee,
84
85
  {
85
86
  onClick: v,
86
87
  className: "bg-blue-500 hover:bg-blue-600 text-white",
@@ -93,16 +94,16 @@ const Mr = Et("RotateCcw", [
93
94
  ] })
94
95
  ] }) });
95
96
  function Dr({
96
- caption: a
97
+ caption: i
97
98
  }) {
98
99
  const [r, e] = E(""), [d, v] = E("");
99
100
  return K(() => ((() => {
100
- const R = a.getEditorState().read(() => Zt().getTextContent()).split(" • ");
101
+ const R = i.getEditorState().read(() => Qt().getTextContent()).split(" • ");
101
102
  e(R[0] || ""), v(R[1] || "");
102
- })(), a.registerUpdateListener(({ editorState: z }) => {
103
- const k = z.read(() => Zt().getTextContent()).split(" • ");
103
+ })(), i.registerUpdateListener(({ editorState: z }) => {
104
+ const k = z.read(() => Qt().getTextContent()).split(" • ");
104
105
  e(k[0] || ""), v(k[1] || "");
105
- })), [a]), /* @__PURE__ */ o("div", { className: "signature-caption-container", children: /* @__PURE__ */ b("div", { className: "signature-caption-info", children: [
106
+ })), [i]), /* @__PURE__ */ o("div", { className: "signature-caption-container", children: /* @__PURE__ */ b("div", { className: "signature-caption-info", children: [
106
107
  r && /* @__PURE__ */ o("span", { className: "signature-user-name", children: r }),
107
108
  r && d && /* @__PURE__ */ o("span", { className: "signature-separator" }),
108
109
  d && /* @__PURE__ */ o("span", { className: "signature-timestamp", children: d }),
@@ -110,49 +111,49 @@ function Dr({
110
111
  ] }) });
111
112
  }
112
113
  const Lr = "/transform-image/";
113
- function ut(a) {
114
- if (!zt || a.startsWith("data:") || a.toLowerCase().endsWith(".svg")) return !1;
114
+ function ut(i) {
115
+ if (!zt || i.startsWith("data:") || i.toLowerCase().endsWith(".svg")) return !1;
115
116
  try {
116
- const r = new URL(a).origin, e = new URL(zt).origin;
117
+ const r = new URL(i).origin, e = new URL(zt).origin;
117
118
  return r === e;
118
119
  } catch {
119
120
  return !1;
120
121
  }
121
122
  }
122
- function ge(a) {
123
- if (!ut(a)) return null;
123
+ function ge(i) {
124
+ if (!ut(i)) return null;
124
125
  try {
125
- const e = new URL(a).pathname.replace(/^\//, ""), d = "transform-image/";
126
+ const e = new URL(i).pathname.replace(/^\//, ""), d = "transform-image/";
126
127
  return e.startsWith(d) ? e.slice(d.length) || null : e || null;
127
128
  } catch {
128
129
  return null;
129
130
  }
130
131
  }
131
- function Tr(a, r) {
132
- if (!ut(a)) return a;
133
- const e = ge(a);
134
- if (!e) return a;
132
+ function Tr(i, r) {
133
+ if (!ut(i)) return i;
134
+ const e = ge(i);
135
+ if (!e) return i;
135
136
  const d = `${r.x},${r.y},${r.width},${r.height}`;
136
137
  return `${zt.replace(/\/$/, "")}${Lr}${e}?crop=${d}`;
137
138
  }
138
- function ae(a) {
139
- if (!ut(a)) return a;
139
+ function ie(i) {
140
+ if (!ut(i)) return i;
140
141
  try {
141
- const r = new URL(a);
142
+ const r = new URL(i);
142
143
  return r.searchParams.delete("crop"), r.toString();
143
144
  } catch {
144
- return a;
145
+ return i;
145
146
  }
146
147
  }
147
- function kt(a) {
148
- if (!ut(a)) return ae(a);
149
- const r = ge(a);
150
- return r ? `${zt.replace(/\/$/, "")}/${r}` : ae(a);
148
+ function kt(i) {
149
+ if (!ut(i)) return ie(i);
150
+ const r = ge(i);
151
+ return r ? `${zt.replace(/\/$/, "")}/${r}` : ie(i);
151
152
  }
152
- function $r(a) {
153
+ function $r(i) {
153
154
  if (typeof document > "u") return;
154
155
  let r = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
155
- e.type = "text/css", r.appendChild(e), e.styleSheet ? e.styleSheet.cssText = a : e.appendChild(document.createTextNode(a));
156
+ e.type = "text/css", r.appendChild(e), e.styleSheet ? e.styleSheet.cssText = i : e.appendChild(document.createTextNode(i));
156
157
  }
157
158
  Array(12).fill(0);
158
159
  let Ht = 1;
@@ -310,14 +311,14 @@ class Wr {
310
311
  }, this.getActiveToasts = () => this.toasts.filter((r) => !this.dismissedToasts.has(r.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
311
312
  }
312
313
  }
313
- const O = new Wr(), Yr = (a, r) => {
314
+ const O = new Wr(), Yr = (i, r) => {
314
315
  const e = r?.id || Ht++;
315
316
  return O.addToast({
316
- title: a,
317
+ title: i,
317
318
  ...r,
318
319
  id: e
319
320
  }), e;
320
- }, Or = (a) => a && typeof a == "object" && "ok" in a && typeof a.ok == "boolean" && "status" in a && typeof a.status == "number", jr = Yr, _r = () => O.toasts, Hr = () => O.getActiveToasts(), Fr = Object.assign(jr, {
321
+ }, Or = (i) => i && typeof i == "object" && "ok" in i && typeof i.ok == "boolean" && "status" in i && typeof i.status == "number", jr = Yr, _r = () => O.toasts, Hr = () => O.getActiveToasts(), Fr = Object.assign(jr, {
321
322
  success: O.success,
322
323
  info: O.info,
323
324
  warning: O.warning,
@@ -333,7 +334,7 @@ const O = new Wr(), Yr = (a, r) => {
333
334
  });
334
335
  $r("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
335
336
  function Xr({
336
- open: a,
337
+ open: i,
337
338
  onOpenChange: r,
338
339
  src: e,
339
340
  altText: d,
@@ -341,7 +342,7 @@ function Xr({
341
342
  height: g,
342
343
  onCropApply: z
343
344
  }) {
344
- const [R, k] = E("freeform"), [C, P] = E(e), [l, N] = E(!1), x = G(null), L = G(null), [n, W] = E({ x: 0, y: 0, width: 0, height: 0 }), [I, T] = E({ x: 0, y: 0, width: 0, height: 0 }), it = G(null), mt = te(() => typeof v == "number" && typeof g == "number" && g > 0 ? v / g : n.width > 0 && n.height > 0 ? n.width / n.height : null, [n.height, n.width, g, v]), yt = te(() => {
345
+ const [R, k] = E("freeform"), [C, P] = E(e), [l, N] = E(!1), x = G(null), L = G(null), [n, W] = E({ x: 0, y: 0, width: 0, height: 0 }), [I, T] = E({ x: 0, y: 0, width: 0, height: 0 }), at = G(null), mt = Zt(() => typeof v == "number" && typeof g == "number" && g > 0 ? v / g : n.width > 0 && n.height > 0 ? n.width / n.height : null, [n.height, n.width, g, v]), yt = Zt(() => {
345
346
  switch (R) {
346
347
  case "original":
347
348
  return mt;
@@ -403,7 +404,7 @@ function Xr({
403
404
  });
404
405
  }, []), q = S(
405
406
  (s) => {
406
- n.width <= 0 || n.height <= 0 || (s.preventDefault(), s.stopPropagation(), s.target.setPointerCapture?.(s.pointerId), it.current = {
407
+ n.width <= 0 || n.height <= 0 || (s.preventDefault(), s.stopPropagation(), s.target.setPointerCapture?.(s.pointerId), at.current = {
407
408
  mode: "move",
408
409
  startX: s.clientX,
409
410
  startY: s.clientY,
@@ -413,7 +414,7 @@ function Xr({
413
414
  [n.height, n.width, I]
414
415
  ), wt = S(
415
416
  (s, p) => {
416
- n.width <= 0 || n.height <= 0 || (s.preventDefault(), s.stopPropagation(), s.target.setPointerCapture?.(s.pointerId), it.current = {
417
+ n.width <= 0 || n.height <= 0 || (s.preventDefault(), s.stopPropagation(), s.target.setPointerCapture?.(s.pointerId), at.current = {
417
418
  mode: p,
418
419
  startX: s.clientX,
419
420
  startY: s.clientY,
@@ -442,9 +443,9 @@ function Xr({
442
443
  f.width = Math.min(f.width, s.naturalWidth - f.x), f.height = Math.min(f.height, s.naturalHeight - f.y), r(!1), Promise.resolve(z(f));
443
444
  }, [n, I, z, r]);
444
445
  return K(() => {
445
- a && (W({ x: 0, y: 0, width: 0, height: 0 }), T({ x: 0, y: 0, width: 0, height: 0 }), N(!1), P(kt(e)));
446
- }, [a, e]), K(() => {
447
- if (!a) return;
446
+ i && (W({ x: 0, y: 0, width: 0, height: 0 }), T({ x: 0, y: 0, width: 0, height: 0 }), N(!1), P(kt(e)));
447
+ }, [i, e]), K(() => {
448
+ if (!i) return;
448
449
  const s = x.current;
449
450
  if (!s) return;
450
451
  const p = new ResizeObserver(() => {
@@ -457,10 +458,10 @@ function Xr({
457
458
  return window.addEventListener("resize", f), () => {
458
459
  p.disconnect(), window.removeEventListener("resize", f);
459
460
  };
460
- }, [a, nt]), K(() => {
461
- if (!a) return;
461
+ }, [i, nt]), K(() => {
462
+ if (!i) return;
462
463
  const s = (y) => {
463
- const f = it.current;
464
+ const f = at.current;
464
465
  if (!f) return;
465
466
  y.preventDefault();
466
467
  const w = y.clientX - f.startX, F = y.clientY - f.startY, gt = n.width, ft = n.height, tt = yt ?? null, { x: V, y: st, width: j, height: J } = f.initialRect;
@@ -480,20 +481,20 @@ function Xr({
480
481
  let _ = V, et = st, X = j, B = J;
481
482
  D.includes("e") && (X = j + w), D.includes("w") && (_ = V + w, X = j - w), D.includes("s") && (B = J + F), D.includes("n") && (et = st + F, B = J - F), tt != null && tt > 0 && (D === "e" || D === "w" ? (B = X / tt, D.includes("n") && (et = st + J - B)) : D === "n" || D === "s" ? (X = B * tt, D.includes("w") && (_ = V + j - X)) : (B = X / tt, D.includes("n") && (et = st + J - B), D.includes("w") && (_ = V + j - X))), T(Y({ x: _, y: et, width: X, height: B }));
482
483
  }, p = () => {
483
- it.current = null;
484
+ at.current = null;
484
485
  };
485
486
  return window.addEventListener("pointermove", s), window.addEventListener("pointerup", p), () => {
486
487
  window.removeEventListener("pointermove", s), window.removeEventListener("pointerup", p);
487
488
  };
488
489
  }, [
489
- a,
490
+ i,
490
491
  n.width,
491
492
  n.height,
492
493
  yt,
493
494
  Y
494
495
  ]), K(() => {
495
- a && xt(yt);
496
- }, [a, yt, n, xt]), /* @__PURE__ */ o(ne, { open: a, onOpenChange: r, children: /* @__PURE__ */ o(
496
+ i && xt(yt);
497
+ }, [i, yt, n, xt]), /* @__PURE__ */ o(ne, { open: i, onOpenChange: r, children: /* @__PURE__ */ o(
497
498
  se,
498
499
  {
499
500
  className: "sm:cteditor-max-w-[860px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-xl cteditor-overflow-hidden cteditor-p-0",
@@ -589,8 +590,8 @@ function Xr({
589
590
  /* @__PURE__ */ o("p", { className: "cteditor-text-sm cteditor-font-medium cteditor-mb-2", children: "Aspect ratio" }),
590
591
  /* @__PURE__ */ o("div", { className: "cteditor-grid cteditor-grid-cols-3 cteditor-gap-2", children: [
591
592
  { id: "freeform", label: "Freeform", icon: me },
592
- { id: "original", label: "Original", icon: Le },
593
- { id: "1:1", label: "1:1", icon: Te },
593
+ { id: "original", label: "Original", icon: dr },
594
+ { id: "1:1", label: "1:1", icon: cr },
594
595
  { id: "4:3", label: "4:3", icon: re },
595
596
  { id: "16:9", label: "16:9", icon: re },
596
597
  { id: "3:4", label: "3:4", icon: oe },
@@ -666,20 +667,20 @@ function Xr({
666
667
  }
667
668
  ) });
668
669
  }
669
- const Rt = /* @__PURE__ */ new Set(), ie = Pr("RIGHT_CLICK_IMAGE_COMMAND");
670
- function Br(a) {
671
- if (!Rt.has(a))
670
+ const Rt = /* @__PURE__ */ new Set(), ae = nr("RIGHT_CLICK_IMAGE_COMMAND");
671
+ function Br(i) {
672
+ if (!Rt.has(i))
672
673
  throw new Promise((r) => {
673
674
  const e = new Image();
674
- e.src = a, e.onload = () => {
675
- Rt.add(a), r(null);
675
+ e.src = i, e.onload = () => {
676
+ Rt.add(i), r(null);
676
677
  }, e.onerror = () => {
677
- Rt.add(a);
678
+ Rt.add(i);
678
679
  };
679
680
  });
680
681
  }
681
682
  function Ur({
682
- altText: a,
683
+ altText: i,
683
684
  className: r,
684
685
  imageRef: e,
685
686
  src: d,
@@ -696,7 +697,7 @@ function Ur({
696
697
  {
697
698
  className: r || void 0,
698
699
  src: d,
699
- alt: a,
700
+ alt: i,
700
701
  ref: e,
701
702
  style: l ? {
702
703
  width: N,
@@ -738,7 +739,7 @@ function Gr() {
738
739
  }
739
740
  );
740
741
  }
741
- function Kr(a, r = 12e3) {
742
+ function Kr(i, r = 12e3) {
742
743
  return new Promise((e, d) => {
743
744
  const v = new Image();
744
745
  let g = !1;
@@ -749,11 +750,11 @@ function Kr(a, r = 12e3) {
749
750
  g || (g = !0, window.clearTimeout(z), e());
750
751
  }, v.onerror = () => {
751
752
  g || (g = !0, window.clearTimeout(z), d(new Error("Image failed to load")));
752
- }, v.src = a;
753
+ }, v.src = i;
753
754
  });
754
755
  }
755
- function po({
756
- src: a,
756
+ function bo({
757
+ src: i,
757
758
  altText: r,
758
759
  nodeKey: e,
759
760
  width: d,
@@ -767,18 +768,18 @@ function po({
767
768
  position: l = "none",
768
769
  linkUrl: N
769
770
  }) {
770
- const x = G(null), L = G(null), [n, W, I] = fr(e), [T, it] = E(!1), mt = G(!1), { isCollabActive: yt } = ir(), [u] = nr(), [Y, xt] = E(null), nt = G(null), [q, wt] = E(!1), Mt = gr(), [s, p] = E(!1), [y, f] = E(""), [w, F] = E(!1), [gt, ft] = E(!1), [tt, V] = E(""), [st, j] = E(""), [J, D] = E(!1), _ = G(null), [et, X] = E(0), [B, ht] = E(!1), It = G(null), [fe, vt] = E(null), [At, Ct] = E(!1), [Ft, Xt] = E(!1), dt = G(null), Pt = $e()?.apiKey, Dt = et > 0 && et < 350;
771
- ee(() => {
771
+ const x = G(null), L = G(null), [n, W, I] = Ue(e), [T, at] = E(!1), mt = G(!1), { isCollabActive: yt } = We(), [u] = Ye(), [Y, xt] = E(null), nt = G(null), [q, wt] = E(!1), Mt = Be(), [s, p] = E(!1), [y, f] = E(""), [w, F] = E(!1), [gt, ft] = E(!1), [tt, V] = E(""), [st, j] = E(""), [J, D] = E(!1), _ = G(null), [et, X] = E(0), [B, ht] = E(!1), It = G(null), [fe, vt] = E(null), [At, Ct] = E(!1), [Ft, Xt] = E(!1), dt = G(null), Pt = lr()?.apiKey, Dt = et > 0 && et < 350;
772
+ te(() => {
772
773
  if (!n || !lt(Y) || q) {
773
774
  vt(null);
774
775
  return;
775
776
  }
776
- const t = It.current, i = u.getRootElement(), c = t?.parentElement;
777
- if (!t || !i || !c) {
777
+ const t = It.current, a = u.getRootElement(), c = t?.parentElement;
778
+ if (!t || !a || !c) {
778
779
  vt(null);
779
780
  return;
780
781
  }
781
- const m = i.getBoundingClientRect(), h = c.getBoundingClientRect(), A = t.getBoundingClientRect(), $ = 8, H = A.width;
782
+ const m = a.getBoundingClientRect(), h = c.getBoundingClientRect(), A = t.getBoundingClientRect(), $ = 8, H = A.width;
782
783
  if (H <= 0) {
783
784
  vt(null);
784
785
  return;
@@ -805,22 +806,22 @@ function po({
805
806
  mt.current || x.current && X(x.current.offsetWidth);
806
807
  };
807
808
  t();
808
- const i = new ResizeObserver(t);
809
- return i.observe(x.current), () => i.disconnect();
809
+ const a = new ResizeObserver(t);
810
+ return a.observe(x.current), () => a.disconnect();
810
811
  }
811
- }, [d, v, n]), ee(() => {
812
+ }, [d, v, n]), te(() => {
812
813
  if ((l === "left" || l === "right") && typeof d == "number" && x.current) {
813
- const t = x.current.closest(".editor-image"), i = t?.parentElement, c = u.getRootElement(), m = c ? c.getBoundingClientRect().width : d + 32, h = `${Math.min(d + 32, m)}px`;
814
- return t && (t.style.removeProperty("display"), t.style.setProperty("max-width", h, "important")), i && i.style.setProperty("max-width", h, "important"), () => {
815
- t && (t.style.removeProperty("max-width"), t.style.removeProperty("display")), i && i.style.removeProperty("max-width");
814
+ const t = x.current.closest(".editor-image"), a = t?.parentElement, c = u.getRootElement(), m = c ? c.getBoundingClientRect().width : d + 32, h = `${Math.min(d + 32, m)}px`;
815
+ return t && (t.style.removeProperty("display"), t.style.setProperty("max-width", h, "important")), a && a.style.setProperty("max-width", h, "important"), () => {
816
+ t && (t.style.removeProperty("max-width"), t.style.removeProperty("display")), a && a.style.removeProperty("max-width");
816
817
  };
817
818
  }
818
819
  }, [l, d, u]);
819
820
  const Lt = S(
820
821
  (t) => {
821
- const i = rt();
822
- return n && lt(i) && (t.preventDefault(), u.update(() => {
823
- i.getNodes().forEach((m) => {
822
+ const a = rt();
823
+ return n && lt(a) && (t.preventDefault(), u.update(() => {
824
+ a.getNodes().forEach((m) => {
824
825
  if (Z(m)) {
825
826
  const h = m.getParent();
826
827
  m.remove(), h && _t(h) && h.getChildrenSize() === 0 && h.setFormat("left");
@@ -831,8 +832,8 @@ function po({
831
832
  [u, n]
832
833
  ), Bt = S(
833
834
  (t) => {
834
- const i = rt(), c = L.current;
835
- if (n && lt(i) && i.getNodes().length === 1) {
835
+ const a = rt(), c = L.current;
836
+ if (n && lt(a) && a.getNodes().length === 1) {
836
837
  if (R)
837
838
  return bt(null), t.preventDefault(), k.focus(), !0;
838
839
  if (c !== null && c !== document.activeElement)
@@ -844,33 +845,33 @@ function po({
844
845
  ), Ut = S(
845
846
  (t) => nt.current === k || L.current === t.target ? (bt(null), u.update(() => {
846
847
  W(!0);
847
- const i = u.getRootElement();
848
- i !== null && i.focus();
848
+ const a = u.getRootElement();
849
+ a !== null && a.focus();
849
850
  }), !0) : !1,
850
851
  [k, u, W]
851
852
  ), Tt = S(
852
853
  (t) => {
853
- const i = t;
854
+ const a = t;
854
855
  if (T)
855
856
  return !0;
856
- const c = i.target;
857
+ const c = a.target;
857
858
  if (c.closest("button") && x.current && c.closest(".editor-image") === x.current.closest(".editor-image"))
858
859
  return !0;
859
860
  const m = c === x.current;
860
861
  let h = !1;
861
862
  if (!m && x.current) {
862
863
  const A = x.current.getBoundingClientRect();
863
- h = i.clientX >= A.left && i.clientX <= A.right && i.clientY >= A.top && i.clientY <= A.bottom;
864
+ h = a.clientX >= A.left && a.clientX <= A.right && a.clientY >= A.top && a.clientY <= A.bottom;
864
865
  }
865
- return m || h ? (i.shiftKey ? W(!n) : (I(), W(!0)), !0) : !1;
866
+ return m || h ? (a.shiftKey ? W(!n) : (I(), W(!0)), !0) : !1;
866
867
  },
867
868
  [T, n, W, I]
868
869
  ), $t = S(
869
870
  (t) => {
870
871
  u.getEditorState().read(() => {
871
- const i = rt();
872
- t.target.tagName === "IMG" && pr(i) && i.getNodes().length === 1 && u.dispatchCommand(
873
- ie,
872
+ const a = rt();
873
+ t.target.tagName === "IMG" && Ke(a) && a.getNodes().length === 1 && u.dispatchCommand(
874
+ ae,
874
875
  t
875
876
  );
876
877
  });
@@ -879,49 +880,49 @@ function po({
879
880
  );
880
881
  K(() => {
881
882
  let t = !0;
882
- const i = u.getRootElement(), c = hr(
883
+ const a = u.getRootElement(), c = Ge(
883
884
  u.registerUpdateListener(({ editorState: m }) => {
884
885
  t && xt(m.read(() => rt()));
885
886
  }),
886
887
  u.registerCommand(
887
- br,
888
+ qe,
888
889
  (m, h) => (nt.current = h, !1),
889
890
  ot
890
891
  ),
891
892
  u.registerCommand(
892
- yr,
893
+ Ve,
893
894
  Tt,
894
895
  ot
895
896
  ),
896
897
  u.registerCommand(
897
- ie,
898
+ ae,
898
899
  Tt,
899
900
  ot
900
901
  ),
901
902
  u.registerCommand(
902
- xr,
903
+ Je,
903
904
  (m) => m.target === x.current ? (m.preventDefault(), !0) : !1,
904
905
  ot
905
906
  ),
906
907
  u.registerCommand(
907
- wr,
908
+ Qe,
908
909
  Lt,
909
910
  ot
910
911
  ),
911
912
  u.registerCommand(
912
- vr,
913
+ Ze,
913
914
  Lt,
914
915
  ot
915
916
  ),
916
- u.registerCommand(Cr, Bt, ot),
917
+ u.registerCommand(tr, Bt, ot),
917
918
  u.registerCommand(
918
- Nr,
919
+ er,
919
920
  Ut,
920
921
  ot
921
922
  )
922
923
  );
923
- return i?.addEventListener("contextmenu", $t), () => {
924
- t = !1, c(), i?.removeEventListener("contextmenu", $t);
924
+ return a?.addEventListener("contextmenu", $t), () => {
925
+ t = !1, c(), a?.removeEventListener("contextmenu", $t);
925
926
  };
926
927
  }, [
927
928
  I,
@@ -938,22 +939,22 @@ function po({
938
939
  ]);
939
940
  const he = () => {
940
941
  u.update(() => {
941
- const t = at(e);
942
+ const t = it(e);
942
943
  Z(t) && t.setShowCaption(!0);
943
944
  });
944
- }, pe = (t, i) => {
945
+ }, pe = (t, a) => {
945
946
  mt.current = !1, setTimeout(() => {
946
- it(!1);
947
+ at(!1);
947
948
  }, 200), u.update(() => {
948
- const c = at(e);
949
- Z(c) && c.setWidthAndHeight(t, i);
949
+ const c = it(e);
950
+ Z(c) && c.setWidthAndHeight(t, a);
950
951
  });
951
952
  }, be = () => {
952
- mt.current = !0, it(!0);
953
+ mt.current = !0, at(!0);
953
954
  }, ye = (t) => {
954
- if (t.preventDefault(), t.stopPropagation(), a.startsWith("data:")) {
955
- const i = window.open("", "_blank");
956
- i && (i.document.write(`
955
+ if (t.preventDefault(), t.stopPropagation(), i.startsWith("data:")) {
956
+ const a = window.open("", "_blank");
957
+ a && (a.document.write(`
957
958
  <!DOCTYPE html>
958
959
  <html>
959
960
  <head>
@@ -975,27 +976,27 @@ function po({
975
976
  </style>
976
977
  </head>
977
978
  <body>
978
- <img src="${a}" alt="${r || "Image"}" />
979
+ <img src="${i}" alt="${r || "Image"}" />
979
980
  </body>
980
981
  </html>
981
- `), i.document.close());
982
+ `), a.document.close());
982
983
  } else
983
- window.open(a, "_blank");
984
+ window.open(i, "_blank");
984
985
  }, xe = (t) => {
985
986
  t.preventDefault(), t.stopPropagation(), u.update(() => {
986
- const i = at(e);
987
- if (Z(i)) {
988
- const c = i.getParent();
989
- i.remove(), c && _t(c) && c.getChildrenSize() === 0 && c.setFormat("left");
987
+ const a = it(e);
988
+ if (Z(a)) {
989
+ const c = a.getParent();
990
+ a.remove(), c && _t(c) && c.getChildrenSize() === 0 && c.setFormat("left");
990
991
  }
991
992
  });
992
- }, pt = (t, i) => {
993
+ }, pt = (t, a) => {
993
994
  t.preventDefault(), t.stopPropagation(), u.update(() => {
994
- const c = at(e);
995
+ const c = it(e);
995
996
  if (Z(c)) {
996
- c.setPosition(i);
997
+ c.setPosition(a);
997
998
  const m = c.getParent();
998
- m && _t(m) && (i === "left" ? m.setFormat("left") : i === "right" ? m.setFormat("right") : m.setFormat(""));
999
+ m && _t(m) && (a === "left" ? m.setFormat("left") : a === "right" ? m.setFormat("right") : m.setFormat(""));
999
1000
  }
1000
1001
  });
1001
1002
  }, we = (t) => {
@@ -1005,14 +1006,14 @@ function po({
1005
1006
  }, []), Ce = S(
1006
1007
  (t) => {
1007
1008
  t.preventDefault(), t.stopPropagation();
1008
- const i = kt(a);
1009
- if (!(ut(a) && a !== i) && !(typeof d == "number" || typeof v == "number"))
1009
+ const a = kt(i);
1010
+ if (!(ut(i) && i !== a) && !(typeof d == "number" || typeof v == "number"))
1010
1011
  return;
1011
1012
  u.update(
1012
1013
  () => {
1013
- const A = at(e);
1014
+ const A = it(e);
1014
1015
  if (!Z(A)) return;
1015
- A.setSrc(i), A.setWidthAndHeight("inherit", "inherit");
1016
+ A.setSrc(a), A.setWidthAndHeight("inherit", "inherit");
1016
1017
  const $ = rt();
1017
1018
  $ && bt($.clone());
1018
1019
  },
@@ -1020,15 +1021,15 @@ function po({
1020
1021
  );
1021
1022
  const h = x.current;
1022
1023
  h && requestAnimationFrame(() => {
1023
- h.src = i, h.style.removeProperty("width"), h.style.removeProperty("height");
1024
+ h.src = a, h.style.removeProperty("width"), h.style.removeProperty("height");
1024
1025
  }), M.success("Image reset to original size and crop");
1025
1026
  },
1026
- [u, e, a, d, v]
1027
+ [u, e, i, d, v]
1027
1028
  ), Ne = S(
1028
1029
  async (t) => {
1029
- let i = a;
1030
- if (ut(a))
1031
- i = kt(a);
1030
+ let a = i;
1031
+ if (ut(i))
1032
+ a = kt(i);
1032
1033
  else {
1033
1034
  if (!Pt) {
1034
1035
  M.error("API key is required to upload and crop external images.");
@@ -1036,9 +1037,9 @@ function po({
1036
1037
  }
1037
1038
  const m = M.loading("Uploading image…");
1038
1039
  try {
1039
- i = (await We.post(
1040
- Ye.project.fileUploadFromUrl,
1041
- { url: a, prefix: "uploads" },
1040
+ a = (await ur.post(
1041
+ mr.project.fileUploadFromUrl,
1042
+ { url: i, prefix: "uploads" },
1042
1043
  { headers: { "x-api-key": Pt } }
1043
1044
  )).data.fileUrl, M.dismiss(m);
1044
1045
  } catch {
@@ -1046,15 +1047,15 @@ function po({
1046
1047
  return;
1047
1048
  }
1048
1049
  }
1049
- const c = Tr(i, t);
1050
- if (c === i) {
1050
+ const c = Tr(a, t);
1051
+ if (c === a) {
1051
1052
  M.error("Cropping is only supported for images hosted on the CDN.");
1052
1053
  return;
1053
1054
  }
1054
1055
  Ct(!0), dt.current = c;
1055
1056
  try {
1056
1057
  await Kr(c), Rt.add(c), u.update(() => {
1057
- const m = at(e);
1058
+ const m = it(e);
1058
1059
  if (!Z(m)) return;
1059
1060
  m.setSrc(c), m.setWidthAndHeight(t.width, t.height);
1060
1061
  const h = rt();
@@ -1064,7 +1065,7 @@ function po({
1064
1065
  dt.current = null, Ct(!1), M.error("Crop failed to load. Showing original image.");
1065
1066
  }
1066
1067
  },
1067
- [u, e, a, Pt]
1068
+ [u, e, i, Pt]
1068
1069
  ), ke = S(() => {
1069
1070
  N && !n && (_.current = setTimeout(() => {
1070
1071
  D(!0);
@@ -1080,7 +1081,7 @@ function po({
1080
1081
  n || ht(!1);
1081
1082
  }, [n]), K(() => {
1082
1083
  wt(!1), Xt(!1);
1083
- }, [a]);
1084
+ }, [i]);
1084
1085
  const Kt = async () => {
1085
1086
  if (!y.trim() || w) return;
1086
1087
  F(!0);
@@ -1088,7 +1089,7 @@ function po({
1088
1089
  description: "This may take 10-30 seconds. Please wait."
1089
1090
  });
1090
1091
  try {
1091
- let i = y.trim();
1092
+ let a = y.trim();
1092
1093
  const m = y.trim().replace(/^(add|also add|include|with|and)\s+(some|a|an)\s+/gi, "").replace(/^(add|also add|include|with|and)\s+/gi, "").trim(), h = (U) => {
1093
1094
  const Ot = U.toLowerCase();
1094
1095
  return [
@@ -1114,13 +1115,13 @@ function po({
1114
1115
  const U = P.trim();
1115
1116
  h(U) && r && r !== "Generated image" && r.trim() ? A = r.trim() : A = U;
1116
1117
  } else r && r !== "Generated image" && r.trim() && (A = r.trim());
1117
- A ? i = `${A} with ${m}` : i = m;
1118
- const $ = await fetch(`${tr}/agent/stream`, {
1118
+ A ? a = `${A} with ${m}` : a = m;
1119
+ const $ = await fetch(`${Ir}/agent/stream`, {
1119
1120
  method: "POST",
1120
1121
  headers: { "Content-Type": "application/json" },
1121
1122
  body: JSON.stringify({
1122
1123
  type: "general",
1123
- query: `Generate Image: ${i}`,
1124
+ query: `Generate Image: ${a}`,
1124
1125
  model: "openai",
1125
1126
  api_key: Pt || ""
1126
1127
  })
@@ -1160,51 +1161,51 @@ function po({
1160
1161
  throw new Error("Failed to generate image - no image received");
1161
1162
  M.dismiss(t), M.success("Image refined successfully!", {
1162
1163
  description: "Compare the images and choose which to keep."
1163
- }), V(ct), j(i), ft(!0), f(""), p(!1);
1164
- } catch (i) {
1165
- if (M.dismiss(t), i instanceof er) {
1166
- const c = i.code === "API_KEYS_DISABLED" ? "API Keys Disabled" : "API Key Required";
1164
+ }), V(ct), j(a), ft(!0), f(""), p(!1);
1165
+ } catch (a) {
1166
+ if (M.dismiss(t), a instanceof Pr) {
1167
+ const c = a.code === "API_KEYS_DISABLED" ? "API Keys Disabled" : "API Key Required";
1167
1168
  M.error(c, {
1168
- description: i.message,
1169
+ description: a.message,
1169
1170
  duration: 8e3
1170
1171
  });
1171
- } else i instanceof rr ? M.error("Credits Issue", {
1172
- description: i.message,
1172
+ } else a instanceof Sr ? M.error("Credits Issue", {
1173
+ description: a.message,
1173
1174
  duration: 8e3
1174
1175
  }) : M.error("Failed to refine image", {
1175
- description: i instanceof Error ? i.message : "Unknown error. Please try again."
1176
+ description: a instanceof Error ? a.message : "Unknown error. Please try again."
1176
1177
  });
1177
1178
  } finally {
1178
1179
  F(!1);
1179
1180
  }
1180
1181
  }, Ee = () => {
1181
1182
  u.update(() => {
1182
- const t = at(e);
1183
+ const t = it(e);
1183
1184
  if (Z(t)) {
1184
1185
  t.setSrc(tt), t.setOriginalPrompt(st);
1185
- const i = rt();
1186
- i && bt(i.clone());
1186
+ const a = rt();
1187
+ a && bt(a.clone());
1187
1188
  }
1188
1189
  }), ft(!1), V(""), j(""), M.success("Image replaced successfully!", {
1189
1190
  description: "The image has been updated with the refined version."
1190
1191
  });
1191
1192
  }, Ie = () => {
1192
1193
  ft(!1), V(""), j("");
1193
- }, Pe = n && lt(Y) && !T, qt = (n || T) && Mt, Wt = kt(a), Se = S(() => {
1194
- dt.current && a === dt.current && (Rt.add(a), dt.current = null, Ct(!1));
1195
- }, [a]), ze = S(() => {
1196
- if (!Ft && ut(a) && a !== Wt) {
1194
+ }, Pe = n && lt(Y) && !T, qt = (n || T) && Mt, Wt = kt(i), Se = S(() => {
1195
+ dt.current && i === dt.current && (Rt.add(i), dt.current = null, Ct(!1));
1196
+ }, [i]), ze = S(() => {
1197
+ if (!Ft && ut(i) && i !== Wt) {
1197
1198
  Xt(!0), wt(!1), Ct(!1), dt.current = null, u.update(() => {
1198
- const i = at(e);
1199
- if (!Z(i)) return;
1200
- i.setSrc(Wt);
1199
+ const a = it(e);
1200
+ if (!Z(a)) return;
1201
+ a.setSrc(Wt);
1201
1202
  const c = rt();
1202
1203
  c && bt(c.clone());
1203
1204
  }), M.error("Cropped image failed. Showing original image instead.");
1204
1205
  return;
1205
1206
  }
1206
1207
  Ct(!1), dt.current = null, wt(!0);
1207
- }, [Ft, a, Wt, u, e]), Me = () => l === "left" || l === "right" ? {
1208
+ }, [Ft, i, Wt, u, e]), Me = () => l === "left" || l === "right" ? {
1208
1209
  position: "relative",
1209
1210
  display: "block",
1210
1211
  width: "100%"
@@ -1246,7 +1247,7 @@ function po({
1246
1247
  },
1247
1248
  [T, n, W, I]
1248
1249
  );
1249
- return /* @__PURE__ */ o(Sr, { fallback: null, children: /* @__PURE__ */ b(Jt, { children: [
1250
+ return /* @__PURE__ */ o(sr, { fallback: null, children: /* @__PURE__ */ b(Jt, { children: [
1250
1251
  /* @__PURE__ */ b(
1251
1252
  "div",
1252
1253
  {
@@ -1260,7 +1261,7 @@ function po({
1260
1261
  Ur,
1261
1262
  {
1262
1263
  className: qt ? `focused ${lt(Y) ? "draggable" : ""}` : N ? "cteditor-cursor-pointer" : null,
1263
- src: a,
1264
+ src: i,
1264
1265
  altText: r,
1265
1266
  imageRef: x,
1266
1267
  width: d,
@@ -1271,7 +1272,7 @@ function po({
1271
1272
  }
1272
1273
  ),
1273
1274
  At && !q && /* @__PURE__ */ b("div", { className: "cteditor-absolute cteditor-inset-0 cteditor-flex cteditor-flex-col cteditor-items-center cteditor-justify-center cteditor-rounded-lg cteditor-bg-background/50 cteditor-backdrop-blur-[1px] cteditor-pointer-events-none", children: [
1274
- /* @__PURE__ */ o(Oe, { className: "cteditor-w-10 cteditor-h-10 cteditor-text-foreground cteditor-animate-spin cteditor-mb-2", "aria-hidden": !0 }),
1275
+ /* @__PURE__ */ o(gr, { className: "cteditor-w-10 cteditor-h-10 cteditor-text-foreground cteditor-animate-spin cteditor-mb-2", "aria-hidden": !0 }),
1275
1276
  /* @__PURE__ */ o("span", { className: "cteditor-text-sm cteditor-font-medium cteditor-text-foreground", children: "Applying crop..." })
1276
1277
  ] }),
1277
1278
  J && N && !n && /* @__PURE__ */ b(
@@ -1310,7 +1311,7 @@ function po({
1310
1311
  className: ` cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "left" ? "cteditor-bg-foreground/10" : ""}`,
1311
1312
  "aria-label": "Wrap text left",
1312
1313
  title: "Wrap text left",
1313
- children: /* @__PURE__ */ o(je, {})
1314
+ children: /* @__PURE__ */ o(fr, {})
1314
1315
  }
1315
1316
  ),
1316
1317
  /* @__PURE__ */ o(
@@ -1321,7 +1322,7 @@ function po({
1321
1322
  className: ` cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "right" ? "cteditor-bg-foreground/10" : ""}`,
1322
1323
  "aria-label": "Wrap text right",
1323
1324
  title: "Wrap text right",
1324
- children: /* @__PURE__ */ o(_e, {})
1325
+ children: /* @__PURE__ */ o(hr, {})
1325
1326
  }
1326
1327
  ),
1327
1328
  /* @__PURE__ */ o("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
@@ -1333,7 +1334,7 @@ function po({
1333
1334
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "inline-left" ? "cteditor-bg-foreground/10" : ""}`,
1334
1335
  "aria-label": "Align left",
1335
1336
  title: "Align left (no text wrap)",
1336
- children: /* @__PURE__ */ o(He, {})
1337
+ children: /* @__PURE__ */ o(pr, {})
1337
1338
  }
1338
1339
  ),
1339
1340
  /* @__PURE__ */ o(
@@ -1344,7 +1345,7 @@ function po({
1344
1345
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "inline-center" || l === "full" ? "cteditor-bg-foreground/10" : ""}`,
1345
1346
  "aria-label": "Align center",
1346
1347
  title: "Align center (no text wrap)",
1347
- children: /* @__PURE__ */ o(Fe, {})
1348
+ children: /* @__PURE__ */ o(br, {})
1348
1349
  }
1349
1350
  ),
1350
1351
  /* @__PURE__ */ o(
@@ -1355,7 +1356,7 @@ function po({
1355
1356
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "inline-right" ? "cteditor-bg-foreground/10" : ""}`,
1356
1357
  "aria-label": "Align right",
1357
1358
  title: "Align right (no text wrap)",
1358
- children: /* @__PURE__ */ o(Xe, {})
1359
+ children: /* @__PURE__ */ o(yr, {})
1359
1360
  }
1360
1361
  ),
1361
1362
  /* @__PURE__ */ o("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
@@ -1367,11 +1368,11 @@ function po({
1367
1368
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${l === "none" ? "cteditor-bg-foreground/10" : ""}`,
1368
1369
  "aria-label": "Inline",
1369
1370
  title: "Inline with text",
1370
- children: /* @__PURE__ */ o(Be, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
1371
+ children: /* @__PURE__ */ o(xr, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
1371
1372
  }
1372
1373
  ),
1373
1374
  /* @__PURE__ */ o("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
1374
- !a.startsWith("data:") && !a.toLowerCase().endsWith(".svg") && /* @__PURE__ */ b(Jt, { children: [
1375
+ !i.startsWith("data:") && !i.toLowerCase().endsWith(".svg") && /* @__PURE__ */ b(Jt, { children: [
1375
1376
  /* @__PURE__ */ o(
1376
1377
  "button",
1377
1378
  {
@@ -1383,7 +1384,7 @@ function po({
1383
1384
  children: /* @__PURE__ */ o(me, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
1384
1385
  }
1385
1386
  ),
1386
- (kt(a) !== a || typeof d == "number" || typeof v == "number") && /* @__PURE__ */ o(
1387
+ (kt(i) !== i || typeof d == "number" || typeof v == "number") && /* @__PURE__ */ o(
1387
1388
  "button",
1388
1389
  {
1389
1390
  type: "button",
@@ -1404,7 +1405,7 @@ function po({
1404
1405
  className: " cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/95 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
1405
1406
  "aria-label": "Visit link",
1406
1407
  title: `Visit: ${N}`,
1407
- children: /* @__PURE__ */ o(Ue, {})
1408
+ children: /* @__PURE__ */ o(wr, {})
1408
1409
  }
1409
1410
  ),
1410
1411
  P && /* @__PURE__ */ o(
@@ -1417,7 +1418,7 @@ function po({
1417
1418
  className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/90 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
1418
1419
  "aria-label": "Refine image",
1419
1420
  title: "Refine image",
1420
- children: /* @__PURE__ */ o(Ge, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
1421
+ children: /* @__PURE__ */ o(vr, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
1421
1422
  }
1422
1423
  ),
1423
1424
  /* @__PURE__ */ o(
@@ -1430,7 +1431,7 @@ function po({
1430
1431
  className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/90 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
1431
1432
  "aria-label": "Open image in new tab",
1432
1433
  title: "Open in new tab",
1433
- children: /* @__PURE__ */ o(Ke, {})
1434
+ children: /* @__PURE__ */ o(Cr, {})
1434
1435
  }
1435
1436
  ),
1436
1437
  /* @__PURE__ */ o(
@@ -1443,7 +1444,7 @@ function po({
1443
1444
  className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-destructive hover:cteditor-text-destructive-foreground cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
1444
1445
  "aria-label": "Delete image",
1445
1446
  title: "Delete image",
1446
- children: /* @__PURE__ */ o(qe, {})
1447
+ children: /* @__PURE__ */ o(Nr, {})
1447
1448
  }
1448
1449
  )
1449
1450
  ]
@@ -1505,7 +1506,7 @@ function po({
1505
1506
  },
1506
1507
  disabled: w,
1507
1508
  className: "cteditor-size-9 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-text-sm cteditor-rounded-md cteditor-bg-background cteditor-border cteditor-border-border cteditor-text-foreground hover:cteditor-bg-accent disabled:cteditor-opacity-50 disabled:cteditor-cursor-not-allowed cteditor-transition-colors",
1508
- children: /* @__PURE__ */ o(Ve, { size: 16 })
1509
+ children: /* @__PURE__ */ o(kr, { size: 16 })
1509
1510
  }
1510
1511
  )
1511
1512
  ] })
@@ -1540,42 +1541,42 @@ function po({
1540
1541
  ...l === "inline-center" || l === "full" ? { margin: "0 auto" } : l === "inline-right" ? { marginLeft: "auto" } : l === "left" ? { float: "left", clear: "left" } : l === "right" ? { float: "right", clear: "right" } : {}
1541
1542
  },
1542
1543
  children: /* @__PURE__ */ b(
1543
- lr,
1544
+ He,
1544
1545
  {
1545
1546
  initialEditor: k,
1546
1547
  initialNodes: [
1547
- kr,
1548
- Rr,
1549
- Er,
1550
- Ir,
1548
+ rr,
1551
1549
  or,
1552
- Je
1550
+ ir,
1551
+ ar,
1552
+ Te,
1553
+ Le
1553
1554
  ],
1554
1555
  children: [
1555
- /* @__PURE__ */ o(ar, {}),
1556
+ /* @__PURE__ */ o($e, {}),
1556
1557
  /* @__PURE__ */ o(
1557
- mr,
1558
+ Xe,
1558
1559
  {
1559
1560
  contentEditable: /* @__PURE__ */ o(
1560
- sr,
1561
+ Oe,
1561
1562
  {
1562
1563
  "aria-placeholder": "Enter a caption...",
1563
1564
  placeholder: () => /* @__PURE__ */ o("span", { className: "cteditor-text-xs cteditor-absolute cteditor-left-2 cteditor-top-[7px]", children: "Enter a caption..." }),
1564
1565
  className: " cteditor-outline-none !cteditor-shadow-none cteditor-bg-foreground/10 cteditor-border !cteditor-border-foreground/15 cteditor-py-1 cteditor-px-2 cteditor-rounded-sm cteditor-text-xs cteditor-relative"
1565
1566
  }
1566
1567
  ),
1567
- ErrorBoundary: dr
1568
+ ErrorBoundary: je
1568
1569
  }
1569
1570
  ),
1570
1571
  /* @__PURE__ */ o(
1571
- ur,
1572
+ Fe,
1572
1573
  {
1573
1574
  onChange: () => {
1574
1575
  }
1575
1576
  }
1576
1577
  ),
1577
- /* @__PURE__ */ o(cr, {}),
1578
- /* @__PURE__ */ o(Qe, { namespace: Ze.namespace })
1578
+ /* @__PURE__ */ o(_e, {}),
1579
+ /* @__PURE__ */ o(Rr, { namespace: Er.namespace })
1579
1580
  ]
1580
1581
  }
1581
1582
  )
@@ -1586,7 +1587,7 @@ function po({
1586
1587
  {
1587
1588
  open: B,
1588
1589
  onOpenChange: ht,
1589
- src: a,
1590
+ src: i,
1590
1591
  altText: r,
1591
1592
  width: d,
1592
1593
  height: v,
@@ -1598,7 +1599,7 @@ function po({
1598
1599
  {
1599
1600
  open: gt,
1600
1601
  onOpenChange: ft,
1601
- oldImageUrl: a,
1602
+ oldImageUrl: i,
1602
1603
  newImageUrl: tt,
1603
1604
  onReplace: Ee,
1604
1605
  onCancel: Ie
@@ -1607,6 +1608,6 @@ function po({
1607
1608
  ] }) });
1608
1609
  }
1609
1610
  export {
1610
- ie as RIGHT_CLICK_IMAGE_COMMAND,
1611
- po as default
1611
+ ae as RIGHT_CLICK_IMAGE_COMMAND,
1612
+ bo as default
1612
1613
  };