xote 7.0.0 → 7.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/xote.mjs CHANGED
@@ -121,16 +121,16 @@ function p(e, t, n, r, i) {
121
121
  backingSubs: i
122
122
  };
123
123
  }
124
- function te(e) {
124
+ function m(e) {
125
125
  e.flags &= -2;
126
126
  }
127
- function ne(e) {
127
+ function te(e) {
128
128
  return (e.flags & 2) != 0;
129
129
  }
130
- function re(e) {
130
+ function ne(e) {
131
131
  e.flags |= 2;
132
132
  }
133
- function m(e) {
133
+ function re(e) {
134
134
  e.flags &= -3;
135
135
  }
136
136
  function h(e) {
@@ -178,7 +178,7 @@ function se(e, t) {
178
178
  let n = e.lastDep;
179
179
  n === void 0 ? e.firstDep = t : n.nextDep = t, e.lastDep = t;
180
180
  }
181
- function x(e) {
181
+ function ce(e) {
182
182
  let t = e.subs, n = e.prevSub;
183
183
  n === void 0 ? t.first = e.nextSub : n.nextSub = e.nextSub;
184
184
  let r = e.nextSub;
@@ -187,50 +187,50 @@ function x(e) {
187
187
  return;
188
188
  }
189
189
  }
190
- function ce(e, t) {
190
+ function le(e, t) {
191
191
  let n = t.prevDep;
192
192
  n === void 0 ? e.firstDep = t.nextDep : n.nextDep = t.nextDep;
193
193
  let r = t.nextDep;
194
194
  r === void 0 ? e.lastDep = t.prevDep : r.prevDep = t.prevDep, t.prevDep = void 0, t.nextDep = void 0;
195
195
  }
196
- function le(e, t) {
196
+ function ue(e, t) {
197
197
  let n = t.prevDep;
198
198
  n === void 0 ? e.firstDep = t.nextDep : n.nextDep = t.nextDep;
199
199
  let r = t.nextDep;
200
200
  r === void 0 ? e.lastDep = t.prevDep : r.prevDep = t.prevDep, t.prevDep = void 0, t.nextDep = void 0;
201
201
  }
202
- function ue(e) {
202
+ function de(e) {
203
203
  let t = e.firstDep;
204
204
  for (; t !== void 0;) {
205
205
  let e = t;
206
206
  if (e !== void 0) {
207
207
  let n = e.nextDep;
208
- x(e), t = n;
208
+ ce(e), t = n;
209
209
  }
210
210
  }
211
211
  e.firstDep = void 0, e.lastDep = void 0;
212
212
  }
213
- function de(e) {
213
+ function fe(e) {
214
214
  let t = e.firstDep;
215
215
  for (; t !== void 0;) {
216
216
  let e = t;
217
217
  if (e !== void 0) {
218
218
  let n = e.nextDep;
219
- x(e), t = n;
219
+ ce(e), t = n;
220
220
  }
221
221
  }
222
222
  e.firstDep = void 0, e.lastDep = void 0;
223
223
  }
224
- function fe(e, t) {
224
+ function pe(e, t) {
225
225
  t.prevDep = e.lastDep, t.nextDep = void 0;
226
226
  let n = e.lastDep;
227
227
  n === void 0 ? e.firstDep = t : n.nextDep = t, e.lastDep = t;
228
228
  }
229
229
  //#endregion
230
230
  //#region node_modules/rescript-signals/src/signals/Scheduler.res.mjs
231
- var S = { contents: void 0 }, C = { contents: void 0 }, w = { contents: 0 }, T = { contents: void 0 }, E = { contents: void 0 }, D = [], O = [], k = { contents: !1 }, A = { contents: !1 }, j = { contents: !1 }, pe = { contents: 0 }, me = { contents: 0 }, M = [], he = (function(e) {
231
+ var x = { contents: void 0 }, S = { contents: void 0 }, C = { contents: 0 }, w = { contents: void 0 }, T = { contents: void 0 }, E = [], D = [], O = { contents: !1 }, k = { contents: !1 }, A = { contents: !1 }, me = { contents: 0 }, he = { contents: 0 }, j = [], ge = (function(e) {
232
232
  e.length = 0;
233
- }), ge = (function(e, t) {
233
+ }), _e = (function(e, t) {
234
234
  if (!(t <= 0)) {
235
235
  if (t >= e.length) {
236
236
  e.length = 0;
@@ -239,27 +239,27 @@ var S = { contents: void 0 }, C = { contents: void 0 }, w = { contents: 0 }, T =
239
239
  e.copyWithin(0, t), e.length -= t;
240
240
  }
241
241
  });
242
- function _e(e) {
243
- ne(e) || (re(e), D.length === 0 ? A.contents = !1 : e.level < pe.contents && (A.contents = !0), D.push(e), pe.contents = e.level);
244
- }
245
242
  function ve(e) {
246
- ae(e) || (_(e), O.length === 0 ? j.contents = !1 : e.level < me.contents && (j.contents = !0), O.push(e), me.contents = e.level);
243
+ te(e) || (ne(e), E.length === 0 ? k.contents = !1 : e.level < me.contents && (k.contents = !0), E.push(e), me.contents = e.level);
244
+ }
245
+ function ye(e) {
246
+ ae(e) || (_(e), D.length === 0 ? A.contents = !1 : e.level < he.contents && (A.contents = !0), D.push(e), he.contents = e.level);
247
247
  }
248
- function ye(e, t) {
248
+ function be(e, t) {
249
249
  if (e.firstDep === void 0) {
250
250
  let n = b(t, e);
251
- n.lastTrackedVersion = w.contents, fe(e, n), oe(t, n), T.contents = n;
251
+ n.lastTrackedVersion = C.contents, pe(e, n), oe(t, n), w.contents = n;
252
252
  return;
253
253
  }
254
- let n = w.contents, r = !1, i = T.contents;
254
+ let n = C.contents, r = !1, i = w.contents;
255
255
  if (i !== void 0) if (i.subs === t && i.observer === e) i.lastTrackedVersion = n, r = !0;
256
256
  else {
257
257
  let a = i.nextDep;
258
- a !== void 0 && a.subs === t && a.observer === e && (a.lastTrackedVersion = n, T.contents = a, r = !0);
258
+ a !== void 0 && a.subs === t && a.observer === e && (a.lastTrackedVersion = n, w.contents = a, r = !0);
259
259
  }
260
260
  if (!r) {
261
261
  let i = t.last;
262
- i !== void 0 && i.lastTrackedVersion === n && i.observer === e && (i.lastTrackedVersion = n, T.contents = i, r = !0);
262
+ i !== void 0 && i.lastTrackedVersion === n && i.observer === e && (i.lastTrackedVersion = n, w.contents = i, r = !0);
263
263
  }
264
264
  if (r) return;
265
265
  let a = !1, o, s = e.firstDep;
@@ -268,27 +268,27 @@ function ye(e, t) {
268
268
  e !== void 0 && (e.subs === t ? (e.lastTrackedVersion = n, o = e, a = !0) : s = e.nextDep);
269
269
  }
270
270
  if (a) {
271
- T.contents = o;
271
+ w.contents = o;
272
272
  return;
273
273
  }
274
274
  let c = b(t, e);
275
- c.lastTrackedVersion = n, fe(e, c), oe(t, c), T.contents = c;
275
+ c.lastTrackedVersion = n, pe(e, c), oe(t, c), w.contents = c;
276
276
  }
277
- function be(e, t) {
277
+ function xe(e, t) {
278
278
  if (e.firstDep === void 0) {
279
279
  let n = b(t, e);
280
- n.lastTrackedVersion = w.contents, se(e, n), oe(t, n), E.contents = n;
280
+ n.lastTrackedVersion = C.contents, se(e, n), oe(t, n), T.contents = n;
281
281
  return;
282
282
  }
283
- let n = w.contents, r = !1, i = E.contents;
283
+ let n = C.contents, r = !1, i = T.contents;
284
284
  if (i !== void 0) if (i.subs === t && i.observer === e) i.lastTrackedVersion = n, r = !0;
285
285
  else {
286
286
  let a = i.nextDep;
287
- a !== void 0 && a.subs === t && a.observer === e && (a.lastTrackedVersion = n, E.contents = a, r = !0);
287
+ a !== void 0 && a.subs === t && a.observer === e && (a.lastTrackedVersion = n, T.contents = a, r = !0);
288
288
  }
289
289
  if (!r) {
290
290
  let i = t.last;
291
- i !== void 0 && i.lastTrackedVersion === n && i.observer === e && (i.lastTrackedVersion = n, E.contents = i, r = !0);
291
+ i !== void 0 && i.lastTrackedVersion === n && i.observer === e && (i.lastTrackedVersion = n, T.contents = i, r = !0);
292
292
  }
293
293
  if (r) return;
294
294
  let a = !1, o, s = e.firstDep;
@@ -297,25 +297,25 @@ function be(e, t) {
297
297
  e !== void 0 && (e.subs === t ? (e.lastTrackedVersion = n, o = e, a = !0) : s = e.nextDep);
298
298
  }
299
299
  if (a) {
300
- E.contents = o;
300
+ T.contents = o;
301
301
  return;
302
302
  }
303
303
  let c = b(t, e);
304
- c.lastTrackedVersion = n, se(e, c), oe(t, c), E.contents = c;
304
+ c.lastTrackedVersion = n, se(e, c), oe(t, c), T.contents = c;
305
305
  }
306
- function xe(e) {
307
- let t = S.contents;
308
- if (t !== void 0) return ye(t, e);
309
- let n = C.contents;
310
- if (n !== void 0) return be(n, e);
306
+ function Se(e) {
307
+ let t = x.contents;
308
+ if (t !== void 0) return be(t, e);
309
+ let n = S.contents;
310
+ if (n !== void 0) return xe(n, e);
311
311
  }
312
- function Se(e, t) {
312
+ function Ce(e, t) {
313
313
  return e.level - t.level | 0;
314
314
  }
315
- function Ce(e, t) {
315
+ function we(e, t) {
316
316
  return e.level - t.level | 0;
317
317
  }
318
- function we(e) {
318
+ function Te(e) {
319
319
  let t = 0, n = e.firstDep;
320
320
  for (; n !== void 0;) {
321
321
  let e = n;
@@ -323,7 +323,7 @@ function we(e) {
323
323
  }
324
324
  return t + 1 | 0;
325
325
  }
326
- function Te(e) {
326
+ function Ee(e) {
327
327
  let t = 0, n = e.firstDep;
328
328
  for (; n !== void 0;) {
329
329
  let e = n;
@@ -331,11 +331,11 @@ function Te(e) {
331
331
  }
332
332
  return t + 1 | 0;
333
333
  }
334
- function Ee(e, t) {
335
- let n = w.contents, r = e.version;
336
- u.contents = u.contents + 1 | 0, w.contents = u.contents, t && v(e);
337
- let i = S.contents, a = T.contents;
338
- S.contents = e, T.contents = e.firstDep;
334
+ function De(e, t) {
335
+ let n = C.contents, r = e.version;
336
+ u.contents = u.contents + 1 | 0, C.contents = u.contents, t && v(e);
337
+ let i = x.contents, a = w.contents;
338
+ x.contents = e, w.contents = e.firstDep;
339
339
  try {
340
340
  let t = e.compute;
341
341
  t !== void 0 && t();
@@ -344,7 +344,7 @@ function Ee(e, t) {
344
344
  let t = o;
345
345
  if (t !== void 0) {
346
346
  let n = t.nextDep;
347
- t.lastTrackedVersion !== w.contents && (x(t), le(e, t)), o = n;
347
+ t.lastTrackedVersion !== C.contents && (ce(t), ue(e, t)), o = n;
348
348
  }
349
349
  }
350
350
  if (g(e), e.lastGlobalVersion = d.contents, e.first !== void 0 && e.version !== r) {
@@ -355,31 +355,31 @@ function Ee(e, t) {
355
355
  let n = e.observer;
356
356
  if (y(n)) ie(n);
357
357
  else {
358
- let t = C.contents;
359
- t !== void 0 && t === e.observer || _e(e.observer);
358
+ let t = S.contents;
359
+ t !== void 0 && t === e.observer || ve(e.observer);
360
360
  }
361
361
  t = e.nextSub;
362
362
  }
363
363
  }
364
364
  }
365
- S.contents = i, T.contents = a, w.contents = n;
365
+ x.contents = i, w.contents = a, C.contents = n;
366
366
  return;
367
367
  } catch (e) {
368
- throw S.contents = i, T.contents = a, w.contents = n, e;
368
+ throw x.contents = i, w.contents = a, C.contents = n, e;
369
369
  }
370
370
  }
371
- function De(e) {
371
+ function Oe(e) {
372
372
  let t = e.level;
373
- if (Ee(e, !0), t === 0) {
374
- e.level = we(e);
373
+ if (De(e, !0), t === 0) {
374
+ e.level = Te(e);
375
375
  return;
376
376
  }
377
377
  }
378
- function Oe(e) {
379
- let t = e.level, n = w.contents;
380
- u.contents = u.contents + 1 | 0, w.contents = u.contents, m(e);
381
- let r = C.contents, i = E.contents;
382
- C.contents = e, E.contents = e.firstDep;
378
+ function ke(e) {
379
+ let t = e.level, n = C.contents;
380
+ u.contents = u.contents + 1 | 0, C.contents = u.contents, re(e);
381
+ let r = S.contents, i = T.contents;
382
+ S.contents = e, T.contents = e.firstDep;
383
383
  try {
384
384
  e.run();
385
385
  let t = e.firstDep;
@@ -387,207 +387,207 @@ function Oe(e) {
387
387
  let n = t;
388
388
  if (n !== void 0) {
389
389
  let r = n.nextDep;
390
- n.lastTrackedVersion !== w.contents && (x(n), ce(e, n)), t = r;
390
+ n.lastTrackedVersion !== C.contents && (ce(n), le(e, n)), t = r;
391
391
  }
392
392
  }
393
- te(e), C.contents = r, E.contents = i, w.contents = n;
393
+ m(e), S.contents = r, T.contents = i, C.contents = n;
394
394
  } catch (e) {
395
- throw C.contents = r, E.contents = i, w.contents = n, e;
395
+ throw S.contents = r, T.contents = i, C.contents = n, e;
396
396
  }
397
397
  if (t === 0) {
398
- e.level = Te(e);
398
+ e.level = Ee(e);
399
399
  return;
400
400
  }
401
401
  }
402
- function ke() {
403
- k.contents = !0;
402
+ function Ae() {
403
+ O.contents = !0;
404
404
  try {
405
- for (; D.length !== 0 || O.length !== 0;) {
406
- if (O.length !== 0) {
407
- let e = O.length;
408
- e > 1 && j.contents && (O.sort(Ce), j.contents = !1);
409
- let t = 0;
410
- for (; t < e;) {
411
- let e = O[t];
412
- e !== void 0 && De(e), t = t + 1 | 0;
413
- }
414
- ge(O, e), O.length === 0 && (j.contents = !1);
415
- }
405
+ for (; E.length !== 0 || D.length !== 0;) {
416
406
  if (D.length !== 0) {
417
407
  let e = D.length;
418
- e > 1 && A.contents && (D.sort(Se), A.contents = !1);
408
+ e > 1 && A.contents && (D.sort(we), A.contents = !1);
419
409
  let t = 0;
420
410
  for (; t < e;) {
421
411
  let e = D[t];
422
412
  e !== void 0 && Oe(e), t = t + 1 | 0;
423
413
  }
424
- ge(D, e), D.length === 0 && (A.contents = !1);
414
+ _e(D, e), D.length === 0 && (A.contents = !1);
415
+ }
416
+ if (E.length !== 0) {
417
+ let e = E.length;
418
+ e > 1 && k.contents && (E.sort(Ce), k.contents = !1);
419
+ let t = 0;
420
+ for (; t < e;) {
421
+ let e = E[t];
422
+ e !== void 0 && ke(e), t = t + 1 | 0;
423
+ }
424
+ _e(E, e), E.length === 0 && (k.contents = !1);
425
425
  }
426
426
  }
427
- k.contents = !1;
427
+ O.contents = !1;
428
428
  return;
429
429
  } catch (e) {
430
- throw k.contents = !1, e;
430
+ throw O.contents = !1, e;
431
431
  }
432
432
  }
433
- function Ae(e) {
433
+ function je(e) {
434
434
  if (e.first !== void 0) if (!y(e) && e.computedSubscriberCount === 0) {
435
435
  let t = e.first;
436
436
  for (; t !== void 0;) {
437
437
  let e = t;
438
- e !== void 0 && (_e(e.observer), t = e.nextSub);
438
+ e !== void 0 && (ve(e.observer), t = e.nextSub);
439
439
  }
440
440
  } else {
441
- M.push(e);
441
+ j.push(e);
442
442
  let t = 0;
443
- for (; t < M.length;) {
444
- let e = M[t];
443
+ for (; t < j.length;) {
444
+ let e = j[t];
445
445
  if (t = t + 1 | 0, e !== void 0) {
446
446
  let t = e.first;
447
447
  for (; t !== void 0;) {
448
448
  let n = t;
449
449
  if (n !== void 0) {
450
450
  let r = n.observer;
451
- y(r) ? h(r) || (ie(r), M.push(r)) : y(e) && e.deferEffectsUntilRecompute ? ve(e) : _e(n.observer), t = n.nextSub;
451
+ y(r) ? h(r) || (ie(r), j.push(r)) : y(e) && e.deferEffectsUntilRecompute ? ye(e) : ve(n.observer), t = n.nextSub;
452
452
  }
453
453
  }
454
454
  }
455
455
  }
456
- he(M);
456
+ ge(j);
457
457
  }
458
- if ((D.length !== 0 || O.length !== 0) && !k.contents) return ke();
458
+ if ((E.length !== 0 || D.length !== 0) && !O.contents) return Ae();
459
459
  }
460
- function je(e) {
460
+ function Me(e) {
461
461
  if (!y(e) || !h(e)) return;
462
462
  if (e.lastGlobalVersion === d.contents) return g(e);
463
463
  let t = e.level;
464
- if (Ee(e, !1), t === 0) {
465
- e.level = we(e);
464
+ if (De(e, !1), t === 0) {
465
+ e.level = Te(e);
466
466
  return;
467
467
  }
468
468
  }
469
- function Me(e) {
470
- let t = k.contents;
471
- k.contents = !0;
469
+ function Ne(e) {
470
+ let t = O.contents;
471
+ O.contents = !0;
472
472
  try {
473
473
  let n = e();
474
- return t || (k.contents = !1, (D.length !== 0 || O.length !== 0) && ke()), n;
474
+ return t || (O.contents = !1, (E.length !== 0 || D.length !== 0) && Ae()), n;
475
475
  } catch (e) {
476
- throw t || (k.contents = !1), e;
476
+ throw t || (O.contents = !1), e;
477
477
  }
478
478
  }
479
- function Ne(e) {
480
- let t = S.contents, n = C.contents, r = T.contents, i = E.contents;
481
- S.contents = void 0, C.contents = void 0, T.contents = void 0, E.contents = void 0;
479
+ function Pe(e) {
480
+ let t = x.contents, n = S.contents, r = w.contents, i = T.contents;
481
+ x.contents = void 0, S.contents = void 0, w.contents = void 0, T.contents = void 0;
482
482
  try {
483
483
  let a = e();
484
- return S.contents = t, C.contents = n, T.contents = r, E.contents = i, a;
484
+ return x.contents = t, S.contents = n, w.contents = r, T.contents = i, a;
485
485
  } catch (e) {
486
- throw S.contents = t, C.contents = n, T.contents = r, E.contents = i, e;
486
+ throw x.contents = t, S.contents = n, w.contents = r, T.contents = i, e;
487
487
  }
488
488
  }
489
489
  //#endregion
490
490
  //#region node_modules/rescript-signals/src/signals/Effect.res.mjs
491
- function Pe(e, t) {
491
+ function Fe(e, t) {
492
492
  let n = l(), r = { contents: void 0 }, i = p(n, "Effect", () => {
493
493
  let t = r.contents;
494
494
  t !== void 0 && t(), r.contents = e();
495
- }, t, void 0), a = C.contents;
496
- C.contents = i;
495
+ }, t, void 0), a = S.contents;
496
+ S.contents = i;
497
497
  try {
498
- i.run(), te(i), C.contents = a;
498
+ i.run(), m(i), S.contents = a;
499
499
  } catch (e) {
500
- throw C.contents = a, e;
500
+ throw S.contents = a, e;
501
501
  }
502
- i.level = Te(i);
502
+ i.level = Ee(i);
503
503
  let o = { contents: !1 };
504
504
  return { dispose: () => {
505
505
  if (o.contents) return;
506
506
  o.contents = !0;
507
507
  let e = r.contents;
508
- e !== void 0 && e(), ue(i);
508
+ e !== void 0 && e(), de(i);
509
509
  } };
510
510
  }
511
- function Fe(e, t) {
512
- Pe(e, t);
511
+ function Ie(e, t) {
512
+ Fe(e, t);
513
513
  }
514
514
  //#endregion
515
515
  //#region src/Effect.res.mjs
516
- var Ie = /* @__PURE__ */ t({
517
- run: () => Le,
518
- runWithDisposer: () => N
519
- }), N = Pe, Le = Fe;
516
+ var Le = /* @__PURE__ */ t({
517
+ run: () => Re,
518
+ runWithDisposer: () => M
519
+ }), M = Fe, Re = Ie;
520
520
  //#endregion
521
521
  //#region node_modules/rescript-signals/src/signals/Signal.res.mjs
522
- function Re(e, t) {
522
+ function ze(e, t) {
523
523
  return e === t;
524
524
  }
525
- function ze(e, t) {
525
+ function Be(e, t) {
526
526
  return !1;
527
527
  }
528
- function Be(e, t, n) {
528
+ function Ve(e, t, n) {
529
529
  return {
530
530
  id: l(),
531
531
  value: e,
532
- equals: n === void 0 ? Re : n,
532
+ equals: n === void 0 ? ze : n,
533
533
  name: t,
534
534
  subs: ee()
535
535
  };
536
536
  }
537
- function Ve(e, t) {
537
+ function He(e, t) {
538
538
  return {
539
539
  id: l(),
540
540
  value: e,
541
- equals: ze,
541
+ equals: Be,
542
542
  name: t,
543
543
  subs: ee()
544
544
  };
545
545
  }
546
- function He(e) {
547
- return je(e.subs), xe(e.subs), e.value;
548
- }
549
546
  function Ue(e) {
550
- return je(e.subs), e.value;
547
+ return Me(e.subs), Se(e.subs), e.value;
548
+ }
549
+ function We(e) {
550
+ return Me(e.subs), e.value;
551
551
  }
552
- function We(e, t) {
552
+ function Ge(e, t) {
553
553
  let n;
554
554
  try {
555
555
  n = !e.equals(e.value, t);
556
556
  } catch {
557
557
  n = !0;
558
558
  }
559
- if (n) return e.value = t, e.subs.version = e.subs.version + 1 | 0, d.contents = d.contents + 1 | 0, Ae(e.subs);
560
- }
561
- function Ge(e, t) {
562
- We(e, t(e.value));
563
- }
564
- var Ke = Me, qe = Ne, Je = /* @__PURE__ */ t({
565
- batch: () => tt,
566
- defaultEquals: () => Ye,
567
- get: () => P,
568
- make: () => Ze,
569
- makeForComputed: () => Qe,
570
- neverEquals: () => Xe,
571
- peek: () => F,
572
- set: () => $e,
573
- untrack: () => nt,
574
- update: () => et
575
- }), Ye = Re, Xe = ze, Ze = Be, Qe = Ve, P = He, F = Ue, $e = We, et = Ge, tt = Ke, nt = qe;
559
+ if (n) return e.value = t, e.subs.version = e.subs.version + 1 | 0, d.contents = d.contents + 1 | 0, je(e.subs);
560
+ }
561
+ function Ke(e, t) {
562
+ Ge(e, t(e.value));
563
+ }
564
+ var qe = Ne, Je = Pe, Ye = /* @__PURE__ */ t({
565
+ batch: () => nt,
566
+ defaultEquals: () => Xe,
567
+ get: () => N,
568
+ make: () => Qe,
569
+ makeForComputed: () => $e,
570
+ neverEquals: () => Ze,
571
+ peek: () => P,
572
+ set: () => et,
573
+ untrack: () => rt,
574
+ update: () => tt
575
+ }), Xe = ze, Ze = Be, Qe = Ve, $e = He, N = Ue, P = We, et = Ge, tt = Ke, nt = qe, rt = Je;
576
576
  //#endregion
577
577
  //#region node_modules/@rescript/runtime/lib/es6/Stdlib_Dict.js
578
- function rt(e, t) {
578
+ function it(e, t) {
579
579
  delete e[t];
580
580
  }
581
581
  //#endregion
582
582
  //#region node_modules/rescript-signals/src/signals/Computed.res.mjs
583
- function it(e, t) {
583
+ function at(e, t) {
584
584
  let n = l(), r = (e, t) => !1, i = { contents: void 0 }, a = f(() => {
585
585
  let t = i.contents;
586
586
  t.value = e(), t.subs.version = t.subs.version + 1 | 0;
587
- }, !1), o = S.contents;
588
- S.contents = a;
587
+ }, !1), o = x.contents;
588
+ x.contents = a;
589
589
  let s = e();
590
- S.contents = o;
590
+ x.contents = o;
591
591
  let c = {
592
592
  id: n,
593
593
  value: s,
@@ -597,7 +597,7 @@ function it(e, t) {
597
597
  };
598
598
  return i.contents = c, a.lastGlobalVersion = d.contents, g(a), c;
599
599
  }
600
- function at(e, t, n) {
600
+ function ot(e, t, n) {
601
601
  let r = l(), i = { contents: void 0 }, a = f(() => {
602
602
  let t = i.contents, n = t.value, r = e(), a;
603
603
  try {
@@ -609,10 +609,10 @@ function at(e, t, n) {
609
609
  t.value = r, t.subs.version = t.subs.version + 1 | 0;
610
610
  return;
611
611
  }
612
- }, !0), o = S.contents;
613
- S.contents = a;
612
+ }, !0), o = x.contents;
613
+ x.contents = a;
614
614
  let s = e();
615
- S.contents = o;
615
+ x.contents = o;
616
616
  let c = {
617
617
  id: r,
618
618
  value: s,
@@ -622,31 +622,31 @@ function at(e, t, n) {
622
622
  };
623
623
  return i.contents = c, a.lastGlobalVersion = d.contents, g(a), c;
624
624
  }
625
- function ot(e, t, n) {
626
- return n === void 0 ? it(e, t) : at(e, n, t);
625
+ function st(e, t, n) {
626
+ return n === void 0 ? at(e, t) : ot(e, n, t);
627
627
  }
628
- function st(e) {
629
- de(e.subs);
628
+ function ct(e) {
629
+ fe(e.subs);
630
630
  }
631
631
  //#endregion
632
632
  //#region src/Computed.res.mjs
633
- var ct = /* @__PURE__ */ t({
634
- dispose: () => dt,
635
- make: () => I,
636
- makeWithEquals: () => ut,
637
- makeWithoutEquals: () => lt
638
- }), lt = it, ut = at, I = ot, dt = st;
633
+ var lt = /* @__PURE__ */ t({
634
+ dispose: () => ft,
635
+ make: () => F,
636
+ makeWithEquals: () => dt,
637
+ makeWithoutEquals: () => ut
638
+ }), ut = at, dt = ot, F = st, ft = ct;
639
639
  //#endregion
640
640
  //#region node_modules/@rescript/runtime/lib/es6/Stdlib_Option.js
641
- function ft(e, t) {
641
+ function pt(e, t) {
642
642
  return e === void 0 ? t : o(e);
643
643
  }
644
- function pt(e) {
644
+ function mt(e) {
645
645
  return e !== void 0;
646
646
  }
647
647
  //#endregion
648
648
  //#region src/RuntimeAttr.res.mjs
649
- var mt = [
649
+ var ht = [
650
650
  "checked",
651
651
  "disabled",
652
652
  "required",
@@ -661,28 +661,28 @@ var mt = [
661
661
  "spellcheck",
662
662
  "autofocus"
663
663
  ];
664
- function ht(e) {
665
- return mt.includes(e);
664
+ function gt(e) {
665
+ return ht.includes(e);
666
666
  }
667
- function L(e) {
667
+ function I(e) {
668
668
  return e ? "true" : "false";
669
669
  }
670
- function gt(e) {
670
+ function _t(e) {
671
671
  return e === "true";
672
672
  }
673
673
  //#endregion
674
674
  //#region src/RuntimeDom.res.mjs
675
- var _t = "http://www.w3.org/2000/svg", vt = /* @__PURE__ */ "svg.path.circle.ellipse.line.polygon.polyline.rect.g.defs.clipPath.mask.pattern.marker.symbol.use.text.tspan.image.foreignObject.linearGradient.radialGradient.stop.filter.feBlend.feColorMatrix.feComposite.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.animate.animateTransform.desc.title.metadata".split("."), yt = {};
676
- vt.forEach((e) => {
677
- yt[e] = !0;
675
+ var vt = "http://www.w3.org/2000/svg", yt = /* @__PURE__ */ "svg.path.circle.ellipse.line.polygon.polyline.rect.g.defs.clipPath.mask.pattern.marker.symbol.use.text.tspan.image.foreignObject.linearGradient.radialGradient.stop.filter.feBlend.feColorMatrix.feComposite.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.animate.animateTransform.desc.title.metadata".split("."), bt = {};
676
+ yt.forEach((e) => {
677
+ bt[e] = !0;
678
678
  });
679
- function bt(e) {
679
+ function xt(e) {
680
680
  return Array.from(e.childNodes);
681
681
  }
682
- function xt(e) {
683
- return pt(yt[e]) ? document.createElementNS(_t, e) : document.createElement(e);
682
+ function St(e) {
683
+ return mt(bt[e]) ? document.createElementNS(vt, e) : document.createElement(e);
684
684
  }
685
- function St(e, t, n) {
685
+ function L(e, t, n) {
686
686
  switch (t) {
687
687
  case "checked":
688
688
  e.checked = n === "true";
@@ -694,7 +694,7 @@ function St(e, t, n) {
694
694
  e.value = n;
695
695
  return;
696
696
  default:
697
- ht(t) ? gt(n) ? e.setAttribute(t, "") : e.removeAttribute(t) : e.setAttribute(t, n);
697
+ gt(t) ? _t(n) ? e.setAttribute(t, "") : e.removeAttribute(t) : e.setAttribute(t, n);
698
698
  return;
699
699
  }
700
700
  }
@@ -717,7 +717,7 @@ function B(e, t) {
717
717
  e.disposers.push(t);
718
718
  }
719
719
  function wt(e) {
720
- e.disposers.forEach((e) => e.dispose()), e.computeds.forEach(dt);
720
+ e.disposers.forEach((e) => e.dispose()), e.computeds.forEach(ft);
721
721
  }
722
722
  function V(e, t) {
723
723
  e.__xote_owner__ = t;
@@ -751,44 +751,48 @@ function At(e, t) {
751
751
  //#endregion
752
752
  //#region src/View.res.mjs
753
753
  var jt = /* @__PURE__ */ t({
754
- $$null: () => dn,
754
+ $$null: () => fn,
755
755
  Attr: () => It,
756
756
  Attributes: () => Ft,
757
- Bool: () => Cn,
758
- Core: () => En,
759
- DOM: () => wn,
760
- Float: () => bn,
761
- For: () => en,
762
- Int: () => vn,
763
- KeyedFor: () => nn,
764
- Maybe: () => cn,
765
- Reactivity: () => Tn,
757
+ Bool: () => Dn,
758
+ Core: () => An,
759
+ DOM: () => On,
760
+ Float: () => wn,
761
+ For: () => tn,
762
+ Int: () => Sn,
763
+ KeyedFor: () => rn,
764
+ Maybe: () => ln,
765
+ Reactivity: () => kn,
766
766
  Render: () => Vt,
767
- Show: () => an,
768
- Text: () => gn,
769
- Value: () => un,
767
+ Show: () => on,
768
+ Text: () => bn,
769
+ Value: () => dn,
770
770
  attr: () => q,
771
771
  bool: () => Jt,
772
+ child: () => vn,
772
773
  childrenToArray: () => W,
773
- computedAttr: () => Dn,
774
- each: () => Zt,
775
- eachWithKey: () => Qt,
774
+ computedAttr: () => jn,
775
+ each: () => Qt,
776
+ eachWithKey: () => $t,
776
777
  element: () => G,
777
- empty: () => On,
778
+ empty: () => Mn,
778
779
  float: () => qt,
779
780
  fragment: () => Yt,
780
781
  int: () => Kt,
781
- isReactiveProp: () => kn,
782
- mount: () => fn,
783
- mountById: () => pn,
782
+ isNode: () => gn,
783
+ isReactiveProp: () => Nn,
784
+ mount: () => pn,
785
+ mountById: () => mn,
784
786
  renderValuePrimitiveProps: () => K,
785
787
  signalAttr: () => J,
786
788
  signalFloat: () => Gt,
787
789
  signalFragment: () => Xt,
788
790
  signalInt: () => Wt,
789
791
  signalText: () => Ut,
792
+ stringifyChild: () => _n,
790
793
  text: () => Ht,
791
- valuePrimitive: () => mn
794
+ tracked: () => Zt,
795
+ valuePrimitive: () => hn
792
796
  });
793
797
  function Mt(e, t) {
794
798
  return [e, {
@@ -819,7 +823,7 @@ var Ft = {
819
823
  };
820
824
  function H(e) {
821
825
  let t = Tt(e);
822
- t !== void 0 && wt(t), bt(e).forEach(H);
826
+ t !== void 0 && wt(t), xt(e).forEach(H);
823
827
  }
824
828
  function Lt(e, t) {
825
829
  if (e === t) return !0;
@@ -833,7 +837,7 @@ function Lt(e, t) {
833
837
  }
834
838
  function Rt(e) {
835
839
  Object.keys(e).forEach((t) => {
836
- rt(e, t);
840
+ it(e, t);
837
841
  });
838
842
  }
839
843
  function zt(e) {
@@ -858,7 +862,7 @@ function Bt(e, t, n) {
858
862
  }), s.forEach((e) => {
859
863
  let n = t[e];
860
864
  if (n !== void 0) {
861
- H(n.element), n.element.remove(), rt(t, e);
865
+ H(n.element), n.element.remove(), it(t, e);
862
866
  return;
863
867
  }
864
868
  });
@@ -919,21 +923,21 @@ function U(e) {
919
923
  let t = e;
920
924
  switch (t.TAG) {
921
925
  case "Element":
922
- let n = t.children, r = t.events, i = t.attrs, a = t.tag, o = xt(a), s = R();
926
+ let n = t.children, r = t.events, i = t.attrs, a = t.tag, o = St(a), s = R();
923
927
  return V(o, s), z(s, () => {
924
928
  let e = (e) => a === "select" ? e[0] === "value" : !1, t = (e) => {
925
929
  let t = e[1], n = e[0];
926
930
  switch (t.TAG) {
927
- case "Static": return St(o, n, t._0);
931
+ case "Static": return L(o, n, t._0);
928
932
  case "SignalValue":
929
933
  let e = t._0;
930
- return St(o, n, F(e)), B(s, N(() => {
931
- St(o, n, P(e));
934
+ return L(o, n, P(e)), B(s, M(() => {
935
+ L(o, n, N(e));
932
936
  }, void 0));
933
937
  case "Compute":
934
938
  let r = t._0;
935
- return B(s, N(() => {
936
- St(o, n, r());
939
+ return B(s, M(() => {
940
+ L(o, n, r());
937
941
  }, void 0));
938
942
  }
939
943
  };
@@ -950,10 +954,10 @@ function U(e) {
950
954
  }), o;
951
955
  case "Text": return document.createTextNode(t._0);
952
956
  case "SignalText":
953
- let c = t._0, l = document.createTextNode(F(c)), u = R();
957
+ let c = t._0, l = document.createTextNode(P(c)), u = R();
954
958
  return V(l, u), z(u, () => {
955
- B(u, N(() => {
956
- l.textContent = P(c);
959
+ B(u, M(() => {
960
+ l.textContent = N(c);
957
961
  }, void 0));
958
962
  }), l;
959
963
  case "Fragment":
@@ -965,29 +969,29 @@ function U(e) {
965
969
  case "SignalFragment":
966
970
  let ee = t._0, f = R(), p = document.createElement("div");
967
971
  p.setAttribute("style", "display: contents"), V(p, f);
968
- let te = {};
972
+ let m = {};
969
973
  return z(f, () => {
970
- B(f, N(() => {
971
- let e = P(ee), t = zt(e);
972
- t === void 0 ? (Rt(te), bt(p).forEach(H), p.innerHTML = "", e.forEach((e) => {
974
+ B(f, M(() => {
975
+ let e = N(ee), t = zt(e);
976
+ t === void 0 ? (Rt(m), xt(p).forEach(H), p.innerHTML = "", e.forEach((e) => {
973
977
  let t = U(e);
974
978
  p.appendChild(t);
975
- })) : Bt(t, te, p);
979
+ })) : Bt(t, m, p);
976
980
  }, void 0));
977
981
  }), p;
978
982
  case "Keyed":
979
983
  e = t.child;
980
984
  continue;
981
985
  case "LazyComponent":
982
- let ne = R(), re = U(z(ne, t._0));
983
- return V(re, ne), re;
986
+ let te = R(), ne = U(z(te, t._0));
987
+ return V(ne, te), ne;
984
988
  case "KeyedList":
985
- let m = t.renderItem, h = t.keyFn, ie = t.signal, g = R(), ae = document.createComment(" keyed-list-start "), _ = document.createComment(" keyed-list-end ");
989
+ let re = t.renderItem, h = t.keyFn, ie = t.signal, g = R(), ae = document.createComment(" keyed-list-start "), _ = document.createComment(" keyed-list-end ");
986
990
  V(ae, g);
987
991
  let v = {}, y = () => {
988
992
  let e = _.parentNode;
989
993
  if (e == null) return;
990
- let t = P(ie), n = {};
994
+ let t = N(ie), n = {};
991
995
  t.forEach((e) => {
992
996
  n[h(e)] = e;
993
997
  });
@@ -997,7 +1001,7 @@ function U(e) {
997
1001
  }), r.forEach((e) => {
998
1002
  let t = v[e];
999
1003
  if (t !== void 0) {
1000
- H(t.element), t.element.remove(), rt(v, e);
1004
+ H(t.element), t.element.remove(), it(v, e);
1001
1005
  return;
1002
1006
  }
1003
1007
  });
@@ -1010,7 +1014,7 @@ function U(e) {
1010
1014
  let n = {
1011
1015
  key: t,
1012
1016
  item: e,
1013
- element: U(m(e))
1017
+ element: U(re(e))
1014
1018
  };
1015
1019
  i.push(n), v[t] = n;
1016
1020
  return;
@@ -1021,7 +1025,7 @@ function U(e) {
1021
1025
  let r = {
1022
1026
  key: t,
1023
1027
  item: e,
1024
- element: U(m(e))
1028
+ element: U(re(e))
1025
1029
  };
1026
1030
  i.push(r), v[t] = r;
1027
1031
  });
@@ -1040,18 +1044,18 @@ function U(e) {
1040
1044
  o.contents = n.nextSibling;
1041
1045
  return;
1042
1046
  }
1043
- ft(a[t.key], !1) ? (H(n), e.replaceChild(t.element, n), o.contents = t.element.nextSibling) : (e.insertBefore(t.element, n), o.contents = t.element.nextSibling);
1047
+ pt(a[t.key], !1) ? (H(n), e.replaceChild(t.element, n), o.contents = t.element.nextSibling) : (e.insertBefore(t.element, n), o.contents = t.element.nextSibling);
1044
1048
  });
1045
1049
  }, b = document.createDocumentFragment();
1046
- return b.appendChild(ae), F(ie).forEach((e) => {
1047
- let t = h(e), n = U(m(e));
1050
+ return b.appendChild(ae), P(ie).forEach((e) => {
1051
+ let t = h(e), n = U(re(e));
1048
1052
  v[t] = {
1049
1053
  key: t,
1050
1054
  item: e,
1051
1055
  element: n
1052
1056
  }, b.appendChild(n);
1053
1057
  }), b.appendChild(_), z(g, () => {
1054
- B(g, N(() => {
1058
+ B(g, M(() => {
1055
1059
  y();
1056
1060
  }, void 0));
1057
1061
  }), b;
@@ -1075,19 +1079,19 @@ function Ht(e) {
1075
1079
  function Ut(e) {
1076
1080
  return {
1077
1081
  TAG: "SignalText",
1078
- _0: I(e, void 0, void 0)
1082
+ _0: F(e, void 0, void 0)
1079
1083
  };
1080
1084
  }
1081
1085
  function Wt(e) {
1082
1086
  return {
1083
1087
  TAG: "SignalText",
1084
- _0: I(() => e().toString(), void 0, void 0)
1088
+ _0: F(() => e().toString(), void 0, void 0)
1085
1089
  };
1086
1090
  }
1087
1091
  function Gt(e) {
1088
1092
  return {
1089
1093
  TAG: "SignalText",
1090
- _0: I(() => e().toString(), void 0, void 0)
1094
+ _0: F(() => e().toString(), void 0, void 0)
1091
1095
  };
1092
1096
  }
1093
1097
  function Kt(e) {
@@ -1120,16 +1124,22 @@ function Xt(e) {
1120
1124
  _0: e
1121
1125
  };
1122
1126
  }
1127
+ function Zt(e) {
1128
+ return {
1129
+ TAG: "SignalFragment",
1130
+ _0: F(() => [e()], void 0, void 0)
1131
+ };
1132
+ }
1123
1133
  function W(e) {
1124
1134
  return e === void 0 ? [] : e.TAG === "Fragment" ? e._0 : [e];
1125
1135
  }
1126
- function Zt(e, t) {
1136
+ function Qt(e, t) {
1127
1137
  return {
1128
1138
  TAG: "SignalFragment",
1129
- _0: I(() => P(e).map(t), void 0, void 0)
1139
+ _0: F(() => N(e).map(t), void 0, void 0)
1130
1140
  };
1131
1141
  }
1132
- function Qt(e, t, n) {
1142
+ function $t(e, t, n) {
1133
1143
  return {
1134
1144
  TAG: "KeyedList",
1135
1145
  signal: e,
@@ -1137,11 +1147,11 @@ function Qt(e, t, n) {
1137
1147
  renderItem: n
1138
1148
  };
1139
1149
  }
1140
- function $t(e) {
1150
+ function en(e) {
1141
1151
  let t = e.each, n = e.by;
1142
1152
  if (t.TAG === "Reactive") {
1143
1153
  let r = t._0;
1144
- return n === void 0 ? Zt(r, e.render) : {
1154
+ return n === void 0 ? Qt(r, e.render) : {
1145
1155
  TAG: "KeyedList",
1146
1156
  signal: r,
1147
1157
  keyFn: n,
@@ -1162,8 +1172,8 @@ function $t(e) {
1162
1172
  }))
1163
1173
  };
1164
1174
  }
1165
- var en = { make: $t };
1166
- function tn(e) {
1175
+ var tn = { make: en };
1176
+ function nn(e) {
1167
1177
  let t = e.each;
1168
1178
  return t.TAG === "Reactive" ? {
1169
1179
  TAG: "KeyedList",
@@ -1180,8 +1190,8 @@ function tn(e) {
1180
1190
  }))
1181
1191
  };
1182
1192
  }
1183
- var nn = { make: tn };
1184
- function rn(e) {
1193
+ var rn = { make: nn };
1194
+ function an(e) {
1185
1195
  let t = e.when_;
1186
1196
  if (t.TAG !== "Reactive") return t._0 ? {
1187
1197
  TAG: "Fragment",
@@ -1193,39 +1203,39 @@ function rn(e) {
1193
1203
  let n = t._0;
1194
1204
  return {
1195
1205
  TAG: "SignalFragment",
1196
- _0: I(() => P(n) ? W(e.children) : W(e.fallback), void 0, void 0)
1206
+ _0: F(() => N(n) ? W(e.children) : W(e.fallback), void 0, void 0)
1197
1207
  };
1198
1208
  }
1199
- var an = { make: rn };
1200
- function on(e, t) {
1209
+ var on = { make: an };
1210
+ function sn(e, t) {
1201
1211
  return t === void 0 ? W(e.fallback) : [e.render(o(t))];
1202
1212
  }
1203
- function sn(e) {
1213
+ function cn(e) {
1204
1214
  let t = e.value;
1205
1215
  if (t.TAG !== "Reactive") return {
1206
1216
  TAG: "Fragment",
1207
- _0: on(e, t._0)
1217
+ _0: sn(e, t._0)
1208
1218
  };
1209
1219
  let n = t._0;
1210
1220
  return {
1211
1221
  TAG: "SignalFragment",
1212
- _0: I(() => on(e, P(n)), void 0, void 0)
1222
+ _0: F(() => sn(e, N(n)), void 0, void 0)
1213
1223
  };
1214
1224
  }
1215
- var cn = {
1216
- renderValue: on,
1217
- make: sn
1225
+ var ln = {
1226
+ renderValue: sn,
1227
+ make: cn
1218
1228
  };
1219
- function ln(e) {
1229
+ function un(e) {
1220
1230
  let t = e.value;
1221
1231
  if (t.TAG !== "Reactive") return e.render(t._0);
1222
1232
  let n = t._0;
1223
1233
  return {
1224
1234
  TAG: "SignalFragment",
1225
- _0: I(() => [e.render(P(n))], void 0, void 0)
1235
+ _0: F(() => [e.render(N(n))], void 0, void 0)
1226
1236
  };
1227
1237
  }
1228
- var un = { make: ln };
1238
+ var dn = { make: un };
1229
1239
  function G(e, t, n, r, i) {
1230
1240
  return {
1231
1241
  TAG: "Element",
@@ -1235,24 +1245,24 @@ function G(e, t, n, r, i) {
1235
1245
  children: r === void 0 ? [] : r
1236
1246
  };
1237
1247
  }
1238
- function dn() {
1248
+ function fn() {
1239
1249
  return {
1240
1250
  TAG: "Text",
1241
1251
  _0: ""
1242
1252
  };
1243
1253
  }
1244
- function fn(e, t) {
1254
+ function pn(e, t) {
1245
1255
  let n = U(e);
1246
1256
  t.appendChild(n);
1247
1257
  }
1248
- function pn(e, t) {
1258
+ function mn(e, t) {
1249
1259
  let n = document.getElementById(t);
1250
1260
  if (n == null) {
1251
1261
  console.error("Container element not found: " + t);
1252
1262
  return;
1253
- } else return fn(e, n);
1263
+ } else return pn(e, n);
1254
1264
  }
1255
- function mn(e, t) {
1265
+ function hn(e, t) {
1256
1266
  if (Dt(e)) {
1257
1267
  if (e.TAG !== "Reactive") return {
1258
1268
  TAG: "Text",
@@ -1261,7 +1271,7 @@ function mn(e, t) {
1261
1271
  let n = e._0;
1262
1272
  return {
1263
1273
  TAG: "SignalText",
1264
- _0: I(() => t(P(n)), void 0, void 0)
1274
+ _0: F(() => t(N(n)), void 0, void 0)
1265
1275
  };
1266
1276
  }
1267
1277
  let n = r.classify(e);
@@ -1272,7 +1282,7 @@ function mn(e, t) {
1272
1282
  switch (n.TAG) {
1273
1283
  case "Object": return {
1274
1284
  TAG: "SignalText",
1275
- _0: I(() => t(P(e)), void 0, void 0)
1285
+ _0: F(() => t(N(e)), void 0, void 0)
1276
1286
  };
1277
1287
  case "Function": return Ut(() => t(e()));
1278
1288
  default: return {
@@ -1286,108 +1296,151 @@ function K(e, t) {
1286
1296
  return n === void 0 ? r === void 0 ? {
1287
1297
  TAG: "Text",
1288
1298
  _0: ""
1289
- } : mn(o(r), t) : mn(o(n), t);
1299
+ } : hn(o(r), t) : hn(o(n), t);
1300
+ }
1301
+ var gn = (function(e) {
1302
+ if (typeof e != "object" || !e || typeof e.TAG != "string") return !1;
1303
+ switch (e.TAG) {
1304
+ case "Element":
1305
+ case "Text":
1306
+ case "SignalText":
1307
+ case "Fragment":
1308
+ case "SignalFragment":
1309
+ case "Keyed":
1310
+ case "LazyComponent":
1311
+ case "KeyedList": return !0;
1312
+ default: return !1;
1313
+ }
1314
+ }), _n = (function(e) {
1315
+ return e == null ? "" : String(e);
1316
+ });
1317
+ function vn(e) {
1318
+ if (gn(e)) return e;
1319
+ let t = r.classify(e);
1320
+ if (typeof t != "object") return {
1321
+ TAG: "Text",
1322
+ _0: ""
1323
+ };
1324
+ switch (t.TAG) {
1325
+ case "Object": return {
1326
+ TAG: "SignalText",
1327
+ _0: F(() => _n(N(e)), void 0, void 0)
1328
+ };
1329
+ case "Function":
1330
+ let t = F(e, void 0, void 0);
1331
+ return gn(P(t)) ? {
1332
+ TAG: "SignalFragment",
1333
+ _0: F(() => [N(t)], void 0, void 0)
1334
+ } : {
1335
+ TAG: "SignalText",
1336
+ _0: F(() => _n(N(t)), void 0, void 0)
1337
+ };
1338
+ default: return {
1339
+ TAG: "Text",
1340
+ _0: _n(e)
1341
+ };
1342
+ }
1290
1343
  }
1291
- function hn(e) {
1344
+ function yn(e) {
1292
1345
  return K(e, (e) => e);
1293
1346
  }
1294
- var gn = { make: hn };
1295
- function _n(e) {
1347
+ var bn = { make: yn };
1348
+ function xn(e) {
1296
1349
  return K(e, (e) => e.toString());
1297
1350
  }
1298
- var vn = { make: _n };
1299
- function yn(e) {
1351
+ var Sn = { make: xn };
1352
+ function Cn(e) {
1300
1353
  return K(e, (e) => e.toString());
1301
1354
  }
1302
- var bn = { make: yn };
1303
- function xn(e) {
1355
+ var wn = { make: Cn };
1356
+ function Tn(e) {
1304
1357
  return e ? "true" : "false";
1305
1358
  }
1306
- function Sn(e) {
1307
- return K(e, xn);
1308
- }
1309
- var Cn = {
1310
- toString: xn,
1311
- make: Sn
1312
- }, wn, Tn, En, q = Mt, J = Nt, Dn = Pt, On = dn, kn = Dt, An = /* @__PURE__ */ t({
1313
- a: () => Vn,
1314
- button: () => Nn,
1315
- div: () => jn,
1316
- h1: () => Fn,
1317
- h2: () => In,
1318
- h3: () => Ln,
1319
- input: () => Pn,
1320
- li: () => Bn,
1321
- p: () => Rn,
1322
- span: () => Mn,
1323
- ul: () => zn
1359
+ function En(e) {
1360
+ return K(e, Tn);
1361
+ }
1362
+ var Dn = {
1363
+ toString: Tn,
1364
+ make: En
1365
+ }, On, kn, An, q = Mt, J = Nt, jn = Pt, Mn = fn, Nn = Dt, Pn = /* @__PURE__ */ t({
1366
+ a: () => Gn,
1367
+ button: () => Ln,
1368
+ div: () => Fn,
1369
+ h1: () => zn,
1370
+ h2: () => Bn,
1371
+ h3: () => Vn,
1372
+ input: () => Rn,
1373
+ li: () => Wn,
1374
+ p: () => Hn,
1375
+ span: () => In,
1376
+ ul: () => Un
1324
1377
  });
1325
- function jn(e, t, n, r) {
1378
+ function Fn(e, t, n, r) {
1326
1379
  return G("div", e, t, n, void 0);
1327
1380
  }
1328
- function Mn(e, t, n, r) {
1381
+ function In(e, t, n, r) {
1329
1382
  return G("span", e, t, n, void 0);
1330
1383
  }
1331
- function Nn(e, t, n, r) {
1384
+ function Ln(e, t, n, r) {
1332
1385
  return G("button", e, t, n, void 0);
1333
1386
  }
1334
- function Pn(e, t, n) {
1387
+ function Rn(e, t, n) {
1335
1388
  return G("input", e, t, void 0, void 0);
1336
1389
  }
1337
- function Fn(e, t, n, r) {
1390
+ function zn(e, t, n, r) {
1338
1391
  return G("h1", e, t, n, void 0);
1339
1392
  }
1340
- function In(e, t, n, r) {
1393
+ function Bn(e, t, n, r) {
1341
1394
  return G("h2", e, t, n, void 0);
1342
1395
  }
1343
- function Ln(e, t, n, r) {
1396
+ function Vn(e, t, n, r) {
1344
1397
  return G("h3", e, t, n, void 0);
1345
1398
  }
1346
- function Rn(e, t, n, r) {
1399
+ function Hn(e, t, n, r) {
1347
1400
  return G("p", e, t, n, void 0);
1348
1401
  }
1349
- function zn(e, t, n, r) {
1402
+ function Un(e, t, n, r) {
1350
1403
  return G("ul", e, t, n, void 0);
1351
1404
  }
1352
- function Bn(e, t, n, r) {
1405
+ function Wn(e, t, n, r) {
1353
1406
  return G("li", e, t, n, void 0);
1354
1407
  }
1355
- function Vn(e, t, n, r) {
1408
+ function Gn(e, t, n, r) {
1356
1409
  return G("a", e, t, n, void 0);
1357
1410
  }
1358
1411
  //#endregion
1359
1412
  //#region src/RuntimeJsxProp.res.mjs
1360
1413
  function Y(e, t) {
1361
- return Dt(t) ? t.TAG === "Reactive" ? J(e, t._0) : q(e, t._0) : Ot(t) ? Dn(e, t) : kt(t) ? J(e, t) : q(e, t);
1414
+ return Dt(t) ? t.TAG === "Reactive" ? J(e, t._0) : q(e, t._0) : Ot(t) ? jn(e, t) : kt(t) ? J(e, t) : q(e, t);
1362
1415
  }
1363
1416
  function X(e, t) {
1364
1417
  if (Dt(t)) {
1365
- if (t.TAG !== "Reactive") return q(e, L(t._0));
1418
+ if (t.TAG !== "Reactive") return q(e, I(t._0));
1366
1419
  let n = t._0;
1367
- return J(e, I(() => L(P(n)), void 0, void 0));
1420
+ return J(e, F(() => I(N(n)), void 0, void 0));
1368
1421
  }
1369
- return Ot(t) ? Dn(e, () => L(t())) : kt(t) ? J(e, I(() => L(P(t)), void 0, void 0)) : q(e, L(t));
1422
+ return Ot(t) ? jn(e, () => I(t())) : kt(t) ? J(e, F(() => I(N(t)), void 0, void 0)) : q(e, I(t));
1370
1423
  }
1371
1424
  //#endregion
1372
1425
  //#region src/XoteJSX.res.mjs
1373
- var Hn = /* @__PURE__ */ t({
1374
- $$null: () => qn,
1375
- Elements: () => er,
1376
- Prop: () => tr,
1377
- array: () => Kn,
1378
- jsx: () => Un,
1379
- jsxFragment: () => Gn,
1380
- jsxKeyed: () => Wn,
1381
- jsxs: () => nr,
1382
- jsxsKeyed: () => rr
1426
+ var Kn = /* @__PURE__ */ t({
1427
+ $$null: () => Zn,
1428
+ Elements: () => ir,
1429
+ Prop: () => ar,
1430
+ array: () => Xn,
1431
+ jsx: () => qn,
1432
+ jsxFragment: () => Yn,
1433
+ jsxKeyed: () => Jn,
1434
+ jsxs: () => or,
1435
+ jsxsKeyed: () => sr
1383
1436
  });
1384
- function Un(e, t) {
1437
+ function qn(e, t) {
1385
1438
  return {
1386
1439
  TAG: "LazyComponent",
1387
1440
  _0: () => e(t)
1388
1441
  };
1389
1442
  }
1390
- function Wn(e, t, n, r) {
1443
+ function Jn(e, t, n, r) {
1391
1444
  return n === void 0 ? {
1392
1445
  TAG: "LazyComponent",
1393
1446
  _0: () => e(t)
@@ -1401,12 +1454,12 @@ function Wn(e, t, n, r) {
1401
1454
  }
1402
1455
  };
1403
1456
  }
1404
- function Gn(e) {
1457
+ function Yn(e) {
1405
1458
  let t = e.children;
1406
1459
  return t === void 0 ? Yt([]) : t;
1407
1460
  }
1408
- var Kn = Yt;
1409
- function qn() {
1461
+ var Xn = Yt;
1462
+ function Zn() {
1410
1463
  return Ht("");
1411
1464
  }
1412
1465
  function Z(e, t, n, r) {
@@ -1421,7 +1474,7 @@ function Q(e, t, n) {
1421
1474
  return;
1422
1475
  }
1423
1476
  }
1424
- function Jn(e) {
1477
+ function Qn(e) {
1425
1478
  let t = [];
1426
1479
  Z(t, e.id, "id", Y), Z(t, e.class, "class", Y), Z(t, e.style, "style", Y), Z(t, e.title, "title", Y), Z(t, e.type, "type", Y), Z(t, e.name, "name", Y), Z(t, e.value, "value", Y), Z(t, e.placeholder, "placeholder", Y), Z(t, e.disabled, "disabled", X), Z(t, e.checked, "checked", X), Z(t, e.required, "required", X), Z(t, e.readOnly, "readonly", X), Q(t, e.maxLength, "maxlength"), Q(t, e.minLength, "minlength"), Z(t, e.min, "min", Y), Z(t, e.max, "max", Y), Z(t, e.step, "step", Y), Z(t, e.pattern, "pattern", Y), Z(t, e.autoComplete, "autocomplete", Y), Z(t, e.multiple, "multiple", X), Z(t, e.accept, "accept", Y), Q(t, e.rows, "rows"), Q(t, e.cols, "cols"), Z(t, e.autofocus, "autofocus", X), Z(t, e.action, "action", Y), Z(t, e.method, "method", Y), Z(t, e.for, "for", Y), Z(t, e.href, "href", Y), Z(t, e.target, "target", Y), Z(t, e.src, "src", Y), Z(t, e.alt, "alt", Y), Z(t, e.width, "width", Y), Z(t, e.height, "height", Y), Z(t, e.draggable, "draggable", X), Z(t, e.hidden, "hidden", X), Z(t, e.contentEditable, "contenteditable", X), Z(t, e.spellcheck, "spellcheck", X), Z(t, e.role, "role", Y), Q(t, e.tabIndex, "tabindex"), Z(t, e["aria-label"], "aria-label", Y), Z(t, e["aria-hidden"], "aria-hidden", X), Z(t, e["aria-expanded"], "aria-expanded", X), Z(t, e["aria-selected"], "aria-selected", X), Z(t, e.xmlns, "xmlns", Y), Z(t, e["xmlns:xlink"], "xmlns:xlink", Y), Z(t, e.version, "version", Y), Z(t, e.viewBox, "viewBox", Y), Z(t, e.preserveAspectRatio, "preserveAspectRatio", Y), Z(t, e.d, "d", Y), Z(t, e.pathLength, "pathLength", Y), Z(t, e.cx, "cx", Y), Z(t, e.cy, "cy", Y), Z(t, e.r, "r", Y), Z(t, e.rx, "rx", Y), Z(t, e.ry, "ry", Y), Z(t, e.x, "x", Y), Z(t, e.y, "y", Y), Z(t, e.x1, "x1", Y), Z(t, e.y1, "y1", Y), Z(t, e.x2, "x2", Y), Z(t, e.y2, "y2", Y), Z(t, e.fx, "fx", Y), Z(t, e.fy, "fy", Y), Z(t, e.dx, "dx", Y), Z(t, e.dy, "dy", Y), Z(t, e.points, "points", Y), Z(t, e.transform, "transform", Y), Z(t, e["transform-origin"], "transform-origin", Y), Z(t, e.fill, "fill", Y), Z(t, e["fill-opacity"], "fill-opacity", Y), Z(t, e["fill-rule"], "fill-rule", Y), Z(t, e.stroke, "stroke", Y), Z(t, e["stroke-width"], "stroke-width", Y), Z(t, e["stroke-linecap"], "stroke-linecap", Y), Z(t, e["stroke-linejoin"], "stroke-linejoin", Y), Z(t, e["stroke-dasharray"], "stroke-dasharray", Y), Z(t, e["stroke-dashoffset"], "stroke-dashoffset", Y), Z(t, e["stroke-opacity"], "stroke-opacity", Y), Z(t, e["stroke-miterlimit"], "stroke-miterlimit", Y), Z(t, e.opacity, "opacity", Y), Z(t, e.color, "color", Y), Z(t, e.visibility, "visibility", Y), Z(t, e["vector-effect"], "vector-effect", Y), Z(t, e["pointer-events"], "pointer-events", Y), Z(t, e["clip-path"], "clip-path", Y), Z(t, e["clip-rule"], "clip-rule", Y), Z(t, e.mask, "mask", Y), Z(t, e.filter, "filter", Y), Z(t, e["text-anchor"], "text-anchor", Y), Z(t, e["dominant-baseline"], "dominant-baseline", Y), Z(t, e["font-family"], "font-family", Y), Z(t, e["font-size"], "font-size", Y), Z(t, e["font-weight"], "font-weight", Y), Z(t, e["letter-spacing"], "letter-spacing", Y), Z(t, e["word-spacing"], "word-spacing", Y), Z(t, e["text-decoration"], "text-decoration", Y), Z(t, e.offset, "offset", Y), Z(t, e["stop-color"], "stop-color", Y), Z(t, e["stop-opacity"], "stop-opacity", Y), Z(t, e.gradientUnits, "gradientUnits", Y), Z(t, e.gradientTransform, "gradientTransform", Y), Z(t, e.spreadMethod, "spreadMethod", Y), Z(t, e["marker-start"], "marker-start", Y), Z(t, e["marker-mid"], "marker-mid", Y), Z(t, e["marker-end"], "marker-end", Y), Z(t, e["xlink:href"], "xlink:href", Y);
1427
1480
  let n = e.data;
@@ -1435,65 +1488,65 @@ function $(e, t, n) {
1435
1488
  return;
1436
1489
  }
1437
1490
  }
1438
- function Yn(e) {
1491
+ function $n(e) {
1439
1492
  let t = [];
1440
1493
  return $(t, e.onClick, "click"), $(t, e.onInput, "input"), $(t, e.onChange, "change"), $(t, e.onSubmit, "submit"), $(t, e.onFocus, "focus"), $(t, e.onBlur, "blur"), $(t, e.onKeyDown, "keydown"), $(t, e.onKeyUp, "keyup"), $(t, e.onMouseEnter, "mouseenter"), $(t, e.onMouseLeave, "mouseleave"), $(t, e.onMouseDown, "mousedown"), $(t, e.onMouseMove, "mousemove"), $(t, e.onMouseUp, "mouseup"), $(t, e.onContextMenu, "contextmenu"), $(t, e.onPointerDown, "pointerdown"), $(t, e.onPointerMove, "pointermove"), $(t, e.onPointerUp, "pointerup"), $(t, e.onPointerCancel, "pointercancel"), $(t, e.onPointerEnter, "pointerenter"), $(t, e.onPointerLeave, "pointerleave"), $(t, e.onPointerOver, "pointerover"), $(t, e.onPointerOut, "pointerout"), $(t, e.onGotPointerCapture, "gotpointercapture"), $(t, e.onLostPointerCapture, "lostpointercapture"), $(t, e.onDrag, "drag"), $(t, e.onDragStart, "dragstart"), $(t, e.onDragEnd, "dragend"), $(t, e.onDragOver, "dragover"), $(t, e.onDragEnter, "dragenter"), $(t, e.onDragLeave, "dragleave"), $(t, e.onDrop, "drop"), t;
1441
1494
  }
1442
- function Xn(e) {
1495
+ function er(e) {
1443
1496
  let t = e.children;
1444
1497
  return t === void 0 ? [] : t.TAG === "Fragment" ? t._0 : [t];
1445
1498
  }
1446
- function Zn(e, t) {
1499
+ function tr(e, t) {
1447
1500
  return {
1448
1501
  TAG: "Element",
1449
1502
  tag: e,
1450
- attrs: Jn(t),
1451
- events: Yn(t),
1452
- children: Xn(t)
1503
+ attrs: Qn(t),
1504
+ events: $n(t),
1505
+ children: er(t)
1453
1506
  };
1454
1507
  }
1455
- var Qn = Zn;
1456
- function $n(e, t, n, r) {
1457
- return n === void 0 ? Zn(e, t) : {
1508
+ var nr = tr;
1509
+ function rr(e, t, n, r) {
1510
+ return n === void 0 ? tr(e, t) : {
1458
1511
  TAG: "Keyed",
1459
1512
  key: n,
1460
1513
  identity: t,
1461
- child: Zn(e, t)
1514
+ child: tr(e, t)
1462
1515
  };
1463
1516
  }
1464
- var er = {
1517
+ var ir = {
1465
1518
  addAttr: Z,
1466
1519
  addIntAttr: Q,
1467
- propsToAttrs: Jn,
1520
+ propsToAttrs: Qn,
1468
1521
  addEvent: $,
1469
- propsToEvents: Yn,
1470
- getChildren: Xn,
1471
- createElement: Zn,
1472
- jsx: Qn,
1473
- jsxs: Qn,
1474
- jsxKeyed: $n,
1475
- jsxsKeyed: $n
1476
- }, tr, nr = Un, rr = Wn, ir = /* @__PURE__ */ t({
1477
- $$static: () => or,
1478
- get: () => ar,
1479
- reactive: () => sr,
1480
- signal: () => cr
1522
+ propsToEvents: $n,
1523
+ getChildren: er,
1524
+ createElement: tr,
1525
+ jsx: nr,
1526
+ jsxs: nr,
1527
+ jsxKeyed: rr,
1528
+ jsxsKeyed: rr
1529
+ }, ar, or = qn, sr = Jn, cr = /* @__PURE__ */ t({
1530
+ $$static: () => ur,
1531
+ get: () => lr,
1532
+ reactive: () => dr,
1533
+ signal: () => fr
1481
1534
  });
1482
- function ar(e) {
1483
- return e.TAG === "Reactive" ? P(e._0) : e._0;
1535
+ function lr(e) {
1536
+ return e.TAG === "Reactive" ? N(e._0) : e._0;
1484
1537
  }
1485
- function or(e) {
1538
+ function ur(e) {
1486
1539
  return {
1487
1540
  TAG: "Static",
1488
1541
  _0: e
1489
1542
  };
1490
1543
  }
1491
- function sr(e) {
1544
+ function dr(e) {
1492
1545
  return {
1493
1546
  TAG: "Reactive",
1494
1547
  _0: e
1495
1548
  };
1496
1549
  }
1497
- var cr = sr;
1550
+ var fr = dr;
1498
1551
  //#endregion
1499
- export { ct as Computed, Ie as Effect, An as Html, ir as Prop, Je as Signal, jt as View, Hn as XoteJSX };
1552
+ export { lt as Computed, Le as Effect, Pn as Html, cr as Prop, Ye as Signal, jt as View, Kn as XoteJSX };