pptx-svelte-viewer 4.14.0 → 4.16.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.
@@ -1,32 +1,421 @@
1
- import { E as V } from "./transition-overlay-DXc7Yys5.js";
2
- import { B as U, C as ce, D as pe, E as de, F as ve, G as A, H as ue, L as Y, O as he, R as $, S as _e, T as ge, U as xe, V as R, W as fe, _ as me, b as be, g as ye, h as ke, m as we, v as Ce, w as Me, x as ze, y as Se, z as Pe } from "./export-Xvai8No6.js";
1
+ import { E as V } from "./transition-overlay-CXN9o7WL.js";
2
+ import { B as ce, C as pe, E as de, F as ve, G as ue, H as Y, I as U, K as D, L as $, P as W, R as he, S as _e, T as ge, U as xe, V as fe, W as me, _ as be, b as ye, g as ke, h as we, m as Ce, v as Me, w as ze, x as Se, y as Pe, z as qe } from "./export-DNKVYduF.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as e from "svelte/internal/client";
5
- import { onMount as qe, untrack as O } from "svelte";
6
- var Te = /* @__PURE__ */ new Set([
5
+ import { onMount as Te, untrack as R } from "svelte";
6
+ var je = /* @__PURE__ */ new Set([
7
+ "$$slots",
8
+ "$$events",
9
+ "$$legacy"
10
+ ]);
11
+ function Ae(s, t) {
12
+ let a = e.rest_props(t, je);
13
+ const i = {
14
+ name: "bot",
15
+ size: 24,
16
+ node: [
17
+ ["path", { d: "M12 8V4H8" }],
18
+ ["rect", {
19
+ width: "16",
20
+ height: "12",
21
+ x: "4",
22
+ y: "8",
23
+ rx: "2"
24
+ }],
25
+ ["path", { d: "M2 14h2" }],
26
+ ["path", { d: "M20 14h2" }],
27
+ ["path", { d: "M15 13v2" }],
28
+ ["path", { d: "M9 13v2" }]
29
+ ]
30
+ };
31
+ D(s, e.spread_props(() => a, { get icon() {
32
+ return i;
33
+ } }));
34
+ }
35
+ var De = /* @__PURE__ */ new Set([
36
+ "$$slots",
37
+ "$$events",
38
+ "$$legacy"
39
+ ]);
40
+ function Ee(s, t) {
41
+ let a = e.rest_props(t, De);
42
+ const i = {
43
+ name: "chart-column",
44
+ size: 24,
45
+ node: [
46
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16" }],
47
+ ["path", { d: "M18 17V9" }],
48
+ ["path", { d: "M13 17V5" }],
49
+ ["path", { d: "M8 17v-3" }]
50
+ ],
51
+ aliases: ["bar-chart-3"]
52
+ };
53
+ D(s, e.spread_props(() => a, { get icon() {
54
+ return i;
55
+ } }));
56
+ }
57
+ var Ie = /* @__PURE__ */ new Set([
58
+ "$$slots",
59
+ "$$events",
60
+ "$$legacy"
61
+ ]);
62
+ function Z(s, t) {
63
+ let a = e.rest_props(t, Ie);
64
+ const i = {
65
+ name: "crosshair",
66
+ size: 24,
67
+ node: [
68
+ ["circle", {
69
+ cx: "12",
70
+ cy: "12",
71
+ r: "10"
72
+ }],
73
+ ["line", {
74
+ x1: "22",
75
+ x2: "18",
76
+ y1: "12",
77
+ y2: "12"
78
+ }],
79
+ ["line", {
80
+ x1: "6",
81
+ x2: "2",
82
+ y1: "12",
83
+ y2: "12"
84
+ }],
85
+ ["line", {
86
+ x1: "12",
87
+ x2: "12",
88
+ y1: "6",
89
+ y2: "2"
90
+ }],
91
+ ["line", {
92
+ x1: "12",
93
+ x2: "12",
94
+ y1: "22",
95
+ y2: "18"
96
+ }]
97
+ ]
98
+ };
99
+ D(s, e.spread_props(() => a, { get icon() {
100
+ return i;
101
+ } }));
102
+ }
103
+ var Le = /* @__PURE__ */ new Set([
104
+ "$$slots",
105
+ "$$events",
106
+ "$$legacy"
107
+ ]);
108
+ function Fe(s, t) {
109
+ let a = e.rest_props(t, Le);
110
+ const i = {
111
+ name: "film",
112
+ size: 24,
113
+ node: [
114
+ ["rect", {
115
+ width: "18",
116
+ height: "18",
117
+ x: "3",
118
+ y: "3",
119
+ rx: "2"
120
+ }],
121
+ ["path", { d: "M7 3v18" }],
122
+ ["path", { d: "M3 7.5h4" }],
123
+ ["path", { d: "M3 12h18" }],
124
+ ["path", { d: "M3 16.5h4" }],
125
+ ["path", { d: "M17 3v18" }],
126
+ ["path", { d: "M17 7.5h4" }],
127
+ ["path", { d: "M17 16.5h4" }]
128
+ ]
129
+ };
130
+ D(s, e.spread_props(() => a, { get icon() {
131
+ return i;
132
+ } }));
133
+ }
134
+ var He = /* @__PURE__ */ new Set([
135
+ "$$slots",
136
+ "$$events",
137
+ "$$legacy"
138
+ ]);
139
+ function Ve(s, t) {
140
+ let a = e.rest_props(t, He);
141
+ const i = {
142
+ name: "git-merge",
143
+ size: 24,
144
+ node: [
145
+ ["circle", {
146
+ cx: "18",
147
+ cy: "18",
148
+ r: "3"
149
+ }],
150
+ ["circle", {
151
+ cx: "6",
152
+ cy: "6",
153
+ r: "3"
154
+ }],
155
+ ["path", { d: "M6 21V9a9 9 0 0 0 9 9" }]
156
+ ]
157
+ };
158
+ D(s, e.spread_props(() => a, { get icon() {
159
+ return i;
160
+ } }));
161
+ }
162
+ var Ne = /* @__PURE__ */ new Set([
163
+ "$$slots",
164
+ "$$events",
165
+ "$$legacy"
166
+ ]);
167
+ function ee(s, t) {
168
+ let a = e.rest_props(t, Ne);
169
+ const i = {
170
+ name: "loader-circle",
171
+ size: 24,
172
+ node: [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]],
173
+ aliases: ["loader-2"]
174
+ };
175
+ D(s, e.spread_props(() => a, { get icon() {
176
+ return i;
177
+ } }));
178
+ }
179
+ var Be = /* @__PURE__ */ new Set([
180
+ "$$slots",
181
+ "$$events",
182
+ "$$legacy"
183
+ ]);
184
+ function Ue(s, t) {
185
+ let a = e.rest_props(t, Be);
186
+ const i = {
187
+ name: "message-square-plus",
188
+ size: 24,
189
+ node: [
190
+ ["path", { d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }],
191
+ ["path", { d: "M12 8v6" }],
192
+ ["path", { d: "M9 11h6" }]
193
+ ]
194
+ };
195
+ D(s, e.spread_props(() => a, { get icon() {
196
+ return i;
197
+ } }));
198
+ }
199
+ var Re = /* @__PURE__ */ new Set([
200
+ "$$slots",
201
+ "$$events",
202
+ "$$legacy"
203
+ ]);
204
+ function We(s, t) {
205
+ let a = e.rest_props(t, Re);
206
+ const i = {
207
+ name: "move",
208
+ size: 24,
209
+ node: [
210
+ ["path", { d: "M12 2v20" }],
211
+ ["path", { d: "m15 19-3 3-3-3" }],
212
+ ["path", { d: "m19 9 3 3-3 3" }],
213
+ ["path", { d: "M2 12h20" }],
214
+ ["path", { d: "m5 9-3 3 3 3" }],
215
+ ["path", { d: "m9 5 3-3 3 3" }]
216
+ ]
217
+ };
218
+ D(s, e.spread_props(() => a, { get icon() {
219
+ return i;
220
+ } }));
221
+ }
222
+ var Ke = /* @__PURE__ */ new Set([
223
+ "$$slots",
224
+ "$$events",
225
+ "$$legacy"
226
+ ]);
227
+ function Oe(s, t) {
228
+ let a = e.rest_props(t, Ke);
229
+ const i = {
230
+ name: "navigation",
231
+ size: 24,
232
+ node: [["polygon", { points: "3 11 22 2 13 21 11 13 3 11" }]]
233
+ };
234
+ D(s, e.spread_props(() => a, { get icon() {
235
+ return i;
236
+ } }));
237
+ }
238
+ var Ge = /* @__PURE__ */ new Set([
239
+ "$$slots",
240
+ "$$events",
241
+ "$$legacy"
242
+ ]);
243
+ function Xe(s, t) {
244
+ let a = e.rest_props(t, Ge);
245
+ const i = {
246
+ name: "palette",
247
+ size: 24,
248
+ node: [
249
+ ["path", { d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" }],
250
+ ["circle", {
251
+ cx: "13.5",
252
+ cy: "6.5",
253
+ r: ".5",
254
+ fill: "currentColor"
255
+ }],
256
+ ["circle", {
257
+ cx: "17.5",
258
+ cy: "10.5",
259
+ r: ".5",
260
+ fill: "currentColor"
261
+ }],
262
+ ["circle", {
263
+ cx: "6.5",
264
+ cy: "12.5",
265
+ r: ".5",
266
+ fill: "currentColor"
267
+ }],
268
+ ["circle", {
269
+ cx: "8.5",
270
+ cy: "7.5",
271
+ r: ".5",
272
+ fill: "currentColor"
273
+ }]
274
+ ]
275
+ };
276
+ D(s, e.spread_props(() => a, { get icon() {
277
+ return i;
278
+ } }));
279
+ }
280
+ var Ze = /* @__PURE__ */ new Set([
281
+ "$$slots",
282
+ "$$events",
283
+ "$$legacy"
284
+ ]);
285
+ function Je(s, t) {
286
+ let a = e.rest_props(t, Ze);
287
+ const i = {
288
+ name: "pin-off",
289
+ size: 24,
290
+ node: [
291
+ ["path", { d: "M12 17v5" }],
292
+ ["path", { d: "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }],
293
+ ["path", { d: "m2 2 20 20" }],
294
+ ["path", { d: "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]
295
+ ]
296
+ };
297
+ D(s, e.spread_props(() => a, { get icon() {
298
+ return i;
299
+ } }));
300
+ }
301
+ var Qe = /* @__PURE__ */ new Set([
302
+ "$$slots",
303
+ "$$events",
304
+ "$$legacy"
305
+ ]);
306
+ function Ye(s, t) {
307
+ let a = e.rest_props(t, Qe);
308
+ const i = {
309
+ name: "pin",
310
+ size: 24,
311
+ node: [["path", { d: "M12 17v5" }], ["path", { d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]]
312
+ };
313
+ D(s, e.spread_props(() => a, { get icon() {
314
+ return i;
315
+ } }));
316
+ }
317
+ var $e = /* @__PURE__ */ new Set([
318
+ "$$slots",
319
+ "$$events",
320
+ "$$legacy"
321
+ ]);
322
+ function et(s, t) {
323
+ let a = e.rest_props(t, $e);
324
+ const i = {
325
+ name: "send",
326
+ size: 24,
327
+ node: [["path", { d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" }], ["path", { d: "m21.854 2.147-10.94 10.939" }]]
328
+ };
329
+ D(s, e.spread_props(() => a, { get icon() {
330
+ return i;
331
+ } }));
332
+ }
333
+ var tt = /* @__PURE__ */ new Set([
334
+ "$$slots",
335
+ "$$events",
336
+ "$$legacy"
337
+ ]);
338
+ function at(s, t) {
339
+ let a = e.rest_props(t, tt);
340
+ const i = {
341
+ name: "shapes",
342
+ size: 24,
343
+ node: [
344
+ ["path", { d: "M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z" }],
345
+ ["rect", {
346
+ x: "3",
347
+ y: "14",
348
+ width: "7",
349
+ height: "7",
350
+ rx: "1"
351
+ }],
352
+ ["circle", {
353
+ cx: "17.5",
354
+ cy: "17.5",
355
+ r: "3.5"
356
+ }]
357
+ ]
358
+ };
359
+ D(s, e.spread_props(() => a, { get icon() {
360
+ return i;
361
+ } }));
362
+ }
363
+ var st = /* @__PURE__ */ new Set([
7
364
  "$$slots",
8
365
  "$$events",
9
366
  "$$legacy"
10
367
  ]);
11
- function ee(s, t) {
12
- let a = e.rest_props(t, Te);
368
+ function it(s, t) {
369
+ let a = e.rest_props(t, st);
13
370
  const i = {
14
- name: "loader-circle",
371
+ name: "square",
15
372
  size: 24,
16
- node: [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]],
17
- aliases: ["loader-2"]
373
+ node: [["rect", {
374
+ width: "18",
375
+ height: "18",
376
+ x: "3",
377
+ y: "3",
378
+ rx: "2"
379
+ }]]
18
380
  };
19
- A(s, e.spread_props(() => a, { get icon() {
381
+ D(s, e.spread_props(() => a, { get icon() {
20
382
  return i;
21
383
  } }));
22
384
  }
23
- var je = /* @__PURE__ */ new Set([
385
+ var rt = /* @__PURE__ */ new Set([
24
386
  "$$slots",
25
387
  "$$events",
26
388
  "$$legacy"
27
389
  ]);
28
- function W(s, t) {
29
- let a = e.rest_props(t, je);
390
+ function lt(s, t) {
391
+ let a = e.rest_props(t, rt);
392
+ const i = {
393
+ name: "table",
394
+ size: 24,
395
+ node: [
396
+ ["path", { d: "M12 3v18" }],
397
+ ["rect", {
398
+ width: "18",
399
+ height: "18",
400
+ x: "3",
401
+ y: "3",
402
+ rx: "2"
403
+ }],
404
+ ["path", { d: "M3 9h18" }],
405
+ ["path", { d: "M3 15h18" }]
406
+ ]
407
+ };
408
+ D(s, e.spread_props(() => a, { get icon() {
409
+ return i;
410
+ } }));
411
+ }
412
+ var nt = /* @__PURE__ */ new Set([
413
+ "$$slots",
414
+ "$$events",
415
+ "$$legacy"
416
+ ]);
417
+ function K(s, t) {
418
+ let a = e.rest_props(t, nt);
30
419
  const i = {
31
420
  name: "triangle-alert",
32
421
  size: 24,
@@ -37,14 +426,50 @@ function W(s, t) {
37
426
  ],
38
427
  aliases: ["alert-triangle"]
39
428
  };
40
- A(s, e.spread_props(() => a, { get icon() {
429
+ D(s, e.spread_props(() => a, { get icon() {
430
+ return i;
431
+ } }));
432
+ }
433
+ var ot = /* @__PURE__ */ new Set([
434
+ "$$slots",
435
+ "$$events",
436
+ "$$legacy"
437
+ ]);
438
+ function ct(s, t) {
439
+ let a = e.rest_props(t, ot);
440
+ const i = {
441
+ name: "user",
442
+ size: 24,
443
+ node: [["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", {
444
+ cx: "12",
445
+ cy: "7",
446
+ r: "4"
447
+ }]]
448
+ };
449
+ D(s, e.spread_props(() => a, { get icon() {
450
+ return i;
451
+ } }));
452
+ }
453
+ var pt = /* @__PURE__ */ new Set([
454
+ "$$slots",
455
+ "$$events",
456
+ "$$legacy"
457
+ ]);
458
+ function J(s, t) {
459
+ let a = e.rest_props(t, pt);
460
+ const i = {
461
+ name: "wrench",
462
+ size: 24,
463
+ node: [["path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]]
464
+ };
465
+ D(s, e.spread_props(() => a, { get icon() {
41
466
  return i;
42
467
  } }));
43
468
  }
44
- function Ae(s) {
469
+ function dt(s) {
45
470
  let t = e.state(e.proxy([]));
46
- const a = O(() => ye({
47
- deckId: Ce(s.bridge),
471
+ const a = R(() => Ce({
472
+ deckId: ke(s.bridge),
48
473
  store: s.store,
49
474
  getMessages: () => s.getMessages(),
50
475
  setMessages: s.setMessages,
@@ -53,7 +478,7 @@ function Ae(s) {
53
478
  e.set(t, d, !0);
54
479
  }
55
480
  }));
56
- let i = e.state(e.proxy(O(() => a.activeChatId())));
481
+ let i = e.state(e.proxy(R(() => a.activeChatId())));
57
482
  const r = () => {
58
483
  e.set(i, a.activeChatId(), !0);
59
484
  };
@@ -80,7 +505,7 @@ function Ae(s) {
80
505
  }
81
506
  };
82
507
  }
83
- var De = class {
508
+ var vt = class {
84
509
  #s = e.state("checking");
85
510
  get initState() {
86
511
  return e.get(this.#s);
@@ -126,11 +551,11 @@ var De = class {
126
551
  async init() {
127
552
  this.initState = "checking", this.initError = void 0;
128
553
  try {
129
- if (!await (this.#t.checkAvailable ?? _e)()) {
554
+ if (!await (this.#t.checkAvailable ?? ye)()) {
130
555
  this.initState = "unavailable";
131
556
  return;
132
557
  }
133
- const s = await (this.#t.createSession ?? me)(this.#t.bridge, this.#t.config);
558
+ const s = await (this.#t.createSession ?? we)(this.#t.bridge, this.#t.config);
134
559
  e.set(this.#a, s);
135
560
  const { Chat: t } = await import("@ai-sdk/svelte");
136
561
  e.set(this.#e, new t({
@@ -140,7 +565,7 @@ var De = class {
140
565
  onToolCall: async ({ toolCall: a }) => {
141
566
  const { toolName: i, toolCallId: r, input: d } = a, z = e.get(this.#e);
142
567
  if (!z) return;
143
- this.#t.onToolTarget?.(pe(i, d));
568
+ this.#t.onToolTarget?.(ge(i, d));
144
569
  const f = z.addToolOutput;
145
570
  try {
146
571
  f({
@@ -188,46 +613,8 @@ var De = class {
188
613
  acceptAllProposals() {
189
614
  e.get(this.#a)?.proposals.acceptAll(), this.refreshProposals();
190
615
  }
191
- }, Ee = /* @__PURE__ */ new Set([
192
- "$$slots",
193
- "$$events",
194
- "$$legacy"
195
- ]);
196
- function Ie(s, t) {
197
- let a = e.rest_props(t, Ee);
198
- const i = {
199
- name: "send",
200
- size: 24,
201
- node: [["path", { d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" }], ["path", { d: "m21.854 2.147-10.94 10.939" }]]
202
- };
203
- A(s, e.spread_props(() => a, { get icon() {
204
- return i;
205
- } }));
206
- }
207
- var Le = /* @__PURE__ */ new Set([
208
- "$$slots",
209
- "$$events",
210
- "$$legacy"
211
- ]);
212
- function Fe(s, t) {
213
- let a = e.rest_props(t, Le);
214
- const i = {
215
- name: "square",
216
- size: 24,
217
- node: [["rect", {
218
- width: "18",
219
- height: "18",
220
- x: "3",
221
- y: "3",
222
- rx: "2"
223
- }]]
224
- };
225
- A(s, e.spread_props(() => a, { get icon() {
226
- return i;
227
- } }));
228
- }
229
- var He = e.from_html('<button type="button" class="pptx-svelte-ai-send svelte-1tm1p3e"><!></button>'), Ve = e.from_html('<button type="button"><!></button>'), Ne = e.from_html('<div class="pptx-svelte-ai-composer svelte-1tm1p3e"><div class="pptx-svelte-ai-composer-box svelte-1tm1p3e"><textarea class="pptx-svelte-ai-input svelte-1tm1p3e" rows="1"></textarea> <!></div></div>');
230
- function Be(s, t) {
616
+ }, ut = e.from_html('<button type="button" class="pptx-svelte-ai-send svelte-1tm1p3e"><!></button>'), ht = e.from_html('<button type="button"><!></button>'), _t = e.from_html('<div class="pptx-svelte-ai-composer svelte-1tm1p3e"><div class="pptx-svelte-ai-composer-box svelte-1tm1p3e"><textarea class="pptx-svelte-ai-input svelte-1tm1p3e" rows="1"></textarea> <!></div></div>');
617
+ function gt(s, t) {
231
618
  e.push(t, !0);
232
619
  const a = e.prop(t, "prefillText", 3, ""), i = e.prop(t, "prefillNonce", 3, 0), r = V();
233
620
  let d = e.state("");
@@ -243,11 +630,11 @@ function Be(s, t) {
243
630
  function m(u) {
244
631
  u.key === "Enter" && !u.shiftKey && (u.preventDefault(), y());
245
632
  }
246
- var b = Ne(), x = e.child(b), g = e.child(x);
633
+ var b = _t(), x = e.child(b), g = e.child(x);
247
634
  e.remove_textarea_child(g), e.bind_this(g, (u) => e.set(f, u), () => e.get(f));
248
635
  var k = e.sibling(g, 2), w = (u) => {
249
- var o = He(), l = e.child(o);
250
- Fe(l, {
636
+ var o = ut(), l = e.child(o);
637
+ it(l, {
251
638
  size: 16,
252
639
  "aria-hidden": "true"
253
640
  }), e.reset(o), e.template_effect((v, C) => {
@@ -256,10 +643,10 @@ function Be(s, t) {
256
643
  t.onstop?.apply(this, v);
257
644
  }), e.append(u, o);
258
645
  }, T = (u) => {
259
- var o = Ve();
646
+ var o = ht();
260
647
  let l;
261
648
  var v = e.child(o);
262
- Ie(v, {
649
+ et(v, {
263
650
  size: 16,
264
651
  "aria-hidden": "true"
265
652
  }), e.reset(o), e.template_effect((C, P) => {
@@ -273,12 +660,12 @@ function Be(s, t) {
273
660
  }, [() => r("pptx.ai.placeholder"), () => r("pptx.ai.placeholder")]), e.delegated("keydown", g, m), e.bind_value(g, () => e.get(d), (u) => e.set(d, u)), e.append(s, b), e.pop();
274
661
  }
275
662
  e.delegate(["keydown", "click"]);
276
- var Ue = e.from_html('<div class="pptx-svelte-ai-error svelte-1vkckow" role="alert"><!> <div class="pptx-svelte-ai-error-body svelte-1vkckow"><div class="pptx-svelte-ai-error-title svelte-1vkckow"> </div> <div class="pptx-svelte-ai-error-msg svelte-1vkckow"> </div></div> <button type="button" class="pptx-svelte-ai-error-retry svelte-1vkckow"> </button></div>');
277
- function Oe(s, t) {
663
+ var xt = e.from_html('<div class="pptx-svelte-ai-error svelte-1vkckow" role="alert"><!> <div class="pptx-svelte-ai-error-body svelte-1vkckow"><div class="pptx-svelte-ai-error-title svelte-1vkckow"> </div> <div class="pptx-svelte-ai-error-msg svelte-1vkckow"> </div></div> <button type="button" class="pptx-svelte-ai-error-retry svelte-1vkckow"> </button></div>');
664
+ function ft(s, t) {
278
665
  e.push(t, !0);
279
666
  const a = V();
280
- var i = Ue(), r = e.child(i);
281
- W(r, {
667
+ var i = xt(), r = e.child(i);
668
+ K(r, {
282
669
  size: 14,
283
670
  "aria-hidden": "true"
284
671
  });
@@ -292,145 +679,34 @@ function Oe(s, t) {
292
679
  }), e.append(s, i), e.pop();
293
680
  }
294
681
  e.delegate(["click"]);
295
- var Re = /* @__PURE__ */ new Set([
296
- "$$slots",
297
- "$$events",
298
- "$$legacy"
299
- ]);
300
- function Z(s, t) {
301
- let a = e.rest_props(t, Re);
302
- const i = {
303
- name: "crosshair",
304
- size: 24,
305
- node: [
306
- ["circle", {
307
- cx: "12",
308
- cy: "12",
309
- r: "10"
310
- }],
311
- ["line", {
312
- x1: "22",
313
- x2: "18",
314
- y1: "12",
315
- y2: "12"
316
- }],
317
- ["line", {
318
- x1: "6",
319
- x2: "2",
320
- y1: "12",
321
- y2: "12"
322
- }],
323
- ["line", {
324
- x1: "12",
325
- x2: "12",
326
- y1: "6",
327
- y2: "2"
328
- }],
329
- ["line", {
330
- x1: "12",
331
- x2: "12",
332
- y1: "22",
333
- y2: "18"
334
- }]
335
- ]
336
- };
337
- A(s, e.spread_props(() => a, { get icon() {
338
- return i;
339
- } }));
340
- }
341
- var We = /* @__PURE__ */ new Set([
342
- "$$slots",
343
- "$$events",
344
- "$$legacy"
345
- ]);
346
- function Ge(s, t) {
347
- let a = e.rest_props(t, We);
348
- const i = {
349
- name: "git-merge",
350
- size: 24,
351
- node: [
352
- ["circle", {
353
- cx: "18",
354
- cy: "18",
355
- r: "3"
356
- }],
357
- ["circle", {
358
- cx: "6",
359
- cy: "6",
360
- r: "3"
361
- }],
362
- ["path", { d: "M6 21V9a9 9 0 0 0 9 9" }]
363
- ]
364
- };
365
- A(s, e.spread_props(() => a, { get icon() {
366
- return i;
367
- } }));
368
- }
369
- var Ke = /* @__PURE__ */ new Set([
370
- "$$slots",
371
- "$$events",
372
- "$$legacy"
373
- ]);
374
- function Xe(s, t) {
375
- let a = e.rest_props(t, Ke);
376
- const i = {
377
- name: "pin",
378
- size: 24,
379
- node: [["path", { d: "M12 17v5" }], ["path", { d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]]
380
- };
381
- A(s, e.spread_props(() => a, { get icon() {
382
- return i;
383
- } }));
384
- }
385
- var Ze = /* @__PURE__ */ new Set([
386
- "$$slots",
387
- "$$events",
388
- "$$legacy"
389
- ]);
390
- function Je(s, t) {
391
- let a = e.rest_props(t, Ze);
392
- const i = {
393
- name: "pin-off",
394
- size: 24,
395
- node: [
396
- ["path", { d: "M12 17v5" }],
397
- ["path", { d: "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }],
398
- ["path", { d: "m2 2 20 20" }],
399
- ["path", { d: "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]
400
- ]
401
- };
402
- A(s, e.spread_props(() => a, { get icon() {
403
- return i;
404
- } }));
405
- }
406
- var Qe = e.from_html('<span><span class="pptx-svelte-ai-focus-chip-label svelte-kjj0i7"> </span></span>'), Ye = e.from_html('<span class="pptx-svelte-ai-focus-pinned svelte-kjj0i7"> </span>'), $e = e.from_html('<button type="button" class="pptx-svelte-ai-focus-merge svelte-kjj0i7"><!> </button>'), J = e.from_html('<button type="button" class="pptx-svelte-ai-focus-btn svelte-kjj0i7"><!></button>'), et = e.from_html('<div class="pptx-svelte-ai-focus-hint svelte-kjj0i7"><!> <span class="svelte-kjj0i7"> </span> <button type="button" class="pptx-svelte-ai-focus-done svelte-kjj0i7"> </button></div>'), tt = e.from_html('<div class="pptx-svelte-ai-focus svelte-kjj0i7"><div class="pptx-svelte-ai-focus-row svelte-kjj0i7"><span class="pptx-svelte-ai-focus-scope svelte-kjj0i7"> </span> <!> <!> <div class="pptx-svelte-ai-focus-actions svelte-kjj0i7"><!> <button type="button"><!></button> <!></div></div> <!></div>');
407
- function at(s, t) {
682
+ var mt = e.from_html('<span><span class="pptx-svelte-ai-focus-chip-label svelte-kjj0i7"> </span></span>'), bt = e.from_html('<span class="pptx-svelte-ai-focus-pinned svelte-kjj0i7"> </span>'), yt = e.from_html('<button type="button" class="pptx-svelte-ai-focus-merge svelte-kjj0i7"><!> </button>'), Q = e.from_html('<button type="button" class="pptx-svelte-ai-focus-btn svelte-kjj0i7"><!></button>'), kt = e.from_html('<div class="pptx-svelte-ai-focus-hint svelte-kjj0i7"><!> <span class="svelte-kjj0i7"> </span> <button type="button" class="pptx-svelte-ai-focus-done svelte-kjj0i7"> </button></div>'), wt = e.from_html('<div class="pptx-svelte-ai-focus svelte-kjj0i7"><div class="pptx-svelte-ai-focus-row svelte-kjj0i7"><span class="pptx-svelte-ai-focus-scope svelte-kjj0i7"> </span> <!> <!> <div class="pptx-svelte-ai-focus-actions svelte-kjj0i7"><!> <button type="button"><!></button> <!></div></div> <!></div>');
683
+ function Ct(s, t) {
408
684
  e.push(t, !0);
409
- const a = V(), i = e.derived(() => be(t.targets, t.slides)), r = e.derived(() => ce(t.targets, t.slides));
410
- var d = tt(), z = e.child(d), f = e.child(z), _ = e.only_child(f, !0), y = e.sibling(f, 2);
685
+ const a = V(), i = e.derived(() => Me(t.targets, t.slides)), r = e.derived(() => Se(t.targets, t.slides));
686
+ var d = wt(), z = e.child(d), f = e.child(z), _ = e.only_child(f, !0), y = e.sibling(f, 2);
411
687
  e.each(y, 17, () => e.get(i), (n) => n.key, (n, c) => {
412
- var M = Qe();
688
+ var M = mt();
413
689
  let S;
414
- var D = e.child(M), q = e.only_child(D, !0);
690
+ var A = e.child(M), q = e.only_child(A, !0);
415
691
  e.reset(M), e.template_effect(() => {
416
692
  S = e.set_class(M, 1, "pptx-svelte-ai-focus-chip svelte-kjj0i7", null, S, { "is-active": t.hasPicks || t.isPinned }), e.set_attribute(M, "title", e.get(c).title), e.set_text(q, e.get(c).label);
417
693
  }), e.append(n, M);
418
694
  });
419
695
  var m = e.sibling(y, 2), b = (n) => {
420
- var c = Ye(), M = e.only_child(c, !0);
696
+ var c = bt(), M = e.only_child(c, !0);
421
697
  e.template_effect((S) => e.set_text(M, S), [() => a("pptx.ai.pinnedFocus")]), e.append(n, c);
422
698
  };
423
699
  e.if(m, (n) => {
424
700
  t.isPinned && n(b);
425
701
  });
426
702
  var x = e.sibling(m, 2), g = e.child(x), k = (n) => {
427
- var c = $e(), M = e.child(c);
428
- Ge(M, {
703
+ var c = yt(), M = e.child(c);
704
+ Ve(M, {
429
705
  size: 12,
430
706
  "aria-hidden": "true"
431
707
  });
432
708
  var S = e.sibling(M);
433
- e.reset(c), e.template_effect((D) => e.set_text(S, ` ${D ?? ""}`), [() => a("pptx.ai.mergeSelectedTables")]), e.delegated("click", c, () => t.onsenddirective(Me(e.get(r).slideIndex, e.get(r).elementIdA, e.get(r).elementIdB))), e.append(n, c);
709
+ e.reset(c), e.template_effect((A) => e.set_text(S, ` ${A ?? ""}`), [() => a("pptx.ai.mergeSelectedTables")]), e.delegated("click", c, () => t.onsenddirective(_e(e.get(r).slideIndex, e.get(r).elementIdA, e.get(r).elementIdB))), e.append(n, c);
434
710
  };
435
711
  e.if(g, (n) => {
436
712
  e.get(r) && n(k);
@@ -443,29 +719,29 @@ function at(s, t) {
443
719
  "aria-hidden": "true"
444
720
  }), e.reset(w);
445
721
  var o = e.sibling(w, 2), l = (n) => {
446
- var c = J(), M = e.child(c);
447
- R(M, {
722
+ var c = Q(), M = e.child(c);
723
+ W(M, {
448
724
  size: 14,
449
725
  "aria-hidden": "true"
450
- }), e.reset(c), e.template_effect((S, D) => {
451
- e.set_attribute(c, "title", S), e.set_attribute(c, "aria-label", D);
726
+ }), e.reset(c), e.template_effect((S, A) => {
727
+ e.set_attribute(c, "title", S), e.set_attribute(c, "aria-label", A);
452
728
  }, [() => a("pptx.ai.pickClear"), () => a("pptx.ai.pickClear")]), e.delegated("click", c, function(...S) {
453
729
  t.onclearpicks?.apply(this, S);
454
730
  }), e.append(n, c);
455
731
  }, v = (n) => {
456
- var c = J(), M = e.child(c), S = (q) => {
732
+ var c = Q(), M = e.child(c), S = (q) => {
457
733
  Je(q, {
458
734
  size: 14,
459
735
  "aria-hidden": "true"
460
736
  });
461
- }, D = (q) => {
462
- Xe(q, {
737
+ }, A = (q) => {
738
+ Ye(q, {
463
739
  size: 14,
464
740
  "aria-hidden": "true"
465
741
  });
466
742
  };
467
743
  e.if(M, (q) => {
468
- t.isPinned ? q(S) : q(D, -1);
744
+ t.isPinned ? q(S) : q(A, -1);
469
745
  }), e.reset(c), e.template_effect((q, h) => {
470
746
  e.set_attribute(c, "title", q), e.set_attribute(c, "aria-label", h);
471
747
  }, [() => t.isPinned ? a("pptx.ai.clearFocus") : a("pptx.ai.pinFocus"), () => t.isPinned ? a("pptx.ai.clearFocus") : a("pptx.ai.pinFocus")]), e.delegated("click", c, function(...q) {
@@ -476,15 +752,15 @@ function at(s, t) {
476
752
  t.hasPicks ? n(l) : n(v, -1);
477
753
  }), e.reset(x), e.reset(z);
478
754
  var C = e.sibling(z, 2), P = (n) => {
479
- var c = et(), M = e.child(c);
755
+ var c = kt(), M = e.child(c);
480
756
  Z(M, {
481
757
  size: 14,
482
758
  class: "pptx-svelte-ai-focus-hint-ic",
483
759
  "aria-hidden": "true"
484
760
  });
485
- var S = e.sibling(M, 2), D = e.only_child(S, !0), q = e.sibling(S, 2), h = e.only_child(q, !0);
761
+ var S = e.sibling(M, 2), A = e.only_child(S, !0), q = e.sibling(S, 2), h = e.only_child(q, !0);
486
762
  e.reset(c), e.template_effect((p, j) => {
487
- e.set_text(D, p), e.set_text(h, j);
763
+ e.set_text(A, p), e.set_text(h, j);
488
764
  }, [() => a("pptx.ai.pickElementHint"), () => a("pptx.ai.pickDone")]), e.delegated("click", q, function(...p) {
489
765
  t.onstoppick?.apply(this, p);
490
766
  }), e.append(n, c);
@@ -501,29 +777,9 @@ function at(s, t) {
501
777
  (t.pickMode ? t.onstoppick : t.onstartpick)?.apply(this, n);
502
778
  }), e.append(s, d), e.pop();
503
779
  }
504
- e.delegate(["click"]);
505
- var st = /* @__PURE__ */ new Set([
506
- "$$slots",
507
- "$$events",
508
- "$$legacy"
509
- ]);
510
- function it(s, t) {
511
- let a = e.rest_props(t, st);
512
- const i = {
513
- name: "message-square-plus",
514
- size: 24,
515
- node: [
516
- ["path", { d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }],
517
- ["path", { d: "M12 8v6" }],
518
- ["path", { d: "M9 11h6" }]
519
- ]
520
- };
521
- A(s, e.spread_props(() => a, { get icon() {
522
- return i;
523
- } }));
524
- }
525
- var rt = e.from_html('<p class="pptx-svelte-ai-history-empty svelte-1i56i9n"> </p>'), lt = e.from_html('<li class="pptx-svelte-ai-history-row svelte-1i56i9n"><button type="button"><!> <span class="pptx-svelte-ai-history-text svelte-1i56i9n"><span class="pptx-svelte-ai-history-name svelte-1i56i9n"> </span> <span class="pptx-svelte-ai-history-meta svelte-1i56i9n"> </span></span></button> <button type="button" class="pptx-svelte-ai-history-delete svelte-1i56i9n"><!></button></li>'), nt = e.from_html('<ul class="pptx-svelte-ai-history-list svelte-1i56i9n"></ul>'), ot = e.from_html('<div class="pptx-svelte-ai-history-menu svelte-1i56i9n"><div class="pptx-svelte-ai-history-head svelte-1i56i9n"><span class="pptx-svelte-ai-history-title svelte-1i56i9n"> </span> <button type="button" class="pptx-svelte-ai-history-new svelte-1i56i9n"><!> </button></div> <!> <p class="pptx-svelte-ai-history-hint svelte-1i56i9n"> </p></div>'), ct = e.from_html('<div class="pptx-svelte-ai-history svelte-1i56i9n"><div class="pptx-svelte-ai-history-bar svelte-1i56i9n"><button type="button" class="pptx-svelte-ai-chats-btn svelte-1i56i9n"><!> </button> <div class="pptx-svelte-ai-history-actions svelte-1i56i9n"><button type="button" class="pptx-svelte-ai-history-icon-btn svelte-1i56i9n"><!></button> <button type="button" class="pptx-svelte-ai-history-icon-btn svelte-1i56i9n"><!></button></div></div> <!></div>');
526
- function pt(s, t) {
780
+ e.delegate(["click"]);
781
+ var Mt = e.from_html('<p class="pptx-svelte-ai-history-empty svelte-1i56i9n"> </p>'), zt = e.from_html('<li class="pptx-svelte-ai-history-row svelte-1i56i9n"><button type="button"><!> <span class="pptx-svelte-ai-history-text svelte-1i56i9n"><span class="pptx-svelte-ai-history-name svelte-1i56i9n"> </span> <span class="pptx-svelte-ai-history-meta svelte-1i56i9n"> </span></span></button> <button type="button" class="pptx-svelte-ai-history-delete svelte-1i56i9n"><!></button></li>'), St = e.from_html('<ul class="pptx-svelte-ai-history-list svelte-1i56i9n"></ul>'), Pt = e.from_html('<div class="pptx-svelte-ai-history-menu svelte-1i56i9n"><div class="pptx-svelte-ai-history-head svelte-1i56i9n"><span class="pptx-svelte-ai-history-title svelte-1i56i9n"> </span> <button type="button" class="pptx-svelte-ai-history-new svelte-1i56i9n"><!> </button></div> <!> <p class="pptx-svelte-ai-history-hint svelte-1i56i9n"> </p></div>'), qt = e.from_html('<div class="pptx-svelte-ai-history svelte-1i56i9n"><div class="pptx-svelte-ai-history-bar svelte-1i56i9n"><button type="button" class="pptx-svelte-ai-chats-btn svelte-1i56i9n"><!> </button> <div class="pptx-svelte-ai-history-actions svelte-1i56i9n"><button type="button" class="pptx-svelte-ai-history-icon-btn svelte-1i56i9n"><!></button> <button type="button" class="pptx-svelte-ai-history-icon-btn svelte-1i56i9n"><!></button></div></div> <!></div>');
782
+ function Tt(s, t) {
527
783
  e.push(t, !0);
528
784
  const a = V();
529
785
  let i = e.state(!1), r = e.state(void 0);
@@ -531,15 +787,15 @@ function pt(s, t) {
531
787
  e.get(i) && e.get(r) && !e.get(r).contains(o.target) && e.set(i, !1);
532
788
  }
533
789
  e.user_effect(() => (document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d)));
534
- var z = ct(), f = e.child(z), _ = e.child(f), y = e.child(_);
535
- ke(y, {
790
+ var z = qt(), f = e.child(z), _ = e.child(f), y = e.child(_);
791
+ qe(y, {
536
792
  size: 14,
537
793
  "aria-hidden": "true"
538
794
  });
539
795
  var m = e.sibling(y);
540
796
  e.reset(_);
541
797
  var b = e.sibling(_, 2), x = e.child(b), g = e.child(x);
542
- it(g, {
798
+ Ue(g, {
543
799
  size: 14,
544
800
  "aria-hidden": "true"
545
801
  }), e.reset(x);
@@ -549,28 +805,28 @@ function pt(s, t) {
549
805
  "aria-hidden": "true"
550
806
  }), e.reset(k), e.reset(b), e.reset(f);
551
807
  var T = e.sibling(f, 2), u = (o) => {
552
- var l = ot(), v = e.child(l), C = e.child(v), P = e.only_child(C, !0), n = e.sibling(C, 2), c = e.child(n);
553
- xe(c, {
808
+ var l = Pt(), v = e.child(l), C = e.child(v), P = e.only_child(C, !0), n = e.sibling(C, 2), c = e.child(n);
809
+ me(c, {
554
810
  size: 12,
555
811
  "aria-hidden": "true"
556
812
  });
557
813
  var M = e.sibling(c);
558
814
  e.reset(n), e.reset(v);
559
- var S = e.sibling(v, 2), D = (j) => {
560
- var E = rt(), L = e.only_child(E, !0);
815
+ var S = e.sibling(v, 2), A = (j) => {
816
+ var E = Mt(), L = e.only_child(E, !0);
561
817
  e.template_effect((F) => e.set_text(L, F), [() => a("pptx.ai.historyEmpty")]), e.append(j, E);
562
818
  }, q = (j) => {
563
- var E = nt();
819
+ var E = St();
564
820
  e.each(E, 21, () => t.chats, (L) => L.id, (L, F) => {
565
- var I = lt(), H = e.child(I);
821
+ var I = zt(), H = e.child(I);
566
822
  let N;
567
- var G = e.child(H);
568
- fe(G, {
823
+ var O = e.child(H);
824
+ ue(O, {
569
825
  size: 14,
570
826
  "aria-hidden": "true"
571
827
  });
572
- var K = e.sibling(G, 2), X = e.child(K), te = e.only_child(X, !0), ae = e.sibling(X, 2), se = e.only_child(ae, !0);
573
- e.reset(K), e.reset(H);
828
+ var G = e.sibling(O, 2), X = e.child(G), te = e.only_child(X, !0), ae = e.sibling(X, 2), se = e.only_child(ae, !0);
829
+ e.reset(G), e.reset(H);
574
830
  var B = e.sibling(H, 2), ie = e.child(B);
575
831
  U(ie, {
576
832
  size: 14,
@@ -588,7 +844,7 @@ function pt(s, t) {
588
844
  }), e.reset(E), e.append(j, E);
589
845
  };
590
846
  e.if(S, (j) => {
591
- t.chats.length === 0 ? j(D) : j(q, -1);
847
+ t.chats.length === 0 ? j(A) : j(q, -1);
592
848
  });
593
849
  var h = e.sibling(S, 2), p = e.only_child(h, !0);
594
850
  e.reset(l), e.template_effect((j, E, L) => {
@@ -614,320 +870,26 @@ function pt(s, t) {
614
870
  ]), e.delegated("click", _, () => e.set(i, !e.get(i))), e.delegated("click", x, () => t.onnewchat()), e.delegated("click", k, () => t.onclearchat()), e.append(s, z), e.pop();
615
871
  }
616
872
  e.delegate(["click"]);
617
- var dt = /* @__PURE__ */ new Set([
618
- "$$slots",
619
- "$$events",
620
- "$$legacy"
621
- ]);
622
- function vt(s, t) {
623
- let a = e.rest_props(t, dt);
624
- const i = {
625
- name: "bot",
626
- size: 24,
627
- node: [
628
- ["path", { d: "M12 8V4H8" }],
629
- ["rect", {
630
- width: "16",
631
- height: "12",
632
- x: "4",
633
- y: "8",
634
- rx: "2"
635
- }],
636
- ["path", { d: "M2 14h2" }],
637
- ["path", { d: "M20 14h2" }],
638
- ["path", { d: "M15 13v2" }],
639
- ["path", { d: "M9 13v2" }]
640
- ]
641
- };
642
- A(s, e.spread_props(() => a, { get icon() {
643
- return i;
644
- } }));
645
- }
646
- var ut = /* @__PURE__ */ new Set([
647
- "$$slots",
648
- "$$events",
649
- "$$legacy"
650
- ]);
651
- function ht(s, t) {
652
- let a = e.rest_props(t, ut);
653
- const i = {
654
- name: "user",
655
- size: 24,
656
- node: [["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", {
657
- cx: "12",
658
- cy: "7",
659
- r: "4"
660
- }]]
661
- };
662
- A(s, e.spread_props(() => a, { get icon() {
663
- return i;
664
- } }));
665
- }
666
- var _t = /* @__PURE__ */ new Set([
667
- "$$slots",
668
- "$$events",
669
- "$$legacy"
670
- ]);
671
- function gt(s, t) {
672
- let a = e.rest_props(t, _t);
673
- const i = {
674
- name: "chart-column",
675
- size: 24,
676
- node: [
677
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16" }],
678
- ["path", { d: "M18 17V9" }],
679
- ["path", { d: "M13 17V5" }],
680
- ["path", { d: "M8 17v-3" }]
681
- ],
682
- aliases: ["bar-chart-3"]
683
- };
684
- A(s, e.spread_props(() => a, { get icon() {
685
- return i;
686
- } }));
687
- }
688
- var xt = /* @__PURE__ */ new Set([
689
- "$$slots",
690
- "$$events",
691
- "$$legacy"
692
- ]);
693
- function ft(s, t) {
694
- let a = e.rest_props(t, xt);
695
- const i = {
696
- name: "film",
697
- size: 24,
698
- node: [
699
- ["rect", {
700
- width: "18",
701
- height: "18",
702
- x: "3",
703
- y: "3",
704
- rx: "2"
705
- }],
706
- ["path", { d: "M7 3v18" }],
707
- ["path", { d: "M3 7.5h4" }],
708
- ["path", { d: "M3 12h18" }],
709
- ["path", { d: "M3 16.5h4" }],
710
- ["path", { d: "M17 3v18" }],
711
- ["path", { d: "M17 7.5h4" }],
712
- ["path", { d: "M17 16.5h4" }]
713
- ]
714
- };
715
- A(s, e.spread_props(() => a, { get icon() {
716
- return i;
717
- } }));
718
- }
719
- var mt = /* @__PURE__ */ new Set([
720
- "$$slots",
721
- "$$events",
722
- "$$legacy"
723
- ]);
724
- function bt(s, t) {
725
- let a = e.rest_props(t, mt);
726
- const i = {
727
- name: "layout-template",
728
- size: 24,
729
- node: [
730
- ["rect", {
731
- width: "18",
732
- height: "7",
733
- x: "3",
734
- y: "3",
735
- rx: "1"
736
- }],
737
- ["rect", {
738
- width: "9",
739
- height: "7",
740
- x: "3",
741
- y: "14",
742
- rx: "1"
743
- }],
744
- ["rect", {
745
- width: "5",
746
- height: "7",
747
- x: "16",
748
- y: "14",
749
- rx: "1"
750
- }]
751
- ]
752
- };
753
- A(s, e.spread_props(() => a, { get icon() {
754
- return i;
755
- } }));
756
- }
757
- var yt = /* @__PURE__ */ new Set([
758
- "$$slots",
759
- "$$events",
760
- "$$legacy"
761
- ]);
762
- function kt(s, t) {
763
- let a = e.rest_props(t, yt);
764
- const i = {
765
- name: "move",
766
- size: 24,
767
- node: [
768
- ["path", { d: "M12 2v20" }],
769
- ["path", { d: "m15 19-3 3-3-3" }],
770
- ["path", { d: "m19 9 3 3-3 3" }],
771
- ["path", { d: "M2 12h20" }],
772
- ["path", { d: "m5 9-3 3 3 3" }],
773
- ["path", { d: "m9 5 3-3 3 3" }]
774
- ]
775
- };
776
- A(s, e.spread_props(() => a, { get icon() {
777
- return i;
778
- } }));
779
- }
780
- var wt = /* @__PURE__ */ new Set([
781
- "$$slots",
782
- "$$events",
783
- "$$legacy"
784
- ]);
785
- function Ct(s, t) {
786
- let a = e.rest_props(t, wt);
787
- const i = {
788
- name: "navigation",
789
- size: 24,
790
- node: [["polygon", { points: "3 11 22 2 13 21 11 13 3 11" }]]
791
- };
792
- A(s, e.spread_props(() => a, { get icon() {
793
- return i;
794
- } }));
795
- }
796
- var Mt = /* @__PURE__ */ new Set([
797
- "$$slots",
798
- "$$events",
799
- "$$legacy"
800
- ]);
801
- function zt(s, t) {
802
- let a = e.rest_props(t, Mt);
803
- const i = {
804
- name: "palette",
805
- size: 24,
806
- node: [
807
- ["path", { d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" }],
808
- ["circle", {
809
- cx: "13.5",
810
- cy: "6.5",
811
- r: ".5",
812
- fill: "currentColor"
813
- }],
814
- ["circle", {
815
- cx: "17.5",
816
- cy: "10.5",
817
- r: ".5",
818
- fill: "currentColor"
819
- }],
820
- ["circle", {
821
- cx: "6.5",
822
- cy: "12.5",
823
- r: ".5",
824
- fill: "currentColor"
825
- }],
826
- ["circle", {
827
- cx: "8.5",
828
- cy: "7.5",
829
- r: ".5",
830
- fill: "currentColor"
831
- }]
832
- ]
833
- };
834
- A(s, e.spread_props(() => a, { get icon() {
835
- return i;
836
- } }));
837
- }
838
- var St = /* @__PURE__ */ new Set([
839
- "$$slots",
840
- "$$events",
841
- "$$legacy"
842
- ]);
843
- function Pt(s, t) {
844
- let a = e.rest_props(t, St);
845
- const i = {
846
- name: "shapes",
847
- size: 24,
848
- node: [
849
- ["path", { d: "M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z" }],
850
- ["rect", {
851
- x: "3",
852
- y: "14",
853
- width: "7",
854
- height: "7",
855
- rx: "1"
856
- }],
857
- ["circle", {
858
- cx: "17.5",
859
- cy: "17.5",
860
- r: "3.5"
861
- }]
862
- ]
863
- };
864
- A(s, e.spread_props(() => a, { get icon() {
865
- return i;
866
- } }));
867
- }
868
- var qt = /* @__PURE__ */ new Set([
869
- "$$slots",
870
- "$$events",
871
- "$$legacy"
872
- ]);
873
- function Tt(s, t) {
874
- let a = e.rest_props(t, qt);
875
- const i = {
876
- name: "table",
877
- size: 24,
878
- node: [
879
- ["path", { d: "M12 3v18" }],
880
- ["rect", {
881
- width: "18",
882
- height: "18",
883
- x: "3",
884
- y: "3",
885
- rx: "2"
886
- }],
887
- ["path", { d: "M3 9h18" }],
888
- ["path", { d: "M3 15h18" }]
889
- ]
890
- };
891
- A(s, e.spread_props(() => a, { get icon() {
892
- return i;
893
- } }));
894
- }
895
- var jt = /* @__PURE__ */ new Set([
896
- "$$slots",
897
- "$$events",
898
- "$$legacy"
899
- ]);
900
- function Q(s, t) {
901
- let a = e.rest_props(t, jt);
902
- const i = {
903
- name: "wrench",
904
- size: 24,
905
- node: [["path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]]
906
- };
907
- A(s, e.spread_props(() => a, { get icon() {
908
- return i;
909
- } }));
910
- }
911
- var At = e.from_html('<div class="pptx-svelte-ai-tool-error svelte-1878924"> </div>'), Dt = e.from_html('<details class="pptx-svelte-ai-tool-details svelte-1878924"><summary class="svelte-1878924"> </summary> <div class="pptx-svelte-ai-tool-raw svelte-1878924"> </div></details>'), Et = e.from_html('<div class="pptx-svelte-ai-tool svelte-1878924"><div class="pptx-svelte-ai-tool-head svelte-1878924"><!> <span> </span> <span><!> <!> <!> </span></div> <!> <!></div>');
912
- function It(s, t) {
873
+ var jt = e.from_html('<div class="pptx-svelte-ai-tool-error svelte-1878924"> </div>'), At = e.from_html('<details class="pptx-svelte-ai-tool-details svelte-1878924"><summary class="svelte-1878924"> </summary> <div class="pptx-svelte-ai-tool-raw svelte-1878924"> </div></details>'), Dt = e.from_html('<div class="pptx-svelte-ai-tool svelte-1878924"><div class="pptx-svelte-ai-tool-head svelte-1878924"><!> <span> </span> <span><!> <!> <!> </span></div> <!> <!></div>');
874
+ function Et(s, t) {
913
875
  e.push(t, !0);
914
876
  const a = V(), i = {
915
- view: we,
916
- text: Pe,
917
- shape: Pt,
918
- theme: zt,
919
- table: Tt,
920
- slide: bt,
921
- chart: gt,
922
- move: kt,
877
+ view: fe,
878
+ text: ve,
879
+ shape: at,
880
+ theme: Xe,
881
+ table: lt,
882
+ slide: ce,
883
+ chart: Ee,
884
+ move: We,
923
885
  delete: U,
924
- search: ve,
925
- nav: Ct,
926
- animation: ft,
927
- notes: ue,
928
- tool: Q
929
- }, r = e.derived(() => t.part.state === "output-error"), d = e.derived(() => t.part.state === "output-available"), z = e.derived(() => !e.get(r) && !e.get(d)), f = e.derived(() => Se(t.part.toolName, t.part.input, e.get(z) ? "present" : "past")), _ = e.derived(() => i[e.get(f).icon] ?? Q), y = e.derived(() => ge(t.part.input)), m = e.derived(() => e.get(r) ? a("pptx.ai.toolFailed") : e.get(d) ? a("pptx.ai.toolDone") : a("pptx.ai.toolRunning"));
930
- var b = Et(), x = e.child(b), g = e.child(x);
886
+ search: he,
887
+ nav: Oe,
888
+ animation: Fe,
889
+ notes: xe,
890
+ tool: J
891
+ }, r = e.derived(() => t.part.state === "output-error"), d = e.derived(() => t.part.state === "output-available"), z = e.derived(() => !e.get(r) && !e.get(d)), f = e.derived(() => be(t.part.toolName, t.part.input, e.get(z) ? "present" : "past")), _ = e.derived(() => i[e.get(f).icon] ?? J), y = e.derived(() => pe(t.part.input)), m = e.derived(() => e.get(r) ? a("pptx.ai.toolFailed") : e.get(d) ? a("pptx.ai.toolDone") : a("pptx.ai.toolRunning"));
892
+ var b = Dt(), x = e.child(b), g = e.child(x);
931
893
  {
932
894
  let p = e.derived(() => e.get(r) ? "pptx-svelte-ai-tool-ic is-error" : "pptx-svelte-ai-tool-ic");
933
895
  e.component(g, () => e.get(_), (j, E) => {
@@ -955,7 +917,7 @@ function It(s, t) {
955
917
  e.get(z) && p(v);
956
918
  });
957
919
  var C = e.sibling(l, 2), P = (p) => {
958
- $(p, {
920
+ Y(p, {
959
921
  size: 11,
960
922
  "aria-hidden": "true"
961
923
  });
@@ -964,7 +926,7 @@ function It(s, t) {
964
926
  e.get(d) && p(P);
965
927
  });
966
928
  var n = e.sibling(C, 2), c = (p) => {
967
- W(p, {
929
+ K(p, {
968
930
  size: 11,
969
931
  "aria-hidden": "true"
970
932
  });
@@ -974,18 +936,18 @@ function It(s, t) {
974
936
  });
975
937
  var M = e.sibling(n);
976
938
  e.reset(u), e.reset(x);
977
- var S = e.sibling(x, 2), D = (p) => {
978
- var j = At(), E = e.only_child(j, !0);
939
+ var S = e.sibling(x, 2), A = (p) => {
940
+ var j = jt(), E = e.only_child(j, !0);
979
941
  e.template_effect(() => e.set_text(E, t.part.errorText)), e.append(p, j);
980
942
  };
981
943
  e.if(S, (p) => {
982
- e.get(r) && t.part.errorText && p(D);
944
+ e.get(r) && t.part.errorText && p(A);
983
945
  });
984
946
  var q = e.sibling(S, 2), h = (p) => {
985
- var j = Dt(), E = e.child(j), L = e.only_child(E, !0), F = e.sibling(E, 2), I = e.only_child(F);
947
+ var j = At(), E = e.child(j), L = e.only_child(E, !0), F = e.sibling(E, 2), I = e.only_child(F);
986
948
  e.reset(j), e.template_effect((H, N) => {
987
949
  e.set_text(L, H), e.set_text(I, `${N ?? ""}: ${e.get(y) ?? ""}`);
988
- }, [() => a("pptx.ai.toolDetails"), () => he(t.part.toolName)]), e.append(p, j);
950
+ }, [() => a("pptx.ai.toolDetails"), () => de(t.part.toolName)]), e.append(p, j);
989
951
  };
990
952
  e.if(q, (p) => {
991
953
  e.get(y) && p(h);
@@ -996,8 +958,8 @@ function It(s, t) {
996
958
  }), e.set_text(M, ` ${e.get(m) ?? ""}`);
997
959
  }), e.append(s, b), e.pop();
998
960
  }
999
- var Lt = e.from_html('<div class="pptx-svelte-ai-empty svelte-16qhgfb"><!> <p class="pptx-svelte-ai-empty-title svelte-16qhgfb"> </p> <p class="pptx-svelte-ai-empty-hint svelte-16qhgfb"> </p></div>'), Ft = e.from_html('<p class="pptx-svelte-ai-msg-text svelte-16qhgfb"> </p>'), Ht = e.from_html('<div class="pptx-svelte-ai-msg svelte-16qhgfb"><div><!></div> <div class="pptx-svelte-ai-msg-body svelte-16qhgfb"></div></div>'), Vt = e.from_html('<div class="pptx-svelte-ai-thinking svelte-16qhgfb"><span class="pptx-svelte-ai-dots svelte-16qhgfb"><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span></span> </div>'), Nt = e.from_html('<div class="pptx-svelte-ai-messages svelte-16qhgfb" role="log" aria-live="polite"><!> <!> <div class="svelte-16qhgfb"></div></div>');
1000
- function Bt(s, t) {
961
+ var It = e.from_html('<div class="pptx-svelte-ai-empty svelte-16qhgfb"><!> <p class="pptx-svelte-ai-empty-title svelte-16qhgfb"> </p> <p class="pptx-svelte-ai-empty-hint svelte-16qhgfb"> </p></div>'), Lt = e.from_html('<p class="pptx-svelte-ai-msg-text svelte-16qhgfb"> </p>'), Ft = e.from_html('<div class="pptx-svelte-ai-msg svelte-16qhgfb"><div><!></div> <div class="pptx-svelte-ai-msg-body svelte-16qhgfb"></div></div>'), Ht = e.from_html('<div class="pptx-svelte-ai-thinking svelte-16qhgfb"><span class="pptx-svelte-ai-dots svelte-16qhgfb"><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span></span> </div>'), Vt = e.from_html('<div class="pptx-svelte-ai-messages svelte-16qhgfb" role="log" aria-live="polite"><!> <!> <div class="svelte-16qhgfb"></div></div>');
962
+ function Nt(s, t) {
1001
963
  e.push(t, !0);
1002
964
  const a = V();
1003
965
  let i = e.state(void 0);
@@ -1005,8 +967,8 @@ function Bt(s, t) {
1005
967
  t.messages, t.isStreaming, e.get(i)?.scrollIntoView({ block: "end" });
1006
968
  });
1007
969
  var r = e.comment(), d = e.first_child(r), z = (_) => {
1008
- var y = Lt(), m = e.child(y);
1009
- Y(m, {
970
+ var y = It(), m = e.child(y);
971
+ $(m, {
1010
972
  size: 26,
1011
973
  "aria-hidden": "true"
1012
974
  });
@@ -1015,33 +977,33 @@ function Bt(s, t) {
1015
977
  e.set_text(x, w), e.set_text(k, T);
1016
978
  }, [() => a("pptx.ai.emptyTitle"), () => a("pptx.ai.emptyHint")]), e.append(_, y);
1017
979
  }, f = (_) => {
1018
- var y = Nt(), m = e.child(y);
980
+ var y = Vt(), m = e.child(y);
1019
981
  e.each(m, 17, () => t.messages, (k) => k.id, (k, w) => {
1020
- const T = e.derived(() => e.get(w).role === "user"), u = e.derived(() => de(e.get(w)));
982
+ const T = e.derived(() => e.get(w).role === "user"), u = e.derived(() => ze(e.get(w)));
1021
983
  var o = e.comment(), l = e.first_child(o), v = (C) => {
1022
- var P = Ht(), n = e.child(P);
984
+ var P = Ft(), n = e.child(P);
1023
985
  let c;
1024
986
  var M = e.child(n), S = (h) => {
1025
- ht(h, {
987
+ ct(h, {
1026
988
  size: 14,
1027
989
  "aria-hidden": "true"
1028
990
  });
1029
- }, D = (h) => {
1030
- vt(h, {
991
+ }, A = (h) => {
992
+ Ae(h, {
1031
993
  size: 14,
1032
994
  "aria-hidden": "true"
1033
995
  });
1034
996
  };
1035
997
  e.if(M, (h) => {
1036
- e.get(T) ? h(S) : h(D, -1);
998
+ e.get(T) ? h(S) : h(A, -1);
1037
999
  }), e.reset(n);
1038
1000
  var q = e.sibling(n, 2);
1039
1001
  e.each(q, 23, () => e.get(u), (h, p) => h.kind === "tool" && h.toolCallId || p, (h, p) => {
1040
1002
  var j = e.comment(), E = e.first_child(j), L = (I) => {
1041
- var H = Ft(), N = e.only_child(H, !0);
1003
+ var H = Lt(), N = e.only_child(H, !0);
1042
1004
  e.template_effect(() => e.set_text(N, e.get(p).text)), e.append(I, H);
1043
1005
  }, F = (I) => {
1044
- It(I, { get part() {
1006
+ Et(I, { get part() {
1045
1007
  return e.get(p);
1046
1008
  } });
1047
1009
  };
@@ -1057,7 +1019,7 @@ function Bt(s, t) {
1057
1019
  }), e.append(k, o);
1058
1020
  });
1059
1021
  var b = e.sibling(m, 2), x = (k) => {
1060
- var w = Vt(), T = e.sibling(e.child(w));
1022
+ var w = Ht(), T = e.sibling(e.child(w));
1061
1023
  e.reset(w), e.template_effect((u) => e.set_text(T, ` ${u ?? ""}`), [() => a("pptx.ai.thinking")]), e.append(k, w);
1062
1024
  };
1063
1025
  e.if(b, (k) => {
@@ -1070,14 +1032,14 @@ function Bt(s, t) {
1070
1032
  t.messages.length === 0 ? _(z) : _(f, -1);
1071
1033
  }), e.append(s, r), e.pop();
1072
1034
  }
1073
- var Ut = e.from_html('<li class="svelte-15p5728"> </li>'), Ot = e.from_html('<ul class="pptx-svelte-ai-proposal-summary svelte-15p5728"></ul>'), Rt = e.from_html('<div class="pptx-svelte-ai-proposal svelte-15p5728"><div class="pptx-svelte-ai-proposal-tag svelte-15p5728"> </div> <div class="pptx-svelte-ai-proposal-label svelte-15p5728"> </div> <!> <div class="pptx-svelte-ai-proposal-actions svelte-15p5728"><button type="button" class="pptx-svelte-ai-proposal-btn is-accept svelte-15p5728"><!> </button> <button type="button" class="pptx-svelte-ai-proposal-btn is-reject svelte-15p5728"><!> </button></div></div>');
1035
+ var Bt = e.from_html('<li class="svelte-15p5728"> </li>'), Ut = e.from_html('<ul class="pptx-svelte-ai-proposal-summary svelte-15p5728"></ul>'), Rt = e.from_html('<div class="pptx-svelte-ai-proposal svelte-15p5728"><div class="pptx-svelte-ai-proposal-tag svelte-15p5728"> </div> <div class="pptx-svelte-ai-proposal-label svelte-15p5728"> </div> <!> <div class="pptx-svelte-ai-proposal-actions svelte-15p5728"><button type="button" class="pptx-svelte-ai-proposal-btn is-accept svelte-15p5728"><!> </button> <button type="button" class="pptx-svelte-ai-proposal-btn is-reject svelte-15p5728"><!> </button></div></div>');
1074
1036
  function Wt(s, t) {
1075
1037
  e.push(t, !0);
1076
- const a = V(), i = e.derived(() => t.proposal.summary.map(ze));
1038
+ const a = V(), i = e.derived(() => t.proposal.summary.map(Pe));
1077
1039
  var r = Rt(), d = e.child(r), z = e.only_child(d, !0), f = e.sibling(d, 2), _ = e.only_child(f, !0), y = e.sibling(f, 2), m = (o) => {
1078
- var l = Ot();
1040
+ var l = Ut();
1079
1041
  e.each(l, 21, () => e.get(i), e.index, (v, C) => {
1080
- var P = Ut(), n = e.only_child(P, !0);
1042
+ var P = Bt(), n = e.only_child(P, !0);
1081
1043
  e.template_effect(() => e.set_text(n, e.get(C))), e.append(v, P);
1082
1044
  }), e.reset(l), e.append(o, l);
1083
1045
  };
@@ -1085,14 +1047,14 @@ function Wt(s, t) {
1085
1047
  e.get(i).length > 0 && o(m);
1086
1048
  });
1087
1049
  var b = e.sibling(y, 2), x = e.child(b), g = e.child(x);
1088
- $(g, {
1050
+ Y(g, {
1089
1051
  size: 13,
1090
1052
  "aria-hidden": "true"
1091
1053
  });
1092
1054
  var k = e.sibling(g);
1093
1055
  e.reset(x);
1094
1056
  var w = e.sibling(x, 2), T = e.child(w);
1095
- R(T, {
1057
+ W(T, {
1096
1058
  size: 13,
1097
1059
  "aria-hidden": "true"
1098
1060
  });
@@ -1106,12 +1068,12 @@ function Wt(s, t) {
1106
1068
  ]), e.delegated("click", x, () => t.onaccept(t.proposal.id)), e.delegated("click", w, () => t.onreject(t.proposal.id)), e.append(s, r), e.pop();
1107
1069
  }
1108
1070
  e.delegate(["click"]);
1109
- var Gt = e.from_html('<button type="button" class="pptx-svelte-ai-accept-all svelte-1jz2xis"> </button>'), Kt = e.from_html('<div class="pptx-svelte-ai-proposals svelte-1jz2xis"><div class="pptx-svelte-ai-proposals-head svelte-1jz2xis"><span class="pptx-svelte-ai-proposals-title svelte-1jz2xis"> </span> <!></div> <!></div>');
1110
- function Xt(s, t) {
1071
+ var Kt = e.from_html('<button type="button" class="pptx-svelte-ai-accept-all svelte-1jz2xis"> </button>'), Ot = e.from_html('<div class="pptx-svelte-ai-proposals svelte-1jz2xis"><div class="pptx-svelte-ai-proposals-head svelte-1jz2xis"><span class="pptx-svelte-ai-proposals-title svelte-1jz2xis"> </span> <!></div> <!></div>');
1072
+ function Gt(s, t) {
1111
1073
  e.push(t, !0);
1112
1074
  const a = V();
1113
- var i = Kt(), r = e.child(i), d = e.child(r), z = e.only_child(d, !0), f = e.sibling(d, 2), _ = (m) => {
1114
- var b = Gt(), x = e.only_child(b, !0);
1075
+ var i = Ot(), r = e.child(i), d = e.child(r), z = e.only_child(d, !0), f = e.sibling(d, 2), _ = (m) => {
1076
+ var b = Kt(), x = e.only_child(b, !0);
1115
1077
  e.template_effect((g) => e.set_text(x, g), [() => a("pptx.ai.acceptAll")]), e.delegated("click", b, function(...g) {
1116
1078
  t.onacceptall?.apply(this, g);
1117
1079
  }), e.append(m, b);
@@ -1135,14 +1097,14 @@ function Xt(s, t) {
1135
1097
  }), e.reset(i), e.template_effect((m) => e.set_text(z, m), [() => a("pptx.ai.pendingChanges", { count: t.proposals.length })]), e.append(s, i), e.pop();
1136
1098
  }
1137
1099
  e.delegate(["click"]);
1138
- var Zt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!></div>'), Jt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!> <p class="pptx-svelte-ai-state-title svelte-nmv6mg"> </p> <p class="pptx-svelte-ai-state-hint svelte-nmv6mg"> </p></div>'), Qt = e.from_html('<div class="pptx-svelte-ai-body svelte-nmv6mg"><!> <!> <!> <!> <!> <!></div>'), Yt = e.from_html('<aside class="pptx-svelte-ai-panel svelte-nmv6mg" data-pptx-ai-panel=""><div class="pptx-svelte-ai-header svelte-nmv6mg"><!> <span class="pptx-svelte-ai-title svelte-nmv6mg"> </span> <button type="button" class="pptx-svelte-ai-close svelte-nmv6mg"><!></button></div> <!></aside>');
1139
- function sa(s, t) {
1100
+ var Xt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!></div>'), Zt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!> <p class="pptx-svelte-ai-state-title svelte-nmv6mg"> </p> <p class="pptx-svelte-ai-state-hint svelte-nmv6mg"> </p></div>'), Jt = e.from_html('<div class="pptx-svelte-ai-body svelte-nmv6mg"><!> <!> <!> <!> <!> <!></div>'), Qt = e.from_html('<aside class="pptx-svelte-ai-panel svelte-nmv6mg" data-pptx-ai-panel=""><div class="pptx-svelte-ai-header svelte-nmv6mg"><!> <span class="pptx-svelte-ai-title svelte-nmv6mg"> </span> <button type="button" class="pptx-svelte-ai-close svelte-nmv6mg"><!></button></div> <!></aside>');
1101
+ function aa(s, t) {
1140
1102
  e.push(t, !0);
1141
1103
  const a = V();
1142
1104
  function i(l) {
1143
1105
  l && l.slideIndex !== void 0 && t.bridge.goToSlide(l.slideIndex), t.aiPanel.flashToolTarget(l);
1144
1106
  }
1145
- const r = O(() => new De({
1107
+ const r = R(() => new vt({
1146
1108
  bridge: t.bridge,
1147
1109
  config: t.config,
1148
1110
  onToolTarget: i
@@ -1160,48 +1122,48 @@ function sa(s, t) {
1160
1122
  function z() {
1161
1123
  t.aiPanel.flashToolTarget(null), r.acceptAllProposals();
1162
1124
  }
1163
- const f = Ae({
1125
+ const f = dt({
1164
1126
  bridge: t.bridge,
1165
1127
  getMessages: () => r.messages,
1166
1128
  setMessages: (l) => r.setMessages(l),
1167
1129
  getUntitledLabel: () => a("pptx.ai.untitledChat")
1168
1130
  });
1169
- qe(() => {
1131
+ Te(() => {
1170
1132
  r.init();
1171
1133
  });
1172
- var _ = Yt(), y = e.child(_), m = e.child(y);
1173
- Y(m, {
1134
+ var _ = Qt(), y = e.child(_), m = e.child(y);
1135
+ $(m, {
1174
1136
  size: 16,
1175
1137
  class: "pptx-svelte-ai-header-icon",
1176
1138
  "aria-hidden": "true"
1177
1139
  });
1178
1140
  var b = e.sibling(m, 2), x = e.only_child(b, !0), g = e.sibling(b, 2), k = e.child(g);
1179
- R(k, {
1141
+ W(k, {
1180
1142
  size: 16,
1181
1143
  "aria-hidden": "true"
1182
1144
  }), e.reset(g), e.reset(y);
1183
1145
  var w = e.sibling(y, 2), T = (l) => {
1184
- var v = Zt(), C = e.child(v);
1146
+ var v = Xt(), C = e.child(v);
1185
1147
  ee(C, {
1186
1148
  size: 20,
1187
1149
  class: "pptx-svelte-ai-spin",
1188
1150
  "aria-hidden": "true"
1189
1151
  }), e.reset(v), e.append(l, v);
1190
1152
  }, u = (l) => {
1191
- var v = Jt(), C = e.child(v);
1192
- W(C, {
1153
+ var v = Zt(), C = e.child(v);
1154
+ K(C, {
1193
1155
  size: 24,
1194
1156
  "aria-hidden": "true"
1195
1157
  });
1196
1158
  var P = e.sibling(C, 2), n = e.only_child(P, !0), c = e.sibling(P, 2), M = e.only_child(c, !0);
1197
- e.reset(v), e.template_effect((S, D) => {
1198
- e.set_text(n, S), e.set_text(M, D);
1159
+ e.reset(v), e.template_effect((S, A) => {
1160
+ e.set_text(n, S), e.set_text(M, A);
1199
1161
  }, [() => a("pptx.ai.unavailableTitle"), () => r.initError?.message ?? a("pptx.ai.unavailableHint")]), e.append(l, v);
1200
1162
  }, o = (l) => {
1201
- var v = Qt(), C = e.child(v);
1163
+ var v = Jt(), C = e.child(v);
1202
1164
  {
1203
1165
  let h = e.derived(() => r.messages.length > 0);
1204
- pt(C, {
1166
+ Tt(C, {
1205
1167
  get chats() {
1206
1168
  return f.chats;
1207
1169
  },
@@ -1224,7 +1186,7 @@ function sa(s, t) {
1224
1186
  var P = e.sibling(C, 2);
1225
1187
  {
1226
1188
  let h = e.derived(() => t.bridge.getSlides());
1227
- at(P, {
1189
+ Ct(P, {
1228
1190
  get targets() {
1229
1191
  return t.aiPanel.effectiveTargets;
1230
1192
  },
@@ -1249,7 +1211,7 @@ function sa(s, t) {
1249
1211
  });
1250
1212
  }
1251
1213
  var n = e.sibling(P, 2);
1252
- Bt(n, {
1214
+ Nt(n, {
1253
1215
  get messages() {
1254
1216
  return r.messages;
1255
1217
  },
@@ -1258,7 +1220,7 @@ function sa(s, t) {
1258
1220
  }
1259
1221
  });
1260
1222
  var c = e.sibling(n, 2), M = (h) => {
1261
- Oe(h, {
1223
+ ft(h, {
1262
1224
  get message() {
1263
1225
  return r.error.message;
1264
1226
  },
@@ -1268,8 +1230,8 @@ function sa(s, t) {
1268
1230
  e.if(c, (h) => {
1269
1231
  r.error && h(M);
1270
1232
  });
1271
- var S = e.sibling(c, 2), D = (h) => {
1272
- Xt(h, {
1233
+ var S = e.sibling(c, 2), A = (h) => {
1234
+ Gt(h, {
1273
1235
  get proposals() {
1274
1236
  return r.proposals;
1275
1237
  },
@@ -1279,10 +1241,10 @@ function sa(s, t) {
1279
1241
  });
1280
1242
  };
1281
1243
  e.if(S, (h) => {
1282
- r.proposals.length > 0 && h(D);
1244
+ r.proposals.length > 0 && h(A);
1283
1245
  });
1284
1246
  var q = e.sibling(S, 2);
1285
- Be(q, {
1247
+ gt(q, {
1286
1248
  get isStreaming() {
1287
1249
  return r.isStreaming;
1288
1250
  },
@@ -1311,5 +1273,5 @@ function sa(s, t) {
1311
1273
  }
1312
1274
  e.delegate(["click"]);
1313
1275
  export {
1314
- sa as default
1276
+ aa as default
1315
1277
  };