elbe-ui 0.2.14 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1308,7 +1308,7 @@ var require_react_development = __commonJS((exports, module) => {
1308
1308
  }
1309
1309
  }
1310
1310
  }
1311
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1311
+ function checkPropTypes(typeSpecs, values, location2, componentName, element) {
1312
1312
  {
1313
1313
  var has = Function.call.bind(hasOwnProperty);
1314
1314
  for (var typeSpecName in typeSpecs) {
@@ -1316,23 +1316,23 @@ var require_react_development = __commonJS((exports, module) => {
1316
1316
  var error$1 = undefined;
1317
1317
  try {
1318
1318
  if (typeof typeSpecs[typeSpecName] !== "function") {
1319
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1319
+ var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1320
1320
  err.name = "Invariant Violation";
1321
1321
  throw err;
1322
1322
  }
1323
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1323
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1324
1324
  } catch (ex) {
1325
1325
  error$1 = ex;
1326
1326
  }
1327
1327
  if (error$1 && !(error$1 instanceof Error)) {
1328
1328
  setCurrentlyValidatingElement(element);
1329
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1329
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
1330
1330
  setCurrentlyValidatingElement(null);
1331
1331
  }
1332
1332
  if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1333
1333
  loggedTypeFailures[error$1.message] = true;
1334
1334
  setCurrentlyValidatingElement(element);
1335
- error("Failed %s type: %s", location, error$1.message);
1335
+ error("Failed %s type: %s", location2, error$1.message);
1336
1336
  setCurrentlyValidatingElement(null);
1337
1337
  }
1338
1338
  }
@@ -15902,6 +15902,7 @@ var index = Object.freeze({
15902
15902
  });
15903
15903
  var $X = X;
15904
15904
  var $icons = index;
15905
+
15905
15906
  // node_modules/preact/dist/preact.mjs
15906
15907
  var d = function(n, l) {
15907
15908
  for (var u in l)
@@ -16258,6 +16259,7 @@ n = p.slice, l = { __e: function(n2, l2, u2, t2) {
16258
16259
  }, b.prototype.render = k, i = [], r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
16259
16260
  return n2.__v.__b - l2.__v.__b;
16260
16261
  }, P.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
16262
+
16261
16263
  // node_modules/preact/hooks/dist/hooks.mjs
16262
16264
  var d2 = function(n2, t2) {
16263
16265
  c2.__h && c2.__h(r2, n2, o2 || t2), o2 = 0;
@@ -16436,106 +16438,1142 @@ c2.__b = function(n2) {
16436
16438
  };
16437
16439
  var k2 = typeof requestAnimationFrame == "function";
16438
16440
 
16441
+ // node_modules/@preact/signals-core/dist/signals-core.mjs
16442
+ var t3 = function() {
16443
+ if (r3 > 1) {
16444
+ r3--;
16445
+ return;
16446
+ }
16447
+ let i3, t4 = false;
16448
+ while (s3 !== undefined) {
16449
+ let o3 = s3;
16450
+ s3 = undefined;
16451
+ f3++;
16452
+ while (o3 !== undefined) {
16453
+ const n2 = o3.o;
16454
+ o3.o = undefined;
16455
+ o3.f &= -3;
16456
+ if (!(8 & o3.f) && v3(o3))
16457
+ try {
16458
+ o3.c();
16459
+ } catch (o4) {
16460
+ if (!t4) {
16461
+ i3 = o4;
16462
+ t4 = true;
16463
+ }
16464
+ }
16465
+ o3 = n2;
16466
+ }
16467
+ }
16468
+ f3 = 0;
16469
+ r3--;
16470
+ if (t4)
16471
+ throw i3;
16472
+ };
16473
+ var c3 = function(i3) {
16474
+ if (n2 === undefined)
16475
+ return;
16476
+ let t4 = i3.n;
16477
+ if (t4 === undefined || t4.t !== n2) {
16478
+ t4 = { i: 0, S: i3, p: n2.s, n: undefined, t: n2, e: undefined, x: undefined, r: t4 };
16479
+ if (n2.s !== undefined)
16480
+ n2.s.n = t4;
16481
+ n2.s = t4;
16482
+ i3.n = t4;
16483
+ if (32 & n2.f)
16484
+ i3.S(t4);
16485
+ return t4;
16486
+ } else if (t4.i === -1) {
16487
+ t4.i = 0;
16488
+ if (t4.n !== undefined) {
16489
+ t4.n.p = t4.p;
16490
+ if (t4.p !== undefined)
16491
+ t4.p.n = t4.n;
16492
+ t4.p = n2.s;
16493
+ t4.n = undefined;
16494
+ n2.s.n = t4;
16495
+ n2.s = t4;
16496
+ }
16497
+ return t4;
16498
+ }
16499
+ };
16500
+ var u3 = function(i3) {
16501
+ this.v = i3;
16502
+ this.i = 0;
16503
+ this.n = undefined;
16504
+ this.t = undefined;
16505
+ };
16506
+ var d3 = function(i3) {
16507
+ return new u3(i3);
16508
+ };
16509
+ var v3 = function(i3) {
16510
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
16511
+ if (t4.S.i !== t4.i || !t4.S.h() || t4.S.i !== t4.i)
16512
+ return true;
16513
+ return false;
16514
+ };
16515
+ var l3 = function(i3) {
16516
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n) {
16517
+ const o3 = t4.S.n;
16518
+ if (o3 !== undefined)
16519
+ t4.r = o3;
16520
+ t4.S.n = t4;
16521
+ t4.i = -1;
16522
+ if (t4.n === undefined) {
16523
+ i3.s = t4;
16524
+ break;
16525
+ }
16526
+ }
16527
+ };
16528
+ var y3 = function(i3) {
16529
+ let t4, o3 = i3.s;
16530
+ while (o3 !== undefined) {
16531
+ const i4 = o3.p;
16532
+ if (o3.i === -1) {
16533
+ o3.S.U(o3);
16534
+ if (i4 !== undefined)
16535
+ i4.n = o3.n;
16536
+ if (o3.n !== undefined)
16537
+ o3.n.p = i4;
16538
+ } else
16539
+ t4 = o3;
16540
+ o3.S.n = o3.r;
16541
+ if (o3.r !== undefined)
16542
+ o3.r = undefined;
16543
+ o3 = i4;
16544
+ }
16545
+ i3.s = t4;
16546
+ };
16547
+ var a3 = function(i3) {
16548
+ u3.call(this, undefined);
16549
+ this.x = i3;
16550
+ this.s = undefined;
16551
+ this.g = e3 - 1;
16552
+ this.f = 4;
16553
+ };
16554
+ var w3 = function(i3) {
16555
+ return new a3(i3);
16556
+ };
16557
+ var _3 = function(i3) {
16558
+ const o3 = i3.u;
16559
+ i3.u = undefined;
16560
+ if (typeof o3 == "function") {
16561
+ r3++;
16562
+ const s3 = n2;
16563
+ n2 = undefined;
16564
+ try {
16565
+ o3();
16566
+ } catch (t4) {
16567
+ i3.f &= -2;
16568
+ i3.f |= 8;
16569
+ g3(i3);
16570
+ throw t4;
16571
+ } finally {
16572
+ n2 = s3;
16573
+ t3();
16574
+ }
16575
+ }
16576
+ };
16577
+ var g3 = function(i3) {
16578
+ for (let t4 = i3.s;t4 !== undefined; t4 = t4.n)
16579
+ t4.S.U(t4);
16580
+ i3.x = undefined;
16581
+ i3.s = undefined;
16582
+ _3(i3);
16583
+ };
16584
+ var p3 = function(i3) {
16585
+ if (n2 !== this)
16586
+ throw new Error("Out-of-order effect");
16587
+ y3(this);
16588
+ n2 = i3;
16589
+ this.f &= -2;
16590
+ if (8 & this.f)
16591
+ g3(this);
16592
+ t3();
16593
+ };
16594
+ var b2 = function(i3) {
16595
+ this.x = i3;
16596
+ this.u = undefined;
16597
+ this.s = undefined;
16598
+ this.o = undefined;
16599
+ this.f = 32;
16600
+ };
16601
+ var E2 = function(i3) {
16602
+ const t4 = new b2(i3);
16603
+ try {
16604
+ t4.c();
16605
+ } catch (i4) {
16606
+ t4.d();
16607
+ throw i4;
16608
+ }
16609
+ return t4.d.bind(t4);
16610
+ };
16611
+ var i3 = Symbol.for("preact-signals");
16612
+ var n2;
16613
+ var s3;
16614
+ var r3 = 0;
16615
+ var f3 = 0;
16616
+ var e3 = 0;
16617
+ u3.prototype.brand = i3;
16618
+ u3.prototype.h = function() {
16619
+ return true;
16620
+ };
16621
+ u3.prototype.S = function(i4) {
16622
+ if (this.t !== i4 && i4.e === undefined) {
16623
+ i4.x = this.t;
16624
+ if (this.t !== undefined)
16625
+ this.t.e = i4;
16626
+ this.t = i4;
16627
+ }
16628
+ };
16629
+ u3.prototype.U = function(i4) {
16630
+ if (this.t !== undefined) {
16631
+ const { e: t4, x: o3 } = i4;
16632
+ if (t4 !== undefined) {
16633
+ t4.x = o3;
16634
+ i4.e = undefined;
16635
+ }
16636
+ if (o3 !== undefined) {
16637
+ o3.e = t4;
16638
+ i4.x = undefined;
16639
+ }
16640
+ if (i4 === this.t)
16641
+ this.t = o3;
16642
+ }
16643
+ };
16644
+ u3.prototype.subscribe = function(i4) {
16645
+ return E2(() => {
16646
+ const t4 = this.value, o3 = n2;
16647
+ n2 = undefined;
16648
+ try {
16649
+ i4(t4);
16650
+ } finally {
16651
+ n2 = o3;
16652
+ }
16653
+ });
16654
+ };
16655
+ u3.prototype.valueOf = function() {
16656
+ return this.value;
16657
+ };
16658
+ u3.prototype.toString = function() {
16659
+ return this.value + "";
16660
+ };
16661
+ u3.prototype.toJSON = function() {
16662
+ return this.value;
16663
+ };
16664
+ u3.prototype.peek = function() {
16665
+ const i4 = n2;
16666
+ n2 = undefined;
16667
+ try {
16668
+ return this.value;
16669
+ } finally {
16670
+ n2 = i4;
16671
+ }
16672
+ };
16673
+ Object.defineProperty(u3.prototype, "value", { get() {
16674
+ const i4 = c3(this);
16675
+ if (i4 !== undefined)
16676
+ i4.i = this.i;
16677
+ return this.v;
16678
+ }, set(i4) {
16679
+ if (i4 !== this.v) {
16680
+ if (f3 > 100)
16681
+ throw new Error("Cycle detected");
16682
+ this.v = i4;
16683
+ this.i++;
16684
+ e3++;
16685
+ r3++;
16686
+ try {
16687
+ for (let i5 = this.t;i5 !== undefined; i5 = i5.x)
16688
+ i5.t.N();
16689
+ } finally {
16690
+ t3();
16691
+ }
16692
+ }
16693
+ } });
16694
+ (a3.prototype = new u3).h = function() {
16695
+ this.f &= -3;
16696
+ if (1 & this.f)
16697
+ return false;
16698
+ if ((36 & this.f) == 32)
16699
+ return true;
16700
+ this.f &= -5;
16701
+ if (this.g === e3)
16702
+ return true;
16703
+ this.g = e3;
16704
+ this.f |= 1;
16705
+ if (this.i > 0 && !v3(this)) {
16706
+ this.f &= -2;
16707
+ return true;
16708
+ }
16709
+ const i4 = n2;
16710
+ try {
16711
+ l3(this);
16712
+ n2 = this;
16713
+ const i5 = this.x();
16714
+ if (16 & this.f || this.v !== i5 || this.i === 0) {
16715
+ this.v = i5;
16716
+ this.f &= -17;
16717
+ this.i++;
16718
+ }
16719
+ } catch (i5) {
16720
+ this.v = i5;
16721
+ this.f |= 16;
16722
+ this.i++;
16723
+ }
16724
+ n2 = i4;
16725
+ y3(this);
16726
+ this.f &= -2;
16727
+ return true;
16728
+ };
16729
+ a3.prototype.S = function(i4) {
16730
+ if (this.t === undefined) {
16731
+ this.f |= 36;
16732
+ for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
16733
+ i5.S.S(i5);
16734
+ }
16735
+ u3.prototype.S.call(this, i4);
16736
+ };
16737
+ a3.prototype.U = function(i4) {
16738
+ if (this.t !== undefined) {
16739
+ u3.prototype.U.call(this, i4);
16740
+ if (this.t === undefined) {
16741
+ this.f &= -33;
16742
+ for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
16743
+ i5.S.U(i5);
16744
+ }
16745
+ }
16746
+ };
16747
+ a3.prototype.N = function() {
16748
+ if (!(2 & this.f)) {
16749
+ this.f |= 6;
16750
+ for (let i4 = this.t;i4 !== undefined; i4 = i4.x)
16751
+ i4.t.N();
16752
+ }
16753
+ };
16754
+ Object.defineProperty(a3.prototype, "value", { get() {
16755
+ if (1 & this.f)
16756
+ throw new Error("Cycle detected");
16757
+ const i4 = c3(this);
16758
+ this.h();
16759
+ if (i4 !== undefined)
16760
+ i4.i = this.i;
16761
+ if (16 & this.f)
16762
+ throw this.v;
16763
+ return this.v;
16764
+ } });
16765
+ b2.prototype.c = function() {
16766
+ const i4 = this.S();
16767
+ try {
16768
+ if (8 & this.f)
16769
+ return;
16770
+ if (this.x === undefined)
16771
+ return;
16772
+ const t4 = this.x();
16773
+ if (typeof t4 == "function")
16774
+ this.u = t4;
16775
+ } finally {
16776
+ i4();
16777
+ }
16778
+ };
16779
+ b2.prototype.S = function() {
16780
+ if (1 & this.f)
16781
+ throw new Error("Cycle detected");
16782
+ this.f |= 1;
16783
+ this.f &= -9;
16784
+ _3(this);
16785
+ l3(this);
16786
+ r3++;
16787
+ const i4 = n2;
16788
+ n2 = this;
16789
+ return p3.bind(this, i4);
16790
+ };
16791
+ b2.prototype.N = function() {
16792
+ if (!(2 & this.f)) {
16793
+ this.f |= 2;
16794
+ this.o = s3;
16795
+ s3 = this;
16796
+ }
16797
+ };
16798
+ b2.prototype.d = function() {
16799
+ this.f |= 8;
16800
+ if (!(1 & this.f))
16801
+ g3(this);
16802
+ };
16803
+
16804
+ // node_modules/@preact/signals/dist/signals.mjs
16805
+ var c4 = function(t4, e4) {
16806
+ l[t4] = e4.bind(null, l[t4] || (() => {
16807
+ }));
16808
+ };
16809
+ var h3 = function(t4) {
16810
+ if (d4)
16811
+ d4();
16812
+ d4 = t4 && t4.S();
16813
+ };
16814
+ var p4 = function({ data: t4 }) {
16815
+ const i4 = useSignal(t4);
16816
+ i4.value = t4;
16817
+ const o3 = T2(() => {
16818
+ let t5 = this.__v;
16819
+ while (t5 = t5.__)
16820
+ if (t5.__c) {
16821
+ t5.__c.__$f |= 4;
16822
+ break;
16823
+ }
16824
+ this.__$u.c = () => {
16825
+ var t6;
16826
+ if (!t(o3.peek()) && ((t6 = this.base) == null ? undefined : t6.nodeType) === 3)
16827
+ this.base.data = o3.peek();
16828
+ else {
16829
+ this.__$f |= 1;
16830
+ this.setState({});
16831
+ }
16832
+ };
16833
+ return w3(() => {
16834
+ let t6 = i4.value.value;
16835
+ return t6 === 0 ? 0 : t6 === true ? "" : t6 || "";
16836
+ });
16837
+ }, []);
16838
+ return o3.value;
16839
+ };
16840
+ var v4 = function(t4, i4, e4, n3) {
16841
+ const o3 = i4 in t4 && t4.ownerSVGElement === undefined, r4 = d3(e4);
16842
+ return { o: (t5, i5) => {
16843
+ r4.value = t5;
16844
+ n3 = i5;
16845
+ }, d: E2(() => {
16846
+ const e5 = r4.value.value;
16847
+ if (n3[i4] !== e5) {
16848
+ n3[i4] = e5;
16849
+ if (o3)
16850
+ t4[i4] = e5;
16851
+ else if (e5)
16852
+ t4.setAttribute(i4, e5);
16853
+ else
16854
+ t4.removeAttribute(i4);
16855
+ }
16856
+ }) };
16857
+ };
16858
+ var useSignal = function(t4) {
16859
+ return T2(() => d3(t4), []);
16860
+ };
16861
+ var a4;
16862
+ var d4;
16863
+ p4.displayName = "_st";
16864
+ Object.defineProperties(u3.prototype, { constructor: { configurable: true, value: undefined }, type: { configurable: true, value: p4 }, props: { configurable: true, get() {
16865
+ return { data: this };
16866
+ } }, __b: { configurable: true, value: 1 } });
16867
+ c4("__b", (t4, i4) => {
16868
+ if (typeof i4.type == "string") {
16869
+ let t5, e4 = i4.props;
16870
+ for (let n3 in e4) {
16871
+ if (n3 === "children")
16872
+ continue;
16873
+ let o3 = e4[n3];
16874
+ if (o3 instanceof u3) {
16875
+ if (!t5)
16876
+ i4.__np = t5 = {};
16877
+ t5[n3] = o3;
16878
+ e4[n3] = o3.peek();
16879
+ }
16880
+ }
16881
+ }
16882
+ t4(i4);
16883
+ });
16884
+ c4("__r", (t4, i4) => {
16885
+ h3();
16886
+ let e4, n3 = i4.__c;
16887
+ if (n3) {
16888
+ n3.__$f &= -2;
16889
+ e4 = n3.__$u;
16890
+ if (e4 === undefined)
16891
+ n3.__$u = e4 = function(t5) {
16892
+ let i5;
16893
+ E2(function() {
16894
+ i5 = this;
16895
+ });
16896
+ i5.c = () => {
16897
+ n3.__$f |= 1;
16898
+ n3.setState({});
16899
+ };
16900
+ return i5;
16901
+ }();
16902
+ }
16903
+ a4 = n3;
16904
+ h3(e4);
16905
+ t4(i4);
16906
+ });
16907
+ c4("__e", (t4, i4, e4, n3) => {
16908
+ h3();
16909
+ a4 = undefined;
16910
+ t4(i4, e4, n3);
16911
+ });
16912
+ c4("diffed", (t4, i4) => {
16913
+ h3();
16914
+ a4 = undefined;
16915
+ let e4;
16916
+ if (typeof i4.type == "string" && (e4 = i4.__e)) {
16917
+ let { __np: t5, props: n3 } = i4;
16918
+ if (t5) {
16919
+ let i5 = e4.U;
16920
+ if (i5)
16921
+ for (let e5 in i5) {
16922
+ let n4 = i5[e5];
16923
+ if (n4 !== undefined && !(e5 in t5)) {
16924
+ n4.d();
16925
+ i5[e5] = undefined;
16926
+ }
16927
+ }
16928
+ else {
16929
+ i5 = {};
16930
+ e4.U = i5;
16931
+ }
16932
+ for (let o3 in t5) {
16933
+ let r4 = i5[o3], f4 = t5[o3];
16934
+ if (r4 === undefined) {
16935
+ r4 = v4(e4, o3, f4, n3);
16936
+ i5[o3] = r4;
16937
+ } else
16938
+ r4.o(f4, n3);
16939
+ }
16940
+ }
16941
+ }
16942
+ t4(i4);
16943
+ });
16944
+ c4("unmount", (t4, i4) => {
16945
+ if (typeof i4.type == "string") {
16946
+ let t5 = i4.__e;
16947
+ if (t5) {
16948
+ const i5 = t5.U;
16949
+ if (i5) {
16950
+ t5.U = undefined;
16951
+ for (let t6 in i5) {
16952
+ let e4 = i5[t6];
16953
+ if (e4)
16954
+ e4.d();
16955
+ }
16956
+ }
16957
+ }
16958
+ } else {
16959
+ let t5 = i4.__c;
16960
+ if (t5) {
16961
+ const i5 = t5.__$u;
16962
+ if (i5) {
16963
+ t5.__$u = undefined;
16964
+ i5.d();
16965
+ }
16966
+ }
16967
+ }
16968
+ t4(i4);
16969
+ });
16970
+ c4("__h", (t4, i4, e4, n3) => {
16971
+ if (n3 < 3 || n3 === 9)
16972
+ i4.__$f |= 2;
16973
+ t4(i4, e4, n3);
16974
+ });
16975
+ b.prototype.shouldComponentUpdate = function(t4, i4) {
16976
+ const e4 = this.__$u;
16977
+ if (!(e4 && e4.s !== undefined || 4 & this.__$f))
16978
+ return true;
16979
+ if (3 & this.__$f)
16980
+ return true;
16981
+ for (let t5 in i4)
16982
+ return true;
16983
+ for (let i5 in t4)
16984
+ if (i5 !== "__source" && t4[i5] !== this.props[i5])
16985
+ return true;
16986
+ for (let i5 in this.props)
16987
+ if (!(i5 in t4))
16988
+ return true;
16989
+ return false;
16990
+ };
16991
+
16992
+ // node_modules/preact-router/dist/preact-router.mjs
16993
+ var c5 = function(n3, t4) {
16994
+ for (var r4 in t4)
16995
+ n3[r4] = t4[r4];
16996
+ return n3;
16997
+ };
16998
+ var s4 = function(n3, t4, r4) {
16999
+ var i4, o3 = /(?:\?([^#]*))?(#.*)?$/, e4 = n3.match(o3), u4 = {};
17000
+ if (e4 && e4[1])
17001
+ for (var f4 = e4[1].split("&"), c6 = 0;c6 < f4.length; c6++) {
17002
+ var s5 = f4[c6].split("=");
17003
+ u4[decodeURIComponent(s5[0])] = decodeURIComponent(s5.slice(1).join("="));
17004
+ }
17005
+ n3 = d5(n3.replace(o3, "")), t4 = d5(t4 || "");
17006
+ for (var h4 = Math.max(n3.length, t4.length), v5 = 0;v5 < h4; v5++)
17007
+ if (t4[v5] && t4[v5].charAt(0) === ":") {
17008
+ var l4 = t4[v5].replace(/(^:|[+*?]+$)/g, ""), p5 = (t4[v5].match(/[+*?]+$/) || a5)[0] || "", m3 = ~p5.indexOf("+"), y4 = ~p5.indexOf("*"), U = n3[v5] || "";
17009
+ if (!U && !y4 && (p5.indexOf("?") < 0 || m3)) {
17010
+ i4 = false;
17011
+ break;
17012
+ }
17013
+ if (u4[l4] = decodeURIComponent(U), m3 || y4) {
17014
+ u4[l4] = n3.slice(v5).map(decodeURIComponent).join("/");
17015
+ break;
17016
+ }
17017
+ } else if (t4[v5] !== n3[v5]) {
17018
+ i4 = false;
17019
+ break;
17020
+ }
17021
+ return (r4.default === true || i4 !== false) && u4;
17022
+ };
17023
+ var h4 = function(n3, t4) {
17024
+ return n3.rank < t4.rank ? 1 : n3.rank > t4.rank ? -1 : n3.index - t4.index;
17025
+ };
17026
+ var v5 = function(n3, t4) {
17027
+ return n3.index = t4, n3.rank = function(n4) {
17028
+ return n4.props.default ? 0 : d5(n4.props.path).map(l4).join("");
17029
+ }(n3), n3.props;
17030
+ };
17031
+ var d5 = function(n3) {
17032
+ return n3.replace(/(^\/+|\/+$)/g, "").split("/");
17033
+ };
17034
+ var l4 = function(n3) {
17035
+ return n3.charAt(0) == ":" ? 1 + "*+?".indexOf(n3.charAt(n3.length - 1)) || 4 : 5;
17036
+ };
17037
+ var R = function() {
17038
+ var n3;
17039
+ return "" + ((n3 = U && U.location ? U.location : U && U.getCurrentLocation ? U.getCurrentLocation() : typeof location != "undefined" ? location : p5).pathname || "") + (n3.search || "");
17040
+ };
17041
+ var $2 = function(n3, t4) {
17042
+ return t4 === undefined && (t4 = false), typeof n3 != "string" && n3.url && (t4 = n3.replace, n3 = n3.url), function(n4) {
17043
+ for (var t5 = m3.length;t5--; )
17044
+ if (m3[t5].canRoute(n4))
17045
+ return true;
17046
+ return false;
17047
+ }(n3) && function(n4, t5) {
17048
+ t5 === undefined && (t5 = "push"), U && U[t5] ? U[t5](n4) : typeof history != "undefined" && history[t5 + "State"] && history[t5 + "State"](null, null, n4);
17049
+ }(n3, t4 ? "replace" : "push"), I2(n3);
17050
+ };
17051
+ var I2 = function(n3) {
17052
+ for (var t4 = false, r4 = 0;r4 < m3.length; r4++)
17053
+ m3[r4].routeTo(n3) && (t4 = true);
17054
+ return t4;
17055
+ };
17056
+ var M2 = function(n3) {
17057
+ if (n3 && n3.getAttribute) {
17058
+ var t4 = n3.getAttribute("href"), r4 = n3.getAttribute("target");
17059
+ if (t4 && t4.match(/^\//g) && (!r4 || r4.match(/^_?self$/i)))
17060
+ return $2(t4);
17061
+ }
17062
+ };
17063
+ var b3 = function(n3) {
17064
+ return n3.stopImmediatePropagation && n3.stopImmediatePropagation(), n3.stopPropagation && n3.stopPropagation(), n3.preventDefault(), false;
17065
+ };
17066
+ var W = function(n3) {
17067
+ if (!(n3.ctrlKey || n3.metaKey || n3.altKey || n3.shiftKey || n3.button)) {
17068
+ var t4 = n3.target;
17069
+ do {
17070
+ if (t4.localName === "a" && t4.getAttribute("href")) {
17071
+ if (t4.hasAttribute("data-native") || t4.hasAttribute("native"))
17072
+ return;
17073
+ if (M2(t4))
17074
+ return b3(n3);
17075
+ }
17076
+ } while (t4 = t4.parentNode);
17077
+ }
17078
+ };
17079
+ var D3 = function(n3) {
17080
+ n3.history && (U = n3.history), this.state = { url: n3.url || R() };
17081
+ };
17082
+ var a5 = {};
17083
+ var p5 = {};
17084
+ var m3 = [];
17085
+ var y4 = [];
17086
+ var U = null;
17087
+ var g4 = { url: R() };
17088
+ var k3 = G(g4);
17089
+ var w4 = false;
17090
+ c5(D3.prototype = new b, { shouldComponentUpdate: function(n3) {
17091
+ return n3.static !== true || n3.url !== this.props.url || n3.onChange !== this.props.onChange;
17092
+ }, canRoute: function(n3) {
17093
+ var t4 = H(this.props.children);
17094
+ return this.g(t4, n3) !== undefined;
17095
+ }, routeTo: function(n3) {
17096
+ this.setState({ url: n3 });
17097
+ var t4 = this.canRoute(n3);
17098
+ return this.p || this.forceUpdate(), t4;
17099
+ }, componentWillMount: function() {
17100
+ this.p = true;
17101
+ }, componentDidMount: function() {
17102
+ var n3 = this;
17103
+ w4 || (w4 = true, U || addEventListener("popstate", function() {
17104
+ I2(R());
17105
+ }), addEventListener("click", W)), m3.push(this), U && (this.u = U.listen(function(t4) {
17106
+ var r4 = t4.location || t4;
17107
+ n3.routeTo("" + (r4.pathname || "") + (r4.search || ""));
17108
+ })), this.p = false;
17109
+ }, componentWillUnmount: function() {
17110
+ typeof this.u == "function" && this.u(), m3.splice(m3.indexOf(this), 1);
17111
+ }, componentWillUpdate: function() {
17112
+ this.p = true;
17113
+ }, componentDidUpdate: function() {
17114
+ this.p = false;
17115
+ }, g: function(n3, t4) {
17116
+ n3 = n3.filter(v5).sort(h4);
17117
+ for (var r4 = 0;r4 < n3.length; r4++) {
17118
+ var i4 = n3[r4], o3 = s4(t4, i4.props.path, i4.props);
17119
+ if (o3)
17120
+ return [i4, o3];
17121
+ }
17122
+ }, render: function(n3, t4) {
17123
+ var e4, u4, f4 = n3.onChange, a6 = t4.url, s5 = this.c, h5 = this.g(H(n3.children), a6);
17124
+ if (h5 && (u4 = E(h5[0], c5(c5({ url: a6, matches: e4 = h5[1] }, e4), { key: undefined, ref: undefined }))), a6 !== (s5 && s5.url)) {
17125
+ c5(g4, s5 = this.c = { url: a6, previous: s5 && s5.url, current: u4, path: u4 ? u4.props.path : null, matches: e4 }), s5.router = this, s5.active = u4 ? [u4] : [];
17126
+ for (var v6 = y4.length;v6--; )
17127
+ y4[v6]({});
17128
+ typeof f4 == "function" && f4(s5);
17129
+ }
17130
+ return _(k3.Provider, { value: s5 }, u4);
17131
+ } });
17132
+
17133
+ // src/service/s_api.ts
17134
+ var rethrow = function(e4, code, message) {
17135
+ if (e4 && e4.code !== null && e4.message !== null)
17136
+ throw e4;
17137
+ throw { code, message, data: e4 };
17138
+ };
17139
+ function ifApiError(e4) {
17140
+ if (e4 && e4.code !== null && e4.message !== null)
17141
+ return e4;
17142
+ return null;
17143
+ }
17144
+ var _noArgs = {};
17145
+
17146
+ class ApiService {
17147
+ apiURL;
17148
+ static _i = null;
17149
+ static get i() {
17150
+ if (!ApiService._i)
17151
+ throw "ApiService not initialized. Call ApiService.init(apiURL)";
17152
+ return ApiService._i;
17153
+ }
17154
+ constructor(apiURL) {
17155
+ this.apiURL = apiURL;
17156
+ }
17157
+ static init(apiURL) {
17158
+ if (ApiService._i)
17159
+ throw "ApiService already initialized";
17160
+ ApiService._i = new ApiService(apiURL);
17161
+ }
17162
+ async _fetch(p6, method, { path, query, body }) {
17163
+ try {
17164
+ p6 = path ? p6.replace(/:([a-zA-Z0-9_]+)/g, (m4, p1) => {
17165
+ const v6 = path[p1];
17166
+ if (v6 === undefined)
17167
+ throw { code: 400, message: `missing parameter ${p1}` };
17168
+ return v6?.toString() ?? "";
17169
+ }) : p6;
17170
+ const queryStr = query != null ? "?" + new URLSearchParams(query).toString() : "";
17171
+ const response = await fetch(this.apiURL + p6 + queryStr, {
17172
+ method,
17173
+ credentials: "include",
17174
+ headers: { "Content-Type": "application/json" },
17175
+ body: body ? JSON.stringify(body) : undefined
17176
+ });
17177
+ if (response.ok) {
17178
+ try {
17179
+ return await response.json();
17180
+ } catch (e4) {
17181
+ return null;
17182
+ }
17183
+ }
17184
+ let data = null;
17185
+ try {
17186
+ data = await response.clone().json();
17187
+ } catch (e4) {
17188
+ data = await response.text();
17189
+ }
17190
+ throw {
17191
+ code: response.status,
17192
+ message: data.message ?? "undefined error",
17193
+ data
17194
+ };
17195
+ } catch (e4) {
17196
+ rethrow(e4, 0, "unknown error");
17197
+ }
17198
+ }
17199
+ async get(path, args) {
17200
+ return this._fetch(path, "GET", args || _noArgs);
17201
+ }
17202
+ async post(path, args) {
17203
+ return this._fetch(path, "POST", args || _noArgs);
17204
+ }
17205
+ async delete(path, args) {
17206
+ return this._fetch(path, "DELETE", args || _noArgs);
17207
+ }
17208
+ }
17209
+
17210
+ // src/ui/components/error_view.tsx
17211
+ function ErrorView({
17212
+ error,
17213
+ retry,
17214
+ debug
17215
+ }) {
17216
+ const apiError = ifApiError(error) ?? {
17217
+ code: 0,
17218
+ message: "unknown error",
17219
+ data: error
17220
+ };
17221
+ return !debug ? u4(PrettyErrorView, {
17222
+ apiError,
17223
+ retry
17224
+ }, undefined, false, undefined, this) : u4("div", {
17225
+ class: "column padded card inverse cross-stretch",
17226
+ children: [
17227
+ u4("h3", {
17228
+ style: "margin: 0",
17229
+ children: [
17230
+ "ERROR: ",
17231
+ apiError.code
17232
+ ]
17233
+ }, undefined, true, undefined, this),
17234
+ u4("p", {
17235
+ children: apiError.message
17236
+ }, undefined, false, undefined, this),
17237
+ u4("pre", {
17238
+ children: JSON.stringify(apiError.data, null, 2)
17239
+ }, undefined, false, undefined, this)
17240
+ ]
17241
+ }, undefined, true, undefined, this);
17242
+ }
17243
+ function PrettyErrorView({
17244
+ apiError,
17245
+ retry,
17246
+ labels = {
17247
+ retry: "retry",
17248
+ home: "go home",
17249
+ details: "error details"
17250
+ }
17251
+ }) {
17252
+ const openSig = useSignal(false);
17253
+ return u4("div", {
17254
+ class: "column padded cross-center",
17255
+ style: "margin: 1rem 0",
17256
+ children: [
17257
+ u4(Icons.OctagonAlert, {}, undefined, false, undefined, this),
17258
+ u4("h3", {
17259
+ style: "margin: 0",
17260
+ children: apiError.code
17261
+ }, undefined, false, undefined, this),
17262
+ u4("span", {
17263
+ class: "pointer",
17264
+ onClick: () => openSig.value = true,
17265
+ children: apiError.message
17266
+ }, undefined, false, undefined, this),
17267
+ retry && u4("button", {
17268
+ class: "action",
17269
+ onClick: () => retry(),
17270
+ children: [
17271
+ u4(Icons.RotateCcw, {}, undefined, false, undefined, this),
17272
+ " ",
17273
+ labels.retry ?? "retry"
17274
+ ]
17275
+ }, undefined, true, undefined, this),
17276
+ apiError.code === 404 && u4("button", {
17277
+ class: "action",
17278
+ onClick: () => $2("/"),
17279
+ children: [
17280
+ u4(Icons.House, {}, undefined, false, undefined, this),
17281
+ labels.home ?? "go home"
17282
+ ]
17283
+ }, undefined, true, undefined, this),
17284
+ u4(ElbeDialog, {
17285
+ title: labels.details ?? "error details",
17286
+ open: openSig.value,
17287
+ onClose: () => openSig.value = false,
17288
+ children: u4("pre", {
17289
+ class: "card inverse",
17290
+ children: JSON.stringify(apiError.data, null, 2)
17291
+ }, undefined, false, undefined, this)
17292
+ }, undefined, false, undefined, this)
17293
+ ]
17294
+ }, undefined, true, undefined, this);
17295
+ }
17296
+ // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
17297
+ var u4 = function(e4, t4, n3, o3, i4, u5) {
17298
+ t4 || (t4 = {});
17299
+ var a6, c6, p6 = t4;
17300
+ if ("ref" in p6)
17301
+ for (c6 in p6 = {}, t4)
17302
+ c6 == "ref" ? a6 = t4[c6] : p6[c6] = t4[c6];
17303
+ var l5 = { type: e4, props: p6, key: n3, ref: a6, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f4, __i: -1, __u: 0, __source: i4, __self: u5 };
17304
+ if (typeof e4 == "function" && (a6 = e4.defaultProps))
17305
+ for (c6 in a6)
17306
+ p6[c6] === undefined && (p6[c6] = a6[c6]);
17307
+ return l.vnode && l.vnode(l5), l5;
17308
+ };
17309
+ var f4 = 0;
17310
+ var i4 = Array.isArray;
17311
+
17312
+ // src/ui/components/spinner.tsx
17313
+ function Spinner({ padding = 2 }) {
17314
+ return u4("div", {
17315
+ style: { padding: `${padding}rem` },
17316
+ class: "centered",
17317
+ children: u4("div", {
17318
+ class: "rotate-box",
17319
+ children: u4(Icons.LoaderCircle, {}, undefined, false, undefined, this)
17320
+ }, undefined, false, undefined, this)
17321
+ }, undefined, false, undefined, this);
17322
+ }
17323
+
17324
+ // src/bit/bit.tsx
17325
+ function makeBit(name) {
17326
+ const c6 = G(null);
17327
+ c6.displayName = name;
17328
+ return c6;
17329
+ }
17330
+ function ProvideBit(context, parameters, worker, ctrl, children) {
17331
+ const s5 = useSignal({ loading: true });
17332
+ const _set = (n3) => {
17333
+ if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
17334
+ return;
17335
+ s5.value = n3;
17336
+ };
17337
+ const emit = (data) => _set({ data });
17338
+ const emitLoading = () => _set({ loading: true });
17339
+ const emitError = (error) => {
17340
+ console.warn(`BIT: ${context.displayName} emitted ERROR`, error);
17341
+ return _set({ error });
17342
+ };
17343
+ function map(m4) {
17344
+ const st = s5.value;
17345
+ if (st.loading)
17346
+ return m4.onLoading();
17347
+ if (st.error)
17348
+ return m4.onError(st.error);
17349
+ return m4.onData(st.data ?? null);
17350
+ }
17351
+ const c6 = ctrl(parameters, { emit, emitLoading, emitError, map, signal: s5 });
17352
+ worker(parameters, { emit, emitLoading, emitError, map, signal: s5 }, c6);
17353
+ return u4(context.Provider, {
17354
+ value: { ctrl: c6, state: s5 },
17355
+ children
17356
+ }, undefined, false, undefined, this);
17357
+ }
17358
+ function useBit(context) {
17359
+ try {
17360
+ let map = function(m4) {
17361
+ if (v6.loading)
17362
+ return (m4.onLoading || (() => u4(Spinner, {}, undefined, false, undefined, this)))();
17363
+ if (v6.error)
17364
+ return (m4.onError || ((e4) => u4(ErrorView, {
17365
+ error: e4,
17366
+ retry: ctrl.reload ?? null
17367
+ }, undefined, false, undefined, this)))(v6.error);
17368
+ return m4.onData(v6.data ?? null);
17369
+ };
17370
+ const { ctrl, state } = x2(context);
17371
+ const v6 = state.value;
17372
+ return {
17373
+ signal: state,
17374
+ ctrl,
17375
+ map,
17376
+ onData: (f5) => map({ onData: f5 })
17377
+ };
17378
+ } catch (e4) {
17379
+ const err = `BIT ERROR: NO ${context.displayName} PROVIDED`;
17380
+ console.error(err, e4);
17381
+ return {
17382
+ map: (_4) => u4("div", {
17383
+ children: err
17384
+ }, undefined, false, undefined, this),
17385
+ ctrl: null,
17386
+ signal: null,
17387
+ onData: () => u4("div", {
17388
+ children: err
17389
+ }, undefined, false, undefined, this)
17390
+ };
17391
+ }
17392
+ }
17393
+ // src/bit/ctrl_bit.tsx
17394
+ var make = function(name) {
17395
+ return makeBit(name);
17396
+ };
17397
+ var use = function(b4) {
17398
+ return useBit(b4);
17399
+ };
17400
+ function CtrlBit(ctrl, name) {
17401
+ const context = make((name || "Unknown") + "Bit");
17402
+ function Provide({ children, ...p6 }) {
17403
+ return ProvideBit(context, p6, async (p7, b4, c6) => {
17404
+ b4.emitLoading();
17405
+ try {
17406
+ if (c6 instanceof WorkerControl) {
17407
+ if (c6.reload)
17408
+ await c6.reload();
17409
+ }
17410
+ if (c6 instanceof StreamControl) {
17411
+ c6.stream = c6.listen();
17412
+ }
17413
+ } catch (e4) {
17414
+ b4.emitError(e4);
17415
+ }
17416
+ }, (p7, b4) => {
17417
+ const c6 = ctrl(p7, b4);
17418
+ y2(() => () => c6.dispose(), []);
17419
+ if (c6 instanceof WorkerControl) {
17420
+ c6.reload = async () => {
17421
+ b4.emitLoading();
17422
+ try {
17423
+ b4.emit(await c6.worker());
17424
+ } catch (e4) {
17425
+ b4.emitError(e4);
17426
+ }
17427
+ };
17428
+ }
17429
+ return c6;
17430
+ }, children);
17431
+ }
17432
+ return { Provide, use: () => use(context) };
17433
+ }
17434
+
17435
+ class BitControl {
17436
+ p;
17437
+ bit;
17438
+ constructor(p6, bit2) {
17439
+ this.bit = bit2;
17440
+ this.p = p6;
17441
+ }
17442
+ act(fn) {
17443
+ this.bit.map({
17444
+ onData: async (d6) => {
17445
+ try {
17446
+ await fn(d6);
17447
+ } catch (e4) {
17448
+ if (e4 && e4.code && e4.message)
17449
+ console.error(`[BitERROR] act: ${e4.code} (${e4.message})`);
17450
+ else
17451
+ console.error("[BitERROR] act: ", e4);
17452
+ }
17453
+ }
17454
+ });
17455
+ }
17456
+ dispose() {
17457
+ }
17458
+ }
17459
+
17460
+ class WorkerControl extends BitControl {
17461
+ constructor() {
17462
+ super(...arguments);
17463
+ }
17464
+ reload = null;
17465
+ }
17466
+
17467
+ class StreamControl extends BitControl {
17468
+ constructor() {
17469
+ super(...arguments);
17470
+ }
17471
+ stream = null;
17472
+ dispose() {
17473
+ if (this.stream)
17474
+ this.disposeStream(this.stream);
17475
+ }
17476
+ }
16439
17477
  // node_modules/preact/compat/dist/compat.mjs
16440
- var g3 = function(n2, t3) {
16441
- for (var e3 in t3)
16442
- n2[e3] = t3[e3];
16443
- return n2;
17478
+ var g5 = function(n3, t4) {
17479
+ for (var e4 in t4)
17480
+ n3[e4] = t4[e4];
17481
+ return n3;
16444
17482
  };
16445
- var E2 = function(n2, t3) {
16446
- for (var e3 in n2)
16447
- if (e3 !== "__source" && !(e3 in t3))
17483
+ var E3 = function(n3, t4) {
17484
+ for (var e4 in n3)
17485
+ if (e4 !== "__source" && !(e4 in t4))
16448
17486
  return true;
16449
- for (var r3 in t3)
16450
- if (r3 !== "__source" && n2[r3] !== t3[r3])
17487
+ for (var r4 in t4)
17488
+ if (r4 !== "__source" && n3[r4] !== t4[r4])
16451
17489
  return true;
16452
17490
  return false;
16453
17491
  };
16454
- var C3 = function(n2, t3) {
16455
- this.props = n2, this.context = t3;
17492
+ var C3 = function(n3, t4) {
17493
+ this.props = n3, this.context = t4;
16456
17494
  };
16457
- var x3 = function(n2, e3) {
16458
- function r3(n3) {
16459
- var t3 = this.props.ref, r4 = t3 == n3.ref;
16460
- return !r4 && t3 && (t3.call ? t3(null) : t3.current = null), e3 ? !e3(this.props, n3) || !r4 : E2(this.props, n3);
17495
+ var x3 = function(n3, e4) {
17496
+ function r4(n4) {
17497
+ var t4 = this.props.ref, r5 = t4 == n4.ref;
17498
+ return !r5 && t4 && (t4.call ? t4(null) : t4.current = null), e4 ? !e4(this.props, n4) || !r5 : E3(this.props, n4);
16461
17499
  }
16462
- function u3(e4) {
16463
- return this.shouldComponentUpdate = r3, _(n2, e4);
17500
+ function u5(e5) {
17501
+ return this.shouldComponentUpdate = r4, _(n3, e5);
16464
17502
  }
16465
- return u3.displayName = "Memo(" + (n2.displayName || n2.name) + ")", u3.prototype.isReactComponent = true, u3.__f = true, u3;
17503
+ return u5.displayName = "Memo(" + (n3.displayName || n3.name) + ")", u5.prototype.isReactComponent = true, u5.__f = true, u5;
16466
17504
  };
16467
- var k3 = function(n2) {
16468
- function t3(t4) {
16469
- var e3 = g3({}, t4);
16470
- return delete e3.ref, n2(e3, t4.ref || null);
17505
+ var k4 = function(n3) {
17506
+ function t4(t5) {
17507
+ var e4 = g5({}, t5);
17508
+ return delete e4.ref, n3(e4, t5.ref || null);
16471
17509
  }
16472
- return t3.$$typeof = w3, t3.render = t3, t3.prototype.isReactComponent = t3.__f = true, t3.displayName = "ForwardRef(" + (n2.displayName || n2.name) + ")", t3;
17510
+ return t4.$$typeof = w5, t4.render = t4, t4.prototype.isReactComponent = t4.__f = true, t4.displayName = "ForwardRef(" + (n3.displayName || n3.name) + ")", t4;
16473
17511
  };
16474
- var A3 = function(n2, t3, e3) {
16475
- return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
16476
- typeof n3.__c == "function" && n3.__c();
16477
- }), n2.__c.__H = null), (n2 = g3({}, n2)).__c != null && (n2.__c.__P === e3 && (n2.__c.__P = t3), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
16478
- return A3(n3, t3, e3);
16479
- })), n2;
17512
+ var A3 = function(n3, t4, e4) {
17513
+ return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) {
17514
+ typeof n4.__c == "function" && n4.__c();
17515
+ }), n3.__c.__H = null), (n3 = g5({}, n3)).__c != null && (n3.__c.__P === e4 && (n3.__c.__P = t4), n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) {
17516
+ return A3(n4, t4, e4);
17517
+ })), n3;
16480
17518
  };
16481
- var D3 = function(n2, t3, e3) {
16482
- return n2 && e3 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
16483
- return D3(n3, t3, e3);
16484
- }), n2.__c && n2.__c.__P === t3 && (n2.__e && e3.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e3)), n2;
17519
+ var D4 = function(n3, t4, e4) {
17520
+ return n3 && e4 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) {
17521
+ return D4(n4, t4, e4);
17522
+ }), n3.__c && n3.__c.__P === t4 && (n3.__e && e4.appendChild(n3.__e), n3.__c.__e = true, n3.__c.__P = e4)), n3;
16485
17523
  };
16486
17524
  var L2 = function() {
16487
17525
  this.__u = 0, this.t = null, this.__b = null;
16488
17526
  };
16489
- var O2 = function(n2) {
16490
- var t3 = n2.__.__c;
16491
- return t3 && t3.__a && t3.__a(n2);
17527
+ var O2 = function(n3) {
17528
+ var t4 = n3.__.__c;
17529
+ return t4 && t4.__a && t4.__a(n3);
16492
17530
  };
16493
- var F3 = function(n2) {
16494
- var e3, r3, u3;
17531
+ var F3 = function(n3) {
17532
+ var e4, r4, u5;
16495
17533
  function o3(o4) {
16496
- if (e3 || (e3 = n2()).then(function(n3) {
16497
- r3 = n3.default || n3;
16498
- }, function(n3) {
16499
- u3 = n3;
16500
- }), u3)
16501
- throw u3;
16502
- if (!r3)
16503
- throw e3;
16504
- return _(r3, o4);
17534
+ if (e4 || (e4 = n3()).then(function(n4) {
17535
+ r4 = n4.default || n4;
17536
+ }, function(n4) {
17537
+ u5 = n4;
17538
+ }), u5)
17539
+ throw u5;
17540
+ if (!r4)
17541
+ throw e4;
17542
+ return _(r4, o4);
16505
17543
  }
16506
17544
  return o3.displayName = "Lazy", o3.__f = true, o3;
16507
17545
  };
16508
- var U = function() {
17546
+ var U2 = function() {
16509
17547
  this.u = null, this.o = null;
16510
17548
  };
16511
- var W = function(n2) {
17549
+ var W2 = function(n3) {
16512
17550
  return this.getChildContext = function() {
16513
- return n2.context;
16514
- }, n2.children;
17551
+ return n3.context;
17552
+ }, n3.children;
16515
17553
  };
16516
- var P3 = function(n2) {
16517
- var e3 = this, r3 = n2.i;
16518
- e3.componentWillUnmount = function() {
16519
- B(null, e3.l), e3.l = null, e3.i = null;
16520
- }, e3.i && e3.i !== r3 && e3.componentWillUnmount(), e3.l || (e3.i = r3, e3.l = { nodeType: 1, parentNode: r3, childNodes: [], contains: function() {
17554
+ var P3 = function(n3) {
17555
+ var e4 = this, r4 = n3.i;
17556
+ e4.componentWillUnmount = function() {
17557
+ B(null, e4.l), e4.l = null, e4.i = null;
17558
+ }, e4.i && e4.i !== r4 && e4.componentWillUnmount(), e4.l || (e4.i = r4, e4.l = { nodeType: 1, parentNode: r4, childNodes: [], contains: function() {
16521
17559
  return true;
16522
- }, appendChild: function(n3) {
16523
- this.childNodes.push(n3), e3.i.appendChild(n3);
16524
- }, insertBefore: function(n3, t3) {
16525
- this.childNodes.push(n3), e3.i.appendChild(n3);
16526
- }, removeChild: function(n3) {
16527
- this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), e3.i.removeChild(n3);
16528
- } }), B(_(W, { context: e3.context }, n2.__v), e3.l);
17560
+ }, appendChild: function(n4) {
17561
+ this.childNodes.push(n4), e4.i.appendChild(n4);
17562
+ }, insertBefore: function(n4, t4) {
17563
+ this.childNodes.push(n4), e4.i.appendChild(n4);
17564
+ }, removeChild: function(n4) {
17565
+ this.childNodes.splice(this.childNodes.indexOf(n4) >>> 1, 1), e4.i.removeChild(n4);
17566
+ } }), B(_(W2, { context: e4.context }, n3.__v), e4.l);
16529
17567
  };
16530
- var j3 = function(n2, e3) {
16531
- var r3 = _(P3, { __v: n2, i: e3 });
16532
- return r3.containerInfo = e3, r3;
17568
+ var j3 = function(n3, e4) {
17569
+ var r4 = _(P3, { __v: n3, i: e4 });
17570
+ return r4.containerInfo = e4, r4;
16533
17571
  };
16534
- var q3 = function(n2, t3, e3) {
16535
- return t3.__k == null && (t3.textContent = ""), B(n2, t3), typeof e3 == "function" && e3(), n2 ? n2.__c : null;
17572
+ var q3 = function(n3, t4, e4) {
17573
+ return t4.__k == null && (t4.textContent = ""), B(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
16536
17574
  };
16537
- var G2 = function(n2, t3, e3) {
16538
- return D(n2, t3), typeof e3 == "function" && e3(), n2 ? n2.__c : null;
17575
+ var G2 = function(n3, t4, e4) {
17576
+ return D(n3, t4), typeof e4 == "function" && e4(), n3 ? n3.__c : null;
16539
17577
  };
16540
17578
  var K = function() {
16541
17579
  };
@@ -16545,148 +17583,148 @@ var Q = function() {
16545
17583
  var X2 = function() {
16546
17584
  return this.defaultPrevented;
16547
17585
  };
16548
- var ln = function(n2) {
16549
- return _.bind(null, n2);
17586
+ var ln = function(n3) {
17587
+ return _.bind(null, n3);
16550
17588
  };
16551
- var fn = function(n2) {
16552
- return !!n2 && n2.$$typeof === z3;
17589
+ var fn = function(n3) {
17590
+ return !!n3 && n3.$$typeof === z3;
16553
17591
  };
16554
- var an = function(n2) {
16555
- return fn(n2) && n2.type === k;
17592
+ var an = function(n3) {
17593
+ return fn(n3) && n3.type === k;
16556
17594
  };
16557
- var sn = function(n2) {
16558
- return !!n2 && !!n2.displayName && (typeof n2.displayName == "string" || n2.displayName instanceof String) && n2.displayName.startsWith("Memo(");
17595
+ var sn = function(n3) {
17596
+ return !!n3 && !!n3.displayName && (typeof n3.displayName == "string" || n3.displayName instanceof String) && n3.displayName.startsWith("Memo(");
16559
17597
  };
16560
- var hn = function(n2) {
16561
- return fn(n2) ? E.apply(null, arguments) : n2;
17598
+ var hn = function(n3) {
17599
+ return fn(n3) ? E.apply(null, arguments) : n3;
16562
17600
  };
16563
- var vn = function(n2) {
16564
- return !!n2.__k && (B(null, n2), true);
17601
+ var vn = function(n3) {
17602
+ return !!n3.__k && (B(null, n3), true);
16565
17603
  };
16566
- var dn = function(n2) {
16567
- return n2 && (n2.base || n2.nodeType === 1 && n2) || null;
17604
+ var dn = function(n3) {
17605
+ return n3 && (n3.base || n3.nodeType === 1 && n3) || null;
16568
17606
  };
16569
- var _n = function(n2) {
16570
- n2();
17607
+ var _n = function(n3) {
17608
+ n3();
16571
17609
  };
16572
- var bn = function(n2) {
16573
- return n2;
17610
+ var bn = function(n3) {
17611
+ return n3;
16574
17612
  };
16575
17613
  var Sn = function() {
16576
17614
  return [false, _n];
16577
17615
  };
16578
- var Cn = function(n2, t3) {
16579
- var e3 = t3(), r3 = h2({ h: { __: e3, v: t3 } }), u3 = r3[0].h, o3 = r3[1];
17616
+ var Cn = function(n3, t4) {
17617
+ var e4 = t4(), r4 = h2({ h: { __: e4, v: t4 } }), u5 = r4[0].h, o3 = r4[1];
16580
17618
  return _2(function() {
16581
- u3.__ = e3, u3.v = t3, xn(u3) && o3({ h: u3 });
16582
- }, [n2, e3, t3]), y2(function() {
16583
- return xn(u3) && o3({ h: u3 }), n2(function() {
16584
- xn(u3) && o3({ h: u3 });
17619
+ u5.__ = e4, u5.v = t4, xn(u5) && o3({ h: u5 });
17620
+ }, [n3, e4, t4]), y2(function() {
17621
+ return xn(u5) && o3({ h: u5 }), n3(function() {
17622
+ xn(u5) && o3({ h: u5 });
16585
17623
  });
16586
- }, [n2]), e3;
17624
+ }, [n3]), e4;
16587
17625
  };
16588
- var xn = function(n2) {
16589
- var t3, e3, r3 = n2.v, u3 = n2.__;
17626
+ var xn = function(n3) {
17627
+ var t4, e4, r4 = n3.v, u5 = n3.__;
16590
17628
  try {
16591
- var o3 = r3();
16592
- return !((t3 = u3) === (e3 = o3) && (t3 !== 0 || 1 / t3 == 1 / e3) || t3 != t3 && e3 != e3);
16593
- } catch (n3) {
17629
+ var o3 = r4();
17630
+ return !((t4 = u5) === (e4 = o3) && (t4 !== 0 || 1 / t4 == 1 / e4) || t4 != t4 && e4 != e4);
17631
+ } catch (n4) {
16594
17632
  return true;
16595
17633
  }
16596
17634
  };
16597
- (C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(n2, t3) {
16598
- return E2(this.props, n2) || E2(this.state, t3);
17635
+ (C3.prototype = new b).isPureReactComponent = true, C3.prototype.shouldComponentUpdate = function(n3, t4) {
17636
+ return E3(this.props, n3) || E3(this.state, t4);
16599
17637
  };
16600
- var R = l.__b;
16601
- l.__b = function(n2) {
16602
- n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), R && R(n2);
17638
+ var R2 = l.__b;
17639
+ l.__b = function(n3) {
17640
+ n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), R2 && R2(n3);
16603
17641
  };
16604
- var w3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
16605
- var I2 = function(n2, t3) {
16606
- return n2 == null ? null : H(H(n2).map(t3));
17642
+ var w5 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
17643
+ var I3 = function(n3, t4) {
17644
+ return n3 == null ? null : H(H(n3).map(t4));
16607
17645
  };
16608
- var N2 = { map: I2, forEach: I2, count: function(n2) {
16609
- return n2 ? H(n2).length : 0;
16610
- }, only: function(n2) {
16611
- var t3 = H(n2);
16612
- if (t3.length !== 1)
17646
+ var N2 = { map: I3, forEach: I3, count: function(n3) {
17647
+ return n3 ? H(n3).length : 0;
17648
+ }, only: function(n3) {
17649
+ var t4 = H(n3);
17650
+ if (t4.length !== 1)
16613
17651
  throw "Children.only";
16614
- return t3[0];
17652
+ return t4[0];
16615
17653
  }, toArray: H };
16616
- var M2 = l.__e;
16617
- l.__e = function(n2, t3, e3, r3) {
16618
- if (n2.then) {
16619
- for (var u3, o3 = t3;o3 = o3.__; )
16620
- if ((u3 = o3.__c) && u3.__c)
16621
- return t3.__e == null && (t3.__e = e3.__e, t3.__k = e3.__k), u3.__c(n2, t3);
17654
+ var M3 = l.__e;
17655
+ l.__e = function(n3, t4, e4, r4) {
17656
+ if (n3.then) {
17657
+ for (var u5, o3 = t4;o3 = o3.__; )
17658
+ if ((u5 = o3.__c) && u5.__c)
17659
+ return t4.__e == null && (t4.__e = e4.__e, t4.__k = e4.__k), u5.__c(n3, t4);
16622
17660
  }
16623
- M2(n2, t3, e3, r3);
17661
+ M3(n3, t4, e4, r4);
16624
17662
  };
16625
17663
  var T3 = l.unmount;
16626
- l.unmount = function(n2) {
16627
- var t3 = n2.__c;
16628
- t3 && t3.__R && t3.__R(), t3 && 32 & n2.__u && (n2.type = null), T3 && T3(n2);
16629
- }, (L2.prototype = new b).__c = function(n2, t3) {
16630
- var e3 = t3.__c, r3 = this;
16631
- r3.t == null && (r3.t = []), r3.t.push(e3);
16632
- var u3 = O2(r3.__v), o3 = false, i3 = function() {
16633
- o3 || (o3 = true, e3.__R = null, u3 ? u3(c3) : c3());
17664
+ l.unmount = function(n3) {
17665
+ var t4 = n3.__c;
17666
+ t4 && t4.__R && t4.__R(), t4 && 32 & n3.__u && (n3.type = null), T3 && T3(n3);
17667
+ }, (L2.prototype = new b).__c = function(n3, t4) {
17668
+ var e4 = t4.__c, r4 = this;
17669
+ r4.t == null && (r4.t = []), r4.t.push(e4);
17670
+ var u5 = O2(r4.__v), o3 = false, i5 = function() {
17671
+ o3 || (o3 = true, e4.__R = null, u5 ? u5(c6) : c6());
16634
17672
  };
16635
- e3.__R = i3;
16636
- var c3 = function() {
16637
- if (!--r3.__u) {
16638
- if (r3.state.__a) {
16639
- var n3 = r3.state.__a;
16640
- r3.__v.__k[0] = D3(n3, n3.__c.__P, n3.__c.__O);
17673
+ e4.__R = i5;
17674
+ var c6 = function() {
17675
+ if (!--r4.__u) {
17676
+ if (r4.state.__a) {
17677
+ var n4 = r4.state.__a;
17678
+ r4.__v.__k[0] = D4(n4, n4.__c.__P, n4.__c.__O);
16641
17679
  }
16642
- var t4;
16643
- for (r3.setState({ __a: r3.__b = null });t4 = r3.t.pop(); )
16644
- t4.forceUpdate();
17680
+ var t5;
17681
+ for (r4.setState({ __a: r4.__b = null });t5 = r4.t.pop(); )
17682
+ t5.forceUpdate();
16645
17683
  }
16646
17684
  };
16647
- r3.__u++ || 32 & t3.__u || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n2.then(i3, i3);
17685
+ r4.__u++ || 32 & t4.__u || r4.setState({ __a: r4.__b = r4.__v.__k[0] }), n3.then(i5, i5);
16648
17686
  }, L2.prototype.componentWillUnmount = function() {
16649
17687
  this.t = [];
16650
- }, L2.prototype.render = function(n2, e3) {
17688
+ }, L2.prototype.render = function(n3, e4) {
16651
17689
  if (this.__b) {
16652
17690
  if (this.__v.__k) {
16653
- var r3 = document.createElement("div"), o3 = this.__v.__k[0].__c;
16654
- this.__v.__k[0] = A3(this.__b, r3, o3.__O = o3.__P);
17691
+ var r4 = document.createElement("div"), o3 = this.__v.__k[0].__c;
17692
+ this.__v.__k[0] = A3(this.__b, r4, o3.__O = o3.__P);
16655
17693
  }
16656
17694
  this.__b = null;
16657
17695
  }
16658
- var i3 = e3.__a && _(k, null, n2.fallback);
16659
- return i3 && (i3.__u &= -33), [_(k, null, e3.__a ? null : n2.children), i3];
17696
+ var i5 = e4.__a && _(k, null, n3.fallback);
17697
+ return i5 && (i5.__u &= -33), [_(k, null, e4.__a ? null : n3.children), i5];
16660
17698
  };
16661
- var V2 = function(n2, t3, e3) {
16662
- if (++e3[1] === e3[0] && n2.o.delete(t3), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.o.size))
16663
- for (e3 = n2.u;e3; ) {
16664
- for (;e3.length > 3; )
16665
- e3.pop()();
16666
- if (e3[1] < e3[0])
17699
+ var V2 = function(n3, t4, e4) {
17700
+ if (++e4[1] === e4[0] && n3.o.delete(t4), n3.props.revealOrder && (n3.props.revealOrder[0] !== "t" || !n3.o.size))
17701
+ for (e4 = n3.u;e4; ) {
17702
+ for (;e4.length > 3; )
17703
+ e4.pop()();
17704
+ if (e4[1] < e4[0])
16667
17705
  break;
16668
- n2.u = e3 = e3[2];
17706
+ n3.u = e4 = e4[2];
16669
17707
  }
16670
17708
  };
16671
- (U.prototype = new b).__a = function(n2) {
16672
- var t3 = this, e3 = O2(t3.__v), r3 = t3.o.get(n2);
16673
- return r3[0]++, function(u3) {
17709
+ (U2.prototype = new b).__a = function(n3) {
17710
+ var t4 = this, e4 = O2(t4.__v), r4 = t4.o.get(n3);
17711
+ return r4[0]++, function(u5) {
16674
17712
  var o3 = function() {
16675
- t3.props.revealOrder ? (r3.push(u3), V2(t3, n2, r3)) : u3();
17713
+ t4.props.revealOrder ? (r4.push(u5), V2(t4, n3, r4)) : u5();
16676
17714
  };
16677
- e3 ? e3(o3) : o3();
17715
+ e4 ? e4(o3) : o3();
16678
17716
  };
16679
- }, U.prototype.render = function(n2) {
17717
+ }, U2.prototype.render = function(n3) {
16680
17718
  this.u = null, this.o = new Map;
16681
- var t3 = H(n2.children);
16682
- n2.revealOrder && n2.revealOrder[0] === "b" && t3.reverse();
16683
- for (var e3 = t3.length;e3--; )
16684
- this.o.set(t3[e3], this.u = [1, 0, this.u]);
16685
- return n2.children;
16686
- }, U.prototype.componentDidUpdate = U.prototype.componentDidMount = function() {
16687
- var n2 = this;
16688
- this.o.forEach(function(t3, e3) {
16689
- V2(n2, e3, t3);
17719
+ var t4 = H(n3.children);
17720
+ n3.revealOrder && n3.revealOrder[0] === "b" && t4.reverse();
17721
+ for (var e4 = t4.length;e4--; )
17722
+ this.o.set(t4[e4], this.u = [1, 0, this.u]);
17723
+ return n3.children;
17724
+ }, U2.prototype.componentDidUpdate = U2.prototype.componentDidMount = function() {
17725
+ var n3 = this;
17726
+ this.o.forEach(function(t4, e4) {
17727
+ V2(n3, e4, t4);
16690
17728
  });
16691
17729
  };
16692
17730
  var z3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103;
@@ -16694,123 +17732,106 @@ var B3 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|
16694
17732
  var H2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
16695
17733
  var Z = /[A-Z0-9]/g;
16696
17734
  var Y = typeof document != "undefined";
16697
- var $2 = function(n2) {
16698
- return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
17735
+ var $3 = function(n3) {
17736
+ return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n3);
16699
17737
  };
16700
- b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t3) {
16701
- Object.defineProperty(b.prototype, t3, { configurable: true, get: function() {
16702
- return this["UNSAFE_" + t3];
16703
- }, set: function(n2) {
16704
- Object.defineProperty(this, t3, { configurable: true, writable: true, value: n2 });
17738
+ b.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t4) {
17739
+ Object.defineProperty(b.prototype, t4, { configurable: true, get: function() {
17740
+ return this["UNSAFE_" + t4];
17741
+ }, set: function(n3) {
17742
+ Object.defineProperty(this, t4, { configurable: true, writable: true, value: n3 });
16705
17743
  } });
16706
17744
  });
16707
17745
  var J = l.event;
16708
- l.event = function(n2) {
16709
- return J && (n2 = J(n2)), n2.persist = K, n2.isPropagationStopped = Q, n2.isDefaultPrevented = X2, n2.nativeEvent = n2;
17746
+ l.event = function(n3) {
17747
+ return J && (n3 = J(n3)), n3.persist = K, n3.isPropagationStopped = Q, n3.isDefaultPrevented = X2, n3.nativeEvent = n3;
16710
17748
  };
16711
17749
  var nn;
16712
17750
  var tn = { enumerable: false, configurable: true, get: function() {
16713
17751
  return this.class;
16714
17752
  } };
16715
17753
  var en = l.vnode;
16716
- l.vnode = function(n2) {
16717
- typeof n2.type == "string" && function(n3) {
16718
- var { props: t3, type: e3 } = n3, u3 = {}, o3 = e3.indexOf("-") === -1;
16719
- for (var i3 in t3) {
16720
- var c3 = t3[i3];
16721
- if (!(i3 === "value" && ("defaultValue" in t3) && c3 == null || Y && i3 === "children" && e3 === "noscript" || i3 === "class" || i3 === "className")) {
16722
- var l3 = i3.toLowerCase();
16723
- i3 === "defaultValue" && "value" in t3 && t3.value == null ? i3 = "value" : i3 === "download" && c3 === true ? c3 = "" : l3 === "translate" && c3 === "no" ? c3 = false : l3[0] === "o" && l3[1] === "n" ? l3 === "ondoubleclick" ? i3 = "ondblclick" : l3 !== "onchange" || e3 !== "input" && e3 !== "textarea" || $2(t3.type) ? l3 === "onfocus" ? i3 = "onfocusin" : l3 === "onblur" ? i3 = "onfocusout" : H2.test(i3) && (i3 = l3) : l3 = i3 = "oninput" : o3 && B3.test(i3) ? i3 = i3.replace(Z, "-$&").toLowerCase() : c3 === null && (c3 = undefined), l3 === "oninput" && u3[i3 = l3] && (i3 = "oninputCapture"), u3[i3] = c3;
17754
+ l.vnode = function(n3) {
17755
+ typeof n3.type == "string" && function(n4) {
17756
+ var { props: t4, type: e4 } = n4, u5 = {}, o3 = e4.indexOf("-") === -1;
17757
+ for (var i5 in t4) {
17758
+ var c6 = t4[i5];
17759
+ if (!(i5 === "value" && ("defaultValue" in t4) && c6 == null || Y && i5 === "children" && e4 === "noscript" || i5 === "class" || i5 === "className")) {
17760
+ var l5 = i5.toLowerCase();
17761
+ i5 === "defaultValue" && "value" in t4 && t4.value == null ? i5 = "value" : i5 === "download" && c6 === true ? c6 = "" : l5 === "translate" && c6 === "no" ? c6 = false : l5[0] === "o" && l5[1] === "n" ? l5 === "ondoubleclick" ? i5 = "ondblclick" : l5 !== "onchange" || e4 !== "input" && e4 !== "textarea" || $3(t4.type) ? l5 === "onfocus" ? i5 = "onfocusin" : l5 === "onblur" ? i5 = "onfocusout" : H2.test(i5) && (i5 = l5) : l5 = i5 = "oninput" : o3 && B3.test(i5) ? i5 = i5.replace(Z, "-$&").toLowerCase() : c6 === null && (c6 = undefined), l5 === "oninput" && u5[i5 = l5] && (i5 = "oninputCapture"), u5[i5] = c6;
16724
17762
  }
16725
17763
  }
16726
- e3 == "select" && u3.multiple && Array.isArray(u3.value) && (u3.value = H(t3.children).forEach(function(n4) {
16727
- n4.props.selected = u3.value.indexOf(n4.props.value) != -1;
16728
- })), e3 == "select" && u3.defaultValue != null && (u3.value = H(t3.children).forEach(function(n4) {
16729
- n4.props.selected = u3.multiple ? u3.defaultValue.indexOf(n4.props.value) != -1 : u3.defaultValue == n4.props.value;
16730
- })), t3.class && !t3.className ? (u3.class = t3.class, Object.defineProperty(u3, "className", tn)) : (t3.className && !t3.class || t3.class && t3.className) && (u3.class = u3.className = t3.className), n3.props = u3;
16731
- }(n2), n2.$$typeof = z3, en && en(n2);
17764
+ e4 == "select" && u5.multiple && Array.isArray(u5.value) && (u5.value = H(t4.children).forEach(function(n5) {
17765
+ n5.props.selected = u5.value.indexOf(n5.props.value) != -1;
17766
+ })), e4 == "select" && u5.defaultValue != null && (u5.value = H(t4.children).forEach(function(n5) {
17767
+ n5.props.selected = u5.multiple ? u5.defaultValue.indexOf(n5.props.value) != -1 : u5.defaultValue == n5.props.value;
17768
+ })), t4.class && !t4.className ? (u5.class = t4.class, Object.defineProperty(u5, "className", tn)) : (t4.className && !t4.class || t4.class && t4.className) && (u5.class = u5.className = t4.className), n4.props = u5;
17769
+ }(n3), n3.$$typeof = z3, en && en(n3);
16732
17770
  };
16733
17771
  var rn = l.__r;
16734
- l.__r = function(n2) {
16735
- rn && rn(n2), nn = n2.__c;
17772
+ l.__r = function(n3) {
17773
+ rn && rn(n3), nn = n3.__c;
16736
17774
  };
16737
17775
  var un = l.diffed;
16738
- l.diffed = function(n2) {
16739
- un && un(n2);
16740
- var { props: t3, __e: e3 } = n2;
16741
- e3 != null && n2.type === "textarea" && "value" in t3 && t3.value !== e3.value && (e3.value = t3.value == null ? "" : t3.value), nn = null;
17776
+ l.diffed = function(n3) {
17777
+ un && un(n3);
17778
+ var { props: t4, __e: e4 } = n3;
17779
+ e4 != null && n3.type === "textarea" && "value" in t4 && t4.value !== e4.value && (e4.value = t4.value == null ? "" : t4.value), nn = null;
16742
17780
  };
16743
- var on = { ReactCurrentDispatcher: { current: { readContext: function(n2) {
16744
- return nn.__n[n2.__c].props.value;
17781
+ var on = { ReactCurrentDispatcher: { current: { readContext: function(n3) {
17782
+ return nn.__n[n3.__c].props.value;
16745
17783
  }, useCallback: q2, useContext: x2, useDebugValue: P2, useDeferredValue: bn, useEffect: y2, useId: g2, useImperativeHandle: F2, useInsertionEffect: gn, useLayoutEffect: _2, useMemo: T2, useReducer: p2, useRef: A2, useState: h2, useSyncExternalStore: Cn, useTransition: Sn } } };
16746
- var pn = function(n2, t3) {
16747
- return n2(t3);
17784
+ var pn = function(n3, t4) {
17785
+ return n3(t4);
16748
17786
  };
16749
- var mn = function(n2, t3) {
16750
- return n2(t3);
17787
+ var mn = function(n3, t4) {
17788
+ return n3(t4);
16751
17789
  };
16752
17790
  var yn = k;
16753
17791
  var gn = _2;
16754
17792
  var En = fn;
16755
- var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef: k3, flushSync: mn, unstable_batchedUpdates: pn, StrictMode: yn, Suspense: L2, SuspenseList: U, lazy: F3, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
17793
+ var Rn = { useState: h2, useId: g2, useReducer: p2, useEffect: y2, useLayoutEffect: _2, useInsertionEffect: gn, useTransition: Sn, useDeferredValue: bn, useSyncExternalStore: Cn, startTransition: _n, useRef: A2, useImperativeHandle: F2, useMemo: T2, useCallback: q2, useContext: x2, useDebugValue: P2, version: "17.0.2", Children: N2, render: q3, hydrate: G2, unmountComponentAtNode: vn, createPortal: j3, createElement: _, createContext: G, createFactory: ln, cloneElement: hn, createRef: m, Fragment: k, isValidElement: fn, isElement: En, isFragment: an, isMemo: sn, findDOMNode: dn, Component: b, PureComponent: C3, memo: x3, forwardRef: k4, flushSync: mn, unstable_batchedUpdates: pn, StrictMode: yn, Suspense: L2, SuspenseList: U2, lazy: F3, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
16756
17794
 
16757
17795
  // src/ui/components/badge.tsx
16758
- function TestBadge(p3) {
16759
- return new Badge2({ ...p3, colorStyle: "accent" });
17796
+ function TestBadge(p6) {
17797
+ return new Badge2({ ...p6, colorStyle: "accent" });
16760
17798
  }
16761
- // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
16762
- var u3 = function(e3, t3, n2, o3, i3, u4) {
16763
- t3 || (t3 = {});
16764
- var a3, c3, p3 = t3;
16765
- if ("ref" in p3)
16766
- for (c3 in p3 = {}, t3)
16767
- c3 == "ref" ? a3 = t3[c3] : p3[c3] = t3[c3];
16768
- var l3 = { type: e3, props: p3, key: n2, ref: a3, __k: null, __: null, __b: 0, __e: null, __d: undefined, __c: null, constructor: undefined, __v: --f3, __i: -1, __u: 0, __source: i3, __self: u4 };
16769
- if (typeof e3 == "function" && (a3 = e3.defaultProps))
16770
- for (c3 in a3)
16771
- p3[c3] === undefined && (p3[c3] = a3[c3]);
16772
- return l.vnode && l.vnode(l3), l3;
16773
- };
16774
- var f3 = 0;
16775
- var i3 = Array.isArray;
16776
-
16777
- // src/ui/components/badge.tsx
16778
17799
  class Badge2 extends Rn.Component {
16779
17800
  constructor(props) {
16780
17801
  super(props);
16781
17802
  }
16782
- static accent(p3) {
16783
- return u3(Badge2, {
16784
- ...p3,
17803
+ static accent(p6) {
17804
+ return u4(Badge2, {
17805
+ ...p6,
16785
17806
  colorStyle: "accent"
16786
17807
  }, undefined, false, undefined, this);
16787
17808
  }
16788
- static error(p3) {
16789
- return u3(Badge2, {
16790
- ...p3,
17809
+ static error(p6) {
17810
+ return u4(Badge2, {
17811
+ ...p6,
16791
17812
  colorStyle: "error"
16792
17813
  }, undefined, false, undefined, this);
16793
17814
  }
16794
- static warning(p3) {
16795
- return u3(Badge2, {
16796
- ...p3,
17815
+ static warning(p6) {
17816
+ return u4(Badge2, {
17817
+ ...p6,
16797
17818
  colorStyle: "warning"
16798
17819
  }, undefined, false, undefined, this);
16799
17820
  }
16800
- static success(p3) {
16801
- return u3(Badge2, {
16802
- ...p3,
17821
+ static success(p6) {
17822
+ return u4(Badge2, {
17823
+ ...p6,
16803
17824
  colorStyle: "success"
16804
17825
  }, undefined, false, undefined, this);
16805
17826
  }
16806
- static info(p3) {
16807
- return u3(Badge2, {
16808
- ...p3,
17827
+ static info(p6) {
17828
+ return u4(Badge2, {
17829
+ ...p6,
16809
17830
  colorStyle: "info"
16810
17831
  }, undefined, false, undefined, this);
16811
17832
  }
16812
17833
  render() {
16813
- return u3("div", {
17834
+ return u4("div", {
16814
17835
  style: {
16815
17836
  position: "relative",
16816
17837
  display: "inline-block"
@@ -16818,7 +17839,7 @@ class Badge2 extends Rn.Component {
16818
17839
  children: [
16819
17840
  this.props.child,
16820
17841
  this.props.children,
16821
- u3("div", {
17842
+ u4("div", {
16822
17843
  class: `b ${this.props.colorStyle} ${this.props.class ?? ""}`,
16823
17844
  style: {
16824
17845
  position: "absolute",
@@ -16842,14 +17863,14 @@ class Badge2 extends Rn.Component {
16842
17863
  }
16843
17864
  }
16844
17865
  // src/ui/components/box.tsx
16845
- function applyProps(p3, classes, style) {
17866
+ function applyProps(p6, classes, style) {
16846
17867
  if (Array.isArray(classes)) {
16847
- classes = classes.filter((c3) => c3).join(" ");
17868
+ classes = classes.filter((c6) => c6).join(" ");
16848
17869
  }
16849
17870
  return {
16850
- class: `${classes || ""} ${p3.class || ""}`,
16851
- style: { ...style ?? {}, ...p3.style ?? {} },
16852
- ...p3.tooltip ? { ["data-tooltip"]: p3.tooltip } : {}
17871
+ class: `${classes || ""} ${p6.class || ""}`,
17872
+ style: { ...style ?? {}, ...p6.style ?? {} },
17873
+ ...p6.tooltip ? { ["data-tooltip"]: p6.tooltip } : {}
16853
17874
  };
16854
17875
  }
16855
17876
  function Box2({
@@ -16868,19 +17889,19 @@ function Box2({
16868
17889
  }
16869
17890
  // src/ui/util/error_view.tsx
16870
17891
  function _ElbeErr(msg) {
16871
- return u3("div", {
17892
+ return u4("div", {
16872
17893
  class: "row text-s gap-half",
16873
17894
  style: "background: #ee0044; color: white; border-radius: 4px; text-align: left; padding: .5rem",
16874
17895
  children: [
16875
- u3(Icons.CircleX, {}, undefined, false, undefined, this),
16876
- u3("div", {
17896
+ u4(Icons.CircleX, {}, undefined, false, undefined, this),
17897
+ u4("div", {
16877
17898
  class: "column gap-none cross-stretch",
16878
17899
  children: [
16879
- u3("b", {
17900
+ u4("b", {
16880
17901
  class: "text-s",
16881
17902
  children: "elbe error"
16882
17903
  }, undefined, false, undefined, this),
16883
- u3("span", {
17904
+ u4("span", {
16884
17905
  style: "margin-top: -.125rem",
16885
17906
  children: msg
16886
17907
  }, undefined, false, undefined, this)
@@ -16892,7 +17913,7 @@ function _ElbeErr(msg) {
16892
17913
 
16893
17914
  // src/ui/components/button.tsx
16894
17915
  var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner) {
16895
- return message || icon ? u3("button", {
17916
+ return message || icon ? u4("button", {
16896
17917
  ...applyProps(elbe, [
16897
17918
  "row",
16898
17919
  "main-center",
@@ -16906,7 +17927,7 @@ var _btn = function({ colorStyle, onTap, icon, message, ...elbe }, colorManner)
16906
17927
  onClick: () => onTap && onTap(),
16907
17928
  children: [
16908
17929
  typeof icon === "function" ? icon({}) : icon,
16909
- message && u3("span", {
17930
+ message && u4("span", {
16910
17931
  children: message
16911
17932
  }, undefined, false, undefined, this)
16912
17933
  ]
@@ -16916,10 +17937,10 @@ class Button extends Rn.Component {
16916
17937
  constructor() {
16917
17938
  super(...arguments);
16918
17939
  }
16919
- static major = (p3) => _btn(p3, "major");
16920
- static minor = (p3) => _btn(p3, "minor");
16921
- static action = (p3) => _btn(p3, "action");
16922
- static integrated = (p3) => _btn(p3, "integrated");
17940
+ static major = (p6) => _btn(p6, "major");
17941
+ static minor = (p6) => _btn(p6, "minor");
17942
+ static action = (p6) => _btn(p6, "action");
17943
+ static integrated = (p6) => _btn(p6, "integrated");
16923
17944
  render() {
16924
17945
  return _btn(this.props, this.props.colorManner);
16925
17946
  }
@@ -16937,7 +17958,7 @@ function Card({
16937
17958
  children,
16938
17959
  ...elbe
16939
17960
  }) {
16940
- return u3("div", {
17961
+ return u4("div", {
16941
17962
  ...applyProps(elbe, ["card", colorScheme, colorStyle, colorManner, mode], { padding: `${padding}rem`, margin: `${margin}rem` }),
16942
17963
  onClick: onTap,
16943
17964
  onContextMenu: onLongTap,
@@ -16946,7 +17967,7 @@ function Card({
16946
17967
  }
16947
17968
  // src/ui/components/util.tsx
16948
17969
  function Spaced({ amount = 1 }) {
16949
- return u3("div", {
17970
+ return u4("div", {
16950
17971
  style: { width: amount + "rem", height: amount + "rem" }
16951
17972
  }, undefined, false, undefined, this);
16952
17973
  }
@@ -16959,38 +17980,38 @@ function ElbeDialog({
16959
17980
  children,
16960
17981
  _style
16961
17982
  }) {
16962
- return u3("dialog", {
16963
- onClick: (e3) => e3.stopPropagation(),
17983
+ return u4("dialog", {
17984
+ onClick: (e4) => e4.stopPropagation(),
16964
17985
  open,
16965
17986
  style: "text-align: start" + (_style ?? ""),
16966
- children: u3("div", {
17987
+ children: u4("div", {
16967
17988
  class: " card plain-opaque padding-none",
16968
17989
  style: "max-width: 40rem; min-width: 10rem",
16969
17990
  children: [
16970
- u3("div", {
17991
+ u4("div", {
16971
17992
  class: "row cross-start padded",
16972
17993
  children: [
16973
- u3("div", {
17994
+ u4("div", {
16974
17995
  class: "flex-1 b",
16975
17996
  style: "margin-top: 0.6rem; font-size: 1.2rem",
16976
17997
  children: title
16977
17998
  }, undefined, false, undefined, this),
16978
- u3("button", {
17999
+ u4("button", {
16979
18000
  class: "integrated",
16980
18001
  style: "width: 3rem",
16981
- onClick: (e3) => {
16982
- e3.stopPropagation();
16983
- e3.preventDefault();
18002
+ onClick: (e4) => {
18003
+ e4.stopPropagation();
18004
+ e4.preventDefault();
16984
18005
  onClose();
16985
18006
  },
16986
- children: u3($X, {}, undefined, false, undefined, this)
18007
+ children: u4($X, {}, undefined, false, undefined, this)
16987
18008
  }, undefined, false, undefined, this)
16988
18009
  ]
16989
18010
  }, undefined, true, undefined, this),
16990
- u3(Spaced, {
18011
+ u4(Spaced, {
16991
18012
  amount: 0.5
16992
18013
  }, undefined, false, undefined, this),
16993
- u3("div", {
18014
+ u4("div", {
16994
18015
  class: "padded",
16995
18016
  style: "max-height: 80vh; overflow: auto",
16996
18017
  children
@@ -17001,7 +18022,7 @@ function ElbeDialog({
17001
18022
  }
17002
18023
  // src/ui/components/flex.tsx
17003
18024
  function FlexSpace({}) {
17004
- return u3("div", {
18025
+ return u4("div", {
17005
18026
  style: "flex:1"
17006
18027
  }, undefined, false, undefined, this);
17007
18028
  }
@@ -17011,9 +18032,9 @@ function Column({
17011
18032
  cross,
17012
18033
  stretch = false,
17013
18034
  children,
17014
- ...p3
18035
+ ...p6
17015
18036
  }) {
17016
- return _Flex(false, { gap, main, cross, stretch, children }, p3);
18037
+ return _Flex(false, { gap, main, cross, stretch, children }, p6);
17017
18038
  }
17018
18039
  function Row({
17019
18040
  gap = 1,
@@ -17021,23 +18042,23 @@ function Row({
17021
18042
  cross,
17022
18043
  stretch = false,
17023
18044
  children,
17024
- ...p3
18045
+ ...p6
17025
18046
  }) {
17026
- return _Flex(true, { gap, main, cross, stretch, children }, p3);
18047
+ return _Flex(true, { gap, main, cross, stretch, children }, p6);
17027
18048
  }
17028
- var _Flex = function(row, p3, elbe) {
17029
- return u3("div", {
18049
+ var _Flex = function(row, p6, elbe) {
18050
+ return u4("div", {
17030
18051
  ...applyProps(elbe, row ? "row" : "column", {
17031
- justifyContent: p3.main,
17032
- alignItems: p3.cross || (p3.stretch ? "stretch" : "center"),
17033
- gap: `${p3.gap}rem`
18052
+ justifyContent: p6.main,
18053
+ alignItems: p6.cross || (p6.stretch ? "stretch" : "center"),
18054
+ gap: `${p6.gap}rem`
17034
18055
  }),
17035
- children: p3.children
18056
+ children: p6.children
17036
18057
  }, undefined, false, undefined, this);
17037
18058
  };
17038
18059
  // src/ui/components/icon_button.tsx
17039
18060
  var _btn2 = function({ icon, onTap, ...elbe }, colorManner = "major") {
17040
- return u3("button", {
18061
+ return u4("button", {
17041
18062
  ...applyProps(elbe, [
17042
18063
  "row",
17043
18064
  "main-center",
@@ -17059,10 +18080,10 @@ class IconButton extends Rn.Component {
17059
18080
  constructor() {
17060
18081
  super(...arguments);
17061
18082
  }
17062
- static major = (p3) => _btn2(p3, "major");
17063
- static minor = (p3) => _btn2(p3, "minor");
17064
- static action = (p3) => _btn2(p3, "action");
17065
- static integrated = (p3) => _btn2(p3, "integrated");
18083
+ static major = (p6) => _btn2(p6, "major");
18084
+ static minor = (p6) => _btn2(p6, "minor");
18085
+ static action = (p6) => _btn2(p6, "action");
18086
+ static integrated = (p6) => _btn2(p6, "integrated");
17066
18087
  render() {
17067
18088
  return _btn2(this.props, this.props.colorManner);
17068
18089
  }
@@ -17074,7 +18095,7 @@ function Checkbox({
17074
18095
  onChange,
17075
18096
  ...elbe
17076
18097
  }) {
17077
- return u3("div", {
18098
+ return u4("div", {
17078
18099
  class: `row ${onChange ? "" : "disabled"}`,
17079
18100
  style: {
17080
18101
  gap: ".75rem",
@@ -17082,14 +18103,14 @@ function Checkbox({
17082
18103
  opacity: onChange ? "" : "0.5"
17083
18104
  },
17084
18105
  children: [
17085
- u3("input", {
18106
+ u4("input", {
17086
18107
  type: "checkbox",
17087
18108
  ...applyProps(elbe),
17088
18109
  disabled: !onChange,
17089
18110
  checked: value,
17090
- onChange: (e3) => onChange?.(e3.currentTarget.checked)
18111
+ onChange: (e4) => onChange?.(e4.currentTarget.checked)
17091
18112
  }, undefined, false, undefined, this),
17092
- label && u3("div", {
18113
+ label && u4("div", {
17093
18114
  style: "margin-top: -.25rem",
17094
18115
  children: label
17095
18116
  }, undefined, false, undefined, this)
@@ -17107,7 +18128,7 @@ function _TextArea({
17107
18128
  onInput,
17108
18129
  ...elbe
17109
18130
  }) {
17110
- return u3("div", {
18131
+ return u4("div", {
17111
18132
  style: {
17112
18133
  width: "12rem !important",
17113
18134
  display: "flex",
@@ -17115,7 +18136,7 @@ function _TextArea({
17115
18136
  alignItems: "stretch"
17116
18137
  },
17117
18138
  "data-tooltip": elbe.tooltip,
17118
- children: u3("textarea", {
18139
+ children: u4("textarea", {
17119
18140
  ...applyProps(elbe, null, { width: "100%" }),
17120
18141
  label,
17121
18142
  size: 5,
@@ -17124,7 +18145,7 @@ function _TextArea({
17124
18145
  rows,
17125
18146
  maxLength,
17126
18147
  value,
17127
- onInput: (e3) => onInput && onInput(e3.currentTarget.value),
18148
+ onInput: (e4) => onInput && onInput(e4.currentTarget.value),
17128
18149
  readonly
17129
18150
  }, undefined, false, undefined, this)
17130
18151
  }, undefined, false, undefined, this);
@@ -17135,34 +18156,34 @@ class Field extends Rn.Component {
17135
18156
  constructor() {
17136
18157
  super(...arguments);
17137
18158
  }
17138
- static text = (p3) => u3(Field, {
17139
- ...p3,
18159
+ static text = (p6) => u4(Field, {
18160
+ ...p6,
17140
18161
  type: "text"
17141
18162
  }, undefined, false, undefined, this);
17142
- static number = (p3) => u3(Field, {
17143
- ...p3,
18163
+ static number = (p6) => u4(Field, {
18164
+ ...p6,
17144
18165
  type: "number"
17145
18166
  }, undefined, false, undefined, this);
17146
- static password = (p3) => u3(Field, {
17147
- ...p3,
18167
+ static password = (p6) => u4(Field, {
18168
+ ...p6,
17148
18169
  type: "password"
17149
18170
  }, undefined, false, undefined, this);
17150
- static date = (p3) => u3(Field, {
17151
- ...p3,
18171
+ static date = (p6) => u4(Field, {
18172
+ ...p6,
17152
18173
  type: "date"
17153
18174
  }, undefined, false, undefined, this);
17154
- static time = (p3) => u3(Field, {
17155
- ...p3,
18175
+ static time = (p6) => u4(Field, {
18176
+ ...p6,
17156
18177
  type: "time"
17157
18178
  }, undefined, false, undefined, this);
17158
- static email = (p3) => u3(Field, {
17159
- ...p3,
18179
+ static email = (p6) => u4(Field, {
18180
+ ...p6,
17160
18181
  type: "email"
17161
18182
  }, undefined, false, undefined, this);
17162
18183
  static multiLine = _TextArea;
17163
18184
  render() {
17164
18185
  const { label, hint, readonly, type, value, onInput, ...elbe } = this.props;
17165
- return u3("div", {
18186
+ return u4("div", {
17166
18187
  style: {
17167
18188
  width: "12rem !important",
17168
18189
  display: "flex",
@@ -17170,7 +18191,7 @@ class Field extends Rn.Component {
17170
18191
  alignItems: "stretch"
17171
18192
  },
17172
18193
  "data-tooltip": this.props?.tooltip,
17173
- children: u3("input", {
18194
+ children: u4("input", {
17174
18195
  type: this.props.type,
17175
18196
  ...applyProps(this.props, null, {
17176
18197
  width: "100%"
@@ -17179,7 +18200,7 @@ class Field extends Rn.Component {
17179
18200
  label: this.props.label,
17180
18201
  placeholder: this.props.hint,
17181
18202
  value: this.props.value,
17182
- onInput: (e3) => this.props.onInput && this.props.onInput(e3.currentTarget.value),
18203
+ onInput: (e4) => this.props.onInput && this.props.onInput(e4.currentTarget.value),
17183
18204
  readonly: this.props.readonly
17184
18205
  }, undefined, false, undefined, this)
17185
18206
  }, undefined, false, undefined, this);
@@ -17194,7 +18215,7 @@ function Range({
17194
18215
  step = 1,
17195
18216
  ...elbe
17196
18217
  }) {
17197
- return min > max ? _ElbeErr("Range: max is smaller than min") : u3("input", {
18218
+ return min > max ? _ElbeErr("Range: max is smaller than min") : u4("input", {
17198
18219
  type: "range",
17199
18220
  ...applyProps(elbe, null, {
17200
18221
  filter: onChange ? "" : "grayscale(1)",
@@ -17207,7 +18228,7 @@ function Range({
17207
18228
  step,
17208
18229
  disabled: !onChange,
17209
18230
  value,
17210
- onInput: (e3) => onChange?.(Number(e3.currentTarget.value))
18231
+ onInput: (e4) => onChange?.(Number(e4.currentTarget.value))
17211
18232
  }, undefined, false, undefined, this);
17212
18233
  }
17213
18234
  // src/ui/components/input/select.tsx
@@ -17218,12 +18239,12 @@ function Select({
17218
18239
  onChange,
17219
18240
  ...elbe
17220
18241
  }) {
17221
- return u3("select", {
18242
+ return u4("select", {
17222
18243
  ...applyProps(elbe),
17223
18244
  value,
17224
18245
  label,
17225
- onChange: (e3) => onChange(e3.currentTarget.value),
17226
- children: options.map(({ key, label: label2 }) => u3("option", {
18246
+ onChange: (e4) => onChange(e4.currentTarget.value),
18247
+ children: options.map(({ key, label: label2 }) => u4("option", {
17227
18248
  value: key,
17228
18249
  children: label2
17229
18250
  }, key, false, undefined, this))
@@ -17234,8 +18255,8 @@ class Padded extends Rn.Component {
17234
18255
  constructor(props) {
17235
18256
  super(props);
17236
18257
  }
17237
- static all = ({ amount = 1, ...p3 }) => u3(Padded, {
17238
- ...p3,
18258
+ static all = ({ amount = 1, ...p6 }) => u4(Padded, {
18259
+ ...p6,
17239
18260
  top: amount,
17240
18261
  right: amount,
17241
18262
  bottom: amount,
@@ -17244,16 +18265,16 @@ class Padded extends Rn.Component {
17244
18265
  static symmetric = ({
17245
18266
  vertical = 0,
17246
18267
  horizontal = 0,
17247
- ...p3
17248
- }) => u3(Padded, {
17249
- ...p3,
18268
+ ...p6
18269
+ }) => u4(Padded, {
18270
+ ...p6,
17250
18271
  top: vertical,
17251
18272
  bottom: vertical,
17252
18273
  left: horizontal,
17253
18274
  right: horizontal
17254
18275
  }, undefined, false, undefined, this);
17255
18276
  render() {
17256
- return u3("div", {
18277
+ return u4("div", {
17257
18278
  style: {
17258
18279
  paddingTop: `${this.props.top}rem`,
17259
18280
  paddingRight: `${this.props.right}rem`,
@@ -17266,44 +18287,44 @@ class Padded extends Rn.Component {
17266
18287
  }
17267
18288
  // src/ui/components/text.tsx
17268
18289
  class Text2 extends Rn.Component {
17269
- static h1 = (p3) => u3(Text2, {
17270
- ...p3,
18290
+ static h1 = (p6) => u4(Text2, {
18291
+ ...p6,
17271
18292
  typeStyle: "header-1"
17272
18293
  }, undefined, false, undefined, this);
17273
- static h2 = (p3) => u3(Text2, {
17274
- ...p3,
18294
+ static h2 = (p6) => u4(Text2, {
18295
+ ...p6,
17275
18296
  typeStyle: "header-2"
17276
18297
  }, undefined, false, undefined, this);
17277
- static h3 = (p3) => u3(Text2, {
17278
- ...p3,
18298
+ static h3 = (p6) => u4(Text2, {
18299
+ ...p6,
17279
18300
  typeStyle: "header-3"
17280
18301
  }, undefined, false, undefined, this);
17281
- static h4 = (p3) => u3(Text2, {
17282
- ...p3,
18302
+ static h4 = (p6) => u4(Text2, {
18303
+ ...p6,
17283
18304
  typeStyle: "header-4"
17284
18305
  }, undefined, false, undefined, this);
17285
- static h5 = (p3) => u3(Text2, {
17286
- ...p3,
18306
+ static h5 = (p6) => u4(Text2, {
18307
+ ...p6,
17287
18308
  typeStyle: "header-5"
17288
18309
  }, undefined, false, undefined, this);
17289
- static h6 = (p3) => u3(Text2, {
17290
- ...p3,
18310
+ static h6 = (p6) => u4(Text2, {
18311
+ ...p6,
17291
18312
  typeStyle: "header-6"
17292
18313
  }, undefined, false, undefined, this);
17293
- static s = (p3) => u3(Text2, {
17294
- ...p3,
18314
+ static s = (p6) => u4(Text2, {
18315
+ ...p6,
17295
18316
  typeStyle: "text-s"
17296
18317
  }, undefined, false, undefined, this);
17297
- static m = (p3) => u3(Text2, {
17298
- ...p3,
18318
+ static m = (p6) => u4(Text2, {
18319
+ ...p6,
17299
18320
  typeStyle: "text-m"
17300
18321
  }, undefined, false, undefined, this);
17301
- static l = (p3) => u3(Text2, {
17302
- ...p3,
18322
+ static l = (p6) => u4(Text2, {
18323
+ ...p6,
17303
18324
  typeStyle: "text-l"
17304
18325
  }, undefined, false, undefined, this);
17305
- static code = (p3) => u3(Text2, {
17306
- ...p3,
18326
+ static code = (p6) => u4(Text2, {
18327
+ ...p6,
17307
18328
  typeStyle: "code"
17308
18329
  }, undefined, false, undefined, this);
17309
18330
  constructor({
@@ -17323,10 +18344,10 @@ class Text2 extends Rn.Component {
17323
18344
  size,
17324
18345
  children,
17325
18346
  typeStyle,
17326
- v: v3,
18347
+ v: v6,
17327
18348
  ...elbe
17328
18349
  } = this.props;
17329
- return u3("span", {
18350
+ return u4("span", {
17330
18351
  ...applyProps(elbe, [
17331
18352
  "text",
17332
18353
  align,
@@ -17341,7 +18362,7 @@ class Text2 extends Rn.Component {
17341
18362
  color: color || ""
17342
18363
  }),
17343
18364
  children: [
17344
- v3,
18365
+ v6,
17345
18366
  children
17346
18367
  ]
17347
18368
  }, undefined, true, undefined, this);
@@ -17354,15 +18375,15 @@ function ToggleButton({
17354
18375
  value,
17355
18376
  ...elbe
17356
18377
  }) {
17357
- return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") : u3(Card, {
18378
+ return items.length < 1 ? _ElbeErr("ToggleButton requires at least one item") : u4(Card, {
17358
18379
  mode: "light",
17359
18380
  colorScheme: "primary",
17360
18381
  padding: 0,
17361
18382
  ...applyProps(elbe, null, { overflow: "hidden", width: "100%" }),
17362
- children: u3(Column, {
18383
+ children: u4(Column, {
17363
18384
  stretch: true,
17364
18385
  gap: 0,
17365
- children: items.map((item) => u3(Card, {
18386
+ children: items.map((item) => u4(Card, {
17366
18387
  onTap: onSelect ? () => onSelect(item.key) : undefined,
17367
18388
  class: `row b ${onSelect ? "pointer" : "disabled"}`,
17368
18389
  style: { border: "none", borderRadius: 0, gap: ".75rem" },
@@ -17371,8 +18392,8 @@ function ToggleButton({
17371
18392
  children: [
17372
18393
  item.icon?.({}),
17373
18394
  item.label,
17374
- u3(FlexSpace, {}, undefined, false, undefined, this),
17375
- value === item.key && u3(Icons.Check, {}, undefined, false, undefined, this)
18395
+ u4(FlexSpace, {}, undefined, false, undefined, this),
18396
+ value === item.key && u4(Icons.Check, {}, undefined, false, undefined, this)
17376
18397
  ]
17377
18398
  }, undefined, true, undefined, this))
17378
18399
  }, undefined, false, undefined, this)
@@ -17412,9 +18433,9 @@ function showConfirmDialog({
17412
18433
  </dialog>
17413
18434
  `;
17414
18435
  document.body.appendChild(dialog);
17415
- window["conf_resolve"] = (v3) => {
18436
+ window["conf_resolve"] = (v6) => {
17416
18437
  document.body.removeChild(dialog);
17417
- resolve(v3);
18438
+ resolve(v6);
17418
18439
  };
17419
18440
  });
17420
18441
  }
@@ -17446,28 +18467,37 @@ function copyToClipboard(text, toastMsg = "copied to clipboard") {
17446
18467
  // src/index.tsx
17447
18468
  var Icons = $icons;
17448
18469
  export {
18470
+ useBit,
17449
18471
  showToast,
17450
18472
  showConfirmDialog,
17451
18473
  share,
18474
+ makeBit,
18475
+ ifApiError,
17452
18476
  copyToClipboard,
17453
18477
  applyProps,
18478
+ WorkerControl,
17454
18479
  ToggleButton,
17455
18480
  Text2 as Text,
17456
18481
  TestBadge,
18482
+ StreamControl,
18483
+ Spinner,
17457
18484
  Spaced,
17458
18485
  Select,
17459
18486
  Row,
17460
18487
  Range,
18488
+ ProvideBit,
17461
18489
  Padded,
17462
18490
  Icons,
17463
18491
  IconButton,
17464
18492
  FlexSpace,
17465
18493
  Field,
17466
18494
  ElbeDialog,
18495
+ CtrlBit,
17467
18496
  Column,
17468
18497
  Checkbox,
17469
18498
  Card,
17470
18499
  Button,
17471
18500
  Box2 as Box,
17472
- Badge2 as Badge
18501
+ Badge2 as Badge,
18502
+ ApiService
17473
18503
  };