-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnano.js
895 lines (681 loc) · 202 KB
/
nano.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
// NanocurrencyWeb
// https://github.com/numsu/nanocurrency-web-js
var _NanocurrencyWeb;(()=>{var e={4431:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,v=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=h-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function b(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,l=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>l^r?1:-1;for(s=(c=i.length)<(l=o.length)?c:l,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==l?0:c>l^r?1:-1}function w(e,t,r,n){if(e<t||e>r||e!==c(e))throw Error(l+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return y(e.e/h)==t&&e.c[t]%2!=0}function k(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}o=function e(t){var r,n,i,o,A,S,B,M,E,H,U=W.prototype={constructor:W,toString:null,valueOf:null},O=new W(1),z=20,C=4,N=-7,R=21,I=-1e7,D=1e7,P=!1,T=1,j=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},K="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function W(e,t){var r,o,s,l,f,p,g,v,y=this;if(!(y instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>D?y.c=y.e=null:e.e<I?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);return void(l>D?y.c=y.e=null:(y.e=l,y.c=[e]))}v=String(e)}else{if(!a.test(v=String(e)))return i(y,v,p);y.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(f=v.search(/e/i))>0?(l<0&&(l=f),l+=+v.slice(f+1),v=v.substring(0,f)):l<0&&(l=v.length)}else{if(w(t,2,K.length,"Base"),10==t&&L)return Z(y=new W(e),z+y.e+1,C);if(v=String(e),p="number"==typeof e){if(0*e!=0)return i(y,v,p,t);if(y.s=1/e<0?(v=v.slice(1),-1):1,W.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else y.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(r=K.slice(0,t),l=f=0,g=v.length;f<g;f++)if(r.indexOf(o=v.charAt(f))<0){if("."==o){if(f>l){l=g;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,f=-1,l=0;continue}return i(y,String(e),p,t)}p=!1,(l=(v=n(v,t,10,y.s)).indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(f=0;48===v.charCodeAt(f);f++);for(g=v.length;48===v.charCodeAt(--g););if(v=v.slice(f,++g)){if(g-=f,p&&W.DEBUG&&g>15&&(e>d||e!==c(e)))throw Error(u+y.s*e);if((l=l-f-1)>D)y.c=y.e=null;else if(l<I)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%h,l<0&&(f+=h),f<g){for(f&&y.c.push(+v.slice(0,f)),g-=h;f<g;)y.c.push(+v.slice(f,f+=h));f=h-(v=v.slice(f)).length}else f-=g;for(;f--;v+="0");y.c.push(+v)}}else y.c=[y.e=0]}function q(e,t,r,n){var i,o,a,s,c;if(null==r?r=C:w(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=m(e.c),c=1==n||2==n&&(a<=N||a>=R)?k(c,a):x(c,a,"0");else if(o=(e=Z(new W(e),t,r)).e,s=(c=m(e.c)).length,1==n||2==n&&(t<=o||o<=N)){for(;s<t;c+="0",s++);c=k(c,o)}else if(t-=a,c=x(c,o,"0"),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function X(e,t){for(var r,n=1,i=new W(e[0]);n<e.length;n++){if(!(r=new W(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function G(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*h-1)>D?e.c=e.e=null:r<I?e.c=[e.e=0]:(e.e=r,e.c=t),e}function Z(e,t,r,n){var i,o,a,l,u,d,g,v=e.c,y=p;if(v){e:{for(i=1,l=v[0];l>=10;l/=10,i++);if((o=t-i)<0)o+=h,a=t,g=(u=v[d=0])/y[i-a-1]%10|0;else if((d=s((o+1)/h))>=v.length){if(!n)break e;for(;v.length<=d;v.push(0));u=g=0,i=1,a=(o%=h)-h+1}else{for(u=l=v[d],i=1;l>=10;l/=10,i++);g=(a=(o%=h)-h+i)<0?0:u/y[i-a-1]%10|0}if(n=n||t<0||null!=v[d+1]||(a<0?u:u%y[i-a-1]),n=r<4?(g||n)&&(0==r||r==(e.s<0?3:2)):g>5||5==g&&(4==r||n||6==r&&(o>0?a>0?u/y[i-a]:0:v[d-1])%10&1||r==(e.s<0?8:7)),t<1||!v[0])return v.length=0,n?(t-=e.e+1,v[0]=y[(h-t%h)%h],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=y[h-o],v[d]=a>0?c(u/y[i-a]%y[a])*l:0),n)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(e.e++,v[0]==f&&(v[0]=1));break}if(v[d]+=l,v[d]!=f)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}e.e>D?e.c=e.e=null:e.e<I&&(e.c=[e.e=0])}return e}function $(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=N||r>=R?k(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(r=e[t],0,v,t),z=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(w(r[0],-v,0,t),w(r[1],0,v,t),N=r[0],R=r[1]):(w(r,-v,v,t),N=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)w(r[0],-v,-1,t),w(r[1],1,v,t),I=r[0],D=r[1];else{if(w(r,-v,v,t),!r)throw Error(l+t+" cannot be zero: "+r);I=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(l+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw P=!r,Error(l+"crypto unavailable");P=r}else P=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(r=e[t],0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(w(r=e[t],0,v,t),j=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(l+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+t+" invalid: "+r);L="0123456789"==r.slice(0,10),K=r}}return{DECIMAL_PLACES:z,ROUNDING_MODE:C,EXPONENTIAL_AT:[N,R],RANGE:[I,D],CRYPTO:P,MODULO_MODE:T,POW_PRECISION:j,FORMAT:F,ALPHABET:K}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-v&&i<=v&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%h)<1&&(t+=h),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=f||r!==c(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(l+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return X(arguments,U.lt)},W.minimum=W.min=function(){return X(arguments,U.gt)},W.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return c(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,o,a=0,u=[],f=new W(O);if(null==e?e=z:w(e,0,v),i=s(e/h),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[a]=r[0],t[a+1]=r[1]):(u.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw P=!1,Error(l+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(u.push(o%1e14),a+=7);a=i/7}if(!P)for(;a<i;)(o=A())<9e15&&(u[a++]=o%1e14);for(i=u[--a],e%=h,i&&e&&(o=p[h-e],u[a]=c(i/o)*o);0===u[a];u.pop(),a--);if(a<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=h);for(a=1,o=u[0];o>=10;o/=10,a++);a<h&&(n-=h-a)}return f.e=n,f.c=u,f}),W.sum=function(){for(var e=1,t=arguments,r=new W(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,s){var c,l,u,f,h,d,p,g,v=n.indexOf("."),y=z,b=C;for(v>=0&&(f=j,j=0,n=n.replace(".",""),d=(g=new W(i)).pow(n.length-v),j=f,g.c=t(x(m(d.c),d.e,"0"),10,o,e),g.e=g.c.length),u=f=(p=t(n,i,o,s?(c=K,e):(c=e,K))).length;0==p[--f];p.pop());if(!p[0])return c.charAt(0);if(v<0?--u:(d.c=p,d.e=u,d.s=a,p=(d=r(d,g,y,b,o)).c,h=d.r,u=d.e),v=p[l=u+y+1],f=o/2,h=h||l<0||null!=p[l+1],h=b<4?(null!=v||h)&&(0==b||b==(d.s<0?3:2)):v>f||v==f&&(4==b||h||6==b&&1&p[l-1]||b==(d.s<0?8:7)),l<1||!p[0])n=h?x(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,h)for(--o;++p[--l]>o;)p[l]=0,l||(++u,p=[1].concat(p));for(f=p.length;!p[--f];);for(v=0,n="";v<=f;n+=c.charAt(p[v++]));n=x(n,u,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,l=t%g,u=t/g|0;for(e=e.slice();c--;)s=((i=l*(o=e[c]%g)+(n=u*o+(a=e[c]/g|0)*l)%g*g+s)/r|0)+(n/g|0)+u*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,u,d,p,g,v,m,b,w,_,k,x,A,S,B,M,E,H=n.s==i.s?1:-1,U=n.c,O=i.c;if(!(U&&U[0]&&O&&O[0]))return new W(n.s&&i.s&&(U?!O||U[0]!=O[0]:O)?U&&0==U[0]||!O?0*H:H/0:NaN);for(w=(b=new W(H)).c=[],H=o+(u=n.e-i.e)+1,s||(s=f,u=y(n.e/h)-y(i.e/h),H=H/h|0),d=0;O[d]==(U[d]||0);d++);if(O[d]>(U[d]||0)&&u--,H<0)w.push(1),p=!0;else{for(S=U.length,M=O.length,d=0,H+=2,(g=c(s/(O[0]+1)))>1&&(O=e(O,g,s),U=e(U,g,s),M=O.length,S=U.length),A=M,k=(_=U.slice(0,M)).length;k<M;_[k++]=0);E=O.slice(),E=[0].concat(E),B=O[0],O[1]>=s/2&&B++;do{if(g=0,(l=t(O,_,M,k))<0){if(x=_[0],M!=k&&(x=x*s+(_[1]||0)),(g=c(x/B))>1)for(g>=s&&(g=s-1),m=(v=e(O,g,s)).length,k=_.length;1==t(v,_,m,k);)g--,r(v,M<m?E:O,m,s),m=v.length,l=1;else 0==g&&(l=g=1),m=(v=O.slice()).length;if(m<k&&(v=[0].concat(v)),r(_,v,k,s),k=_.length,-1==l)for(;t(O,_,M,k)<1;)g++,r(_,M<k?E:O,k,s),k=_.length}else 0===l&&(g++,_=[0]);w[d++]=g,_[0]?_[k++]=U[A]||0:(_=[U[A]],k=1)}while((A++<S||null!=_[0])&&H--);p=null!=_[0],w[0]||w.splice(0,1)}if(s==f){for(d=1,H=w[0];H>=10;H/=10,d++);Z(b,o+(b.e=d+u*h-1)+1,a,p)}else b.e=u,b.r=+p;return b}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,M=/^\.([^.]+)$/,E=/^-?(Infinity|NaN)$/,H=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,o=r?t:t.replace(H,"");if(E.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(S,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(B,"$1").replace(M,"0.$1")),t!=o))return new W(o,i);if(W.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},U.absoluteValue=U.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},U.comparedTo=function(e,t){return b(this,new W(e,t))},U.decimalPlaces=U.dp=function(e,t){var r,n,i,o=this;if(null!=e)return w(e,0,v),null==t?t=C:w(t,0,8),Z(new W(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-y(this.e/h))*h,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},U.dividedBy=U.div=function(e,t){return r(this,new W(e,t),z,C)},U.dividedToIntegerBy=U.idiv=function(e,t){return r(this,new W(e,t),0,1)},U.exponentiatedBy=U.pow=function(e,t){var r,n,i,o,a,u,f,d,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+$(e));if(null!=t&&(t=new W(t)),a=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new W(Math.pow(+$(p),a?2-_(e):+$(e))),t?d.mod(t):d;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(n=!u&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||a&&p.c[1]>=24e7:p.c[0]<8e13||a&&p.c[0]<=9999975e7)))return o=p.s<0&&_(e)?-0:0,p.e>-1&&(o=1/o),new W(u?1/o:o);j&&(o=s(j/h+2))}for(a?(r=new W(.5),u&&(e.s=1),f=_(e)):f=(i=Math.abs(+$(e)))%2,d=new W(O);;){if(f){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}if(i){if(0===(i=c(i/2)))break;f=i%2}else if(Z(e=e.times(r),e.e+1,1),e.e>14)f=_(e);else{if(0==(i=+$(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?d:(u&&(d=O.div(d)),t?d.mod(t):o?Z(d,j,C,void 0):d)},U.integerValue=function(e){var t=new W(this);return null==e?e=C:w(e,0,8),Z(t,t.e+1,e)},U.isEqualTo=U.eq=function(e,t){return 0===b(this,new W(e,t))},U.isFinite=function(){return!!this.c},U.isGreaterThan=U.gt=function(e,t){return b(this,new W(e,t))>0},U.isGreaterThanOrEqualTo=U.gte=function(e,t){return 1===(t=b(this,new W(e,t)))||0===t},U.isInteger=function(){return!!this.c&&y(this.e/h)>this.c.length-2},U.isLessThan=U.lt=function(e,t){return b(this,new W(e,t))<0},U.isLessThanOrEqualTo=U.lte=function(e,t){return-1===(t=b(this,new W(e,t)))||0===t},U.isNaN=function(){return!this.s},U.isNegative=function(){return this.s<0},U.isPositive=function(){return this.s>0},U.isZero=function(){return!!this.c&&0==this.c[0]},U.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/h,l=e.e/h,u=a.c,d=e.c;if(!c||!l){if(!u||!d)return u?(e.s=-t,e):new W(d?a:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new W(u[0]?a:3==C?-0:0)}if(c=y(c),l=y(l),u=u.slice(),s=c-l){for((o=s<0)?(s=-s,i=u):(l=c,i=d),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=u.length)<(t=d.length))?s:t,s=t=0;t<n;t++)if(u[t]!=d[t]){o=u[t]<d[t];break}if(o&&(i=u,u=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=f-1;n>s;){if(u[--n]<d[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=f}u[n]-=d[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?G(e,u,l):(e.s=3==C?-1:1,e.c=[e.e=0],e)},U.modulo=U.mod=function(e,t){var n,i,o=this;return e=new W(e,t),!o.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||o.c&&!o.c[0]?new W(o):(9==T?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,T),(e=o.minus(n.times(e))).c[0]||1!=T||(e.s=o.s),e)},U.multipliedBy=U.times=function(e,t){var r,n,i,o,a,s,c,l,u,d,p,v,m,b,w,_=this,k=_.c,x=(e=new W(e,t)).c;if(!(k&&x&&k[0]&&x[0]))return!_.s||!e.s||k&&!k[0]&&!x||x&&!x[0]&&!k?e.c=e.e=e.s=null:(e.s*=_.s,k&&x?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=y(_.e/h)+y(e.e/h),e.s*=_.s,(c=k.length)<(d=x.length)&&(m=k,k=x,x=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(b=f,w=g,i=d;--i>=0;){for(r=0,p=x[i]%w,v=x[i]/w|0,o=i+(a=c);o>i;)r=((l=p*(l=k[--a]%w)+(s=v*l+(u=k[a]/w|0)*p)%w*w+m[o]+r)/b|0)+(s/w|0)+v*u,m[o--]=l%b;m[o]=r}return r?++n:m.splice(0,1),G(e,m,n)},U.negated=function(){var e=new W(this);return e.s=-e.s||null,e},U.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/h,a=e.e/h,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new W(i/0);if(!s[0]||!c[0])return c[0]?e:new W(s[0]?n:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/f|0,s[t]=f===s[t]?0:s[t]%f;return i&&(s=[i].concat(s),++a),G(e,s,a)},U.precision=U.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return w(e,1,v),null==t?t=C:w(t,0,8),Z(new W(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*h+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},U.shiftedBy=function(e){return w(e,-9007199254740991,d),this.times("1e"+e)},U.squareRoot=U.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,l=a.e,u=z+4,f=new W("0.5");if(1!==c||!s||!s[0])return new W(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+$(a)))||c==1/0?(((t=m(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=y((l+1)/2)-(l<0||l%2),n=new W(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new W(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(o=n,n=f.times(o.plus(r(a,o,u,1))),m(o.c).slice(0,c)===(t=m(n.c)).slice(0,c)){if(n.e<l&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Z(n,n.e+z+2,1),e=!n.times(n).eq(a));break}if(!i&&(Z(o,o.e+z+2,0),o.times(o).eq(a))){n=o;break}u+=4,c+=4,i=1}return Z(n,n.e+z+1,C,e)},U.toExponential=function(e,t){return null!=e&&(w(e,0,v),e++),q(this,e,t,1)},U.toFixed=function(e,t){return null!=e&&(w(e,0,v),e=e+this.e+1),q(this,e,t)},U.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=F;else if("object"!=typeof r)throw Error(l+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,u=r.groupSeparator||"",f=a[0],h=a[1],d=i.s<0,p=d?f.slice(1):f,g=p.length;if(c&&(o=s,s=c,c=o,g-=o),s>0&&g>0){for(o=g%s||s,f=p.substr(0,o);o<g;o+=s)f+=u+p.substr(o,s);c>0&&(f+=u+p.slice(o)),d&&(f="-"+f)}n=h?f+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):f}return(r.prefix||"")+n+(r.suffix||"")},U.toFraction=function(e){var t,n,i,o,a,s,c,u,f,d,g,v,y=this,b=y.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+$(c));if(!b)return new W(y);for(t=new W(O),f=n=new W(O),i=u=new W(O),v=m(b),a=t.e=v.length-y.e-1,t.c[0]=p[(s=a%h)<0?h+s:s],e=!e||c.comparedTo(t)>0?a>0?t:f:c,s=D,D=1/0,c=new W(v),u.c[0]=0;d=r(c,t,0,1),1!=(o=n.plus(d.times(i))).comparedTo(e);)n=i,i=o,f=u.plus(d.times(o=f)),u=o,t=c.minus(d.times(o=t)),c=o;return o=r(e.minus(n),i,0,1),u=u.plus(o.times(f)),n=n.plus(o.times(i)),u.s=f.s=y.s,g=r(f,i,a*=2,C).minus(y).abs().comparedTo(r(u,n,a,C).minus(y).abs())<1?[f,i]:[u,n],D=s,g},U.toNumber=function(){return+$(this)},U.toPrecision=function(e,t){return null!=e&&w(e,1,v),q(this,e,t,2)},U.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=N||o>=R?k(m(r.c),o):x(m(r.c),o,"0"):10===e&&L?t=x(m((r=Z(new W(r),z+o+1,C)).c),r.e,"0"):(w(e,2,K.length,"Base"),t=n(x(m(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},U.valueOf=U.toJSON=function(){return $(this)},U._isBigNumber=!0,null!=t&&W.set(t),W}(),o.default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},8442:(e,t,r)=>{const n=r(9488);function i(e,t,r){const n=e[t]+e[r];let i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){const c=f[a],l=f[a+1],h=f[s],d=f[s+1];i(u,e,t),o(u,e,c,l);let p=u[n]^u[e],g=u[n+1]^u[e+1];u[n]=g,u[n+1]=p,i(u,r,n),p=u[t]^u[r],g=u[t+1]^u[r+1],u[t]=p>>>24^g<<8,u[t+1]=g>>>24^p<<8,i(u,e,t),o(u,e,h,d),p=u[n]^u[e],g=u[n+1]^u[e+1],u[n]=p>>>16^g<<16,u[n+1]=g>>>16^p<<16,i(u,r,n),p=u[t]^u[r],g=u[t+1]^u[r+1],u[t]=g>>>31^p<<1,u[t+1]=p>>>31^g<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),u=new Uint32Array(32),f=new Uint32Array(32);function h(e,t){let r=0;for(r=0;r<16;r++)u[r]=e.h[r],u[r+16]=c[r];for(u[24]=u[24]^e.t,u[25]=u[25]^e.t/4294967296,t&&(u[28]=~u[28],u[29]=~u[29]),r=0;r<32;r++)f[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,l[16*r+0],l[16*r+1]),s(2,10,18,26,l[16*r+2],l[16*r+3]),s(4,12,20,28,l[16*r+4],l[16*r+5]),s(6,14,22,30,l[16*r+6],l[16*r+7]),s(0,10,20,30,l[16*r+8],l[16*r+9]),s(2,12,22,24,l[16*r+10],l[16*r+11]),s(4,14,16,26,l[16*r+12],l[16*r+13]),s(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^u[r]^u[r+16]}const d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};d.fill(0),d[0]=e,t&&(d[1]=t.length),d[2]=1,d[3]=1,r&&d.set(r,32),n&&d.set(n,48);for(let e=0;e<16;e++)i.h[e]=c[e]^a(d,4*e);return t&&(g(i,t),i.c=128),i}function g(e,t){for(let r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[r]}function v(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;h(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function y(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));const a=p(r,t,i,o);return g(a,e),v(a)}e.exports={blake2b:y,blake2bHex:function(e,t,r,i,o){const a=y(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:g,blake2bFinal:v}},5297:(e,t,r)=>{const n=r(9488);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){l[e]=l[e]+l[t]+i,l[n]=a(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],12),l[e]=l[e]+l[t]+o,l[n]=a(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function f(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=s[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++)u[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,u[c[16*r+0]],u[c[16*r+1]]),o(1,5,9,13,u[c[16*r+2]],u[c[16*r+3]]),o(2,6,10,14,u[c[16*r+4]],u[c[16*r+5]]),o(3,7,11,15,u[c[16*r+6]],u[c[16*r+7]]),o(0,5,10,15,u[c[16*r+8]],u[c[16*r+9]]),o(1,6,11,12,u[c[16*r+10]],u[c[16*r+11]]),o(2,7,8,13,u[c[16*r+12]],u[c[16*r+13]]),o(3,4,9,14,u[c[16*r+14]],u[c[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function h(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");const n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(d(n,t),n.c=64),n}function d(e,t){for(let r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[r]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;f(e,!0);const t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function g(e,t,r){r=r||32,e=n.normalizeInput(e);const i=h(r,t);return d(i,e),p(i)}e.exports={blake2s:g,blake2sHex:function(e,t,r){const i=g(e,t,r);return n.toHex(i)},blake2sInit:h,blake2sUpdate:d,blake2sFinal:p}},1191:(e,t,r)=>{const n=r(8442),i=r(5297);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},9488:e=>{function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o<r.length;o+=2){if(32===n)i+=t(r[o]).toUpperCase(),i+=" ",i+=t(r[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);i+=t(r[o+1]).toUpperCase(),i+=t(r[o]).toUpperCase()}o%6==4?i+="\n"+new Array(e.length+4).join(" "):o<r.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){let n=(new Date).getTime();const i=new Uint8Array(t);for(let e=0;e<t;e++)i[e]=e%256;const o=(new Date).getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let o=0;o<r;o++){const r=e(i),o=(new Date).getTime(),a=o-n;n=o,console.log("Hashed in "+a+"ms: "+r.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(a/1e3)*100)/100+" MB PER SECOND")}}}},1294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToBase64=o,t.base64ToBytes=a,t.base64encode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new TextEncoder;return o(t.encode(e))},t.base64decode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new TextDecoder;return t.decode(a(e))};var r=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],n=[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,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,255,255,255,255,255,255,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];function i(e){if(e>=n.length)throw new Error("Unable to parse base64 string.");var t=n[e];if(255===t)throw new Error("Unable to parse base64 string.");return t}function o(e){var t,n="",i=e.length;for(t=2;t<i;t+=3)n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4|e[t-1]>>4],n+=r[(15&e[t-1])<<2|e[t]>>6],n+=r[63&e[t]];return t===i+1&&(n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4],n+="=="),t===i&&(n+=r[e[t-2]>>2],n+=r[(3&e[t-2])<<4|e[t-1]>>4],n+=r[(15&e[t-1])<<2],n+="="),n}function a(e){if(e.length%4!=0)throw new Error("Unable to parse base64 string.");var t=e.indexOf("=");if(-1!==t&&t<e.length-2)throw new Error("Unable to parse base64 string.");for(var r,n=e.endsWith("==")?2:e.endsWith("=")?1:0,o=e.length,a=new Uint8Array(o/4*3),s=0,c=0;s<o;s+=4,c+=3)r=i(e.charCodeAt(s))<<18|i(e.charCodeAt(s+1))<<12|i(e.charCodeAt(s+2))<<6|i(e.charCodeAt(s+3)),a[c]=r>>16,a[c+1]=r>>8&255,a[c+2]=255&r;return a.subarray(0,a.length-n)}},452:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],f=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=e[r],v=e[g],y=e[v],m=257*e[p]^16843008*p;a[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,c[r]=m<<8|m>>>24,l[r]=m,m=16843009*y^65537*v^257*g^16843008*r,u[p]=m<<24|m>>>8,f[p]=m<<16|m>>>16,h[p]=m<<8|m>>>24,d[p]=m,r?(r=g^e[e[e[y^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=t[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var c=this._invKeySchedule=[],l=0;l<n;l++)a=n-l,s=l%4?o[a]:o[a-4],c[l]=l<4||a<=4?s:u[i[s>>>24]]^f[i[s>>>16&255]]^h[i[s>>>8&255]]^d[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,h,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],d=4,p=1;p<c;p++){var g=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[d++],v=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[d++],y=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[d++],m=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[d++];l=g,u=v,f=y,h=m}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],v=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[d++],y=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],m=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[d++],e[t]=g,e[t+1]=v,e[t+2]=y,e[t+3]=m},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},5109:function(e,t,r){var n,i,o,a,s,c,l,u,f,h,d,p,g,v,y,m,b,w,_;e.exports=(n=r(8249),r(888),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,f=i.algo.EvpKDF,h=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:b}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=d.CBC=function(){var e=p.extend();function t(e,t,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),v=(i.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var c=s.create(o,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:v}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else n=r.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),y=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:n})}},b=o.SerializableCipher=a.extend({cfg:a.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return y.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=s.random(8));var i=f.create({keySize:t+r}).compute(e,n),o=s.create(i.words.slice(t),4*r);return i.sigBytes=4*t,y.create({key:i,iv:o,salt:n})}},_=o.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=b.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,b.decrypt.call(this,e,t,i.key,n)}}))))},8249:function(e,t){var r;e.exports=(r=r||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u<c;u+=o)this._doProcessBlock(n,u);var f=n.splice(0,c);r.sigBytes-=l}return new a.init(f,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math),r)},8269:function(e,t,r){var n,i,o;e.exports=(n=r(8249),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,c=r[e.charCodeAt(a)]>>>6-a%4*2;n[i>>>2]|=(s|c)<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},298:function(e,t,r){var n;e.exports=(n=r(8249),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},888:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(2783),r(9824),o=(i=(n=u).lib).Base,a=i.WordArray,c=(s=n.algo).MD5,l=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=a.create(),o=i.words,s=r.keySize,c=r.iterations;o.length<s;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var u=1;u<c;u++)l=n.finalize(l),n.reset();i.concat(l)}return i.sigBytes=4*s,i}}),n.EvpKDF=function(e,t,r){return l.create(r).compute(e,t)},u.EvpKDF)},2209:function(e,t,r){var n,i,o,a;e.exports=(a=r(8249),r(5109),i=(n=a).lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},a.format.Hex)},9824:function(e,t,r){var n,i,o;e.exports=(i=(n=r(8249)).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1354:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),r(4433),r(298),r(8269),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974),n)},4433:function(e,t,r){var n;e.exports=(n=r(8249),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},8214:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],A=e[t+13],S=e[t+14],B=e[t+15],M=o[0],E=o[1],H=o[2],U=o[3];M=l(M,E,H,U,a,7,s[0]),U=l(U,M,E,H,c,12,s[1]),H=l(H,U,M,E,d,17,s[2]),E=l(E,H,U,M,p,22,s[3]),M=l(M,E,H,U,g,7,s[4]),U=l(U,M,E,H,v,12,s[5]),H=l(H,U,M,E,y,17,s[6]),E=l(E,H,U,M,m,22,s[7]),M=l(M,E,H,U,b,7,s[8]),U=l(U,M,E,H,w,12,s[9]),H=l(H,U,M,E,_,17,s[10]),E=l(E,H,U,M,k,22,s[11]),M=l(M,E,H,U,x,7,s[12]),U=l(U,M,E,H,A,12,s[13]),H=l(H,U,M,E,S,17,s[14]),M=u(M,E=l(E,H,U,M,B,22,s[15]),H,U,c,5,s[16]),U=u(U,M,E,H,y,9,s[17]),H=u(H,U,M,E,k,14,s[18]),E=u(E,H,U,M,a,20,s[19]),M=u(M,E,H,U,v,5,s[20]),U=u(U,M,E,H,_,9,s[21]),H=u(H,U,M,E,B,14,s[22]),E=u(E,H,U,M,g,20,s[23]),M=u(M,E,H,U,w,5,s[24]),U=u(U,M,E,H,S,9,s[25]),H=u(H,U,M,E,p,14,s[26]),E=u(E,H,U,M,b,20,s[27]),M=u(M,E,H,U,A,5,s[28]),U=u(U,M,E,H,d,9,s[29]),H=u(H,U,M,E,m,14,s[30]),M=f(M,E=u(E,H,U,M,x,20,s[31]),H,U,v,4,s[32]),U=f(U,M,E,H,b,11,s[33]),H=f(H,U,M,E,k,16,s[34]),E=f(E,H,U,M,S,23,s[35]),M=f(M,E,H,U,c,4,s[36]),U=f(U,M,E,H,g,11,s[37]),H=f(H,U,M,E,m,16,s[38]),E=f(E,H,U,M,_,23,s[39]),M=f(M,E,H,U,A,4,s[40]),U=f(U,M,E,H,a,11,s[41]),H=f(H,U,M,E,p,16,s[42]),E=f(E,H,U,M,y,23,s[43]),M=f(M,E,H,U,w,4,s[44]),U=f(U,M,E,H,x,11,s[45]),H=f(H,U,M,E,B,16,s[46]),M=h(M,E=f(E,H,U,M,d,23,s[47]),H,U,a,6,s[48]),U=h(U,M,E,H,m,10,s[49]),H=h(H,U,M,E,S,15,s[50]),E=h(E,H,U,M,v,21,s[51]),M=h(M,E,H,U,x,6,s[52]),U=h(U,M,E,H,p,10,s[53]),H=h(H,U,M,E,_,15,s[54]),E=h(E,H,U,M,c,21,s[55]),M=h(M,E,H,U,b,6,s[56]),U=h(U,M,E,H,B,10,s[57]),H=h(H,U,M,E,y,15,s[58]),E=h(E,H,U,M,A,21,s[59]),M=h(M,E,H,U,g,6,s[60]),U=h(U,M,E,H,k,10,s[61]),H=h(H,U,M,E,d,15,s[62]),E=h(E,H,U,M,w,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+E|0,o[2]=o[2]+H|0,o[3]=o[3]+U|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},8568:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i,n),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);t.call(this,e,r,i,n),this._prevBlock=o}}),e}(),n.mode.CFB)},9968:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[r+c]^=s[c]}});return e.Decryptor=r,e}(),n.mode.CTRGladman)},4242:function(e,t,r){var n,i,o;e.exports=(o=r(8249),r(5109),o.mode.CTR=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),n.Decryptor=i,n),o.mode.CTR)},1148:function(e,t,r){var n,i;e.exports=(i=r(8249),r(5109),i.mode.ECB=((n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),i.mode.ECB)},7660:function(e,t,r){var n,i,o;e.exports=(o=r(8249),r(5109),o.mode.OFB=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),n.Decryptor=i,n),o.mode.OFB)},3615:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},2807:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},1077:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},6991:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},6475:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},2112:function(e,t,r){var n,i,o,a,s,c,l,u,f;e.exports=(f=r(8249),r(2783),r(9824),o=(i=(n=f).lib).Base,a=i.WordArray,c=(s=n.algo).SHA1,l=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=l.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,u=r.keySize,f=r.iterations;s.length<u;){var h=n.update(t).finalize(o);n.reset();for(var d=h.words,p=d.length,g=h,v=1;v<f;v++){g=n.finalize(g),n.reset();for(var y=g.words,m=0;m<p;m++)d[m]^=y[m]}i.concat(h),c[0]++}return i.sigBytes=4*u,i}}),n.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)},f.PBKDF2)},3974:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(n[0]^=l,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=l,n[5]^=f,n[6]^=u,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},4454:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=f,i[6]^=u,i[7]^=h,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},1857:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},706:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,w,_,k,x,A,S,B,M,E=this._hash.words,H=f.words,U=h.words,O=s.words,z=c.words,C=l.words,N=u.words;for(k=o=E[0],x=a=E[1],A=d=E[2],S=w=E[3],B=_=E[4],r=0;r<80;r+=1)M=o+e[t+O[r]]|0,M+=r<16?p(a,d,w)+H[0]:r<32?g(a,d,w)+H[1]:r<48?v(a,d,w)+H[2]:r<64?y(a,d,w)+H[3]:m(a,d,w)+H[4],M=(M=b(M|=0,C[r]))+_|0,o=_,_=w,w=b(d,10),d=a,a=M,M=k+e[t+z[r]]|0,M+=r<16?m(x,A,S)+U[0]:r<32?y(x,A,S)+U[1]:r<48?v(x,A,S)+U[2]:r<64?g(x,A,S)+U[3]:p(x,A,S)+U[4],M=(M=b(M|=0,N[r]))+B|0,k=B,B=S,S=b(A,10),A=x,x=M;M=E[1]+d+S|0,E[1]=E[2]+w+B|0,E[2]=E[3]+_+k|0,E[3]=E[4]+o+x|0,E[4]=E[0]+a+A|0,E[0]=M},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function m(e,t,r){return e^(t|~r)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)},2783:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(i=(n=u=r(8249)).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var f=(n<<5|n>>>27)+s+c[l];f+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(l),n.HmacSHA1=a._createHmacHelper(l),u.SHA1)},7792:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(8249),r(2153),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},2153:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[d]=g+l[d-7]+y+l[d-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[d]+l[d];h=f,f=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)},3327:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?f^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=r[i]).high^=a,E.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,g=0;g<5;g++)d^=(E=r[h+5*g]).high,p^=E.low;var v=f[h];v.high=d,v.low=p}for(h=0;h<5;h++){var y=f[(h+4)%5],m=f[(h+1)%5],b=m.high,w=m.low;for(d=y.high^(b<<1|w>>>31),p=y.low^(w<<1|b>>>31),g=0;g<5;g++)(E=r[h+5*g]).high^=d,E.low^=p}for(var _=1;_<25;_++){var k=(E=r[_]).high,x=E.low,A=c[_];A<32?(d=k<<A|x>>>32-A,p=x<<A|k>>>32-A):(d=x<<A-32|k>>>64-A,p=k<<A-32|x>>>64-A);var S=f[l[_]];S.high=d,S.low=p}var B=f[0],M=r[0];for(B.high=M.high,B.low=M.low,h=0;h<5;h++)for(g=0;g<5;g++){var E=r[_=h+5*g],H=f[_],U=f[(h+1)%5+5*g],O=f[(h+2)%5+5*g];E.high=H.high^~U.high&O.high,E.low=H.low^~U.low&O.low}E=r[0];var z=u[s];E.high^=z.high,E.low^=z.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var f=a[u],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(h),t.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3)},7460:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(4938),r(34),i=(n=u).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(l),n.HmacSHA384=c._createHmacHelper(l),u.SHA384)},34:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=n.high,p=n.low,g=i.high,v=i.low,y=o.high,m=o.low,b=a.high,w=a.low,_=s.high,k=s.low,x=u.high,A=u.low,S=f.high,B=f.low,M=h.high,E=h.low,H=d,U=p,O=g,z=v,C=y,N=m,R=b,I=w,D=_,P=k,T=x,j=A,F=S,K=B,L=M,W=E,q=0;q<80;q++){var X=l[q];if(q<16)var G=X.high=0|e[t+2*q],Z=X.low=0|e[t+2*q+1];else{var $=l[q-15],V=$.high,Y=$.low,J=(V>>>1|Y<<31)^(V>>>8|Y<<24)^V>>>7,Q=(Y>>>1|V<<31)^(Y>>>8|V<<24)^(Y>>>7|V<<25),ee=l[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[q-7],ae=oe.high,se=oe.low,ce=l[q-16],le=ce.high,ue=ce.low;G=(G=(G=J+ae+((Z=Q+se)>>>0<Q>>>0?1:0))+ne+((Z+=ie)>>>0<ie>>>0?1:0))+le+((Z+=ue)>>>0<ue>>>0?1:0),X.high=G,X.low=Z}var fe,he=D&T^~D&F,de=P&j^~P&K,pe=H&O^H&C^O&C,ge=U&z^U&N^z&N,ve=(H>>>28|U<<4)^(H<<30|U>>>2)^(H<<25|U>>>7),ye=(U>>>28|H<<4)^(U<<30|H>>>2)^(U<<25|H>>>7),me=(D>>>14|P<<18)^(D>>>18|P<<14)^(D<<23|P>>>9),be=(P>>>14|D<<18)^(P>>>18|D<<14)^(P<<23|D>>>9),we=c[q],_e=we.high,ke=we.low,xe=L+me+((fe=W+be)>>>0<W>>>0?1:0),Ae=ye+ge;L=F,W=K,F=T,K=j,T=D,j=P,D=R+(xe=(xe=(xe=xe+he+((fe+=de)>>>0<de>>>0?1:0))+_e+((fe+=ke)>>>0<ke>>>0?1:0))+G+((fe+=Z)>>>0<Z>>>0?1:0))+((P=I+fe|0)>>>0<I>>>0?1:0)|0,R=C,I=N,C=O,N=z,O=H,z=U,H=xe+(ve+pe+(Ae>>>0<ye>>>0?1:0))+((U=fe+Ae|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+U,n.high=d+H+(p>>>0<U>>>0?1:0),v=i.low=v+z,i.high=g+O+(v>>>0<z>>>0?1:0),m=o.low=m+N,o.high=y+C+(m>>>0<N>>>0?1:0),w=a.low=w+I,a.high=b+R+(w>>>0<I>>>0?1:0),k=s.low=k+P,s.high=_+D+(k>>>0<P>>>0?1:0),A=u.low=A+j,u.high=x+T+(A>>>0<j>>>0?1:0),B=f.low=B+K,f.high=S+F+(B>>>0<K>>>0?1:0),E=h.low=E+W,h.high=M+L+(E>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)},4253:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(r=0;r<24;r++)l[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,l[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(l[0]=l[0]<<1|l[0]>>>31,r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((a^i[c])&u[c])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function d(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=f.createEncryptor(r.create(e.slice(0,2))),this._des2=f.createEncryptor(r.create(e.slice(2,4))),this._des3=f.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),n.TripleDES)},4938:function(e,t,r){var n,i,o,a,s,c;e.exports=(n=r(8249),o=(i=n).lib,a=o.Base,s=o.WordArray,(c=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),n)},8492:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.box=t.tools=t.block=t.wallet=void 0;var s=a(r(6435)),c=a(r(9185)),l=a(r(4333)),u=a(r(2768)),f=a(r(2604)),h=a(r(9646)),d=a(r(7243)),p=a(r(9489)),g={generate:function(e,t){return s.default.generateWallet(e,t)},generateLegacy:function(e){return s.default.generateLegacyWallet(e)},fromMnemonic:function(e,t){return c.default.fromMnemonic(e,t)},fromLegacyMnemonic:function(e){return c.default.fromLegacyMnemonic(e)},fromSeed:function(e){return c.default.fromSeed(e)},fromLegacySeed:function(e){return c.default.fromLegacySeed(e)},accounts:function(e,t,r){return c.default.fromSeed(e,t,r).accounts},legacyAccounts:function(e,t,r){return c.default.fromLegacySeed(e,t,r).accounts}};t.wallet=g;var v={send:function(e,t){return l.default.send(e,t)},receive:function(e,t){return l.default.receive(e,t)},representative:function(e,t){var r=n(n({},e),{fromAddress:e.address,amountRaw:"0",toAddress:"nano_1111111111111111111111111111111111111111111111111111hifc8npp"});return l.default.send(r,t)}};t.block=v;var y={convert:function(e,t,r){return h.default.convert(e,t,r)},sign:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=t.map(p.default.stringToHex);return d.default.sign.apply(d.default,o([e],i(n),!1))},verify:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r.map(p.default.stringToHex);return d.default.verify.apply(d.default,o([e,t],i(a),!1))},verifyBlock:function(e,t){var r=6..toString().padStart(64,"0");return d.default.verify(e,t.signature,r,f.default.nanoAddressToHexString(t.account),t.previous,f.default.nanoAddressToHexString(t.representative),p.default.dec2hex(t.balance,16).toUpperCase(),t.link)},validateAddress:function(e){return f.default.validateNanoAddress(e)},validateMnemonic:function(e){return c.default.validateMnemonic(e)},addressToaddress:function(e){return f.default.addressToaddress(e)},addressToAddress:function(e){return f.default.deriveAddress(e)},blake2b:function(e){return Array.isArray(e)?p.default.ab2hex(d.default.generateHash(e.map(p.default.stringToHex))):p.default.ab2hex(d.default.generateHash([p.default.stringToHex(e)]))}};t.tools=y;var m={encrypt:function(e,t,r){return u.default.encrypt(e,t,r)},decrypt:function(e,t,r){return u.default.decrypt(e,t,r)}};t.box=m},6435:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(9185)),a=i(r(7874)),s=function(){function e(){}return e.generateWallet=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var r=a.default.createWallet(e,t),i=o.default.fromSeed(r.seed,0,0);return n(n({},i),{mnemonic:r.mnemonic})},e.generateLegacyWallet=function(e){var t=a.default.createLegacyWallet(e);return o.default.fromLegacySeed(t.seed,0,0,t.mnemonic)},e}();t.default=s},9185:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4486)),o=n(r(7874)),a=n(r(4450)),s=n(r(2604)),c=n(r(7243)),l=n(r(9489)),u=function(){function e(){}var t;return t=e,e.fromMnemonic=function(e,r){if(void 0===r&&(r=""),!o.default.validateMnemonic(e))throw new Error("Invalid mnemonic phrase");var n=o.default.mnemonicToSeed(e,r);return{mnemonic:e,seed:n,accounts:t.accounts(n,0,0)}},e.fromLegacyMnemonic=function(e){if(!o.default.validateMnemonic(e))throw new Error("Invalid mnemonic phrase");var r=o.default.mnemonicToLegacySeed(e);return t.fromLegacySeed(r,0,0,e)},e.validateMnemonic=function(e){return o.default.validateMnemonic(e)},e.fromSeed=function(e,r,n){if(void 0===r&&(r=0),void 0===n&&(n=0),128!==e.length)throw new Error("Invalid seed length, must be a 128 byte hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Seed is not a valid hexadecimal string");return{mnemonic:void 0,seed:e,accounts:t.accounts(e,r,n)}},e.fromLegacySeed=function(e,r,n,i){if(void 0===r&&(r=0),void 0===n&&(n=0),64!==e.length)throw new Error("Invalid seed length, must be a 64 byte hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Seed is not a valid hexadecimal string");var a=t.legacyAccounts(e,r,n);return{mnemonic:i||o.default.deriveMnemonic(e),seed:e,accounts:a}},e.accounts=function(e,t,r){for(var n=[],o=t;o<=r;o++){var c=i.default.derivePath("44'/165'/".concat(o,"'"),e).key,l=(new a.default).generateKeys(c),u=s.default.deriveAddress(l.address);n.push({accountIndex:o,private:l.private,address:l.address,address:u})}return n},e.legacyAccounts=function(e,t,r){for(var n=[],i=t;i<=r;i++){var o=l.default.ab2hex(c.default.generateHash([e,l.default.dec2hex(i,4)])),u=(new a.default).generateKeys(o),f=s.default.deriveAddress(u.address);n.push({accountIndex:i,private:u.private,address:u.address,address:f})}return n},e}();t.default=u},4486:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1354),o=n(r(9489)),a=function(){function e(){}var t;return t=e,e.derivePath=function(e,r){var n=t.getKeyFromSeed(r),i=n.key,o=n.chainCode;return e.split("/").map((function(e){return e.replace("'","")})).map((function(e){return parseInt(e,10)})).reduce((function(e,r){return t.CKDPriv(e,r+2147483648)}),{key:i,chainCode:o})},e.getKeyFromSeed=function(e){return t.derive(i.enc.Hex.parse(e),i.enc.Utf8.parse("ed25519 seed"))},e.CKDPriv=function(e,r){var n=e.key,a=e.chainCode,s=[];s.push(r>>24&255),s.push(r>>16&255),s.push(r>>8&255),s.push(255&r);var c="00"+n+o.default.ab2hex(new Uint8Array(s).buffer);return t.derive(i.enc.Hex.parse(c),i.enc.Hex.parse(a))},e.derive=function(e,t){var r=i.algo.HMAC.create(i.algo.SHA512,t).update(e).finalize().toString();return{key:r.slice(0,r.length/2),chainCode:r.slice(r.length/2)}},e}();t.default=a},7874:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1354),o=n(r(9489)),a=n(r(3188)),s=n(r(4151)),c=function(){function e(){}var t;return t=e,e.createWallet=function(e,r){if(e){if(64!==e.length)throw new Error("Invalid entropy length, must be a 32 bit hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Entopy is not a valid hexadecimal string")}e||(e=t.randomHex(32));var n=t.deriveMnemonic(e);return{mnemonic:n,seed:t.mnemonicToSeed(n,r)}},e.createLegacyWallet=function(e){if(e){if(64!==e.length)throw new Error("Invalid entropy length, must be a 32 bit hexadecimal string");if(!/^[0-9a-fA-F]+$/i.test(e))throw new Error("Entopy is not a valid hexadecimal string")}return e||(e=t.randomHex(32)),{mnemonic:t.deriveMnemonic(e),seed:e}},e.deriveMnemonic=function(e){for(var r=o.default.hexStringToBinary(e)+o.default.hexStringToBinary(t.calculateChecksum(e)),n=[],i=0;i<r.length;i+=11)n.push(s.default[parseInt(r.substr(i,11),2)]);return n.join(" ")},e.validateMnemonic=function(e){var r=a.default.normalizeUTF8(e).split(" ");if(r.length%3!=0)return!1;var n=r.map((function(e){var t=s.default.indexOf(e);return-1!==t&&o.default.dec2bin(t).padStart(11,"0")})).join(""),i=32*Math.floor(n.length/33),c=n.slice(0,i),l=n.slice(i),u=c.match(/(.{1,8})/g).map((function(e){return parseInt(e,2)}));if(u.length<16)return!1;if(u.length>32)return!1;if(u.length%4!=0)return!1;var f=o.default.bytesToHexString(u),h=t.calculateChecksum(f),d=o.default.binaryToHexString(l);return parseInt(h,16)==parseInt(d,16)},e.mnemonicToLegacySeed=function(e){var t=a.default.normalizeUTF8(e).split(" ").map((function(e){var t=s.default.indexOf(e);return-1!==t&&o.default.dec2bin(t).padStart(11,"0")})).join(""),r=32*Math.floor(t.length/33),n=t.slice(0,r).match(/(.{1,8})/g).map((function(e){return parseInt(e,2)}));return o.default.bytesToHexString(n)},e.mnemonicToSeed=function(e,t){var r=a.default.normalizeUTF8(e),n="mnemonic"+a.default.normalizeUTF8(t);return(0,i.PBKDF2)(r,n,{keySize:16,iterations:2048,hasher:i.algo.SHA512}).toString(i.enc.Hex)},e.randomHex=function(e){return i.lib.WordArray.random(e).toString()},e.calculateChecksum=function(e){var t=(0,i.SHA256)(i.enc.Hex.parse(e)).toString();return t.substr(0,t.length/32)},e}();t.default=c},4333:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4431)),o=n(r(2604)),a=n(r(9646)),s=n(r(7243)),c=n(r(9489)),l=function(){function e(){}var t;return t=e,e.preamble=6..toString().padStart(64,"0"),e.receive=function(e,r){var n=function(e){return!!e&&!isNaN(+e)};if(!n(e.walletBalanceRaw))throw new Error("Invalid format in wallet balance");if(!n(e.amountRaw))throw new Error("Invalid format in send amount");if(!o.default.validateNanoAddress(e.toAddress))throw new Error("Invalid toAddress");if(!o.default.validateNanoAddress(e.representativeAddress))throw new Error("Invalid representativeAddress");if(!e.transactionHash)throw new Error("No transaction hash");if(!e.frontier)throw new Error("No frontier");if(!r)throw new Error("Please input the private key to sign the block");var l=a.default.convert(e.walletBalanceRaw,"RAW","NANO"),u=a.default.convert(e.amountRaw,"RAW","NANO"),f=new i.default(l).plus(new i.default(u)),h=a.default.convert(f,"NANO","RAW"),d=c.default.dec2hex(h,16).toUpperCase(),p=o.default.nanoAddressToHexString(e.toAddress),g=e.transactionHash,v=o.default.nanoAddressToHexString(e.representativeAddress),y=s.default.sign(r,t.preamble,p,e.frontier,v,d,g);return{type:"state",account:e.toAddress,previous:e.frontier,representative:e.representativeAddress,balance:h,link:g,signature:y,work:e.work||""}},e.send=function(e,r){var n=function(e){return!!e&&!isNaN(+e)};if(!n(e.walletBalanceRaw))throw new Error("Invalid format in wallet balance");if(!n(e.amountRaw))throw new Error("Invalid format in send amount");if(!o.default.validateNanoAddress(e.toAddress))throw new Error("Invalid toAddress");if(!o.default.validateNanoAddress(e.fromAddress))throw new Error("Invalid fromAddress");if(!o.default.validateNanoAddress(e.representativeAddress))throw new Error("Invalid representativeAddress");if(!e.frontier)throw new Error("Frontier is not set");if(!r)throw new Error("Please input the private key to sign the block");var l=a.default.convert(e.walletBalanceRaw,"RAW","NANO"),u=a.default.convert(e.amountRaw,"RAW","NANO"),f=new i.default(l).minus(new i.default(u)),h=a.default.convert(f,"NANO","RAW"),d=c.default.dec2hex(h,16).toUpperCase(),p=o.default.nanoAddressToHexString(e.fromAddress),g=o.default.nanoAddressToHexString(e.toAddress),v=o.default.nanoAddressToHexString(e.representativeAddress),y=s.default.sign(r,t.preamble,p,e.frontier,v,d,g);return{type:"state",account:e.fromAddress,previous:e.frontier,representative:e.representativeAddress,balance:h,link:g,signature:y,work:e.work||""}},e}();t.default=l},2768:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(r(1294)),c=r(1354),l=a(r(4450)),u=a(r(2604)),f=a(r(9489)),h=a(r(5067)),d=function(){function e(){}return e.encrypt=function(e,t,r){if(!e)throw new Error("No message to encrypt");var n=u.default.addressToaddress(t),i=(new l.default).convertKeys({private:r,address:n}),o=i.private,a=i.address,d=f.default.hex2ab(c.lib.WordArray.random(this.NONCE_LENGTH).toString()),p=(new h.default).box(f.default.decodeUTF8(e),d,f.default.hex2ab(a),f.default.hex2ab(o)),g=new Uint8Array(d.length+p.length);return g.set(d),g.set(p,d.length),s.bytesToBase64(g)},e.decrypt=function(e,t,r){if(!e)throw new Error("No message to decrypt");var n=u.default.addressToaddress(t),i=(new l.default).convertKeys({private:r,address:n}),o=i.private,a=i.address,c=s.base64ToBytes(e),d=c.slice(0,this.NONCE_LENGTH),p=c.slice(this.NONCE_LENGTH,e.length),g=(new h.default).boxOpen(p,d,f.default.hex2ab(a),f.default.hex2ab(o));if(!g)throw new Error("Could not decrypt message");return f.default.encodeUTF8(g)},e.NONCE_LENGTH=24,e}();t.default=d},4450:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(9489)),a=n(r(5067)),s=n(r(3188)),c=function(){function e(){this.curve=new a.default,this.X=this.curve.gf([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),this.Y=this.curve.gf([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),this.L=new Uint8Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16])}return e.prototype.pack=function(e,t){var r=this.curve,n=r.gf(),i=r.gf(),o=r.gf();r.inv25519(o,t[2]),r.M(n,t[0],o),r.M(i,t[1],o),r.pack25519(e,i),e[31]^=r.par25519(n)<<7},e.prototype.modL=function(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*this.L[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*this.L[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*this.L[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>>8,e[n]=255&t[n]},e.prototype.reduce=function(e){for(var t=new Uint32Array(64),r=0;r<64;r++)t[r]=e[r];this.modL(e,t)},e.prototype.scalarmult=function(e,t,r){var n=this.curve;n.set25519(e[0],n.gf0),n.set25519(e[1],n.gf1),n.set25519(e[2],n.gf1),n.set25519(e[3],n.gf0);for(var i=255;i>=0;--i){var o=r[i/8|0]>>>(7&i)&1;n.cswap(e,t,o),n.add(t,e),n.add(e,e),n.cswap(e,t,o)}},e.prototype.scalarbase=function(e,t){var r=this.curve,n=[r.gf(),r.gf(),r.gf(),r.gf()];r.set25519(n[0],this.X),r.set25519(n[1],this.Y),r.set25519(n[2],r.gf1),r.M(n[3],this.X,this.Y),this.scalarmult(e,n,t)},e.prototype.generateKeys=function(e){var t=new Uint8Array(32),r=[this.curve.gf(),this.curve.gf(),this.curve.gf(),this.curve.gf()],n=(0,i.blake2b)(o.default.hex2ab(e),void 0,64).slice(0,32);return n[0]&=248,n[31]&=127,n[31]|=64,this.scalarbase(r,n),this.pack(t,r),{private:e,address:o.default.ab2hex(t)}},e.prototype.convertKeys=function(e){var t=o.default.ab2hex(this.curve.convertEd25519addressToCurve25519(o.default.hex2ab(e.address)));return t?{address:t,private:o.default.ab2hex(this.curve.convertEd25519SecretKeyToCurve25519(o.default.hex2ab(e.private)))}:null},e.prototype.sign=function(e,t){for(var r=this.naclSign(e,t),n=new Uint8Array(64),i=0;i<n.length;i++)n[i]=r[i];return n},e.prototype.verify=function(e,t,r){var n=this.curve,o=[n.gf(),n.gf(),n.gf(),n.gf()],a=[n.gf(),n.gf(),n.gf(),n.gf()];if(64!==r.length)return!1;if(32!==t.length)return!1;if(n.unpackNeg(a,t))return!1;var c=(0,i.blake2bInit)(64,void 0);(0,i.blake2bUpdate)(c,r.subarray(0,32)),(0,i.blake2bUpdate)(c,t),(0,i.blake2bUpdate)(c,e);var l=(0,i.blake2bFinal)(c);this.reduce(l),this.scalarmult(o,a,l);var u=new Uint8Array(32);return this.scalarbase(a,r.subarray(32)),n.add(o,a),this.pack(u,o),s.default.compare(r.subarray(0,32),u)},e.prototype.naclSign=function(e,t){if(32!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return this.cryptoSign(r,e,e.length,t),r},e.prototype.cryptoSign=function(e,t,r,n){var i,a,s=this.curve,c=new Uint8Array(64),l=new Uint8Array(64),u=new Uint8Array(64),f=new Float64Array(64),h=[s.gf(),s.gf(),s.gf(),s.gf()],d=o.default.hex2ab(this.generateKeys(o.default.ab2hex(n)).address);this.curve.cryptoHash(c,n,32),c[0]&=248,c[31]&=127,c[31]|=64;var p=r+64;for(i=0;i<r;i++)e[64+i]=t[i];for(i=0;i<32;i++)e[32+i]=c[32+i];for(this.curve.cryptoHash(u,e.subarray(32),r+32),this.reduce(u),this.scalarbase(h,u),this.pack(e,h),i=32;i<64;i++)e[i]=d[i-32];for(this.curve.cryptoHash(l,e,r+64),this.reduce(l),i=0;i<64;i++)f[i]=0;for(i=0;i<32;i++)f[i]=u[i];for(i=0;i<32;i++)for(a=0;a<32;a++)f[i+a]+=l[i]*c[a];return this.modL(e.subarray(32),f),p},e}();t.default=c},2604:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(9489)),a=function(){function e(){}var t;return e.stripAddress=function(e){return e.slice(e.indexOf("_")+1,-8)},e.readChar=function(e){var t=this.alphabet.indexOf(e);if(-1===t)throw new Error("Invalid character found: ".concat(e));return t},t=e,e.alphabet="13456789abcdefghijkmnopqrstuwxyz",e.prefix="nano_",e.deriveAddress=function(e){var r=o.default.hex2ab(e),n=(0,i.blake2b)(r,void 0,5).reverse(),a=t.encodeNanoBase32(r),s=t.encodeNanoBase32(n);return t.prefix+a+s},e.encodeNanoBase32=function(e){for(var r=e.length,n=8*r%5,i=0===n?0:5-n,o=0,a="",s=0,c=0;c<r;c++)for(o=o<<8|e[c],s+=8;s>=5;)a+=t.alphabet[o>>>s+i-5&31],s-=5;return s>0&&(a+=t.alphabet[o<<5-(s+i)&31]),a},e.addressToaddress=function(t){var r=t.replace("nano_","").replace("xrb_",""),n=e.decodeNanoBase32(r);return o.default.ab2hex(n).slice(0,64)},e.decodeNanoBase32=function(e){for(var r=e.length,n=5*r%8,i=0===n?0:8-n,o=0,a=0,s=0,c=new Uint8Array(Math.ceil(5*r/8)),l=0;l<r;l++)a=a<<5|t.readChar(e[l]),(o+=5)>=8&&(c[s++]=a>>>o+i-8&255,o-=8);return o>0&&(c[s++]=a<<o+i-8&255),0!==n&&(c=c.slice(1)),c},e.validateNanoAddress=function(e){if(void 0===e)throw Error("Address must be defined.");if("string"!=typeof e)throw TypeError("Address must be a string.");if(!new RegExp("^(".concat(["nano","xrb"].join("|"),")_[13]{1}[13456789abcdefghijkmnopqrstuwxyz]{59}$")).test(e))return!1;var r=e.slice(-8),n=t.stripAddress(e),o=t.decodeNanoBase32(n),a=(0,i.blake2b)(o,null,5).reverse();return r===t.encodeNanoBase32(a)},e.nanoAddressToHexString=function(e){if(e=e.slice(-60),/^[13456789abcdefghijkmnopqrstuwxyz]+$/.test(e)){var r=t.decodeNanoBase32(e.substring(0,52)),n=t.decodeNanoBase32(e.substring(52,60)),a=(0,i.blake2b)(r,void 0,5).reverse();if(o.default.ab2hex(n)==o.default.ab2hex(a))return o.default.ab2hex(r).toUpperCase();throw new Error("Checksum mismatch in address")}throw new Error("Illegal characters in address")},e}();t.default=a},9646:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(4431)),o=function(){function e(){}return e.convert=function(e,t,r){var n=new i.default(e.toString());switch(t){case"RAW":n=n;break;case"NANO":case"MRAI":n=n.shiftedBy(30);break;case"KRAI":n=n.shiftedBy(27);break;case"RAI":n=n.shiftedBy(24);break;default:throw new Error("Unkown input unit ".concat(t,", expected one of the following: RAW, NANO, MRAI, KRAI, RAI"))}switch(r){case"RAW":return n.toFixed(0);case"NANO":case"MRAI":return n.shiftedBy(-30).toFixed(30,1);case"KRAI":return n.shiftedBy(-27).toFixed(27,1);case"RAI":return n.shiftedBy(-24).toFixed(24,1);default:throw new Error("Unknown output unit ".concat(r,", expected one of the following: RAW, NANO, MRAI, KRAI, RAI"))}},e}();t.default=o},7243:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(4450)),a=n(r(9489)),s=function(){function e(){}var t;return t=e,e.sign=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=(new o.default).sign(t.generateHash(r),a.default.hex2ab(e));return a.default.ab2hex(i)},e.verify=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(new o.default).verify(t.generateHash(n),a.default.hex2ab(e),a.default.hex2ab(r))},e.generateHash=function(e){var t=(0,i.blake2bInit)(32,void 0);return e.forEach((function(e){return(0,i.blake2bUpdate)(t,a.default.hex2ab(e))})),(0,i.blake2bFinal)(t)},e}();t.default=s},9489:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.str2bin=function(e){e=e.replace(/\r\n/g,"\n");for(var t=new Uint8Array(3*e.length),r=0,n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:o<2048?(t[r++]=o>>>6|192,t[r++]=63&o|128):(t[r++]=o>>>12|224,t[r++]=o>>>6&63|128,t[r++]=63&o|128)}return t.subarray(0,r)},e.encodeUTF8=function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return decodeURIComponent(escape(t.join("")))},e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");for(var t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},e.ab2hex=function(e){return Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("")},e.hex2ab=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return new Uint8Array(t)},e.dec2hex=function(e,t){for(var r,n,i=e.toString().split(""),o=[],a=[];i.length;)for(n=1*+i.shift(),r=0;n||r<o.length;r++)n+=10*(o[r]||0),o[r]=n%16,n=(n-o[r])/16;for(;o.length;)a.push(o.pop().toString(16));var s=a.join("");if(s.length%2!=0&&(s="0"+s),t>s.length/2)for(var c=t-s.length/2,l=0;l<c;l++)s="00"+s;return s},e.dec2bin=function(e){return(e>>>0).toString(2)},e.bytesToHexString=function(e){return n([],r(e),!1).map((function(e){return e.toString(16).padStart(2,"0")})).join("")},e.hexStringToBinary=function(t){return n([],r(t),!1).map((function(t){return e.dec2bin(parseInt(t,16)).padStart(4,"0")})).join("")},e.binaryToHexString=function(e){return parseInt(e,2).toString(16)},e.stringToHex=function(e){return n([],r(e),!1).map((function(e){return e.charCodeAt(0).toString(16)})).join("")},e}();t.default=i},5067:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1191),o=n(r(3188)),a=function(){function e(){this.gf0=this.gf(),this.gf1=this.gf([1]),this._9=new Uint8Array(32),this._9[0]=9,this._121665=this.gf([56129,1]),this.D=this.gf([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),this.D2=this.gf([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),this.I=this.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),this._0=new Uint8Array(16),this.sigma=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),this.minusp=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252])}return e.prototype.gf=function(e){var t=new Int32Array(16);if(e)for(var r=0;r<e.length;r++)t[r]=e[r];return t},e.prototype.A=function(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]},e.prototype.Z=function(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]},e.prototype.M=function(e,t,r){var n,i,o=0,a=0,s=0,c=0,l=0,u=0,f=0,h=0,d=0,p=0,g=0,v=0,y=0,m=0,b=0,w=0,_=0,k=0,x=0,A=0,S=0,B=0,M=0,E=0,H=0,U=0,O=0,z=0,C=0,N=0,R=0,I=r[0],D=r[1],P=r[2],T=r[3],j=r[4],F=r[5],K=r[6],L=r[7],W=r[8],q=r[9],X=r[10],G=r[11],Z=r[12],$=r[13],V=r[14],Y=r[15];o+=(n=t[0])*I,a+=n*D,s+=n*P,c+=n*T,l+=n*j,u+=n*F,f+=n*K,h+=n*L,d+=n*W,p+=n*q,g+=n*X,v+=n*G,y+=n*Z,m+=n*$,b+=n*V,w+=n*Y,a+=(n=t[1])*I,s+=n*D,c+=n*P,l+=n*T,u+=n*j,f+=n*F,h+=n*K,d+=n*L,p+=n*W,g+=n*q,v+=n*X,y+=n*G,m+=n*Z,b+=n*$,w+=n*V,_+=n*Y,s+=(n=t[2])*I,c+=n*D,l+=n*P,u+=n*T,f+=n*j,h+=n*F,d+=n*K,p+=n*L,g+=n*W,v+=n*q,y+=n*X,m+=n*G,b+=n*Z,w+=n*$,_+=n*V,k+=n*Y,c+=(n=t[3])*I,l+=n*D,u+=n*P,f+=n*T,h+=n*j,d+=n*F,p+=n*K,g+=n*L,v+=n*W,y+=n*q,m+=n*X,b+=n*G,w+=n*Z,_+=n*$,k+=n*V,x+=n*Y,l+=(n=t[4])*I,u+=n*D,f+=n*P,h+=n*T,d+=n*j,p+=n*F,g+=n*K,v+=n*L,y+=n*W,m+=n*q,b+=n*X,w+=n*G,_+=n*Z,k+=n*$,x+=n*V,A+=n*Y,u+=(n=t[5])*I,f+=n*D,h+=n*P,d+=n*T,p+=n*j,g+=n*F,v+=n*K,y+=n*L,m+=n*W,b+=n*q,w+=n*X,_+=n*G,k+=n*Z,x+=n*$,A+=n*V,S+=n*Y,f+=(n=t[6])*I,h+=n*D,d+=n*P,p+=n*T,g+=n*j,v+=n*F,y+=n*K,m+=n*L,b+=n*W,w+=n*q,_+=n*X,k+=n*G,x+=n*Z,A+=n*$,S+=n*V,B+=n*Y,h+=(n=t[7])*I,d+=n*D,p+=n*P,g+=n*T,v+=n*j,y+=n*F,m+=n*K,b+=n*L,w+=n*W,_+=n*q,k+=n*X,x+=n*G,A+=n*Z,S+=n*$,B+=n*V,M+=n*Y,d+=(n=t[8])*I,p+=n*D,g+=n*P,v+=n*T,y+=n*j,m+=n*F,b+=n*K,w+=n*L,_+=n*W,k+=n*q,x+=n*X,A+=n*G,S+=n*Z,B+=n*$,M+=n*V,E+=n*Y,p+=(n=t[9])*I,g+=n*D,v+=n*P,y+=n*T,m+=n*j,b+=n*F,w+=n*K,_+=n*L,k+=n*W,x+=n*q,A+=n*X,S+=n*G,B+=n*Z,M+=n*$,E+=n*V,H+=n*Y,g+=(n=t[10])*I,v+=n*D,y+=n*P,m+=n*T,b+=n*j,w+=n*F,_+=n*K,k+=n*L,x+=n*W,A+=n*q,S+=n*X,B+=n*G,M+=n*Z,E+=n*$,H+=n*V,U+=n*Y,v+=(n=t[11])*I,y+=n*D,m+=n*P,b+=n*T,w+=n*j,_+=n*F,k+=n*K,x+=n*L,A+=n*W,S+=n*q,B+=n*X,M+=n*G,E+=n*Z,H+=n*$,U+=n*V,O+=n*Y,y+=(n=t[12])*I,m+=n*D,b+=n*P,w+=n*T,_+=n*j,k+=n*F,x+=n*K,A+=n*L,S+=n*W,B+=n*q,M+=n*X,E+=n*G,H+=n*Z,U+=n*$,O+=n*V,z+=n*Y,m+=(n=t[13])*I,b+=n*D,w+=n*P,_+=n*T,k+=n*j,x+=n*F,A+=n*K,S+=n*L,B+=n*W,M+=n*q,E+=n*X,H+=n*G,U+=n*Z,O+=n*$,z+=n*V,C+=n*Y,b+=(n=t[14])*I,w+=n*D,_+=n*P,k+=n*T,x+=n*j,A+=n*F,S+=n*K,B+=n*L,M+=n*W,E+=n*q,H+=n*X,U+=n*G,O+=n*Z,z+=n*$,C+=n*V,N+=n*Y,w+=(n=t[15])*I,a+=38*(k+=n*P),s+=38*(x+=n*T),c+=38*(A+=n*j),l+=38*(S+=n*F),u+=38*(B+=n*K),f+=38*(M+=n*L),h+=38*(E+=n*W),d+=38*(H+=n*q),p+=38*(U+=n*X),g+=38*(O+=n*G),v+=38*(z+=n*Z),y+=38*(C+=n*$),m+=38*(N+=n*V),b+=38*(R+=n*Y),o=(n=(o+=38*(_+=n*D))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=g,e[11]=v,e[12]=y,e[13]=m,e[14]=b,e[15]=w},e.prototype.coreSalsa20=function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,k=a,x=s,A=c,S=l,B=u,M=f,E=h,H=d,U=p,O=g,z=v,C=y,N=m,R=b,I=w,D=0;D<20;D+=2)_^=(i=(C^=(i=(H^=(i=(S^=(i=_+C|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+H|0)<<18|i>>>14,B^=(i=(k^=(i=(N^=(i=(U^=(i=B+k|0)<<7|i>>>25)+B|0)<<9|i>>>23)+U|0)<<13|i>>>19)+N|0)<<18|i>>>14,O^=(i=(M^=(i=(x^=(i=(R^=(i=O+M|0)<<7|i>>>25)+O|0)<<9|i>>>23)+R|0)<<13|i>>>19)+x|0)<<18|i>>>14,I^=(i=(z^=(i=(E^=(i=(A^=(i=I+z|0)<<7|i>>>25)+I|0)<<9|i>>>23)+A|0)<<13|i>>>19)+E|0)<<18|i>>>14,_^=(i=(A^=(i=(x^=(i=(k^=(i=_+A|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+x|0)<<18|i>>>14,B^=(i=(S^=(i=(E^=(i=(M^=(i=B+S|0)<<7|i>>>25)+B|0)<<9|i>>>23)+M|0)<<13|i>>>19)+E|0)<<18|i>>>14,O^=(i=(U^=(i=(H^=(i=(z^=(i=O+U|0)<<7|i>>>25)+O|0)<<9|i>>>23)+z|0)<<13|i>>>19)+H|0)<<18|i>>>14,I^=(i=(R^=(i=(N^=(i=(C^=(i=I+R|0)<<7|i>>>25)+I|0)<<9|i>>>23)+C|0)<<13|i>>>19)+N|0)<<18|i>>>14;_=_+o|0,k=k+a|0,x=x+s|0,A=A+c|0,S=S+l|0,B=B+u|0,M=M+f|0,E=E+h|0,H=H+d|0,U=U+p|0,O=O+g|0,z=z+v|0,C=C+y|0,N=N+m|0,R=R+b|0,I=I+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=k>>>0&255,e[5]=k>>>8&255,e[6]=k>>>16&255,e[7]=k>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=B>>>0&255,e[21]=B>>>8&255,e[22]=B>>>16&255,e[23]=B>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=E>>>0&255,e[29]=E>>>8&255,e[30]=E>>>16&255,e[31]=E>>>24&255,e[32]=H>>>0&255,e[33]=H>>>8&255,e[34]=H>>>16&255,e[35]=H>>>24&255,e[36]=U>>>0&255,e[37]=U>>>8&255,e[38]=U>>>16&255,e[39]=U>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=z>>>0&255,e[45]=z>>>8&255,e[46]=z>>>16&255,e[47]=z>>>24&255,e[48]=C>>>0&255,e[49]=C>>>8&255,e[50]=C>>>16&255,e[51]=C>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=R>>>0&255,e[57]=R>>>8&255,e[58]=R>>>16&255,e[59]=R>>>24&255,e[60]=I>>>0&255,e[61]=I>>>8&255,e[62]=I>>>16&255,e[63]=I>>>24&255},e.prototype.coreHsalsa20=function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(y^=(i=(d^=(i=(l^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,u^=(i=(a^=(i=(m^=(i=(p^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+p|0)<<13|i>>>19)+m|0)<<18|i>>>14,g^=(i=(f^=(i=(s^=(i=(b^=(i=g+f|0)<<7|i>>>25)+g|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(h^=(i=(c^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(l^=(i=(h^=(i=(f^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,g^=(i=(p^=(i=(d^=(i=(v^=(i=g+p|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(b^=(i=(m^=(i=(y^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+m|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=d>>>0&255,e[25]=d>>>8&255,e[26]=d>>>16&255,e[27]=d>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255},e.prototype.S=function(e,t){this.M(e,t,t)},e.prototype.add=function(e,t){var r=this.gf(),n=this.gf(),i=this.gf(),o=this.gf(),a=this.gf(),s=this.gf(),c=this.gf(),l=this.gf(),u=this.gf();this.Z(r,e[1],e[0]),this.Z(u,t[1],t[0]),this.M(r,r,u),this.A(n,e[0],e[1]),this.A(u,t[0],t[1]),this.M(n,n,u),this.M(i,e[3],t[3]),this.M(i,i,this.D2),this.M(o,e[2],t[2]),this.A(o,o,o),this.Z(a,n,r),this.Z(s,o,i),this.A(c,o,i),this.A(l,n,r),this.M(e[0],a,s),this.M(e[1],l,c),this.M(e[2],c,s),this.M(e[3],a,l)},e.prototype.set25519=function(e,t){for(var r=0;r<16;r++)e[r]=t[r]},e.prototype.car25519=function(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)},e.prototype.sel25519=function(e,t,r){var n,i,o=~(r-1);for(n=0;n<16;n++)i=o&(e[n]^t[n]),e[n]^=i,t[n]^=i},e.prototype.inv25519=function(e,t){var r,n=this.gf();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)this.S(n,n),2!==r&&4!==r&&this.M(n,n,t);for(r=0;r<16;r++)e[r]=n[r]},e.prototype.neq25519=function(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return this.pack25519(r,e),this.pack25519(n,t),!o.default.compare(r,n)},e.prototype.par25519=function(e){var t=new Uint8Array(32);return this.pack25519(t,e),1&t[0]},e.prototype.pow2523=function(e,t){var r,n=this.gf();for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)this.S(n,n),1!==r&&this.M(n,n,t);for(r=0;r<16;r++)e[r]=n[r]},e.prototype.cswap=function(e,t,r){for(var n=0;n<4;n++)this.sel25519(e[n],t[n],r)},e.prototype.pack25519=function(e,t){var r,n=this.gf(),i=this.gf();for(r=0;r<16;r++)i[r]=t[r];this.car25519(i),this.car25519(i),this.car25519(i);for(var o=0;o<2;o++){for(n[0]=i[0]-65517,r=1;r<15;r++)n[r]=i[r]-65535-(n[r-1]>>>16&1),n[r-1]&=65535;n[15]=i[15]-32767-(n[14]>>>16&1);var a=n[15]>>>16&1;n[14]&=65535,this.sel25519(i,n,1-a)}for(r=0;r<16;r++)e[2*r]=255&i[r],e[2*r+1]=i[r]>>>8},e.prototype.unpack25519=function(e,t){for(var r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767},e.prototype.unpackNeg=function(e,t){var r=this.gf(),n=this.gf(),i=this.gf(),o=this.gf(),a=this.gf(),s=this.gf(),c=this.gf();return this.set25519(e[2],this.gf1),this.unpack25519(e[1],t),this.S(i,e[1]),this.M(o,i,this.D),this.Z(i,i,e[2]),this.A(o,e[2],o),this.S(a,o),this.S(s,a),this.M(c,s,a),this.M(r,c,i),this.M(r,r,o),this.pow2523(r,r),this.M(r,r,i),this.M(r,r,o),this.M(r,r,o),this.M(e[0],r,o),this.S(n,e[0]),this.M(n,n,o),this.neq25519(n,i)&&this.M(e[0],e[0],this.I),this.S(n,e[0]),this.M(n,n,o),this.neq25519(n,i)?-1:(this.par25519(e[0])===t[31]>>>7&&this.Z(e[0],this.gf0,e[0]),this.M(e[3],e[0],e[1]),0)},e.prototype.vn=function(e,t,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^r[n+o];return(1&a-1>>>8)-1},e.prototype.cryptoScalarmult=function(e,t,r){var n,i,o=new Int32Array(80),a=this.gf(),s=this.gf(),c=this.gf(),l=this.gf(),u=this.gf(),f=this.gf();for(this.unpack25519(o,r),i=0;i<16;i++)s[i]=o[i],l[i]=a[i]=c[i]=0;for(a[0]=l[0]=1,i=254;i>=0;--i)n=t[i>>>3]>>>(7&i)&1,this.sel25519(a,s,n),this.sel25519(c,l,n),this.A(u,a,c),this.Z(a,a,c),this.A(c,s,l),this.Z(s,s,l),this.S(l,u),this.S(f,a),this.M(a,c,a),this.M(c,s,u),this.A(u,a,c),this.Z(a,a,c),this.S(s,a),this.Z(c,l,f),this.M(a,c,this._121665),this.A(a,a,l),this.M(c,c,a),this.M(a,l,f),this.M(l,s,o),this.S(s,u),this.sel25519(a,s,n),this.sel25519(c,l,n);for(i=0;i<16;i++)o[i+16]=a[i],o[i+32]=c[i],o[i+48]=s[i],o[i+64]=l[i];var h=o.subarray(32),d=o.subarray(16);this.inv25519(h,h),this.M(d,d,h),this.pack25519(e,d)},e.prototype.cryptoStreamSalsa20Xor=function(e,t,r,n,i,o,a){var s,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(this.coreSalsa20(u,l,a,this.sigma),c=0;c<64;c++)e[t+c]=r[n+c]^u[c];for(s=1,c=8;c<16;c++)s=s+(255&l[c])|0,l[c]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(this.coreSalsa20(u,l,a,this.sigma),c=0;c<i;c++)e[t+c]=r[n+c]^u[c];return 0},e.prototype.cryptoStreamSalsa20=function(e,t,r,n,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(this.coreSalsa20(c,s,i,this.sigma),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(this.coreSalsa20(c,s,i,this.sigma),a=0;a<r;a++)e[t+a]=c[a];return 0},e.prototype.add1305=function(e,t){var r,n=0;for(r=0;r<17;r++)n=n+(e[r]+t[r]|0)|0,e[r]=255&n,n>>>=8},e.prototype.cryptoOnetimeauth=function(e,t,r,n,i,o){var a,s,c,l,u=new Uint32Array(17),f=new Uint32Array(17),h=new Uint32Array(17),d=new Uint32Array(17),p=new Uint32Array(17);for(c=0;c<17;c++)f[c]=h[c]=0;for(c=0;c<16;c++)f[c]=o[c];for(f[3]&=15,f[4]&=252,f[7]&=15,f[8]&=252,f[11]&=15,f[12]&=252,f[15]&=15;i>0;){for(c=0;c<17;c++)d[c]=0;for(c=0;c<16&&c<i;++c)d[c]=r[n+c];for(d[c]=1,n+=c,i-=c,this.add1305(h,d),s=0;s<17;s++)for(u[s]=0,c=0;c<17;c++)u[s]=0|u[s]+h[c]*(c<=s?f[s-c]:320*f[s+17-c]|0);for(s=0;s<17;s++)h[s]=u[s];for(l=0,c=0;c<16;c++)l=l+h[c]|0,h[c]=255&l,l>>>=8;for(l=l+h[16]|0,h[16]=3&l,l=5*(l>>>2)|0,c=0;c<16;c++)l=l+h[c]|0,h[c]=255&l,l>>>=8;l=l+h[16]|0,h[16]=l}for(c=0;c<17;c++)p[c]=h[c];for(this.add1305(h,this.minusp),a=0|-(h[16]>>>7),c=0;c<17;c++)h[c]^=a&(p[c]^h[c]);for(c=0;c<16;c++)d[c]=o[c+16];for(d[16]=0,this.add1305(h,d),c=0;c<16;c++)e[t+c]=h[c];return 0},e.prototype.cryptoOnetimeauthVerify=function(e,t,r,n,i,o){var a=new Uint8Array(16);return this.cryptoOnetimeauth(a,0,r,n,i,o),this.cryptoVerify16(e,t,a,0)},e.prototype.cryptoVerify16=function(e,t,r,n){return this.vn(e,t,r,n,16)},e.prototype.cryptoBoxBeforenm=function(e,t,r){var n=new Uint8Array(32);return this.cryptoScalarmult(n,r,t),this.coreHsalsa20(e,this._0,n,this.sigma)},e.prototype.cryptoSecretbox=function(e,t,r,n,i){var o;if(r<32)return-1;for(this.cryptoStreamXor(e,0,t,0,r,n,i),this.cryptoOnetimeauth(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0},e.prototype.cryptoSecretboxOpen=function(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(this.cryptoStream(a,0,32,n,i),0!==this.cryptoOnetimeauthVerify(t,16,t,32,r-32,a))return-1;for(this.cryptoStreamXor(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0},e.prototype.cryptoStream=function(e,t,r,n,i){var o=new Uint8Array(32);this.coreHsalsa20(o,n,i,this.sigma);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return this.cryptoStreamSalsa20(e,t,r,a,o)},e.prototype.cryptoStreamXor=function(e,t,r,n,i,o,a){var s=new Uint8Array(32);this.coreHsalsa20(s,o,a,this.sigma);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return this.cryptoStreamSalsa20Xor(e,t,r,n,i,c,s)},e.prototype.checkLengths=function(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")},e.prototype.checkBoxLengths=function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")},e.prototype.checkArrayTypes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if(!(e[r]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")},e.prototype.secretbox=function(e,t,r){this.checkArrayTypes(e,t,r),this.checkLengths(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return this.cryptoSecretbox(i,n,n.length,t,r),i.subarray(16)},e.prototype.secretboxOpen=function(e,t,r){this.checkArrayTypes(e,t,r),this.checkLengths(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+16]=e[o];return n.length<32||0!==this.cryptoSecretboxOpen(i,n,n.length,t,r)?null:i.subarray(32)},e.prototype.box=function(e,t,r,n){var i=this.boxBefore(r,n);return this.secretbox(e,t,i)},e.prototype.boxOpen=function(e,t,r,n){var i=this.boxBefore(r,n);return this.secretboxOpen(e,t,i)},e.prototype.boxBefore=function(e,t){this.checkArrayTypes(e,t),this.checkBoxLengths(e,t);var r=new Uint8Array(32);return this.cryptoBoxBeforenm(r,e,t),r},e.prototype.scalarMult=function(e,t){var r=new Uint8Array(32);return this.cryptoScalarmult(r,e,t),r},e.prototype.generateKeys=function(e){var t=e.slice(),r=new Uint8Array(32);if(32!==t.length)throw new Error("Invalid secret key size, expected 32 bytes");return t[0]&=248,t[31]&=127,t[31]|=64,this.cryptoScalarmult(r,t,this._9),{sk:t,pk:r}},e.prototype.convertEd25519addressToCurve25519=function(e){var t=new Uint8Array(32),r=[this.gf(),this.gf(),this.gf(),this.gf()],n=this.gf(),i=this.gf();if(this.unpackNeg(r,e))return null;var o=r[1];return this.A(n,this.gf1,o),this.Z(i,this.gf1,o),this.inv25519(i,i),this.M(n,n,i),this.pack25519(t,n),t},e.prototype.convertEd25519SecretKeyToCurve25519=function(e){var t,r=new Uint8Array(64),n=new Uint8Array(32);for(this.cryptoHash(r,e,32),r[0]&=248,r[31]&=127,r[31]|=64,t=0;t<32;t++)n[t]=r[t];for(t=0;t<64;t++)r[t]=0;return n},e.prototype.cryptoHash=function(e,t,r){for(var n=new Uint8Array(r),o=0;o<r;++o)n[o]=t[o];var a=(0,i.blake2b)(n);for(o=0;o<64;++o)e[o]=a[o];return 0},e}();t.default=a},3188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.compare=function(e,t){if(e.length!==t.length)return!1;var r,n=0,i=e.length;for(r=0;r<i;r++)n|=e[r]^t[r];return 0===n},e.normalizeUTF8=function(e){return e?e.normalize("NFKD"):""},e}();t.default=r},4151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]}},t={},r=function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(8492);_NanocurrencyWeb=r})();
// Browser
if (typeof window !== 'undefined') {
// Crypto.js
// https://github.com/brix/crypto-js
!function(t,r){"object"==typeof exports?module.exports=exports=r():"function"==typeof define&&define.amd?define([],r):t.CryptoJS=r()}(this,function(){var t=t||function(t,r){var e=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),i={},n=i.lib={},o=n.Base=function(){return{extend:function(t){var r=e(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=n.WordArray=o.extend({init:function(t,e){t=this.words=t||[],e!=r?this.sigBytes=e:this.sigBytes=4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var r=this.words,e=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=e[o>>>2]>>>24-o%4*8&255;r[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var o=0;o<n;o+=4)r[i+o>>>2]=e[o>>>2];return this.sigBytes+=n,this},clamp:function(){var r=this.words,e=this.sigBytes;r[e>>>2]&=4294967295<<32-e%4*8,r.length=t.ceil(e/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(r){for(var e,i=[],n=function(r){var r=r,e=987654321,i=4294967295;return function(){e=36969*(65535&e)+(e>>16)&i,r=18e3*(65535&r)+(r>>16)&i;var n=(e<<16)+r&i;return n/=4294967296,n+=.5,n*(t.random()>.5?1:-1)}},o=0;o<r;o+=4){var a=n(4294967296*(e||t.random()));e=987654071*a(),i.push(4294967296*a()|0)}return new s.init(i,r)}}),a=i.enc={},c=a.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n++){var o=r[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new s.init(e,r/2)}},h=a.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n++){var o=r[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new s.init(e,r)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},f=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(r){var e=this._data,i=e.words,n=e.sigBytes,o=this.blockSize,a=4*o,c=n/a;c=r?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var h=c*o,l=t.min(4*h,n);if(h){for(var f=0;f<h;f+=o)this._doProcessBlock(i,f);var u=i.splice(0,h);e.sigBytes-=l}return new s.init(u,l)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),u=(n.Hasher=f.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var r=this._doFinalize();return r},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new u.HMAC.init(t,e).finalize(r)}}}),i.algo={});return i}(Math);return function(){function r(t,r,e){for(var i=[],o=0,s=0;s<r;s++)if(s%4){var a=e[t.charCodeAt(s-1)]<<s%4*2,c=e[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|c)<<24-o%4*8,o++}return n.create(i,o)}var e=t,i=e.lib,n=i.WordArray,o=e.enc;o.Base64={stringify:function(t){var r=t.words,e=t.sigBytes,i=this._map;t.clamp();for(var n=[],o=0;o<e;o+=3)for(var s=r[o>>>2]>>>24-o%4*8&255,a=r[o+1>>>2]>>>24-(o+1)%4*8&255,c=r[o+2>>>2]>>>24-(o+2)%4*8&255,h=s<<16|a<<8|c,l=0;l<4&&o+.75*l<e;l++)n.push(i.charAt(h>>>6*(3-l)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(t){var e=t.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<i.length;o++)n[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var a=t.indexOf(s);a!==-1&&(e=a)}return r(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(r){function e(t,r,e,i,n,o,s){var a=t+(r&e|~r&i)+n+s;return(a<<o|a>>>32-o)+r}function i(t,r,e,i,n,o,s){var a=t+(r&i|e&~i)+n+s;return(a<<o|a>>>32-o)+r}function n(t,r,e,i,n,o,s){var a=t+(r^e^i)+n+s;return(a<<o|a>>>32-o)+r}function o(t,r,e,i,n,o,s){var a=t+(e^(r|~i))+n+s;return(a<<o|a>>>32-o)+r}var s=t,a=s.lib,c=a.WordArray,h=a.Hasher,l=s.algo,f=[];!function(){for(var t=0;t<64;t++)f[t]=4294967296*r.abs(r.sin(t+1))|0}();var u=l.MD5=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;s<16;s++){var a=r+s,c=t[a];t[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var h=this._hash.words,l=t[r+0],u=t[r+1],d=t[r+2],v=t[r+3],p=t[r+4],_=t[r+5],y=t[r+6],g=t[r+7],B=t[r+8],w=t[r+9],k=t[r+10],S=t[r+11],m=t[r+12],x=t[r+13],b=t[r+14],H=t[r+15],z=h[0],A=h[1],C=h[2],D=h[3];z=e(z,A,C,D,l,7,f[0]),D=e(D,z,A,C,u,12,f[1]),C=e(C,D,z,A,d,17,f[2]),A=e(A,C,D,z,v,22,f[3]),z=e(z,A,C,D,p,7,f[4]),D=e(D,z,A,C,_,12,f[5]),C=e(C,D,z,A,y,17,f[6]),A=e(A,C,D,z,g,22,f[7]),z=e(z,A,C,D,B,7,f[8]),D=e(D,z,A,C,w,12,f[9]),C=e(C,D,z,A,k,17,f[10]),A=e(A,C,D,z,S,22,f[11]),z=e(z,A,C,D,m,7,f[12]),D=e(D,z,A,C,x,12,f[13]),C=e(C,D,z,A,b,17,f[14]),A=e(A,C,D,z,H,22,f[15]),z=i(z,A,C,D,u,5,f[16]),D=i(D,z,A,C,y,9,f[17]),C=i(C,D,z,A,S,14,f[18]),A=i(A,C,D,z,l,20,f[19]),z=i(z,A,C,D,_,5,f[20]),D=i(D,z,A,C,k,9,f[21]),C=i(C,D,z,A,H,14,f[22]),A=i(A,C,D,z,p,20,f[23]),z=i(z,A,C,D,w,5,f[24]),D=i(D,z,A,C,b,9,f[25]),C=i(C,D,z,A,v,14,f[26]),A=i(A,C,D,z,B,20,f[27]),z=i(z,A,C,D,x,5,f[28]),D=i(D,z,A,C,d,9,f[29]),C=i(C,D,z,A,g,14,f[30]),A=i(A,C,D,z,m,20,f[31]),z=n(z,A,C,D,_,4,f[32]),D=n(D,z,A,C,B,11,f[33]),C=n(C,D,z,A,S,16,f[34]),A=n(A,C,D,z,b,23,f[35]),z=n(z,A,C,D,u,4,f[36]),D=n(D,z,A,C,p,11,f[37]),C=n(C,D,z,A,g,16,f[38]),A=n(A,C,D,z,k,23,f[39]),z=n(z,A,C,D,x,4,f[40]),D=n(D,z,A,C,l,11,f[41]),C=n(C,D,z,A,v,16,f[42]),A=n(A,C,D,z,y,23,f[43]),z=n(z,A,C,D,w,4,f[44]),D=n(D,z,A,C,m,11,f[45]),C=n(C,D,z,A,H,16,f[46]),A=n(A,C,D,z,d,23,f[47]),z=o(z,A,C,D,l,6,f[48]),D=o(D,z,A,C,g,10,f[49]),C=o(C,D,z,A,b,15,f[50]),A=o(A,C,D,z,_,21,f[51]),z=o(z,A,C,D,m,6,f[52]),D=o(D,z,A,C,v,10,f[53]),C=o(C,D,z,A,k,15,f[54]),A=o(A,C,D,z,u,21,f[55]),z=o(z,A,C,D,B,6,f[56]),D=o(D,z,A,C,H,10,f[57]),C=o(C,D,z,A,y,15,f[58]),A=o(A,C,D,z,x,21,f[59]),z=o(z,A,C,D,p,6,f[60]),D=o(D,z,A,C,S,10,f[61]),C=o(C,D,z,A,d,15,f[62]),A=o(A,C,D,z,w,21,f[63]),h[0]=h[0]+z|0,h[1]=h[1]+A|0,h[2]=h[2]+C|0,h[3]=h[3]+D|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32;var o=r.floor(i/4294967296),s=i;e[(n+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[(n+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(e.length+1),this._process();for(var a=this._hash,c=a.words,h=0;h<4;h++){var l=c[h];c[h]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var t=h.clone.call(this);return t._hash=this._hash.clone(),t}});s.MD5=h._createHelper(u),s.HmacMD5=h._createHmacHelper(u)}(Math),function(){var r=t,e=r.lib,i=e.WordArray,n=e.Hasher,o=r.algo,s=[],a=o.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],a=e[3],c=e[4],h=0;h<80;h++){if(h<16)s[h]=0|t[r+h];else{var l=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=l<<1|l>>>31}var f=(i<<5|i>>>27)+c+s[h];f+=h<20?(n&o|~n&a)+1518500249:h<40?(n^o^a)+1859775393:h<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,c=a,a=o,o=n<<30|n>>>2,n=i,i=f}e[0]=e[0]+i|0,e[1]=e[1]+n|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+c|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=Math.floor(e/4294967296),r[(i+64>>>9<<4)+15]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA1=n._createHelper(a),r.HmacSHA1=n._createHmacHelper(a)}(),function(r){var e=t,i=e.lib,n=i.WordArray,o=i.Hasher,s=e.algo,a=[],c=[];!function(){function t(t){for(var e=r.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(a[n]=e(r.pow(i,.5))),c[n]=e(r.pow(i,1/3)),n++),i++}();var h=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],s=e[3],a=e[4],l=e[5],f=e[6],u=e[7],d=0;d<64;d++){if(d<16)h[d]=0|t[r+d];else{var v=h[d-15],p=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,_=h[d-2],y=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;h[d]=p+h[d-7]+y+h[d-16]}var g=a&l^~a&f,B=i&n^i&o^n&o,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),S=u+k+g+c[d]+h[d],m=w+B;u=f,f=l,l=a,a=s+S|0,s=o,o=n,n=i,i=S+m|0}e[0]=e[0]+i|0,e[1]=e[1]+n|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+l|0,e[6]=e[6]+f|0,e[7]=e[7]+u|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=r.floor(i/4294967296),e[(n+64>>>9<<4)+15]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),function(){function r(t){return t<<8&4278255360|t>>>8&16711935}var e=t,i=e.lib,n=i.WordArray,o=e.enc;o.Utf16=o.Utf16BE={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n+=2){var o=r[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i++)e[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return n.create(e,2*r)}};o.Utf16LE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o<i;o+=2){var s=r(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(t){for(var e=t.length,i=[],o=0;o<e;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return n.create(i,2*e)}}}(),function(){if("function"==typeof ArrayBuffer){var r=t,e=r.lib,i=e.WordArray,n=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,e=[],i=0;i<r;i++)e[i>>>2]|=t[i]<<24-i%4*8;n.call(this,e,r)}else n.apply(this,arguments)};o.prototype=i}}(),function(r){function e(t,r,e){return t^r^e}function i(t,r,e){return t&r|~t&e}function n(t,r,e){return(t|~r)^e}function o(t,r,e){return t&e|r&~e}function s(t,r,e){return t^(r|~e)}function a(t,r){return t<<r|t>>>32-r}var c=t,h=c.lib,l=h.WordArray,f=h.Hasher,u=c.algo,d=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),v=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=l.create([0,1518500249,1859775393,2400959708,2840853838]),g=l.create([1352829926,1548603684,1836072691,2053994217,0]),B=u.RIPEMD160=f.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var c=0;c<16;c++){var h=r+c,l=t[h];t[h]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var f,u,B,w,k,S,m,x,b,H,z=this._hash.words,A=y.words,C=g.words,D=d.words,R=v.words,E=p.words,M=_.words;S=f=z[0],m=u=z[1],x=B=z[2],b=w=z[3],H=k=z[4];for(var F,c=0;c<80;c+=1)F=f+t[r+D[c]]|0,F+=c<16?e(u,B,w)+A[0]:c<32?i(u,B,w)+A[1]:c<48?n(u,B,w)+A[2]:c<64?o(u,B,w)+A[3]:s(u,B,w)+A[4],F|=0,F=a(F,E[c]),F=F+k|0,f=k,k=w,w=a(B,10),B=u,u=F,F=S+t[r+R[c]]|0,F+=c<16?s(m,x,b)+C[0]:c<32?o(m,x,b)+C[1]:c<48?n(m,x,b)+C[2]:c<64?i(m,x,b)+C[3]:e(m,x,b)+C[4],F|=0,F=a(F,M[c]),F=F+H|0,S=H,H=b,b=a(x,10),x=m,m=F;F=z[1]+B+b|0,z[1]=z[2]+w+H|0,z[2]=z[3]+k+S|0,z[3]=z[4]+f+m|0,z[4]=z[0]+u+x|0,z[0]=F},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(r.length+1),this._process();for(var n=this._hash,o=n.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return n},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t}});c.RIPEMD160=f._createHelper(B),c.HmacRIPEMD160=f._createHmacHelper(B)}(Math),function(){var r=t,e=r.lib,i=e.Base,n=r.enc,o=n.Utf8,s=r.algo;s.HMAC=i.extend({init:function(t,r){t=this._hasher=new t.init,"string"==typeof r&&(r=o.parse(r));var e=t.blockSize,i=4*e;r.sigBytes>i&&(r=t.finalize(r)),r.clamp();for(var n=this._oKey=r.clone(),s=this._iKey=r.clone(),a=n.words,c=s.words,h=0;h<e;h++)a[h]^=1549556828,c[h]^=909522486;n.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var r=this._hasher,e=r.finalize(t);r.reset();var i=r.finalize(this._oKey.clone().concat(e));return i}})}(),function(){var r=t,e=r.lib,i=e.Base,n=e.WordArray,o=r.algo,s=o.SHA1,a=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,i=a.create(e.hasher,t),o=n.create(),s=n.create([1]),c=o.words,h=s.words,l=e.keySize,f=e.iterations;c.length<l;){var u=i.update(r).finalize(s);i.reset();for(var d=u.words,v=d.length,p=u,_=1;_<f;_++){p=i.finalize(p),i.reset();for(var y=p.words,g=0;g<v;g++)d[g]^=y[g]}o.concat(u),h[0]++}return o.sigBytes=4*l,o}});r.PBKDF2=function(t,r,e){return c.create(e).compute(t,r)}}(),function(){var r=t,e=r.lib,i=e.Base,n=e.WordArray,o=r.algo,s=o.MD5,a=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,i=e.hasher.create(),o=n.create(),s=o.words,a=e.keySize,c=e.iterations;s.length<a;){h&&i.update(h);var h=i.update(t).finalize(r);i.reset();for(var l=1;l<c;l++)h=i.finalize(h),i.reset();o.concat(h)}return o.sigBytes=4*a,o}});r.EvpKDF=function(t,r,e){return a.create(e).compute(t,r)}}(),function(){var r=t,e=r.lib,i=e.WordArray,n=r.algo,o=n.SHA256,s=n.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});r.SHA224=o._createHelper(s),r.HmacSHA224=o._createHmacHelper(s)}(),function(r){var e=t,i=e.lib,n=i.Base,o=i.WordArray,s=e.x64={};s.Word=n.extend({init:function(t,r){this.high=t,this.low=r}}),s.WordArray=n.extend({init:function(t,e){t=this.words=t||[],e!=r?this.sigBytes=e:this.sigBytes=8*t.length},toX32:function(){for(var t=this.words,r=t.length,e=[],i=0;i<r;i++){var n=t[i];e.push(n.high),e.push(n.low)}return o.create(e,this.sigBytes)},clone:function(){for(var t=n.clone.call(this),r=t.words=this.words.slice(0),e=r.length,i=0;i<e;i++)r[i]=r[i].clone();return t}})}(),function(r){var e=t,i=e.lib,n=i.WordArray,o=i.Hasher,s=e.x64,a=s.Word,c=e.algo,h=[],l=[],f=[];!function(){for(var t=1,r=0,e=0;e<24;e++){h[t+5*r]=(e+1)*(e+2)/2%64;var i=r%5,n=(2*t+3*r)%5;t=i,r=n}for(var t=0;t<5;t++)for(var r=0;r<5;r++)l[t+5*r]=r+(2*t+3*r)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,u=0,d=0;d<7;d++){if(1&o){var v=(1<<d)-1;v<32?u^=1<<v:c^=1<<v-32}128&o?o=o<<1^113:o<<=1}f[s]=a.create(c,u)}}();var u=[];!function(){for(var t=0;t<25;t++)u[t]=a.create()}();var d=c.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],r=0;r<25;r++)t[r]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,r){for(var e=this._state,i=this.blockSize/2,n=0;n<i;n++){var o=t[r+2*n],s=t[r+2*n+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var a=e[n];a.high^=s,a.low^=o}for(var c=0;c<24;c++){for(var d=0;d<5;d++){for(var v=0,p=0,_=0;_<5;_++){var a=e[d+5*_];v^=a.high,p^=a.low}var y=u[d];y.high=v,y.low=p}for(var d=0;d<5;d++)for(var g=u[(d+4)%5],B=u[(d+1)%5],w=B.high,k=B.low,v=g.high^(w<<1|k>>>31),p=g.low^(k<<1|w>>>31),_=0;_<5;_++){var a=e[d+5*_];a.high^=v,a.low^=p}for(var S=1;S<25;S++){var a=e[S],m=a.high,x=a.low,b=h[S];if(b<32)var v=m<<b|x>>>32-b,p=x<<b|m>>>32-b;else var v=x<<b-32|m>>>64-b,p=m<<b-32|x>>>64-b;var H=u[l[S]];H.high=v,H.low=p}var z=u[0],A=e[0];z.high=A.high,z.low=A.low;for(var d=0;d<5;d++)for(var _=0;_<5;_++){var S=d+5*_,a=e[S],C=u[S],D=u[(d+1)%5+5*_],R=u[(d+2)%5+5*_];a.high=C.high^~D.high&R.high,a.low=C.low^~D.low&R.low}var a=e[0],E=f[c];a.high^=E.high,a.low^=E.low}},_doFinalize:function(){var t=this._data,e=t.words,i=(8*this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;e[i>>>5]|=1<<24-i%32,e[(r.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,h=[],l=0;l<c;l++){var f=s[l],u=f.high,d=f.low;u=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h.push(d),h.push(u)}return new n.init(h,a)},clone:function(){for(var t=o.clone.call(this),r=t._state=this._state.slice(0),e=0;e<25;e++)r[e]=r[e].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),function(){function r(){return s.create.apply(s,arguments)}var e=t,i=e.lib,n=i.Hasher,o=e.x64,s=o.Word,a=o.WordArray,c=e.algo,h=[r(1116352408,3609767458),r(1899447441,602891725),r(3049323471,3964484399),r(3921009573,2173295548),r(961987163,4081628472),r(1508970993,3053834265),r(2453635748,2937671579),r(2870763221,3664609560),r(3624381080,2734883394),r(310598401,1164996542),r(607225278,1323610764),r(1426881987,3590304994),r(1925078388,4068182383),r(2162078206,991336113),r(2614888103,633803317),r(3248222580,3479774868),r(3835390401,2666613458),r(4022224774,944711139),r(264347078,2341262773),r(604807628,2007800933),r(770255983,1495990901),r(1249150122,1856431235),r(1555081692,3175218132),r(1996064986,2198950837),r(2554220882,3999719339),r(2821834349,766784016),r(2952996808,2566594879),r(3210313671,3203337956),r(3336571891,1034457026),r(3584528711,2466948901),r(113926993,3758326383),r(338241895,168717936),r(666307205,1188179964),r(773529912,1546045734),r(1294757372,1522805485),r(1396182291,2643833823),r(1695183700,2343527390),r(1986661051,1014477480),r(2177026350,1206759142),r(2456956037,344077627),r(2730485921,1290863460),r(2820302411,3158454273),r(3259730800,3505952657),r(3345764771,106217008),r(3516065817,3606008344),r(3600352804,1432725776),r(4094571909,1467031594),r(275423344,851169720),r(430227734,3100823752),r(506948616,1363258195),r(659060556,3750685593),r(883997877,3785050280),r(958139571,3318307427),r(1322822218,3812723403),r(1537002063,2003034995),r(1747873779,3602036899),r(1955562222,1575990012),r(2024104815,1125592928),r(2227730452,2716904306),r(2361852424,442776044),r(2428436474,593698344),r(2756734187,3733110249),r(3204031479,2999351573),r(3329325298,3815920427),r(3391569614,3928383900),r(3515267271,566280711),r(3940187606,3454069534),r(4118630271,4000239992),r(116418474,1914138554),r(174292421,2731055270),r(289380356,3203993006),r(460393269,320620315),r(685471733,587496836),r(852142971,1086792851),r(1017036298,365543100),r(1126000580,2618297676),r(1288033470,3409855158),r(1501505948,4234509866),r(1607167915,987167468),r(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=r()}();var f=c.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],s=e[3],a=e[4],c=e[5],f=e[6],u=e[7],d=i.high,v=i.low,p=n.high,_=n.low,y=o.high,g=o.low,B=s.high,w=s.low,k=a.high,S=a.low,m=c.high,x=c.low,b=f.high,H=f.low,z=u.high,A=u.low,C=d,D=v,R=p,E=_,M=y,F=g,P=B,W=w,O=k,U=S,I=m,K=x,X=b,L=H,j=z,N=A,T=0;T<80;T++){var Z=l[T];if(T<16)var q=Z.high=0|t[r+2*T],G=Z.low=0|t[r+2*T+1];else{var J=l[T-15],$=J.high,Q=J.low,V=($>>>1|Q<<31)^($>>>8|Q<<24)^$>>>7,Y=(Q>>>1|$<<31)^(Q>>>8|$<<24)^(Q>>>7|$<<25),tt=l[T-2],rt=tt.high,et=tt.low,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^rt>>>6,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^(et>>>6|rt<<26),ot=l[T-7],st=ot.high,at=ot.low,ct=l[T-16],ht=ct.high,lt=ct.low,G=Y+at,q=V+st+(G>>>0<Y>>>0?1:0),G=G+nt,q=q+it+(G>>>0<nt>>>0?1:0),G=G+lt,q=q+ht+(G>>>0<lt>>>0?1:0);Z.high=q,Z.low=G}var ft=O&I^~O&X,ut=U&K^~U&L,dt=C&R^C&M^R&M,vt=D&E^D&F^E&F,pt=(C>>>28|D<<4)^(C<<30|D>>>2)^(C<<25|D>>>7),_t=(D>>>28|C<<4)^(D<<30|C>>>2)^(D<<25|C>>>7),yt=(O>>>14|U<<18)^(O>>>18|U<<14)^(O<<23|U>>>9),gt=(U>>>14|O<<18)^(U>>>18|O<<14)^(U<<23|O>>>9),Bt=h[T],wt=Bt.high,kt=Bt.low,St=N+gt,mt=j+yt+(St>>>0<N>>>0?1:0),St=St+ut,mt=mt+ft+(St>>>0<ut>>>0?1:0),St=St+kt,mt=mt+wt+(St>>>0<kt>>>0?1:0),St=St+G,mt=mt+q+(St>>>0<G>>>0?1:0),xt=_t+vt,bt=pt+dt+(xt>>>0<_t>>>0?1:0);j=X,N=L,X=I,L=K,I=O,K=U,U=W+St|0,O=P+mt+(U>>>0<W>>>0?1:0)|0,P=M,W=F,M=R,F=E,R=C,E=D,D=St+xt|0,C=mt+bt+(D>>>0<St>>>0?1:0)|0}v=i.low=v+D,i.high=d+C+(v>>>0<D>>>0?1:0),_=n.low=_+E,n.high=p+R+(_>>>0<E>>>0?1:0),g=o.low=g+F,o.high=y+M+(g>>>0<F>>>0?1:0),w=s.low=w+W,s.high=B+P+(w>>>0<W>>>0?1:0),S=a.low=S+U,a.high=k+O+(S>>>0<U>>>0?1:0),x=c.low=x+K,c.high=m+I+(x>>>0<K>>>0?1:0),H=f.low=H+L,f.high=b+X+(H>>>0<L>>>0?1:0),A=u.low=A+N,u.high=z+j+(A>>>0<N>>>0?1:0)},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32,r[(i+128>>>10<<5)+30]=Math.floor(e/4294967296),r[(i+128>>>10<<5)+31]=e,t.sigBytes=4*r.length,this._process();var n=this._hash.toX32();return n},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),function(){var r=t,e=r.x64,i=e.Word,n=e.WordArray,o=r.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});r.SHA384=s._createHelper(a),r.HmacSHA384=s._createHmacHelper(a)}(),t.lib.Cipher||function(r){var e=t,i=e.lib,n=i.Base,o=i.WordArray,s=i.BufferedBlockAlgorithm,a=e.enc,c=(a.Utf8,a.Base64),h=e.algo,l=h.EvpKDF,f=i.Cipher=s.extend({cfg:n.extend(),createEncryptor:function(t,r){return this.create(this._ENC_XFORM_MODE,t,r)},createDecryptor:function(t,r){return this.create(this._DEC_XFORM_MODE,t,r)},init:function(t,r,e){this.cfg=this.cfg.extend(e),this._xformMode=t,this._key=r,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var r=this._doFinalize();return r},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?m:w}return function(r){return{encrypt:function(e,i,n){return t(i).encrypt(r,e,i,n)},decrypt:function(e,i,n){return t(i).decrypt(r,e,i,n)}}}}()}),u=(i.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),e.mode={}),d=i.BlockCipherMode=n.extend({createEncryptor:function(t,r){return this.Encryptor.create(t,r)},createDecryptor:function(t,r){return this.Decryptor.create(t,r)},init:function(t,r){this._cipher=t,this._iv=r}}),v=u.CBC=function(){function t(t,e,i){var n=this._iv;if(n){var o=n;this._iv=r}else var o=this._prevBlock;for(var s=0;s<i;s++)t[e+s]^=o[s]}var e=d.extend();return e.Encryptor=e.extend({processBlock:function(r,e){var i=this._cipher,n=i.blockSize;t.call(this,r,e,n),i.encryptBlock(r,e),this._prevBlock=r.slice(e,e+n)}}),e.Decryptor=e.extend({processBlock:function(r,e){var i=this._cipher,n=i.blockSize,o=r.slice(e,e+n);i.decryptBlock(r,e),t.call(this,r,e,n),this._prevBlock=o}}),e}(),p=e.pad={},_=p.Pkcs7={pad:function(t,r){for(var e=4*r,i=e-t.sigBytes%e,n=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(n);var c=o.create(s,i);t.concat(c)},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},y=(i.BlockCipher=f.extend({cfg:f.cfg.extend({mode:v,padding:_}),reset:function(){f.reset.call(this);var t=this.cfg,r=t.iv,e=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=e.createEncryptor;else{var i=e.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,r&&r.words):(this._mode=i.call(e,this,r&&r.words),this._mode.__creator=i)},_doProcessBlock:function(t,r){this._mode.processBlock(t,r)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var r=this._process(!0)}else{var r=this._process(!0);t.unpad(r)}return r},blockSize:4}),i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=e.format={},B=g.OpenSSL={stringify:function(t){var r=t.ciphertext,e=t.salt;if(e)var i=o.create([1398893684,1701076831]).concat(e).concat(r);else var i=r;return i.toString(c)},parse:function(t){var r=c.parse(t),e=r.words;if(1398893684==e[0]&&1701076831==e[1]){var i=o.create(e.slice(2,4));e.splice(0,4),r.sigBytes-=16}return y.create({ciphertext:r,salt:i})}},w=i.SerializableCipher=n.extend({cfg:n.extend({format:B}),encrypt:function(t,r,e,i){i=this.cfg.extend(i);var n=t.createEncryptor(e,i),o=n.finalize(r),s=n.cfg;return y.create({ciphertext:o,key:e,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,r,e,i){i=this.cfg.extend(i),r=this._parse(r,i.format);var n=t.createDecryptor(e,i).finalize(r.ciphertext);return n},_parse:function(t,r){return"string"==typeof t?r.parse(t,this):t}}),k=e.kdf={},S=k.OpenSSL={execute:function(t,r,e,i){i||(i=o.random(8));var n=l.create({keySize:r+e}).compute(t,i),s=o.create(n.words.slice(r),4*e);return n.sigBytes=4*r,y.create({key:n,iv:s,salt:i})}},m=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:S}),encrypt:function(t,r,e,i){i=this.cfg.extend(i);var n=i.kdf.execute(e,t.keySize,t.ivSize);i.iv=n.iv;var o=w.encrypt.call(this,t,r,n.key,i);return o.mixIn(n),o},decrypt:function(t,r,e,i){i=this.cfg.extend(i),r=this._parse(r,i.format);var n=i.kdf.execute(e,t.keySize,t.ivSize,r.salt);i.iv=n.iv;var o=w.decrypt.call(this,t,r,n.key,i);return o}})}(),t.mode.CFB=function(){function r(t,r,e,i){var n=this._iv;if(n){var o=n.slice(0);this._iv=void 0}else var o=this._prevBlock;i.encryptBlock(o,0);for(var s=0;s<e;s++)t[r+s]^=o[s]}var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize;r.call(this,t,e,n,i),this._prevBlock=t.slice(e,e+n)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=t.slice(e,e+n);r.call(this,t,e,n,i),this._prevBlock=o}}),e}(),t.mode.ECB=function(){var r=t.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(t,r){this._cipher.encryptBlock(t,r)}}),r.Decryptor=r.extend({processBlock:function(t,r){this._cipher.decryptBlock(t,r)}}),r}(),t.pad.AnsiX923={pad:function(t,r){var e=t.sigBytes,i=4*r,n=i-e%i,o=e+n-1;t.clamp(),t.words[o>>>2]|=n<<24-o%4*8,t.sigBytes+=n},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Iso10126={pad:function(r,e){var i=4*e,n=i-r.sigBytes%i;r.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1))},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},t.pad.Iso97971={pad:function(r,e){r.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(r,e)},unpad:function(r){t.pad.ZeroPadding.unpad(r),r.sigBytes--}},t.mode.OFB=function(){var r=t.lib.BlockCipherMode.extend(),e=r.Encryptor=r.extend({processBlock:function(t,r){var e=this._cipher,i=e.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)t[r+s]^=o[s]}});return r.Decryptor=e,r}(),t.pad.NoPadding={pad:function(){},unpad:function(){}},function(r){var e=t,i=e.lib,n=i.CipherParams,o=e.enc,s=o.Hex,a=e.format;a.Hex={stringify:function(t){return t.ciphertext.toString(s)},parse:function(t){var r=s.parse(t);return n.create({ciphertext:r})}}}(),function(){var r=t,e=r.lib,i=e.BlockCipher,n=r.algo,o=[],s=[],a=[],c=[],h=[],l=[],f=[],u=[],d=[],v=[];!function(){for(var t=[],r=0;r<256;r++)r<128?t[r]=r<<1:t[r]=r<<1^283;for(var e=0,i=0,r=0;r<256;r++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99,o[e]=n,s[n]=e;var p=t[e],_=t[p],y=t[_],g=257*t[n]^16843008*n;a[e]=g<<24|g>>>8,c[e]=g<<16|g>>>16,h[e]=g<<8|g>>>24,l[e]=g;var g=16843009*y^65537*_^257*p^16843008*e;f[n]=g<<24|g>>>8,u[n]=g<<16|g>>>16,d[n]=g<<8|g>>>24,v[n]=g,e?(e=p^t[t[t[y^p]]],i^=t[t[i]]):e=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],_=n.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4,i=this._nRounds=e+6,n=4*(i+1),s=this._keySchedule=[],a=0;a<n;a++)if(a<e)s[a]=r[a];else{var c=s[a-1];a%e?e>6&&a%e==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=c<<8|c>>>24,c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=p[a/e|0]<<24),s[a]=s[a-e]^c}for(var h=this._invKeySchedule=[],l=0;l<n;l++){var a=n-l;if(l%4)var c=s[a];else var c=s[a-4];l<4||a<=4?h[l]=c:h[l]=f[o[c>>>24]]^u[o[c>>>16&255]]^d[o[c>>>8&255]]^v[o[255&c]]}}},encryptBlock:function(t,r){this._doCryptBlock(t,r,this._keySchedule,a,c,h,l,o)},decryptBlock:function(t,r){var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e,this._doCryptBlock(t,r,this._invKeySchedule,f,u,d,v,s);var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e},_doCryptBlock:function(t,r,e,i,n,o,s,a){for(var c=this._nRounds,h=t[r]^e[0],l=t[r+1]^e[1],f=t[r+2]^e[2],u=t[r+3]^e[3],d=4,v=1;v<c;v++){var p=i[h>>>24]^n[l>>>16&255]^o[f>>>8&255]^s[255&u]^e[d++],_=i[l>>>24]^n[f>>>16&255]^o[u>>>8&255]^s[255&h]^e[d++],y=i[f>>>24]^n[u>>>16&255]^o[h>>>8&255]^s[255&l]^e[d++],g=i[u>>>24]^n[h>>>16&255]^o[l>>>8&255]^s[255&f]^e[d++];h=p,l=_,f=y,u=g}var p=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^e[d++],_=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^e[d++],y=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^e[d++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^e[d++];t[r]=p,t[r+1]=_,t[r+2]=y,t[r+3]=g},keySize:8});r.AES=i._createHelper(_)}(),function(){function r(t,r){var e=(this._lBlock>>>t^this._rBlock)&r;this._rBlock^=e,this._lBlock^=e<<t}function e(t,r){var e=(this._rBlock>>>t^this._lBlock)&r;this._lBlock^=e,this._rBlock^=e<<t;
}var i=t,n=i.lib,o=n.WordArray,s=n.BlockCipher,a=i.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=s.extend({_doReset:function(){for(var t=this._key,r=t.words,e=[],i=0;i<56;i++){var n=c[i]-1;e[i]=r[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){for(var a=o[s]=[],f=l[s],i=0;i<24;i++)a[i/6|0]|=e[(h[i]-1+f)%28]<<31-i%6,a[4+(i/6|0)]|=e[28+(h[i+24]-1+f)%28]<<31-i%6;a[0]=a[0]<<1|a[0]>>>31;for(var i=1;i<7;i++)a[i]=a[i]>>>4*(i-1)+3;a[7]=a[7]<<5|a[7]>>>27}for(var u=this._invSubKeys=[],i=0;i<16;i++)u[i]=o[15-i]},encryptBlock:function(t,r){this._doCryptBlock(t,r,this._subKeys)},decryptBlock:function(t,r){this._doCryptBlock(t,r,this._invSubKeys)},_doCryptBlock:function(t,i,n){this._lBlock=t[i],this._rBlock=t[i+1],r.call(this,4,252645135),r.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),r.call(this,1,1431655765);for(var o=0;o<16;o++){for(var s=n[o],a=this._lBlock,c=this._rBlock,h=0,l=0;l<8;l++)h|=f[l][((c^s[l])&u[l])>>>0];this._lBlock=c,this._rBlock=a^h}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,r.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),t[i]=this._lBlock,t[i+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});i.DES=s._createHelper(d);var v=a.TripleDES=s.extend({_doReset:function(){var t=this._key,r=t.words;this._des1=d.createEncryptor(o.create(r.slice(0,2))),this._des2=d.createEncryptor(o.create(r.slice(2,4))),this._des3=d.createEncryptor(o.create(r.slice(4,6)))},encryptBlock:function(t,r){this._des1.encryptBlock(t,r),this._des2.decryptBlock(t,r),this._des3.encryptBlock(t,r)},decryptBlock:function(t,r){this._des3.decryptBlock(t,r),this._des2.encryptBlock(t,r),this._des1.decryptBlock(t,r)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=s._createHelper(v)}(),function(){function r(){for(var t=this._S,r=this._i,e=this._j,i=0,n=0;n<4;n++){r=(r+1)%256,e=(e+t[r])%256;var o=t[r];t[r]=t[e],t[e]=o,i|=t[(t[r]+t[e])%256]<<24-8*n}return this._i=r,this._j=e,i}var e=t,i=e.lib,n=i.StreamCipher,o=e.algo,s=o.RC4=n.extend({_doReset:function(){for(var t=this._key,r=t.words,e=t.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;for(var n=0,o=0;n<256;n++){var s=n%e,a=r[s>>>2]>>>24-s%4*8&255;o=(o+i[n]+a)%256;var c=i[n];i[n]=i[o],i[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=r.call(this)},keySize:8,ivSize:0});e.RC4=n._createHelper(s);var a=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)r.call(this)}});e.RC4Drop=n._createHelper(a)}(),t.mode.CTRGladman=function(){function r(t){if(255===(t>>24&255)){var r=t>>16&255,e=t>>8&255,i=255&t;255===r?(r=0,255===e?(e=0,255===i?i=0:++i):++e):++r,t=0,t+=r<<16,t+=e<<8,t+=i}else t+=1<<24;return t}function e(t){return 0===(t[0]=r(t[0]))&&(t[1]=r(t[1])),t}var i=t.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),e(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<n;c++)t[r+c]^=a[c]}});return i.Decryptor=n,i}(),function(){function r(){for(var t=this._X,r=this._C,e=0;e<8;e++)a[e]=r[e];r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<a[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<a[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<a[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<a[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<a[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<a[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<a[6]>>>0?1:0)|0,this._b=r[7]>>>0<a[7]>>>0?1:0;for(var e=0;e<8;e++){var i=t[e]+r[e],n=65535&i,o=i>>>16,s=((n*n>>>17)+n*o>>>15)+o*o,h=((4294901760&i)*i|0)+((65535&i)*i|0);c[e]=s^h}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var e=t,i=e.lib,n=i.StreamCipher,o=e.algo,s=[],a=[],c=[],h=o.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)r.call(this);for(var i=0;i<8;i++)o[i]^=n[i+4&7];if(e){var s=e.words,a=s[0],c=s[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;o[0]^=h,o[1]^=f,o[2]^=l,o[3]^=u,o[4]^=h,o[5]^=f,o[6]^=l,o[7]^=u;for(var i=0;i<4;i++)r.call(this)}},_doProcessBlock:function(t,e){var i=this._X;r.call(this),s[0]=i[0]^i[5]>>>16^i[3]<<16,s[1]=i[2]^i[7]>>>16^i[5]<<16,s[2]=i[4]^i[1]>>>16^i[7]<<16,s[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)s[n]=16711935&(s[n]<<8|s[n]>>>24)|4278255360&(s[n]<<24|s[n]>>>8),t[e+n]^=s[n]},blockSize:4,ivSize:2});e.Rabbit=n._createHelper(h)}(),t.mode.CTR=function(){var r=t.lib.BlockCipherMode.extend(),e=r.Encryptor=r.extend({processBlock:function(t,r){var e=this._cipher,i=e.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[r+a]^=s[a]}});return r.Decryptor=e,r}(),function(){function r(){for(var t=this._X,r=this._C,e=0;e<8;e++)a[e]=r[e];r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<a[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<a[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<a[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<a[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<a[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<a[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<a[6]>>>0?1:0)|0,this._b=r[7]>>>0<a[7]>>>0?1:0;for(var e=0;e<8;e++){var i=t[e]+r[e],n=65535&i,o=i>>>16,s=((n*n>>>17)+n*o>>>15)+o*o,h=((4294901760&i)*i|0)+((65535&i)*i|0);c[e]=s^h}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var e=t,i=e.lib,n=i.StreamCipher,o=e.algo,s=[],a=[],c=[],h=o.RabbitLegacy=n.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)r.call(this);for(var o=0;o<8;o++)n[o]^=i[o+4&7];if(e){var s=e.words,a=s[0],c=s[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;n[0]^=h,n[1]^=f,n[2]^=l,n[3]^=u,n[4]^=h,n[5]^=f,n[6]^=l,n[7]^=u;for(var o=0;o<4;o++)r.call(this)}},_doProcessBlock:function(t,e){var i=this._X;r.call(this),s[0]=i[0]^i[5]>>>16^i[3]<<16,s[1]=i[2]^i[7]>>>16^i[5]<<16,s[2]=i[4]^i[1]>>>16^i[7]<<16,s[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)s[n]=16711935&(s[n]<<8|s[n]>>>24)|4278255360&(s[n]<<24|s[n]>>>8),t[e+n]^=s[n]},blockSize:4,ivSize:2});e.RabbitLegacy=n._createHelper(h)}(),t.pad.ZeroPadding={pad:function(t,r){var e=4*r;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){for(var r=t.words,e=t.sigBytes-1;!(r[e>>>2]>>>24-e%4*8&255);)e--;t.sigBytes=e+1}},t})
function encrypt(string, password) {
if (!string) return Error("No string provided.")
if (!password) return Error("No password provided.")
return 'AES-256::' + CryptoJS.AES.encrypt((typeof string === 'string' ? string : JSON.stringify(string)), password)
}
function decrypt(string, password) {
var decrypted = CryptoJS.AES.decrypt(string.replace('AES-256::', ''), password)
return JSON.parse( decrypted.toString(CryptoJS.enc.Utf8) )
}
}
if (typeof process === 'object') {
var aes256 = require('aes256');
function encrypt(string, password) {
if (!string) return Error("No string provided.")
if (!password) return Error("No password provided.")
return 'AES-256::' + aes256.encrypt(password, typeof string === 'string' ? string : JSON.stringify(string))
}
function decrypt(string, password) {
return JSON.parse(aes256.decrypt(password, string.replace('AES-256::', '')).toString('utf8'))
}
}
// @Nano/Wallet
// https://github.com/fwd/nano-js
let nano = {
aes256: '',
wallets: [],
rpc_key: '',
endpoint: 'https://rpc.nano.to',
// Convert
tools: _NanocurrencyWeb.tools,
convert: _NanocurrencyWeb.tools.convert,
block: _NanocurrencyWeb.block,
// needs automatic logic
default_rep: 'nano_1kd4h9nqaxengni43xy9775gcag8ptw8ddjifnm77qes1efuoqikoqy5sjq3',
known: 'https://nano.to/known.json',
encrypt,
decrypt,
accounts() {
return this.wallets
},
save() {
// Browser
if (typeof window !== 'undefined') {
localStorage.setItem(this.filename_cache ? this.filename_cache.split('.').join('-') : `nano-offline`, this.aes256)
}
// NodeJS
if (typeof process === 'object') {
const fs = require('fs')
fs.writeFileSync(this.filename_cache || `./NanoOffline.wallet`, this.aes256)
}
},
offline(config) {
var password = config.password || config.secret
if (!password) {
return Error( console.error("Offline:", "No password provided.") )
}
var string;
var filename = config.filename || config.filepath || config.path || config.database
// Browser
if (typeof window !== 'undefined') {
var string = localStorage.getItem(filename ? filename.split('.').join('-') : `nano-offline`)
if (!string) {
var account = this.generate()
string = encrypt(account, password)
localStorage.setItem(filename ? filename.split('.').join('-') : `nano-offline`, string)
this.wallets = account.accounts.map(a => {
return { index: a.accountIndex, address: a.address, metadata: a.metadata }
})
} else {
try {
this.wallets = decrypt(string, password).accounts.map(a => {
return { index: a.accountIndex, address: a.address, metadata: a.metadata || false }
})
} catch(e) {
var error = { error: "Invalid password" }
console.error(error)
throw new Error(error.error)
return
}
}
}
// NodeJS
if (typeof process === 'object') {
const fs = require('fs')
try {
string = fs.readFileSync(filename || `./NanoOffline.wallet`, 'utf8')
} catch (err) {
string = encrypt(this.generate(), password)
fs.writeFileSync(filename || `./NanoOffline.wallet`, string)
}
try {
this.wallets = decrypt(string, password).accounts.map(a => {
return { index: a.accountIndex, address: a.address, metadata: a.metadata || false }
})
} catch(e) {
var error = { error: "Invalid password" }
console.error(error)
throw new Error(error.error)
return
}
}
if (config.node || config.endpoint) this.endpoint = config.node || config.endpoint
if (config.rpc_key) this.rpc_key = config.rpc_key
this.filename_cache = filename
this.pw_cache = password
this.aes256 = string
return this.wallets
},
add_account(metadata) {
var existing = this.wallet()
if (!existing) return new Error("Account not found.")
var accounts = existing.accounts
if (this.findAccount(existing, metadata)) {
var error = { error: "Account with identical metadata already exists. Try using a unique id." }
new Error(error)
console.error(error)
return
}
var index = existing.accounts.length - 1
var new_wallet = _NanocurrencyWeb.wallet.accounts(existing.seed, index, index + 1), new_wallet = new_wallet[1]
if (metadata) new_wallet.metadata = metadata
existing.accounts.push(new_wallet)
this.aes256 = encrypt(JSON.stringify(existing), this.pw_cache)
this.save()
this.wallets = existing.accounts.map(a => {
return { index: a.accountIndex, address: a.address, metadata: a.metadata || false }
})
return this.wallets
},
import(string, password) {
if (string && string.accounts) {
var wallets = string
this.pw_cache = password
this.aes256 = encrypt(JSON.stringify(string), password)
} else {
if (typeof string !== 'string') return Error("Bad AES encrypted string.")
if (!password) return Error("Missing passphrase.")
this.aes256 = string
var wallets = this.decrypt(string, password)
}
this.wallets = wallets.accounts.map(a => {
return {
index: a.accountIndex,
address: a.address,
metadata: a.metadata
}
})
return this.wallets
},
balances(account) {
return new Promise((resolve, reject) => {
var wallet = this.wallet()
if (!wallet || !wallet.accounts) {
return new Error("Account not found.")
}
var accounts = wallet.accounts
if (this.findAccount(wallet, account)) accounts = [this.findAccount(wallet, account)]
this.rpc({
"action": "accounts_balances",
"array": "true",
"accounts": accounts.map(a => a.address)
}).then(async (res) => {
if (accounts.length === 1) {
var account = accounts[0]
var balance = res.balances[account.address]
balance.metadata = account.metadata || false
return resolve(balance)
}
resolve(res.balances)
})
})
},
pending(config) {
return new Promise((resolve, reject) => {
var wallet = this.wallet()
if (!wallet || !wallet.accounts) {
return new Error("Account not found.")
}
var accounts = wallet.accounts
if (this.findAccount(wallet, account)) accounts = [this.findAccount(wallet, account)]
this.rpc({
"action": "accounts_receivable",
"array": "true",
"accounts": accounts.map(a => a.address)
}).then(async (res) => {
resolve(res)
})
})
},
generate() {
var accounts = _NanocurrencyWeb.wallet.generate()
return accounts
},
findAccount(wallet, criteria) {
// Destructure accounts from the wallet
const { accounts } = wallet;
// Check if criteria is a number
if (typeof criteria === 'number') {
// Find account by accountIndex
return accounts.find(account => account.accountIndex === criteria) || false;
}
// Check if criteria is an object
if (typeof criteria === 'object' && criteria !== null) {
return accounts.find(account => {
// Check each key-value pair in criteria
for (let key in criteria) {
// Ensure metadata exists and matches
if (account.metadata && account.metadata[key] === criteria[key]) {
return true;
}
}
return false;
}) || false;
}
// If criteria is neither a number nor an object
return false;
},
get(endpoint) {
return new Promise((resolve) => {
if (typeof process === 'object') {
const https = require('https');
var options = {
hostname: endpoint ? endpoint : endpoint.replace('https://', ''),
port: 443,
path: '/',
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
https.get(endpoint, res => {
let data = []
res.on('data', chunk => {
data.push(chunk);
})
res.on('end', () => {
resolve( JSON.parse(Buffer.concat(data).toString()))
})
}).on('error', err => {
console.log('Error: ', err.message);
})
} else {
fetch(endpoint ? endpoint : this.endpoint, {
method: "GET",
}).then(res => {
resolve(res.json())
});
}
})
},
rpc(data) {
return new Promise((resolve) => {
if (typeof process === 'object') {
const https = require('https');
var postData = JSON.stringify(data);
var options = {
hostname: data.endpoint ? data.endpoint : this.endpoint.replace('https://', ''),
port: 443,
path: '/',
method: 'POST',
headers: {
'content-type': 'application/json',
'authorization': this.rpc_key,
'nano-app': `@nano/wallet-1.5.5`,
}
};
var req = https.request(options, (res) => {
let responseData = ''; // Initialize a variable to accumulate the data
res.on('data', (chunk) => {
responseData += chunk; // Accumulate data chunks
});
res.on('end', () => {
try {
const parsedData = JSON.parse(responseData); // Parse the complete data once received
resolve(parsedData);
} catch (error) {
reject(new Error('Failed to parse response JSON: ' + error.message)); // Handle JSON parse error
}
});
});
req.on('error', (e) => {
new Error(e);
});
req.write(postData);
req.end();
} else {
fetch(data.endpoint ? data.endpoint : this.endpoint, {
method: "POST",
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(data)
}).then(res => {
resolve(res.json())
});
}
})
},
checkout(body) {
return new Promise(async (resolve) => {
var wallet = this.wallet()
if (!body) {
var error = { error: "Missing checkout body.", example: { address: 0, amount: '0.005' } }
console.error(error)
throw new Error(error.error)
return
}
if (body && body.address && !body.action) body.action = "checkout"
if (body.address && typeof body.address === 'object') {
source = this.findAccount(wallet, body.address)
if (!source) {
var error = { error: `Account with metadata ${JSON.stringify(body.address)} not found` }
console.error(error)
throw new Error(error.error)
return
}
body.address = source.address
}
if (!body.action) {
var error = { error: "Action not provided." }
console.error(error)
throw new Error(error.error)
return
}
if (!body.address) {
var error = { error: "Address not provided." }
console.error(error)
throw new Error(error.error)
return
}
resolve( (await this.rpc(body)) )
})
},
async confirm(checkout, timeout) {
if (!checkout || !checkout.check) {
var error = { error: "Invalid checkout object." }
console.error(error)
throw new Error(error.error)
return
}
while (true) {
try {
const data = await this.get(checkout.check);
if (data.block) {
return data
break;
}
console.log('Payment not found. Waiting 5 seconds before rechecking.');
await new Promise(resolve => setTimeout(resolve, timeout || 5000)); // Wait for 2 seconds
} catch (error) {
await new Promise(resolve => setTimeout(resolve, timeout || 5000)); // Wait for 2 seconds before retrying in case of error
}
}
},
async qrcode(body) {
return (await this.checkout(body)).qrcode
},
pow(account) {
return new Promise(async (resolve) => {
try {
var frontier = account.frontier
if (!frontier) frontier = (await this.rpc({ action: 'account_key', account: account.account } )).key
resolve( (await this.rpc({ action: 'work_generate', hash: frontier } )).work )
} catch(e) {
var error = { error: "Error generating PoW", context: data }
console.error(error)
throw new Error(error.error)
return resolve(error)
}
})
},
wallet(password = this.pw_cache) {
// Browser
if (typeof window !== 'undefined') {
var existing = localStorage.getItem(`nano-offline`)
}
// NodeJS
if (typeof process === 'object') {
var existing = this.aes256
}
try {
return decrypt(existing, this.pw_cache || password)
} catch(e) {
var error = { error: "Invalid password" }
console.error(error)
throw new Error(error.error)
return
}
},
receive(account) {
return new Promise((resolve, reject) => {
var wallet = this.wallet()
if (!wallet || !wallet.accounts) {
var error = { error: "Account not found." }
console.error(error)
throw new Error(error.error)
return
}
var accounts = wallet.accounts
if (this.findAccount(wallet, account)) accounts = [this.findAccount(wallet, account)]
for (var source of accounts) {
try {
this.rpc({
action: 'receivable',
account: source.address,
source: "true",
}).then(async (res) => {
if (!res || !res.blocks) res.data = { blocks: [] }
if (res && res.blocks && res.blocks === '') return resolve()
var blocks = []
Object.keys(res.blocks).map(hash => blocks.push({
hash,
amount: res.blocks[hash].amount,
amount_nano: _NanocurrencyWeb.tools.convert(res.blocks[hash].amount, 'RAW', 'NANO'),
source: res.blocks[hash].source
}))
for (var block of blocks) {
var account = (await this.rpc({
action: 'account_info',
account: source.address,
representative: "true"
}))
if (!account || account.error) account = { frontier: '' }
const data = {
// Your current balance in RAW from account info
walletBalanceRaw: account.balance && Number(account.balance) ? account.balance : '0',
// Your address
toAddress: source.address,
// From account info
representativeAddress: account.representative || this.default_rep,
// From account info
frontier: account.frontier || '0000000000000000000000000000000000000000000000000000000000000000',
// frontier: account.frontier || (await this.rpc(endpoint, { action: 'account_key', account: source.address } )).data.key,
// From the pending transaction
transactionHash: block.hash,
// From the pending transaction in RAW
amountRaw: block.amount,
work: await this.pow({ account: source.address, frontier: account.frontier }),
}
// return new Error(data)
if (!data.work) {
var error = { error: "Error generating PoW", context: data }
console.error(error)
throw new Error(error.error)
return
}
const signedBlock = _NanocurrencyWeb.block.receive(data, source.private)
block.send_hash = block.hash
block.hash = (await this.rpc({
"action": "process",
"json_block": "true",
"subtype": "receive",
"block": signedBlock
})).hash
}
resolve(blocks)
})
} catch (e) {
var error = { error: "Error generating PoW", context: e }
console.error(error)
throw new Error(error.error)
return
}
}
})
},
send(config) {
return new Promise(async (resolve) => {
var wallet = this.wallet()
if (!wallet) {
var error = { error: "Account not found." }
console.error(error)
throw new Error(error.error)
return
}
if (wallet.error) return resolve(wallet)
var source = ''
if (config.from && String(config.from).includes('nano_')) source = config.from
if (config.from && typeof config.from === 'object' || config.from === 0 || Number(config.from)) {
source = this.findAccount(wallet, config.from)
if (!source) {
var error = { error: `Account with metadata ${JSON.stringify(config.from)} not found` }
console.error(error)
throw new Error(error.error)
return
}
}
if (!Array.isArray(config.to) && config.to && typeof config.to === 'object' || config.to === 0 || Number(config.to)) {
dest = this.findAccount(wallet, config.to)
if (!source) {
var error = { error: `Account with metadata ${JSON.stringify(config.to)} not found` }
console.error(error)
throw new Error(error.error)
return
}
config.to = dest.address
}
if (!source) {
var error = { error: `Payment source not provided.` }
console.error(error)
throw new Error(error.error)
return
}
var accounts = config.accounts || config.to
if ( typeof accounts === "string" ) accounts = [accounts]
if (accounts.find(a => a.includes('@'))) {
var known = (await this.get(this.known))
accounts = accounts.map(a => {
if (a && a.includes('@')) {
var b = known.find(b => b.name.toLowerCase() === a.toLowerCase().replace('@', ''))
if (b) a = b.address
}
return a
})
}
var blocks = []
for (var account of accounts) {
if (!source || !source.address) {
var error = { error: `Invalid source account.` }
console.error(error)
throw new Error(error.error)
return
}
try {
var block = await this.block({
source,
to: account,
amount: config.amount,
})
if (block.error) console.error(block)
if (block.hash) {
blocks.push({
to: account,
from: source.address,
hash: block.hash,
amount: String(block.amount_nano),
browser: `https://nanobrowse.com/block/${block.hash}`
})
}
} catch(e) {
var error = { error: "Error", context: e }
console.error(error)
throw new Error(error.error)
return
}
}
resolve(blocks)
})
},
sign(block, privateKey) {
if (!privateKey) {
var wallet = this.wallet()
if (!wallet) {
var error = { error: "Account not found." }
console.error(error)
throw new Error(error.error)
return
}
privateKey = wallet.accounts[0].private
}
var type
if (block.fromAddress) type = 'send'
if (block.toAddress) type = 'receive'
if (!block.toAddress && !block.fromAddress) type = 'representative'
return _NanocurrencyWeb.block[type](block, privateKey)
},
process(signedBlock) {
return this.rpc({
"action": "process",
"json_block": "true",
"subtype": "send",
"block": signedBlock,
})
},
block(config) {
return new Promise(async (resolve) => {
var account = config.to
if (!config.source) {
var error = { error: "No source address." }
console.error(error)
throw new Error(error.error)
return
}
if (account.includes('@')) {
var known = (await this.get(this.known))
var found = known.find(b => b.name.toLowerCase() === account.toLowerCase().replace('@', ''))
if (!found) {
var error = { error: "Username not found." }
console.error(error)
throw new Error(error.error)
return
}
account = found.address
}
this.rpc({
action: 'account_info',
account: config.source.address,
representative: "true",
}).then(async (res) => {
var _account = res
if (!_account.balance) {
var error = { error: "Insufficient funds." }
console.error(error)
throw new Error(error.error)
return
}
if (_account.error) {
console.error({
error: _account.error,
context: {
action: 'account_info',
account: config.source.address,
representative: "true",
}
})
throw new Error(_account.error)
return
}
const data = {
walletBalanceRaw: _account.balance,
fromAddress: config.source.address,
toAddress: account,
representativeAddress: _account.representative || this.default_rep,
frontier: _account.frontier,
amountRaw: config.amount === 'all' ? _account.balance : _NanocurrencyWeb.tools.convert(config.amount, 'NANO', 'RAW'),
work: config.pow ? config.pow : await this.pow({ account: config.source.address, frontier: _account.frontier }),
}
const signedBlock = _NanocurrencyWeb.block.send(data, config.source.private)
this.rpc({
"action": "process",
"json_block": "true",
"subtype": "send",
"block": signedBlock,
endpoint: config.endpoint,
key: config.key,
}).then((hash) => {
hash.amount_nano = _NanocurrencyWeb.tools.convert(data.amountRaw, 'RAW', 'NANO')
resolve(hash)
})
})
})
},
// depreceated in 1.5.1
// qrcode(address) {
// return `https://chart.apis.google.com/chart?chs=250x250&cht=qr&chl=nano:${address ? address : this.wallets[0].address}&choe=UTF-8`
// },
// depreceated in 1.5.1
// browser(address, domain, type) {
// return `https://${domain || 'nanobrowse'}.com/${type || 'account'}/${address ? address : this.wallets[0].address}`
// },
export(password = this.pw_cache) {
if (!password) return 'AES-256::' + this.aes256
// Browser
if (typeof window !== 'undefined') {
var existing = localStorage.getItem(`nano-offline`)
}
// NodeJS
if (typeof process === 'object') {
var existing = this.aes256
}
if (!existing) {
var error = { error: "Wallet not found." }
console.error(error)
throw new Error(error.error)
return
}
return decrypt(existing, password)
},
}
nano.balance = nano.balances
nano.app = nano.offline
nano.waitFor = nano.confirm
// Browser
if (typeof window !== 'undefined') window.nano = nano
// NodeJS
if (typeof process === 'object') module.exports = nano