mol_plot_all 1.2.525 → 1.2.527

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/web.test.js CHANGED
@@ -100,112 +100,16 @@ var $;
100
100
  //mol/type/error/error.ts
101
101
  ;
102
102
  "use strict";
103
- //mol/type/assert/assert.test.ts
104
- ;
105
- "use strict";
106
103
  //mol/type/assert/assert.ts
107
104
  ;
108
105
  "use strict";
109
- //mol/type/equals/equals.test.ts
110
- ;
111
- "use strict";
112
- //mol/type/equals/equals.ts
113
- ;
114
- "use strict";
115
- //mol/type/partial/deep/deep.test.ts
106
+ //mol/type/assert/assert.test.ts
116
107
  ;
117
108
  "use strict";
118
109
  //mol/type/partial/deep/deep.ts
119
110
  ;
120
111
  "use strict";
121
- var $;
122
- (function ($) {
123
- $mol_test({
124
- 'Make empty div'() {
125
- $mol_assert_equal(($mol_jsx("div", null)).outerHTML, '<div></div>');
126
- },
127
- 'Define native field'() {
128
- const dom = $mol_jsx("input", { value: '123' });
129
- $mol_assert_equal(dom.outerHTML, '<input value="123">');
130
- $mol_assert_equal(dom.value, '123');
131
- },
132
- 'Define classes'() {
133
- const dom = $mol_jsx("div", { class: 'foo bar' });
134
- $mol_assert_equal(dom.outerHTML, '<div class="foo bar"></div>');
135
- },
136
- 'Define styles'() {
137
- const dom = $mol_jsx("div", { style: { color: 'red' } });
138
- $mol_assert_equal(dom.outerHTML, '<div style="color: red;"></div>');
139
- },
140
- 'Define dataset'() {
141
- const dom = $mol_jsx("div", { dataset: { foo: 'bar' } });
142
- $mol_assert_equal(dom.outerHTML, '<div data-foo="bar"></div>');
143
- },
144
- 'Define attributes'() {
145
- const dom = $mol_jsx("div", { lang: "ru", hidden: true });
146
- $mol_assert_equal(dom.outerHTML, '<div lang="ru" hidden=""></div>');
147
- },
148
- 'Define child nodes'() {
149
- const dom = $mol_jsx("div", null,
150
- "hello",
151
- $mol_jsx("strong", null, "world"),
152
- "!");
153
- $mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
154
- },
155
- 'Function as component'() {
156
- const Button = (props, target) => {
157
- return $mol_jsx("button", { title: props.hint }, target());
158
- };
159
- const dom = $mol_jsx(Button, { id: "foo", hint: "click me" }, () => 'hey!');
160
- $mol_assert_equal(dom.outerHTML, '<button id="foo" title="click me" class="Button">hey!</button>');
161
- },
162
- 'Nested guid generation'() {
163
- const Foo = () => {
164
- return $mol_jsx("div", null,
165
- $mol_jsx(Bar, { id: "bar" },
166
- $mol_jsx("img", { id: "icon" })));
167
- };
168
- const Bar = (props, icon) => {
169
- return $mol_jsx("span", null,
170
- icon,
171
- $mol_jsx("i", { id: "label" }));
172
- };
173
- const dom = $mol_jsx(Foo, { id: "foo" });
174
- $mol_assert_equal(dom.outerHTML, '<div id="foo" class="Foo"><span id="foo/bar" class="Foo_bar Bar"><img id="foo/icon" class="Foo_icon"><i id="foo/bar/label" class="Foo_bar_label Bar_label"></i></span></div>');
175
- },
176
- 'Fail on non unique ids'() {
177
- const App = () => {
178
- return $mol_jsx("div", null,
179
- $mol_jsx("span", { id: "bar" }),
180
- $mol_jsx("span", { id: "bar" }));
181
- };
182
- $mol_assert_fail(() => $mol_jsx(App, { id: "foo" }), 'JSX already has tag with id "foo/bar"');
183
- },
184
- 'Owner based guid generationn'() {
185
- const Foo = () => {
186
- return $mol_jsx("div", null,
187
- $mol_jsx(Bar, { id: "middle", icon: () => $mol_jsx("img", { id: "icon" }) }));
188
- };
189
- const Bar = (props) => {
190
- return $mol_jsx("span", null, props.icon());
191
- };
192
- const dom = $mol_jsx(Foo, { id: "app" });
193
- $mol_assert_equal(dom.outerHTML, '<div id="app" class="Foo"><span id="app/middle" class="Foo_middle Bar"><img id="app/icon" class="Foo_icon"></span></div>');
194
- },
195
- 'Fail on same ids from different caller'() {
196
- const Foo = () => {
197
- return $mol_jsx("div", null,
198
- $mol_jsx("img", { id: "icon" }),
199
- $mol_jsx(Bar, { id: "bar", icon: () => $mol_jsx("img", { id: "icon" }) }));
200
- };
201
- const Bar = (props) => {
202
- return $mol_jsx("span", null, props.icon());
203
- };
204
- $mol_assert_fail(() => $mol_jsx(Foo, { id: "foo" }), 'JSX already has tag with id "foo/icon"');
205
- },
206
- });
207
- })($ || ($ = {}));
208
- //mol/jsx/jsx.test.tsx
112
+ //mol/type/partial/deep/deep.test.ts
209
113
  ;
210
114
  "use strict";
211
115
  var $;
@@ -330,6 +234,96 @@ var $;
330
234
  ;
331
235
  "use strict";
332
236
  var $;
237
+ (function ($) {
238
+ $mol_test({
239
+ 'Make empty div'() {
240
+ $mol_assert_equal(($mol_jsx("div", null)).outerHTML, '<div></div>');
241
+ },
242
+ 'Define native field'() {
243
+ const dom = $mol_jsx("input", { value: '123' });
244
+ $mol_assert_equal(dom.outerHTML, '<input value="123">');
245
+ $mol_assert_equal(dom.value, '123');
246
+ },
247
+ 'Define classes'() {
248
+ const dom = $mol_jsx("div", { class: 'foo bar' });
249
+ $mol_assert_equal(dom.outerHTML, '<div class="foo bar"></div>');
250
+ },
251
+ 'Define styles'() {
252
+ const dom = $mol_jsx("div", { style: { color: 'red' } });
253
+ $mol_assert_equal(dom.outerHTML, '<div style="color: red;"></div>');
254
+ },
255
+ 'Define dataset'() {
256
+ const dom = $mol_jsx("div", { dataset: { foo: 'bar' } });
257
+ $mol_assert_equal(dom.outerHTML, '<div data-foo="bar"></div>');
258
+ },
259
+ 'Define attributes'() {
260
+ const dom = $mol_jsx("div", { lang: "ru", hidden: true });
261
+ $mol_assert_equal(dom.outerHTML, '<div lang="ru" hidden=""></div>');
262
+ },
263
+ 'Define child nodes'() {
264
+ const dom = $mol_jsx("div", null,
265
+ "hello",
266
+ $mol_jsx("strong", null, "world"),
267
+ "!");
268
+ $mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
269
+ },
270
+ 'Function as component'() {
271
+ const Button = (props, target) => {
272
+ return $mol_jsx("button", { title: props.hint }, target());
273
+ };
274
+ const dom = $mol_jsx(Button, { id: "foo", hint: "click me" }, () => 'hey!');
275
+ $mol_assert_equal(dom.outerHTML, '<button id="foo" title="click me" class="Button">hey!</button>');
276
+ },
277
+ 'Nested guid generation'() {
278
+ const Foo = () => {
279
+ return $mol_jsx("div", null,
280
+ $mol_jsx(Bar, { id: "bar" },
281
+ $mol_jsx("img", { id: "icon" })));
282
+ };
283
+ const Bar = (props, icon) => {
284
+ return $mol_jsx("span", null,
285
+ icon,
286
+ $mol_jsx("i", { id: "label" }));
287
+ };
288
+ const dom = $mol_jsx(Foo, { id: "foo" });
289
+ $mol_assert_equal(dom.outerHTML, '<div id="foo" class="Foo"><span id="foo/bar" class="Foo_bar Bar"><img id="foo/icon" class="Foo_icon"><i id="foo/bar/label" class="Foo_bar_label Bar_label"></i></span></div>');
290
+ },
291
+ 'Fail on non unique ids'() {
292
+ const App = () => {
293
+ return $mol_jsx("div", null,
294
+ $mol_jsx("span", { id: "bar" }),
295
+ $mol_jsx("span", { id: "bar" }));
296
+ };
297
+ $mol_assert_fail(() => $mol_jsx(App, { id: "foo" }), 'JSX already has tag with id "foo/bar"');
298
+ },
299
+ 'Owner based guid generationn'() {
300
+ const Foo = () => {
301
+ return $mol_jsx("div", null,
302
+ $mol_jsx(Bar, { id: "middle", icon: () => $mol_jsx("img", { id: "icon" }) }));
303
+ };
304
+ const Bar = (props) => {
305
+ return $mol_jsx("span", null, props.icon());
306
+ };
307
+ const dom = $mol_jsx(Foo, { id: "app" });
308
+ $mol_assert_equal(dom.outerHTML, '<div id="app" class="Foo"><span id="app/middle" class="Foo_middle Bar"><img id="app/icon" class="Foo_icon"></span></div>');
309
+ },
310
+ 'Fail on same ids from different caller'() {
311
+ const Foo = () => {
312
+ return $mol_jsx("div", null,
313
+ $mol_jsx("img", { id: "icon" }),
314
+ $mol_jsx(Bar, { id: "bar", icon: () => $mol_jsx("img", { id: "icon" }) }));
315
+ };
316
+ const Bar = (props) => {
317
+ return $mol_jsx("span", null, props.icon());
318
+ };
319
+ $mol_assert_fail(() => $mol_jsx(Foo, { id: "foo" }), 'JSX already has tag with id "foo/icon"');
320
+ },
321
+ });
322
+ })($ || ($ = {}));
323
+ //mol/jsx/jsx.test.tsx
324
+ ;
325
+ "use strict";
326
+ var $;
333
327
  (function ($) {
334
328
  $mol_test({
335
329
  'nulls & undefineds'() {
@@ -437,38 +431,6 @@ var $;
437
431
  ;
438
432
  "use strict";
439
433
  var $;
440
- (function ($) {
441
- $mol_test({
442
- 'must be false'() {
443
- $mol_assert_not(0);
444
- },
445
- 'must be true'() {
446
- $mol_assert_ok(1);
447
- },
448
- 'two must be equal'() {
449
- $mol_assert_equal(2, 2);
450
- },
451
- 'three must be equal'() {
452
- $mol_assert_equal(2, 2, 2);
453
- },
454
- 'two must be unique'() {
455
- $mol_assert_unique([3], [3]);
456
- },
457
- 'three must be unique'() {
458
- $mol_assert_unique([3], [3], [3]);
459
- },
460
- 'two must be alike'() {
461
- $mol_assert_like([3], [3]);
462
- },
463
- 'three must be alike'() {
464
- $mol_assert_like([3], [3], [3]);
465
- },
466
- });
467
- })($ || ($ = {}));
468
- //mol/assert/assert.test.ts
469
- ;
470
- "use strict";
471
- var $;
472
434
  (function ($) {
473
435
  function $mol_assert_ok(value) {
474
436
  if (value)
@@ -563,6 +525,114 @@ var $;
563
525
  ;
564
526
  "use strict";
565
527
  var $;
528
+ (function ($) {
529
+ $mol_test({
530
+ 'must be false'() {
531
+ $mol_assert_not(0);
532
+ },
533
+ 'must be true'() {
534
+ $mol_assert_ok(1);
535
+ },
536
+ 'two must be equal'() {
537
+ $mol_assert_equal(2, 2);
538
+ },
539
+ 'three must be equal'() {
540
+ $mol_assert_equal(2, 2, 2);
541
+ },
542
+ 'two must be unique'() {
543
+ $mol_assert_unique([3], [3]);
544
+ },
545
+ 'three must be unique'() {
546
+ $mol_assert_unique([3], [3], [3]);
547
+ },
548
+ 'two must be alike'() {
549
+ $mol_assert_like([3], [3]);
550
+ },
551
+ 'three must be alike'() {
552
+ $mol_assert_like([3], [3], [3]);
553
+ },
554
+ });
555
+ })($ || ($ = {}));
556
+ //mol/assert/assert.test.ts
557
+ ;
558
+ "use strict";
559
+ var $;
560
+ (function ($) {
561
+ function $mol_log3_area_lazy(event) {
562
+ const self = this;
563
+ const stack = self.$mol_log3_stack;
564
+ const deep = stack.length;
565
+ let logged = false;
566
+ stack.push(() => {
567
+ logged = true;
568
+ self.$mol_log3_area.call(self, event);
569
+ });
570
+ return () => {
571
+ if (logged)
572
+ self.console.groupEnd();
573
+ if (stack.length > deep)
574
+ stack.length = deep;
575
+ };
576
+ }
577
+ $.$mol_log3_area_lazy = $mol_log3_area_lazy;
578
+ $.$mol_log3_stack = [];
579
+ })($ || ($ = {}));
580
+ //mol/log3/log3.ts
581
+ ;
582
+ "use strict";
583
+ //mol/type/equals/equals.ts
584
+ ;
585
+ "use strict";
586
+ //mol/type/equals/equals.test.ts
587
+ ;
588
+ "use strict";
589
+ //mol/type/keys/extract/extract.test.ts
590
+ ;
591
+ "use strict";
592
+ var $;
593
+ (function ($) {
594
+ function $mol_log3_web_make(level, color) {
595
+ return function $mol_log3_logger(event) {
596
+ const pending = this.$mol_log3_stack.pop();
597
+ if (pending)
598
+ pending();
599
+ let tpl = '%c';
600
+ const chunks = Object.values(event);
601
+ for (let i = 0; i < chunks.length; ++i) {
602
+ tpl += (typeof chunks[i] === 'string') ? ' ⦙ %s' : ' ⦙ %o';
603
+ }
604
+ const style = `color:${color};font-weight:bolder`;
605
+ this.console[level](tpl, style, ...chunks);
606
+ const self = this;
607
+ return () => self.console.groupEnd();
608
+ };
609
+ }
610
+ $.$mol_log3_web_make = $mol_log3_web_make;
611
+ $.$mol_log3_come = $mol_log3_web_make('info', 'royalblue');
612
+ $.$mol_log3_done = $mol_log3_web_make('info', 'forestgreen');
613
+ $.$mol_log3_fail = $mol_log3_web_make('error', 'orangered');
614
+ $.$mol_log3_warn = $mol_log3_web_make('warn', 'goldenrod');
615
+ $.$mol_log3_rise = $mol_log3_web_make('log', 'magenta');
616
+ $.$mol_log3_area = $mol_log3_web_make('group', 'cyan');
617
+ })($ || ($ = {}));
618
+ //mol/log3/log3.web.ts
619
+ ;
620
+ "use strict";
621
+ var $;
622
+ (function ($_1) {
623
+ $mol_test_mocks.push($ => {
624
+ $.$mol_log3_come = () => { };
625
+ $.$mol_log3_done = () => { };
626
+ $.$mol_log3_fail = () => { };
627
+ $.$mol_log3_warn = () => { };
628
+ $.$mol_log3_rise = () => { };
629
+ $.$mol_log3_area = () => () => { };
630
+ });
631
+ })($ || ($ = {}));
632
+ //mol/log3/log3.test.ts
633
+ ;
634
+ "use strict";
635
+ var $;
566
636
  (function ($_1) {
567
637
  $mol_test({
568
638
  'FQN of anon function'($) {
@@ -644,119 +714,21 @@ var $;
644
714
  "use strict";
645
715
  var $;
646
716
  (function ($) {
647
- $.$mol_after_mock_queue = [];
648
- function $mol_after_mock_warp() {
649
- const queue = $.$mol_after_mock_queue.splice(0);
650
- for (const task of queue)
651
- task();
652
- }
653
- $.$mol_after_mock_warp = $mol_after_mock_warp;
654
- class $mol_after_mock_commmon extends $mol_object2 {
655
- task;
656
- promise = Promise.resolve();
657
- cancelled = false;
658
- id;
659
- constructor(task) {
660
- super();
661
- this.task = task;
662
- $.$mol_after_mock_queue.push(task);
663
- }
664
- destructor() {
665
- const index = $.$mol_after_mock_queue.indexOf(this.task);
666
- if (index >= 0)
667
- $.$mol_after_mock_queue.splice(index, 1);
668
- }
669
- }
670
- $.$mol_after_mock_commmon = $mol_after_mock_commmon;
671
- class $mol_after_mock_timeout extends $mol_after_mock_commmon {
672
- delay;
673
- constructor(delay, task) {
674
- super(task);
675
- this.delay = delay;
676
- }
677
- }
678
- $.$mol_after_mock_timeout = $mol_after_mock_timeout;
679
- })($ || ($ = {}));
680
- //mol/after/mock/mock.test.ts
681
- ;
682
- "use strict";
683
- var $;
684
- (function ($) {
685
- function $mol_log3_area_lazy(event) {
686
- const self = this;
687
- const stack = self.$mol_log3_stack;
688
- const deep = stack.length;
689
- let logged = false;
690
- stack.push(() => {
691
- logged = true;
692
- self.$mol_log3_area.call(self, event);
693
- });
694
- return () => {
695
- if (logged)
696
- self.console.groupEnd();
697
- if (stack.length > deep)
698
- stack.length = deep;
699
- };
700
- }
701
- $.$mol_log3_area_lazy = $mol_log3_area_lazy;
702
- $.$mol_log3_stack = [];
703
- })($ || ($ = {}));
704
- //mol/log3/log3.ts
705
- ;
706
- "use strict";
707
- //mol/type/keys/extract/extract.test.ts
708
- ;
709
- "use strict";
710
- var $;
711
- (function ($_1) {
712
- $mol_test_mocks.push($ => {
713
- $.$mol_log3_come = () => { };
714
- $.$mol_log3_done = () => { };
715
- $.$mol_log3_fail = () => { };
716
- $.$mol_log3_warn = () => { };
717
- $.$mol_log3_rise = () => { };
718
- $.$mol_log3_area = () => () => { };
719
- });
720
- })($ || ($ = {}));
721
- //mol/log3/log3.test.ts
722
- ;
723
- "use strict";
724
- var $;
725
- (function ($) {
726
- function $mol_log3_web_make(level, color) {
727
- return function $mol_log3_logger(event) {
728
- const pending = this.$mol_log3_stack.pop();
729
- if (pending)
730
- pending();
731
- let tpl = '%c';
732
- const chunks = Object.values(event);
733
- for (let i = 0; i < chunks.length; ++i) {
734
- tpl += (typeof chunks[i] === 'string') ? ' ⦙ %s' : ' ⦙ %o';
717
+ $mol_test({
718
+ 'init with overload'() {
719
+ class X extends $mol_object {
720
+ foo() {
721
+ return 1;
722
+ }
735
723
  }
736
- const style = `color:${color};font-weight:bolder`;
737
- this.console[level](tpl, style, ...chunks);
738
- const self = this;
739
- return () => self.console.groupEnd();
740
- };
741
- }
742
- $.$mol_log3_web_make = $mol_log3_web_make;
743
- $.$mol_log3_come = $mol_log3_web_make('info', 'royalblue');
744
- $.$mol_log3_done = $mol_log3_web_make('info', 'forestgreen');
745
- $.$mol_log3_fail = $mol_log3_web_make('error', 'orangered');
746
- $.$mol_log3_warn = $mol_log3_web_make('warn', 'goldenrod');
747
- $.$mol_log3_rise = $mol_log3_web_make('log', 'magenta');
748
- $.$mol_log3_area = $mol_log3_web_make('group', 'cyan');
749
- })($ || ($ = {}));
750
- //mol/log3/log3.web.ts
751
- ;
752
- "use strict";
753
- var $;
754
- (function ($_1) {
755
- $mol_test_mocks.push($ => {
756
- $.$mol_after_tick = $mol_after_mock_commmon;
724
+ var x = X.make({
725
+ foo: () => 2,
726
+ });
727
+ $mol_assert_equal(x.foo(), 2);
728
+ },
757
729
  });
758
730
  })($ || ($ = {}));
759
- //mol/after/tick/tick.test.ts
731
+ //mol/object/object.test.ts
760
732
  ;
761
733
  "use strict";
762
734
  var $;
@@ -814,7 +786,45 @@ var $;
814
786
  },
815
787
  });
816
788
  })($ || ($ = {}));
817
- //mol/wire/pub/sub/sub.test.ts
789
+ //mol/wire/pub/sub/sub.test.ts
790
+ ;
791
+ "use strict";
792
+ var $;
793
+ (function ($) {
794
+ $.$mol_after_mock_queue = [];
795
+ function $mol_after_mock_warp() {
796
+ const queue = $.$mol_after_mock_queue.splice(0);
797
+ for (const task of queue)
798
+ task();
799
+ }
800
+ $.$mol_after_mock_warp = $mol_after_mock_warp;
801
+ class $mol_after_mock_commmon extends $mol_object2 {
802
+ task;
803
+ promise = Promise.resolve();
804
+ cancelled = false;
805
+ id;
806
+ constructor(task) {
807
+ super();
808
+ this.task = task;
809
+ $.$mol_after_mock_queue.push(task);
810
+ }
811
+ destructor() {
812
+ const index = $.$mol_after_mock_queue.indexOf(this.task);
813
+ if (index >= 0)
814
+ $.$mol_after_mock_queue.splice(index, 1);
815
+ }
816
+ }
817
+ $.$mol_after_mock_commmon = $mol_after_mock_commmon;
818
+ class $mol_after_mock_timeout extends $mol_after_mock_commmon {
819
+ delay;
820
+ constructor(delay, task) {
821
+ super(task);
822
+ this.delay = delay;
823
+ }
824
+ }
825
+ $.$mol_after_mock_timeout = $mol_after_mock_timeout;
826
+ })($ || ($ = {}));
827
+ //mol/after/mock/mock.test.ts
818
828
  ;
819
829
  "use strict";
820
830
  var $;
@@ -908,6 +918,9 @@ var $;
908
918
  //mol/wire/fiber/fiber.test.ts
909
919
  ;
910
920
  "use strict";
921
+ //mol/type/tail/tail.test.ts
922
+ ;
923
+ "use strict";
911
924
  var $;
912
925
  (function ($) {
913
926
  function $mol_promise() {
@@ -1023,9 +1036,6 @@ var $;
1023
1036
  //mol/wire/async/async.test.ts
1024
1037
  ;
1025
1038
  "use strict";
1026
- //mol/type/tail/tail.test.ts
1027
- ;
1028
- "use strict";
1029
1039
  var $;
1030
1040
  (function ($_1) {
1031
1041
  $mol_test({
@@ -1616,22 +1626,12 @@ var $;
1616
1626
  ;
1617
1627
  "use strict";
1618
1628
  var $;
1619
- (function ($) {
1620
- $mol_test({
1621
- 'init with overload'() {
1622
- class X extends $mol_object {
1623
- foo() {
1624
- return 1;
1625
- }
1626
- }
1627
- var x = X.make({
1628
- foo: () => 2,
1629
- });
1630
- $mol_assert_equal(x.foo(), 2);
1631
- },
1629
+ (function ($_1) {
1630
+ $mol_test_mocks.push($ => {
1631
+ $.$mol_after_tick = $mol_after_mock_commmon;
1632
1632
  });
1633
1633
  })($ || ($ = {}));
1634
- //mol/object/object.test.ts
1634
+ //mol/after/tick/tick.test.ts
1635
1635
  ;
1636
1636
  "use strict";
1637
1637
  var $;
@@ -1794,6 +1794,64 @@ var $;
1794
1794
  ;
1795
1795
  "use strict";
1796
1796
  var $;
1797
+ (function ($) {
1798
+ $mol_test({
1799
+ 'Primitives'() {
1800
+ $mol_assert_equal($mol_key(null), 'null');
1801
+ $mol_assert_equal($mol_key(false), 'false');
1802
+ $mol_assert_equal($mol_key(true), 'true');
1803
+ $mol_assert_equal($mol_key(0), '0');
1804
+ $mol_assert_equal($mol_key(''), '""');
1805
+ },
1806
+ 'Array & POJO'() {
1807
+ $mol_assert_equal($mol_key([null]), '[null]');
1808
+ $mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
1809
+ $mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
1810
+ },
1811
+ 'Function'() {
1812
+ const func = () => { };
1813
+ $mol_assert_equal($mol_key(func), $mol_key(func));
1814
+ $mol_assert_unique($mol_key(func), $mol_key(() => { }));
1815
+ },
1816
+ 'Objects'() {
1817
+ class User {
1818
+ }
1819
+ const jin = new User();
1820
+ $mol_assert_equal($mol_key(jin), $mol_key(jin));
1821
+ $mol_assert_unique($mol_key(jin), $mol_key(new User()));
1822
+ },
1823
+ 'Elements'() {
1824
+ const foo = $mol_jsx("div", null, "bar");
1825
+ $mol_assert_equal($mol_key(foo), $mol_key(foo));
1826
+ $mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
1827
+ },
1828
+ 'Custom JSON representation'() {
1829
+ class User {
1830
+ name;
1831
+ age;
1832
+ constructor(name, age) {
1833
+ this.name = name;
1834
+ this.age = age;
1835
+ }
1836
+ toJSON() { return { name: this.name }; }
1837
+ }
1838
+ $mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
1839
+ },
1840
+ 'Special native classes'() {
1841
+ $mol_assert_equal($mol_key(new Date('xyz')), 'null');
1842
+ $mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
1843
+ $mol_assert_equal($mol_key(/./), '"/./"');
1844
+ $mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
1845
+ },
1846
+ });
1847
+ })($ || ($ = {}));
1848
+ //mol/key/key.test.tsx
1849
+ ;
1850
+ "use strict";
1851
+ //mol/type/foot/foot.test.ts
1852
+ ;
1853
+ "use strict";
1854
+ var $;
1797
1855
  (function ($) {
1798
1856
  class $mol_wire_log extends $mol_object2 {
1799
1857
  static watch(task) {
@@ -1860,64 +1918,6 @@ var $;
1860
1918
  ;
1861
1919
  "use strict";
1862
1920
  var $;
1863
- (function ($) {
1864
- $mol_test({
1865
- 'Primitives'() {
1866
- $mol_assert_equal($mol_key(null), 'null');
1867
- $mol_assert_equal($mol_key(false), 'false');
1868
- $mol_assert_equal($mol_key(true), 'true');
1869
- $mol_assert_equal($mol_key(0), '0');
1870
- $mol_assert_equal($mol_key(''), '""');
1871
- },
1872
- 'Array & POJO'() {
1873
- $mol_assert_equal($mol_key([null]), '[null]');
1874
- $mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
1875
- $mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
1876
- },
1877
- 'Function'() {
1878
- const func = () => { };
1879
- $mol_assert_equal($mol_key(func), $mol_key(func));
1880
- $mol_assert_unique($mol_key(func), $mol_key(() => { }));
1881
- },
1882
- 'Objects'() {
1883
- class User {
1884
- }
1885
- const jin = new User();
1886
- $mol_assert_equal($mol_key(jin), $mol_key(jin));
1887
- $mol_assert_unique($mol_key(jin), $mol_key(new User()));
1888
- },
1889
- 'Elements'() {
1890
- const foo = $mol_jsx("div", null, "bar");
1891
- $mol_assert_equal($mol_key(foo), $mol_key(foo));
1892
- $mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
1893
- },
1894
- 'Custom JSON representation'() {
1895
- class User {
1896
- name;
1897
- age;
1898
- constructor(name, age) {
1899
- this.name = name;
1900
- this.age = age;
1901
- }
1902
- toJSON() { return { name: this.name }; }
1903
- }
1904
- $mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
1905
- },
1906
- 'Special native classes'() {
1907
- $mol_assert_equal($mol_key(new Date('xyz')), 'null');
1908
- $mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
1909
- $mol_assert_equal($mol_key(/./), '"/./"');
1910
- $mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
1911
- },
1912
- });
1913
- })($ || ($ = {}));
1914
- //mol/key/key.test.tsx
1915
- ;
1916
- "use strict";
1917
- //mol/type/foot/foot.test.ts
1918
- ;
1919
- "use strict";
1920
- var $;
1921
1921
  (function ($) {
1922
1922
  $mol_wire_log.active();
1923
1923
  })($ || ($ = {}));
@@ -2047,26 +2047,26 @@ var $;
2047
2047
  "use strict";
2048
2048
  var $;
2049
2049
  (function ($) {
2050
- class $mol_view_tree_test_attributes_super extends $mol_view {
2050
+ class $mol_view_tree_test_simple extends $mol_view {
2051
2051
  some() {
2052
- return {
2053
- a: 0,
2054
- b: 2
2055
- };
2052
+ return 1;
2056
2053
  }
2057
- }
2058
- $.$mol_view_tree_test_attributes_super = $mol_view_tree_test_attributes_super;
2059
- class $mol_view_tree_test_attributes extends $mol_view_tree_test_attributes_super {
2060
- some() {
2061
- return {
2062
- ...super.some(),
2063
- a: 1
2064
- };
2054
+ bool() {
2055
+ return true;
2056
+ }
2057
+ str() {
2058
+ return "test";
2059
+ }
2060
+ arr() {
2061
+ return [];
2062
+ }
2063
+ arr_string() {
2064
+ return [];
2065
2065
  }
2066
2066
  }
2067
- $.$mol_view_tree_test_attributes = $mol_view_tree_test_attributes;
2067
+ $.$mol_view_tree_test_simple = $mol_view_tree_test_simple;
2068
2068
  })($ || ($ = {}));
2069
- //mol/view/tree/test/-view.tree/attributes.test.view.tree.ts
2069
+ //mol/view/tree/test/-view.tree/simple.test.view.tree.ts
2070
2070
  ;
2071
2071
  "use strict";
2072
2072
  var $;
@@ -2097,56 +2097,26 @@ var $;
2097
2097
  "use strict";
2098
2098
  var $;
2099
2099
  (function ($) {
2100
- class $mol_view_tree_test_binding_right extends $mol_view {
2101
- outer_width(v) {
2102
- return this.Test().width(v);
2103
- }
2104
- Test() {
2105
- const obj = new this.$.$mol_view_tree_test_binding_right_test();
2106
- return obj;
2107
- }
2108
- }
2109
- __decorate([
2110
- $mol_mem
2111
- ], $mol_view_tree_test_binding_right.prototype, "Test", null);
2112
- $.$mol_view_tree_test_binding_right = $mol_view_tree_test_binding_right;
2113
- class $mol_view_tree_test_binding_right_test extends $mol_view {
2114
- width(val) {
2115
- if (val !== undefined)
2116
- return val;
2117
- return 0;
2100
+ class $mol_view_tree_test_attributes_super extends $mol_view {
2101
+ some() {
2102
+ return {
2103
+ a: 0,
2104
+ b: 2
2105
+ };
2118
2106
  }
2119
2107
  }
2120
- __decorate([
2121
- $mol_mem
2122
- ], $mol_view_tree_test_binding_right_test.prototype, "width", null);
2123
- $.$mol_view_tree_test_binding_right_test = $mol_view_tree_test_binding_right_test;
2124
- })($ || ($ = {}));
2125
- //mol/view/tree/test/-view.tree/binding_right.test.view.tree.ts
2126
- ;
2127
- "use strict";
2128
- var $;
2129
- (function ($) {
2130
- class $mol_view_tree_test_simple extends $mol_view {
2108
+ $.$mol_view_tree_test_attributes_super = $mol_view_tree_test_attributes_super;
2109
+ class $mol_view_tree_test_attributes extends $mol_view_tree_test_attributes_super {
2131
2110
  some() {
2132
- return 1;
2133
- }
2134
- bool() {
2135
- return true;
2136
- }
2137
- str() {
2138
- return "test";
2139
- }
2140
- arr() {
2141
- return [];
2142
- }
2143
- arr_string() {
2144
- return [];
2111
+ return {
2112
+ ...super.some(),
2113
+ a: 1
2114
+ };
2145
2115
  }
2146
2116
  }
2147
- $.$mol_view_tree_test_simple = $mol_view_tree_test_simple;
2117
+ $.$mol_view_tree_test_attributes = $mol_view_tree_test_attributes;
2148
2118
  })($ || ($ = {}));
2149
- //mol/view/tree/test/-view.tree/simple.test.view.tree.ts
2119
+ //mol/view/tree/test/-view.tree/attributes.test.view.tree.ts
2150
2120
  ;
2151
2121
  "use strict";
2152
2122
  var $;
@@ -2170,9 +2140,39 @@ var $;
2170
2140
  return null;
2171
2141
  }
2172
2142
  }
2173
- $.$mol_view_tree_test_attributes_subcomponent_page = $mol_view_tree_test_attributes_subcomponent_page;
2143
+ $.$mol_view_tree_test_attributes_subcomponent_page = $mol_view_tree_test_attributes_subcomponent_page;
2144
+ })($ || ($ = {}));
2145
+ //mol/view/tree/test/-view.tree/subcomponent.test.view.tree.ts
2146
+ ;
2147
+ "use strict";
2148
+ var $;
2149
+ (function ($) {
2150
+ class $mol_view_tree_test_binding_right extends $mol_view {
2151
+ outer_width(v) {
2152
+ return this.Test().width(v);
2153
+ }
2154
+ Test() {
2155
+ const obj = new this.$.$mol_view_tree_test_binding_right_test();
2156
+ return obj;
2157
+ }
2158
+ }
2159
+ __decorate([
2160
+ $mol_mem
2161
+ ], $mol_view_tree_test_binding_right.prototype, "Test", null);
2162
+ $.$mol_view_tree_test_binding_right = $mol_view_tree_test_binding_right;
2163
+ class $mol_view_tree_test_binding_right_test extends $mol_view {
2164
+ width(val) {
2165
+ if (val !== undefined)
2166
+ return val;
2167
+ return 0;
2168
+ }
2169
+ }
2170
+ __decorate([
2171
+ $mol_mem
2172
+ ], $mol_view_tree_test_binding_right_test.prototype, "width", null);
2173
+ $.$mol_view_tree_test_binding_right_test = $mol_view_tree_test_binding_right_test;
2174
2174
  })($ || ($ = {}));
2175
- //mol/view/tree/test/-view.tree/subcomponent.test.view.tree.ts
2175
+ //mol/view/tree/test/-view.tree/binding_right.test.view.tree.ts
2176
2176
  ;
2177
2177
  "use strict";
2178
2178
  var $;
@@ -2242,66 +2242,6 @@ var $;
2242
2242
  ;
2243
2243
  "use strict";
2244
2244
  var $;
2245
- (function ($_1) {
2246
- $mol_test({
2247
- 'tree parsing'() {
2248
- $mol_assert_equal($mol_tree.fromString("foo\nbar\n").sub.length, 2);
2249
- $mol_assert_equal($mol_tree.fromString("foo\nbar\n").sub[1].type, "bar");
2250
- $mol_assert_equal($mol_tree.fromString("foo\n\n\n").sub.length, 1);
2251
- $mol_assert_equal($mol_tree.fromString("=foo\n\\bar\n").sub.length, 2);
2252
- $mol_assert_equal($mol_tree.fromString("=foo\n\\bar\n").sub[1].data, "bar");
2253
- $mol_assert_equal($mol_tree.fromString("foo bar \\pol").sub[0].sub[0].sub[0].data, "pol");
2254
- $mol_assert_equal($mol_tree.fromString("foo bar\n\t\\pol\n\t\\men").sub[0].sub[0].sub[1].data, "men");
2255
- $mol_assert_equal($mol_tree.fromString('foo bar \\text\n').toString(), 'foo bar \\text\n');
2256
- },
2257
- 'inserting'() {
2258
- $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, 'a', 'b', 'c').toString(), 'a b \\\n');
2259
- $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, 'a', 'b', 'c', 'd').toString(), 'a b c \\\n');
2260
- $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, 0, 0, 0).toString(), 'a b \\\n');
2261
- $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, 0, 0, 0, 0).toString(), 'a b \\\n\t\\\n');
2262
- $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, null, null, null).toString(), 'a b \\\n');
2263
- $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, null, null, null, null).toString(), 'a b \\\n\t\\\n');
2264
- },
2265
- 'fromJSON'() {
2266
- $mol_assert_equal($mol_tree.fromJSON([]).toString(), '/\n');
2267
- $mol_assert_equal($mol_tree.fromJSON([false, true]).toString(), '/\n\tfalse\n\ttrue\n');
2268
- $mol_assert_equal($mol_tree.fromJSON([0, 1, 2.3]).toString(), '/\n\t0\n\t1\n\t2.3\n');
2269
- $mol_assert_equal($mol_tree.fromJSON(['', 'foo', 'bar\nbaz']).toString(), '/\n\t\\\n\t\\foo\n\t\\\n\t\t\\bar\n\t\t\\baz\n');
2270
- $mol_assert_equal($mol_tree.fromJSON({ 'foo': false, 'bar\nbaz': 'lol' }).toString(), '*\n\tfoo false\n\t\\\n\t\t\\bar\n\t\t\\baz\n\t\t\\lol\n');
2271
- },
2272
- 'toJSON'() {
2273
- $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n').sub[0]), '[]');
2274
- $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\tfalse\n\ttrue\n').sub[0]), '[false,true]');
2275
- $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\t0\n\t1\n\t2.3\n').sub[0]), '[0,1,2.3]');
2276
- $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\t\\\n\t\\foo\n\t\\\n\t\t\\bar\n\t\t\\baz\n').sub[0]), '["","foo","bar\\nbaz"]');
2277
- $mol_assert_equal(JSON.stringify($mol_tree.fromString('*\n\tfoo false\n\t\\\n\t\t\\bar\n\t\t\\baz\n\t\t\\lol\n').sub[0]), '{"foo":false,"bar\\nbaz":"lol"}');
2278
- },
2279
- 'hack'() {
2280
- const res = $mol_tree.fromString(`foo bar xxx`).hack({
2281
- '': (tree, context) => [tree.hack(context)],
2282
- 'bar': (tree, context) => [tree.hack(context).clone({ type: '777' })],
2283
- });
2284
- $mol_assert_equal(res.toString(), new $mol_tree({ type: 'foo 777 xxx' }).toString());
2285
- },
2286
- 'errors handling'($) {
2287
- const errors = [];
2288
- class Tree extends $mol_tree {
2289
- static $ = $.$mol_ambient({
2290
- $mol_fail: error => errors.push(error.message)
2291
- });
2292
- }
2293
- Tree.fromString(`
2294
- \t \tfoo
2295
- bar \\data
2296
- `, 'test');
2297
- $mol_assert_like(errors, ['Syntax error at test:2\n \tfoo']);
2298
- },
2299
- });
2300
- })($ || ($ = {}));
2301
- //mol/tree/tree.test.ts
2302
- ;
2303
- "use strict";
2304
- var $;
2305
2245
  (function ($) {
2306
2246
  $.$mol_tree_convert = Symbol('$mol_tree_convert');
2307
2247
  class $mol_tree extends $mol_object2 {
@@ -2632,6 +2572,66 @@ var $;
2632
2572
  ;
2633
2573
  "use strict";
2634
2574
  var $;
2575
+ (function ($_1) {
2576
+ $mol_test({
2577
+ 'tree parsing'() {
2578
+ $mol_assert_equal($mol_tree.fromString("foo\nbar\n").sub.length, 2);
2579
+ $mol_assert_equal($mol_tree.fromString("foo\nbar\n").sub[1].type, "bar");
2580
+ $mol_assert_equal($mol_tree.fromString("foo\n\n\n").sub.length, 1);
2581
+ $mol_assert_equal($mol_tree.fromString("=foo\n\\bar\n").sub.length, 2);
2582
+ $mol_assert_equal($mol_tree.fromString("=foo\n\\bar\n").sub[1].data, "bar");
2583
+ $mol_assert_equal($mol_tree.fromString("foo bar \\pol").sub[0].sub[0].sub[0].data, "pol");
2584
+ $mol_assert_equal($mol_tree.fromString("foo bar\n\t\\pol\n\t\\men").sub[0].sub[0].sub[1].data, "men");
2585
+ $mol_assert_equal($mol_tree.fromString('foo bar \\text\n').toString(), 'foo bar \\text\n');
2586
+ },
2587
+ 'inserting'() {
2588
+ $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, 'a', 'b', 'c').toString(), 'a b \\\n');
2589
+ $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, 'a', 'b', 'c', 'd').toString(), 'a b c \\\n');
2590
+ $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, 0, 0, 0).toString(), 'a b \\\n');
2591
+ $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, 0, 0, 0, 0).toString(), 'a b \\\n\t\\\n');
2592
+ $mol_assert_equal($mol_tree.fromString('a b c d').insert(new $mol_tree, null, null, null).toString(), 'a b \\\n');
2593
+ $mol_assert_equal($mol_tree.fromString('a b').insert(new $mol_tree, null, null, null, null).toString(), 'a b \\\n\t\\\n');
2594
+ },
2595
+ 'fromJSON'() {
2596
+ $mol_assert_equal($mol_tree.fromJSON([]).toString(), '/\n');
2597
+ $mol_assert_equal($mol_tree.fromJSON([false, true]).toString(), '/\n\tfalse\n\ttrue\n');
2598
+ $mol_assert_equal($mol_tree.fromJSON([0, 1, 2.3]).toString(), '/\n\t0\n\t1\n\t2.3\n');
2599
+ $mol_assert_equal($mol_tree.fromJSON(['', 'foo', 'bar\nbaz']).toString(), '/\n\t\\\n\t\\foo\n\t\\\n\t\t\\bar\n\t\t\\baz\n');
2600
+ $mol_assert_equal($mol_tree.fromJSON({ 'foo': false, 'bar\nbaz': 'lol' }).toString(), '*\n\tfoo false\n\t\\\n\t\t\\bar\n\t\t\\baz\n\t\t\\lol\n');
2601
+ },
2602
+ 'toJSON'() {
2603
+ $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n').sub[0]), '[]');
2604
+ $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\tfalse\n\ttrue\n').sub[0]), '[false,true]');
2605
+ $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\t0\n\t1\n\t2.3\n').sub[0]), '[0,1,2.3]');
2606
+ $mol_assert_equal(JSON.stringify($mol_tree.fromString('/\n\t\\\n\t\\foo\n\t\\\n\t\t\\bar\n\t\t\\baz\n').sub[0]), '["","foo","bar\\nbaz"]');
2607
+ $mol_assert_equal(JSON.stringify($mol_tree.fromString('*\n\tfoo false\n\t\\\n\t\t\\bar\n\t\t\\baz\n\t\t\\lol\n').sub[0]), '{"foo":false,"bar\\nbaz":"lol"}');
2608
+ },
2609
+ 'hack'() {
2610
+ const res = $mol_tree.fromString(`foo bar xxx`).hack({
2611
+ '': (tree, context) => [tree.hack(context)],
2612
+ 'bar': (tree, context) => [tree.hack(context).clone({ type: '777' })],
2613
+ });
2614
+ $mol_assert_equal(res.toString(), new $mol_tree({ type: 'foo 777 xxx' }).toString());
2615
+ },
2616
+ 'errors handling'($) {
2617
+ const errors = [];
2618
+ class Tree extends $mol_tree {
2619
+ static $ = $.$mol_ambient({
2620
+ $mol_fail: error => errors.push(error.message)
2621
+ });
2622
+ }
2623
+ Tree.fromString(`
2624
+ \t \tfoo
2625
+ bar \\data
2626
+ `, 'test');
2627
+ $mol_assert_like(errors, ['Syntax error at test:2\n \tfoo']);
2628
+ },
2629
+ });
2630
+ })($ || ($ = {}));
2631
+ //mol/tree/tree.test.ts
2632
+ ;
2633
+ "use strict";
2634
+ var $;
2635
2635
  (function ($) {
2636
2636
  class $mol_state_local extends $mol_object {
2637
2637
  static 'native()';
@@ -2690,20 +2690,9 @@ var $;
2690
2690
  "use strict";
2691
2691
  var $;
2692
2692
  (function ($) {
2693
- $mol_test_mocks.push(context => {
2694
- class $mol_state_local_mock extends $mol_state_local {
2695
- static state = {};
2696
- static value(key, next = this.state[key]) {
2697
- return this.state[key] = (next || null);
2698
- }
2699
- }
2700
- __decorate([
2701
- $mol_mem_key
2702
- ], $mol_state_local_mock, "value", null);
2703
- context.$mol_state_local = $mol_state_local_mock;
2704
- });
2693
+ self.addEventListener('storage', event => $.$mol_state_local.changes(event));
2705
2694
  })($ || ($ = {}));
2706
- //mol/state/local/local.mock.test.ts
2695
+ //mol/state/local/local.web.ts
2707
2696
  ;
2708
2697
  "use strict";
2709
2698
  var $;
@@ -2724,15 +2713,40 @@ var $;
2724
2713
  "use strict";
2725
2714
  var $;
2726
2715
  (function ($) {
2727
- self.addEventListener('storage', event => $.$mol_state_local.changes(event));
2716
+ $mol_test_mocks.push(context => {
2717
+ class $mol_state_local_mock extends $mol_state_local {
2718
+ static state = {};
2719
+ static value(key, next = this.state[key]) {
2720
+ return this.state[key] = (next || null);
2721
+ }
2722
+ }
2723
+ __decorate([
2724
+ $mol_mem_key
2725
+ ], $mol_state_local_mock, "value", null);
2726
+ context.$mol_state_local = $mol_state_local_mock;
2727
+ });
2728
2728
  })($ || ($ = {}));
2729
- //mol/state/local/local.web.ts
2729
+ //mol/state/local/local.mock.test.ts
2730
2730
  ;
2731
2731
  "use strict";
2732
2732
  //mol/charset/encoding/encoding.ts
2733
2733
  ;
2734
2734
  "use strict";
2735
2735
  var $;
2736
+ (function ($) {
2737
+ const decoders = {};
2738
+ function $mol_charset_decode(buffer, encoding = 'utf8') {
2739
+ let decoder = decoders[encoding];
2740
+ if (!decoder)
2741
+ decoder = decoders[encoding] = new TextDecoder(encoding);
2742
+ return decoder.decode(buffer);
2743
+ }
2744
+ $.$mol_charset_decode = $mol_charset_decode;
2745
+ })($ || ($ = {}));
2746
+ //mol/charset/decode/decode.ts
2747
+ ;
2748
+ "use strict";
2749
+ var $;
2736
2750
  (function ($) {
2737
2751
  $mol_test({
2738
2752
  'decode utf8 string'() {
@@ -2750,20 +2764,6 @@ var $;
2750
2764
  //mol/charset/decode/decode.test.ts
2751
2765
  ;
2752
2766
  "use strict";
2753
- var $;
2754
- (function ($) {
2755
- const decoders = {};
2756
- function $mol_charset_decode(buffer, encoding = 'utf8') {
2757
- let decoder = decoders[encoding];
2758
- if (!decoder)
2759
- decoder = decoders[encoding] = new TextDecoder(encoding);
2760
- return decoder.decode(buffer);
2761
- }
2762
- $.$mol_charset_decode = $mol_charset_decode;
2763
- })($ || ($ = {}));
2764
- //mol/charset/decode/decode.ts
2765
- ;
2766
- "use strict";
2767
2767
  //node/node.ts
2768
2768
  ;
2769
2769
  "use strict";
@@ -2772,6 +2772,18 @@ var $node = $node || {};
2772
2772
  ;
2773
2773
  "use strict";
2774
2774
  var $;
2775
+ (function ($) {
2776
+ const TextEncoder = globalThis.TextEncoder ?? $node.util.TextEncoder;
2777
+ const encoder = new TextEncoder();
2778
+ function $mol_charset_encode(value) {
2779
+ return encoder.encode(value);
2780
+ }
2781
+ $.$mol_charset_encode = $mol_charset_encode;
2782
+ })($ || ($ = {}));
2783
+ //mol/charset/encode/encode.ts
2784
+ ;
2785
+ "use strict";
2786
+ var $;
2775
2787
  (function ($) {
2776
2788
  $mol_test({
2777
2789
  'encode utf8 string'() {
@@ -2785,18 +2797,6 @@ var $;
2785
2797
  ;
2786
2798
  "use strict";
2787
2799
  var $;
2788
- (function ($) {
2789
- const TextEncoder = globalThis.TextEncoder ?? $node.util.TextEncoder;
2790
- const encoder = new TextEncoder();
2791
- function $mol_charset_encode(value) {
2792
- return encoder.encode(value);
2793
- }
2794
- $.$mol_charset_encode = $mol_charset_encode;
2795
- })($ || ($ = {}));
2796
- //mol/charset/encode/encode.ts
2797
- ;
2798
- "use strict";
2799
- var $;
2800
2800
  (function ($) {
2801
2801
  class $mol_file_not_found extends Error {
2802
2802
  }
@@ -3168,27 +3168,6 @@ var $;
3168
3168
  ;
3169
3169
  "use strict";
3170
3170
  var $;
3171
- (function ($_1) {
3172
- $mol_test_mocks.push($ => {
3173
- class $mol_locale_mock extends $mol_locale {
3174
- lang(next = 'en') { return next; }
3175
- static source(lang) {
3176
- return {};
3177
- }
3178
- }
3179
- __decorate([
3180
- $mol_mem
3181
- ], $mol_locale_mock.prototype, "lang", null);
3182
- __decorate([
3183
- $mol_mem_key
3184
- ], $mol_locale_mock, "source", null);
3185
- $.$mol_locale = $mol_locale_mock;
3186
- });
3187
- })($ || ($ = {}));
3188
- //mol/locale/locale.test.ts
3189
- ;
3190
- "use strict";
3191
- var $;
3192
3171
  (function ($) {
3193
3172
  class $mol_locale extends $mol_object {
3194
3173
  static lang_default() {
@@ -3253,6 +3232,27 @@ var $;
3253
3232
  ;
3254
3233
  "use strict";
3255
3234
  var $;
3235
+ (function ($_1) {
3236
+ $mol_test_mocks.push($ => {
3237
+ class $mol_locale_mock extends $mol_locale {
3238
+ lang(next = 'en') { return next; }
3239
+ static source(lang) {
3240
+ return {};
3241
+ }
3242
+ }
3243
+ __decorate([
3244
+ $mol_mem
3245
+ ], $mol_locale_mock.prototype, "lang", null);
3246
+ __decorate([
3247
+ $mol_mem_key
3248
+ ], $mol_locale_mock, "source", null);
3249
+ $.$mol_locale = $mol_locale_mock;
3250
+ });
3251
+ })($ || ($ = {}));
3252
+ //mol/locale/locale.test.ts
3253
+ ;
3254
+ "use strict";
3255
+ var $;
3256
3256
  (function ($) {
3257
3257
  function $mol_view_tree_trim_remarks(def) {
3258
3258
  return def.transform(([node], sub) => (node.type === '-') ? null : node.clone({ sub: sub() }));