-
Notifications
You must be signed in to change notification settings - Fork 0
/
visual3.bc.js
2840 lines (2840 loc) · 131 KB
/
visual3.bc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by js_of_ocaml
//# buildInfo:effects=false, kind=exe, use-js-string=true, version=5.4.0
(function(a){typeof
globalThis!=="object"&&(this?b():(a.defineProperty(a.prototype,"_T_",{configurable:true,get:b}),_T_));function
b(){var
b=this||self;b.globalThis=b;delete
a.prototype._T_}}(Object));(function(o){"use strict";var
n9=o,df=")",c8="rmdir",a6=1000,fg=1026,aa=0x80,de="trace",ff="else",fs=12520,g="",dd="ENOENT",X=" ",bU=": No such file or directory",bV="_bigarr02",e2="%li",c0="=",fe=", ",cS="in",c7=": Not a directory",fd="v",c6="let",dc="(",e1="/static/",fR="closedir",ab="/",D="camlinternalFormat.ml",e0="%ni",a5=">",fc=0xe0,eZ="m",av=0xffffff,eY=0xf0,fQ="%i",fr=255,eX="@[",cZ="Failure",eW="([^/]+)",fP=0.012,eV=0xdfff,cY=256,c5="ENOTDIR",eU="^",fb=" is too large for shifting.",eS="%Li",eT="Not_found",bT=254,cR="EBADF",cX=0xf,fO="EEXIST",fN="not",bX=252,Y=0xff,bP="<",fq="true",fp=0x7ff0,cQ=1255,bS="e",cW=-97,fa="MyOCaml.ml",fo=-48,al=".",fM=-32,fL=103,eR="Out_of_memory",cV=512,fK="%u",eQ="infinity",cP="fs",db="jsError",fJ="Assert_failure",bR="Unix.Unix_error",fI="ENOTEMPTY",eP="Sys_blocked_io",bO="int_of_string",fH="mod",eN="rec",eO="0X",e$=": closedir failed",cO=" : flags Open_rdonly and Open_wronly are not compatible",au="+",eM="%s",fn=0xdc00,fG="b",e_="Pervasives.do_at_exit",fF=65536,v=248,ak=0x8000,a4=0x3f,fE="fun",L="-",fD=1027,cN="Fatal error: exception ",aS=1e7,bW='"',cU="mkdir",bp=128,da="index out of bounds",bN="Invalid integer: ",e9="if",c4="False",e8="Invalid_argument",fC=122,a="Panic",fm="Match_failure",bQ="_z",fB="_",eL="then",cM=" : flags Open_text and Open_binary are not compatible",fl=1e14,bo="%a",e6="Division_by_zero",e7="fd ",fA="buffer.ml",e5=": file descriptor already closed",am=0xffff,fz=", characters ",e4="n",fy=" : is a directory",fk=120,bM="%d",fx="Fun<",c$=127,c3="True",J="0",cT=" : file already exists",c2="compare: functional value",eK=100,bq=1024,e3="Sys_error",fj="false",eJ=0x800,fw="Printexc.handle_uncaught_exception",fi="@{",eI=250,c1="Unit",fv="End_of_file",c_="nan",fu="Stack_overflow",c9="0x",fh="Undefined_recursive_module",ft="Fatal error: exception %s\n";function
b9(a,b,c){var
d=String.fromCharCode;if(b==0&&c<=4096&&c==a.length)return d.apply(null,a);var
e=g;for(;0<c;b+=bq,c-=bq)e+=d.apply(null,a.slice(b,b+Math.min(c,bq)));return e}function
b0(a){var
c=new
Uint8Array(a.l),e=a.c,d=e.length,b=0;for(;b<d;b++)c[b]=e.charCodeAt(b);for(d=a.l;b<d;b++)c[b]=0;a.c=c;a.t=4;return c}function
ax(a,b,c,d,e){if(e==0)return 0;if(d==0&&(e>=c.l||c.t==2&&e>=c.c.length)){c.c=a.t==4?b9(a.c,b,e):b==0&&a.c.length==e?a.c:a.c.substr(b,e);c.t=c.c.length==c.l?0:2}else if(c.t==2&&d==c.c.length){c.c+=a.t==4?b9(a.c,b,e):b==0&&a.c.length==e?a.c:a.c.substr(b,e);c.t=c.c.length==c.l?0:2}else{if(c.t!=4)b0(c);var
g=a.c,h=c.c;if(a.t==4)if(d<=b)for(var
f=0;f<e;f++)h[d+f]=g[b+f];else
for(var
f=e-1;f>=0;f--)h[d+f]=g[b+f];else{var
i=Math.min(e,g.length-b);for(var
f=0;f<i;f++)h[d+f]=g.charCodeAt(b+f);for(;f<e;f++)h[d+f]=0}}return 0}function
a9(a,b){if(a==0)return g;if(b.repeat)return b.repeat(a);var
d=g,c=0;for(;;){if(a&1)d+=b;a>>=1;if(a==0)return d;b+=b;c++;if(c==9)b.slice(0,1)}}function
b1(a){if(a.t==2)a.c+=a9(a.l-a.c.length,"\0");else
a.c=b9(a.c,0,a.c.length);a.t=0}function
dE(a){if(a.length<24){for(var
b=0;b<a.length;b++)if(a.charCodeAt(b)>c$)return false;return true}else
return!/[^\x00-\x7f]/.test(a)}function
gd(a){for(var
k=g,d=g,h,f,i,b,c=0,j=a.length;c<j;c++){f=a.charCodeAt(c);if(f<aa){for(var
e=c+1;e<j&&(f=a.charCodeAt(e))<aa;e++);if(e-c>cV){d.substr(0,1);k+=d;d=g;k+=a.slice(c,e)}else
d+=a.slice(c,e);if(e==j)break;c=e}b=1;if(++c<j&&((i=a.charCodeAt(c))&-64)==bp){h=i+(f<<6);if(f<fc){b=h-0x3080;if(b<aa)b=1}else{b=2;if(++c<j&&((i=a.charCodeAt(c))&-64)==bp){h=i+(h<<6);if(f<eY){b=h-0xe2080;if(b<eJ||b>=0xd7ff&&b<0xe000)b=2}else{b=3;if(++c<j&&((i=a.charCodeAt(c))&-64)==bp&&f<0xf5){b=i-0x3c82080+(h<<6);if(b<0x10000||b>0x10ffff)b=3}}}}}if(b<4){c-=b;d+="\ufffd"}else if(b>am)d+=String.fromCharCode(0xd7c0+(b>>10),fn+(b&0x3FF));else
d+=String.fromCharCode(b);if(d.length>bq){d.substr(0,1);k+=d;d=g}}return k+d}function
aw(a,b,c){this.t=a;this.c=b;this.l=c}aw.prototype.toString=function(){switch(this.t){case
9:return this.c;default:b1(this);case
0:if(dE(this.c)){this.t=9;return this.c}this.t=8;case
8:return this.c}};aw.prototype.toUtf16=function(){var
a=this.toString();if(this.t==9)return a;return gd(a)};aw.prototype.slice=function(){var
a=this.t==4?this.c.slice():this.c;return new
aw(this.t,a,this.l)};function
fZ(a){return new
aw(0,a,a.length)}function
ay(a){return a}function
aG(a){return fZ(ay(a))}function
aU(a,b,c,d,e){ax(aG(a),b,c,d,e);return 0}function
n$(a){var
b=o.process;if(b&&b.env&&b.env[a]!=undefined)return b.env[a];if(o.jsoo_static_env&&o.jsoo_static_env[a])return o.jsoo_static_env[a]}var
dB=0;(function(){var
c=n$("OCAMLRUNPARAM");if(c!==undefined){var
b=c.split(",");for(var
a=0;a<b.length;a++)if(b[a]==fG){dB=1;break}else if(b[a].startsWith("b="))dB=+b[a].slice(2);else
continue}}());var
O=[0];function
ns(a,b){if(!a.js_error||b||a[0]==v)a.js_error=new
o.Error("Js exception containing backtrace");return a}function
i(a,b){return dB?ns(a,b):a}function
n1(a,b){throw i([0,a,b])}function
Z(a){return a}function
dA(a,b){n1(a,Z(b))}function
B(a){dA(O.Invalid_argument,a)}function
nm(){B(da)}function
w(a,b,c){c&=Y;if(a.t!=4){if(b==a.c.length){a.c+=String.fromCharCode(c);if(b+1==a.l)a.t=0;return 0}b0(a)}a.c[b]=c;return 0}function
a8(a,b,c){if(b>>>0>=a.l)nm();return w(a,b,c)}function
di(a,b){switch(a.t&6){default:if(b>=a.c.length)return 0;case
0:return a.c.charCodeAt(b);case
4:return a.c[b]}}function
aH(d,c){var
f=d.l>=0?d.l:d.l=d.length,e=c.length,b=f-e;if(b==0)return d.apply(null,c);else if(b<0){var
a=d.apply(null,c.slice(0,f));if(typeof
a!=="function")return a;return aH(a,c.slice(f))}else{switch(b){case
1:{var
a=function(a){var
f=new
Array(e+1);for(var
b=0;b<e;b++)f[b]=c[b];f[e]=a;return d.apply(null,f)};break}case
2:{var
a=function(a,b){var
g=new
Array(e+2);for(var
f=0;f<e;f++)g[f]=c[f];g[e]=a;g[e+1]=b;return d.apply(null,g)};break}default:var
a=function(){var
e=arguments.length==0?1:arguments.length,b=new
Array(c.length+e);for(var
a=0;a<c.length;a++)b[a]=c[a];for(var
a=0;a<arguments.length;a++)b[c.length+a]=arguments[a];return aH(d,b)}}a.l=b;return a}}function
bs(){B(da)}function
dj(a,b){if(b>>>0>=a.length-1)bs();return a}function
no(a){if(isFinite(a)){if(Math.abs(a)>=2.2250738585072014e-308)return 0;if(a!=0)return 1;return 2}return isNaN(a)?4:3}function
np(){return[0]}function
A(a){if(a<0)B("Bytes.create");return new
aw(a?2:9,g,a)}function
n0(a){throw a}function
b6(){n0(O.Division_by_zero)}function
nr(a,b){if(b==0)b6();return a/b|0}function
nN(a){return 0}var
oa=Math.log2&&Math.log2(1.1235582092889474E+307)==1020;function
n_(a){if(oa)return Math.floor(Math.log2(a));var
b=0;if(a==0)return-Infinity;if(a>=1)while(a>=2){a/=2;b++}else
while(a<1){a*=2;b--}return b}function
dq(a){var
b=new
Float32Array(1);b[0]=a;var
c=new
Int32Array(b.buffer);return c[0]|0}var
f6=Math.pow(2,-24);function
d(a,b,c){this.lo=a&av;this.mi=b&av;this.hi=c&am}d.prototype.caml_custom="_j";d.prototype.copy=function(){return new
d(this.lo,this.mi,this.hi)};d.prototype.ucompare=function(a){if(this.hi>a.hi)return 1;if(this.hi<a.hi)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};d.prototype.compare=function(a){var
b=this.hi<<16,c=a.hi<<16;if(b>c)return 1;if(b<c)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};d.prototype.neg=function(){var
a=-this.lo,b=-this.mi+(a>>24),c=-this.hi+(b>>24);return new
d(a,b,c)};d.prototype.add=function(a){var
b=this.lo+a.lo,c=this.mi+a.mi+(b>>24),e=this.hi+a.hi+(c>>24);return new
d(b,c,e)};d.prototype.sub=function(a){var
b=this.lo-a.lo,c=this.mi-a.mi+(b>>24),e=this.hi-a.hi+(c>>24);return new
d(b,c,e)};d.prototype.mul=function(a){var
b=this.lo*a.lo,c=(b*f6|0)+this.mi*a.lo+this.lo*a.mi,e=(c*f6|0)+this.hi*a.lo+this.mi*a.mi+this.lo*a.hi;return new
d(b,c,e)};d.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0};d.prototype.isNeg=function(){return this.hi<<16<0};d.prototype.and=function(a){return new
d(this.lo&a.lo,this.mi&a.mi,this.hi&a.hi)};d.prototype.or=function(a){return new
d(this.lo|a.lo,this.mi|a.mi,this.hi|a.hi)};d.prototype.xor=function(a){return new
d(this.lo^a.lo,this.mi^a.mi,this.hi^a.hi)};d.prototype.shift_left=function(a){a=a&63;if(a==0)return this;if(a<24)return new
d(this.lo<<a,this.mi<<a|this.lo>>24-a,this.hi<<a|this.mi>>24-a);if(a<48)return new
d(0,this.lo<<a-24,this.mi<<a-24|this.lo>>48-a);return new
d(0,0,this.lo<<a-48)};d.prototype.shift_right_unsigned=function(a){a=a&63;if(a==0)return this;if(a<24)return new
d(this.lo>>a|this.mi<<24-a,this.mi>>a|this.hi<<24-a,this.hi>>a);if(a<48)return new
d(this.mi>>a-24|this.hi<<48-a,this.hi>>a-24,0);return new
d(this.hi>>a-48,0,0)};d.prototype.shift_right=function(a){a=a&63;if(a==0)return this;var
c=this.hi<<16>>16;if(a<24)return new
d(this.lo>>a|this.mi<<24-a,this.mi>>a|c<<24-a,this.hi<<16>>a>>>16);var
b=this.hi<<16>>31;if(a<48)return new
d(this.mi>>a-24|this.hi<<48-a,this.hi<<16>>a-24>>16,b&am);return new
d(this.hi<<16>>a-32,b,b)};d.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23;this.mi=(this.mi<<1|this.lo>>23)&av;this.lo=this.lo<<1&av};d.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&av;this.mi=(this.mi>>>1|this.hi<<23)&av;this.hi=this.hi>>>1};d.prototype.udivmod=function(a){var
e=0,c=this.copy(),b=a.copy(),f=new
d(0,0,0);while(c.ucompare(b)>0){e++;b.lsl1()}while(e>=0){e--;f.lsl1();if(c.ucompare(b)>=0){f.lo++;c=c.sub(b)}b.lsr1()}return{quotient:f,modulus:c}};d.prototype.div=function(a){var
b=this;if(a.isZero())b6();var
d=b.hi^a.hi;if(b.hi&ak)b=b.neg();if(a.hi&ak)a=a.neg();var
c=b.udivmod(a).quotient;if(d&ak)c=c.neg();return c};d.prototype.mod=function(a){var
b=this;if(a.isZero())b6();var
d=b.hi;if(b.hi&ak)b=b.neg();if(a.hi&ak)a=a.neg();var
c=b.udivmod(a).modulus;if(d&ak)c=c.neg();return c};d.prototype.toInt=function(){return this.lo|this.mi<<24};d.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo};d.prototype.toArray=function(){return[this.hi>>8,this.hi&Y,this.mi>>16,this.mi>>8&Y,this.mi&Y,this.lo>>16,this.lo>>8&Y,this.lo&Y]};d.prototype.lo32=function(){return this.lo|(this.mi&Y)<<24};d.prototype.hi32=function(){return this.mi>>>8&am|this.hi<<16};function
b4(a,b,c){return new
d(a,b,c)}function
b3(a){if(!isFinite(a)){if(isNaN(a))return b4(1,0,fp);return a>0?b4(0,0,fp):b4(0,0,0xfff0)}var
f=a==0&&1/a==-Infinity?ak:a>=0?0:ak;if(f)a=-a;var
b=n_(a)+1023;if(b<=0){b=0;a/=Math.pow(2,-fg)}else{a/=Math.pow(2,b-fD);if(a<16){a*=2;b-=1}if(b==0)a/=2}var
d=Math.pow(2,24),c=a|0;a=(a-c)*d;var
e=a|0;a=(a-e)*d;var
g=a|0;c=c&cX|f|b<<4;return b4(g,e,c)}function
bv(a){return a.toArray()}function
fY(a,b,c){a.write(32,b.dims.length);a.write(32,b.kind|b.layout<<8);if(b.caml_custom==bV)for(var
d=0;d<b.dims.length;d++)if(b.dims[d]<am)a.write(16,b.dims[d]);else{a.write(16,am);a.write(32,0);a.write(32,b.dims[d])}else
for(var
d=0;d<b.dims.length;d++)a.write(32,b.dims[d]);switch(b.kind){case
2:case
3:case
12:for(var
d=0;d<b.data.length;d++)a.write(8,b.data[d]);break;case
4:case
5:for(var
d=0;d<b.data.length;d++)a.write(16,b.data[d]);break;case
6:for(var
d=0;d<b.data.length;d++)a.write(32,b.data[d]);break;case
8:case
9:a.write(8,0);for(var
d=0;d<b.data.length;d++)a.write(32,b.data[d]);break;case
7:for(var
d=0;d<b.data.length/2;d++){var
f=bv(b.get(d));for(var
e=0;e<8;e++)a.write(8,f[e])}break;case
1:for(var
d=0;d<b.data.length;d++){var
f=bv(b3(b.get(d)));for(var
e=0;e<8;e++)a.write(8,f[e])}break;case
0:for(var
d=0;d<b.data.length;d++){var
f=dq(b.get(d));a.write(32,f)}break;case
10:for(var
d=0;d<b.data.length/2;d++){var
e=b.get(d);a.write(32,dq(e[1]));a.write(32,dq(e[2]))}break;case
11:for(var
d=0;d<b.data.length/2;d++){var
g=b.get(d),f=bv(b3(g[1]));for(var
e=0;e<8;e++)a.write(8,f[e]);var
f=bv(b3(g[2]));for(var
e=0;e<8;e++)a.write(8,f[e])}break}c[0]=(4+b.dims.length)*4;c[1]=(4+b.dims.length)*8}function
fW(a){switch(a){case
7:case
10:case
11:return 2;default:return 1}}function
nj(a,b){var
c;switch(a){case
0:c=Float32Array;break;case
1:c=Float64Array;break;case
2:c=Int8Array;break;case
3:c=Uint8Array;break;case
4:c=Int16Array;break;case
5:c=Uint16Array;break;case
6:c=Int32Array;break;case
7:c=Int32Array;break;case
8:c=Int32Array;break;case
9:c=Int32Array;break;case
10:c=Float32Array;break;case
11:c=Float64Array;break;case
12:c=Uint8Array;break}if(!c)B("Bigarray.create: unsupported kind");var
d=new
c(b*fW(a));return d}function
dr(a){var
b=new
Int32Array(1);b[0]=a;var
c=new
Float32Array(b.buffer);return c[0]}function
bu(a){return new
d(a[7]<<0|a[6]<<8|a[5]<<16,a[4]<<0|a[3]<<8|a[2]<<16,a[1]<<0|a[0]<<8)}function
ds(a){var
f=a.lo,g=a.mi,c=a.hi,d=(c&0x7fff)>>4;if(d==2047)return(f|g|c&cX)==0?c&ak?-Infinity:Infinity:NaN;var
e=Math.pow(2,-24),b=(f*e+g)*e+(c&cX);if(d>0){b+=16;b*=Math.pow(2,d-fD)}else
b*=Math.pow(2,-fg);if(c&ak)b=-b;return b}function
dg(a){var
d=a.length,c=1;for(var
b=0;b<d;b++){if(a[b]<0)B("Bigarray.create: negative dimension");c=c*a[b]}return c}function
nB(a,b){return new
d(a&av,a>>>24&Y|(b&am)<<8,b>>>16&am)}function
dt(a){return a.hi32()}function
du(a){return a.lo32()}var
nk=bV;function
aF(a,b,c,d){this.kind=a;this.layout=b;this.dims=c;this.data=d}aF.prototype.caml_custom=nk;aF.prototype.offset=function(a){var
c=0;if(typeof
a==="number")a=[a];if(!(a
instanceof
Array))B("bigarray.js: invalid offset");if(this.dims.length!=a.length)B("Bigarray.get/set: bad number of dimensions");if(this.layout==0)for(var
b=0;b<this.dims.length;b++){if(a[b]<0||a[b]>=this.dims[b])bs();c=c*this.dims[b]+a[b]}else
for(var
b=this.dims.length-1;b>=0;b--){if(a[b]<1||a[b]>this.dims[b])bs();c=c*this.dims[b]+(a[b]-1)}return c};aF.prototype.get=function(a){switch(this.kind){case
7:var
d=this.data[a*2+0],b=this.data[a*2+1];return nB(d,b);case
10:case
11:var
e=this.data[a*2+0],c=this.data[a*2+1];return[bT,e,c];default:return this.data[a]}};aF.prototype.set=function(a,b){switch(this.kind){case
7:this.data[a*2+0]=du(b);this.data[a*2+1]=dt(b);break;case
10:case
11:this.data[a*2+0]=b[1];this.data[a*2+1]=b[2];break;default:this.data[a]=b;break}return 0};aF.prototype.fill=function(a){switch(this.kind){case
7:var
c=du(a),e=dt(a);if(c==e)this.data.fill(c);else
for(var
b=0;b<this.data.length;b++)this.data[b]=b%2==0?c:e;break;case
10:case
11:var
d=a[1],f=a[2];if(d==f)this.data.fill(d);else
for(var
b=0;b<this.data.length;b++)this.data[b]=b%2==0?d:f;break;default:this.data.fill(a);break}};aF.prototype.compare=function(a,b){if(this.layout!=a.layout||this.kind!=a.kind){var
f=this.kind|this.layout<<8,g=a.kind|a.layout<<8;return g-f}if(this.dims.length!=a.dims.length)return a.dims.length-this.dims.length;for(var
c=0;c<this.dims.length;c++)if(this.dims[c]!=a.dims[c])return this.dims[c]<a.dims[c]?-1:1;switch(this.kind){case
0:case
1:case
10:case
11:var
d,e;for(var
c=0;c<this.data.length;c++){d=this.data[c];e=a.data[c];if(d<e)return-1;if(d>e)return 1;if(d!=e){if(!b)return NaN;if(d==d)return 1;if(e==e)return-1}}break;case
7:for(var
c=0;c<this.data.length;c+=2){if(this.data[c+1]<a.data[c+1])return-1;if(this.data[c+1]>a.data[c+1])return 1;if(this.data[c]>>>0<a.data[c]>>>0)return-1;if(this.data[c]>>>0>a.data[c]>>>0)return 1}break;case
2:case
3:case
4:case
5:case
6:case
8:case
9:case
12:for(var
c=0;c<this.data.length;c++){if(this.data[c]<a.data[c])return-1;if(this.data[c]>a.data[c])return 1}break}return 0};function
a7(a,b,c,d){this.kind=a;this.layout=b;this.dims=c;this.data=d}a7.prototype=new
aF();a7.prototype.offset=function(a){if(typeof
a!=="number")if(a
instanceof
Array&&a.length==1)a=a[0];else
B("Ml_Bigarray_c_1_1.offset");if(a<0||a>=this.dims[0])bs();return a};a7.prototype.get=function(a){return this.data[a]};a7.prototype.set=function(a,b){this.data[a]=b;return 0};a7.prototype.fill=function(a){this.data.fill(a);return 0};function
fU(a,b,c,d){var
e=fW(a);if(dg(c)*e!=d.length)B("length doesn't match dims");if(b==0&&c.length==1&&e==1)return new
a7(a,b,c,d);return new
aF(a,b,c,d)}function
V(a){if(!O.Failure)O.Failure=[v,Z(cZ),-3];dA(O.Failure,a)}function
fV(a,b,c){var
k=a.read32s();if(k<0||k>16)V("input_value: wrong number of bigarray dimensions");var
r=a.read32s(),l=r&Y,q=r>>8&1,j=[];if(c==bV)for(var
d=0;d<k;d++){var
p=a.read16u();if(p==am){var
u=a.read32u(),v=a.read32u();if(u!=0)V("input_value: bigarray dimension overflow in 32bit");p=v}j.push(p)}else
for(var
d=0;d<k;d++)j.push(a.read32u());var
f=dg(j),h=nj(l,f),i=fU(l,q,j,h);switch(l){case
2:for(var
d=0;d<f;d++)h[d]=a.read8s();break;case
3:case
12:for(var
d=0;d<f;d++)h[d]=a.read8u();break;case
4:for(var
d=0;d<f;d++)h[d]=a.read16s();break;case
5:for(var
d=0;d<f;d++)h[d]=a.read16u();break;case
6:for(var
d=0;d<f;d++)h[d]=a.read32s();break;case
8:case
9:var
t=a.read8u();if(t)V("input_value: cannot read bigarray with 64-bit OCaml ints");for(var
d=0;d<f;d++)h[d]=a.read32s();break;case
7:var
g=new
Array(8);for(var
d=0;d<f;d++){for(var
e=0;e<8;e++)g[e]=a.read8u();var
s=bu(g);i.set(d,s)}break;case
1:var
g=new
Array(8);for(var
d=0;d<f;d++){for(var
e=0;e<8;e++)g[e]=a.read8u();var
m=ds(bu(g));i.set(d,m)}break;case
0:for(var
d=0;d<f;d++){var
m=dr(a.read32s());i.set(d,m)}break;case
10:for(var
d=0;d<f;d++){var
o=dr(a.read32s()),n=dr(a.read32s());i.set(d,[bT,o,n])}break;case
11:var
g=new
Array(8);for(var
d=0;d<f;d++){for(var
e=0;e<8;e++)g[e]=a.read8u();var
o=ds(bu(g));for(var
e=0;e<8;e++)g[e]=a.read8u();var
n=ds(bu(g));i.set(d,[bT,o,n])}break}b[0]=(4+k)*4;return fU(l,q,j,h)}function
fT(a,b,c){return a.compare(b,c)}function
dy(a,b){return Math.imul(a,b)}function
ad(a,b){b=dy(b,0xcc9e2d51|0);b=b<<15|b>>>32-15;b=dy(b,0x1b873593);a^=b;a=a<<13|a>>>32-13;return(a+(a<<2)|0)+(0xe6546b64|0)|0}function
nx(a,b){a=ad(a,du(b));a=ad(a,dt(b));return a}function
f5(a,b){return nx(a,b3(b))}function
fX(a){var
c=dg(a.dims),d=0;switch(a.kind){case
2:case
3:case
12:if(c>cY)c=cY;var
e=0,b=0;for(b=0;b+4<=a.data.length;b+=4){e=a.data[b+0]|a.data[b+1]<<8|a.data[b+2]<<16|a.data[b+3]<<24;d=ad(d,e)}e=0;switch(c&3){case
3:e=a.data[b+2]<<16;case
2:e|=a.data[b+1]<<8;case
1:e|=a.data[b+0];d=ad(d,e)}break;case
4:case
5:if(c>bp)c=bp;var
e=0,b=0;for(b=0;b+2<=a.data.length;b+=2){e=a.data[b+0]|a.data[b+1]<<16;d=ad(d,e)}if((c&1)!=0)d=ad(d,a.data[b]);break;case
6:if(c>64)c=64;for(var
b=0;b<c;b++)d=ad(d,a.data[b]);break;case
8:case
9:if(c>64)c=64;for(var
b=0;b<c;b++)d=ad(d,a.data[b]);break;case
7:if(c>32)c=32;c*=2;for(var
b=0;b<c;b++)d=ad(d,a.data[b]);break;case
10:c*=2;case
0:if(c>64)c=64;for(var
b=0;b<c;b++)d=f5(d,a.data[b]);break;case
11:c*=2;case
1:if(c>32)c=32;for(var
b=0;b<c;b++)d=f5(d,a.data[b]);break}return d}function
nz(a,b){b[0]=4;return a.read32s()}function
nX(a,b){switch(a.read8u()){case
1:b[0]=4;return a.read32s();case
2:V("input_value: native integer value too large");default:V("input_value: ill-formed native integer")}}function
nK(a,b){var
d=new
Array(8);for(var
c=0;c<8;c++)d[c]=a.read8u();b[0]=8;return bu(d)}function
nG(a,b,c){var
e=bv(b);for(var
d=0;d<8;d++)a.write(8,e[d]);c[0]=8;c[1]=8}function
nA(a,b,c){return a.compare(b)}function
nD(a){return a.lo32()^a.hi32()}var
dl={"_j":{deserialize:nK,serialize:nG,fixed_length:8,compare:nA,hash:nD},"_i":{deserialize:nz,fixed_length:4},"_n":{deserialize:nX,fixed_length:4},"_bigarray":{deserialize:function(a,b){return fV(a,b,"_bigarray")},serialize:fY,compare:fT,hash:fX},"_bigarr02":{deserialize:function(a,b){return fV(a,b,bV)},serialize:fY,compare:fT,hash:fX}};function
dk(a){return dl[a.caml_custom]&&dl[a.caml_custom].compare}function
f0(a,b,c,d){var
f=dk(b);if(f){var
e=c>0?f(b,a,d):f(a,b,d);if(d&&e!=e)return c;if(+e!=+e)return+e;if((e|0)!=0)return e|0}return c}function
dw(a){return typeof
a==="string"&&!/[^\x00-\xff]/.test(a)}function
dv(a){return a
instanceof
aw}function
f1(a){if(typeof
a==="number")return a6;else if(dv(a))return bX;else if(dw(a))return 1252;else if(a
instanceof
Array&&a[0]===a[0]>>>0&&a[0]<=fr){var
b=a[0]|0;return b==bT?0:b}else if(a
instanceof
String)return fs;else if(typeof
a=="string")return fs;else if(a
instanceof
Number)return a6;else if(a&&a.caml_custom)return cQ;else if(a&&a.compare)return 1256;else if(typeof
a=="function")return 1247;else if(typeof
a=="symbol")return 1251;return 1001}function
nL(a,b){if(a<b)return-1;if(a==b)return 0;return 1}function
ok(a,b){return a<b?-1:a>b?1:0}function
nn(a,b){a.t&6&&b1(a);b.t&6&&b1(b);return a.c<b.c?-1:a.c>b.c?1:0}function
bZ(a,b,c){var
f=[];for(;;){if(!(c&&a===b)){var
e=f1(a);if(e==eI){a=a[1];continue}var
g=f1(b);if(g==eI){b=b[1];continue}if(e!==g){if(e==a6){if(g==cQ)return f0(a,b,-1,c);return-1}if(g==a6){if(e==cQ)return f0(b,a,1,c);return 1}return e<g?-1:1}switch(e){case
247:B(c2);break;case
248:var
d=nL(a[2],b[2]);if(d!=0)return d|0;break;case
249:B(c2);break;case
250:B("equal: got Forward_tag, should not happen");break;case
251:B("equal: abstract value");break;case
252:if(a!==b){var
d=nn(a,b);if(d!=0)return d|0}break;case
253:B("equal: got Double_tag, should not happen");break;case
254:B("equal: got Double_array_tag, should not happen");break;case
255:B("equal: got Custom_tag, should not happen");break;case
1247:B(c2);break;case
1255:var
i=dk(a);if(i!=dk(b))return a.caml_custom<b.caml_custom?-1:1;if(!i)B("compare: abstract value");var
d=i(a,b,c);if(d!=d)return c?-1:d;if(d!==(d|0))return-1;if(d!=0)return d|0;break;case
1256:var
d=a.compare(b,c);if(d!=d)return c?-1:d;if(d!==(d|0))return-1;if(d!=0)return d|0;break;case
1000:a=+a;b=+b;if(a<b)return-1;if(a>b)return 1;if(a!=b){if(!c)return NaN;if(a==a)return 1;if(b==b)return-1}break;case
1001:if(a<b)return-1;if(a>b)return 1;if(a!=b){if(!c)return NaN;if(a==a)return 1;if(b==b)return-1}break;case
1251:if(a!==b){if(!c)return NaN;return 1}break;case
1252:var
a=ay(a),b=ay(b);if(a!==b){if(a<b)return-1;if(a>b)return 1}break;case
12520:var
a=a.toString(),b=b.toString();if(a!==b){if(a<b)return-1;if(a>b)return 1}break;case
246:case
254:default:if(nN(e)){B("compare: continuation value");break}if(a.length!=b.length)return a.length<b.length?-1:1;if(a.length>1)f.push(a,b,1);break}}if(f.length==0)return 0;var
h=f.pop();b=f.pop();a=f.pop();if(h+1<a.length)f.push(a,b,h+1);a=a[h];b=b[h]}}function
dm(a,b){return+(bZ(a,b,false)==0)}function
nt(a,b,c,d){if(c>0)if(b==0&&(c>=a.l||a.t==2&&c>=a.c.length))if(d==0){a.c=g;a.t=2}else{a.c=a9(c,String.fromCharCode(d));a.t=c==a.l?0:2}else{if(a.t!=4)b0(a);for(c+=b;b<c;b++)a.c[b]=d}return 0}function
dz(a){a=ay(a);var
e=a.length;if(e>31)B("format_int: format too long");var
b={justify:au,signstyle:L,filler:X,alternate:false,base:0,signedconv:false,width:0,uppercase:false,sign:1,prec:-1,conv:"f"};for(var
d=0;d<e;d++){var
c=a.charAt(d);switch(c){case"-":b.justify=L;break;case"+":case" ":b.signstyle=c;break;case"0":b.filler=J;break;case"#":b.alternate=true;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":b.width=0;while(c=a.charCodeAt(d)-48,c>=0&&c<=9){b.width=b.width*10+c;d++}d--;break;case".":b.prec=0;d++;while(c=a.charCodeAt(d)-48,c>=0&&c<=9){b.prec=b.prec*10+c;d++}d--;case"d":case"i":b.signedconv=true;case"u":b.base=10;break;case"x":b.base=16;break;case"X":b.base=16;b.uppercase=true;break;case"o":b.base=8;break;case"e":case"f":case"g":b.signedconv=true;b.conv=c;break;case"E":case"F":case"G":b.signedconv=true;b.uppercase=true;b.conv=c.toLowerCase();break}}return b}function
dn(a,b){if(a.uppercase)b=b.toUpperCase();var
e=b.length;if(a.signedconv&&(a.sign<0||a.signstyle!=L))e++;if(a.alternate){if(a.base==8)e+=1;if(a.base==16)e+=2}var
c=g;if(a.justify==au&&a.filler==X)for(var
d=e;d<a.width;d++)c+=X;if(a.signedconv)if(a.sign<0)c+=L;else if(a.signstyle!=L)c+=a.signstyle;if(a.alternate&&a.base==8)c+=J;if(a.alternate&&a.base==16)c+=a.uppercase?eO:c9;if(a.justify==au&&a.filler==J)for(var
d=e;d<a.width;d++)c+=J;c+=b;if(a.justify==L)for(var
d=e;d<a.width;d++)c+=X;return Z(c)}function
dp(a,b){function
j(a,b){if(Math.abs(a)<1.0)return a.toFixed(b);else{var
c=parseInt(a.toString().split(au)[1]);if(c>20){c-=20;a/=Math.pow(10,c);a+=new
Array(c+1).join(J);if(b>0)a=a+al+new
Array(b+1).join(J);return a}else
return a.toFixed(b)}}var
c,f=dz(a),e=f.prec<0?6:f.prec;if(b<0||b==0&&1/b==-Infinity){f.sign=-1;b=-b}if(isNaN(b)){c=c_;f.filler=X}else if(!isFinite(b)){c="inf";f.filler=X}else
switch(f.conv){case"e":var
c=b.toExponential(e),d=c.length;if(c.charAt(d-3)==bS)c=c.slice(0,d-1)+J+c.slice(d-1);break;case"f":c=j(b,e);break;case"g":e=e?e:1;c=b.toExponential(e-1);var
i=c.indexOf(bS),h=+c.slice(i+1);if(h<-4||b>=1e21||b.toFixed(0).length>e){var
d=i-1;while(c.charAt(d)==J)d--;if(c.charAt(d)==al)d--;c=c.slice(0,d+1)+c.slice(i);d=c.length;if(c.charAt(d-3)==bS)c=c.slice(0,d-1)+J+c.slice(d-1);break}else{var
g=e;if(h<0){g-=h+1;c=b.toFixed(g)}else
while(c=b.toFixed(g),c.length>e+1)g--;if(g){var
d=c.length-1;while(c.charAt(d)==J)d--;if(c.charAt(d)==al)d--;c=c.slice(0,d+1)}}break}return dn(f,c)}function
b2(a,b){if(ay(a)==bM)return Z(g+b);var
c=dz(a);if(b<0)if(c.signedconv){c.sign=-1;b=-b}else
b>>>=0;var
d=b.toString(c.base);if(c.prec>=0){c.filler=X;var
e=c.prec-d.length;if(e>0)d=a9(e,J)+d}return dn(c,d)}var
nY=0;function
aV(){return nY++}function
az(a){if(dE(a))return a;return gd(a)}function
by(){return typeof
o.process!=="undefined"&&typeof
o.process.versions!=="undefined"&&typeof
o.process.versions.node!=="undefined"}function
ob(){function
a(a){if(a.charAt(0)===ab)return[g,a.substring(1)];return}function
b(a){var
h=/^([a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?([\\/])?([\s\S]*?)$/,b=h.exec(a),c=b[1]||g,e=Boolean(c&&c.charAt(1)!==":");if(Boolean(b[2]||e)){var
d=b[1]||g,f=b[2]||g;return[d,a.substring(d.length+f.length)]}return}return by()&&o.process&&o.process.platform?o.process.platform==="win32"?b:a:a}var
dF=ob();function
gb(a){return a.slice(-1)!==ab?a+ab:a}if(by()&&o.process&&o.process.cwd)var
bt=o.process.cwd().replace(/\\/g,ab);else
var
bt="/static";bt=gb(bt);function
nR(a){a=az(a);if(!dF(a))a=bt+a;var
e=dF(a),d=e[1].split(ab),b=[];for(var
c=0;c<d.length;c++)switch(d[c]){case"..":if(b.length>1)b.pop();break;case".":break;case"":break;default:b.push(d[c]);break}b.unshift(e[0]);b.orig=a;return b}function
n6(a){for(var
f=g,c=f,b,i,d=0,h=a.length;d<h;d++){b=a.charCodeAt(d);if(b<aa){for(var
e=d+1;e<h&&(b=a.charCodeAt(e))<aa;e++);if(e-d>cV){c.substr(0,1);f+=c;c=g;f+=a.slice(d,e)}else
c+=a.slice(d,e);if(e==h)break;d=e}if(b<eJ){c+=String.fromCharCode(0xc0|b>>6);c+=String.fromCharCode(aa|b&a4)}else if(b<0xd800||b>=eV)c+=String.fromCharCode(fc|b>>12,aa|b>>6&a4,aa|b&a4);else if(b>=0xdbff||d+1==h||(i=a.charCodeAt(d+1))<fn||i>eV)c+="\xef\xbf\xbd";else{d++;b=(b<<10)+i-0x35fdc00;c+=String.fromCharCode(eY|b>>18,aa|b>>12&a4,aa|b>>6&a4,aa|b&a4)}if(c.length>bq){c.substr(0,1);f+=c;c=g}}return f+c}function
ae(a){return dE(a)?Z(a):Z(n6(a))}var
oj=["E2BIG","EACCES","EAGAIN",cR,"EBUSY","ECHILD","EDEADLK","EDOM",fO,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",dd,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",c5,fI,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function
aC(a,b,c,d){var
e=oj.indexOf(a);if(e<0){if(d==null)d=-9999;e=[0,d]}var
f=[e,ae(b||g),ae(c||g)];return f}var
f_={};function
aI(a){return f_[a]}function
aB(a,b){throw i([0,a].concat(b))}function
dh(a){if(!(a
instanceof
Uint8Array))a=new
Uint8Array(a);return new
aw(4,a,a.length)}function
e(a){dA(O.Sys_error,a)}function
ga(a){e(a+bU)}function
gc(a){if(a.t!=4)b0(a);return a.c}function
_(a){return a.l}function
fS(){}function
N(a){this.data=a}N.prototype=new
fS();N.prototype.constructor=N;N.prototype.truncate=function(a){var
b=this.data;this.data=A(a|0);ax(b,0,this.data,0,a)};N.prototype.length=function(){return _(this.data)};N.prototype.write=function(a,b,c,d){var
e=this.length();if(a+d>=e){var
f=A(a+d),g=this.data;this.data=f;ax(g,0,this.data,0,e)}ax(dh(b),c,this.data,a,d);return 0};N.prototype.read=function(a,b,c,d){var
e=this.length();if(a+d>=e)d=e-a;if(d){var
f=A(d|0);ax(this.data,a,f,0,d);b.set(gc(f),c)}return d};function
aT(a,b,c){this.file=b;this.name=a;this.flags=c}aT.prototype.err_closed=function(){e(this.name+e5)};aT.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()};aT.prototype.write=function(a,b,c,d){if(this.file)return this.file.write(a,b,c,d);this.err_closed()};aT.prototype.read=function(a,b,c,d){if(this.file)return this.file.read(a,b,c,d);this.err_closed()};aT.prototype.close=function(){this.file=undefined};function
F(a,b){this.content={};this.root=a;this.lookupFun=b}F.prototype.nm=function(a){return this.root+a};F.prototype.create_dir_if_needed=function(a){var
d=a.split(ab),c=g;for(var
b=0;b<d.length-1;b++){c+=d[b]+ab;if(this.content[c])continue;this.content[c]=Symbol("directory")}};F.prototype.slash=function(a){return/\/$/.test(a)?a:a+ab};F.prototype.lookup=function(a){if(!this.content[a]&&this.lookupFun){var
b=this.lookupFun(Z(this.root),Z(a));if(b!==0){this.create_dir_if_needed(a);this.content[a]=new
N(aG(b[1]))}}};F.prototype.exists=function(a){if(a==g)return 1;var
b=this.slash(a);if(this.content[b])return 1;this.lookup(a);return this.content[a]?1:0};F.prototype.isFile=function(a){return this.exists(a)&&!this.is_dir(a)?1:0};F.prototype.mkdir=function(a,b,c){var
f=c&&aI(bR);if(this.exists(a))if(f)aB(f,aC(fO,cU,this.nm(a)));else
e(a+": File exists");var
d=/^(.*)\/[^/]+/.exec(a);d=d&&d[1]||g;if(!this.exists(d))if(f)aB(f,aC(dd,cU,this.nm(d)));else
e(d+bU);if(!this.is_dir(d))if(f)aB(f,aC(c5,cU,this.nm(d)));else
e(d+c7);this.create_dir_if_needed(this.slash(a))};F.prototype.rmdir=function(a,b){var
c=b&&aI(bR),d=a==g?g:this.slash(a),h=new
RegExp(eU+d+eW);if(!this.exists(a))if(c)aB(c,aC(dd,c8,this.nm(a)));else
e(a+bU);if(!this.is_dir(a))if(c)aB(c,aC(c5,c8,this.nm(a)));else
e(a+c7);for(var
f
in
this.content)if(f.match(h))if(c)aB(c,aC(fI,c8,this.nm(a)));else
e(this.nm(a)+": Directory not empty");delete
this.content[d]};F.prototype.readdir=function(a){var
h=a==g?g:this.slash(a);if(!this.exists(a))e(a+bU);if(!this.is_dir(a))e(a+c7);var
i=new
RegExp(eU+h+eW),d={},c=[];for(var
f
in
this.content){var
b=f.match(i);if(b&&!d[b[1]]){d[b[1]]=true;c.push(b[1])}}return c};F.prototype.opendir=function(a,b){var
c=b&&aI(bR),d=this.readdir(a),f=false,g=0;return{readSync:function(){if(f)if(c)aB(c,aC(cR,fR,this.nm(a)));else
e(a+e$);if(g==d.length)return null;var
b=d[g];g++;return{name:b}},closeSync:function(){if(f)if(c)aB(c,aC(cR,fR,this.nm(a)));else
e(a+e$);f=true;d=[]}}};F.prototype.is_dir=function(a){if(a==g)return true;var
b=this.slash(a);return this.content[b]?1:0};F.prototype.unlink=function(a){var
b=this.content[a]?true:false;delete
this.content[a];return b};F.prototype.open=function(a,b){var
c;if(b.rdonly&&b.wronly)e(this.nm(a)+cO);if(b.text&&b.binary)e(this.nm(a)+cM);this.lookup(a);if(this.content[a]){if(this.is_dir(a))e(this.nm(a)+fy);if(b.create&&b.excl)e(this.nm(a)+cT);c=this.content[a];if(b.truncate)c.truncate()}else if(b.create){this.create_dir_if_needed(a);this.content[a]=new
N(A(0));c=this.content[a]}else
ga(this.nm(a));return new
aT(this.nm(a),c,b)};F.prototype.open=function(a,b){var
c;if(b.rdonly&&b.wronly)e(this.nm(a)+cO);if(b.text&&b.binary)e(this.nm(a)+cM);this.lookup(a);if(this.content[a]){if(this.is_dir(a))e(this.nm(a)+fy);if(b.create&&b.excl)e(this.nm(a)+cT);c=this.content[a];if(b.truncate)c.truncate()}else if(b.create){this.create_dir_if_needed(a);this.content[a]=new
N(A(0));c=this.content[a]}else
ga(this.nm(a));return new
aT(this.nm(a),c,b)};F.prototype.register=function(a,b){var
c;if(this.content[a])e(this.nm(a)+cT);if(dv(b))c=new
N(b);if(dw(b))c=new
N(aG(b));else if(b
instanceof
Array)c=new
N(dh(b));else if(typeof
b==="string")c=new
N(fZ(b));else if(b.toString){var
d=aG(ae(b.toString()));c=new
N(d)}if(c){this.create_dir_if_needed(a);this.content[a]=c}else
e(this.nm(a)+" : registering file with invalid content type")};F.prototype.constructor=F;function
m(a){return a.length}function
ao(a,b){return a.charCodeAt(b)}function
om(a){var
d=m(a),c=new
Array(d),b=0;for(;b<d;b++)c[b]=ao(a,b);return c}function
ac(a,b){this.fs=require(cP);this.fd=a;this.flags=b}ac.prototype=new
fS();ac.prototype.constructor=ac;ac.prototype.truncate=function(a){try{this.fs.ftruncateSync(this.fd,a|0)}catch(f){e(f.toString())}};ac.prototype.length=function(){try{return this.fs.fstatSync(this.fd).size}catch(f){e(f.toString())}};ac.prototype.write=function(a,b,c,d){try{if(this.flags.isCharacterDevice)this.fs.writeSync(this.fd,b,c,d);else
this.fs.writeSync(this.fd,b,c,d,a)}catch(f){e(f.toString())}return 0};ac.prototype.read=function(a,b,c,d){try{if(this.flags.isCharacterDevice)var
f=this.fs.readSync(this.fd,b,c,d);else
var
f=this.fs.readSync(this.fd,b,c,d,a);return f}catch(f){e(f.toString())}};ac.prototype.close=function(){try{this.fs.closeSync(this.fd);return 0}catch(f){e(f.toString())}};function
z(a){this.fs=require(cP);this.root=a}z.prototype.nm=function(a){return this.root+a};z.prototype.exists=function(a){try{return this.fs.existsSync(this.nm(a))?1:0}catch(f){return 0}};z.prototype.isFile=function(a){try{return this.fs.statSync(this.nm(a)).isFile()?1:0}catch(f){e(f.toString())}};z.prototype.mkdir=function(a,b,c){try{this.fs.mkdirSync(this.nm(a),{mode:b});return 0}catch(f){this.raise_nodejs_error(f,c)}};z.prototype.rmdir=function(a,b){try{this.fs.rmdirSync(this.nm(a));return 0}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.readdir=function(a,b){try{return this.fs.readdirSync(this.nm(a))}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.is_dir=function(a){try{return this.fs.statSync(this.nm(a)).isDirectory()?1:0}catch(f){e(f.toString())}};z.prototype.unlink=function(a,b){try{var
c=this.fs.existsSync(this.nm(a))?1:0;this.fs.unlinkSync(this.nm(a));return c}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.open=function(a,b,c){var
d=require("constants"),e=0;for(var
h
in
b)switch(h){case"rdonly":e|=d.O_RDONLY;break;case"wronly":e|=d.O_WRONLY;break;case"append":e|=d.O_WRONLY|d.O_APPEND;break;case"create":e|=d.O_CREAT;break;case"truncate":e|=d.O_TRUNC;break;case"excl":e|=d.O_EXCL;break;case"binary":e|=d.O_BINARY;break;case"text":e|=d.O_TEXT;break;case"nonblock":e|=d.O_NONBLOCK;break}try{var
f=this.fs.openSync(this.nm(a),e),g=this.fs.lstatSync(this.nm(a)).isCharacterDevice();b.isCharacterDevice=g;return new
ac(f,b)}catch(f){this.raise_nodejs_error(f,c)}};z.prototype.rename=function(a,b,c){try{this.fs.renameSync(this.nm(a),this.nm(b))}catch(f){this.raise_nodejs_error(f,c)}};z.prototype.stat=function(a,b){try{var
c=this.fs.statSync(this.nm(a));return this.stats_from_js(c)}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.lstat=function(a,b){try{var
c=this.fs.lstatSync(this.nm(a));return this.stats_from_js(c)}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.symlink=function(a,b,c,d){try{this.fs.symlinkSync(this.nm(b),this.nm(c),a?"dir":"file");return 0}catch(f){this.raise_nodejs_error(f,d)}};z.prototype.readlink=function(a,b){try{var
c=this.fs.readlinkSync(this.nm(a),"utf8");return ae(c)}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.opendir=function(a,b){try{return this.fs.opendirSync(this.nm(a))}catch(f){this.raise_nodejs_error(f,b)}};z.prototype.raise_nodejs_error=function(a,b){var
c=aI(bR);if(b&&c){var
d=aC(a.code,a.syscall,a.path,a.errno);aB(c,d)}else
e(a.toString())};z.prototype.stats_from_js=function(a){var
b;if(a.isFile())b=0;else if(a.isDirectory())b=1;else if(a.isCharacterDevice())b=2;else if(a.isBlockDevice())b=3;else if(a.isSymbolicLink())b=4;else if(a.isFIFO())b=5;else if(a.isSocket())b=6;return[0,a.dev,a.ino,b,a.mode,a.nlink,a.uid,a.gid,a.rdev,a.size,a.atimeMs,a.mtimeMs,a.ctimeMs]};z.prototype.constructor=z;function
f4(a){var
b=dF(a);if(!b)return;return b[0]+ab}var
b7=f4(bt)||V("unable to compute caml_root"),a_=[];if(by())a_.push({path:b7,device:new
z(b7)});else
a_.push({path:b7,device:new
F(b7)});a_.push({path:e1,device:new
F(e1)});function
gi(a){var
h=nR(a),a=h.join(ab),g=gb(a),c;for(var
f=0;f<a_.length;f++){var
b=a_[f];if(g.search(b.path)==0&&(!c||c.path.length<b.path.length))c={path:b.path,device:b.device,rest:a.substring(b.path.length,a.length)}}if(!c&&by()){var
d=f4(a);if(d&&d.match(/^[a-zA-Z]:\/$/)){var
b={path:d,device:new
z(d)};a_.push(b);c={path:b.path,device:b.device,rest:a.substring(b.path.length,a.length)}}}if(c)return c;e("no device found for "+g)}function
nq(a,b){var
c=gi(a);if(!c.device.register)V("cannot register file");c.device.register(c.rest,b);return 0}function
ge(a,b){var
a=Z(a),b=Z(b);return nq(a,b)}function
nv(){var
b=o.caml_fs_tmp;if(b)for(var
a=0;a<b.length;a++)ge(b[a].name,b[a].content);o.jsoo_create_file=ge;o.caml_fs_tmp=[];return 0}function
f3(){return[0]}function
nw(a,b){return+(bZ(a,b,false)>0)}function
ny(a,b,c){if(!isFinite(a)){if(isNaN(a))return ae(c_);return ae(a>0?eQ:"-infinity")}var
k=a==0&&1/a==-Infinity?1:a>=0?0:1;if(k)a=-a;var
e=0;if(a==0);else if(a<1)while(a<1&&e>-1022){a*=2;e--}else
while(a>=2){a/=2;e++}var
l=e<0?g:au,f=g;if(k)f=L;else
switch(c){case
43:f=au;break;case
32:f=X;break;default:break}if(b>=0&&b<13){var
i=Math.pow(2,b*4);a=Math.round(a*i)/i}var
d=a.toString(16);if(b>=0){var
j=d.indexOf(al);if(j<0)d+=al+a9(b,J);else{var
h=j+1+b;if(d.length<h)d+=a9(h-d.length,J);else
d=d.substr(0,h)}}return ae(f+c9+d+"p"+l+e.toString(10))}function
nF(a){return+a.isZero()}function
nI(a){return new
d(a&av,a>>24&av,a>>31&am)}function
nJ(a){return a.toInt()}function
nE(a){return+a.isNeg()}function
nH(a){return a.neg()}function
nC(a,b){var
c=dz(a);if(c.signedconv&&nE(b)){c.sign=-1;b=nH(b)}var
d=g,i=nI(c.base),h="0123456789abcdef";do{var
f=b.udivmod(i);b=f.quotient;d=h.charAt(nJ(f.modulus))+d}while(!nF(b));if(c.prec>=0){c.filler=X;var
e=c.prec-d.length;if(e>0)d=a9(e,J)+d}return dn(c,d)}function
nZ(a){var
b=0,e=m(a),c=10,d=1;if(e>0)switch(ao(a,b)){case
45:b++;d=-1;break;case
43:b++;d=1;break}if(b+1<e&&ao(a,b)==48)switch(ao(a,b+1)){case
120:case
88:c=16;b+=2;break;case
111:case
79:c=8;b+=2;break;case
98:case
66:c=2;b+=2;break;case
117:case
85:b+=2;break}return[b,d,c]}function
f$(a){if(a>=48&&a<=57)return a-48;if(a>=65&&a<=90)return a-55;if(a>=97&&a<=fC)return a-87;return-1}function
nM(a){var
h=nZ(a),d=h[0],i=h[1],e=h[2],g=m(a),j=-1>>>0,f=d<g?ao(a,d):0,c=f$(f);if(c<0||c>=e)V(bO);var
b=c;for(d++;d<g;d++){f=ao(a,d);if(f==95)continue;c=f$(f);if(c<0||c>=e)break;b=e*b+c;if(b>j)V(bO)}if(d!=g)V(bO);b=i*b;if(e==10&&(b|0)!=b)V(bO);return b|0}var
bY=aH;function
nP(a){return a.l>=0?a.l:a.l=a.length}function
nQ(a){return function(){var
d=nP(a),c=new
Array(d);for(var
b=0;b<d;b++)c[b]=arguments[b];return bY(a,c)}}function
f7(a,b){return+(bZ(a,b,false)<0)}function
nS(a,b){if(a<0)bs();var
a=a+1|0,c=new
Array(a);c[0]=0;for(var
d=1;d<a;d++)c[d]=b;return c}function
nT(){return 0}var
aA=new
Array();function
an(a){var
b=aA[a];if(!b.opened)e("Cannot flush a closed channel");if(!b.buffer||b.buffer_curr==0)return 0;if(b.output)b.output(b9(b.buffer,0,b.buffer_curr));else
b.file.write(b.offset,b.buffer,0,b.buffer_curr);b.offset+=b.buffer_curr;b.buffer_curr=0;return 0}function
n5(a,b){if(b.name)try{var
d=require(cP),c=d.openSync(b.name,"rs");return new
ac(c,b)}catch(f){}return new
ac(a,b)}var
b_=new
Array(3);function
br(a,b){N.call(this,A(0));this.log=function(a){return 0};if(a==1&&typeof
console.log=="function")this.log=console.log;else if(a==2&&typeof
console.error=="function")this.log=console.error;else if(typeof
console.log=="function")this.log=console.log;this.flags=b}br.prototype.length=function(){return 0};br.prototype.write=function(a,b,c,d){if(this.log){if(d>0&&c>=0&&c+d<=b.length&&b[c+d-1]==10)d--;var
f=A(d);ax(dh(b),c,f,0,d);this.log(f.toUtf16());return 0}e(this.fd+e5)};br.prototype.read=function(a,b,c,d){e(this.fd+": file descriptor is write only")};br.prototype.close=function(){this.log=undefined};function
b$(a,b){if(b==undefined)b=b_.length;b_[b]=a;return b|0}function
ol(a,b,c){var
d={};while(b){switch(b[1]){case
0:d.rdonly=1;break;case
1:d.wronly=1;break;case
2:d.append=1;break;case
3:d.create=1;break;case
4:d.truncate=1;break;case
5:d.excl=1;break;case
6:d.binary=1;break;case
7:d.text=1;break;case
8:d.nonblock=1;break}b=b[2]}if(d.rdonly&&d.wronly)e(ay(a)+cO);if(d.text&&d.binary)e(ay(a)+cM);var
f=gi(a),g=f.device.open(f.rest,d);return b$(g,undefined)}(function(){function
a(a,b){return by()?n5(a,b):new
br(a,b)}b$(a(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:true}),0);b$(a(1,{buffered:2,wronly:1,isCharacterDevice:true}),1);b$(a(2,{buffered:2,wronly:1,isCharacterDevice:true}),2)}());function
nU(a){var
b=b_[a];if(b.flags.wronly)e(e7+a+" is writeonly");var
d=null,c={file:b,offset:b.flags.append?b.length():0,fd:a,opened:true,out:false,buffer_curr:0,buffer_max:0,buffer:new
Uint8Array(fF),refill:d};aA[c.fd]=c;return c.fd}function
f8(a){var
b=b_[a];if(b.flags.rdonly)e(e7+a+" is readonly");var
d=b.flags.buffered!==undefined?b.flags.buffered:1,c={file:b,offset:b.flags.append?b.length():0,fd:a,opened:true,out:true,buffer_curr:0,buffer:new
Uint8Array(fF),buffered:d};aA[c.fd]=c;return c.fd}function
nV(){var
b=0;for(var
a=0;a<aA.length;a++)if(aA[a]&&aA[a].opened&&aA[a].out)b=[0,aA[a].fd,b];return b}function
P(a){a.t&6&&b1(a);return Z(a.c)}function
nW(a,b,c,d){var
f=aA[a];if(!f.opened)e("Cannot output to a closed channel");var
b=gc(b);b=b.subarray(c,c+d);if(f.buffer_curr+b.length>f.buffer.length){var
h=new
Uint8Array(f.buffer_curr+b.length);h.set(f.buffer);f.buffer=h}switch(f.buffered){case
0:f.buffer.set(b,f.buffer_curr);f.buffer_curr+=b.length;an(a);break;case
1:f.buffer.set(b,f.buffer_curr);f.buffer_curr+=b.length;if(f.buffer_curr>=f.buffer.length)an(a);break;case
2:var
g=b.lastIndexOf(10);if(g<0){f.buffer.set(b,f.buffer_curr);f.buffer_curr+=b.length;if(f.buffer_curr>=f.buffer.length)an(a)}else{f.buffer.set(b.subarray(0,g+1),f.buffer_curr);f.buffer_curr+=g+1;an(a);f.buffer.set(b.subarray(g+1),f.buffer_curr);f.buffer_curr+=b.length-g-1}break}return 0}function
dx(a,b,c,d){return nW(a,aG(b),c,d)}function
f9(a,b){var
c=Z(String.fromCharCode(b));dx(a,c,0,1);return 0}function
bw(a,b){return+(bZ(a,b,false)!=0)}function
b5(a){if(a
instanceof
Array&&a[0]==a[0]>>>0)return a[0];else if(dv(a))return bX;else if(dw(a))return bX;else if(a
instanceof
Function||typeof
a=="function")return 247;else if(a&&a.caml_custom)return fr;else
return a6}function
nl(a){var
b;while(a)if(az(a[1][1])=="SYJS"){b=a[1][2];break}else
a=a[2];var
d={};if(b)for(var
c=1;c<b.length;c++)d[az(b[c][1])]=b[c][2];return d}function
$(a,b,c){if(c){var
d=c;if(o.toplevelReloc)a=bY(o.toplevelReloc,[d]);else if(O.toc){if(!O.symbols)O.symbols=nl(O.toc);var
e=O.symbols[d];if(e>=0)a=e;else
V("caml_register_global: cannot locate "+d)}}O[a+1]=b;if(c)O[c]=b}function
dC(a,b){f_[ay(a)]=b;return 0}function
b8(a,b){if(a===b)return 1;return 0}function
n3(){B(da)}function
K(a,b){if(b>>>0>=m(a))n3();return ao(a,b)}function
aW(a,b){return 1-b8(a,b)}function
n4(){return 0x7FFFFFFF/4|0}function
dD(a){var
b=1;while(a&&a.joo_tramp){a=a.joo_tramp.apply(null,a.joo_args);b++}return a}function
G(a,b){return{joo_tramp:a,joo_args:b}}function
bx(a){{if(a
instanceof
Array)return a;var
b;if(o.RangeError&&a
instanceof
o.RangeError&&a.message&&a.message.match(/maximum call stack/i))b=O.Stack_overflow;else if(o.InternalError&&a
instanceof
o.InternalError&&a.message&&a.message.match(/too much recursion/i))b=O.Stack_overflow;else if(a
instanceof
o.Error&&aI(db))b=[0,aI(db),a];else
b=[0,O.Failure,ae(String(a))];if(a
instanceof
o.Error)b.js_error=a;return b}}var
k=function(z){"use strict";var
i=aS,ab=7,t=9007199254740992,H=q(t),O="0123456789abcdefghijklmnopqrstuvwxyz",b=n9.BigInt,F=typeof
b==="function";function
f(a,b,c,d){if(typeof
a==="undefined")return f[0];if(typeof
b!=="undefined")return+b===10&&!c?h(a):af(a,b,c,d);return h(a)}function
d(a,b){this.value=a;this.sign=b;this.isSmall=false;this.caml_custom=bQ}d.prototype=Object.create(f.prototype);function
e(a){this.value=a;this.sign=a<0;this.isSmall=true;this.caml_custom=bQ}e.prototype=Object.create(f.prototype);function
c(a){this.value=a;this.caml_custom=bQ}c.prototype=Object.create(f.prototype);function
p(a){return-t<a&&a<t}function
q(a){if(a<aS)return[a];if(a<fl)return[a%aS,Math.floor(a/aS)];return[a%aS,Math.floor(a/aS)%aS,Math.floor(a/fl)]}function
m(a){r(a);var
b=a.length;if(b<4&&n(a,H)<0)switch(b){case
0:return 0;case
1:return a[0];case
2:return a[0]+a[1]*i;default:return a[0]+(a[1]+a[2]*i)*i}return a}function
r(a){var
b=a.length;while(a[--b]===0);a.length=b+1}function
B(a){var
c=new
Array(a),b=-1;while(++b<a)c[b]=0;return c}function
s(a){if(a>0)return Math.floor(a);return Math.ceil(a)}function
P(a,b){var
h=a.length,j=b.length,g=new
Array(h),d=0,f=i,e,c;for(c=0;c<j;c++){e=a[c]+b[c]+d;d=e>=f?1:0;g[c]=e-d*f}while(c<h){e=a[c]+d;d=e===f?1:0;g[c++]=e-d*f}if(d>0)g.push(d);return g}function
u(a,b){if(a.length>=b.length)return P(a,b);return P(b,a)}function
A(a,b){var
g=a.length,e=new
Array(g),d=i,f,c;for(c=0;c<g;c++){f=a[c]-d+b;b=Math.floor(f/d);e[c]=f-b*d;b+=1}while(b>0){e[c++]=b%d;b=Math.floor(b/d)}return e}d.prototype.add=function(a){var
b=h(a);if(this.sign!==b.sign)return this.subtract(b.negate());var
c=this.value,e=b.value;if(b.isSmall)return new
d(A(c,Math.abs(e)),this.sign);return new
d(u(c,e),this.sign)};d.prototype.plus=d.prototype.add;e.prototype.add=function(a){var
f=h(a),b=this.value;if(b<0!==f.sign)return this.subtract(f.negate());var
c=f.value;if(f.isSmall){if(p(b+c))return new
e(b+c);c=q(Math.abs(c))}return new
d(A(c,Math.abs(b)),b<0)};e.prototype.plus=e.prototype.add;c.prototype.add=function(a){return new
c(this.value+h(a).value)};c.prototype.plus=c.prototype.add;function
x(a,b){var
g=a.length,h=b.length,e=new
Array(g),f=0,j=i,c,d;for(c=0;c<h;c++){d=a[c]-f-b[c];if(d<0){d+=j;f=1}else
f=0;e[c]=d}for(c=h;c<g;c++){d=a[c]-f;if(d<0)d+=j;else{e[c++]=d;break}e[c]=d}for(;c<g;c++)e[c]=a[c];r(e);return e}function
aj(a,b,c){var
f;if(n(a,b)>=0)f=x(a,b);else{f=x(b,a);c=!c}f=m(f);if(typeof
f==="number"){if(c)f=-f;return new
e(f)}return new
d(f,c)}function
E(a,b,c){var
l=a.length,f=new
Array(l),k=-b,j=i,h,g;for(h=0;h<l;h++){g=a[h]+k;k=Math.floor(g/j);g%=j;f[h]=g<0?g+j:g}f=m(f);if(typeof
f==="number"){if(c)f=-f;return new
e(f)}return new
d(f,c)}d.prototype.subtract=function(a){var
b=h(a);if(this.sign!==b.sign)return this.add(b.negate());var
c=this.value,d=b.value;if(b.isSmall)return E(c,Math.abs(d),this.sign);return aj(c,d,this.sign)};d.prototype.minus=d.prototype.subtract;e.prototype.subtract=function(a){var
c=h(a),b=this.value;if(b<0!==c.sign)return this.add(c.negate());var
d=c.value;if(c.isSmall)return new
e(b-d);return E(d,Math.abs(b),b>=0)};e.prototype.minus=e.prototype.subtract;c.prototype.subtract=function(a){return new
c(this.value-h(a).value)};c.prototype.minus=c.prototype.subtract;d.prototype.negate=function(){return new
d(this.value,!this.sign)};e.prototype.negate=function(){var
b=this.sign,a=new
e(-this.value);a.sign=!b;return a};c.prototype.negate=function(){return new
c(-this.value)};d.prototype.abs=function(){return new
d(this.value,false)};e.prototype.abs=function(){return new
e(Math.abs(this.value))};c.prototype.abs=function(){return new
c(this.value>=0?this.value:-this.value)};function
N(a,b){var
j=a.length,l=b.length,n=j+l,e=B(n),m=i,g,f,c,h,k;for(c=0;c<j;++c){h=a[c];for(var
d=0;d<l;++d){k=b[d];g=h*k+e[c+d];f=Math.floor(g/m);e[c+d]=g-f*m;e[c+d+1]+=f}}r(e);return e}function
v(a,b){var
h=a.length,g=new
Array(h),e=i,c=0,f,d;for(d=0;d<h;d++){f=a[d]*b+c;c=Math.floor(f/e);g[d]=f-c*e}while(c>0){g[d++]=c%e;c=Math.floor(c/e)}return g}function
Y(a,b){var
c=[];while(b-->0)c.push(0);return c.concat(a)}function
C(a,b){var
c=Math.max(a.length,b.length);if(c<=30)return N(a,b);c=Math.ceil(c/2);var
f=a.slice(c),d=a.slice(0,c),i=b.slice(c),h=b.slice(0,c),e=C(d,h),g=C(f,i),k=C(u(d,f),u(h,i)),j=u(u(e,Y(x(x(k,e),g),c)),Y(g,2*c));r(j);return j}function
ak(a,b){return-(fP*a)-fP*b+0.000015*a*b>0}d.prototype.multiply=function(a){var
g=h(a),c=this.value,b=g.value,j=this.sign!==g.sign,e;if(g.isSmall){if(b===0)return f[0];if(b===1)return this;if(b===-1)return this.negate();e=Math.abs(b);if(e<i)return new
d(v(c,e),j);b=q(e)}if(ak(c.length,b.length))return new
d(C(c,b),j);return new
d(N(c,b),j)};d.prototype.times=d.prototype.multiply;function
V(a,b,c){if(a<i)return new
d(v(b,a),c);return new
d(N(b,q(a)),c)}e.prototype._multiplyBySmall=function(a){if(p(a.value*this.value))return new
e(a.value*this.value);return V(Math.abs(a.value),q(Math.abs(this.value)),this.sign!==a.sign)};d.prototype._multiplyBySmall=function(a){if(a.value===0)return f[0];if(a.value===1)return this;if(a.value===-1)return this.negate();return V(Math.abs(a.value),this.value,this.sign!==a.sign)};e.prototype.multiply=function(a){return h(a)._multiplyBySmall(this)};e.prototype.times=e.prototype.multiply;c.prototype.multiply=function(a){return new
c(this.value*h(a).value)};c.prototype.times=c.prototype.multiply;function
_(a){var
e=a.length,f=B(e+e),k=i,h,c,b,g,j;for(b=0;b<e;b++){g=a[b];c=0-g*g;for(var
d=b;d<e;d++){j=a[d];h=2*(g*j)+f[b+d]+c;c=Math.floor(h/k);f[b+d]=h-c*k}f[b+e]=c}r(f);return f}d.prototype.square=function(){return new
d(_(this.value),false)};e.prototype.square=function(){var
a=this.value*this.value;if(p(a))return new
e(a);return new
d(_(q(Math.abs(this.value))),false)};c.prototype.square=function(a){return new
c(this.value*this.value)};function
ac(a,b){var
r=a.length,j=b.length,h=i,s=B(b.length),n=b[j-1],p=Math.ceil(h/(2*n)),d=v(a,p),k=v(b,p),l,f,e,g,c,o,q;if(d.length<=r)d.push(0);k.push(0);n=k[j-1];for(f=r-j;f>=0;f--){l=h-1;if(d[f+j]!==n)l=Math.floor((d[f+j]*h+d[f+j-1])/n);e=0;g=0;o=k.length;for(c=0;c<o;c++){e+=l*k[c];q=Math.floor(e/h);g+=d[f+c]-(e-q*h);e=q;if(g<0){d[f+c]=g+h;g=-1}else{d[f+c]=g;g=0}}while(g!==0){l-=1;e=0;for(c=0;c<o;c++){e+=d[f+c]-h+k[c];if(e<0){d[f+c]=e+h;e=0}else{d[f+c]=e;e=1}}g+=e}s[f]=l}d=Q(d,p)[0];return[m(s),m(d)]}function
ad(a,b){var
l=a.length,h=b.length,f=[],c=[],j=i,d,g,e,o,k;while(l){c.unshift(a[--l]);r(c);if(n(c,b)<0){f.push(0);continue}g=c.length;e=c[g-1]*j+c[g-2];o=b[h-1]*j+b[h-2];if(g>h)e=(e+1)*j;d=Math.ceil(e/o);do{k=v(b,d);if(n(k,c)<=0)break;d--}while(d);f.push(d);c=x(c,k)}f.reverse();return[m(f),m(c)]}function
Q(a,b){var
g=a.length,h=B(g),j=i,c,f,d,e;d=0;for(c=g-1;c>=0;--c){e=d*j+a[c];f=s(e/b);d=e-f*b;h[c]=f|0}return[h,d|0]}function
l(a,b){var
p,k=h(b);if(F)return[new
c(a.value/k.value),new
c(a.value%k.value)];var
o=a.value,j=k.value,g;if(j===0)throw new
Error("Cannot divide by zero");if(a.isSmall){if(k.isSmall)return[new
e(s(o/j)),new
e(o%j)];return[f[0],a]}if(k.isSmall){if(j===1)return[a,f[0]];if(j==-1)return[a.negate(),f[0]];var
t=Math.abs(j);if(t<i){p=Q(o,t);g=m(p[0]);var
r=p[1];if(a.sign)r=-r;if(typeof
g==="number"){if(a.sign!==k.sign)g=-g;return[new
e(g),new
e(r)]}return[new
d(g,a.sign!==k.sign),new
e(r)]}j=q(t)}var
u=n(o,j);if(u===-1)return[f[0],a];if(u===0)return[f[a.sign===k.sign?1:-1],f[0]];if(o.length+j.length<=200)p=ac(o,j);else
p=ad(o,j);g=p[0];var
w=a.sign!==k.sign,l=p[1],v=a.sign;if(typeof
g==="number"){if(w)g=-g;g=new
e(g)}else
g=new
d(g,w);if(typeof
l==="number"){if(v)l=-l;l=new
e(l)}else
l=new
d(l,v);return[g,l]}d.prototype.divmod=function(a){var
b=l(this,a);return{quotient:b[0],remainder:b[1]}};c.prototype.divmod=e.prototype.divmod=d.prototype.divmod;d.prototype.divide=function(a){return l(this,a)[0]};c.prototype.over=c.prototype.divide=function(a){return new
c(this.value/h(a).value)};e.prototype.over=e.prototype.divide=d.prototype.over=d.prototype.divide;d.prototype.mod=function(a){return l(this,a)[1]};c.prototype.mod=c.prototype.remainder=function(a){return new
c(this.value%h(a).value)};e.prototype.remainder=e.prototype.mod=d.prototype.remainder=d.prototype.mod;d.prototype.pow=function(a){var
c=h(a),d=this.value,b=c.value,j,g,i;if(b===0)return f[1];if(d===0)return f[0];if(d===1)return f[1];if(d===-1)return c.isEven()?f[1]:f[-1];if(c.sign)return f[0];if(!c.isSmall)throw new
Error("The exponent "+c.toString()+" is too large.");if(this.isSmall)if(p(j=Math.pow(d,b)))return new
e(s(j));g=this;i=f[1];while(true){if(b&1===1){i=i.times(g);--b}if(b===0)break;b/=2;g=g.square()}return i};e.prototype.pow=d.prototype.pow;c.prototype.pow=function(a){var
j=h(a),i=this.value,d=j.value,e=b(0),g=b(1),m=b(2);if(d===e)return f[1];if(i===e)return f[0];if(i===g)return f[1];if(i===b(-1))return j.isEven()?f[1]:f[-1];if(j.isNegative())return new
c(e);var
k=this,l=f[1];while(true){if((d&g)===g){l=l.times(k);--d}if(d===e)break;d/=m;k=k.square()}return l};d.prototype.modPow=function(a,b){a=h(a);b=h(b);if(b.isZero())throw new
Error("Cannot take modPow with modulus 0");var
d=f[1],c=this.mod(b);if(a.isNegative()){a=a.multiply(f[-1]);c=c.modInv(b)}while(a.isPositive()){if(c.isZero())return f[0];if(a.isOdd())d=d.multiply(c).mod(b);a=a.divide(2);c=c.square().mod(b)}return d};c.prototype.modPow=e.prototype.modPow=d.prototype.modPow;function
n(a,b){if(a.length!==b.length)return a.length>b.length?1:-1;for(var
c=a.length-1;c>=0;c--)if(a[c]!==b[c])return a[c]>b[c]?1:-1;return 0}d.prototype.compareAbs=function(a){var
b=h(a),c=this.value,d=b.value;if(b.isSmall)return 1;return n(c,d)};e.prototype.compareAbs=function(a){var
d=h(a),c=Math.abs(this.value),b=d.value;if(d.isSmall){b=Math.abs(b);return c===b?0:c>b?1:-1}return-1};c.prototype.compareAbs=function(a){var
b=this.value,c=h(a).value;b=b>=0?b:-b;c=c>=0?c:-c;return b===c?0:b>c?1:-1};d.prototype.compare=function(a){if(a===Infinity)return-1;if(a===-Infinity)return 1;var
b=h(a),c=this.value,d=b.value;if(this.sign!==b.sign)return b.sign?1:-1;if(b.isSmall)return this.sign?-1:1;return n(c,d)*(this.sign?-1:1)};d.prototype.compareTo=d.prototype.compare;e.prototype.compare=function(a){if(a===Infinity)return-1;if(a===-Infinity)return 1;var
c=h(a),b=this.value,d=c.value;if(c.isSmall)return b==d?0:b>d?1:-1;if(b<0!==c.sign)return b<0?-1:1;return b<0?1:-1};e.prototype.compareTo=e.prototype.compare;c.prototype.compare=function(a){if(a===Infinity)return-1;if(a===-Infinity)return 1;var
b=this.value,c=h(a).value;return b===c?0:b>c?1:-1};c.prototype.compareTo=c.prototype.compare;d.prototype.equals=function(a){return this.compare(a)===0};c.prototype.eq=c.prototype.equals=e.prototype.eq=e.prototype.equals=d.prototype.eq=d.prototype.equals;d.prototype.notEquals=function(a){return this.compare(a)!==0};c.prototype.neq=c.prototype.notEquals=e.prototype.neq=e.prototype.notEquals=d.prototype.neq=d.prototype.notEquals;d.prototype.greater=function(a){return this.compare(a)>0};c.prototype.gt=c.prototype.greater=e.prototype.gt=e.prototype.greater=d.prototype.gt=d.prototype.greater;d.prototype.lesser=function(a){return this.compare(a)<0};c.prototype.lt=c.prototype.lesser=e.prototype.lt=e.prototype.lesser=d.prototype.lt=d.prototype.lesser;d.prototype.greaterOrEquals=function(a){return this.compare(a)>=0};c.prototype.geq=c.prototype.greaterOrEquals=e.prototype.geq=e.prototype.greaterOrEquals=d.prototype.geq=d.prototype.greaterOrEquals;d.prototype.lesserOrEquals=function(a){return this.compare(a)<=0};c.prototype.leq=c.prototype.lesserOrEquals=e.prototype.leq=e.prototype.lesserOrEquals=d.prototype.leq=d.prototype.lesserOrEquals;d.prototype.isEven=function(){return(this.value[0]&1)===0};e.prototype.isEven=function(){return(this.value&1)===0};c.prototype.isEven=function(){return(this.value&b(1))===b(0)};d.prototype.isOdd=function(){return(this.value[0]&1)===1};e.prototype.isOdd=function(){return(this.value&1)===1};c.prototype.isOdd=function(){return(this.value&b(1))===b(1)};d.prototype.isPositive=function(){return!this.sign};e.prototype.isPositive=function(){return this.value>0};c.prototype.isPositive=e.prototype.isPositive;d.prototype.isNegative=function(){return this.sign};e.prototype.isNegative=function(){return this.value<0};c.prototype.isNegative=e.prototype.isNegative;d.prototype.isUnit=function(){return false};e.prototype.isUnit=function(){return Math.abs(this.value)===1};c.prototype.isUnit=function(){return this.abs().value===b(1)};d.prototype.isZero=function(){return false};e.prototype.isZero=function(){return this.value===0};c.prototype.isZero=function(){return this.value===b(0)};d.prototype.isDivisibleBy=function(a){var
b=h(a);if(b.isZero())return false;if(b.isUnit())return true;if(b.compareAbs(2)===0)return this.isEven();return this.mod(b).isZero()};c.prototype.isDivisibleBy=e.prototype.isDivisibleBy=d.prototype.isDivisibleBy;function
T(a){var
b=a.abs();if(b.isUnit())return false;if(b.equals(2)||b.equals(3)||b.equals(5))return true;if(b.isEven()||b.isDivisibleBy(3)||b.isDivisibleBy(5))return false;if(b.lesser(49))return true}function
K(a,b){var
g=a.prev(),e=g,h=0,f,i,d,c;while(e.isEven())e=e.divide(2),h++;next:for(d=0;d<b.length;d++){if(a.lesser(b[d]))continue;c=k(b[d]).modPow(e,a);if(c.isUnit()||c.equals(g))continue;for(f=h-1;f!=0;f--){c=c.square().mod(a);if(c.isUnit())return false;if(c.equals(g))continue next}return false}return true}d.prototype.isPrime=function(a){var
f=T(this);if(f!==z)return f;var
c=this.abs(),e=c.bitLength();if(e<=64)return K(c,[2,3,5,7,11,13,17,19,23,29,31,37]);var
g=Math.log(2)*e.toJSNumber(),h=Math.ceil(a===true?2*Math.pow(g,2):g);for(var
d=[],b=0;b<h;b++)d.push(k(b+2));return K(c,d)};c.prototype.isPrime=e.prototype.isPrime=d.prototype.isPrime;d.prototype.isProbablePrime=function(a){var
d=T(this);if(d!==z)return d;var
e=this.abs(),f=a===z?5:a;for(var
b=[],c=0;c<f;c++)b.push(k.randBetween(2,e.minus(2)));return K(e,b)};c.prototype.isProbablePrime=e.prototype.isProbablePrime=d.prototype.isProbablePrime;d.prototype.modInv=function(a){var
b=k.zero,e=k.one,d=h(a),c=this.abs(),f,i,g;while(!c.isZero()){f=d.divide(c);i=b;g=d;b=e;d=c;e=i.subtract(f.multiply(e));c=g.subtract(f.multiply(c))}if(!d.isUnit())throw new
Error(this.toString()+" and "+a.toString()+" are not co-prime");if(b.compare(0)===-1)b=b.add(a);if(this.isNegative())return b.negate();return b};c.prototype.modInv=e.prototype.modInv=d.prototype.modInv;d.prototype.next=function(){var
a=this.value;if(this.sign)return E(a,1,this.sign);return new
d(A(a,1),this.sign)};e.prototype.next=function(){var
a=this.value;if(a+1<t)return new
e(a+1);return new
d(H,false)};c.prototype.next=function(){return new
c(this.value+b(1))};d.prototype.prev=function(){var
a=this.value;if(this.sign)return new
d(A(a,1),true);return E(a,1,this.sign)};e.prototype.prev=function(){var
a=this.value;if(a-1>-t)return new
e(a-1);return new
d(H,true)};c.prototype.prev=function(){return new
c(this.value-b(1))};var
j=[1];while(2*j[j.length-1]<=i)j.push(2*j[j.length-1]);var
w=j.length,o=j[w-1];function
Z(a){return Math.abs(a)<=i}d.prototype.shiftLeft=function(a){var
b=h(a).toJSNumber();if(!Z(b))throw new
Error(String(b)+fb);if(b<0)return this.shiftRight(-b);var
c=this;if(c.isZero())return c;while(b>=w){c=c.multiply(o);b-=w-1}return c.multiply(j[b])};c.prototype.shiftLeft=e.prototype.shiftLeft=d.prototype.shiftLeft;d.prototype.shiftRight=function(a){var
b,c=h(a).toJSNumber();if(!Z(c))throw new
Error(String(c)+fb);if(c<0)return this.shiftLeft(-c);var
d=this;while(c>=w){if(d.isZero()||d.isNegative()&&d.isUnit())return d;b=l(d,o);d=b[1].isNegative()?b[0].prev():b[0];c-=w-1}b=l(d,j[c]);return b[1].isNegative()?b[0].prev():b[0]};c.prototype.shiftRight=e.prototype.shiftRight=d.prototype.shiftRight;function
I(a,b,c){b=h(b);var
n=a.isNegative(),r=b.isNegative(),m=n?a.not():a,q=r?b.not():b,d=0,e=0,j=null,p=null,g=[];while(!m.isZero()||!q.isZero()){j=l(m,o);d=j[1].toJSNumber();if(n)d=o-1-d;p=l(q,o);e=p[1].toJSNumber();if(r)e=o-1-e;m=j[0];q=p[0];g.push(c(d,e))}var
i=c(n?1:0,r?1:0)!==0?k(-1):k(0);for(var
f=g.length-1;f>=0;f-=1)i=i.multiply(o).add(k(g[f]));return i}d.prototype.not=function(){return this.negate().prev()};c.prototype.not=e.prototype.not=d.prototype.not;d.prototype.and=function(a){return I(this,a,function(a,b){return a&b})};c.prototype.and=e.prototype.and=d.prototype.and;d.prototype.or=function(a){return I(this,a,function(a,b){return a|b})};c.prototype.or=e.prototype.or=d.prototype.or;d.prototype.xor=function(a){return I(this,a,function(a,b){return a^b})};c.prototype.xor=e.prototype.xor=d.prototype.xor;var
G=1<<30,aa=(i&-i)*(i&-i)|G;function
D(a){var
c=a.value,d=typeof
c==="number"?c|G:typeof
c==="bigint"?c|b(G):c[0]+c[1]*i|aa;return d&-d}function
S(a,b){if(b.compareTo(a)<=0){var
f=S(a,b.square(b)),d=f.p,c=f.e,e=d.multiply(b);return e.compareTo(a)<=0?{p:e,e:c*2+1}:{p:d,e:c*2}}return{p:k(1),e:0}}d.prototype.bitLength=function(){var
a=this;if(a.compareTo(k(0))<0)a=a.negate().subtract(k(1));if(a.compareTo(k(0))===0)return k(0);return k(S(a,k(2)).e).add(k(1))};c.prototype.bitLength=e.prototype.bitLength=d.prototype.bitLength;function
U(a,b){a=h(a);b=h(b);return a.greater(b)?a:b}function
M(a,b){a=h(a);b=h(b);return a.lesser(b)?a:b}function
R(a,b){a=h(a).abs();b=h(b).abs();if(a.equals(b))return a;if(a.isZero())return b;if(b.isZero())return a;var
c=f[1],d,e;while(a.isEven()&&b.isEven()){d=M(D(a),D(b));a=a.divide(d);b=b.divide(d);c=c.multiply(d)}while(a.isEven())a=a.divide(D(a));do{while(b.isEven())b=b.divide(D(b));if(a.greater(b)){e=b;b=a;a=e}b=b.subtract(a)}while(!b.isZero());return c.isUnit()?a:a.multiply(c)}function
ae(a,b){a=h(a).abs();b=h(b).abs();return a.divide(R(a,b)).multiply(b)}function
ah(a,b){a=h(a);b=h(b);var
d=M(a,b),n=U(a,b),e=n.subtract(d).add(1);if(e.isSmall)return d.add(Math.floor(Math.random()*e));var
j=y(e,i).value,l=[],k=true;for(var
c=0;c<j.length;c++){var
m=k?j[c]:i,g=s(Math.random()*m);l.push(g);if(g<m)k=false}return d.add(f.fromArray(l,i,false))}function
af(a,b,c,d){c=c||O;a=String(a);if(!d){a=a.toLowerCase();c=c.toLowerCase()}var
l=a.length,e,j=Math.abs(b),g={};for(e=0;e<c.length;e++)g[c[e]]=e;for(e=0;e<l;e++){var
f=a[e];if(f===L)continue;if(f
in
g)if(g[f]>=j){if(f==="1"&&j===1)continue;throw new
Error(f+" is not a valid digit in base "+b+al)}}b=h(b);var
i=[],k=a[0]===L;for(e=k?1:0;e<a.length;e++){var
f=a[e];if(f
in
g)i.push(h(g[f]));else if(f===bP){var
m=e;do
e++;while(a[e]!==a5&&e<a.length);i.push(h(a.slice(m+1,e)))}else
throw new
Error(f+" is not a valid character")}return W(i,b,k)}function
W(a,b,c){var
e=f[0],g=f[1],d;for(d=a.length-1;d>=0;d--){e=e.add(a[d].times(g));g=g.times(b)}return c?e.negate():e}function
ai(a,b){b=b||O;if(a<b.length)return b[a];return bP+a+a5}function
y(a,b){b=k(b);if(b.isZero()){if(a.isZero())return{value:[0],isNegative:false};throw new
Error("Cannot convert nonzero numbers to base 0.")}if(b.equals(-1)){if(a.isZero())return{value:[0],isNegative:false};if(a.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-a.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var
h=Array.apply(null,Array(a.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);h.unshift([1]);return{value:[].concat.apply([],h),isNegative:false}}var
f=false;if(a.isNegative()&&b.isPositive()){f=true;a=a.abs()}if(b.isUnit()){if(a.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(a.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:f}}var
g=[],c=a,e;while(c.isNegative()||c.compareAbs(b)>=0){e=c.divmod(b);c=e.quotient;var
d=e.remainder;if(d.isNegative()){d=b.minus(d).abs();c=c.next()}g.push(d.toJSNumber())}g.push(c.toJSNumber());return{value:g.reverse(),isNegative:f}}function
$(a,b,c){var
d=y(a,b);return(d.isNegative?L:g)+d.value.map(function(a){return ai(a,c)}).join(g)}d.prototype.toArray=function(a){return y(this,a)};e.prototype.toArray=function(a){return y(this,a)};c.prototype.toArray=function(a){return y(this,a)};d.prototype.toString=function(a,b){if(a===z)a=10;if(a!==10)return $(this,a,b);var
e=this.value,d=e.length,f=String(e[--d]),i="0000000",c;while(--d>=0){c=String(e[d]);f+=i.slice(c.length)+c}var
h=this.sign?L:g;return h+f};e.prototype.toString=function(a,b){if(a===z)a=10;if(a!=10)return $(this,a,b);return String(this.value)};c.prototype.toString=e.prototype.toString;c.prototype.toJSON=d.prototype.toJSON=e.prototype.toJSON=function(){return this.toString()};d.prototype.valueOf=function(){return parseInt(this.toString(),10)};d.prototype.toJSNumber=d.prototype.valueOf;e.prototype.valueOf=function(){return this.value};e.prototype.toJSNumber=e.prototype.valueOf;c.prototype.valueOf=c.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function
X(a){if(p(+a)){var
l=+a;if(l===s(l))return F?new
c(b(l)):new
e(l);throw new
Error(bN+a)}var
o=a[0]===L;if(o)a=a.slice(1);var
h=a.split(/e/i);if(h.length>2)throw new
Error(bN+h.join(bS));if(h.length===2){var
f=h[1];if(f[0]===au)f=f.slice(1);f=+f;if(f!==s(f)||!p(f))throw new
Error(bN+f+" is not a valid exponent.");var
g=h[0],i=g.indexOf(al);if(i>=0){f-=g.length-i-1;g=g.slice(0,i)+g.slice(i+1)}if(f<0)throw new
Error("Cannot include negative exponent part for integers");g+=new
Array(f+1).join(J);a=g}var