@factorialco/f0-react 11.9.0 → 11.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{ChatPostComposerDialog-4tkKtztM.js → ChatPostComposerDialog-s4prfEkC.js} +2 -2
  2. package/dist/{CoachmarkProvider-BNWfnrT1.js → CoachmarkProvider-DxDuinVA.js} +2 -2
  3. package/dist/{DocumentToolbar-Bje4tVB_.js → DocumentToolbar-BuctnVHN.js} +2 -2
  4. package/dist/{DocxViewer-BDFFylFv.js → DocxViewer-CAGBzliC.js} +1 -1
  5. package/dist/{F0AiProcessingOverlay-BdPY38Zv.js → F0AiProcessingOverlay-Dl_56dL9.js} +1 -1
  6. package/dist/{F0CanvasPanel-Dx9os0A-.js → F0CanvasPanel-C8MuYy_8.js} +541 -536
  7. package/dist/{F0DocumentViewer-evuq7vey.js → F0DocumentViewer-C9gCxjxk.js} +3 -3
  8. package/dist/F0DocumentViewer-CUkiuREP.js +3 -0
  9. package/dist/{F0Map-C2xvlx3b.js → F0Map-D4esyFFE.js} +3 -3
  10. package/dist/{F0VideoPlayer-DEbffC7L.js → F0VideoPlayer-CUUQmvVm.js} +1 -1
  11. package/dist/F0VideoPlayer-rLZ5qvuq.js +1 -0
  12. package/dist/{Map-DP1TxvNC.js → Map-DFCc5qR0.js} +3 -3
  13. package/dist/{PdfThumbnail-ChSb97op.js → PdfThumbnail-D09QDkNP.js} +1 -1
  14. package/dist/{SheetViewer-DZetwBx5.js → SheetViewer-Cvd2xwE5.js} +3 -3
  15. package/dist/{TextViewer-B82aLSSM.js → TextViewer-Bk0Xz1nv.js} +1 -1
  16. package/dist/ai.d.ts +2 -2
  17. package/dist/ai.js +2 -2
  18. package/dist/component-status.js +1 -1
  19. package/dist/experimental.d.ts +2 -2
  20. package/dist/experimental.js +4 -4
  21. package/dist/{exports-CEXBjcFr.d.ts → exports-DsGJH4CD.d.ts} +1 -1
  22. package/dist/f0.d.ts +3 -3
  23. package/dist/f0.js +6 -6
  24. package/dist/{index-CcW099M2.d.ts → index-CL4pclEl.d.ts} +12 -0
  25. package/dist/{maplibre-2JuTLOrK.js → maplibre-B5inXAW8.js} +1 -1
  26. package/dist/{pdfWorker-B4pu3I7O.js → pdfWorker-5t9rytw2.js} +1 -1
  27. package/dist/styles.css +1 -1
  28. package/dist/{types-5-4xFFDx.d.ts → types-Di2cYBLz.d.ts} +1 -1
  29. package/package.json +1 -1
  30. package/dist/F0DocumentViewer-DtrTLkWs.js +0 -3
  31. package/dist/F0VideoPlayer-CAgvYcAY.js +0 -1
@@ -40644,7 +40644,7 @@ var $$ = Ue("F0FileItem", be(Q$)), e1 = $$, t1 = 2, n1 = 70, r1 = .08, i1 = 6, a
40644
40644
  let e = L1();
40645
40645
  if (!e) throw Error("useAttachmentDocumentPreview must be used within an AttachmentPreviewProvider");
40646
40646
  return e;
40647
- }, B1 = Lr(() => import("./F0DocumentViewer-DtrTLkWs.js").then((e) => ({ default: e.F0DocumentViewer }))), V1 = (e) => {
40647
+ }, B1 = Lr(() => import("./F0DocumentViewer-CUkiuREP.js").then((e) => ({ default: e.F0DocumentViewer }))), V1 = (e) => {
40648
40648
  let t = e.lastIndexOf(".");
40649
40649
  return `${t > 0 ? e.slice(0, t) : e}.pdf`;
40650
40650
  }, H1 = () => {
@@ -41097,33 +41097,34 @@ var $$ = Ue("F0FileItem", be(Q$)), e1 = $$, t1 = 2, n1 = 70, r1 = .08, i1 = 6, a
41097
41097
  }, C0 = {
41098
41098
  remotePreviews: !1,
41099
41099
  provided: !0
41100
- }, w0 = Dr.min, T0 = Dr.max, E0 = Dr.default, { min: D0, max: O0, default: k0, mainMin: A0, mainHardMin: j0, splitMinFrame: M0 } = Dr, N0 = M0, P0 = (e) => {
41100
+ }, w0 = Dr.min, T0 = Dr.max, E0 = Dr.default, { min: D0, max: O0, default: k0, mainMin: A0, mainHardMin: j0, splitMinFrame: M0 } = Dr, N0 = M0, P0 = (e, t) => {
41101
+ let n = F0(t), r = Math.min(O0, n);
41101
41102
  if (!Number.isFinite(e) || e <= 0) return {
41102
41103
  min: D0,
41103
- max: O0,
41104
- autoMax: O0,
41104
+ max: n,
41105
+ autoMax: r,
41105
41106
  shouldOverlay: !1
41106
41107
  };
41107
41108
  if (e < N0) return {
41108
41109
  min: D0,
41109
- max: O0,
41110
- autoMax: O0,
41110
+ max: n,
41111
+ autoMax: r,
41111
41112
  shouldOverlay: !0
41112
41113
  };
41113
- let t = Math.min(O0, Math.max(e - A0, D0));
41114
+ let i = Math.min(n, Math.max(e - j0, D0));
41114
41115
  return {
41115
41116
  min: D0,
41116
- max: Math.min(O0, Math.max(e - j0, D0)),
41117
- autoMax: t,
41117
+ max: i,
41118
+ autoMax: Math.min(O0, i, Math.max(e - A0, D0)),
41118
41119
  shouldOverlay: !1
41119
41120
  };
41120
- }, F0 = (e, t) => {
41121
- let { min: n, max: r, autoMax: i } = P0(t);
41122
- return Math.max(n, Math.min(e === k0 ? i : r, e));
41123
- }, I0 = "f0-side-panel-width", L0 = "f0-side-panel-open", R0 = "f0-side-panel-layout", z0 = "f0-side-panel-view-id", B0 = ["ONE-ai-chat-width"], V0 = ["ONE-ai-chat-open"], H0 = ["ONE-ai-chat-visualization-mode"], U0 = ["ONE-ai-chat-panel-content-id"];
41121
+ }, F0 = (e) => e !== void 0 && Number.isFinite(e) ? Math.max(D0, e) : O0, I0 = (e, t, n) => {
41122
+ let { min: r, max: i, autoMax: a } = P0(t, n);
41123
+ return Math.max(r, Math.min(e === k0 ? a : i, e));
41124
+ }, L0 = "f0-side-panel-width", R0 = "f0-side-panel-open", z0 = "f0-side-panel-layout", B0 = "f0-side-panel-view-id", V0 = ["ONE-ai-chat-width"], H0 = ["ONE-ai-chat-open"], U0 = ["ONE-ai-chat-visualization-mode"], W0 = ["ONE-ai-chat-panel-content-id"];
41124
41125
  //#endregion
41125
41126
  //#region src/elements/lib/local-storage.ts
41126
- function W0(e, t) {
41127
+ function G0(e, t) {
41127
41128
  try {
41128
41129
  let n = localStorage.getItem(e);
41129
41130
  return n === null ? t : JSON.parse(n);
@@ -41131,18 +41132,18 @@ function W0(e, t) {
41131
41132
  return t;
41132
41133
  }
41133
41134
  }
41134
- function G0(e, t) {
41135
+ function K0(e, t) {
41135
41136
  try {
41136
41137
  localStorage.setItem(e, JSON.stringify(t));
41137
41138
  } catch {}
41138
41139
  }
41139
41140
  //#endregion
41140
41141
  //#region src/elements/lib/persisted-state.ts
41141
- function K0({ key: e, legacyKeys: t, fallback: n, validate: r, shouldWrite: i, debounceMs: a = 0 }) {
41142
+ function q0({ key: e, legacyKeys: t, fallback: n, validate: r, shouldWrite: i, debounceMs: a = 0 }) {
41142
41143
  let [o, s] = H(() => {
41143
41144
  if (typeof window > "u") return n;
41144
41145
  for (let n of [e, ...t ?? []]) {
41145
- let e = W0(n, null);
41146
+ let e = G0(n, null);
41146
41147
  if (e !== null && (!r || r(e))) return e;
41147
41148
  }
41148
41149
  return n;
@@ -41150,10 +41151,10 @@ function K0({ key: e, legacyKeys: t, fallback: n, validate: r, shouldWrite: i, d
41150
41151
  return B(() => {
41151
41152
  if (typeof window > "u" || i && !i(o)) return;
41152
41153
  if (a <= 0) {
41153
- G0(e, o);
41154
+ K0(e, o);
41154
41155
  return;
41155
41156
  }
41156
- let t = window.setTimeout(() => G0(e, o), a);
41157
+ let t = window.setTimeout(() => K0(e, o), a);
41157
41158
  return () => window.clearTimeout(t);
41158
41159
  }, [
41159
41160
  e,
@@ -41164,171 +41165,175 @@ function K0({ key: e, legacyKeys: t, fallback: n, validate: r, shouldWrite: i, d
41164
41165
  }
41165
41166
  //#endregion
41166
41167
  //#region src/blocks/ApplicationFrame/SidePanel/SidePanelProvider.tsx
41167
- var q0 = Pr(null), { min: J0, max: Y0 } = Dr, X0 = 5e3, Z0 = () => {}, Q0 = [], $0 = ({ children: e, views: t = Q0, side: n = "right", contentSide: r, resizable: i = !1, defaultLayout: a = "sidepanel" }) => {
41168
- let o = t.some((e) => e.available !== !1), s = t.some((e) => e.available !== !1 && e.restoresContent), [c, l] = K0({
41169
- key: I0,
41170
- legacyKeys: B0,
41171
- fallback: E0,
41172
- validate: (e) => typeof e == "number" && !isNaN(e) && e >= J0 && e <= Y0,
41173
- debounceMs: 150
41174
- }), [u, d] = H(!1), [f, p] = H(0), m = Ur(function() {
41175
- return P0(f);
41176
- }, [f]), h = Ur(function() {
41177
- return F0(c, f);
41178
- }, [c, f]), g = E("(pointer: coarse)", { initializeWithValue: !0 }), _ = E(`(max-width: ${Er.md}px)`, { initializeWithValue: !0 }), v = g && _ || m.shouldOverlay, [y, b] = H(null), x = o || y !== null, [S, C] = K0({
41168
+ var J0 = Pr(null), { min: Y0, max: X0 } = Dr, Z0 = 5e3, Q0 = () => {}, $0 = [], e2 = ({ children: e, views: t = $0, side: n = "right", contentSide: r, resizable: i = !1, defaultLayout: a = "sidepanel" }) => {
41169
+ let o = t.some((e) => e.available !== !1), s = t.some((e) => e.available !== !1 && e.restoresContent), [c, l] = q0({
41179
41170
  key: L0,
41180
41171
  legacyKeys: V0,
41181
- fallback: a === "fullscreen",
41182
- validate: (e) => typeof e == "boolean"
41183
- }), w = S && x, [T, D] = K0({
41172
+ fallback: E0,
41173
+ validate: (e) => typeof e == "number" && !isNaN(e) && e >= Y0 && e <= X0,
41174
+ debounceMs: 150
41175
+ }), [u, d] = H(!1), [f, p] = H(0), [m, h] = H(null), g = m?.maxWidth, _ = Ur(function() {
41176
+ return P0(f, g);
41177
+ }, [f, g]), v = Ur(function() {
41178
+ return I0(c, f, g);
41179
+ }, [
41180
+ c,
41181
+ f,
41182
+ g
41183
+ ]), y = E("(pointer: coarse)", { initializeWithValue: !0 }), b = E(`(max-width: ${Er.md}px)`, { initializeWithValue: !0 }), x = y && b || _.shouldOverlay, S = o || m !== null, [C, w] = q0({
41184
41184
  key: R0,
41185
41185
  legacyKeys: H0,
41186
+ fallback: a === "fullscreen",
41187
+ validate: (e) => typeof e == "boolean"
41188
+ }), T = C && S, [D, O] = q0({
41189
+ key: z0,
41190
+ legacyKeys: U0,
41186
41191
  fallback: a,
41187
41192
  validate: (e) => e === "sidepanel" || e === "fullscreen"
41188
- }), O = z(function(e) {
41189
- D((t) => {
41193
+ }), k = z(function(e) {
41194
+ O((t) => {
41190
41195
  let n = typeof e == "function" ? e(t) : e;
41191
- return n === "fullscreen" && C(!0), n;
41196
+ return n === "fullscreen" && w(!0), n;
41192
41197
  });
41193
- }, [D, C]), [k, A] = H(() => T !== "fullscreen"), [j, M] = K0({
41194
- key: z0,
41195
- legacyKeys: U0,
41198
+ }, [O, w]), [A, j] = H(() => D !== "fullscreen"), [M, N] = q0({
41199
+ key: B0,
41200
+ legacyKeys: W0,
41196
41201
  fallback: null,
41197
41202
  validate: (e) => e === null || typeof e == "string"
41198
- }), [N, ee] = H(() => w && s ? j : null), [te, ne] = H({
41203
+ }), [ee, te] = H(() => T && s ? M : null), [ne, re] = H({
41199
41204
  pinned: null,
41200
41205
  override: null
41201
- }), re = z(function(e) {
41202
- e && ne((t) => ({
41206
+ }), ie = z(function(e) {
41207
+ e && re((t) => ({
41203
41208
  ...t,
41204
41209
  pinned: e.side ?? null
41205
- })), b(e), ee(null), e && !w && C(!0);
41206
- }, [w, C]), ie = z(function() {
41207
- b(null), ee(null);
41208
- }, []), ae = z(function() {
41209
- return ee(null);
41210
+ })), h(e), te(null), e && !T && w(!0);
41211
+ }, [T, w]), ae = z(function() {
41212
+ h(null), te(null);
41210
41213
  }, []), oe = z(function() {
41214
+ return te(null);
41215
+ }, []), se = z(function() {
41211
41216
  return l(E0);
41212
41217
  }, [l]);
41213
41218
  B(function() {
41214
- N || M(y?.id ?? null);
41219
+ ee || N(m?.id ?? null);
41215
41220
  }, [
41216
- y,
41217
- N,
41218
- M
41221
+ m,
41222
+ ee,
41223
+ N
41219
41224
  ]), B(function() {
41220
- w || ee(null);
41221
- }, [w]), B(function() {
41222
- if (!N) return;
41225
+ T || te(null);
41226
+ }, [T]), B(function() {
41227
+ if (!ee) return;
41223
41228
  let e = setTimeout(() => {
41224
- process.env.NODE_ENV !== "production" && console.warn(`[f0] Side panel restore for "${N}" timed out: no view answered it with present() or cancelRestore().`), ee(null);
41225
- }, X0);
41229
+ process.env.NODE_ENV !== "production" && console.warn(`[f0] Side panel restore for "${ee}" timed out: no view answered it with present() or cancelRestore().`), te(null);
41230
+ }, Z0);
41226
41231
  return () => clearTimeout(e);
41227
- }, [N]), B(function() {
41228
- if (!w) {
41229
- D("sidepanel");
41232
+ }, [ee]), B(function() {
41233
+ if (!T) {
41234
+ O("sidepanel");
41230
41235
  let e = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
41231
- A(!e);
41236
+ j(!e);
41232
41237
  }
41233
- }, [w, D]);
41234
- let [se, ce] = H(n), le = r ?? se, ue = te.pinned ?? te.override ?? le, de = z(function(e) {
41235
- return ne((t) => ({
41238
+ }, [T, O]);
41239
+ let [ce, le] = H(n), ue = r ?? ce, de = ne.pinned ?? ne.override ?? ue, fe = z(function(e) {
41240
+ return re((t) => ({
41236
41241
  pinned: null,
41237
- override: typeof e == "function" ? e(t.pinned ?? t.override ?? le) : e
41242
+ override: typeof e == "function" ? e(t.pinned ?? t.override ?? ue) : e
41238
41243
  }));
41239
- }, [le]), fe = Ur(function() {
41244
+ }, [ue]), pe = Ur(function() {
41240
41245
  return {
41241
- hasAvailableView: x,
41242
- open: w,
41243
- setOpen: C,
41244
- layout: T,
41245
- setLayout: O,
41246
- side: se,
41247
- setSide: ce,
41248
- contentSide: ue,
41249
- setContentSide: de,
41250
- activeContent: y,
41251
- present: re,
41252
- clear: ie,
41253
- restoringViewId: N,
41254
- cancelRestore: ae,
41246
+ hasAvailableView: S,
41247
+ open: T,
41248
+ setOpen: w,
41249
+ layout: D,
41250
+ setLayout: k,
41251
+ side: ce,
41252
+ setSide: le,
41253
+ contentSide: de,
41254
+ setContentSide: fe,
41255
+ activeContent: m,
41256
+ present: ie,
41257
+ clear: ae,
41258
+ restoringViewId: ee,
41259
+ cancelRestore: oe,
41255
41260
  width: c,
41256
41261
  setWidth: l,
41257
- resetWidth: oe,
41258
- effectiveWidth: h,
41259
- widthBounds: m,
41260
- panelOverlays: v,
41262
+ resetWidth: se,
41263
+ effectiveWidth: v,
41264
+ widthBounds: _,
41265
+ panelOverlays: x,
41261
41266
  setFrameWidth: p,
41262
41267
  isResizing: u,
41263
41268
  setIsResizing: d,
41264
41269
  resizable: i,
41265
- shouldPlayEntranceAnimation: k,
41266
- setShouldPlayEntranceAnimation: A
41270
+ shouldPlayEntranceAnimation: A,
41271
+ setShouldPlayEntranceAnimation: j
41267
41272
  };
41268
41273
  }, [
41269
- x,
41270
- w,
41271
- C,
41274
+ S,
41272
41275
  T,
41273
- O,
41274
- se,
41275
- ue,
41276
- y,
41277
- re,
41276
+ w,
41277
+ D,
41278
+ k,
41279
+ ce,
41280
+ de,
41281
+ m,
41278
41282
  ie,
41279
- N,
41280
41283
  ae,
41284
+ ee,
41285
+ oe,
41281
41286
  c,
41282
41287
  l,
41283
- oe,
41284
- h,
41285
- m,
41288
+ se,
41286
41289
  v,
41290
+ _,
41291
+ x,
41287
41292
  u,
41288
41293
  i,
41289
- k
41294
+ A
41290
41295
  ]);
41291
- return /* @__PURE__ */ U(q0.Provider, {
41292
- value: fe,
41296
+ return /* @__PURE__ */ U(J0.Provider, {
41297
+ value: pe,
41293
41298
  children: e
41294
41299
  });
41295
- }, e2 = Object.freeze({
41300
+ }, t2 = Object.freeze({
41296
41301
  hasAvailableView: !1,
41297
41302
  open: !1,
41298
- setOpen: Z0,
41303
+ setOpen: Q0,
41299
41304
  layout: "sidepanel",
41300
- setLayout: Z0,
41305
+ setLayout: Q0,
41301
41306
  side: "right",
41302
- setSide: Z0,
41307
+ setSide: Q0,
41303
41308
  contentSide: "right",
41304
- setContentSide: Z0,
41309
+ setContentSide: Q0,
41305
41310
  activeContent: null,
41306
- present: Z0,
41307
- clear: Z0,
41311
+ present: Q0,
41312
+ clear: Q0,
41308
41313
  restoringViewId: null,
41309
- cancelRestore: Z0,
41314
+ cancelRestore: Q0,
41310
41315
  width: E0,
41311
- setWidth: Z0,
41312
- resetWidth: Z0,
41316
+ setWidth: Q0,
41317
+ resetWidth: Q0,
41313
41318
  effectiveWidth: E0,
41314
41319
  widthBounds: P0(0),
41315
41320
  panelOverlays: !1,
41316
- setFrameWidth: Z0,
41321
+ setFrameWidth: Q0,
41317
41322
  isResizing: !1,
41318
- setIsResizing: Z0,
41323
+ setIsResizing: Q0,
41319
41324
  resizable: !1,
41320
41325
  shouldPlayEntranceAnimation: !0,
41321
- setShouldPlayEntranceAnimation: Z0
41326
+ setShouldPlayEntranceAnimation: Q0
41322
41327
  });
41323
- function t2() {
41324
- return zr(q0) ?? e2;
41325
- }
41326
41328
  function n2() {
41327
- return zr(q0) !== null;
41329
+ return zr(J0) ?? t2;
41330
+ }
41331
+ function r2() {
41332
+ return zr(J0) !== null;
41328
41333
  }
41329
41334
  //#endregion
41330
41335
  //#region src/blocks/ApplicationFrame/SidePanel/SidePanelResizeHandle.tsx
41331
- var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, flushInnerSeam: i, side: a = "right", value: o, minValue: s, maxValue: c }) => {
41336
+ var i2 = 16, a2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, flushInnerSeam: i, side: a = "right", value: o, minValue: s, maxValue: c }) => {
41332
41337
  let l = V(0), u = V(0), d = V(null), f = He(), p = z((e) => {
41333
41338
  e.preventDefault(), l.current = e.clientX, r(!0);
41334
41339
  }, [r]), m = z(() => {
@@ -41359,10 +41364,10 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41359
41364
  let r;
41360
41365
  switch (n.key) {
41361
41366
  case "ArrowLeft":
41362
- r = a === "left" ? -16 : r2;
41367
+ r = a === "left" ? -16 : i2;
41363
41368
  break;
41364
41369
  case "ArrowRight":
41365
- r = a === "left" ? r2 : -16;
41370
+ r = a === "left" ? i2 : -16;
41366
41371
  break;
41367
41372
  case "Home":
41368
41373
  r = s - o;
@@ -41408,20 +41413,20 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41408
41413
  })]
41409
41414
  })
41410
41415
  });
41411
- }, { duration: a2, ease: o2 } = Tr, s2 = { leaving: ({ exitStyle: e, closedClipPath: t, reducedMotion: n }) => n ? {
41416
+ }, { duration: o2, ease: s2 } = Tr, c2 = { leaving: ({ exitStyle: e, closedClipPath: t, reducedMotion: n }) => n ? {
41412
41417
  opacity: 0,
41413
41418
  transition: { duration: 0 }
41414
41419
  } : e === "hold" ? {
41415
41420
  opacity: 0,
41416
41421
  transition: {
41417
- delay: a2.base,
41422
+ delay: o2.base,
41418
41423
  duration: 0
41419
41424
  }
41420
41425
  } : {
41421
41426
  opacity: 0,
41422
41427
  clipPath: t
41423
- } }, c2 = ({ children: e, visible: t, side: n, exitStyle: r = "shrink", flushInnerSeam: i = !1, surfaceProps: a, surfaceRef: o, decorations: s }) => {
41424
- let { open: c, layout: l, shouldPlayEntranceAnimation: u, setShouldPlayEntranceAnimation: d, resizable: f, width: p, effectiveWidth: m, setWidth: h, resetWidth: g, widthBounds: _, panelOverlays: v, setIsResizing: y, side: b } = t2(), x = t ?? c, S = O(), C = (n ?? b) === "left", w = V(!1);
41428
+ } }, l2 = ({ children: e, visible: t, side: n, exitStyle: r = "shrink", flushInnerSeam: i = !1, surfaceProps: a, surfaceRef: o, decorations: s }) => {
41429
+ let { open: c, layout: l, shouldPlayEntranceAnimation: u, setShouldPlayEntranceAnimation: d, resizable: f, width: p, effectiveWidth: m, setWidth: h, resetWidth: g, widthBounds: _, panelOverlays: v, setIsResizing: y, side: b } = n2(), x = t ?? c, S = O(), C = (n ?? b) === "left", w = V(!1);
41425
41430
  B(() => {
41426
41431
  w.current = c;
41427
41432
  });
@@ -41442,8 +41447,8 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41442
41447
  k,
41443
41448
  A
41444
41449
  ]), ee = Ur(() => E || S ? { duration: 0 } : {
41445
- duration: a2.base,
41446
- ease: o2.outSwift
41450
+ duration: o2.base,
41451
+ ease: s2.outSwift
41447
41452
  }, [E, S]), te = C ? "inset(0 100% 0 0)" : "inset(0 0 0 100%)", ne = {
41448
41453
  exitStyle: r,
41449
41454
  closedClipPath: te,
@@ -41452,7 +41457,7 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41452
41457
  return /* @__PURE__ */ U(ge, {
41453
41458
  custom: ne,
41454
41459
  children: x ? /* @__PURE__ */ W(De.div, {
41455
- variants: s2,
41460
+ variants: c2,
41456
41461
  className: F("bg-f1-transparent pointer-events-auto relative flex h-full dark:bg-f1-background xs:py-1", T ? "xs:pr-1" : C ? "mr-auto" : "ml-auto xs:pr-1"),
41457
41462
  initial: re ? {
41458
41463
  opacity: 0,
@@ -41472,7 +41477,7 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41472
41477
  u && d(!1);
41473
41478
  },
41474
41479
  children: [
41475
- j && !C ? /* @__PURE__ */ U(i2, {
41480
+ j && !C ? /* @__PURE__ */ U(a2, {
41476
41481
  onResize: N,
41477
41482
  onReset: g,
41478
41483
  isResizing: E,
@@ -41493,7 +41498,7 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41493
41498
  children: e
41494
41499
  }), s]
41495
41500
  }),
41496
- j && C ? /* @__PURE__ */ U(i2, {
41501
+ j && C ? /* @__PURE__ */ U(a2, {
41497
41502
  onResize: N,
41498
41503
  onReset: g,
41499
41504
  isResizing: E,
@@ -41507,18 +41512,18 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41507
41512
  ]
41508
41513
  }, "chat-wrapper") : null
41509
41514
  });
41510
- }, l2 = (e, { preferText: t = !1 } = {}) => {
41515
+ }, u2 = (e, { preferText: t = !1 } = {}) => {
41511
41516
  let n = Array.from(e.files ?? []);
41512
41517
  return n.length === 0 || t && e.getData("text/plain").trim() !== "" && n.every((e) => e.type.startsWith("image/")) ? [] : n;
41513
- }, u2 = ({ enabled: e, onFiles: t, preferText: n = !1 }) => z((r) => {
41518
+ }, d2 = ({ enabled: e, onFiles: t, preferText: n = !1 }) => z((r) => {
41514
41519
  if (!e) return;
41515
- let i = l2(r.clipboardData, { preferText: n });
41520
+ let i = u2(r.clipboardData, { preferText: n });
41516
41521
  i.length !== 0 && (r.preventDefault(), t(i));
41517
41522
  }, [
41518
41523
  e,
41519
41524
  t,
41520
41525
  n
41521
- ]), d2 = "text-base leading-5 max-sm:text-[16px] [@media(pointer:coarse)]:text-[16px]", f2 = `whitespace-pre-wrap break-words p-3 ${d2}`, p2 = "min-h-[44px] max-h-[140px]", m2 = ({ placeholders: e, defaultPlaceholder: t, inputValue: n, inProgress: r }) => {
41526
+ ]), f2 = "text-base leading-5 max-sm:text-[16px] [@media(pointer:coarse)]:text-[16px]", p2 = `whitespace-pre-wrap break-words p-3 ${f2}`, m2 = "min-h-[44px] max-h-[140px]", h2 = ({ placeholders: e, defaultPlaceholder: t, inputValue: n, inProgress: r }) => {
41522
41527
  let i = O(), [a, o] = H(""), [s, c] = H(0), [l, u] = H(!1), d = V(null), f = V(null), p = V(null), m = e[s] ?? t;
41523
41528
  return B(() => {
41524
41529
  let t = () => {
@@ -41560,7 +41565,7 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41560
41565
  animate: { opacity: 1 },
41561
41566
  exit: { opacity: 0 },
41562
41567
  transition: { duration: i ? 0 : .4 },
41563
- className: F("col-start-1 row-start-1", "pointer-events-none", "text-f1-foreground-secondary", d2, "font-normal", "p-3"),
41568
+ className: F("col-start-1 row-start-1", "pointer-events-none", "text-f1-foreground-secondary", f2, "font-normal", "p-3"),
41564
41569
  children: /* @__PURE__ */ W("div", {
41565
41570
  "data-a11y-color-contrast-ignore": !0,
41566
41571
  className: F("overflow-hidden text-ellipsis whitespace-nowrap", "whitespace-pre-wrap break-words overflow-visible"),
@@ -41570,20 +41575,20 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41570
41575
  }) : null]
41571
41576
  })
41572
41577
  }) });
41573
- }, h2 = ({ textareaRef: e, highlightRef: t, value: n, placeholder: r, ariaLabel: i, role: a, name: o, onChange: s, onKeyDown: c, onPaste: l, onFocus: u, onBlur: d, onCursorUpdate: f, onScroll: p, highlightSegments: m, hasOverlay: h, isAutocompleteOpen: g = !1, autocompleteListboxId: _, activeAutocompleteOptionId: v, isInvalid: y, errorMessageId: b, className: x }) => {
41578
+ }, g2 = ({ textareaRef: e, highlightRef: t, value: n, placeholder: r, ariaLabel: i, role: a, name: o, onChange: s, onKeyDown: c, onPaste: l, onFocus: u, onBlur: d, onCursorUpdate: f, onScroll: p, highlightSegments: m, hasOverlay: h, isAutocompleteOpen: g = !1, autocompleteListboxId: _, activeAutocompleteOptionId: v, isInvalid: y, errorMessageId: b, className: x }) => {
41574
41579
  let S = r.mode === "overlay" ? r.texts : [], C = S.length > 1, w = r.mode === "overlay" && !C && n.length === 0 ? S[0] ?? r.fallback : null;
41575
41580
  return /* @__PURE__ */ W("div", {
41576
41581
  className: F("grid grid-cols-1 grid-rows-1", x),
41577
41582
  children: [
41578
41583
  /* @__PURE__ */ U("div", {
41579
41584
  "aria-hidden": !0,
41580
- className: F("col-start-1 row-start-1", "pointer-events-none invisible", f2, p2),
41585
+ className: F("col-start-1 row-start-1", "pointer-events-none invisible", p2, m2),
41581
41586
  children: n.endsWith("\n") ? n + "_" : n || " "
41582
41587
  }),
41583
41588
  h ? /* @__PURE__ */ U("div", {
41584
41589
  ref: t,
41585
41590
  "aria-hidden": !0,
41586
- className: F("col-start-1 row-start-1", "pointer-events-none text-f1-foreground", f2, p2, "overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),
41591
+ className: F("col-start-1 row-start-1", "pointer-events-none text-f1-foreground", p2, m2, "overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),
41587
41592
  children: m.map((e, t) => e.type === "mention" ? /* @__PURE__ */ U("span", {
41588
41593
  className: "text-f1-foreground-secondary",
41589
41594
  children: e.text
@@ -41594,7 +41599,7 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41594
41599
  }) : null,
41595
41600
  w === null ? null : /* @__PURE__ */ U("p", {
41596
41601
  "aria-hidden": !0,
41597
- className: F("col-start-1 row-start-1", "pointer-events-none text-f1-foreground-secondary", f2, "overflow-hidden text-ellipsis whitespace-nowrap"),
41602
+ className: F("col-start-1 row-start-1", "pointer-events-none text-f1-foreground-secondary", p2, "overflow-hidden text-ellipsis whitespace-nowrap"),
41598
41603
  children: w
41599
41604
  }),
41600
41605
  /* @__PURE__ */ U("textarea", {
@@ -41620,9 +41625,9 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41620
41625
  "aria-activedescendant": v,
41621
41626
  "aria-invalid": y || void 0,
41622
41627
  "aria-describedby": y ? b : void 0,
41623
- className: F("col-start-1 row-start-1", "w-full resize-none bg-transparent outline-none", "placeholder:text-f1-foreground-secondary", f2, p2, "overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", h ? "text-transparent caret-f1-foreground" : "text-f1-foreground", !h && C && n.length === 0 && "caret-transparent")
41628
+ className: F("col-start-1 row-start-1", "w-full resize-none bg-transparent outline-none", "placeholder:text-f1-foreground-secondary", p2, m2, "overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", h ? "text-transparent caret-f1-foreground" : "text-f1-foreground", !h && C && n.length === 0 && "caret-transparent")
41624
41629
  }),
41625
- C && r.mode === "overlay" ? /* @__PURE__ */ U(m2, {
41630
+ C && r.mode === "overlay" ? /* @__PURE__ */ U(h2, {
41626
41631
  placeholders: S,
41627
41632
  defaultPlaceholder: r.fallback,
41628
41633
  inputValue: n,
@@ -41630,8 +41635,8 @@ var r2 = 16, i2 = ({ onResize: e, onReset: t, isResizing: n, setIsResizing: r, f
41630
41635
  }) : null
41631
41636
  ]
41632
41637
  });
41633
- }, g2 = 4e3;
41634
- function _2(e = g2) {
41638
+ }, _2 = 4e3;
41639
+ function v2(e = _2) {
41635
41640
  let [t, n] = H(null), r = V(null), i = z(() => {
41636
41641
  r.current && clearTimeout(r.current), r.current = null, n(null);
41637
41642
  }, []), a = z((t, i) => {
@@ -41649,7 +41654,7 @@ function _2(e = g2) {
41649
41654
  }
41650
41655
  //#endregion
41651
41656
  //#region src/elements/primitives/_primitives/F0ChatComposer/parts/ComposerMentionPopover.tsx
41652
- var v2 = (e, t) => `${e}-option-${`${t.type}-${t.id}`.replace(/[^a-zA-Z0-9_-]/g, "-")}`, y2 = (e) => e.type === "icon" || e.type === "emoji" ? "sm" : "xs", b2 = Rr(R(({ id: e, item: t, source: n, isSelected: r, onSelect: i, description: a }, o) => {
41657
+ var y2 = (e, t) => `${e}-option-${`${t.type}-${t.id}`.replace(/[^a-zA-Z0-9_-]/g, "-")}`, b2 = (e) => e.type === "icon" || e.type === "emoji" ? "sm" : "xs", x2 = Rr(R(({ id: e, item: t, source: n, isSelected: r, onSelect: i, description: a }, o) => {
41653
41658
  let s = !n;
41654
41659
  return /* @__PURE__ */ W("div", {
41655
41660
  ref: o,
@@ -41671,7 +41676,7 @@ var v2 = (e, t) => `${e}-option-${`${t.type}-${t.id}`.replace(/[^a-zA-Z0-9_-]/g,
41671
41676
  color: "default"
41672
41677
  })
41673
41678
  }) : t.avatar ? /* @__PURE__ */ U(zt, {
41674
- size: y2(t.avatar),
41679
+ size: b2(t.avatar),
41675
41680
  avatar: t.avatar
41676
41681
  }) : t.type === "person" ? /* @__PURE__ */ U(zt, {
41677
41682
  size: "xs",
@@ -41692,13 +41697,13 @@ var v2 = (e, t) => `${e}-option-${`${t.type}-${t.id}`.replace(/[^a-zA-Z0-9_-]/g,
41692
41697
  })]
41693
41698
  });
41694
41699
  }));
41695
- b2.displayName = "ComposerMentionRow";
41696
- var x2 = () => /* @__PURE__ */ U(Gr, { children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ W("div", {
41700
+ x2.displayName = "ComposerMentionRow";
41701
+ var S2 = () => /* @__PURE__ */ U(Gr, { children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ W("div", {
41697
41702
  className: "flex items-center gap-2 p-2",
41698
41703
  "aria-hidden": "true",
41699
41704
  children: [/* @__PURE__ */ U(Ie, { className: "size-5 shrink-0 rounded-full" }), /* @__PURE__ */ U(Ie, { className: F("h-4 rounded", t === 1 ? "w-24" : "w-32") })]
41700
41705
  }, t)) });
41701
- function S2({ isOpen: e, listboxId: t, label: n, rows: r, groups: i, showGroupLabels: a, isLoading: o, selectedIndex: s, position: c, onSelect: l, pinnedDescription: u }) {
41706
+ function C2({ isOpen: e, listboxId: t, label: n, rows: r, groups: i, showGroupLabels: a, isLoading: o, selectedIndex: s, position: c, onSelect: l, pinnedDescription: u }) {
41702
41707
  let d = V(null), f = V(null), p = V(l);
41703
41708
  Hr(() => {
41704
41709
  p.current = l;
@@ -41728,9 +41733,9 @@ function S2({ isOpen: e, listboxId: t, label: n, rows: r, groups: i, showGroupLa
41728
41733
  },
41729
41734
  className: F("z-50", "w-64 max-h-60 overflow-y-auto", "rounded-lg border border-solid border-f1-border-secondary", "bg-f1-background shadow-md", "p-1"),
41730
41735
  children: [
41731
- h ? /* @__PURE__ */ U(b2, {
41736
+ h ? /* @__PURE__ */ U(x2, {
41732
41737
  ref: s === 0 ? f : void 0,
41733
- id: v2(t, h.item),
41738
+ id: y2(t, h.item),
41734
41739
  item: h.item,
41735
41740
  source: h.source,
41736
41741
  isSelected: s === 0,
@@ -41747,9 +41752,9 @@ function S2({ isOpen: e, listboxId: t, label: n, rows: r, groups: i, showGroupLa
41747
41752
  }) : null, e.items.map((n) => {
41748
41753
  _++;
41749
41754
  let r = _ === s;
41750
- return /* @__PURE__ */ U(b2, {
41755
+ return /* @__PURE__ */ U(x2, {
41751
41756
  ref: r ? f : void 0,
41752
- id: v2(t, n),
41757
+ id: y2(t, n),
41753
41758
  item: n,
41754
41759
  source: e.source,
41755
41760
  isSelected: r,
@@ -41757,13 +41762,13 @@ function S2({ isOpen: e, listboxId: t, label: n, rows: r, groups: i, showGroupLa
41757
41762
  }, `${n.type}:${n.id}`);
41758
41763
  })]
41759
41764
  }, e.source.type)),
41760
- o && !g ? /* @__PURE__ */ U(x2, {}) : null
41765
+ o && !g ? /* @__PURE__ */ U(S2, {}) : null
41761
41766
  ]
41762
41767
  });
41763
41768
  }
41764
41769
  //#endregion
41765
41770
  //#region src/elements/primitives/_primitives/F0ChatComposer/parts/ComposerNotices.tsx
41766
- var C2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41771
+ var w2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41767
41772
  initial: !1,
41768
41773
  children: e ? /* @__PURE__ */ U(De.div, {
41769
41774
  id: t,
@@ -41801,7 +41806,7 @@ var C2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41801
41806
  })]
41802
41807
  })
41803
41808
  }, "composer-error") : null
41804
- }), w2 = "relative flex flex-col rounded-lg border border-solid border-f1-border-secondary bg-f1-background/95 shadow-md backdrop-blur-[5px] transition-colors", T2 = (e, t) => {
41809
+ }), T2 = "relative flex flex-col rounded-lg border border-solid border-f1-border-secondary bg-f1-background/95 shadow-md backdrop-blur-[5px] transition-colors", E2 = (e, t) => {
41805
41810
  let n = Math.min(e.length, t.length), r = 0;
41806
41811
  for (; r < n && e[r] === t[r];) r++;
41807
41812
  let i = 0;
@@ -41811,16 +41816,16 @@ var C2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41811
41816
  prevEnd: e.length - i,
41812
41817
  nextEnd: t.length - i
41813
41818
  };
41814
- }, E2 = 600, D2 = 100, O2 = (e, t) => {
41815
- let { start: n, prevEnd: r, nextEnd: i } = T2(e, t), a = r - n, o = i - n;
41819
+ }, D2 = 600, O2 = 100, k2 = (e, t) => {
41820
+ let { start: n, prevEnd: r, nextEnd: i } = E2(e, t), a = r - n, o = i - n;
41816
41821
  return a === 0 && o === 1 ? /\s/.test(t[n] ?? "") ? "other" : "insert" : o === 0 && a === 1 ? "delete" : "other";
41817
- }, k2 = () => {
41822
+ }, A2 = () => {
41818
41823
  let e = V([]), t = V([]), n = V("other"), r = V(0);
41819
41824
  return {
41820
41825
  record: z((i, a) => {
41821
41826
  t.current = [];
41822
- let o = O2(i.value, a.value), s = Date.now(), c = o !== "other" && o === n.current && s - r.current <= E2 && i.mentions === a.mentions && e.current.length > 0;
41823
- n.current = o, r.current = s, !c && (e.current.push(i), e.current.length > D2 && e.current.shift());
41827
+ let o = k2(i.value, a.value), s = Date.now(), c = o !== "other" && o === n.current && s - r.current <= D2 && i.mentions === a.mentions && e.current.length > 0;
41828
+ n.current = o, r.current = s, !c && (e.current.push(i), e.current.length > O2 && e.current.shift());
41824
41829
  }, []),
41825
41830
  undo: z((r) => {
41826
41831
  let i = e.current.pop();
@@ -41834,10 +41839,10 @@ var C2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41834
41839
  e.current = [], t.current = [], n.current = "other", r.current = 0;
41835
41840
  }, [])
41836
41841
  };
41837
- }, A2 = /* @__PURE__ */ "direction.boxSizing.width.height.overflowX.overflowY.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.fontSizeAdjust.lineHeight.fontFamily.textAlign.textTransform.textIndent.textDecoration.letterSpacing.wordSpacing.tabSize.MozTabSize.whiteSpace.wordWrap.wordBreak".split("."), j2 = (e) => {
41842
+ }, j2 = /* @__PURE__ */ "direction.boxSizing.width.height.overflowX.overflowY.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.fontSizeAdjust.lineHeight.fontFamily.textAlign.textTransform.textIndent.textDecoration.letterSpacing.wordSpacing.tabSize.MozTabSize.whiteSpace.wordWrap.wordBreak".split("."), M2 = (e) => {
41838
41843
  let t = document.createElement("div"), n = t.style, r = window.getComputedStyle(e);
41839
41844
  n.whiteSpace = "pre-wrap", n.wordWrap = "break-word", n.position = "absolute", n.visibility = "hidden", n.overflow = "hidden";
41840
- for (let e of A2) n.setProperty(e, r.getPropertyValue(e));
41845
+ for (let e of j2) n.setProperty(e, r.getPropertyValue(e));
41841
41846
  let i = document.createTextNode(""), a = document.createElement("span");
41842
41847
  return t.appendChild(i), t.appendChild(a), document.body.appendChild(t), {
41843
41848
  textarea: e,
@@ -41846,53 +41851,53 @@ var C2 = ({ message: e, id: t, reducedMotion: n }) => /* @__PURE__ */ U(ge, {
41846
41851
  prefix: i,
41847
41852
  span: a
41848
41853
  };
41849
- }, M2 = (e) => {
41854
+ }, N2 = (e) => {
41850
41855
  e.div.remove();
41851
- }, N2 = (e, t) => {
41856
+ }, P2 = (e, t) => {
41852
41857
  let { value: n } = e.textarea;
41853
41858
  return e.prefix.data = n.substring(0, t), e.span.textContent = n.substring(t) || "​", {
41854
41859
  left: e.span.offsetLeft,
41855
41860
  top: e.span.offsetTop - e.textarea.scrollTop
41856
41861
  };
41857
41862
  };
41858
- function P2(e, t) {
41859
- let n = j2(e);
41863
+ function F2(e, t) {
41864
+ let n = M2(e);
41860
41865
  try {
41861
- return N2(n, t);
41866
+ return P2(n, t);
41862
41867
  } finally {
41863
- M2(n);
41868
+ N2(n);
41864
41869
  }
41865
41870
  }
41866
41871
  //#endregion
41867
41872
  //#region src/elements/primitives/_primitives/F0ChatComposer/utils/sanitize-text.ts
41868
- var F2 = /(\p{M}{3})\p{M}+/gu, I2 = /[\u202A-\u202E\u2066-\u2069]/g, L2 = "NFC", R2 = (e) => e.normalize(L2).replace(F2, "$1").replace(I2, ""), z2 = /[\s\S]\p{M}*/uy, B2 = /[\p{M}\u1161-\u1175\u11A8-\u11C2]/uy, V2 = (e, t) => (B2.lastIndex = t, B2.test(e)), H2 = /\P{ASCII}/u, U2 = (e, t) => (z2.lastIndex = t, z2.exec(e), Math.max(z2.lastIndex, t + 1)), W2 = (e, t, n) => {
41873
+ var I2 = /(\p{M}{3})\p{M}+/gu, L2 = /[\u202A-\u202E\u2066-\u2069]/g, R2 = "NFC", z2 = (e) => e.normalize(R2).replace(I2, "$1").replace(L2, ""), B2 = /[\s\S]\p{M}*/uy, V2 = /[\p{M}\u1161-\u1175\u11A8-\u11C2]/uy, H2 = (e, t) => (V2.lastIndex = t, V2.test(e)), U2 = /\P{ASCII}/u, W2 = (e, t) => (B2.lastIndex = t, B2.exec(e), Math.max(B2.lastIndex, t + 1)), G2 = (e, t, n) => {
41869
41874
  let r = t;
41870
41875
  for (;;) {
41871
- let i = R2(e.slice(t, r));
41872
- if (i === n) return V2(e, r) ? -1 : r;
41873
- if (r === e.length || !n.startsWith(i) && !V2(e, r)) return -1;
41874
- r = U2(e, r);
41876
+ let i = z2(e.slice(t, r));
41877
+ if (i === n) return H2(e, r) ? -1 : r;
41878
+ if (r === e.length || !n.startsWith(i) && !H2(e, r)) return -1;
41879
+ r = W2(e, r);
41875
41880
  }
41876
- }, G2 = (e, t, n) => {
41881
+ }, K2 = (e, t, n) => {
41877
41882
  let r = t + n.length;
41878
- return e.startsWith(n, t) && !V2(e, r) ? r : -1;
41879
- }, K2 = (e, t, { pattern: n, asWritten: r, foldable: i }) => {
41880
- let a = G2(e, t, n);
41883
+ return e.startsWith(n, t) && !H2(e, r) ? r : -1;
41884
+ }, q2 = (e, t, { pattern: n, asWritten: r, foldable: i }) => {
41885
+ let a = K2(e, t, n);
41881
41886
  if (a !== -1) return a;
41882
41887
  if (r !== n) {
41883
- let n = G2(e, t, r);
41888
+ let n = K2(e, t, r);
41884
41889
  if (n !== -1) return n;
41885
41890
  }
41886
- return i ? W2(e, t, n) : -1;
41887
- }, q2 = (e, t) => {
41891
+ return i ? G2(e, t, n) : -1;
41892
+ }, J2 = (e, t) => {
41888
41893
  let n = ((t) => {
41889
- let n = [], r = H2.test(e);
41894
+ let n = [], r = U2.test(e);
41890
41895
  for (let i of t) {
41891
41896
  let t = 0;
41892
41897
  for (;;) {
41893
41898
  let a = e.indexOf("@", t);
41894
41899
  if (a === -1) break;
41895
- let o = i.candidates.reduce((t, { asWritten: n }) => Math.max(t, K2(e, a, {
41900
+ let o = i.candidates.reduce((t, { asWritten: n }) => Math.max(t, q2(e, a, {
41896
41901
  pattern: i.pattern,
41897
41902
  asWritten: n,
41898
41903
  foldable: r
@@ -41913,7 +41918,7 @@ var F2 = /(\p{M}{3})\p{M}+/gu, I2 = /[\u202A-\u202E\u2066-\u2069]/g, L2 = "NFC",
41913
41918
  return {
41914
41919
  entry: n,
41915
41920
  asWritten: e,
41916
- pattern: R2(e)
41921
+ pattern: z2(e)
41917
41922
  };
41918
41923
  })(), r = e.get(t.pattern);
41919
41924
  r ? r.candidates.push(t) : e.set(t.pattern, {
@@ -41931,7 +41936,7 @@ var F2 = /(\p{M}{3})\p{M}+/gu, I2 = /[\u202A-\u202E\u2066-\u2069]/g, L2 = "NFC",
41931
41936
  let o = t.candidates.map((e, t) => ({
41932
41937
  candidate: e,
41933
41938
  index: t
41934
- })).filter(({ candidate: t }) => G2(e, n, t.asWritten) === r), s = o.find(({ index: e }) => !i.has(e)) ?? o.at(-1) ?? t.candidates.map((e, t) => ({
41939
+ })).filter(({ candidate: t }) => K2(e, n, t.asWritten) === r), s = o.find(({ index: e }) => !i.has(e)) ?? o.at(-1) ?? t.candidates.map((e, t) => ({
41935
41940
  candidate: e,
41936
41941
  index: t
41937
41942
  })).find(({ index: e }) => !i.has(e)) ?? {
@@ -41944,7 +41949,7 @@ var F2 = /(\p{M}{3})\p{M}+/gu, I2 = /[\u202A-\u202E\u2066-\u2069]/g, L2 = "NFC",
41944
41949
  end: r
41945
41950
  };
41946
41951
  });
41947
- }, J2 = (e) => e.start + e.length, Y2 = ({ type: e, id: t, label: n, start: r }) => ({
41952
+ }, Y2 = (e) => e.start + e.length, X2 = ({ type: e, id: t, label: n, start: r }) => ({
41948
41953
  type: e,
41949
41954
  id: t,
41950
41955
  label: n,
@@ -41952,7 +41957,7 @@ var F2 = /(\p{M}{3})\p{M}+/gu, I2 = /[\u202A-\u202E\u2066-\u2069]/g, L2 = "NFC",
41952
41957
  });
41953
41958
  //#endregion
41954
41959
  //#region src/elements/primitives/_primitives/F0ChatComposer/mentions/anchors.ts
41955
- function X2(e, t, n) {
41960
+ function Z2(e, t, n) {
41956
41961
  let r = e.slice(0, t).lastIndexOf("@");
41957
41962
  if (r === -1) return null;
41958
41963
  if (r > 0) {
@@ -41965,7 +41970,7 @@ function X2(e, t, n) {
41965
41970
  query: i
41966
41971
  };
41967
41972
  }
41968
- var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.slice(n.at + n.inserted) === e.slice(n.at + n.removed), Q2 = (e, t) => e.every((e) => e.start >= J2(t) || J2(e) <= t.start), $2 = (e, t, n, r) => e >= r || t <= n, e4 = ({ start: e, end: t, editStart: n, previousEditEnd: r, nextEditEnd: i, delta: a }) => {
41973
+ var Q2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.slice(n.at + n.inserted) === e.slice(n.at + n.removed), $2 = (e, t) => e.every((e) => e.start >= Y2(t) || Y2(e) <= t.start), e4 = (e, t, n, r) => e >= r || t <= n, t4 = ({ start: e, end: t, editStart: n, previousEditEnd: r, nextEditEnd: i, delta: a }) => {
41969
41974
  let o = e < n, s = t > r;
41970
41975
  if (o && s) return [{
41971
41976
  start: e,
@@ -41979,11 +41984,11 @@ var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.sl
41979
41984
  start: i,
41980
41985
  end: t + a
41981
41986
  }), c;
41982
- }, t4 = (e, t, n) => {
41983
- let { start: r, prevEnd: i, nextEnd: a } = T2(e, t), o = t.length - e.length, s = i - r, c = a - r, l = [], u = [];
41987
+ }, n4 = (e, t, n) => {
41988
+ let { start: r, prevEnd: i, nextEnd: a } = E2(e, t), o = t.length - e.length, s = i - r, c = a - r, l = [], u = [];
41984
41989
  for (let d of n) {
41985
- let n = d.start, f = J2(d);
41986
- if ($2(r, i, n, f)) {
41990
+ let n = d.start, f = Y2(d);
41991
+ if (e4(r, i, n, f)) {
41987
41992
  let e = n < r ? 0 : o;
41988
41993
  l.push({
41989
41994
  ...d,
@@ -41995,11 +42000,11 @@ var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.sl
41995
42000
  ...d,
41996
42001
  start: n + o
41997
42002
  };
41998
- Q2(l, p) && Z2(e, t, {
42003
+ $2(l, p) && Q2(e, t, {
41999
42004
  at: n - s,
42000
42005
  removed: s,
42001
42006
  inserted: c
42002
- }) ? l.push(p) : u.push(...e4({
42007
+ }) ? l.push(p) : u.push(...t4({
42003
42008
  start: n,
42004
42009
  end: f,
42005
42010
  editStart: r,
@@ -42012,7 +42017,7 @@ var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.sl
42012
42017
  kept: l,
42013
42018
  touched: u
42014
42019
  };
42015
- }, n4 = (e, t, n, r) => {
42020
+ }, r4 = (e, t, n, r) => {
42016
42021
  let i = [];
42017
42022
  for (let e of [...t].sort((e, t) => e.start - t.start)) {
42018
42023
  let t = i[i.length - 1];
@@ -42032,10 +42037,10 @@ var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.sl
42032
42037
  })),
42033
42038
  caret: r - a(r)
42034
42039
  };
42035
- }, r4 = {
42040
+ }, i4 = {
42036
42041
  query: "",
42037
42042
  groups: []
42038
- }, i4 = (e, t) => !!e && e.atIndex === t.atIndex && t.query.startsWith(e.query), a4 = (e) => e.normalize("NFC"), o4 = (e, t) => e.toLowerCase().startsWith(t.toLowerCase()), s4 = (e, t, n) => t === n || n.length === 0 || o4(e.label, n), c4 = (e, t) => typeof e.order == "function" ? e.order(t) : e.order ?? 0, l4 = (e, t, n) => Promise.all(e.map((e) => e.search(t, n).then((t) => ({
42043
+ }, a4 = (e, t) => !!e && e.atIndex === t.atIndex && t.query.startsWith(e.query), o4 = (e) => e.normalize("NFC"), s4 = (e, t) => e.toLowerCase().startsWith(t.toLowerCase()), c4 = (e, t, n) => t === n || n.length === 0 || s4(e.label, n), l4 = (e, t) => typeof e.order == "function" ? e.order(t) : e.order ?? 0, u4 = (e, t, n) => Promise.all(e.map((e) => e.search(t, n).then((t) => ({
42039
42044
  source: e,
42040
42045
  items: t,
42041
42046
  failed: !1
@@ -42043,16 +42048,16 @@ var Z2 = (e, t, n) => n.at >= 0 && t.slice(0, n.at) === e.slice(0, n.at) && t.sl
42043
42048
  source: e,
42044
42049
  items: [],
42045
42050
  failed: !0
42046
- })))), u4 = (e, t) => e.filter((e) => e.items.length > 0).map(({ source: e, items: t }) => ({
42051
+ })))), d4 = (e, t) => e.filter((e) => e.items.length > 0).map(({ source: e, items: t }) => ({
42047
42052
  source: e,
42048
42053
  items: t
42049
- })).sort((e, n) => c4(e.source, t) - c4(n.source, t)), d4 = (e, t) => e.length === t.length && e.every((e, n) => {
42054
+ })).sort((e, n) => l4(e.source, t) - l4(n.source, t)), f4 = (e, t) => e.length === t.length && e.every((e, n) => {
42050
42055
  let r = t[n];
42051
42056
  return r !== void 0 && r.id === e.id && r.type === e.type && r.label === e.label && r.start === e.start && r.length === e.length;
42052
42057
  });
42053
- function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosition: r, requestSelection: i, onMentionErased: a, textareaRef: o, enabled: s, sources: c, pinned: l, scopeKey: u, onInserted: d }) {
42054
- let [f, p] = H(!1), [m, h] = H(""), [g, _] = H(r4), [v, y] = H(!1), [b, x] = H(0), [S, C] = H([]), w = V(S), T = z((e) => {
42055
- d4(w.current, e) || (w.current = e, C(e));
42058
+ function p4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosition: r, requestSelection: i, onMentionErased: a, textareaRef: o, enabled: s, sources: c, pinned: l, scopeKey: u, onInserted: d }) {
42059
+ let [f, p] = H(!1), [m, h] = H(""), [g, _] = H(i4), [v, y] = H(!1), [b, x] = H(0), [S, C] = H([]), w = V(S), T = z((e) => {
42060
+ f4(w.current, e) || (w.current = e, C(e));
42056
42061
  }, []), E = V(e), D = V(e);
42057
42062
  D.current = e;
42058
42063
  let O = V(-1), k = V(null), A = V(0), j = V(null), M = V(null), N = V(c), ee = V(d), te = V(u);
@@ -42060,15 +42065,15 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42060
42065
  N.current = c, ee.current = d;
42061
42066
  });
42062
42067
  let ne = s && (c.length > 0 || !!l), re = z(() => {
42063
- k.current &&= (clearTimeout(k.current), null), A.current++, y(!1), _((e) => e.groups.length === 0 ? e : r4);
42068
+ k.current &&= (clearTimeout(k.current), null), A.current++, y(!1), _((e) => e.groups.length === 0 ? e : i4);
42064
42069
  }, []), ie = te.current === u;
42065
42070
  Hr(() => {
42066
42071
  te.current !== u && (te.current = u, j.current = null, re());
42067
42072
  }, [u, re]);
42068
42073
  let ae = z(() => {
42069
42074
  let e = M.current;
42070
- e && (M.current = null, M2(e));
42071
- }, []), oe = z((e) => !!l && l.matches(e), [l]), se = Ur(() => oe(m), [oe, m]), ce = Ur(() => g.groups.map((e) => e.items.map((e) => ie && s4(e, g.query, m) ? "1" : "0").join("")).join("|"), [
42075
+ e && (M.current = null, N2(e));
42076
+ }, []), oe = z((e) => !!l && l.matches(e), [l]), se = Ur(() => oe(m), [oe, m]), ce = Ur(() => g.groups.map((e) => e.items.map((e) => ie && c4(e, g.query, m) ? "1" : "0").join("")).join("|"), [
42072
42077
  g,
42073
42078
  ie,
42074
42079
  m
@@ -42096,12 +42101,12 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42096
42101
  re(), p(!1);
42097
42102
  return;
42098
42103
  }
42099
- let t = X2(e, n, S);
42104
+ let t = Z2(e, n, S);
42100
42105
  if (!t) {
42101
42106
  re(), p(!1), h(""), x(0), O.current = -1, j.current = null;
42102
42107
  return;
42103
42108
  }
42104
- if (i4(j.current, t)) {
42109
+ if (a4(j.current, t)) {
42105
42110
  re();
42106
42111
  return;
42107
42112
  }
@@ -42109,14 +42114,14 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42109
42114
  let r = ++A.current, i = {
42110
42115
  text: e,
42111
42116
  cursor: n,
42112
- mentionsBefore: S.filter((e) => J2(e) <= t.atIndex).map(Y2)
42117
+ mentionsBefore: S.filter((e) => Y2(e) <= t.atIndex).map(X2)
42113
42118
  };
42114
42119
  return k.current = setTimeout(() => {
42115
42120
  let e = N.current;
42116
- e.length === 0 ? r === A.current && y(!1) : l4(e, t.query, i).then((e) => {
42121
+ e.length === 0 ? r === A.current && y(!1) : u4(e, t.query, i).then((e) => {
42117
42122
  if (r !== A.current) return;
42118
42123
  y(!1);
42119
- let n = u4(e, i);
42124
+ let n = d4(e, i);
42120
42125
  _({
42121
42126
  query: t.query,
42122
42127
  groups: n
@@ -42149,7 +42154,7 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42149
42154
  if (a === -1) return;
42150
42155
  let { item: o } = r, s = e.slice(0, a), c = e.slice(n), l = `@${o.label} `, u = s + l + c, d = s.length + l.length;
42151
42156
  t(u);
42152
- let f = l.length - (n - a), p = w.current.filter((e) => J2(e) <= a || e.start >= n).map((e) => e.start >= n ? {
42157
+ let f = l.length - (n - a), p = w.current.filter((e) => Y2(e) <= a || e.start >= n).map((e) => e.start >= n ? {
42153
42158
  ...e,
42154
42159
  start: e.start + f
42155
42160
  } : e);
@@ -42175,12 +42180,12 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42175
42180
  case "ArrowUp": return e.preventDefault(), x((e) => (e + ue.length - 1) % ue.length), !0;
42176
42181
  case "Tab": {
42177
42182
  let t = ue[b];
42178
- return t && (m.length === 0 || o4(t.item.label, m)) ? (e.preventDefault(), pe(t), !0) : !1;
42183
+ return t && (m.length === 0 || s4(t.item.label, m)) ? (e.preventDefault(), pe(t), !0) : !1;
42179
42184
  }
42180
42185
  case "Enter": {
42181
42186
  e.preventDefault();
42182
42187
  let t = ue[b];
42183
- return t && s4(t.item, g.query, m) && pe(t), !0;
42188
+ return t && c4(t.item, g.query, m) && pe(t), !0;
42184
42189
  }
42185
42190
  default: return !1;
42186
42191
  }
@@ -42198,12 +42203,12 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42198
42203
  E.current = n;
42199
42204
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
42200
42205
  for (let t of e) {
42201
- let e = a4(t.label), n = r.get(e);
42206
+ let e = o4(t.label), n = r.get(e);
42202
42207
  n ? n.push(t) : r.set(e, [t]), i.add(t.label);
42203
42208
  }
42204
42209
  let a = /* @__PURE__ */ new Set();
42205
- T(q2(n, [...i].map((e) => ({ name: e }))).flatMap(({ entry: { name: e }, start: t, end: i }) => {
42206
- let o = r.get(a4(e)) ?? [], s = o.filter((e) => !a.has(e)), c = n.slice(t + 1, i), l = s.find((e) => e.label === c) ?? s[0] ?? o[o.length - 1];
42210
+ T(J2(n, [...i].map((e) => ({ name: e }))).flatMap(({ entry: { name: e }, start: t, end: i }) => {
42211
+ let o = r.get(o4(e)) ?? [], s = o.filter((e) => !a.has(e)), c = n.slice(t + 1, i), l = s.find((e) => e.label === c) ?? s[0] ?? o[o.length - 1];
42207
42212
  return l && a.add(l), l ? [{
42208
42213
  ...l,
42209
42214
  start: t,
@@ -42219,12 +42224,12 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42219
42224
  E.current = e;
42220
42225
  let s = w.current;
42221
42226
  if (s.length === 0) return;
42222
- let { kept: c, touched: l } = t4(o, e, s);
42227
+ let { kept: c, touched: l } = n4(o, e, s);
42223
42228
  if (l.length === 0) {
42224
42229
  T(c);
42225
42230
  return;
42226
42231
  }
42227
- let u = n4(e, l, c, n);
42232
+ let u = r4(e, l, c, n);
42228
42233
  E.current = u.text, T(u.mentions), t(u.text), r(u.caret), i(u.caret, u.text), a?.(u.text);
42229
42234
  }, [
42230
42235
  e,
@@ -42247,8 +42252,8 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42247
42252
  return;
42248
42253
  }
42249
42254
  let t = M.current;
42250
- (!t || t.textarea !== e || t.width !== e.clientWidth) && (t && M2(t), t = j2(e), M.current = t);
42251
- let n = N2(t, O.current), r = e.offsetLeft + n.left, i = e.offsetParent, a = (i instanceof HTMLElement ? i.offsetHeight : 0) - (e.offsetTop + n.top);
42255
+ (!t || t.textarea !== e || t.width !== e.clientWidth) && (t && N2(t), t = M2(e), M.current = t);
42256
+ let n = P2(t, O.current), r = e.offsetLeft + n.left, i = e.offsetParent, a = (i instanceof HTMLElement ? i.offsetHeight : 0) - (e.offsetTop + n.top);
42252
42257
  _e((e) => e?.left === r && e.bottom === a ? e : {
42253
42258
  left: r,
42254
42259
  bottom: a
@@ -42274,7 +42279,7 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42274
42279
  let e = ue[b];
42275
42280
  if (!e) return null;
42276
42281
  let t = e.item.label;
42277
- return m.length === 0 ? t : o4(t, m) ? t.slice(m.length) : null;
42282
+ return m.length === 0 ? t : s4(t, m) ? t.slice(m.length) : null;
42278
42283
  }, [
42279
42284
  f,
42280
42285
  ue,
@@ -42291,10 +42296,10 @@ function f4({ inputValue: e, setInputValue: t, cursorPosition: n, setCursorPosit
42291
42296
  }
42292
42297
  //#endregion
42293
42298
  //#region src/elements/primitives/_primitives/F0ChatComposer/utils/highlight.ts
42294
- function p4(e, t, n) {
42299
+ function m4(e, t, n) {
42295
42300
  let r = n?.cursorPosition ?? e.length, i = n?.inlineCompletion ?? null, a = t.map((e) => ({
42296
42301
  start: e.start,
42297
- end: J2(e)
42302
+ end: Y2(e)
42298
42303
  })).filter((t) => t.start >= 0 && t.end <= e.length).sort((e, t) => e.start - t.start), o = [], s = 0, c = !1, l = (t) => {
42299
42304
  !i || c || r < s || r > t ? (t > s && o.push({
42300
42305
  type: "text",
@@ -42324,19 +42329,19 @@ function p4(e, t, n) {
42324
42329
  }
42325
42330
  //#endregion
42326
42331
  //#region src/elements/primitives/_primitives/F0ChatComposer/useComposerEditor.ts
42327
- var m4 = 1500, h4 = (e) => e.nativeEvent.isComposing || e.keyCode === 229;
42328
- function g4({ mentions: e, transformChange: t, onTextChange: n, historySuspended: r = !1 }) {
42332
+ var h4 = 1500, g4 = (e) => e.nativeEvent.isComposing || e.keyCode === 229;
42333
+ function _4({ mentions: e, transformChange: t, onTextChange: n, historySuspended: r = !1 }) {
42329
42334
  let [i, a] = H(""), [o, s] = H(0), c = V(null), l = V(null), u = V(null), d = z((e, t, n = !1) => {
42330
42335
  u.current = {
42331
42336
  caret: e,
42332
42337
  forText: t,
42333
42338
  focus: n
42334
42339
  };
42335
- }, []), f = k2(), p = V({
42340
+ }, []), f = A2(), p = V({
42336
42341
  value: "",
42337
42342
  caret: 0,
42338
42343
  mentions: []
42339
- }), m = V(!1), h = V(null), g = V(!1), _ = f4({
42344
+ }), m = V(!1), h = V(null), g = V(!1), _ = p4({
42340
42345
  inputValue: i,
42341
42346
  setInputValue: a,
42342
42347
  cursorPosition: o,
@@ -42430,7 +42435,7 @@ function g4({ mentions: e, transformChange: t, onTextChange: n, historySuspended
42430
42435
  S
42431
42436
  ]), N = z((e) => e.key !== "Escape" || i.length === 0 ? !1 : (e.preventDefault(), e.stopPropagation(), y ? (M(), !0) : (b(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
42432
42437
  x.current = null, b(!1);
42433
- }, m4), !0)), [
42438
+ }, h4), !0)), [
42434
42439
  i.length,
42435
42440
  y,
42436
42441
  M
@@ -42463,10 +42468,10 @@ function g4({ mentions: e, transformChange: t, onTextChange: n, historySuspended
42463
42468
  breakHistory: ee
42464
42469
  };
42465
42470
  }
42466
- function _4(e, { suppressGhost: t = !1 } = {}) {
42471
+ function v4(e, { suppressGhost: t = !1 } = {}) {
42467
42472
  let { value: n, cursorPosition: r, mentions: i } = e, a = t ? null : i.inlineCompletion;
42468
42473
  return {
42469
- highlightSegments: Ur(() => p4(n, i.mentions, {
42474
+ highlightSegments: Ur(() => m4(n, i.mentions, {
42470
42475
  cursorPosition: r,
42471
42476
  inlineCompletion: a
42472
42477
  }), [
@@ -42480,7 +42485,7 @@ function _4(e, { suppressGhost: t = !1 } = {}) {
42480
42485
  }
42481
42486
  //#endregion
42482
42487
  //#region src/elements/primitives/_primitives/F0ChatComposer/F0ChatComposer.tsx
42483
- var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n, sendKind: r = "send", hasAttachments: i = !1, sendBlocked: a = !1, maxLength: o, maxLengthError: s, error: c = null, labels: l, placeholders: u, placeholdersPaused: d, role: f = "combobox", name: p, mentions: m, autocomplete: h, voice: g, onTextChange: _, onCleared: v, onEscape: y, onArrowUpWhenEmpty: b, onPasteFiles: x, pastePreferText: S = !1, onStateChange: C, header: w, tray: T, leading: E, toolbarStart: D, toolbarCenter: O, collapsible: k = !1, collapsed: A = !1, replacement: j, accent: M = !1, asForm: N = !1, className: ee, surfaceRef: te, onSurfaceFocus: ne, onSurfaceBlur: re, handleRef: ie, reducedMotion: ae = !1, "data-testid": oe }) => {
42488
+ var y4 = [], b4 = () => null, x4 = ({ onSend: e, inProgress: t = !1, onStop: n, sendKind: r = "send", hasAttachments: i = !1, sendBlocked: a = !1, maxLength: o, maxLengthError: s, error: c = null, labels: l, placeholders: u, placeholdersPaused: d, role: f = "combobox", name: p, mentions: m, autocomplete: h, voice: g, onTextChange: _, onCleared: v, onEscape: y, onArrowUpWhenEmpty: b, onPasteFiles: x, pastePreferText: S = !1, onStateChange: C, header: w, tray: T, leading: E, toolbarStart: D, toolbarCenter: O, collapsible: k = !1, collapsed: A = !1, replacement: j, accent: M = !1, asForm: N = !1, className: ee, surfaceRef: te, onSurfaceFocus: ne, onSurfaceBlur: re, handleRef: ie, reducedMotion: ae = !1, "data-testid": oe }) => {
42484
42489
  let se = He(), ce = {
42485
42490
  placeholder: se.chat.placeholder,
42486
42491
  listening: se.chat.listening,
@@ -42495,7 +42500,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42495
42500
  micError: se.chat.micError,
42496
42501
  transcriptionError: se.chat.transcriptionError,
42497
42502
  ...l
42498
- }, le = j != null, { error: ue, show: de, clear: fe } = _2(), pe = V(() => {}), P = V(() => {}), me = V(""), he = z((e) => {
42503
+ }, le = j != null, { error: ue, show: de, clear: fe } = v2(), pe = V(() => {}), P = V(() => {}), me = V(""), he = z((e) => {
42499
42504
  let t = me.current, n = t && !/\s$/.test(t) ? " " : "";
42500
42505
  pe.current(`${t}${n}${e}`);
42501
42506
  }, []), _e = {
@@ -42510,10 +42515,10 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42510
42515
  },
42511
42516
  onError: (e) => de(_e[e]),
42512
42517
  onAudio: g?.onAudio
42513
- }), [ye, be] = H(!1), xe = ve.status === "recording", Se = ve.status === "transcribing", Ce = !!g && (!!g.onTranscribe || !!g.onAudio) && ve.isSupported, we = !g?.onAudio && (ve.status !== "idle" || ye), [Te, Ee] = H(!1), Oe = g4({
42518
+ }), [ye, be] = H(!1), xe = ve.status === "recording", Se = ve.status === "transcribing", Ce = !!g && (!!g.onTranscribe || !!g.onAudio) && ve.isSupported, we = !g?.onAudio && (ve.status !== "idle" || ye), [Te, Ee] = H(!1), Oe = _4({
42514
42519
  mentions: {
42515
42520
  enabled: !!m && m.sources.length + +!!m.pinned > 0 && !Te && !le,
42516
- sources: m?.sources ?? v4,
42521
+ sources: m?.sources ?? y4,
42517
42522
  pinned: m?.pinned,
42518
42523
  scopeKey: m?.scopeKey,
42519
42524
  onInserted: m?.onInserted
@@ -42529,11 +42534,11 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42529
42534
  Re.current = ke;
42530
42535
  let ze = V(Pe.mentions);
42531
42536
  ze.current = Pe.mentions;
42532
- let Be = (h?.useAutocomplete ?? y4)(Oe), Ve = Be?.isOpen ?? !1, Ue = Pe.dismissCurrentTrigger;
42537
+ let Be = (h?.useAutocomplete ?? b4)(Oe), Ve = Be?.isOpen ?? !1, Ue = Pe.dismissCurrentTrigger;
42533
42538
  B(() => {
42534
42539
  Ee(Ve), Ve && Ue();
42535
42540
  }, [Ve, Ue]);
42536
- let { highlightSegments: We, hasOverlay: Ge } = _4(Oe, { suppressGhost: Ve }), Ke = z((e) => {
42541
+ let { highlightSegments: We, hasOverlay: Ge } = v4(Oe, { suppressGhost: Ve }), Ke = z((e) => {
42537
42542
  let t = Me.current;
42538
42543
  if (!t) return;
42539
42544
  t.focus(e);
@@ -42648,14 +42653,14 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42648
42653
  let t = gt;
42649
42654
  return _t(e) ? (t && (Ze(!1), v?.()), !0) : !1;
42650
42655
  }, bt = (e) => {
42651
- le || h4(e) || vt(e) || Be?.handleKeyDown(e) || Pe.handleKeyDown(e) || yt(e) || (e.key === "ArrowUp" && !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey && ke === "" && ve.status === "idle" && !ye && !g?.busy && b?.() ? e.preventDefault() : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), t || ot()));
42656
+ le || g4(e) || vt(e) || Be?.handleKeyDown(e) || Pe.handleKeyDown(e) || yt(e) || (e.key === "ArrowUp" && !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey && ke === "" && ve.status === "idle" && !ye && !g?.busy && b?.() ? e.preventDefault() : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), t || ot()));
42652
42657
  }, xt = (e) => {
42653
42658
  e.preventDefault(), !le && (t && !we ? (Pe.close(), n?.(), Me.current?.focus()) : ot());
42654
- }, St = u2({
42659
+ }, St = d2({
42655
42660
  enabled: !!x && !le,
42656
42661
  onFiles: x ?? (() => {}),
42657
42662
  preferText: S
42658
- }), Ct = Br(), wt = Br(), Tt = `chat-composer-mentions-${Ct.replace(/:/g, "")}`, Et = Pe.isOpen && !Ve && !le && (Pe.isLoading || Pe.rows.length > 0), Dt = Pe.rows[Pe.selectedIndex] ?? Pe.rows[0], Ot = Et && Dt ? v2(Tt, Dt.item) : void 0, kt = (e) => Ce ? /* @__PURE__ */ U(Je, {
42663
+ }), Ct = Br(), wt = Br(), Tt = `chat-composer-mentions-${Ct.replace(/:/g, "")}`, Et = Pe.isOpen && !Ve && !le && (Pe.isLoading || Pe.rows.length > 0), Dt = Pe.rows[Pe.selectedIndex] ?? Pe.rows[0], Ot = Et && Dt ? y2(Tt, Dt.item) : void 0, kt = (e) => Ce ? /* @__PURE__ */ U(Je, {
42659
42664
  type: "button",
42660
42665
  variant: "outline",
42661
42666
  size: e,
@@ -42772,7 +42777,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42772
42777
  ]
42773
42778
  }, It = /* @__PURE__ */ W(Gr, { children: [
42774
42779
  w,
42775
- /* @__PURE__ */ U(C2, {
42780
+ /* @__PURE__ */ U(w2, {
42776
42781
  message: et,
42777
42782
  id: wt,
42778
42783
  reducedMotion: ae
@@ -42782,7 +42787,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42782
42787
  className: F((E || A) && "flex items-end", A && "pr-3"),
42783
42788
  children: [
42784
42789
  E,
42785
- /* @__PURE__ */ U(h2, {
42790
+ /* @__PURE__ */ U(g2, {
42786
42791
  className: "min-w-0 flex-1",
42787
42792
  textareaRef: Me,
42788
42793
  highlightRef: Ne,
@@ -42843,7 +42848,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42843
42848
  }) : Pt
42844
42849
  ] }), Lt = /* @__PURE__ */ W(Gr, { children: [
42845
42850
  Be?.popover,
42846
- /* @__PURE__ */ U(S2, {
42851
+ /* @__PURE__ */ U(C2, {
42847
42852
  isOpen: Et,
42848
42853
  listboxId: Tt,
42849
42854
  label: ce.mentionSuggestions,
@@ -42926,7 +42931,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42926
42931
  children: It
42927
42932
  }, "input")
42928
42933
  })
42929
- ] }), Rt = F(w2, M && "!border-f1-border-selected", ee);
42934
+ ] }), Rt = F(T2, M && "!border-f1-border-selected", ee);
42930
42935
  return N ? /* @__PURE__ */ U("form", {
42931
42936
  ref: te,
42932
42937
  "data-testid": oe,
@@ -42952,7 +42957,7 @@ var v4 = [], y4 = () => null, b4 = ({ onSend: e, inProgress: t = !1, onStop: n,
42952
42957
  };
42953
42958
  //#endregion
42954
42959
  //#region src/addons/ai/ai/F0AiChat/hooks/useRevealOnChange.ts
42955
- function x4(e, t, n = .2) {
42960
+ function S4(e, t, n = .2) {
42956
42961
  let r = O(), [i, a] = H(!0), o = V(e);
42957
42962
  return S(() => {
42958
42963
  if (o.current === e) return;
@@ -42976,10 +42981,10 @@ function x4(e, t, n = .2) {
42976
42981
  }
42977
42982
  //#endregion
42978
42983
  //#region src/addons/ai/ai/F0AiChat/providers/AiChatStateProvider.tsx
42979
- var S4 = Pr(null), C4 = () => {}, w4 = [{
42984
+ var C4 = Pr(null), w4 = () => {}, T4 = [{
42980
42985
  id: "ai",
42981
42986
  restoresContent: !0
42982
- }], T4 = (e) => ({
42987
+ }], E4 = (e) => ({
42983
42988
  open: e.open,
42984
42989
  setOpen: e.setOpen,
42985
42990
  resizable: e.resizable,
@@ -43002,15 +43007,15 @@ var S4 = Pr(null), C4 = () => {}, w4 = [{
43002
43007
  setPanelContentSide: e.setContentSide,
43003
43008
  shouldPlayEntranceAnimation: e.shouldPlayEntranceAnimation,
43004
43009
  setShouldPlayEntranceAnimation: e.setShouldPlayEntranceAnimation
43005
- }), E4 = (e) => n2() ? /* @__PURE__ */ U(D4, { ...e }) : /* @__PURE__ */ U($0, {
43006
- views: w4,
43010
+ }), D4 = (e) => r2() ? /* @__PURE__ */ U(O4, { ...e }) : /* @__PURE__ */ U(e2, {
43011
+ views: T4,
43007
43012
  side: e.side,
43008
43013
  contentSide: e.panelContentSide,
43009
43014
  resizable: e.resizable,
43010
43015
  defaultLayout: e.defaultVisualizationMode === "fullscreen" ? "fullscreen" : "sidepanel",
43011
- children: /* @__PURE__ */ U(D4, { ...e })
43012
- }), D4 = ({ children: e, enabled: t, agent: n, initialMessage: r, chatHeader: i, chatMessages: a, chatInput: o, chatOverlay: s, welcomeScreenSuggestions: c = [], welcomeScreenCards: l = [], disclaimer: u, lockVisualizationMode: d = !1, historyEnabled: f = !1, footer: p, VoiceMode: m, entityRefs: h, canvasActions: g, canvasEntities: _, credits: v, employeeCredits: y, creditWarning: b, fileAttachments: x, filePreviews: S, onTranscribe: C, onThumbsDown: w, onThumbsUp: T, tracking: E }) => {
43013
- let [D, O] = H(p), [k, A] = H(t), j = t2(), { open: M, setOpen: N, layout: ee, setLayout: te } = j, [ne, re] = H("chat"), [ie, ae] = H(n), [oe, se] = H(c), [ce, le] = H(l), ue = He(), { currentPath: de } = Be(), [fe, pe] = H([ue.t("ai.inputPlaceholder")]), [P, me] = H(r), [he, ge] = H(null), _e = he ? "canvas" : ee, ve = V(he);
43016
+ children: /* @__PURE__ */ U(O4, { ...e })
43017
+ }), O4 = ({ children: e, enabled: t, agent: n, initialMessage: r, chatHeader: i, chatMessages: a, chatInput: o, chatOverlay: s, welcomeScreenSuggestions: c = [], welcomeScreenCards: l = [], disclaimer: u, lockVisualizationMode: d = !1, historyEnabled: f = !1, footer: p, VoiceMode: m, entityRefs: h, canvasActions: g, canvasEntities: _, credits: v, employeeCredits: y, creditWarning: b, fileAttachments: x, filePreviews: S, onTranscribe: C, onThumbsDown: w, onThumbsUp: T, tracking: E }) => {
43018
+ let [D, O] = H(p), [k, A] = H(t), j = n2(), { open: M, setOpen: N, layout: ee, setLayout: te } = j, [ne, re] = H("chat"), [ie, ae] = H(n), [oe, se] = H(c), [ce, le] = H(l), ue = He(), { currentPath: de } = Be(), [fe, pe] = H([ue.t("ai.inputPlaceholder")]), [P, me] = H(r), [he, ge] = H(null), _e = he ? "canvas" : ee, ve = V(he);
43014
43019
  ve.current = he;
43015
43020
  let ye = V(ee);
43016
43021
  ye.current = ee;
@@ -43063,7 +43068,7 @@ var S4 = Pr(null), C4 = () => {}, w4 = [{
43063
43068
  let Xe = z((e) => {
43064
43069
  e && ge(null), j.present(e);
43065
43070
  }, [j]);
43066
- return /* @__PURE__ */ U(S4.Provider, {
43071
+ return /* @__PURE__ */ U(C4.Provider, {
43067
43072
  value: {
43068
43073
  enabled: k,
43069
43074
  setEnabled: A,
@@ -43125,18 +43130,18 @@ var S4 = Pr(null), C4 = () => {}, w4 = [{
43125
43130
  },
43126
43131
  children: e
43127
43132
  });
43128
- }, O4 = /* @__PURE__ */ new Set([
43133
+ }, k4 = /* @__PURE__ */ new Set([
43129
43134
  "enabled",
43130
43135
  "fileDragOver",
43131
43136
  "lockVisualizationMode",
43132
43137
  "historyEnabled",
43133
43138
  "isClarifying"
43134
- ]), k4 = /* @__PURE__ */ new Set([
43139
+ ]), A4 = /* @__PURE__ */ new Set([
43135
43140
  "canvasContent",
43136
43141
  "pendingContext",
43137
43142
  "pendingQuote",
43138
43143
  "activeGame"
43139
- ]), A4 = /* @__PURE__ */ new Set([
43144
+ ]), j4 = /* @__PURE__ */ new Set([
43140
43145
  "agent",
43141
43146
  "initialMessage",
43142
43147
  "chatHeader",
@@ -43158,34 +43163,34 @@ var S4 = Pr(null), C4 = () => {}, w4 = [{
43158
43163
  "onTranscribe",
43159
43164
  "onThumbsUp",
43160
43165
  "onThumbsDown"
43161
- ]), j4 = {
43166
+ ]), M4 = {
43162
43167
  visualizationMode: "sidepanel",
43163
43168
  mode: "chat",
43164
43169
  placeholders: [],
43165
43170
  welcomeScreenSuggestions: [],
43166
43171
  welcomeScreenCards: [],
43167
43172
  focusChatInput: () => !1
43168
- }, M4 = (e) => {
43173
+ }, N4 = (e) => {
43169
43174
  let t = e;
43170
- if (t in j4) return j4[t];
43171
- if (k4.has(t)) return null;
43172
- if (!A4.has(t)) return !O4.has(t) && C4;
43175
+ if (t in M4) return M4[t];
43176
+ if (A4.has(t)) return null;
43177
+ if (!j4.has(t)) return !k4.has(t) && w4;
43173
43178
  };
43174
- function N4() {
43175
- let e = zr(S4), t = t2();
43179
+ function P4() {
43180
+ let e = zr(C4), t = n2();
43176
43181
  return Ur(() => {
43177
- let n = T4(t);
43182
+ let n = E4(t);
43178
43183
  return e ? {
43179
43184
  ...e,
43180
43185
  ...n
43181
43186
  } : new Proxy({}, { get(e, t) {
43182
- if (typeof t == "string") return t in n ? n[t] : M4(t);
43187
+ if (typeof t == "string") return t in n ? n[t] : N4(t);
43183
43188
  } });
43184
43189
  }, [e, t]);
43185
43190
  }
43186
43191
  //#endregion
43187
43192
  //#region src/elements/primitives/_primitives/F0Attachments/hooks/useMountOnVisible.ts
43188
- var P4 = () => {
43193
+ var F4 = () => {
43189
43194
  let [e, t] = H(() => typeof IntersectionObserver > "u"), n = V(null), r = V(e);
43190
43195
  return {
43191
43196
  ref: z((e) => {
@@ -43197,7 +43202,7 @@ var P4 = () => {
43197
43202
  }, []),
43198
43203
  shouldMount: e
43199
43204
  };
43200
- }, F4 = ({ children: e, className: t, lines: n = 1 }) => n > 1 ? /* @__PURE__ */ U("span", {
43205
+ }, I4 = ({ children: e, className: t, lines: n = 1 }) => n > 1 ? /* @__PURE__ */ U("span", {
43201
43206
  title: e,
43202
43207
  className: F("line-clamp-1 min-w-0 max-w-full overflow-hidden whitespace-normal", t),
43203
43208
  style: {
@@ -43209,25 +43214,25 @@ var P4 = () => {
43209
43214
  title: e,
43210
43215
  className: F("block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap", t),
43211
43216
  children: e
43212
- }), I4 = () => import("./PdfThumbnail-ChSb97op.js"), L4 = () => import("./SheetThumbnail-HtGezPp4.js"), R4 = () => import("./DocxThumbnail-kHTNnwW0.js"), z4 = () => import("./TextThumbnail-X04JgaNI.js"), B4 = Lr(I4), V4 = Lr(L4), H4 = Lr(R4), U4 = Lr(z4), W4 = 384, G4 = 160, K4 = ({ kind: e, url: t, width: n, onError: r, onRendered: i }) => e === "pdf" ? /* @__PURE__ */ U(B4, {
43217
+ }), L4 = () => import("./PdfThumbnail-D09QDkNP.js"), R4 = () => import("./SheetThumbnail-HtGezPp4.js"), z4 = () => import("./DocxThumbnail-kHTNnwW0.js"), B4 = () => import("./TextThumbnail-X04JgaNI.js"), V4 = Lr(L4), H4 = Lr(R4), U4 = Lr(z4), W4 = Lr(B4), G4 = 384, K4 = 160, q4 = ({ kind: e, url: t, width: n, onError: r, onRendered: i }) => e === "pdf" ? /* @__PURE__ */ U(V4, {
43213
43218
  url: t,
43214
43219
  width: n,
43215
43220
  onError: r,
43216
43221
  onRendered: i
43217
- }) : e === "sheet" ? /* @__PURE__ */ U(V4, {
43222
+ }) : e === "sheet" ? /* @__PURE__ */ U(H4, {
43218
43223
  url: t,
43219
43224
  onError: r,
43220
43225
  onRendered: i
43221
- }) : e === "docx" ? /* @__PURE__ */ U(H4, {
43226
+ }) : e === "docx" ? /* @__PURE__ */ U(U4, {
43222
43227
  url: t,
43223
43228
  width: n,
43224
43229
  onError: r,
43225
43230
  onRendered: i
43226
- }) : e === "text" ? /* @__PURE__ */ U(U4, {
43231
+ }) : e === "text" ? /* @__PURE__ */ U(W4, {
43227
43232
  url: t,
43228
43233
  onError: r,
43229
43234
  onRendered: i
43230
- }) : null, q4 = ({ file: e, action: t, cornerClass: n, surfaceClassName: r, testIdPrefix: i }) => {
43235
+ }) : null, J4 = ({ file: e, action: t, cornerClass: n, surfaceClassName: r, testIdPrefix: i }) => {
43231
43236
  let a = {
43232
43237
  name: e.name,
43233
43238
  type: e.mimeType ?? ""
@@ -43254,21 +43259,21 @@ var P4 = () => {
43254
43259
  children: e.name
43255
43260
  })] }) : null]
43256
43261
  });
43257
- }, J4 = ({ file: e, kind: t, cornerClass: n = "rounded-xl", action: r, previewDisabled: i = !1, compact: a = !1, surfaceClassName: o, onOpened: s, onBeforeOpen: c, onDownloaded: l, testIdPrefix: u = "chat", lazyMount: d = !1, failedAction: f, fitWidth: p = !1, decorativeSnapshot: m = !1 }) => {
43258
- let h = He(), g = L1(), _ = N1(), [v, y] = H(!1), b = P4(), x = !d || b.shouldMount, S = j1(t === "pdf" ? e.previewUrl ?? e.url : e.url, { enabled: x }), C = r ?? {
43262
+ }, Y4 = ({ file: e, kind: t, cornerClass: n = "rounded-xl", action: r, previewDisabled: i = !1, compact: a = !1, surfaceClassName: o, onOpened: s, onBeforeOpen: c, onDownloaded: l, testIdPrefix: u = "chat", lazyMount: d = !1, failedAction: f, fitWidth: p = !1, decorativeSnapshot: m = !1 }) => {
43263
+ let h = He(), g = L1(), _ = N1(), [v, y] = H(!1), b = F4(), x = !d || b.shouldMount, S = j1(t === "pdf" ? e.previewUrl ?? e.url : e.url, { enabled: x }), C = r ?? {
43259
43264
  label: h.t("chat.downloadNamedFile", { name: e.name }),
43260
43265
  icon: Ja,
43261
43266
  onClick: () => {
43262
43267
  _(e.url, e.name), l?.();
43263
43268
  }
43264
- }, w = a ? 64 : W4, T = Y4(p && !a, w), E = b.ref, D = T.setElement, O = z((e) => {
43269
+ }, w = a ? 64 : G4, T = X4(p && !a, w), E = b.ref, D = T.setElement, O = z((e) => {
43265
43270
  d && E(e), D(e);
43266
43271
  }, [
43267
43272
  d,
43268
43273
  E,
43269
43274
  D
43270
43275
  ]), k = v || S.status === "error";
43271
- return k && a ? /* @__PURE__ */ U(q4, {
43276
+ return k && a ? /* @__PURE__ */ U(J4, {
43272
43277
  file: e,
43273
43278
  action: f === void 0 ? C : f,
43274
43279
  cornerClass: n,
@@ -43291,7 +43296,7 @@ var P4 = () => {
43291
43296
  },
43292
43297
  size: "md"
43293
43298
  }),
43294
- /* @__PURE__ */ U(F4, {
43299
+ /* @__PURE__ */ U(I4, {
43295
43300
  className: "grow text-sm font-medium text-f1-foreground",
43296
43301
  children: e.name
43297
43302
  }),
@@ -43306,18 +43311,18 @@ var P4 = () => {
43306
43311
  }) : null
43307
43312
  ]
43308
43313
  }),
43309
- k ? /* @__PURE__ */ U(X4, {
43310
- height: G4,
43314
+ k ? /* @__PURE__ */ U(Z4, {
43315
+ height: K4,
43311
43316
  surfaceClassName: o,
43312
43317
  testIdPrefix: u,
43313
43318
  download: r ? void 0 : C
43314
- }) : /* @__PURE__ */ U(Z4, {
43319
+ }) : /* @__PURE__ */ U(Q4, {
43315
43320
  file: e,
43316
43321
  kind: t,
43317
43322
  compact: a,
43318
43323
  url: x && S.status === "ready" ? S.url : void 0,
43319
43324
  width: w - 2,
43320
- height: a ? "100%" : G4,
43325
+ height: a ? "100%" : K4,
43321
43326
  scale: T.value,
43322
43327
  previewDisabled: i,
43323
43328
  decorative: m,
@@ -43345,7 +43350,7 @@ var P4 = () => {
43345
43350
  })] }) : null
43346
43351
  ]
43347
43352
  });
43348
- }, Y4 = (e, t) => {
43353
+ }, X4 = (e, t) => {
43349
43354
  let [n, r] = H(null), [i, a] = H(1);
43350
43355
  return Hr(() => {
43351
43356
  if (!e || !n) return;
@@ -43364,7 +43369,7 @@ var P4 = () => {
43364
43369
  setElement: r,
43365
43370
  value: i
43366
43371
  };
43367
- }, X4 = ({ height: e, surfaceClassName: t, testIdPrefix: n, download: r }) => {
43372
+ }, Z4 = ({ height: e, surfaceClassName: t, testIdPrefix: n, download: r }) => {
43368
43373
  let i = He();
43369
43374
  return /* @__PURE__ */ W("div", {
43370
43375
  className: F("flex flex-col items-center justify-center gap-2 border-0 border-t border-solid border-f1-border-secondary bg-f1-background-secondary px-4", t),
@@ -43383,7 +43388,7 @@ var P4 = () => {
43383
43388
  onClick: r.onClick
43384
43389
  }) : null]
43385
43390
  });
43386
- }, Z4 = ({ file: e, kind: t, compact: n, url: r, width: i, height: a, scale: o, previewDisabled: s, decorative: c, surfaceClassName: l, testIdPrefix: u, onOpen: d, onFailed: f }) => {
43391
+ }, Q4 = ({ file: e, kind: t, compact: n, url: r, width: i, height: a, scale: o, previewDisabled: s, decorative: c, surfaceClassName: l, testIdPrefix: u, onOpen: d, onFailed: f }) => {
43387
43392
  let p = He(), { reducedMotion: m } = y1(), [h, g] = H(!1);
43388
43393
  return /* @__PURE__ */ W("button", {
43389
43394
  type: "button",
@@ -43404,7 +43409,7 @@ var P4 = () => {
43404
43409
  "data-testid": `${u}-document-snapshot`,
43405
43410
  children: /* @__PURE__ */ U(Mr, {
43406
43411
  fallback: null,
43407
- children: r ? /* @__PURE__ */ U(K4, {
43412
+ children: r ? /* @__PURE__ */ U(q4, {
43408
43413
  kind: t,
43409
43414
  url: r,
43410
43415
  width: i,
@@ -43414,7 +43419,7 @@ var P4 = () => {
43414
43419
  })
43415
43420
  })]
43416
43421
  });
43417
- }, Q4 = ({ attachment: e, status: t, errorMessage: n, removeLabel: r, onRemove: i, testIdPrefix: a = "chat" }) => {
43422
+ }, $4 = ({ attachment: e, status: t, errorMessage: n, removeLabel: r, onRemove: i, testIdPrefix: a = "chat" }) => {
43418
43423
  let o = t === "uploading", s = t === "error", [c, l] = H(null), u = c === e.url, d, f, p = "";
43419
43424
  if (e.kind === "image") f = "image-preview", p = "h-16 w-16", d = /* @__PURE__ */ U(J1, {
43420
43425
  src: e.thumbnailUrl ?? e.url,
@@ -43442,7 +43447,7 @@ var P4 = () => {
43442
43447
  });
43443
43448
  else {
43444
43449
  let t = n0(e);
43445
- t && i0(e, t) ? (f = "document-preview", d = /* @__PURE__ */ U(J4, {
43450
+ t && i0(e, t) ? (f = "document-preview", d = /* @__PURE__ */ U(Y4, {
43446
43451
  file: e,
43447
43452
  kind: t,
43448
43453
  cornerClass: "rounded-lg",
@@ -43469,11 +43474,11 @@ var P4 = () => {
43469
43474
  "data-testid": `${a}-composer-${f}`,
43470
43475
  "data-status": t,
43471
43476
  children: [
43472
- /* @__PURE__ */ U($4, {
43477
+ /* @__PURE__ */ U(e3, {
43473
43478
  active: o,
43474
43479
  children: d
43475
43480
  }),
43476
- /* @__PURE__ */ U(e3, {
43481
+ /* @__PURE__ */ U(t3, {
43477
43482
  uploading: o,
43478
43483
  failed: s,
43479
43484
  testIdPrefix: a
@@ -43500,13 +43505,13 @@ var P4 = () => {
43500
43505
  label: n,
43501
43506
  children: m
43502
43507
  }) : m;
43503
- }, $4 = ({ active: e, children: t }) => {
43508
+ }, e3 = ({ active: e, children: t }) => {
43504
43509
  let { reducedMotion: n } = y1();
43505
43510
  return /* @__PURE__ */ U("div", {
43506
43511
  className: F("flex h-full w-full", !n && "transition-[filter,transform] duration-200 ease-out", e && "scale-[1.08] blur-[4px]"),
43507
43512
  children: t
43508
43513
  });
43509
- }, e3 = ({ uploading: e, failed: t, testIdPrefix: n }) => {
43514
+ }, t3 = ({ uploading: e, failed: t, testIdPrefix: n }) => {
43510
43515
  let { reducedMotion: r } = y1(), i = {
43511
43516
  duration: r ? 0 : .18,
43512
43517
  ease: "easeOut"
@@ -43545,7 +43550,7 @@ var P4 = () => {
43545
43550
  })
43546
43551
  }, "overlay") : null
43547
43552
  });
43548
- }, t3 = ({ items: e, label: t, busy: n, reducedMotion: r, stripRef: i, testIdPrefix: a = "chat" }) => /* @__PURE__ */ U(ge, {
43553
+ }, n3 = ({ items: e, label: t, busy: n, reducedMotion: r, stripRef: i, testIdPrefix: a = "chat" }) => /* @__PURE__ */ U(ge, {
43549
43554
  initial: !1,
43550
43555
  children: e.length > 0 ? /* @__PURE__ */ U(De.div, {
43551
43556
  className: "overflow-hidden",
@@ -43608,7 +43613,7 @@ var P4 = () => {
43608
43613
  })
43609
43614
  })
43610
43615
  }, "attachments-row") : null
43611
- }), n3 = ke({
43616
+ }), r3 = ke({
43612
43617
  base: "flex gap-md",
43613
43618
  variants: {
43614
43619
  align: {
@@ -43668,11 +43673,11 @@ var P4 = () => {
43668
43673
  fullWidthOnStack: !1,
43669
43674
  reverseOnStack: !1
43670
43675
  }
43671
- }), r3 = {
43676
+ }), i3 = {
43672
43677
  sm: 640,
43673
43678
  md: 768,
43674
43679
  "container-md": 448
43675
- }, i3 = (e) => "type" in e && e.type === "separator", a3 = (e) => "type" in e && e.type === "split", o3 = (e) => !("type" in e), s3 = (e, t, n) => /* @__PURE__ */ U(xe, {
43680
+ }, a3 = (e) => "type" in e && e.type === "separator", o3 = (e) => "type" in e && e.type === "split", s3 = (e) => !("type" in e), c3 = (e, t, n) => /* @__PURE__ */ U(xe, {
43676
43681
  label: e.label,
43677
43682
  icon: e.icon,
43678
43683
  iconPosition: e.iconPosition,
@@ -43686,29 +43691,29 @@ var P4 = () => {
43686
43691
  href: e.href,
43687
43692
  target: e.target
43688
43693
  }
43689
- }, e.id), c3 = (e, t, n) => {
43694
+ }, e.id), l3 = (e, t, n) => {
43690
43695
  let { id: r, type: i, ...a } = e;
43691
43696
  return /* @__PURE__ */ U(qB, {
43692
43697
  ...a,
43693
43698
  size: t,
43694
43699
  variant: n
43695
43700
  }, r);
43696
- }, l3 = (e, t) => /* @__PURE__ */ U(xe, {
43701
+ }, u3 = (e, t) => /* @__PURE__ */ U(xe, {
43697
43702
  label: e.label,
43698
43703
  variant: "outline",
43699
43704
  size: t,
43700
43705
  disabled: e.disabled,
43701
43706
  href: e.href,
43702
43707
  target: e.target
43703
- }, "secondary-link"), u3 = (e, t) => {
43708
+ }, "secondary-link"), d3 = (e, t) => {
43704
43709
  let n = e.variant ?? "default";
43705
- return a3(e) ? c3(e, t, n) : s3(e, t, n);
43710
+ return o3(e) ? l3(e, t, n) : c3(e, t, n);
43706
43711
  };
43707
- function d3({ primaryAction: e, secondaryActions: t, otherActions: n = [], size: r = "md", align: i = "end", stack: a = "none", fullWidthOnStack: o = !1, reverseOnStack: s = !1, canOverflow: c = !0, className: l }) {
43712
+ function f3({ primaryAction: e, secondaryActions: t, otherActions: n = [], size: r = "md", align: i = "end", stack: a = "none", fullWidthOnStack: o = !1, reverseOnStack: s = !1, canOverflow: c = !0, className: l }) {
43708
43713
  let u = V(null), { width: d = 0 } = it({
43709
43714
  ref: u,
43710
43715
  box: "border-box"
43711
- }), f = a === "sm" || a === "md" ? r3[a] : r3.md, p = E(`(min-width: ${f}px)`, { initializeWithValue: !1 }), m = a === "none" ? !0 : a === "container-md" ? d >= r3["container-md"] : p, h = typeof r == "string" ? r : r.base, g = typeof r == "string" ? r : r.md, _ = m ? g : h, v = {
43716
+ }), f = a === "sm" || a === "md" ? i3[a] : i3.md, p = E(`(min-width: ${f}px)`, { initializeWithValue: !1 }), m = a === "none" ? !0 : a === "container-md" ? d >= i3["container-md"] : p, h = typeof r == "string" ? r : r.base, g = typeof r == "string" ? r : r.md, _ = m ? g : h, v = {
43712
43717
  primaryAction: e,
43713
43718
  secondaryItems: Array.isArray(t) ? t : [],
43714
43719
  secondaryLink: t != null && !Array.isArray(t) ? t : void 0,
@@ -43720,26 +43725,26 @@ function d3({ primaryAction: e, secondaryActions: t, otherActions: n = [], size:
43720
43725
  return /* @__PURE__ */ U("div", {
43721
43726
  ref: u,
43722
43727
  role: "group",
43723
- className: F(m ? "flex w-full items-center gap-md [&>*:not(:first-child)]:shrink-0" : n3({
43728
+ className: F(m ? "flex w-full items-center gap-md [&>*:not(:first-child)]:shrink-0" : r3({
43724
43729
  align: i,
43725
43730
  stack: a,
43726
43731
  fullWidthOnStack: o,
43727
43732
  reverseOnStack: s
43728
43733
  }), l),
43729
- children: m ? /* @__PURE__ */ U(p3, { ...v }, "row") : /* @__PURE__ */ U(f3, { ...v }, "stacked")
43734
+ children: m ? /* @__PURE__ */ U(m3, { ...v }, "row") : /* @__PURE__ */ U(p3, { ...v }, "stacked")
43730
43735
  });
43731
43736
  }
43732
- function f3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherActions: r, size: i }) {
43733
- let a = t.filter((e) => !i3(e)).map((e) => a3(e) ? c3(e, i, "outline") : s3(e, i, "outline"));
43737
+ function p3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherActions: r, size: i }) {
43738
+ let a = t.filter((e) => !a3(e)).map((e) => o3(e) ? l3(e, i, "outline") : c3(e, i, "outline"));
43734
43739
  return /* @__PURE__ */ W(Gr, { children: [
43735
43740
  r.length > 0 ? /* @__PURE__ */ U(rf, { items: r }) : null,
43736
43741
  a,
43737
- n ? l3(n, i) : null,
43738
- e ? u3(e, i) : null
43742
+ n ? u3(n, i) : null,
43743
+ e ? d3(e, i) : null
43739
43744
  ] });
43740
43745
  }
43741
- function p3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherActions: r, size: i, align: a, canOverflow: o }) {
43742
- let s = Ur(() => t.filter(o3), [t]), { containerRef: c, measurementContainerRef: l, customOverflowIndicatorRef: u, visibleItems: d, overflowItems: f, isInitialized: p } = Lt(s, 8);
43746
+ function m3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherActions: r, size: i, align: a, canOverflow: o }) {
43747
+ let s = Ur(() => t.filter(s3), [t]), { containerRef: c, measurementContainerRef: l, customOverflowIndicatorRef: u, visibleItems: d, overflowItems: f, isInitialized: p } = Lt(s, 8);
43743
43748
  B(() => {
43744
43749
  l.current?.setAttribute("inert", "");
43745
43750
  }, [l]);
@@ -43749,14 +43754,14 @@ function p3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherAction
43749
43754
  } : {
43750
43755
  shown: d,
43751
43756
  overflowed: f
43752
- }, g = new Set(m.map((e) => e.id)), _ = e ? u3(e, i) : null, v = t.filter(a3), y = t[t.length - 1], b = y != null && i3(y) && (v.length > 0 || _ != null), x = [];
43757
+ }, g = new Set(m.map((e) => e.id)), _ = e ? d3(e, i) : null, v = t.filter(o3), y = t[t.length - 1], b = y != null && a3(y) && (v.length > 0 || _ != null), x = [];
43753
43758
  t.forEach((e, t) => {
43754
- a3(e) || (i3(e) ? x.push({
43759
+ o3(e) || (a3(e) ? x.push({
43755
43760
  kind: "sep",
43756
43761
  key: `sep-${t}`
43757
43762
  }) : g.has(e.id) && x.push({
43758
43763
  kind: "node",
43759
- node: s3(e, i, "outline")
43764
+ node: c3(e, i, "outline")
43760
43765
  }));
43761
43766
  });
43762
43767
  let S = x.filter((e, t) => e.kind === "node" || x[t - 1]?.kind === "node" && x[t + 1]?.kind === "node"), C = [
@@ -43779,7 +43784,7 @@ function p3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherAction
43779
43784
  ref: l,
43780
43785
  "aria-hidden": "true",
43781
43786
  className: "pointer-events-none invisible absolute left-0 top-0 flex items-center gap-md whitespace-nowrap",
43782
- children: s.map((e) => s3(e, i, "outline"))
43787
+ children: s.map((e) => c3(e, i, "outline"))
43783
43788
  }) : null,
43784
43789
  C.length > 0 ? /* @__PURE__ */ U("div", {
43785
43790
  ref: u,
@@ -43789,16 +43794,16 @@ function p3({ primaryAction: e, secondaryItems: t, secondaryLink: n, otherAction
43789
43794
  size: i
43790
43795
  })
43791
43796
  }) : null,
43792
- S.map((e) => e.kind === "sep" ? /* @__PURE__ */ U(m3, {}, e.key) : e.node),
43793
- n ? l3(n, i) : null
43797
+ S.map((e) => e.kind === "sep" ? /* @__PURE__ */ U(h3, {}, e.key) : e.node),
43798
+ n ? u3(n, i) : null
43794
43799
  ]
43795
43800
  }),
43796
- v.map((e) => c3(e, i, "outline")),
43797
- b ? /* @__PURE__ */ U(m3, {}) : null,
43801
+ v.map((e) => l3(e, i, "outline")),
43802
+ b ? /* @__PURE__ */ U(h3, {}) : null,
43798
43803
  _
43799
43804
  ] });
43800
43805
  }
43801
- function m3() {
43806
+ function h3() {
43802
43807
  return /* @__PURE__ */ U("div", {
43803
43808
  role: "separator",
43804
43809
  "aria-orientation": "vertical",
@@ -43807,22 +43812,22 @@ function m3() {
43807
43812
  }
43808
43813
  //#endregion
43809
43814
  //#region src/elements/F0CardHorizontal/components/CardHorizontalActions.tsx
43810
- var h3 = {
43815
+ var g3 = {
43811
43816
  sm: "flex flex-col @xs:flex-row @xs:items-start @xs:justify-between @xs:gap-4",
43812
43817
  md: "flex flex-col @md:flex-row @md:items-start @md:justify-between @md:gap-4",
43813
43818
  lg: "flex flex-col @lg:flex-row @lg:items-start @lg:justify-between @lg:gap-4",
43814
43819
  never: "flex flex-row items-start justify-between gap-4"
43815
- }, g3 = {
43820
+ }, _3 = {
43816
43821
  sm: "@xs:self-center",
43817
43822
  md: "@md:self-center",
43818
43823
  lg: "@lg:self-center",
43819
43824
  never: "self-center"
43820
- }, _3 = {
43825
+ }, v3 = {
43821
43826
  sm: "@xs:flex-1",
43822
43827
  md: "@md:flex-1",
43823
43828
  lg: "@lg:flex-1",
43824
43829
  never: "flex-1"
43825
- }, v3 = {
43830
+ }, y3 = {
43826
43831
  sm: {
43827
43832
  sm: "@xs:pt-2",
43828
43833
  md: "@md:pt-2",
@@ -43835,46 +43840,46 @@ var h3 = {
43835
43840
  lg: "@lg:pt-1",
43836
43841
  never: "pt-1"
43837
43842
  }
43838
- }, y3 = {
43843
+ }, b3 = {
43839
43844
  sm: "@xs:min-h-10",
43840
43845
  md: "@md:min-h-10",
43841
43846
  lg: "@lg:min-h-10",
43842
43847
  never: "min-h-10"
43843
- }, b3 = {
43848
+ }, x3 = {
43844
43849
  sm: "hidden @xs:flex",
43845
43850
  md: "hidden @md:flex",
43846
43851
  lg: "hidden @lg:flex",
43847
43852
  never: "flex"
43848
- }, x3 = {
43853
+ }, S3 = {
43849
43854
  sm: "flex @xs:hidden",
43850
43855
  md: "flex @md:hidden",
43851
43856
  lg: "flex @lg:hidden",
43852
43857
  never: "hidden"
43853
- }, S3 = {
43858
+ }, C3 = {
43854
43859
  sm: "-mx-4 mt-4 border-0 border-t border-solid border-t-f1-border-secondary px-4 pt-4 @xs:mx-0 @xs:mt-0 @xs:border-t-0 @xs:px-0 @xs:pt-0",
43855
43860
  md: "-mx-4 mt-4 border-0 border-t border-solid border-t-f1-border-secondary px-4 pt-4 @md:mx-0 @md:mt-0 @md:border-t-0 @md:px-0 @md:pt-0",
43856
43861
  lg: "-mx-4 mt-4 border-0 border-t border-solid border-t-f1-border-secondary px-4 pt-4 @lg:mx-0 @lg:mt-0 @lg:border-t-0 @lg:px-0 @lg:pt-0",
43857
43862
  never: ""
43858
- }, C3 = {
43863
+ }, w3 = {
43859
43864
  neutral: "secondary",
43860
43865
  info: "info",
43861
43866
  positive: "positive",
43862
43867
  warning: "warning",
43863
43868
  critical: "critical"
43864
43869
  };
43865
- function w3({ primaryAction: e, secondaryActions: t, otherActions: n, size: r = "md", confirmAction: i, rejectAction: a, status: o, stackAt: s = "never", hasAvatar: c = !1 }) {
43866
- let l = c ? v3[r][s] : void 0;
43870
+ function T3({ primaryAction: e, secondaryActions: t, otherActions: n, size: r = "md", confirmAction: i, rejectAction: a, status: o, stackAt: s = "never", hasAvatar: c = !1 }) {
43871
+ let l = c ? y3[r][s] : void 0;
43867
43872
  if (o) return /* @__PURE__ */ U("div", {
43868
- className: F("flex items-center justify-end", c && y3[s], S3[s]),
43873
+ className: F("flex items-center justify-end", c && b3[s], C3[s]),
43869
43874
  children: /* @__PURE__ */ U(Ae, {
43870
43875
  icon: o.icon,
43871
- color: C3[o.variant],
43876
+ color: w3[o.variant],
43872
43877
  size: "lg",
43873
43878
  role: "img",
43874
43879
  "aria-label": o.label
43875
43880
  })
43876
43881
  });
43877
- let u = F("relative z-[1]", _3[s], S3[s], l), d = (e) => /* @__PURE__ */ U("div", {
43882
+ let u = F("relative z-[1]", v3[s], C3[s], l), d = (e) => /* @__PURE__ */ U("div", {
43878
43883
  className: u,
43879
43884
  onClick: (e) => e.stopPropagation(),
43880
43885
  children: e
@@ -43896,19 +43901,19 @@ function w3({ primaryAction: e, secondaryActions: t, otherActions: n, size: r =
43896
43901
  disabled: i.disabled,
43897
43902
  onClick: i.onClick
43898
43903
  } : void 0;
43899
- return /* @__PURE__ */ U(d3, {
43904
+ return /* @__PURE__ */ U(f3, {
43900
43905
  primaryAction: n,
43901
43906
  secondaryActions: t ? [t] : void 0,
43902
43907
  size: r,
43903
43908
  canOverflow: !1
43904
43909
  });
43905
43910
  }, t = /* @__PURE__ */ U("div", {
43906
- className: F("relative z-[1] flex-1", l, b3[s]),
43911
+ className: F("relative z-[1] flex-1", l, x3[s]),
43907
43912
  onClick: (e) => e.stopPropagation(),
43908
43913
  children: e(!0)
43909
43914
  });
43910
43915
  return s === "never" ? t : /* @__PURE__ */ W(Gr, { children: [t, /* @__PURE__ */ U("div", {
43911
- className: F("relative z-[1]", x3[s], S3[s]),
43916
+ className: F("relative z-[1]", S3[s], C3[s]),
43912
43917
  onClick: (e) => e.stopPropagation(),
43913
43918
  children: e(!1)
43914
43919
  })] });
@@ -43930,7 +43935,7 @@ function w3({ primaryAction: e, secondaryActions: t, otherActions: n, size: r =
43930
43935
  onClick: e.onClick,
43931
43936
  variant: e.variant
43932
43937
  } : void 0;
43933
- return p || (Array.isArray(t) ? t.length > 0 : t) || (n?.length ?? 0) > 0 ? d(/* @__PURE__ */ U(d3, {
43938
+ return p || (Array.isArray(t) ? t.length > 0 : t) || (n?.length ?? 0) > 0 ? d(/* @__PURE__ */ U(f3, {
43934
43939
  primaryAction: p,
43935
43940
  secondaryActions: f,
43936
43941
  otherActions: n,
@@ -43939,7 +43944,7 @@ function w3({ primaryAction: e, secondaryActions: t, otherActions: n, size: r =
43939
43944
  }
43940
43945
  //#endregion
43941
43946
  //#region src/elements/F0CardHorizontal/F0CardHorizontal.tsx
43942
- var T3 = ({ title: e, tag: t, inactive: n }) => {
43947
+ var E3 = ({ title: e, tag: t, inactive: n }) => {
43943
43948
  let r = /* @__PURE__ */ U(Bt, {
43944
43949
  variant: "body",
43945
43950
  content: e,
@@ -43956,14 +43961,14 @@ var T3 = ({ title: e, tag: t, inactive: n }) => {
43956
43961
  })
43957
43962
  })]
43958
43963
  }) : r;
43959
- }, E3 = ({ avatar: e, title: t, tag: n, description: r, inactive: i, descriptionAsSingleLine: a, stackAt: o }) => /* @__PURE__ */ W("div", {
43960
- className: F("flex min-w-0 flex-row gap-3", g3[o], e ? "items-start" : "items-center"),
43964
+ }, D3 = ({ avatar: e, title: t, tag: n, description: r, inactive: i, descriptionAsSingleLine: a, stackAt: o }) => /* @__PURE__ */ W("div", {
43965
+ className: F("flex min-w-0 flex-row gap-3", _3[o], e ? "items-start" : "items-center"),
43961
43966
  children: [e ? /* @__PURE__ */ U(aH, {
43962
43967
  avatar: e,
43963
43968
  size: "lg"
43964
43969
  }) : null, /* @__PURE__ */ W("div", {
43965
43970
  className: "flex min-w-0 flex-col gap-0",
43966
- children: [/* @__PURE__ */ U(T3, {
43971
+ children: [/* @__PURE__ */ U(E3, {
43967
43972
  title: t,
43968
43973
  tag: n,
43969
43974
  inactive: i
@@ -43974,7 +43979,7 @@ var T3 = ({ title: e, tag: t, inactive: n }) => {
43974
43979
  className: F(!a && "break-words", i && "line-through")
43975
43980
  }) : null]
43976
43981
  })]
43977
- }), D3 = R(function({ title: e, tag: t, description: n, avatar: r, primaryAction: i, secondaryActions: a, otherActions: o, actionsSize: s = "md", confirmAction: c, rejectAction: l, status: u, inactive: d = !1, fullHeight: f = !1, alert: p, link: m, onClick: h, disableOverlayLink: g = !1, stackAt: _ = "never", disabled: v = !1, descriptionAsSingleLine: y = !1 }, b) {
43982
+ }), O3 = R(function({ title: e, tag: t, description: n, avatar: r, primaryAction: i, secondaryActions: a, otherActions: o, actionsSize: s = "md", confirmAction: c, rejectAction: l, status: u, inactive: d = !1, fullHeight: f = !1, alert: p, link: m, onClick: h, disableOverlayLink: g = !1, stackAt: _ = "never", disabled: v = !1, descriptionAsSingleLine: y = !1 }, b) {
43978
43983
  let x = !!p && p.visible !== !1, S = /* @__PURE__ */ W(yl, {
43979
43984
  ref: x ? void 0 : b,
43980
43985
  className: F("group relative @container bg-f1-background shadow-none transition-all", f && "h-full", (!!m || !!h) && !v && "cursor-pointer focus-within:border-f1-border-hover focus-within:shadow-md hover:border-f1-border-hover hover:shadow-md", v && "pointer-events-none opacity-50"),
@@ -43991,8 +43996,8 @@ var T3 = ({ title: e, tag: t, inactive: n }) => {
43991
43996
  "aria-label": t ? `${e}, ${t.text}` : e,
43992
43997
  children: "\xA0"
43993
43998
  }) : null, /* @__PURE__ */ W("div", {
43994
- className: h3[_],
43995
- children: [/* @__PURE__ */ U(E3, {
43999
+ className: g3[_],
44000
+ children: [/* @__PURE__ */ U(D3, {
43996
44001
  avatar: r,
43997
44002
  title: e,
43998
44003
  tag: t,
@@ -44000,7 +44005,7 @@ var T3 = ({ title: e, tag: t, inactive: n }) => {
44000
44005
  inactive: d,
44001
44006
  descriptionAsSingleLine: y,
44002
44007
  stackAt: _
44003
- }), /* @__PURE__ */ U(w3, {
44008
+ }), /* @__PURE__ */ U(T3, {
44004
44009
  primaryAction: i,
44005
44010
  secondaryActions: a,
44006
44011
  otherActions: o,
@@ -44020,8 +44025,8 @@ var T3 = ({ title: e, tag: t, inactive: n }) => {
44020
44025
  children: S
44021
44026
  }) : S;
44022
44027
  });
44023
- D3.displayName = "F0CardHorizontal";
44024
- var O3 = be(Ue("F0CardHorizontal", Kl(D3, () => /* @__PURE__ */ U(yl, {
44028
+ O3.displayName = "F0CardHorizontal";
44029
+ var k3 = be(Ue("F0CardHorizontal", Kl(O3, () => /* @__PURE__ */ U(yl, {
44025
44030
  className: F("group relative bg-f1-background shadow-none"),
44026
44031
  "aria-busy": "true",
44027
44032
  "aria-live": "polite",
@@ -44035,7 +44040,7 @@ var O3 = be(Ue("F0CardHorizontal", Kl(D3, () => /* @__PURE__ */ U(yl, {
44035
44040
  })]
44036
44041
  }), /* @__PURE__ */ U(Ie, { className: "h-9 w-24 rounded-md" })]
44037
44042
  })
44038
- })))), k3 = ({ visible: e, onFilesDropped: t, mode: n = "files" }) => {
44043
+ })))), A3 = ({ visible: e, onFilesDropped: t, mode: n = "files" }) => {
44039
44044
  let r = He(), i = n === "discuss";
44040
44045
  return /* @__PURE__ */ W("div", {
44041
44046
  "aria-hidden": !e,
@@ -44068,7 +44073,7 @@ var O3 = be(Ue("F0CardHorizontal", Kl(D3, () => /* @__PURE__ */ U(yl, {
44068
44073
  };
44069
44074
  //#endregion
44070
44075
  //#region src/addons/ai/ai/F0AiPong/components/PongBall.tsx
44071
- function A3({ size: e = 40, className: t, style: n }) {
44076
+ function j3({ size: e = 40, className: t, style: n }) {
44072
44077
  return /* @__PURE__ */ U("div", {
44073
44078
  className: F(t, "rounded-full"),
44074
44079
  style: {
@@ -44081,38 +44086,38 @@ function A3({ size: e = 40, className: t, style: n }) {
44081
44086
  }
44082
44087
  //#endregion
44083
44088
  //#region src/addons/ai/ai/F0AiPong/F0AiPong.tsx
44084
- var j3 = 40, M3 = 93, N3 = M3 * .5, P3 = 32, F3 = 24, I3 = 8, L3 = 48, R3 = 10, z3 = 7, B3 = 18, V3 = .25, H3 = .15, U3 = 800, W3 = Math.PI / 3, G3 = j3 / 2, K3 = .12, q3 = 8, J3 = 5, Y3 = .08;
44085
- function X3(e, t, n) {
44089
+ var M3 = 40, N3 = 93, P3 = N3 * .5, F3 = 32, I3 = 24, L3 = 8, R3 = 48, z3 = 10, B3 = 7, V3 = 18, H3 = .25, U3 = .15, W3 = 800, G3 = Math.PI / 3, K3 = M3 / 2, q3 = .12, J3 = 8, Y3 = 5, X3 = .08;
44090
+ function Z3(e, t, n) {
44086
44091
  return Math.max(t, Math.min(n, e));
44087
44092
  }
44088
- function Z3() {
44093
+ function Q3() {
44089
44094
  let e = (Math.random() * 50 + 65) * Math.PI / 180, t = Math.random() > .5 ? 1 : -1, n = Math.random() > .5 ? 1 : -1;
44090
44095
  return {
44091
- vx: Math.cos(e) * z3 * t,
44092
- vy: Math.sin(e) * z3 * n
44096
+ vx: Math.cos(e) * B3 * t,
44097
+ vy: Math.sin(e) * B3 * n
44093
44098
  };
44094
44099
  }
44095
- var Q3 = ({ onClose: e }) => {
44100
+ var $3 = ({ onClose: e }) => {
44096
44101
  let t = He(), n = O(), r = V(null), i = V(null), a = V(null), o = V(null), [c, l] = H(null), u = V(/* @__PURE__ */ new Set()), d = V({
44097
44102
  x: 0,
44098
44103
  y: 0,
44099
44104
  vx: 0,
44100
44105
  vy: 0,
44101
- speed: z3
44106
+ speed: B3
44102
44107
  }), f = V(0), p = V(0), m = V(0), h = V({
44103
44108
  player: 0,
44104
44109
  ai: 0
44105
44110
  }), g = V("countdown"), _ = V(0), v = V(0), y = V([]), b = V(0), x = V(0), S = V({
44106
44111
  width: 0,
44107
44112
  height: 0
44108
- }), C = V(0), w = V(0), T = V(M3), E = V(0), D = V(0), k = V(0), A = V(0), j = V(null), [M, N] = H({
44113
+ }), C = V(0), w = V(0), T = V(N3), E = V(0), D = V(0), k = V(0), A = V(0), j = V(null), [M, N] = H({
44109
44114
  x: 0,
44110
44115
  y: 0
44111
44116
  }), [ee, te] = H(0), [ne, re] = H(0), [ie, ae] = H({
44112
44117
  player: 0,
44113
44118
  ai: 0
44114
- }), [oe, se] = H(M3), [ce, le] = H("countdown"), [ue, de] = H(3), [fe, pe] = H([]), [P, me] = H(0), [he, ge] = H(0), [_e, ve] = H(null), [ye, be] = H(null), Se = z(() => {
44115
- let { width: e, height: t } = S.current, n = z3 + E.current;
44119
+ }), [oe, se] = H(N3), [ce, le] = H("countdown"), [ue, de] = H(3), [fe, pe] = H([]), [P, me] = H(0), [he, ge] = H(0), [_e, ve] = H(null), [ye, be] = H(null), Se = z(() => {
44120
+ let { width: e, height: t } = S.current, n = B3 + E.current;
44116
44121
  d.current = {
44117
44122
  x: e / 2,
44118
44123
  y: t / 2,
@@ -44121,7 +44126,7 @@ var Q3 = ({ onClose: e }) => {
44121
44126
  speed: n
44122
44127
  }, y.current = [], v.current = 0;
44123
44128
  }, []), Ce = z(() => {
44124
- let e = z3 + E.current, { vx: t, vy: n } = Z3(), r = e / z3;
44129
+ let e = B3 + E.current, { vx: t, vy: n } = Q3(), r = e / B3;
44125
44130
  d.current.vx = t * r, d.current.vy = n * r, d.current.speed = e, g.current = "playing", le("playing"), j.current = null, be(null);
44126
44131
  }, []), we = z(() => {
44127
44132
  Se(), g.current = "countdown", le("countdown"), de(3);
@@ -44147,9 +44152,9 @@ var Q3 = ({ onClose: e }) => {
44147
44152
  });
44148
44153
  }, [n]), Ee = z((n) => {
44149
44154
  let r = { ...h.current };
44150
- n === "player" ? r.player++ : r.ai++, h.current = r, ae(r), C.current = 8, j.current = n, be(n), E.current = Math.min(11, E.current + H3), n === "player" && Te(), r.player >= 3 || r.ai >= 3 ? (g.current = "gameover", le("gameover"), Se(), ve(r.player >= 3 ? t.ai.pong.youWin : t.ai.pong.youLose), setTimeout(() => e(), 2e3)) : (g.current = "scored", le("scored"), Se(), _.current = U3, setTimeout(() => {
44155
+ n === "player" ? r.player++ : r.ai++, h.current = r, ae(r), C.current = 8, j.current = n, be(n), E.current = Math.min(11, E.current + U3), n === "player" && Te(), r.player >= 3 || r.ai >= 3 ? (g.current = "gameover", le("gameover"), Se(), ve(r.player >= 3 ? t.ai.pong.youWin : t.ai.pong.youLose), setTimeout(() => e(), 2e3)) : (g.current = "scored", le("scored"), Se(), _.current = W3, setTimeout(() => {
44151
44156
  g.current === "scored" && we();
44152
- }, U3));
44157
+ }, W3));
44153
44158
  }, [
44154
44159
  Se,
44155
44160
  we,
@@ -44190,10 +44195,10 @@ var Q3 = ({ onClose: e }) => {
44190
44195
  }, ae({
44191
44196
  player: 0,
44192
44197
  ai: 0
44193
- }), w.current = 0, T.current = M3, se(M3), E.current = 0, D.current = 0;
44198
+ }), w.current = 0, T.current = N3, se(N3), E.current = 0, D.current = 0;
44194
44199
  let r = we(), a = (t) => {
44195
44200
  let n = e.getBoundingClientRect(), r = T.current;
44196
- f.current = X3(t.clientX - n.left, r / 2 + I3, n.width - r / 2 - I3);
44201
+ f.current = Z3(t.clientX - n.left, r / 2 + L3, n.width - r / 2 - L3);
44197
44202
  };
44198
44203
  e.addEventListener("pointermove", a);
44199
44204
  let o = (e) => {
@@ -44201,34 +44206,34 @@ var Q3 = ({ onClose: e }) => {
44201
44206
  let t = (e - b.current) / 16.667, n = Math.min(t, 3);
44202
44207
  b.current = e;
44203
44208
  let { width: r, height: i } = S.current, a = d.current, s = T.current;
44204
- if (u.current.has("ArrowLeft") && (f.current = X3(f.current - R3 * n, s / 2 + I3, r - s / 2 - I3)), u.current.has("ArrowRight") && (f.current = X3(f.current + R3 * n, s / 2 + I3, r - s / 2 - I3)), C.current > 0 && (C.current *= .85, C.current < .5 && (C.current = 0)), g.current === "playing") {
44209
+ if (u.current.has("ArrowLeft") && (f.current = Z3(f.current - z3 * n, s / 2 + L3, r - s / 2 - L3)), u.current.has("ArrowRight") && (f.current = Z3(f.current + z3 * n, s / 2 + L3, r - s / 2 - L3)), C.current > 0 && (C.current *= .85, C.current < .5 && (C.current = 0)), g.current === "playing") {
44205
44210
  y.current.push({
44206
44211
  x: a.x,
44207
44212
  y: a.y
44208
- }), y.current.length > J3 && (y.current = y.current.slice(-5)), a.x += a.vx * n, a.y += a.vy * n, k.current += A.current * n, A.current *= .96;
44209
- let e = r - I3 - j3 / 2;
44213
+ }), y.current.length > Y3 && (y.current = y.current.slice(-5)), a.x += a.vx * n, a.y += a.vy * n, k.current += A.current * n, A.current *= .96;
44214
+ let e = r - L3 - M3 / 2;
44210
44215
  a.x <= 28 && (a.x = 28, a.vx = Math.abs(a.vx), A.current *= -.5), a.x >= e && (a.x = e, a.vx = -Math.abs(a.vx), A.current *= -.5);
44211
- let t = i - F3 - P3, o = s / 2;
44212
- if (a.y + G3 >= t && a.y - G3 <= t + P3 && a.vy > 0 && a.x >= f.current - o - G3 && a.x <= f.current + o + G3) {
44213
- a.y = t - G3;
44214
- let e = X3((a.x - f.current) / o, -1, 1);
44215
- a.speed = Math.min(a.speed + V3, B3);
44216
- let n = e * W3;
44216
+ let t = i - I3 - F3, o = s / 2;
44217
+ if (a.y + K3 >= t && a.y - K3 <= t + F3 && a.vy > 0 && a.x >= f.current - o - K3 && a.x <= f.current + o + K3) {
44218
+ a.y = t - K3;
44219
+ let e = Z3((a.x - f.current) / o, -1, 1);
44220
+ a.speed = Math.min(a.speed + H3, V3);
44221
+ let n = e * G3;
44217
44222
  a.vx = Math.sin(n) * a.speed, a.vy = -Math.cos(n) * a.speed, A.current = e * 1.2, v.current++, w.current++;
44218
- let r = N3 / M3 + (1 - N3 / M3) * Math.exp(-w.current * .03);
44219
- T.current = M3 * r;
44223
+ let r = P3 / N3 + (1 - P3 / N3) * Math.exp(-w.current * .03);
44224
+ T.current = N3 * r;
44220
44225
  }
44221
- let c = M3 / 2;
44222
- if (a.y - G3 <= 56 && a.y + G3 >= F3 && a.vy < 0 && a.x >= p.current - c - G3 && a.x <= p.current + c + G3) {
44226
+ let c = N3 / 2;
44227
+ if (a.y - K3 <= 56 && a.y + K3 >= I3 && a.vy < 0 && a.x >= p.current - c - K3 && a.x <= p.current + c + K3) {
44223
44228
  a.y = 76;
44224
- let e = X3((a.x - p.current) / c, -1, 1);
44225
- a.speed = Math.min(a.speed + V3, B3);
44226
- let t = e * W3;
44229
+ let e = Z3((a.x - p.current) / c, -1, 1);
44230
+ a.speed = Math.min(a.speed + H3, V3);
44231
+ let t = e * G3;
44227
44232
  a.vx = Math.sin(t) * a.speed, a.vy = Math.cos(t) * a.speed, A.current = e * 1.2, v.current++;
44228
44233
  }
44229
44234
  if (a.y < -80 ? Ee("player") : a.y > i + 80 && Ee("ai"), a.vy < 0) {
44230
- let e = Math.max(1, (a.y - F3) / -a.vy), t = a.x + a.vx * e, r = q3 * (1 + a.speed / B3), i = t + (Math.random() - .5) * r - m.current;
44231
- m.current += i * K3 * n;
44235
+ let e = Math.max(1, (a.y - I3) / -a.vy), t = a.x + a.vx * e, r = J3 * (1 + a.speed / V3), i = t + (Math.random() - .5) * r - m.current;
44236
+ m.current += i * q3 * n;
44232
44237
  } else {
44233
44238
  let e = Math.sin(Date.now() * .002) * 15;
44234
44239
  m.current += (r / 2 + e - m.current) * .025 * n;
@@ -44236,7 +44241,7 @@ var Q3 = ({ onClose: e }) => {
44236
44241
  let l = (m.current - p.current) * .1 * n;
44237
44242
  D.current += l, D.current *= .88;
44238
44243
  let u = 6 + v.current * .12;
44239
- D.current = X3(D.current, -u, u), p.current += D.current * n, p.current = X3(p.current, 54.5, r - M3 / 2 - I3);
44244
+ D.current = Z3(D.current, -u, u), p.current += D.current * n, p.current = Z3(p.current, 54.5, r - N3 / 2 - L3);
44240
44245
  }
44241
44246
  N({
44242
44247
  x: a.x,
@@ -44282,13 +44287,13 @@ var Q3 = ({ onClose: e }) => {
44282
44287
  children: [
44283
44288
  /* @__PURE__ */ U("div", { className: "pointer-events-none absolute left-0 right-0 top-1/2 h-px translate-y-1/2 bg-f1-border" }),
44284
44289
  fe.map((e, t) => {
44285
- let n = (t + 1) / fe.length, r = j3 * (.15 + n * .25);
44290
+ let n = (t + 1) / fe.length, r = M3 * (.15 + n * .25);
44286
44291
  return /* @__PURE__ */ U("div", {
44287
44292
  className: "pointer-events-none absolute rounded-full bg-f1-foreground-secondary/40",
44288
44293
  style: {
44289
44294
  width: r,
44290
44295
  height: r,
44291
- opacity: n * Y3,
44296
+ opacity: n * X3,
44292
44297
  transform: `translate(${e.x - r / 2}px, ${e.y - r / 2}px)`
44293
44298
  }
44294
44299
  }, t);
@@ -44296,19 +44301,19 @@ var Q3 = ({ onClose: e }) => {
44296
44301
  /* @__PURE__ */ U("div", {
44297
44302
  className: F("absolute isolate rounded", "border border-solid border-f1-border", "before:pointer-events-none before:absolute before:inset-0 before:z-[-1]", "before:rounded-[inherit] before:bg-f1-special-page before:content-['']", "after:pointer-events-none after:absolute after:inset-0.5 after:z-[-2]", "after:rounded-[inherit] after:blur-[5px] after:content-['']", "after:bg-[conic-gradient(from_var(--gradient-angle),var(--tw-gradient-stops))]", "from-[#E55619] via-[#A1ADE5] to-[#E51943]", "after:scale-100 after:opacity-100"),
44298
44303
  style: {
44299
- width: M3,
44300
- height: P3,
44301
- top: F3,
44302
- transform: `translateX(${ne - M3 / 2}px)`,
44304
+ width: N3,
44305
+ height: F3,
44306
+ top: I3,
44307
+ transform: `translateX(${ne - N3 / 2}px)`,
44303
44308
  animation: "pong-ai-glow 4s linear infinite",
44304
44309
  "--gradient-angle": "0deg"
44305
44310
  }
44306
44311
  }),
44307
- /* @__PURE__ */ U(A3, {
44308
- size: j3,
44312
+ /* @__PURE__ */ U(j3, {
44313
+ size: M3,
44309
44314
  className: "pointer-events-none absolute z-30",
44310
44315
  style: {
44311
- transform: `translate(${M.x - j3 / 2}px, ${M.y - j3 / 2}px) rotate(${he}rad)`,
44316
+ transform: `translate(${M.x - M3 / 2}px, ${M.y - M3 / 2}px) rotate(${he}rad)`,
44312
44317
  opacity: ce === "countdown" ? 0 : 1,
44313
44318
  transition: "opacity 0.3s ease-in"
44314
44319
  }
@@ -44317,8 +44322,8 @@ var Q3 = ({ onClose: e }) => {
44317
44322
  className: "absolute rounded border-2 border-solid border-f1-border",
44318
44323
  style: {
44319
44324
  width: oe,
44320
- height: P3,
44321
- bottom: F3,
44325
+ height: F3,
44326
+ bottom: I3,
44322
44327
  transform: `translateX(${ee - oe / 2}px)`,
44323
44328
  transition: "width 0.3s ease-out"
44324
44329
  },
@@ -44356,7 +44361,7 @@ var Q3 = ({ onClose: e }) => {
44356
44361
  ]
44357
44362
  }), /* @__PURE__ */ U("div", {
44358
44363
  className: "pointer-events-none absolute inset-y-0 right-0 flex flex-col items-center justify-center",
44359
- style: { width: L3 },
44364
+ style: { width: R3 },
44360
44365
  children: /* @__PURE__ */ W("div", {
44361
44366
  className: "flex flex-col items-center gap-6",
44362
44367
  children: [/* @__PURE__ */ U("span", {
@@ -44379,8 +44384,8 @@ var Q3 = ({ onClose: e }) => {
44379
44384
  ]
44380
44385
  })]
44381
44386
  }), c);
44382
- }, $3 = "f0:widget-drag-start", e6 = "f0:widget-drag-end", t6 = ({ isVisible: e, acceptsWidgetDrop: t }) => {
44383
- let { fileAttachments: n, isClarifying: r, setFileDragOver: i, processDroppedFiles: a, setPendingQuote: o, focusChatInput: s, activeGame: c } = N4(), l = t && c === null && e && !r, u = V(l);
44387
+ }, e6 = "f0:widget-drag-start", t6 = "f0:widget-drag-end", n6 = ({ isVisible: e, acceptsWidgetDrop: t }) => {
44388
+ let { fileAttachments: n, isClarifying: r, setFileDragOver: i, processDroppedFiles: a, setPendingQuote: o, focusChatInput: s, activeGame: c } = P4(), l = t && c === null && e && !r, u = V(l);
44384
44389
  u.current = l;
44385
44390
  let d = V(null), f = V(0), p = n?.onUploadFiles != null && !r;
44386
44391
  B(() => {
@@ -44403,8 +44408,8 @@ var Q3 = ({ onClose: e }) => {
44403
44408
  let t = e.detail;
44404
44409
  typeof t?.id == "string" && t.id && typeof t.title == "string" && t.title.trim() && x(t);
44405
44410
  }, t = () => x(null);
44406
- return window.addEventListener($3, e), window.addEventListener(e6, t), () => {
44407
- window.removeEventListener($3, e), window.removeEventListener(e6, t);
44411
+ return window.addEventListener(e6, e), window.addEventListener(t6, t), () => {
44412
+ window.removeEventListener(e6, e), window.removeEventListener(t6, t);
44408
44413
  };
44409
44414
  }, [l, x]), B(() => {
44410
44415
  l || x(null);
@@ -44453,32 +44458,32 @@ var Q3 = ({ onClose: e }) => {
44453
44458
  } : void 0
44454
44459
  }
44455
44460
  };
44456
- }, n6 = ({ children: e, visible: t, side: n, exitStyle: r = "shrink", acceptsWidgetDrop: i = !1 }) => {
44457
- let { open: a, visualizationMode: o, fileDragOver: s, activeGame: c, closeGame: l } = N4(), u = t ?? a, d = o === "canvas", { surfaceRef: f, surfaceProps: p, decorations: m } = t6({
44461
+ }, r6 = ({ children: e, visible: t, side: n, exitStyle: r = "shrink", acceptsWidgetDrop: i = !1 }) => {
44462
+ let { open: a, visualizationMode: o, fileDragOver: s, activeGame: c, closeGame: l } = P4(), u = t ?? a, d = o === "canvas", { surfaceRef: f, surfaceProps: p, decorations: m } = n6({
44458
44463
  isVisible: u,
44459
44464
  acceptsWidgetDrop: i
44460
44465
  });
44461
- return /* @__PURE__ */ U(c2, {
44466
+ return /* @__PURE__ */ U(l2, {
44462
44467
  visible: t,
44463
44468
  side: n,
44464
44469
  exitStyle: r,
44465
44470
  flushInnerSeam: d,
44466
44471
  surfaceRef: f,
44467
44472
  surfaceProps: p,
44468
- decorations: /* @__PURE__ */ W(Gr, { children: [m.canDrop || m.canAcceptWidgetDrop && m.dragQuote !== null ? /* @__PURE__ */ U(k3, {
44473
+ decorations: /* @__PURE__ */ W(Gr, { children: [m.canDrop || m.canAcceptWidgetDrop && m.dragQuote !== null ? /* @__PURE__ */ U(A3, {
44469
44474
  visible: m.canDrop && s || m.dragQuote !== null,
44470
44475
  mode: m.dragQuote === null ? "files" : "discuss",
44471
44476
  onFilesDropped: m.onFilesDropped
44472
- }) : null, c === "pong" ? /* @__PURE__ */ U(Q3, { onClose: l }) : null] }),
44477
+ }) : null, c === "pong" ? /* @__PURE__ */ U($3, { onClose: l }) : null] }),
44473
44478
  children: e
44474
44479
  });
44475
- }, r6 = "--f0-ai-composer-overlap", i6 = () => {
44480
+ }, i6 = "--f0-ai-composer-overlap", a6 = () => {
44476
44481
  let [e, t] = H(null), [n, r] = H(null), [i, a] = H(!1), [o, s] = H(!1);
44477
44482
  return Hr(() => {
44478
44483
  if (!e || !n) return;
44479
44484
  let t = -1, r = () => {
44480
44485
  let r = n.querySelector("[data-composer-layout=\"welcome\"]") !== null, i = r ? 0 : Math.ceil(n.getBoundingClientRect().height);
44481
- s(r), a(!r && (n.querySelector("[data-composer-layout=\"docked\"]") !== null || i > 0)), i !== t && (t = i, e.style.setProperty(r6, `${i}px`));
44486
+ s(r), a(!r && (n.querySelector("[data-composer-layout=\"docked\"]") !== null || i > 0)), i !== t && (t = i, e.style.setProperty(i6, `${i}px`));
44482
44487
  };
44483
44488
  if (r(), typeof ResizeObserver > "u") return;
44484
44489
  let i = new ResizeObserver(r);
@@ -44490,7 +44495,7 @@ var Q3 = ({ onClose: e }) => {
44490
44495
  attributes: !0,
44491
44496
  attributeFilter: ["data-composer-layout"]
44492
44497
  }), () => {
44493
- i.disconnect(), o.disconnect(), e.style.removeProperty(r6);
44498
+ i.disconnect(), o.disconnect(), e.style.removeProperty(i6);
44494
44499
  };
44495
44500
  }, [e, n]), {
44496
44501
  setShell: t,
@@ -44498,7 +44503,7 @@ var Q3 = ({ onClose: e }) => {
44498
44503
  floating: i,
44499
44504
  welcome: o
44500
44505
  };
44501
- }, a6 = Tr.duration.reveal * 1e3, o6 = ({ enabled: e = !1, side: t, panelContentSide: n, initialMessage: r, chatHeader: i, chatMessages: a, chatInput: o, chatOverlay: s, welcomeScreenSuggestions: c, welcomeScreenCards: l, disclaimer: u, resizable: d = !1, defaultVisualizationMode: f, lockVisualizationMode: p, historyEnabled: m, footer: h, VoiceMode: g, entityRefs: _, canvasActions: v, canvasEntities: y, credits: b, employeeCredits: x, creditWarning: S, fileAttachments: C, filePreviews: w, onTranscribe: T, onThumbsUp: E, onThumbsDown: D, children: O, agent: k, tracking: A }) => /* @__PURE__ */ U(E4, {
44506
+ }, o6 = Tr.duration.reveal * 1e3, s6 = ({ enabled: e = !1, side: t, panelContentSide: n, initialMessage: r, chatHeader: i, chatMessages: a, chatInput: o, chatOverlay: s, welcomeScreenSuggestions: c, welcomeScreenCards: l, disclaimer: u, resizable: d = !1, defaultVisualizationMode: f, lockVisualizationMode: p, historyEnabled: m, footer: h, VoiceMode: g, entityRefs: _, canvasActions: v, canvasEntities: y, credits: b, employeeCredits: x, creditWarning: S, fileAttachments: C, filePreviews: w, onTranscribe: T, onThumbsUp: E, onThumbsDown: D, children: O, agent: k, tracking: A }) => /* @__PURE__ */ U(D4, {
44502
44507
  enabled: e,
44503
44508
  side: t,
44504
44509
  panelContentSide: n,
@@ -44530,8 +44535,8 @@ var Q3 = ({ onClose: e }) => {
44530
44535
  filePreviews: w,
44531
44536
  onTranscribe: T,
44532
44537
  children: O
44533
- }), s6 = Ue("F0AiChat", ({ header: e, messages: t, input: n, overlay: r }) => {
44534
- let { enabled: i, open: a, setOpen: o, mode: s, visualizationMode: c, VoiceMode: l, tracking: u, chatHeader: d, chatMessages: f, chatInput: p, chatOverlay: m, panelContent: h, panelSide: g, panelContentSide: _, restoringPanelContentId: v, filePreviews: y } = N4(), b = He(), x = _ !== g, { motionProps: S } = x4(a ? c === "fullscreen" ? "fullscreen" : "docked" : "closed", (e, t) => t === "closed" ? 0 : a6), C = O(), w = i6(), T = e ?? d, E = t ?? f, D = n ?? p, k = r ?? m;
44538
+ }), c6 = Ue("F0AiChat", ({ header: e, messages: t, input: n, overlay: r }) => {
44539
+ let { enabled: i, open: a, setOpen: o, mode: s, visualizationMode: c, VoiceMode: l, tracking: u, chatHeader: d, chatMessages: f, chatInput: p, chatOverlay: m, panelContent: h, panelSide: g, panelContentSide: _, restoringPanelContentId: v, filePreviews: y } = P4(), b = He(), x = _ !== g, { motionProps: S } = S4(a ? c === "fullscreen" ? "fullscreen" : "docked" : "closed", (e, t) => t === "closed" ? 0 : o6), C = O(), w = a6(), T = e ?? d, E = t ?? f, D = n ?? p, k = r ?? m;
44535
44540
  if (!i) return null;
44536
44541
  let { viewKey: A, viewContent: j } = h && !x ? {
44537
44542
  viewKey: `panel:${h.id}`,
@@ -44593,7 +44598,7 @@ var Q3 = ({ onClose: e }) => {
44593
44598
  };
44594
44599
  return /* @__PURE__ */ U(x0, {
44595
44600
  filePreviews: y,
44596
- children: /* @__PURE__ */ U(n6, {
44601
+ children: /* @__PURE__ */ U(r6, {
44597
44602
  visible: x ? a && !h && !v : void 0,
44598
44603
  exitStyle: x && a ? "hold" : "shrink",
44599
44604
  acceptsWidgetDrop: A === "chat" && !k,
@@ -44613,23 +44618,23 @@ var Q3 = ({ onClose: e }) => {
44613
44618
  })
44614
44619
  })
44615
44620
  });
44616
- }), c6 = Ue("F0AiChatProvider", o6), l6 = 31, u6 = async (e) => {
44621
+ }), l6 = Ue("F0AiChatProvider", s6), u6 = 31, d6 = async (e) => {
44617
44622
  let { default: t } = await import("./browser-Chetd4xB.js");
44618
44623
  return t(e.map(({ name: e, rows: t }) => ({
44619
- sheet: e.slice(0, l6),
44624
+ sheet: e.slice(0, u6),
44620
44625
  data: t,
44621
44626
  dateFormat: "yyyy-mm-dd"
44622
44627
  }))).toBlob();
44623
- }, d6 = async (t) => {
44628
+ }, f6 = async (t) => {
44624
44629
  let { default: n } = await import("./papaparse.min-BwPbUAd9.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), r = n.unparse(t.map((e) => e.map((e) => e instanceof Date ? e.toISOString() : e)));
44625
44630
  return new Blob([r], { type: "text/csv;charset=utf-8;" });
44626
- }, f6 = /^-?\d+(\.\d+)?$/, p6 = (e) => Array.from(e.rows, (e) => Array.from(e.cells, (e) => {
44631
+ }, p6 = /^-?\d+(\.\d+)?$/, m6 = (e) => Array.from(e.rows, (e) => Array.from(e.cells, (e) => {
44627
44632
  let t = e.textContent?.trim() ?? "";
44628
- return f6.test(t) ? Number(t) : t;
44629
- })), m6 = (e, t) => {
44633
+ return p6.test(t) ? Number(t) : t;
44634
+ })), h6 = (e, t) => {
44630
44635
  let n = document.createElement("a");
44631
44636
  n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
44632
- }, h6 = Ue("F0PersonCard", ({ name: e, avatar: t, subtitle: n, profileHref: r, actions: i = [], dataTestId: a }) => {
44637
+ }, g6 = Ue("F0PersonCard", ({ name: e, avatar: t, subtitle: n, profileHref: r, actions: i = [], dataTestId: a }) => {
44633
44638
  let o = He();
44634
44639
  return /* @__PURE__ */ U(je, {
44635
44640
  dataTestId: a,
@@ -44658,7 +44663,7 @@ var Q3 = ({ onClose: e }) => {
44658
44663
  }) : null
44659
44664
  })
44660
44665
  });
44661
- }), g6 = ke({
44666
+ }), _6 = ke({
44662
44667
  base: F("inline-flex items-center justify-center rounded-sm text-sm font-medium transition-colors hover:bg-f1-background-secondary hover:text-f1-foreground-secondary disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-f1-background-secondary data-[state=on]:text-f1-foreground", at()),
44663
44668
  variants: {
44664
44669
  variant: {
@@ -44675,26 +44680,26 @@ var Q3 = ({ onClose: e }) => {
44675
44680
  variant: "default",
44676
44681
  size: "default"
44677
44682
  }
44678
- }), _6 = I.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ U(bn, {
44683
+ }), v6 = I.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ U(bn, {
44679
44684
  ref: i,
44680
- className: F(g6({
44685
+ className: F(_6({
44681
44686
  variant: t,
44682
44687
  size: n,
44683
44688
  className: e
44684
44689
  })),
44685
44690
  ...r
44686
44691
  }));
44687
- _6.displayName = bn.displayName;
44692
+ v6.displayName = bn.displayName;
44688
44693
  //#endregion
44689
44694
  //#region src/elements/ToggleGroup/ToggleGroup.tsx
44690
- var v6 = I.createContext({
44695
+ var y6 = I.createContext({
44691
44696
  size: "default",
44692
44697
  variant: "default"
44693
- }), y6 = I.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ U(AV, {
44698
+ }), b6 = I.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ U(AV, {
44694
44699
  ref: a,
44695
44700
  className: F("flex items-center justify-center gap-1.5", e),
44696
44701
  ...i,
44697
- children: /* @__PURE__ */ U(v6.Provider, {
44702
+ children: /* @__PURE__ */ U(y6.Provider, {
44698
44703
  value: {
44699
44704
  variant: t,
44700
44705
  size: n
@@ -44702,12 +44707,12 @@ var v6 = I.createContext({
44702
44707
  children: r
44703
44708
  })
44704
44709
  }));
44705
- y6.displayName = AV.displayName;
44706
- var b6 = I.forwardRef(({ className: e, children: t, variant: n, size: r, ...i }, a) => {
44707
- let o = I.useContext(v6);
44710
+ b6.displayName = AV.displayName;
44711
+ var x6 = I.forwardRef(({ className: e, children: t, variant: n, size: r, ...i }, a) => {
44712
+ let o = I.useContext(y6);
44708
44713
  return /* @__PURE__ */ U(jV, {
44709
44714
  ref: a,
44710
- className: F(g6({
44715
+ className: F(_6({
44711
44716
  variant: o.variant || n,
44712
44717
  size: o.size || r
44713
44718
  }), e),
@@ -44715,10 +44720,10 @@ var b6 = I.forwardRef(({ className: e, children: t, variant: n, size: r, ...i },
44715
44720
  children: t
44716
44721
  });
44717
44722
  });
44718
- b6.displayName = jV.displayName;
44723
+ x6.displayName = jV.displayName;
44719
44724
  //#endregion
44720
44725
  //#region src/blocks/Widgets/Content/Weekdays/Weekdays.tsx
44721
- var x6 = [
44726
+ var S6 = [
44722
44727
  "Monday",
44723
44728
  "Tuesday",
44724
44729
  "Wednesday",
@@ -44726,26 +44731,26 @@ var x6 = [
44726
44731
  "Friday",
44727
44732
  "Saturday",
44728
44733
  "Sunday"
44729
- ], S6 = R(function({ daysOfTheWeek: e = x6, activatedDays: t = [] }, n) {
44734
+ ], C6 = R(function({ daysOfTheWeek: e = S6, activatedDays: t = [] }, n) {
44730
44735
  let r = t.map((t) => `${t}-${e[t]}`);
44731
- return /* @__PURE__ */ U(y6, {
44736
+ return /* @__PURE__ */ U(b6, {
44732
44737
  type: "multiple",
44733
44738
  value: r,
44734
44739
  disabled: !0,
44735
44740
  className: "flex justify-start",
44736
44741
  ref: n,
44737
- children: e.map((e, t) => /* @__PURE__ */ U(b6, {
44742
+ children: e.map((e, t) => /* @__PURE__ */ U(x6, {
44738
44743
  "aria-label": e,
44739
44744
  value: `${t}-${e}`,
44740
44745
  className: "h-6 w-6 shrink-0 grow-0 basis-6 p-0 text-sm font-medium disabled:select-none disabled:bg-f1-background-tertiary disabled:text-f1-foreground-secondary disabled:opacity-100 disabled:data-[state=on]:border disabled:data-[state=on]:border-solid disabled:data-[state=on]:border-f1-border-selected disabled:data-[state=on]:bg-f1-background-selected disabled:data-[state=on]:text-f1-foreground-selected",
44741
44746
  children: e[0]
44742
44747
  }, t))
44743
44748
  });
44744
- }), C6 = 750, w6 = ({ text: e, children: t }) => {
44749
+ }), w6 = 750, T6 = ({ text: e, children: t }) => {
44745
44750
  let [n, r] = H(!1);
44746
44751
  return B(() => {
44747
44752
  if (n) {
44748
- let e = setTimeout(() => r(!1), C6);
44753
+ let e = setTimeout(() => r(!1), w6);
44749
44754
  return () => clearTimeout(e);
44750
44755
  }
44751
44756
  }, [n]), /* @__PURE__ */ W("button", {
@@ -44809,7 +44814,7 @@ var x6 = [
44809
44814
  })
44810
44815
  })]
44811
44816
  });
44812
- }, T6 = Rr(({ children: e, className: t, ...n }) => /* @__PURE__ */ W(Ge, {
44817
+ }, E6 = Rr(({ children: e, className: t, ...n }) => /* @__PURE__ */ W(Ge, {
44813
44818
  ...n,
44814
44819
  className: F("text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground", "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover", t),
44815
44820
  children: [e, /* @__PURE__ */ U("div", {
@@ -44821,10 +44826,10 @@ var x6 = [
44821
44826
  })
44822
44827
  })]
44823
44828
  }));
44824
- T6.displayName = "NavigateAction";
44829
+ E6.displayName = "NavigateAction";
44825
44830
  //#endregion
44826
44831
  //#region src/elements/DataList/actions/OpenLinkAction.tsx
44827
- var E6 = Rr(({ children: e, className: t, href: n, ...r }) => /* @__PURE__ */ W(Ge, {
44832
+ var D6 = Rr(({ children: e, className: t, href: n, ...r }) => /* @__PURE__ */ W(Ge, {
44828
44833
  ...r,
44829
44834
  target: "_blank",
44830
44835
  href: n,
@@ -44840,15 +44845,15 @@ var E6 = Rr(({ children: e, className: t, href: n, ...r }) => /* @__PURE__ */ W(
44840
44845
  })
44841
44846
  })]
44842
44847
  }));
44843
- E6.displayName = "OpenLinkAction";
44848
+ D6.displayName = "OpenLinkAction";
44844
44849
  //#endregion
44845
44850
  //#region src/elements/DataList/ItemContainer.tsx
44846
- var D6 = R((e, t) => {
44851
+ var O6 = R((e, t) => {
44847
44852
  let { text: n, leftIcon: r, className: i, action: a = { type: "noop" } } = e;
44848
44853
  return /* @__PURE__ */ U("li", {
44849
44854
  className: "flex rounded font-medium text-f1-foreground *:flex-1",
44850
44855
  ref: t,
44851
- children: /* @__PURE__ */ W(O6, {
44856
+ children: /* @__PURE__ */ W(k6, {
44852
44857
  action: a,
44853
44858
  className: F("flex items-center gap-1.5 p-1.5", i),
44854
44859
  children: [r ? typeof r == "function" ? r({}) : /* @__PURE__ */ U(Ae, {
@@ -44862,21 +44867,21 @@ var D6 = R((e, t) => {
44862
44867
  })
44863
44868
  });
44864
44869
  });
44865
- D6.displayName = "ItemContainer";
44866
- var O6 = ({ children: e, action: t, ...n }) => {
44870
+ O6.displayName = "ItemContainer";
44871
+ var k6 = ({ children: e, action: t, ...n }) => {
44867
44872
  let r = t.type;
44868
44873
  switch (r) {
44869
- case "copy": return /* @__PURE__ */ U(w6, {
44874
+ case "copy": return /* @__PURE__ */ U(T6, {
44870
44875
  ...t,
44871
44876
  ...n,
44872
44877
  children: e
44873
44878
  });
44874
- case "navigate": return /* @__PURE__ */ U(T6, {
44879
+ case "navigate": return /* @__PURE__ */ U(E6, {
44875
44880
  ...t,
44876
44881
  ...n,
44877
44882
  children: e
44878
44883
  });
44879
- case "open-link": return /* @__PURE__ */ U(E6, {
44884
+ case "open-link": return /* @__PURE__ */ U(D6, {
44880
44885
  ...t,
44881
44886
  ...n,
44882
44887
  children: e
@@ -44887,19 +44892,19 @@ var O6 = ({ children: e, action: t, ...n }) => {
44887
44892
  });
44888
44893
  default: return r;
44889
44894
  }
44890
- }, k6 = (e, t) => e && e.type === "copy" ? {
44895
+ }, A6 = (e, t) => e && e.type === "copy" ? {
44891
44896
  type: "copy",
44892
44897
  text: e.text ?? t
44893
- } : e, A6 = R(({ text: e, icon: t, action: n }, r) => /* @__PURE__ */ U(D6, {
44898
+ } : e, j6 = R(({ text: e, icon: t, action: n }, r) => /* @__PURE__ */ U(O6, {
44894
44899
  ref: r,
44895
44900
  text: e,
44896
44901
  leftIcon: t,
44897
- action: k6(n, e)
44902
+ action: A6(n, e)
44898
44903
  }));
44899
- A6.displayName = "DataList.Item";
44900
- var j6 = Ue("DataList.Item", A6), M6 = R(({ action: e, avatarUrl: t, firstName: n, lastName: r }, i) => {
44904
+ j6.displayName = "DataList.Item";
44905
+ var M6 = Ue("DataList.Item", j6), N6 = R(({ action: e, avatarUrl: t, firstName: n, lastName: r }, i) => {
44901
44906
  let a = `${n} ${r}`;
44902
- return /* @__PURE__ */ U(D6, {
44907
+ return /* @__PURE__ */ U(O6, {
44903
44908
  ref: i,
44904
44909
  leftIcon: () => /* @__PURE__ */ U(Ct, {
44905
44910
  size: "xs",
@@ -44908,11 +44913,11 @@ var j6 = Ue("DataList.Item", A6), M6 = R(({ action: e, avatarUrl: t, firstName:
44908
44913
  lastName: r
44909
44914
  }),
44910
44915
  text: a,
44911
- action: k6(e, a)
44916
+ action: A6(e, a)
44912
44917
  });
44913
44918
  });
44914
- M6.displayName = "PersonItem";
44915
- var N6 = Ue("PersonItem", M6), P6 = R(({ avatarUrl: e, name: t, action: n }, r) => /* @__PURE__ */ U(D6, {
44919
+ N6.displayName = "PersonItem";
44920
+ var P6 = Ue("PersonItem", N6), F6 = R(({ avatarUrl: e, name: t, action: n }, r) => /* @__PURE__ */ U(O6, {
44916
44921
  ref: r,
44917
44922
  leftIcon: () => /* @__PURE__ */ U(Mt, {
44918
44923
  name: t,
@@ -44920,62 +44925,62 @@ var N6 = Ue("PersonItem", M6), P6 = R(({ avatarUrl: e, name: t, action: n }, r)
44920
44925
  src: e
44921
44926
  }),
44922
44927
  text: t,
44923
- action: k6(n, t)
44928
+ action: A6(n, t)
44924
44929
  }));
44925
- P6.displayName = "CompanyItem";
44926
- var F6 = Ue("CompanyItem", P6), I6 = R(({ action: e, name: t }, n) => /* @__PURE__ */ U(D6, {
44930
+ F6.displayName = "CompanyItem";
44931
+ var I6 = Ue("CompanyItem", F6), L6 = R(({ action: e, name: t }, n) => /* @__PURE__ */ U(O6, {
44927
44932
  ref: n,
44928
44933
  leftIcon: () => /* @__PURE__ */ U(Rt, {
44929
44934
  name: t,
44930
44935
  size: "xs"
44931
44936
  }),
44932
44937
  text: t,
44933
- action: k6(e, t)
44938
+ action: A6(e, t)
44934
44939
  }));
44935
- I6.displayName = "TeamItem";
44936
- var L6 = Ue("TeamItem", I6), R6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44940
+ L6.displayName = "TeamItem";
44941
+ var R6 = Ue("TeamItem", L6), z6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44937
44942
  ref: t,
44938
44943
  className: "flex items-start pt-1",
44939
44944
  children: /* @__PURE__ */ U(cn, { ...e })
44940
44945
  }));
44941
- R6.displayName = "DotTagItem";
44942
- var z6 = Ue("DotTagItem", R6), B6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44946
+ z6.displayName = "DotTagItem";
44947
+ var B6 = Ue("DotTagItem", z6), V6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44943
44948
  ref: t,
44944
44949
  className: "flex items-start pt-1",
44945
44950
  children: /* @__PURE__ */ U(ln, { ...e })
44946
44951
  }));
44947
- B6.displayName = "AlertTagItem";
44948
- var V6 = Ue("AlertTagItem", B6), H6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44952
+ V6.displayName = "AlertTagItem";
44953
+ var H6 = Ue("AlertTagItem", V6), U6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44949
44954
  ref: t,
44950
44955
  className: "flex items-start pt-1",
44951
44956
  children: /* @__PURE__ */ U(Xt, { ...e })
44952
44957
  }));
44953
- H6.displayName = "BalanceTagItem";
44954
- var U6 = Ue("BalanceTagItem", H6), W6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44958
+ U6.displayName = "BalanceTagItem";
44959
+ var W6 = Ue("BalanceTagItem", U6), G6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44955
44960
  ref: t,
44956
44961
  className: "flex items-start pt-1",
44957
44962
  children: /* @__PURE__ */ U(Gt, { ...e })
44958
44963
  }));
44959
- W6.displayName = "StatusTagItem";
44960
- var G6 = Ue("StatusTagItem", W6), K6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44964
+ G6.displayName = "StatusTagItem";
44965
+ var K6 = Ue("StatusTagItem", G6), q6 = R(({ ...e }, t) => /* @__PURE__ */ U("li", {
44961
44966
  ref: t,
44962
44967
  className: "flex items-start pt-1",
44963
44968
  children: /* @__PURE__ */ U(Yn, { ...e })
44964
44969
  }));
44965
- K6.displayName = "RawTagItem";
44966
- var q6 = Ue("RawTagItem", K6);
44970
+ q6.displayName = "RawTagItem";
44971
+ var J6 = Ue("RawTagItem", q6);
44967
44972
  //#endregion
44968
44973
  //#region src/elements/DataList/items/TagListItem.tsx
44969
- function J6(e, t) {
44974
+ function Y6(e, t) {
44970
44975
  return /* @__PURE__ */ U("li", {
44971
44976
  ref: t,
44972
44977
  className: "flex items-start pt-1",
44973
44978
  children: /* @__PURE__ */ U(ir, { ...e })
44974
44979
  });
44975
44980
  }
44976
- var Y6 = R(J6);
44977
- Y6.displayName = "TagListItem";
44978
- var X6 = Ue("TagListItem", Y6), Z6 = R(({ children: e, label: t, isHorizontal: n = !1 }, r) => /* @__PURE__ */ W("div", {
44981
+ var X6 = R(Y6);
44982
+ X6.displayName = "TagListItem";
44983
+ var Z6 = Ue("TagListItem", X6), Q6 = R(({ children: e, label: t, isHorizontal: n = !1 }, r) => /* @__PURE__ */ W("div", {
44979
44984
  className: F(n ? "flex min-h-12 flex-1 flex-col py-1.5 pl-3 pr-1.5 xs:flex-row" : "min-w-32"),
44980
44985
  children: [t ? /* @__PURE__ */ U("p", {
44981
44986
  className: F("px-1.5 text-f1-foreground-secondary", n ? "mt-2 w-44 xs:px-0" : "mb-0.5"),
@@ -44986,33 +44991,33 @@ var X6 = Ue("TagListItem", Y6), Z6 = R(({ children: e, label: t, isHorizontal: n
44986
44991
  children: e
44987
44992
  })]
44988
44993
  }));
44989
- Z6.displayName = "DataList";
44990
- var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
44991
- Item: j6,
44992
- CompanyItem: F6,
44993
- PersonItem: N6,
44994
- TeamItem: L6,
44995
- DotTagItem: z6,
44996
- AlertTagItem: V6,
44997
- BalanceTagItem: U6,
44998
- StatusTagItem: G6,
44999
- RawTagItem: q6,
45000
- TagListItem: X6
45001
- }), e8 = ({ content: e }) => /* @__PURE__ */ W(Gr, { children: [
44994
+ Q6.displayName = "DataList";
44995
+ var $6 = Ue("DataList", Q6), e8 = Object.assign($6, {
44996
+ Item: M6,
44997
+ CompanyItem: I6,
44998
+ PersonItem: P6,
44999
+ TeamItem: R6,
45000
+ DotTagItem: B6,
45001
+ AlertTagItem: H6,
45002
+ BalanceTagItem: W6,
45003
+ StatusTagItem: K6,
45004
+ RawTagItem: J6,
45005
+ TagListItem: Z6
45006
+ }), t8 = ({ content: e }) => /* @__PURE__ */ W(Gr, { children: [
45002
45007
  e.type === "weekdays" ? /* @__PURE__ */ U("li", {
45003
45008
  className: "list-none px-1.5 py-1",
45004
- children: /* @__PURE__ */ U(S6, { ...e })
45009
+ children: /* @__PURE__ */ U(C6, { ...e })
45005
45010
  }) : null,
45006
- e.type === "person" ? /* @__PURE__ */ U($6.PersonItem, { ...e }) : null,
45007
- e.type === "item" ? /* @__PURE__ */ U($6.Item, { ...e }) : null,
45008
- e.type === "team" ? /* @__PURE__ */ U($6.TeamItem, { ...e }) : null,
45009
- e.type === "company" ? /* @__PURE__ */ U($6.CompanyItem, { ...e }) : null,
45010
- e.type === "dot-tag" ? /* @__PURE__ */ U($6.DotTagItem, { ...e }) : null,
45011
- e.type === "alert-tag" ? /* @__PURE__ */ U($6.AlertTagItem, { ...e }) : null,
45012
- e.type === "balance-tag" ? /* @__PURE__ */ U($6.BalanceTagItem, { ...e }) : null,
45013
- e.type === "status-tag" ? /* @__PURE__ */ U($6.StatusTagItem, { ...e }) : null,
45014
- e.type === "raw-tag" ? /* @__PURE__ */ U($6.RawTagItem, { ...e }) : null,
45015
- e.type === "tag-list" ? /* @__PURE__ */ U($6.TagListItem, { ...e.tagList }) : null,
45011
+ e.type === "person" ? /* @__PURE__ */ U(e8.PersonItem, { ...e }) : null,
45012
+ e.type === "item" ? /* @__PURE__ */ U(e8.Item, { ...e }) : null,
45013
+ e.type === "team" ? /* @__PURE__ */ U(e8.TeamItem, { ...e }) : null,
45014
+ e.type === "company" ? /* @__PURE__ */ U(e8.CompanyItem, { ...e }) : null,
45015
+ e.type === "dot-tag" ? /* @__PURE__ */ U(e8.DotTagItem, { ...e }) : null,
45016
+ e.type === "alert-tag" ? /* @__PURE__ */ U(e8.AlertTagItem, { ...e }) : null,
45017
+ e.type === "balance-tag" ? /* @__PURE__ */ U(e8.BalanceTagItem, { ...e }) : null,
45018
+ e.type === "status-tag" ? /* @__PURE__ */ U(e8.StatusTagItem, { ...e }) : null,
45019
+ e.type === "raw-tag" ? /* @__PURE__ */ U(e8.RawTagItem, { ...e }) : null,
45020
+ e.type === "tag-list" ? /* @__PURE__ */ U(e8.TagListItem, { ...e.tagList }) : null,
45016
45021
  e.type === "avatar-list" ? /* @__PURE__ */ U("li", {
45017
45022
  className: "list-none px-1.5 py-1",
45018
45023
  children: /* @__PURE__ */ U(Nt, { ...e.avatarList })
@@ -45024,25 +45029,25 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45024
45029
  children: /* @__PURE__ */ U($$, { ...n })
45025
45030
  });
45026
45031
  })() : null
45027
- ] }), t8 = R(function({ title: e, content: t, isHorizontal: n = !1, verticalLayout: r = !1, spacingAtTheBottom: i }, a) {
45032
+ ] }), n8 = R(function({ title: e, content: t, isHorizontal: n = !1, verticalLayout: r = !1, spacingAtTheBottom: i }, a) {
45028
45033
  let o = Array.isArray(t) ? t : [t];
45029
45034
  return /* @__PURE__ */ U("div", {
45030
45035
  ref: a,
45031
45036
  className: F("flex flex-col gap-0.5", i && !n && "pb-3", n && !r && "xs:[&_ul>li]:p-0 [&_ul]:flex-1", n && r && "[&_ul>li>*]:px-0 [&_ul]:flex-1 xs:[&>div]:flex-col"),
45032
- children: /* @__PURE__ */ U($6, {
45037
+ children: /* @__PURE__ */ U(e8, {
45033
45038
  label: e,
45034
45039
  isHorizontal: n,
45035
- children: o.map((e, t) => /* @__PURE__ */ U(e8, { content: e }, t))
45040
+ children: o.map((e, t) => /* @__PURE__ */ U(t8, { content: e }, t))
45036
45041
  })
45037
45042
  });
45038
- }), n8 = be(Ue("DetailsItem", t8)), r8 = ({ onClick: e }) => {
45043
+ }), r8 = be(Ue("DetailsItem", n8)), i8 = ({ onClick: e }) => {
45039
45044
  let t = He();
45040
45045
  return /* @__PURE__ */ U(xe, {
45041
45046
  label: t.actions.seeMore,
45042
45047
  onClick: e,
45043
45048
  variant: "neutral"
45044
45049
  });
45045
- }, i8 = R(function({ title: e, tableView: t = !1, details: n, dataTestId: r, showSeeMore: i, onClickSeeMore: a }, o) {
45050
+ }, a8 = R(function({ title: e, tableView: t = !1, details: n, dataTestId: r, showSeeMore: i, onClickSeeMore: a }, o) {
45046
45051
  return /* @__PURE__ */ U(je, {
45047
45052
  dataTestId: r,
45048
45053
  children: /* @__PURE__ */ W("div", {
@@ -45055,7 +45060,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45055
45060
  }) : null,
45056
45061
  /* @__PURE__ */ U("div", {
45057
45062
  className: F("flex flex-col", t ? "rounded-md border border-solid border-f1-border-secondary" : "gap-3"),
45058
- children: n?.map((e, r) => /* @__PURE__ */ W(L.Fragment, { children: [/* @__PURE__ */ U(n8, {
45063
+ children: n?.map((e, r) => /* @__PURE__ */ W(L.Fragment, { children: [/* @__PURE__ */ U(r8, {
45059
45064
  title: e.title,
45060
45065
  content: e.content,
45061
45066
  spacingAtTheBottom: e.spacingAtTheBottom,
@@ -45063,11 +45068,11 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45063
45068
  verticalLayout: e.verticalLayout
45064
45069
  }, e.title), t && r !== n.length - 1 ? /* @__PURE__ */ U("div", { className: "h-[1px] w-full bg-f1-border-secondary" }) : null] }, e.title))
45065
45070
  }),
45066
- i ? /* @__PURE__ */ U(r8, { onClick: a }) : null
45071
+ i ? /* @__PURE__ */ U(i8, { onClick: a }) : null
45067
45072
  ]
45068
45073
  })
45069
45074
  });
45070
- }), a8 = Ue("DetailsItemsList", i8), o8 = ({ image: e, aspectRatio: t, spanFull: n, inset: r, surfaceClassName: i, label: a, onOpen: o, overlay: s, eager: c = !0, onImageError: l, testIdPrefix: u = "chat", preventDrag: d = !1 }) => {
45075
+ }), o8 = Ue("DetailsItemsList", a8), s8 = ({ image: e, aspectRatio: t, spanFull: n, inset: r, surfaceClassName: i, label: a, onOpen: o, overlay: s, eager: c = !0, onImageError: l, testIdPrefix: u = "chat", preventDrag: d = !1 }) => {
45071
45076
  let { reducedMotion: f } = y1(), [p, m] = H(!1), h = j1(e.thumbnailUrl ?? e.url);
45072
45077
  return M1(h.status, l), /* @__PURE__ */ W("button", {
45073
45078
  type: "button",
@@ -45101,7 +45106,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45101
45106
  s
45102
45107
  ]
45103
45108
  });
45104
- }, s8 = "w-[24rem] max-w-full", c8 = "w-[32rem] max-w-full", l8 = "gap-0.5", u8 = "pointer-events-none absolute inset-x-0 bottom-0 h-[46%] bg-[linear-gradient(to_top,rgba(0,0,0,0.5),rgba(0,0,0,0.18)_45%,transparent)]", d8 = "bg-[hsl(222_31%_11%)]", f8 = "bg-[hsl(220_39%_6%/0.72)]", p8 = "bg-[hsl(220_39%_6%/0.6)]", m8 = "bg-[hsl(220_39%_6%/0.55)]", h8 = Lr(() => import("./F0VideoPlayer-CAgvYcAY.js").then((e) => ({ default: e.F0VideoPlayer }))), g8 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: a, testIdPrefix: o = "chat" }) => {
45109
+ }, c8 = "w-[24rem] max-w-full", l8 = "w-[32rem] max-w-full", u8 = "gap-0.5", d8 = "pointer-events-none absolute inset-x-0 bottom-0 h-[46%] bg-[linear-gradient(to_top,rgba(0,0,0,0.5),rgba(0,0,0,0.18)_45%,transparent)]", f8 = "bg-[hsl(222_31%_11%)]", p8 = "bg-[hsl(220_39%_6%/0.72)]", m8 = "bg-[hsl(220_39%_6%/0.6)]", h8 = "bg-[hsl(220_39%_6%/0.55)]", g8 = Lr(() => import("./F0VideoPlayer-rLZ5qvuq.js").then((e) => ({ default: e.F0VideoPlayer }))), _8 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: a, testIdPrefix: o = "chat" }) => {
45105
45110
  let s = He(), { urlCache: c } = y1(), l = N1(), [u, d] = H(!1), [f, p] = H(!1), m = c !== null && !h1(e.url), [h, g] = H(!1), _ = j1(e.url, { enabled: !m || h }), v = j1(e.thumbnailUrl), y = v.status === "ready" ? v.url : void 0, b = e.size == null ? null : Q1(e.size), x = {
45106
45111
  label: s.t("chat.downloadNamedFile", { name: e.name }),
45107
45112
  icon: Ja,
@@ -45112,7 +45117,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45112
45117
  return /* @__PURE__ */ W("figure", {
45113
45118
  "aria-label": e.name,
45114
45119
  "aria-busy": !f && !S || void 0,
45115
- className: F("group/video relative m-0 aspect-video max-w-full overflow-hidden", s8, d8, t, n),
45120
+ className: F("group/video relative m-0 aspect-video max-w-full overflow-hidden", c8, f8, t, n),
45116
45121
  onErrorCapture: (e) => {
45117
45122
  e.target instanceof HTMLVideoElement && d(!0);
45118
45123
  },
@@ -45142,7 +45147,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45142
45147
  "aria-hidden": f ? !0 : void 0,
45143
45148
  "data-testid": `${o}-video-placeholder`,
45144
45149
  children: [
45145
- /* @__PURE__ */ U(_8, {
45150
+ /* @__PURE__ */ U(v8, {
45146
45151
  name: e.name,
45147
45152
  poster: y,
45148
45153
  announce: !f,
@@ -45150,11 +45155,11 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45150
45155
  }),
45151
45156
  /* @__PURE__ */ U("span", { className: "absolute inset-0 bg-[hsl(0_0%_0%/0.2)]" }),
45152
45157
  /* @__PURE__ */ U("span", {
45153
- className: F("absolute left-1/2 top-1/2 flex size-14 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full text-f1-foreground-inverse", f8),
45158
+ className: F("absolute left-1/2 top-1/2 flex size-14 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full text-f1-foreground-inverse", p8),
45154
45159
  children: /* @__PURE__ */ U(jc, { className: "size-6" })
45155
45160
  }),
45156
45161
  b ? /* @__PURE__ */ U("span", {
45157
- className: F("absolute bottom-2 left-2 rounded-full px-2 py-0.5 text-sm font-medium text-f1-foreground-inverse", p8),
45162
+ className: F("absolute bottom-2 left-2 rounded-full px-2 py-0.5 text-sm font-medium text-f1-foreground-inverse", m8),
45158
45163
  "data-testid": `${o}-video-size`,
45159
45164
  children: b
45160
45165
  }) : null
@@ -45172,7 +45177,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45172
45177
  "data-testid": `${o}-video-player-shell`,
45173
45178
  children: /* @__PURE__ */ U(Mr, {
45174
45179
  fallback: null,
45175
- children: _.status === "ready" ? /* @__PURE__ */ U(h8, {
45180
+ children: _.status === "ready" ? /* @__PURE__ */ U(g8, {
45176
45181
  src: _.url,
45177
45182
  ariaLabel: s.t("chat.videoPlayerLabel", { name: e.name }),
45178
45183
  poster: y,
@@ -45198,7 +45203,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45198
45203
  })
45199
45204
  ]
45200
45205
  });
45201
- }, _8 = ({ name: e, poster: t, announce: n = !0, surfaceClassName: r }) => {
45206
+ }, v8 = ({ name: e, poster: t, announce: n = !0, surfaceClassName: r }) => {
45202
45207
  let i = He();
45203
45208
  return /* @__PURE__ */ U("div", {
45204
45209
  role: n ? "status" : void 0,
@@ -45212,11 +45217,11 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45212
45217
  className: "h-full w-full object-contain"
45213
45218
  }) : /* @__PURE__ */ U(Ie, { className: F("h-full w-full", n ? "motion-reduce:animate-none" : "animate-none", r) })
45214
45219
  });
45215
- }, v8 = /* @__PURE__ */ new Map(), y8 = /* @__PURE__ */ new Set(), b8 = /* @__PURE__ */ new Map(), x8 = (e) => v8.get(e) ?? (y8.has(e) ? null : void 0), S8 = (e) => {
45216
- let t = v8.get(e);
45220
+ }, y8 = /* @__PURE__ */ new Map(), b8 = /* @__PURE__ */ new Set(), x8 = /* @__PURE__ */ new Map(), S8 = (e) => y8.get(e) ?? (b8.has(e) ? null : void 0), C8 = (e) => {
45221
+ let t = y8.get(e);
45217
45222
  if (t) return Promise.resolve(t);
45218
- if (y8.has(e)) return Promise.resolve(null);
45219
- let n = b8.get(e);
45223
+ if (b8.has(e)) return Promise.resolve(null);
45224
+ let n = x8.get(e);
45220
45225
  if (n) return n;
45221
45226
  if (typeof Image > "u") return Promise.resolve(null);
45222
45227
  let r = new Promise((t) => {
@@ -45226,20 +45231,20 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45226
45231
  width: n.naturalWidth,
45227
45232
  height: n.naturalHeight
45228
45233
  };
45229
- r.width > 0 && r.height > 0 ? (v8.set(e, r), t(r)) : (y8.add(e), t(null));
45234
+ r.width > 0 && r.height > 0 ? (y8.set(e, r), t(r)) : (b8.add(e), t(null));
45230
45235
  }, n.onerror = () => {
45231
- y8.add(e), t(null);
45236
+ b8.add(e), t(null);
45232
45237
  }, n.src = e;
45233
45238
  }).finally(() => {
45234
- b8.delete(e);
45239
+ x8.delete(e);
45235
45240
  });
45236
- return b8.set(e, r), r;
45237
- }, C8 = (e, t) => {
45241
+ return x8.set(e, r), r;
45242
+ }, w8 = (e, t) => {
45238
45243
  let n = t?.width, r = t?.height, i = !!(n && r), [, a] = H(null);
45239
45244
  return B(() => {
45240
45245
  if (!e || i) return;
45241
45246
  let t = !1;
45242
- return S8(e).then((n) => {
45247
+ return C8(e).then((n) => {
45243
45248
  t || a({
45244
45249
  src: e,
45245
45250
  size: n
@@ -45250,8 +45255,8 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45250
45255
  }, [e, i]), n && r ? {
45251
45256
  width: n,
45252
45257
  height: r
45253
- } : e ? x8(e) : void 0;
45254
- }, w8 = 1.3, T8 = .6, E8 = (e, t) => {
45258
+ } : e ? S8(e) : void 0;
45259
+ }, T8 = 1.3, E8 = .6, D8 = (e, t) => {
45255
45260
  if (!e || !t) return null;
45256
45261
  let n = Math.min(e, 384), r = n * t / e;
45257
45262
  r > 512 && (r = 512, n = r * e / t);
@@ -45262,10 +45267,10 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45262
45267
  scaleX: Math.min(1, n / i),
45263
45268
  scaleY: Math.min(1, r / a)
45264
45269
  };
45265
- }, D8 = (e) => {
45270
+ }, O8 = (e) => {
45266
45271
  if (e.length === 0) return [];
45267
45272
  if (e.length === 1) {
45268
- let t = E8(e[0]?.width, e[0]?.height), n = t ? t.scaleX < 1 || t.scaleY < 1 : !1;
45273
+ let t = D8(e[0]?.width, e[0]?.height), n = t ? t.scaleX < 1 || t.scaleY < 1 : !1;
45269
45274
  return [{
45270
45275
  index: 0,
45271
45276
  span: 2,
@@ -45280,14 +45285,14 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45280
45285
  if (e.length === 2) return e.map((e, t) => ({
45281
45286
  index: t,
45282
45287
  span: 1,
45283
- aspectRatio: 1 / w8,
45288
+ aspectRatio: 1 / T8,
45284
45289
  hiddenCount: 0
45285
45290
  }));
45286
45291
  if (e.length === 3) return [
45287
45292
  {
45288
45293
  index: 0,
45289
45294
  span: 2,
45290
- aspectRatio: 1 / T8,
45295
+ aspectRatio: 1 / E8,
45291
45296
  hiddenCount: 0
45292
45297
  },
45293
45298
  {
@@ -45310,7 +45315,7 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45310
45315
  aspectRatio: 1,
45311
45316
  hiddenCount: n === 3 ? t : 0
45312
45317
  }));
45313
- }, O8 = ({ position: e }) => /* @__PURE__ */ U(De.div, {
45318
+ }, k8 = ({ position: e }) => /* @__PURE__ */ U(De.div, {
45314
45319
  transition: {
45315
45320
  duration: .2,
45316
45321
  ease: "easeOut"
@@ -45329,8 +45334,8 @@ var Q6 = Ue("DataList", Z6), $6 = Object.assign(Q6, {
45329
45334
  });
45330
45335
  //#endregion
45331
45336
  //#region src/addons/ai/ai/F0AiChat/providers/useAiChatToggle.ts
45332
- function k8() {
45333
- let { enabled: e, open: t, setOpen: n, panelContent: r, clearPanelContent: i, restoringPanelContentId: a } = N4();
45337
+ function A8() {
45338
+ let { enabled: e, open: t, setOpen: n, panelContent: r, clearPanelContent: i, restoringPanelContentId: a } = P4();
45334
45339
  return {
45335
45340
  enabled: e,
45336
45341
  open: t && !r && !a,
@@ -45341,8 +45346,8 @@ function k8() {
45341
45346
  }
45342
45347
  //#endregion
45343
45348
  //#region src/addons/ai/ai/F0OneSwitch/F0OneSwitch.tsx
45344
- var A8 = ({ className: e, disabled: t, onVisible: n, tooltip: r, autoOpen: i = !1, onToggle: a, checked: o, onCheckedChange: s }) => {
45345
- let c = k8(), l = He(), u = s !== void 0, d = u ? !0 : c.enabled, f = u ? !!o : c.open, p = u ? s : c.setOpen, [m, h] = H(!1), [g, _] = H(!1), [v, y] = H(i), b = t && r?.whenDisabled ? r?.whenDisabled : r?.whenEnabled ?? l.ai.welcome, x = i ? v : g;
45349
+ var j8 = ({ className: e, disabled: t, onVisible: n, tooltip: r, autoOpen: i = !1, onToggle: a, checked: o, onCheckedChange: s }) => {
45350
+ let c = A8(), l = He(), u = s !== void 0, d = u ? !0 : c.enabled, f = u ? !!o : c.open, p = u ? s : c.setOpen, [m, h] = H(!1), [g, _] = H(!1), [v, y] = H(i), b = t && r?.whenDisabled ? r?.whenDisabled : r?.whenEnabled ?? l.ai.welcome, x = i ? v : g;
45346
45351
  return B(() => {
45347
45352
  i && y(!0);
45348
45353
  }, [i]), B(() => {
@@ -45391,7 +45396,7 @@ var A8 = ({ className: e, disabled: t, onVisible: n, tooltip: r, autoOpen: i = !
45391
45396
  };
45392
45397
  //#endregion
45393
45398
  //#region src/addons/ai/ai/F0CanvasPanel/F0CanvasPanel.tsx
45394
- function j8({ content: e, onClose: t, entities: n, side: r = "right" }) {
45399
+ function M8({ content: e, onClose: t, entities: n, side: r = "right" }) {
45395
45400
  let i = r === "left", a = e?.coversChat === !0, o = O(), [s, c] = H(0), l = V(e);
45396
45401
  B(() => {
45397
45402
  e && l.current && e !== l.current && c((e) => e + 1), l.current = e;
@@ -45451,6 +45456,6 @@ function j8({ content: e, onClose: t, entities: n, side: r = "right" }) {
45451
45456
  })
45452
45457
  }) : null });
45453
45458
  }
45454
- j8.displayName = "F0CanvasPanel";
45459
+ M8.displayName = "F0CanvasPanel";
45455
45460
  //#endregion
45456
- export { G0 as $, Zc as $a, np as $i, xG as $n, es as $o, tz as $r, zi as $s, rZ as $t, Q3 as A, Gl as Aa, VT as Ai, Kq as An, Us as Ao, PH as Ar, qa as As, $$ as At, x4 as B, gl as Ba, Bv as Bi, lq as Bn, ks as Bo, uH as Br, _a as Bs, CQ as Bt, m6 as C, Ud as Ca, eO as Ci, yJ as Cn, sc as Co, GH as Cr, no as Cs, j1 as Ct, c6 as D, Du as Da, lD as Di, Qq as Dn, Xs as Do, zH as Dr, Xa as Ds, f1 as Dt, s6 as E, Au as Ea, kD as Ei, gJ as En, Qs as Eo, LH as Er, Za as Es, h1 as Et, Q4 as F, El as Fa, Mx as Fi, vq as Fn, Is as Fo, CH as Fr, Oa as Fs, VQ as Ft, P2 as G, ol as Ga, Sg as Gi, rq as Gn, vs as Go, qV as Gr, fa as Gs, yQ as Gt, J2 as H, hl as Ha, hv as Hi, oq as Hn, xs as Ho, oH as Hr, ha as Hs, vQ as Ht, J4 as I, bl as Ia, cx as Ii, yq as In, Fs as Io, bH as Ir, Ta as Is, IQ as It, $0 as J, rl as Ja, qp as Ji, TG as Jn, us as Jo, OV as Jr, ra as Js, uZ as Jt, _2 as K, al as Ka, Uh as Ki, cq as Kn, gs as Ko, NV as Kr, da as Ks, cZ as Kt, F4 as L, Sl as La, ab as Li, _q as Ln, Ps as Lo, hH as Lr, Sa as Ls, AQ as Lt, k3 as M, yl as Ma, Wx as Mi, Sq as Mn, Vs as Mo, DH as Mr, za as Ms, J$ as Mt, O3 as N, Dl as Na, Ux as Ni, xq as Nn, Bs as No, EH as Nr, La as Ns, q$ as Nt, e6 as O, ql as Oa, RE as Oi, Lq as On, qs as Oo, RH as Or, Ya as Os, u1 as Ot, t3 as P, Tl as Pa, Lx as Pi, hq as Pn, Ls as Po, TH as Pr, ka as Ps, W$ as Pt, W0 as Q, Qc as Qa, mp as Qi, CG as Qn, ns as Qo, vz as Qr, Bi as Qs, dZ as Qt, P4 as R, xl as Ra, ty as Ri, bq as Rn, Ns as Ro, dH as Rr, xa as Rs, LQ as Rt, d6 as S, Kd as Sa, EO as Si, bJ as Sn, cc as So, JH as Sr, ro as Ss, M1 as St, u6 as T, Nu as Ta, HD as Ti, hJ as Tn, tc as To, HH as Tr, eo as Ts, v1 as Tt, q2 as U, fl as Ua, w_ as Ui, iq as Un, bs as Uo, KV as Ur, ma as Us, xQ as Ut, b4 as V, ml as Va, Pv as Vi, aq as Vn, Cs as Vo, sH as Vr, ga as Vs, SQ as Vt, R2 as W, sl as Wa, n_ as Wi, uq as Wn, ys as Wo, JV as Wr, pa as Ws, wQ as Wt, t2 as X, el as Xa, Tp as Xi, vG as Xn, cs as Xo, HB as Xr, Ji as Xs, aZ as Xt, n2 as Y, nl as Ya, Mp as Yi, EG as Yn, ls as Yo, qB as Yr, ta as Ys, pZ as Yt, K0 as Z, $c as Za, Ap as Zi, _G as Zn, as as Zo, VB as Zr, Ki as Zs, oZ as Zt, n8 as _, of as _a, ok as _i, jJ as _n, vc as _o, iU as _r, uo as _s, F1 as _t, E8 as a, Ff as aa, Ai as ac, yI as ai, tZ as an, Gc as ao, sG as ar, Ho as as, Q1 as at, b6 as b, Bd as ba, DO as bi, TJ as bn, dc as bo, XH as br, oo as bs, I1 as bt, S8 as c, bf as ca, Ei as cc, HF as ci, $X as cn, zc as co, YW as cr, ko as cs, $1 as ct, m8 as d, vf as da, oN as di, BY as dn, Mc as do, LU as dr, wo as ds, m0 as dt, Zf as ea, Ri as ec, RR as ei, YX as en, Xc as eo, bG as er, Qo as es, E0 as et, u8 as f, yf as fa, iN as fi, VY as fn, jc as fo, AU as fr, Co as fs, i0 as ft, a8 as g, cf as ga, Ek as gi, NJ as gn, Cc as go, sU as gr, mo as gs, H1 as gt, o8 as h, lf as ha, nA as hi, MJ as hn, wc as ho, dU as hr, _o as hs, W1 as ht, D8 as i, Xf as ia, ji as ic, bI as ii, nZ as in, Kc as io, mG as ir, Wo as is, n0 as it, A3 as j, Ll as ja, BT as ji, Tq as jn, Hs as jo, OH as jr, Ba as js, e1 as jt, $3 as k, Kl as ka, UT as ki, Gq as kn, Ks as ko, FH as kr, Ja as ks, s1 as kt, g8 as l, mf as la, Ti as lc, MF as li, RX as ln, Rc as lo, IU as lr, Oo as ls, g0 as lt, s8 as m, ff as ma, fA as mi, uY as mn, kc as mo, uU as mr, vo as ms, J1 as mt, A8 as n, G as na, Ni as nc, KL as ni, qX as nn, Jc as no, gG as nr, Jo as ns, b0 as nt, C8 as o, Pf as oa, ki as oc, vI as oi, KX as on, Hc as oo, JW as or, Ro as os, d0 as ot, c8 as p, pf as pa, VM as pi, IY as pn, Ac as po, gU as pr, yo as ps, X1 as pt, c2 as q, il as qa, Yp as qi, Y as qn, fs as qo, yV as qr, la as qs, lZ as qt, O8 as r, Kf as ra, Mi as rc, mI as ri, eZ as rn, qc as ro, hG as rr, Go as rs, u0 as rt, x8 as s, Sf as sa, Oi as sc, hI as si, GX as sn, Bc as so, XW as sr, Io as ss, p0 as st, j8 as t, ep as ta, Pi as tc, hR as ti, iZ as tn, Yc as to, SG as tr, Zo as ts, x0 as tt, l8 as u, hf as ua, Jr as uc, $N as ui, LX as un, Lc as uo, MU as ur, Do as us, _0 as ut, S6 as v, Jd as va, rk as vi, AJ as vn, _c as vo, rU as vr, co as vs, P1 as vt, p6 as w, ju as wa, VD as wi, _J as wn, ac as wo, KH as wr, to as ws, O1 as wt, h6 as x, Wd as xa, PO as xi, wJ as xn, lc as xo, ZH as xr, io as xs, N1 as xt, y6 as y, rf as ya, OO as yi, kJ as yn, fc as yo, QH as yr, so as ys, R1 as yt, N4 as z, vl as za, ey as zi, sq as zn, js as zo, lH as zr, ba as zs, bQ as zt };
45461
+ export { K0 as $, Zc as $a, np as $i, xG as $n, es as $o, tz as $r, zi as $s, rZ as $t, $3 as A, Gl as Aa, VT as Ai, Kq as An, Us as Ao, PH as Ar, qa as As, $$ as At, S4 as B, gl as Ba, Bv as Bi, lq as Bn, ks as Bo, uH as Br, _a as Bs, CQ as Bt, h6 as C, Ud as Ca, eO as Ci, yJ as Cn, sc as Co, GH as Cr, no as Cs, j1 as Ct, l6 as D, Du as Da, lD as Di, Qq as Dn, Xs as Do, zH as Dr, Xa as Ds, f1 as Dt, c6 as E, Au as Ea, kD as Ei, gJ as En, Qs as Eo, LH as Er, Za as Es, h1 as Et, $4 as F, El as Fa, Mx as Fi, vq as Fn, Is as Fo, CH as Fr, Oa as Fs, VQ as Ft, F2 as G, ol as Ga, Sg as Gi, rq as Gn, vs as Go, qV as Gr, fa as Gs, yQ as Gt, Y2 as H, hl as Ha, hv as Hi, oq as Hn, xs as Ho, oH as Hr, ha as Hs, vQ as Ht, Y4 as I, bl as Ia, cx as Ii, yq as In, Fs as Io, bH as Ir, Ta as Is, IQ as It, e2 as J, rl as Ja, qp as Ji, TG as Jn, us as Jo, OV as Jr, ra as Js, uZ as Jt, v2 as K, al as Ka, Uh as Ki, cq as Kn, gs as Ko, NV as Kr, da as Ks, cZ as Kt, I4 as L, Sl as La, ab as Li, _q as Ln, Ps as Lo, hH as Lr, Sa as Ls, AQ as Lt, A3 as M, yl as Ma, Wx as Mi, Sq as Mn, Vs as Mo, DH as Mr, za as Ms, J$ as Mt, k3 as N, Dl as Na, Ux as Ni, xq as Nn, Bs as No, EH as Nr, La as Ns, q$ as Nt, t6 as O, ql as Oa, RE as Oi, Lq as On, qs as Oo, RH as Or, Ya as Os, u1 as Ot, n3 as P, Tl as Pa, Lx as Pi, hq as Pn, Ls as Po, TH as Pr, ka as Ps, W$ as Pt, G0 as Q, Qc as Qa, mp as Qi, CG as Qn, ns as Qo, vz as Qr, Bi as Qs, dZ as Qt, F4 as R, xl as Ra, ty as Ri, bq as Rn, Ns as Ro, dH as Rr, xa as Rs, LQ as Rt, f6 as S, Kd as Sa, EO as Si, bJ as Sn, cc as So, JH as Sr, ro as Ss, M1 as St, d6 as T, Nu as Ta, HD as Ti, hJ as Tn, tc as To, HH as Tr, eo as Ts, v1 as Tt, J2 as U, fl as Ua, w_ as Ui, iq as Un, bs as Uo, KV as Ur, ma as Us, xQ as Ut, x4 as V, ml as Va, Pv as Vi, aq as Vn, Cs as Vo, sH as Vr, ga as Vs, SQ as Vt, z2 as W, sl as Wa, n_ as Wi, uq as Wn, ys as Wo, JV as Wr, pa as Ws, wQ as Wt, n2 as X, el as Xa, Tp as Xi, vG as Xn, cs as Xo, HB as Xr, Ji as Xs, aZ as Xt, r2 as Y, nl as Ya, Mp as Yi, EG as Yn, ls as Yo, qB as Yr, ta as Ys, pZ as Yt, q0 as Z, $c as Za, Ap as Zi, _G as Zn, as as Zo, VB as Zr, Ki as Zs, oZ as Zt, r8 as _, of as _a, ok as _i, jJ as _n, vc as _o, iU as _r, uo as _s, F1 as _t, D8 as a, Ff as aa, Ai as ac, yI as ai, tZ as an, Gc as ao, sG as ar, Ho as as, Q1 as at, x6 as b, Bd as ba, DO as bi, TJ as bn, dc as bo, XH as br, oo as bs, I1 as bt, C8 as c, bf as ca, Ei as cc, HF as ci, $X as cn, zc as co, YW as cr, ko as cs, $1 as ct, h8 as d, vf as da, oN as di, BY as dn, Mc as do, LU as dr, wo as ds, m0 as dt, Zf as ea, Ri as ec, RR as ei, YX as en, Xc as eo, bG as er, Qo as es, E0 as et, d8 as f, yf as fa, iN as fi, VY as fn, jc as fo, AU as fr, Co as fs, i0 as ft, o8 as g, cf as ga, Ek as gi, NJ as gn, Cc as go, sU as gr, mo as gs, H1 as gt, s8 as h, lf as ha, nA as hi, MJ as hn, wc as ho, dU as hr, _o as hs, W1 as ht, O8 as i, Xf as ia, ji as ic, bI as ii, nZ as in, Kc as io, mG as ir, Wo as is, n0 as it, j3 as j, Ll as ja, BT as ji, Tq as jn, Hs as jo, OH as jr, Ba as js, e1 as jt, e6 as k, Kl as ka, UT as ki, Gq as kn, Ks as ko, FH as kr, Ja as ks, s1 as kt, _8 as l, mf as la, Ti as lc, MF as li, RX as ln, Rc as lo, IU as lr, Oo as ls, g0 as lt, c8 as m, ff as ma, fA as mi, uY as mn, kc as mo, uU as mr, vo as ms, J1 as mt, j8 as n, G as na, Ni as nc, KL as ni, qX as nn, Jc as no, gG as nr, Jo as ns, b0 as nt, w8 as o, Pf as oa, ki as oc, vI as oi, KX as on, Hc as oo, JW as or, Ro as os, d0 as ot, l8 as p, pf as pa, VM as pi, IY as pn, Ac as po, gU as pr, yo as ps, X1 as pt, l2 as q, il as qa, Yp as qi, Y as qn, fs as qo, yV as qr, la as qs, lZ as qt, k8 as r, Kf as ra, Mi as rc, mI as ri, eZ as rn, qc as ro, hG as rr, Go as rs, u0 as rt, S8 as s, Sf as sa, Oi as sc, hI as si, GX as sn, Bc as so, XW as sr, Io as ss, p0 as st, M8 as t, ep as ta, Pi as tc, hR as ti, iZ as tn, Yc as to, SG as tr, Zo as ts, x0 as tt, u8 as u, hf as ua, Jr as uc, $N as ui, LX as un, Lc as uo, MU as ur, Do as us, _0 as ut, C6 as v, Jd as va, rk as vi, AJ as vn, _c as vo, rU as vr, co as vs, P1 as vt, m6 as w, ju as wa, VD as wi, _J as wn, ac as wo, KH as wr, to as ws, O1 as wt, g6 as x, Wd as xa, PO as xi, wJ as xn, lc as xo, ZH as xr, io as xs, N1 as xt, b6 as y, rf as ya, OO as yi, kJ as yn, fc as yo, QH as yr, so as ys, R1 as yt, P4 as z, vl as za, ey as zi, sq as zn, js as zo, lH as zr, ba as zs, bQ as zt };