-
Notifications
You must be signed in to change notification settings - Fork 211
/
Codec.Binary.Bech32.Internal.html
804 lines (804 loc) · 375 KB
/
Codec.Binary.Bech32.Internal.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE DataKinds #-}</span><span>
</span><a name="line-2"></a><span class="hs-pragma">{-# LANGUAGE DerivingStrategies #-}</span><span>
</span><a name="line-3"></a><span class="hs-pragma">{-# LANGUAGE GeneralizedNewtypeDeriving #-}</span><span>
</span><a name="line-4"></a><span class="hs-pragma">{-# LANGUAGE LambdaCase #-}</span><span>
</span><a name="line-5"></a><span class="hs-pragma">{-# LANGUAGE TypeFamilies #-}</span><span>
</span><a name="line-6"></a><span class="hs-pragma">{-# LANGUAGE TypeOperators #-}</span><span>
</span><a name="line-7"></a><span class="hs-pragma">{-# LANGUAGE UndecidableInstances #-}</span><span>
</span><a name="line-8"></a><span>
</span><a name="line-9"></a><span class="hs-comment">-- |</span><span>
</span><a name="line-10"></a><span class="hs-comment">-- Copyright: © 2017 Marko Bencun, 2018-2019 IOHK</span><span>
</span><a name="line-11"></a><span class="hs-comment">-- License: Apache-2.0</span><span>
</span><a name="line-12"></a><span class="hs-comment">--</span><span>
</span><a name="line-13"></a><span class="hs-comment">-- Implementation of the [Bech32]</span><span>
</span><a name="line-14"></a><span class="hs-comment">-- (https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)</span><span>
</span><a name="line-15"></a><span class="hs-comment">-- address format.</span><span>
</span><a name="line-16"></a><span class="hs-comment">--</span><span>
</span><a name="line-17"></a><span class="hs-comment">-- From an original implementation by Marko Bencun:</span><span>
</span><a name="line-18"></a><span class="hs-comment">--</span><span>
</span><a name="line-19"></a><span class="hs-comment">-- [sipa/bech32](https://git.io/fj8FV)</span><span>
</span><a name="line-20"></a><span class="hs-comment">--</span><span>
</span><a name="line-21"></a><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Codec.Binary.Bech32.Internal</span><span>
</span><a name="line-22"></a><span> </span><span class="hs-special">(</span><span>
</span><a name="line-23"></a><span> </span><span class="hs-comment">-- * Encoding & Decoding</span><span>
</span><a name="line-24"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#encode"><span class="hs-identifier hs-var">encode</span></a><span>
</span><a name="line-25"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodeLenient"><span class="hs-identifier hs-var">encodeLenient</span></a><span>
</span><a name="line-26"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#EncodingError"><span class="hs-identifier hs-type">EncodingError</span></a><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><a name="line-27"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#decode"><span class="hs-identifier hs-var">decode</span></a><span>
</span><a name="line-28"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#decodeLenient"><span class="hs-identifier hs-var">decodeLenient</span></a><span>
</span><a name="line-29"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DecodingError"><span class="hs-identifier hs-type">DecodingError</span></a><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><a name="line-30"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#checksumLength"><span class="hs-identifier hs-var">checksumLength</span></a><span>
</span><a name="line-31"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodedStringMaxLength"><span class="hs-identifier hs-var">encodedStringMaxLength</span></a><span>
</span><a name="line-32"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodedStringMinLength"><span class="hs-identifier hs-var">encodedStringMinLength</span></a><span>
</span><a name="line-33"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorChar"><span class="hs-identifier hs-var">separatorChar</span></a><span>
</span><a name="line-34"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier hs-var">separatorLength</span></a><span>
</span><a name="line-35"></a><span>
</span><a name="line-36"></a><span> </span><span class="hs-comment">-- * Data Part</span><span>
</span><a name="line-37"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span>
</span><a name="line-38"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartIsValid"><span class="hs-identifier hs-var">dataPartIsValid</span></a><span>
</span><a name="line-39"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartFromBytes"><span class="hs-identifier hs-var">dataPartFromBytes</span></a><span>
</span><a name="line-40"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartFromText"><span class="hs-identifier hs-var">dataPartFromText</span></a><span>
</span><a name="line-41"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartFromWords"><span class="hs-identifier hs-var">dataPartFromWords</span></a><span>
</span><a name="line-42"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToBytes"><span class="hs-identifier hs-var">dataPartToBytes</span></a><span>
</span><a name="line-43"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToText"><span class="hs-identifier hs-var">dataPartToText</span></a><span>
</span><a name="line-44"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToWords"><span class="hs-identifier hs-var">dataPartToWords</span></a><span>
</span><a name="line-45"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier hs-var">dataCharToWord</span></a><span>
</span><a name="line-46"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWord"><span class="hs-identifier hs-var">dataCharFromWord</span></a><span>
</span><a name="line-47"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharList"><span class="hs-identifier hs-var">dataCharList</span></a><span>
</span><a name="line-48"></a><span>
</span><a name="line-49"></a><span> </span><span class="hs-comment">-- * Human-Readable Part</span><span>
</span><a name="line-50"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span>
</span><a name="line-51"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartError"><span class="hs-identifier hs-type">HumanReadablePartError</span></a><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><a name="line-52"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartFromText"><span class="hs-identifier hs-var">humanReadablePartFromText</span></a><span>
</span><a name="line-53"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToText"><span class="hs-identifier hs-var">humanReadablePartToText</span></a><span>
</span><a name="line-54"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToWords"><span class="hs-identifier hs-var">humanReadablePartToWords</span></a><span>
</span><a name="line-55"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMinLength"><span class="hs-identifier hs-var">humanReadablePartMinLength</span></a><span>
</span><a name="line-56"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMaxLength"><span class="hs-identifier hs-var">humanReadablePartMaxLength</span></a><span>
</span><a name="line-57"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMinBound"><span class="hs-identifier hs-var">humanReadableCharMinBound</span></a><span>
</span><a name="line-58"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMaxBound"><span class="hs-identifier hs-var">humanReadableCharMaxBound</span></a><span>
</span><a name="line-59"></a><span>
</span><a name="line-60"></a><span> </span><span class="hs-comment">-- * Bit Manipulation</span><span>
</span><a name="line-61"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#convertBits"><span class="hs-identifier hs-var">convertBits</span></a><span>
</span><a name="line-62"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span>
</span><a name="line-63"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier hs-var">word5</span></a><span>
</span><a name="line-64"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#getWord5"><span class="hs-identifier hs-var">getWord5</span></a><span>
</span><a name="line-65"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#toBase256"><span class="hs-identifier hs-var">toBase256</span></a><span>
</span><a name="line-66"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#toBase32"><span class="hs-identifier hs-var">toBase32</span></a><span>
</span><a name="line-67"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#noPadding"><span class="hs-identifier hs-var">noPadding</span></a><span>
</span><a name="line-68"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#yesPadding"><span class="hs-identifier hs-var">yesPadding</span></a><span>
</span><a name="line-69"></a><span>
</span><a name="line-70"></a><span> </span><span class="hs-comment">-- * Character Manipulation</span><span>
</span><a name="line-71"></a><span> </span><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-type">CharPosition</span></a><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><a name="line-72"></a><span>
</span><a name="line-73"></a><span> </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-74"></a><span>
</span><a name="line-75"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Prelude</span><span>
</span><a name="line-76"></a><span>
</span><a name="line-77"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Control.Monad</span><span>
</span><a name="line-78"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">guard</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">join</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-79"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Array</span><span>
</span><a name="line-80"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Array</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-81"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Bifunctor</span><span>
</span><a name="line-82"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">first</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-83"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Bits</span><span>
</span><a name="line-84"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Bits</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">unsafeShiftL</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">unsafeShiftR</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">xor</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-operator hs-var">.&.</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-operator hs-var">.|.</span><span class="hs-special">)</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-85"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.ByteString</span><span>
</span><a name="line-86"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-87"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Char</span><span>
</span><a name="line-88"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">chr</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">ord</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">toLower</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">toUpper</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-89"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Either.Extra</span><span>
</span><a name="line-90"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">maybeToEither</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-91"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Foldable</span><span>
</span><a name="line-92"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">foldl'</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-93"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Functor.Identity</span><span>
</span><a name="line-94"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Identity</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">runIdentity</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-95"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Ix</span><span>
</span><a name="line-96"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Ix</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-97"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.List</span><span>
</span><a name="line-98"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">sort</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-99"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Map.Strict</span><span>
</span><a name="line-100"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Map</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-101"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Maybe</span><span>
</span><a name="line-102"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">isNothing</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">mapMaybe</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-103"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Text</span><span>
</span><a name="line-104"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-105"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Text.Class</span><span>
</span><a name="line-106"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">splitAtLastOccurrence</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-107"></a><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Word</span><span>
</span><a name="line-108"></a><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">Word8</span><span> </span><span class="hs-special">)</span><span>
</span><a name="line-109"></a><span>
</span><a name="line-110"></a><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="hs-identifier">Data.Array</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">Arr</span><span>
</span><a name="line-111"></a><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="hs-identifier">Data.ByteString</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">BS</span><span>
</span><a name="line-112"></a><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="hs-identifier">Data.Map.Strict</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">Map</span><span>
</span><a name="line-113"></a><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="hs-identifier">Data.Text</span><span> </span><span class="hs-keyword">as</span><span> </span><span class="hs-identifier">T</span><span>
</span><a name="line-114"></a><span>
</span><a name="line-115"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Data Part
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-118"></a><span>
</span><a name="line-119"></a><span class="hs-comment">-- | Represents the data part of a Bech32 string, as defined here:</span><span>
</span><a name="line-120"></a><span class="hs-comment">-- https://git.io/fj8FS</span><span>
</span><a name="line-121"></a><span class="hs-keyword">newtype</span><span> </span><a name="DataPart"><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier">DataPart</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="DataPart"><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier">DataPart</span></a></a><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-122"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-keyword">newtype</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Monoid</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Semigroup</span><span class="hs-special">)</span><span>
</span><a name="line-123"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-keyword">stock</span><span> </span><span class="hs-identifier hs-type">Show</span><span>
</span><a name="line-124"></a><span>
</span><a name="line-125"></a><span class="hs-comment">-- | Returns true iff. the specified 'DataPart' is valid.</span><span>
</span><a name="line-126"></a><span class="hs-comment">--</span><span>
</span><a name="line-127"></a><span class="hs-identifier">dataPartIsValid</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Bool</span><span>
</span><a name="line-128"></a><a name="dataPartIsValid"><a href="Codec.Binary.Bech32.Internal.html#dataPartIsValid"><span class="hs-identifier">dataPartIsValid</span></a></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-var">DataPart</span></a><span> </span><a name="local-6989586621679038220"><a href="#local-6989586621679038220"><span class="hs-identifier">dp</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">T.all</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharIsValid"><span class="hs-identifier hs-var">dataCharIsValid</span></a><span> </span><a href="#local-6989586621679038220"><span class="hs-identifier hs-var">dp</span></a><span>
</span><a name="line-129"></a><span>
</span><a name="line-130"></a><span class="hs-comment">-- | Constructs a 'DataPart' from a 'ByteString'.</span><span>
</span><a name="line-131"></a><span class="hs-comment">--</span><span>
</span><a name="line-132"></a><span class="hs-comment">-- This function encodes a 'ByteString' in such a way that guarantees it can be</span><span>
</span><a name="line-133"></a><span class="hs-comment">-- successfully decoded with the 'dataPartToBytes' function:</span><span>
</span><a name="line-134"></a><span class="hs-comment">--</span><span>
</span><a name="line-135"></a><span class="hs-comment">-- > dataPartToBytes (dataPartFromBytes b) == Just b</span><span>
</span><a name="line-136"></a><span class="hs-comment">--</span><span>
</span><a name="line-137"></a><span class="hs-identifier">dataPartFromBytes</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span>
</span><a name="line-138"></a><a name="dataPartFromBytes"><a href="Codec.Binary.Bech32.Internal.html#dataPartFromBytes"><span class="hs-identifier">dataPartFromBytes</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-139"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-var">DataPart</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fmap</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWord"><span class="hs-identifier hs-var">dataCharFromWord</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#toBase32"><span class="hs-identifier hs-var">toBase32</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">BS.unpack</span><span>
</span><a name="line-140"></a><span>
</span><a name="line-141"></a><span class="hs-comment">-- | Attempts to extract a 'ByteString' from a 'DataPart'.</span><span>
</span><a name="line-142"></a><span class="hs-comment">--</span><span>
</span><a name="line-143"></a><span class="hs-comment">-- This function guarantees to satisfy the following property:</span><span>
</span><a name="line-144"></a><span class="hs-comment">--</span><span>
</span><a name="line-145"></a><span class="hs-comment">-- > dataPartToBytes (dataPartFromBytes b) == Just b</span><span>
</span><a name="line-146"></a><span class="hs-comment">--</span><span>
</span><a name="line-147"></a><span class="hs-identifier">dataPartToBytes</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
</span><a name="line-148"></a><a name="dataPartToBytes"><a href="Codec.Binary.Bech32.Internal.html#dataPartToBytes"><span class="hs-identifier">dataPartToBytes</span></a></a><span> </span><a name="local-6989586621679038221"><a href="#local-6989586621679038221"><span class="hs-identifier">dp</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">BS.pack</span><span> </span><span class="hs-operator hs-var"><$></span><span>
</span><a name="line-149"></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#toBase256"><span class="hs-identifier hs-var">toBase256</span></a><span> </span><span class="hs-operator hs-var">=<<</span><span> </span><span class="hs-identifier hs-var">traverse</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier hs-var">dataCharToWord</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.unpack</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToText"><span class="hs-identifier hs-var">dataPartToText</span></a><span> </span><a href="#local-6989586621679038221"><span class="hs-identifier hs-var">dp</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-150"></a><span>
</span><a name="line-151"></a><span class="hs-comment">-- | Constructs a 'DataPart' from textual input. All characters in the input</span><span>
</span><a name="line-152"></a><span class="hs-comment">-- must be a member of 'dataCharList', the set of characters permitted to</span><span>
</span><a name="line-153"></a><span class="hs-comment">-- appear within the data part of a Bech32 string.</span><span>
</span><a name="line-154"></a><span class="hs-comment">--</span><span>
</span><a name="line-155"></a><span class="hs-comment">-- Returns 'Nothing' if any character in the input is not a member of</span><span>
</span><a name="line-156"></a><span class="hs-comment">-- 'dataCharList'.</span><span>
</span><a name="line-157"></a><span class="hs-comment">--</span><span>
</span><a name="line-158"></a><span class="hs-comment">-- This function guarantees to satisfy the following property:</span><span>
</span><a name="line-159"></a><span class="hs-comment">--</span><span>
</span><a name="line-160"></a><span class="hs-comment">-- > dataPartFromText (dataPartToText d) == Just d</span><span>
</span><a name="line-161"></a><span class="hs-comment">--</span><span>
</span><a name="line-162"></a><span class="hs-identifier">dataPartFromText</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span>
</span><a name="line-163"></a><a name="dataPartFromText"><a href="Codec.Binary.Bech32.Internal.html#dataPartFromText"><span class="hs-identifier">dataPartFromText</span></a></a><span> </span><a name="local-6989586621679038661"><a href="#local-6989586621679038661"><span class="hs-identifier">text</span></a></a><span>
</span><a name="line-164"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">T.any</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">not</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharIsValid"><span class="hs-identifier hs-var">dataCharIsValid</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679038662"><span class="hs-identifier hs-var">textLower</span></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Nothing</span><span>
</span><a name="line-165"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">pure</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-var">DataPart</span></a><span> </span><a href="#local-6989586621679038662"><span class="hs-identifier hs-var">textLower</span></a><span>
</span><a name="line-166"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-167"></a><span> </span><a name="local-6989586621679038662"><a href="#local-6989586621679038662"><span class="hs-identifier">textLower</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">T.toLower</span><span> </span><a href="#local-6989586621679038661"><span class="hs-identifier hs-var">text</span></a><span>
</span><a name="line-168"></a><span>
</span><a name="line-169"></a><span class="hs-comment">-- | Converts a 'DataPart' to 'Text', using the Bech32 character set to render</span><span>
</span><a name="line-170"></a><span class="hs-comment">-- the data.</span><span>
</span><a name="line-171"></a><span class="hs-comment">--</span><span>
</span><a name="line-172"></a><span class="hs-comment">-- This function guarantees to satisfy the following property:</span><span>
</span><a name="line-173"></a><span class="hs-comment">--</span><span>
</span><a name="line-174"></a><span class="hs-comment">-- > dataPartFromText (dataPartToText d) == Just d</span><span>
</span><a name="line-175"></a><span class="hs-comment">--</span><span>
</span><a name="line-176"></a><span class="hs-identifier">dataPartToText</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-177"></a><a name="dataPartToText"><a href="Codec.Binary.Bech32.Internal.html#dataPartToText"><span class="hs-identifier">dataPartToText</span></a></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-var">DataPart</span></a><span> </span><a name="local-6989586621679038663"><a href="#local-6989586621679038663"><span class="hs-identifier">t</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679038663"><span class="hs-identifier hs-var">t</span></a><span>
</span><a name="line-178"></a><span>
</span><a name="line-179"></a><span class="hs-comment">-- | Construct a 'DataPart' directly from words.</span><span>
</span><a name="line-180"></a><span class="hs-comment">--</span><span>
</span><a name="line-181"></a><span class="hs-comment">-- This function guarantees to satisfy the following properties:</span><span>
</span><a name="line-182"></a><span class="hs-comment">--</span><span>
</span><a name="line-183"></a><span class="hs-comment">-- > dataPartFromWords (dataPartToWords d) == d</span><span>
</span><a name="line-184"></a><span class="hs-comment">-- > dataPartToWords (dataPartFromWords w) == w</span><span>
</span><a name="line-185"></a><span class="hs-comment">--</span><span>
</span><a name="line-186"></a><span class="hs-identifier">dataPartFromWords</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span>
</span><a name="line-187"></a><a name="dataPartFromWords"><a href="Codec.Binary.Bech32.Internal.html#dataPartFromWords"><span class="hs-identifier">dataPartFromWords</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-var">DataPart</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fmap</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWord"><span class="hs-identifier hs-var">dataCharFromWord</span></a><span>
</span><a name="line-188"></a><span>
</span><a name="line-189"></a><span class="hs-comment">-- | Convert a 'DataPart' into words.</span><span>
</span><a name="line-190"></a><span class="hs-comment">--</span><span>
</span><a name="line-191"></a><span class="hs-identifier">dataPartToWords</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span>
</span><a name="line-192"></a><a name="dataPartToWords"><a href="Codec.Binary.Bech32.Internal.html#dataPartToWords"><span class="hs-identifier">dataPartToWords</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">mapMaybe</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier hs-var">dataCharToWord</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToText"><span class="hs-identifier hs-var">dataPartToText</span></a><span>
</span><a name="line-193"></a><span>
</span><a name="line-194"></a><span class="hs-comment">-- | Returns true iff. the specified character is permitted to appear within</span><span>
</span><a name="line-195"></a><span class="hs-comment">-- the data part of a Bech32 string.</span><span>
</span><a name="line-196"></a><span class="hs-comment">-- See here for more details: https://git.io/fj8FS</span><span>
</span><a name="line-197"></a><span class="hs-identifier">dataCharIsValid</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Bool</span><span>
</span><a name="line-198"></a><a name="dataCharIsValid"><a href="Codec.Binary.Bech32.Internal.html#dataCharIsValid"><span class="hs-identifier">dataCharIsValid</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">`</span><span class="hs-identifier hs-var">Map.member</span><span class="hs-special">`</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWordMap"><span class="hs-identifier hs-var">dataCharToWordMap</span></a><span class="hs-special">)</span><span>
</span><a name="line-199"></a><span>
</span><a name="line-200"></a><span class="hs-comment">-- | A list of all characters that are permitted to appear within the data part</span><span>
</span><a name="line-201"></a><span class="hs-comment">-- of a Bech32 string. See here for more details: https://git.io/fj8FS</span><span>
</span><a name="line-202"></a><span class="hs-identifier">dataCharList</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">String</span><span>
</span><a name="line-203"></a><a name="dataCharList"><a href="Codec.Binary.Bech32.Internal.html#dataCharList"><span class="hs-identifier">dataCharList</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">"qpzry9x8gf2tvdw0s3jn54khce6mua7l"</span><span>
</span><a name="line-204"></a><span>
</span><a name="line-205"></a><span class="hs-comment">-- | If the specified character is permitted to appear within the data part</span><span>
</span><a name="line-206"></a><span class="hs-comment">-- of a Bech32 string, this function returns that character's corresponding</span><span>
</span><a name="line-207"></a><span class="hs-comment">-- 'Word5' value. If the specified character is not permitted, or if the</span><span>
</span><a name="line-208"></a><span class="hs-comment">-- specified character is upper-case, returns 'Nothing'.</span><span>
</span><a name="line-209"></a><span class="hs-identifier">dataCharToWord</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span>
</span><a name="line-210"></a><a name="dataCharToWord"><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier">dataCharToWord</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">`</span><span class="hs-identifier hs-var">Map.lookup</span><span class="hs-special">`</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWordMap"><span class="hs-identifier hs-var">dataCharToWordMap</span></a><span class="hs-special">)</span><span>
</span><a name="line-211"></a><span>
</span><a name="line-212"></a><span class="hs-identifier">dataCharToWordMap</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Map</span><span> </span><span class="hs-identifier hs-type">Char</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span>
</span><a name="line-213"></a><a name="dataCharToWordMap"><a href="Codec.Binary.Bech32.Internal.html#dataCharToWordMap"><span class="hs-identifier">dataCharToWordMap</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Map.fromList</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharList"><span class="hs-identifier hs-var">dataCharList</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">zip</span><span class="hs-special">`</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-var">minBound</span><span> </span><span class="hs-glyph">..</span><span> </span><span class="hs-identifier hs-var">maxBound</span><span class="hs-special">]</span><span>
</span><a name="line-214"></a><span>
</span><a name="line-215"></a><span class="hs-comment">-- | Maps the specified 'Word5' onto a character that is permitted to appear</span><span>
</span><a name="line-216"></a><span class="hs-comment">-- within the data part of a Bech32 string.</span><span>
</span><a name="line-217"></a><span class="hs-identifier">dataCharFromWord</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Char</span><span>
</span><a name="line-218"></a><a name="dataCharFromWord"><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWord"><span class="hs-identifier">dataCharFromWord</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWordArray"><span class="hs-identifier hs-var">dataCharFromWordArray</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span class="hs-special">)</span><span>
</span><a name="line-219"></a><span>
</span><a name="line-220"></a><span class="hs-identifier">dataCharFromWordArray</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Array</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-identifier hs-type">Char</span><span>
</span><a name="line-221"></a><a name="dataCharFromWordArray"><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWordArray"><span class="hs-identifier">dataCharFromWordArray</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Arr.listArray</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">minBound</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">maxBound</span><span class="hs-special">)</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharList"><span class="hs-identifier hs-var">dataCharList</span></a><span>
</span><a name="line-222"></a><span>
</span><a name="line-223"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Human Readable Part
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-226"></a><span>
</span><a name="line-227"></a><span class="hs-comment">-- | Represents the human-readable part of a Bech32 string, as defined here:</span><span>
</span><a name="line-228"></a><span class="hs-comment">-- https://git.io/fj8FS</span><span>
</span><a name="line-229"></a><span class="hs-keyword">newtype</span><span> </span><a name="HumanReadablePart"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier">HumanReadablePart</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="HumanReadablePart"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier">HumanReadablePart</span></a></a><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-230"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-keyword">newtype</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Monoid</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Semigroup</span><span class="hs-special">)</span><span>
</span><a name="line-231"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-keyword">stock</span><span> </span><span class="hs-identifier hs-type">Show</span><span>
</span><a name="line-232"></a><span>
</span><a name="line-233"></a><span class="hs-comment">-- | Parses the human-readable part of a Bech32 string, as defined here:</span><span>
</span><a name="line-234"></a><span class="hs-comment">-- https://git.io/fj8FS</span><span>
</span><a name="line-235"></a><span class="hs-identifier">humanReadablePartFromText</span><span>
</span><a name="line-236"></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartError"><span class="hs-identifier hs-type">HumanReadablePartError</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span>
</span><a name="line-237"></a><a name="humanReadablePartFromText"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartFromText"><span class="hs-identifier">humanReadablePartFromText</span></a></a><span> </span><a name="local-6989586621679038957"><a href="#local-6989586621679038957"><span class="hs-identifier">hrp</span></a></a><span>
</span><a name="line-238"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038957"><span class="hs-identifier hs-var">hrp</span></a><span> </span><span class="hs-operator hs-var"><</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMinLength"><span class="hs-identifier hs-var">humanReadablePartMinLength</span></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-239"></a><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooShort"><span class="hs-identifier hs-var">HumanReadablePartTooShort</span></a><span>
</span><a name="line-240"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038957"><span class="hs-identifier hs-var">hrp</span></a><span> </span><span class="hs-operator hs-var">></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMaxLength"><span class="hs-identifier hs-var">humanReadablePartMaxLength</span></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-241"></a><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooLong"><span class="hs-identifier hs-var">HumanReadablePartTooLong</span></a><span>
</span><a name="line-242"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">not</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">null</span><span> </span><a href="#local-6989586621679038958"><span class="hs-identifier hs-var">invalidCharPositions</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-243"></a><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartContainsInvalidChars"><span class="hs-identifier hs-var">HumanReadablePartContainsInvalidChars</span></a><span> </span><a href="#local-6989586621679038958"><span class="hs-identifier hs-var">invalidCharPositions</span></a><span>
</span><a name="line-244"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-245"></a><span> </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-var">HumanReadablePart</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.toLower</span><span> </span><a href="#local-6989586621679038957"><span class="hs-identifier hs-var">hrp</span></a><span>
</span><a name="line-246"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-247"></a><span> </span><a name="local-6989586621679038958"><a href="#local-6989586621679038958"><span class="hs-identifier">invalidCharPositions</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><span class="hs-identifier hs-var">filter</span><span>
</span><a name="line-248"></a><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="hs-identifier hs-var">not</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharIsValid"><span class="hs-identifier hs-var">humanReadableCharIsValid</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">snd</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-special">[</span><span class="hs-number">0</span><span> </span><span class="hs-glyph">..</span><span> </span><span class="hs-special">]</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">zip</span><span class="hs-special">`</span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><a href="#local-6989586621679038957"><span class="hs-identifier hs-var">hrp</span></a><span class="hs-special">)</span><span>
</span><a name="line-249"></a><span>
</span><a name="line-250"></a><span class="hs-comment">-- | Represents the set of error conditions that may occur while parsing the</span><span>
</span><a name="line-251"></a><span class="hs-comment">-- human-readable part of a Bech32 string.</span><span>
</span><a name="line-252"></a><span class="hs-keyword">data</span><span> </span><a name="HumanReadablePartError"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartError"><span class="hs-identifier">HumanReadablePartError</span></a></a><span>
</span><a name="line-253"></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="HumanReadablePartTooShort"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooShort"><span class="hs-identifier">HumanReadablePartTooShort</span></a></a><span>
</span><a name="line-254"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="HumanReadablePartTooLong"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooLong"><span class="hs-identifier">HumanReadablePartTooLong</span></a></a><span>
</span><a name="line-255"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="HumanReadablePartContainsInvalidChars"><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartContainsInvalidChars"><span class="hs-identifier">HumanReadablePartContainsInvalidChars</span></a></a><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-type">CharPosition</span></a><span class="hs-special">]</span><span>
</span><a name="line-256"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Show</span><span class="hs-special">)</span><span>
</span><a name="line-257"></a><span>
</span><a name="line-258"></a><span class="hs-comment">-- | Get the raw text of the human-readable part of a Bech32 string.</span><span>
</span><a name="line-259"></a><span class="hs-identifier">humanReadablePartToText</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-260"></a><a name="humanReadablePartToText"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToText"><span class="hs-identifier">humanReadablePartToText</span></a></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-var">HumanReadablePart</span></a><span> </span><a name="local-6989586621679038974"><a href="#local-6989586621679038974"><span class="hs-identifier">t</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679038974"><span class="hs-identifier hs-var">t</span></a><span>
</span><a name="line-261"></a><span>
</span><a name="line-262"></a><span class="hs-comment">-- | Convert the specified human-readable part to a list of words.</span><span>
</span><a name="line-263"></a><span class="hs-identifier">humanReadablePartToWords</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span>
</span><a name="line-264"></a><a name="humanReadablePartToWords"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToWords"><span class="hs-identifier">humanReadablePartToWords</span></a></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-var">HumanReadablePart</span></a><span> </span><a name="local-6989586621679038975"><a href="#local-6989586621679038975"><span class="hs-identifier">hrp</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-265"></a><span> </span><span class="hs-identifier hs-var">map</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#.%3E%3E."><span class="hs-operator hs-var">.>>.</span></a><span> </span><span class="hs-number">5</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">ord</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><a href="#local-6989586621679038975"><span class="hs-identifier hs-var">hrp</span></a><span class="hs-special">)</span><span>
</span><a name="line-266"></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-number">0</span><span class="hs-special">]</span><span>
</span><a name="line-267"></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier hs-var">word5</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">ord</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><a href="#local-6989586621679038975"><span class="hs-identifier hs-var">hrp</span></a><span class="hs-special">)</span><span>
</span><a name="line-268"></a><span>
</span><a name="line-269"></a><span class="hs-comment">-- | The shortest length permitted for the human-readable part of a Bech32</span><span>
</span><a name="line-270"></a><span class="hs-comment">-- string.</span><span>
</span><a name="line-271"></a><span class="hs-identifier">humanReadablePartMinLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-272"></a><a name="humanReadablePartMinLength"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMinLength"><span class="hs-identifier">humanReadablePartMinLength</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-273"></a><span>
</span><a name="line-274"></a><span class="hs-comment">-- | The longest length permitted for the human-readable part of a Bech32</span><span>
</span><a name="line-275"></a><span class="hs-comment">-- string.</span><span>
</span><a name="line-276"></a><span class="hs-identifier">humanReadablePartMaxLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-277"></a><a name="humanReadablePartMaxLength"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMaxLength"><span class="hs-identifier">humanReadablePartMaxLength</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">83</span><span>
</span><a name="line-278"></a><span>
</span><a name="line-279"></a><span class="hs-comment">-- | Returns true iff. the specified character is permitted to appear</span><span>
</span><a name="line-280"></a><span class="hs-comment">-- within the human-readable part of a Bech32 string.</span><span>
</span><a name="line-281"></a><span class="hs-identifier">humanReadableCharIsValid</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Bool</span><span>
</span><a name="line-282"></a><a name="humanReadableCharIsValid"><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharIsValid"><span class="hs-identifier">humanReadableCharIsValid</span></a></a><span> </span><a name="local-6989586621679038976"><a href="#local-6989586621679038976"><span class="hs-identifier">c</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-283"></a><span> </span><a href="#local-6989586621679038976"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var">>=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMinBound"><span class="hs-identifier hs-var">humanReadableCharMinBound</span></a><span> </span><span class="hs-operator hs-var">&&</span><span>
</span><a name="line-284"></a><span> </span><a href="#local-6989586621679038976"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var"><=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMaxBound"><span class="hs-identifier hs-var">humanReadableCharMaxBound</span></a><span>
</span><a name="line-285"></a><span>
</span><a name="line-286"></a><span class="hs-comment">-- | The lower bound of the set of characters permitted to appear within the</span><span>
</span><a name="line-287"></a><span class="hs-comment">-- human-readable part of a Bech32 string.</span><span>
</span><a name="line-288"></a><span class="hs-identifier">humanReadableCharMinBound</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span>
</span><a name="line-289"></a><a name="humanReadableCharMinBound"><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMinBound"><span class="hs-identifier">humanReadableCharMinBound</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">chr</span><span> </span><span class="hs-number">33</span><span>
</span><a name="line-290"></a><span>
</span><a name="line-291"></a><span class="hs-comment">-- | The upper bound of the set of characters permitted to appear within the</span><span>
</span><a name="line-292"></a><span class="hs-comment">-- human-readable part of a Bech32 string.</span><span>
</span><a name="line-293"></a><span class="hs-identifier">humanReadableCharMaxBound</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span>
</span><a name="line-294"></a><a name="humanReadableCharMaxBound"><a href="Codec.Binary.Bech32.Internal.html#humanReadableCharMaxBound"><span class="hs-identifier">humanReadableCharMaxBound</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">chr</span><span> </span><span class="hs-number">126</span><span>
</span><a name="line-295"></a><span>
</span><a name="line-296"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Encoding & Decoding
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-299"></a><span>
</span><a name="line-300"></a><span class="hs-comment">-- | Like 'encode' but allows output to be longer than 90 characters. This isn't</span><span>
</span><a name="line-301"></a><span class="hs-comment">-- ideal as the error detection becomes worse as string get longer but it's</span><span>
</span><a name="line-302"></a><span class="hs-comment">-- still acceptable.</span><span>
</span><a name="line-303"></a><span class="hs-comment">--</span><span>
</span><a name="line-304"></a><span class="hs-comment">-- From BIP-0173:</span><span>
</span><a name="line-305"></a><span class="hs-comment">--</span><span>
</span><a name="line-306"></a><span class="hs-comment">-- Even though the chosen code performs reasonably well up to 1023</span><span>
</span><a name="line-307"></a><span class="hs-comment">-- characters, other designs are preferable for lengths above 89</span><span>
</span><a name="line-308"></a><span class="hs-comment">-- characters (excluding the separator).</span><span>
</span><a name="line-309"></a><span class="hs-comment">--</span><span>
</span><a name="line-310"></a><span class="hs-identifier">encodeLenient</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-311"></a><a name="encodeLenient"><a href="Codec.Binary.Bech32.Internal.html#encodeLenient"><span class="hs-identifier">encodeLenient</span></a></a><span> </span><a name="local-6989586621679038992"><a href="#local-6989586621679038992"><span class="hs-identifier">hrp</span></a></a><span> </span><a name="local-6989586621679038993"><a href="#local-6989586621679038993"><span class="hs-identifier">dp</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToText"><span class="hs-identifier hs-var">humanReadablePartToText</span></a><span> </span><a href="#local-6989586621679038992"><span class="hs-identifier hs-var">hrp</span></a><span>
</span><a name="line-312"></a><span> </span><span class="hs-operator hs-var"><></span><span> </span><span class="hs-identifier hs-var">T.singleton</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorChar"><span class="hs-identifier hs-var">separatorChar</span></a><span>
</span><a name="line-313"></a><span> </span><span class="hs-operator hs-var"><></span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><a href="#local-6989586621679038994"><span class="hs-identifier hs-var">dcp</span></a><span>
</span><a name="line-314"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-315"></a><span> </span><a name="local-6989586621679038994"><a href="#local-6989586621679038994"><span class="hs-identifier">dcp</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharFromWord"><span class="hs-identifier hs-var">dataCharFromWord</span></a><span> </span><span class="hs-operator hs-var"><$></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToWords"><span class="hs-identifier hs-var">dataPartToWords</span></a><span> </span><a href="#local-6989586621679038993"><span class="hs-identifier hs-var">dp</span></a><span> </span><span class="hs-operator hs-var"><></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#createChecksum"><span class="hs-identifier hs-var">createChecksum</span></a><span> </span><a href="#local-6989586621679038992"><span class="hs-identifier hs-var">hrp</span></a><span> </span><a href="#local-6989586621679038993"><span class="hs-identifier hs-var">dp</span></a><span>
</span><a name="line-316"></a><span>
</span><a name="line-317"></a><span class="hs-comment">-- | Encode a human-readable string and data payload into a Bech32 string.</span><span>
</span><a name="line-318"></a><span class="hs-identifier">encode</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#EncodingError"><span class="hs-identifier hs-type">EncodingError</span></a><span> </span><span class="hs-identifier hs-type">Text</span><span>
</span><a name="line-319"></a><a name="encode"><a href="Codec.Binary.Bech32.Internal.html#encode"><span class="hs-identifier">encode</span></a></a><span> </span><a name="local-6989586621679038995"><a href="#local-6989586621679038995"><span class="hs-identifier">hrp</span></a></a><span> </span><a name="local-6989586621679038996"><a href="#local-6989586621679038996"><span class="hs-identifier">dp</span></a></a><span>
</span><a name="line-320"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038997"><span class="hs-identifier hs-var">result</span></a><span> </span><span class="hs-operator hs-var">></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodedStringMaxLength"><span class="hs-identifier hs-var">encodedStringMaxLength</span></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#EncodedStringTooLong"><span class="hs-identifier hs-var">EncodedStringTooLong</span></a><span>
</span><a name="line-321"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">pure</span><span> </span><a href="#local-6989586621679038997"><span class="hs-identifier hs-var">result</span></a><span>
</span><a name="line-322"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-323"></a><span> </span><a name="local-6989586621679038997"><a href="#local-6989586621679038997"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodeLenient"><span class="hs-identifier hs-var">encodeLenient</span></a><span> </span><a href="#local-6989586621679038995"><span class="hs-identifier hs-var">hrp</span></a><span> </span><a href="#local-6989586621679038996"><span class="hs-identifier hs-var">dp</span></a><span>
</span><a name="line-324"></a><span>
</span><a name="line-325"></a><span class="hs-comment">-- | Represents the set of error conditions that may occur while encoding a</span><span>
</span><a name="line-326"></a><span class="hs-comment">-- Bech32 string.</span><span>
</span><a name="line-327"></a><span class="hs-keyword">data</span><span> </span><a name="EncodingError"><a href="Codec.Binary.Bech32.Internal.html#EncodingError"><span class="hs-identifier">EncodingError</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="EncodedStringTooLong"><a href="Codec.Binary.Bech32.Internal.html#EncodedStringTooLong"><span class="hs-identifier">EncodedStringTooLong</span></a></a><span>
</span><a name="line-328"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Show</span><span class="hs-special">)</span><span>
</span><a name="line-329"></a><span>
</span><a name="line-330"></a><span class="hs-comment">-- | Like 'decode' but does not enforce a maximum length. See also</span><span>
</span><a name="line-331"></a><span class="hs-comment">-- 'encodeLenient' for details.</span><span>
</span><a name="line-332"></a><span class="hs-identifier">decodeLenient</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DecodingError"><span class="hs-identifier hs-type">DecodingError</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span class="hs-special">)</span><span>
</span><a name="line-333"></a><a name="decodeLenient"><a href="Codec.Binary.Bech32.Internal.html#decodeLenient"><span class="hs-identifier">decodeLenient</span></a></a><span> </span><a name="local-6989586621679038998"><a href="#local-6989586621679038998"><span class="hs-identifier">bech32</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><a name="line-334"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier hs-var">guardE</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-operator hs-var">>=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodedStringMinLength"><span class="hs-identifier hs-var">encodedStringMinLength</span></a><span class="hs-special">)</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeTooShort"><span class="hs-identifier hs-var">StringToDecodeTooShort</span></a><span>
</span><a name="line-335"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier hs-var">guardE</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.map</span><span> </span><span class="hs-identifier hs-var">toUpper</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-operator hs-var">||</span><span> </span><span class="hs-identifier hs-var">T.map</span><span> </span><span class="hs-identifier hs-var">toLower</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span class="hs-special">)</span><span>
</span><a name="line-336"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeHasMixedCase"><span class="hs-identifier hs-var">StringToDecodeHasMixedCase</span></a><span>
</span><a name="line-337"></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679039499"><a href="#local-6989586621679039499"><span class="hs-identifier">hrpUnparsed</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679039500"><a href="#local-6989586621679039500"><span class="hs-identifier">dcpUnparsed</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph"><-</span><span>
</span><a name="line-338"></a><span> </span><span class="hs-identifier hs-var">maybeToEither</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeMissingSeparatorChar"><span class="hs-identifier hs-var">StringToDecodeMissingSeparatorChar</span></a><span> </span><span class="hs-operator hs-var">$</span><span>
</span><a name="line-339"></a><span> </span><span class="hs-identifier hs-var">splitAtLastOccurrence</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorChar"><span class="hs-identifier hs-var">separatorChar</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.map</span><span> </span><span class="hs-identifier hs-var">toLower</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span>
</span><a name="line-340"></a><span> </span><a name="local-6989586621679039501"><a href="#local-6989586621679039501"><span class="hs-identifier">hrp</span></a></a><span> </span><span class="hs-glyph"><-</span><span> </span><span class="hs-identifier hs-var">first</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartError"><span class="hs-identifier hs-var">humanReadablePartError</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartFromText"><span class="hs-identifier hs-var">humanReadablePartFromText</span></a><span> </span><a href="#local-6989586621679039499"><span class="hs-identifier hs-var">hrpUnparsed</span></a><span>
</span><a name="line-341"></a><span> </span><a name="local-6989586621679039503"><a href="#local-6989586621679039503"><span class="hs-identifier">dcp</span></a></a><span> </span><span class="hs-glyph"><-</span><span> </span><span class="hs-identifier hs-var">first</span><span>
</span><a name="line-342"></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier hs-var">StringToDecodeContainsInvalidChars</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fmap</span><span>
</span><a name="line-343"></a><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><a name="local-6989586621679039502"><a href="#local-6989586621679039502"><span class="hs-identifier">p</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-></span><span>
</span><a name="line-344"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="#local-6989586621679039502"><span class="hs-identifier hs-var">p</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679039499"><span class="hs-identifier hs-var">hrpUnparsed</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier hs-var">separatorLength</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-345"></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#parseDataWithChecksumPart"><span class="hs-identifier hs-var">parseDataWithChecksumPart</span></a><span> </span><a href="#local-6989586621679039500"><span class="hs-identifier hs-var">dcpUnparsed</span></a><span class="hs-special">)</span><span>
</span><a name="line-346"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier hs-var">guardE</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679039503"><span class="hs-identifier hs-var">dcp</span></a><span> </span><span class="hs-operator hs-var">>=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#checksumLength"><span class="hs-identifier hs-var">checksumLength</span></a><span class="hs-special">)</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeTooShort"><span class="hs-identifier hs-var">StringToDecodeTooShort</span></a><span>
</span><a name="line-347"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier hs-var">guardE</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#verifyChecksum"><span class="hs-identifier hs-var">verifyChecksum</span></a><span> </span><a href="#local-6989586621679039501"><span class="hs-identifier hs-var">hrp</span></a><span> </span><a href="#local-6989586621679039503"><span class="hs-identifier hs-var">dcp</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span>
</span><a name="line-348"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier hs-var">StringToDecodeContainsInvalidChars</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="#local-6989586621679038999"><span class="hs-identifier hs-var">findErrorPositions</span></a><span> </span><a href="#local-6989586621679039501"><span class="hs-identifier hs-var">hrp</span></a><span> </span><a href="#local-6989586621679039503"><span class="hs-identifier hs-var">dcp</span></a><span>
</span><a name="line-349"></a><span> </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679039504"><a href="#local-6989586621679039504"><span class="hs-identifier">dp</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartFromWords"><span class="hs-identifier hs-var">dataPartFromWords</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">take</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679039503"><span class="hs-identifier hs-var">dcp</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#checksumLength"><span class="hs-identifier hs-var">checksumLength</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679039503"><span class="hs-identifier hs-var">dcp</span></a><span>
</span><a name="line-350"></a><span> </span><span class="hs-identifier hs-var">return</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039501"><span class="hs-identifier hs-var">hrp</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679039504"><span class="hs-identifier hs-var">dp</span></a><span class="hs-special">)</span><span>
</span><a name="line-351"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-352"></a><span> </span><span class="hs-comment">-- Use properties of the checksum algorithm to find the locations of errors</span><span>
</span><a name="line-353"></a><span> </span><span class="hs-comment">-- within the human-readable part and data-with-checksum part.</span><span>
</span><a name="line-354"></a><span> </span><span class="hs-identifier">findErrorPositions</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-type">CharPosition</span></a><span class="hs-special">]</span><span>
</span><a name="line-355"></a><span> </span><a name="local-6989586621679038999"><a href="#local-6989586621679038999"><span class="hs-identifier">findErrorPositions</span></a></a><span> </span><a name="local-6989586621679039000"><a href="#local-6989586621679039000"><span class="hs-identifier">hrp</span></a></a><span> </span><a name="local-6989586621679039001"><a href="#local-6989586621679039001"><span class="hs-identifier">dcp</span></a></a><span>
</span><a name="line-356"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039002"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-357"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">sort</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="#local-6989586621679039003"><span class="hs-identifier hs-var">toCharPosition</span></a><span> </span><span class="hs-operator hs-var"><$></span><span> </span><a href="#local-6989586621679039004"><span class="hs-identifier hs-var">errorPositionsIgnoringSeparator</span></a><span>
</span><a name="line-358"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-359"></a><span> </span><a name="local-6989586621679039002"><a href="#local-6989586621679039002"><span class="hs-identifier">residue</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#polymod"><span class="hs-identifier hs-var">polymod</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToWords"><span class="hs-identifier hs-var">humanReadablePartToWords</span></a><span> </span><a href="#local-6989586621679039000"><span class="hs-identifier hs-var">hrp</span></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><a href="#local-6989586621679039001"><span class="hs-identifier hs-var">dcp</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-360"></a><span> </span><a name="local-6989586621679039003"><a href="#local-6989586621679039003"><span class="hs-identifier">toCharPosition</span></a></a><span> </span><a name="local-6989586621679039005"><a href="#local-6989586621679039005"><span class="hs-identifier">i</span></a></a><span>
</span><a name="line-361"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039005"><span class="hs-identifier hs-var">i</span></a><span> </span><span class="hs-operator hs-var"><</span><span> </span><span class="hs-identifier hs-var">T.length</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToText"><span class="hs-identifier hs-var">humanReadablePartToText</span></a><span> </span><a href="#local-6989586621679039000"><span class="hs-identifier hs-var">hrp</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><a href="#local-6989586621679039005"><span class="hs-identifier hs-var">i</span></a><span>
</span><a name="line-362"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="#local-6989586621679039005"><span class="hs-identifier hs-var">i</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier hs-var">separatorLength</span></a><span>
</span><a name="line-363"></a><span> </span><a name="local-6989586621679039004"><a href="#local-6989586621679039004"><span class="hs-identifier">errorPositionsIgnoringSeparator</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-364"></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier hs-var">separatorLength</span></a><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var"><$></span><span>
</span><a name="line-365"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#locateErrors"><span class="hs-identifier hs-var">locateErrors</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679039002"><span class="hs-identifier hs-var">residue</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679038998"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span class="hs-special">)</span><span>
</span><a name="line-366"></a><span>
</span><a name="line-367"></a><span class="hs-comment">-- | Decode a Bech32 string into a human-readable part and data part.</span><span>
</span><a name="line-368"></a><span class="hs-identifier">decode</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DecodingError"><span class="hs-identifier hs-type">DecodingError</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span class="hs-special">)</span><span>
</span><a name="line-369"></a><a name="decode"><a href="Codec.Binary.Bech32.Internal.html#decode"><span class="hs-identifier">decode</span></a></a><span> </span><a name="local-6989586621679039505"><a href="#local-6989586621679039505"><span class="hs-identifier">bech32</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><a name="line-370"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier hs-var">guardE</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">T.length</span><span> </span><a href="#local-6989586621679039505"><span class="hs-identifier hs-var">bech32</span></a><span> </span><span class="hs-operator hs-var"><=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#encodedStringMaxLength"><span class="hs-identifier hs-var">encodedStringMaxLength</span></a><span class="hs-special">)</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeTooLong"><span class="hs-identifier hs-var">StringToDecodeTooLong</span></a><span>
</span><a name="line-371"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#decodeLenient"><span class="hs-identifier hs-var">decodeLenient</span></a><span> </span><a href="#local-6989586621679039505"><span class="hs-identifier hs-var">bech32</span></a><span>
</span><a name="line-372"></a><span>
</span><a name="line-373"></a><span class="hs-comment">-- | Parse a data-with-checksum part, checking that each character is part</span><span>
</span><a name="line-374"></a><span class="hs-comment">-- of the supported character set. If one or more characters are not in the</span><span>
</span><a name="line-375"></a><span class="hs-comment">-- supported character set, return the list of illegal character positions.</span><span>
</span><a name="line-376"></a><span class="hs-identifier">parseDataWithChecksumPart</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Text</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-type">CharPosition</span></a><span class="hs-special">]</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span>
</span><a name="line-377"></a><a name="parseDataWithChecksumPart"><a href="Codec.Binary.Bech32.Internal.html#parseDataWithChecksumPart"><span class="hs-identifier">parseDataWithChecksumPart</span></a></a><span> </span><a name="local-6989586621679039506"><a href="#local-6989586621679039506"><span class="hs-identifier">dcpUnparsed</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-378"></a><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">mapM</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier hs-var">dataCharToWord</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><a href="#local-6989586621679039506"><span class="hs-identifier hs-var">dcpUnparsed</span></a><span> </span><span class="hs-keyword">of</span><span>
</span><a name="line-379"></a><span> </span><span class="hs-identifier hs-var">Nothing</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="#local-6989586621679039507"><span class="hs-identifier hs-var">invalidCharPositions</span></a><span>
</span><a name="line-380"></a><span> </span><span class="hs-identifier hs-var">Just</span><span> </span><a name="local-6989586621679039508"><a href="#local-6989586621679039508"><span class="hs-identifier">dcp</span></a></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-var">Right</span><span> </span><a href="#local-6989586621679039508"><span class="hs-identifier hs-var">dcp</span></a><span>
</span><a name="line-381"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-382"></a><span> </span><a name="local-6989586621679039507"><a href="#local-6989586621679039507"><span class="hs-identifier">invalidCharPositions</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-383"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><span class="hs-identifier hs-var">filter</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">isNothing</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">snd</span><span class="hs-special">)</span><span>
</span><a name="line-384"></a><span> </span><span class="hs-special">(</span><span class="hs-special">[</span><span class="hs-number">0</span><span> </span><span class="hs-glyph">..</span><span> </span><span class="hs-special">]</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">zip</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#dataCharToWord"><span class="hs-identifier hs-var">dataCharToWord</span></a><span> </span><span class="hs-operator hs-var"><$></span><span> </span><span class="hs-identifier hs-var">T.unpack</span><span> </span><a href="#local-6989586621679039506"><span class="hs-identifier hs-var">dcpUnparsed</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-385"></a><span>
</span><a name="line-386"></a><span class="hs-comment">-- | Convert an error encountered while parsing a human-readable part into a</span><span>
</span><a name="line-387"></a><span class="hs-comment">-- general decoding error.</span><span>
</span><a name="line-388"></a><span class="hs-identifier">humanReadablePartError</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartError"><span class="hs-identifier hs-type">HumanReadablePartError</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DecodingError"><span class="hs-identifier hs-type">DecodingError</span></a><span>
</span><a name="line-389"></a><a name="humanReadablePartError"><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartError"><span class="hs-identifier">humanReadablePartError</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-glyph">\</span><span class="hs-glyph">case</span><span>
</span><a name="line-390"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooLong"><span class="hs-identifier hs-var">HumanReadablePartTooLong</span></a><span> </span><span class="hs-glyph">-></span><span>
</span><a name="line-391"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier hs-var">StringToDecodeContainsInvalidChars</span></a><span>
</span><a name="line-392"></a><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMaxLength"><span class="hs-identifier hs-var">humanReadablePartMaxLength</span></a><span class="hs-special">]</span><span>
</span><a name="line-393"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartTooShort"><span class="hs-identifier hs-var">HumanReadablePartTooShort</span></a><span> </span><span class="hs-glyph">-></span><span>
</span><a name="line-394"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier hs-var">StringToDecodeContainsInvalidChars</span></a><span>
</span><a name="line-395"></a><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-var">CharPosition</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMinLength"><span class="hs-identifier hs-var">humanReadablePartMinLength</span></a><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span class="hs-special">]</span><span>
</span><a name="line-396"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePartContainsInvalidChars"><span class="hs-identifier hs-var">HumanReadablePartContainsInvalidChars</span></a><span> </span><a name="local-6989586621679039509"><a href="#local-6989586621679039509"><span class="hs-identifier">ps</span></a></a><span> </span><span class="hs-glyph">-></span><span>
</span><a name="line-397"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier hs-var">StringToDecodeContainsInvalidChars</span></a><span> </span><a href="#local-6989586621679039509"><span class="hs-identifier hs-var">ps</span></a><span>
</span><a name="line-398"></a><span>
</span><a name="line-399"></a><span class="hs-comment">-- | Represents the set of errors that may occur while decoding a Bech32</span><span>
</span><a name="line-400"></a><span class="hs-comment">-- string with the 'decode' function.</span><span>
</span><a name="line-401"></a><span class="hs-keyword">data</span><span> </span><a name="DecodingError"><a href="Codec.Binary.Bech32.Internal.html#DecodingError"><span class="hs-identifier">DecodingError</span></a></a><span>
</span><a name="line-402"></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="StringToDecodeTooLong"><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeTooLong"><span class="hs-identifier">StringToDecodeTooLong</span></a></a><span>
</span><a name="line-403"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="StringToDecodeTooShort"><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeTooShort"><span class="hs-identifier">StringToDecodeTooShort</span></a></a><span>
</span><a name="line-404"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="StringToDecodeHasMixedCase"><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeHasMixedCase"><span class="hs-identifier">StringToDecodeHasMixedCase</span></a></a><span>
</span><a name="line-405"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="StringToDecodeMissingSeparatorChar"><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeMissingSeparatorChar"><span class="hs-identifier">StringToDecodeMissingSeparatorChar</span></a></a><span>
</span><a name="line-406"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="StringToDecodeContainsInvalidChars"><a href="Codec.Binary.Bech32.Internal.html#StringToDecodeContainsInvalidChars"><span class="hs-identifier">StringToDecodeContainsInvalidChars</span></a></a><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier hs-type">CharPosition</span></a><span class="hs-special">]</span><span>
</span><a name="line-407"></a><span> </span><span class="hs-comment">-- ^ In cases where it is possible to determine the exact locations of</span><span>
</span><a name="line-408"></a><span> </span><span class="hs-comment">-- erroneous characters, this list will encode those locations. Clients</span><span>
</span><a name="line-409"></a><span> </span><span class="hs-comment">-- can use this information to provide user feedback. In cases where it</span><span>
</span><a name="line-410"></a><span> </span><span class="hs-comment">-- isn't possible to reliably determine the locations of erroneous</span><span>
</span><a name="line-411"></a><span> </span><span class="hs-comment">-- characters, this list will be empty.</span><span>
</span><a name="line-412"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Show</span><span class="hs-special">)</span><span>
</span><a name="line-413"></a><span>
</span><a name="line-414"></a><span class="hs-comment">-- | The separator character. This character appears immediately after the</span><span>
</span><a name="line-415"></a><span class="hs-comment">-- human-readable part and before the data part.</span><span>
</span><a name="line-416"></a><span class="hs-identifier">separatorChar</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Char</span><span>
</span><a name="line-417"></a><a name="separatorChar"><a href="Codec.Binary.Bech32.Internal.html#separatorChar"><span class="hs-identifier">separatorChar</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-char">'1'</span><span>
</span><a name="line-418"></a><span>
</span><a name="line-419"></a><span class="hs-comment">-- | The length of the checksum portion of an encoded string, in bytes.</span><span>
</span><a name="line-420"></a><span class="hs-identifier">checksumLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-421"></a><a name="checksumLength"><a href="Codec.Binary.Bech32.Internal.html#checksumLength"><span class="hs-identifier">checksumLength</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">6</span><span>
</span><a name="line-422"></a><span>
</span><a name="line-423"></a><span class="hs-comment">-- | The length of the separator portion of an encoded string, in bytes.</span><span>
</span><a name="line-424"></a><span class="hs-identifier">separatorLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-425"></a><a name="separatorLength"><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier">separatorLength</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-426"></a><span>
</span><a name="line-427"></a><span class="hs-comment">-- | The maximum length of an encoded string, in bytes. This length includes the</span><span>
</span><a name="line-428"></a><span class="hs-comment">-- human-readable part, the separator character, the encoded data portion,</span><span>
</span><a name="line-429"></a><span class="hs-comment">-- and the checksum.</span><span>
</span><a name="line-430"></a><span class="hs-identifier">encodedStringMaxLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-431"></a><a name="encodedStringMaxLength"><a href="Codec.Binary.Bech32.Internal.html#encodedStringMaxLength"><span class="hs-identifier">encodedStringMaxLength</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">90</span><span>
</span><a name="line-432"></a><span>
</span><a name="line-433"></a><span class="hs-comment">-- | The minimum length of an encoded string, in bytes. This length includes the</span><span>
</span><a name="line-434"></a><span class="hs-comment">-- human-readable part, the separator character, the encoded data portion,</span><span>
</span><a name="line-435"></a><span class="hs-comment">-- and the checksum.</span><span>
</span><a name="line-436"></a><span class="hs-identifier">encodedStringMinLength</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-437"></a><a name="encodedStringMinLength"><a href="Codec.Binary.Bech32.Internal.html#encodedStringMinLength"><span class="hs-identifier">encodedStringMinLength</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-438"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartMinLength"><span class="hs-identifier hs-var">humanReadablePartMinLength</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#separatorLength"><span class="hs-identifier hs-var">separatorLength</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#checksumLength"><span class="hs-identifier hs-var">checksumLength</span></a><span>
</span><a name="line-439"></a><span>
</span><a name="line-440"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Character Manipulation
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-443"></a><span>
</span><a name="line-444"></a><span class="hs-comment">-- | The zero-based position of a character in a string, counting from the left.</span><span>
</span><a name="line-445"></a><span class="hs-keyword">newtype</span><span> </span><a name="CharPosition"><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier">CharPosition</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="CharPosition"><a href="Codec.Binary.Bech32.Internal.html#CharPosition"><span class="hs-identifier">CharPosition</span></a></a><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-446"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Ord</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Show</span><span class="hs-special">)</span><span>
</span><a name="line-447"></a><span>
</span><a name="line-448"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Bit Manipulation
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-451"></a><span>
</span><a name="line-452"></a><span class="hs-special">(</span><span class="hs-operator">.>>.</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-operator">.<<.</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Bits</span><span> </span><a href="#local-6989586621679037087"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">=></span><span> </span><a href="#local-6989586621679037087"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679037087"><span class="hs-identifier hs-type">a</span></a><span>
</span><a name="line-453"></a><span class="hs-special">(</span><a name=".%3E%3E."><a href="Codec.Binary.Bech32.Internal.html#.%3E%3E."><span class="hs-operator">.>>.</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">unsafeShiftR</span><span>
</span><a name="line-454"></a><span class="hs-special">(</span><a name=".%3C%3C."><a href="Codec.Binary.Bech32.Internal.html#.%3C%3C."><span class="hs-operator">.<<.</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">unsafeShiftL</span><span>
</span><a name="line-455"></a><span>
</span><a name="line-456"></a><span class="hs-keyword">newtype</span><span> </span><a name="Word5"><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier">Word5</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="Word5"><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier">Word5</span></a></a><span> </span><span class="hs-special">{</span><span> </span><a name="getWord5"><a href="Codec.Binary.Bech32.Internal.html#getWord5"><span class="hs-identifier">getWord5</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Word8</span><span> </span><span class="hs-special">}</span><span>
</span><a name="line-457"></a><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Eq</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Ord</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Show</span><span class="hs-special">)</span><span>
</span><a name="line-458"></a><span>
</span><a name="line-459"></a><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">Bounded</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-460"></a><span> </span><a name="local-8214565720323790309"><span class="hs-identifier">minBound</span></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-number">0</span><span>
</span><a name="line-461"></a><span> </span><a name="local-8214565720323790308"><span class="hs-identifier">maxBound</span></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-number">31</span><span>
</span><a name="line-462"></a><span>
</span><a name="line-463"></a><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">Enum</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-464"></a><span> </span><a name="local-8214565720323790311"><span class="hs-identifier">toEnum</span></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier hs-var">word5</span></a><span>
</span><a name="line-465"></a><span> </span><a name="local-8214565720323790310"><span class="hs-identifier">fromEnum</span></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#fromWord5"><span class="hs-identifier hs-var">fromWord5</span></a><span>
</span><a name="line-466"></a><span>
</span><a name="line-467"></a><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">Ix</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-468"></a><span> </span><a name="local-8214565720323784765"><span class="hs-identifier">range</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679036292"><a href="#local-6989586621679036292"><span class="hs-identifier">m</span></a></a><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679036293"><a href="#local-6989586621679036293"><span class="hs-identifier">n</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">range</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679036292"><span class="hs-identifier hs-var">m</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679036293"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span>
</span><a name="line-469"></a><span> </span><a name="local-8214565720323784764"><span class="hs-identifier">index</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679036294"><a href="#local-6989586621679036294"><span class="hs-identifier">m</span></a></a><span class="hs-special">,</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679036295"><a href="#local-6989586621679036295"><span class="hs-identifier">n</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679036296"><a href="#local-6989586621679036296"><span class="hs-identifier">i</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">index</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679036294"><span class="hs-identifier hs-var">m</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679036295"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679036296"><span class="hs-identifier hs-var">i</span></a><span>
</span><a name="line-470"></a><span> </span><a name="local-8214565720323784763"><span class="hs-identifier">inRange</span></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679036297"><a href="#local-6989586621679036297"><span class="hs-identifier">m</span></a></a><span class="hs-special">,</span><a name="local-6989586621679036298"><a href="#local-6989586621679036298"><span class="hs-identifier">n</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679036299"><a href="#local-6989586621679036299"><span class="hs-identifier">i</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679036297"><span class="hs-identifier hs-var">m</span></a><span> </span><span class="hs-operator hs-var"><=</span><span> </span><a href="#local-6989586621679036299"><span class="hs-identifier hs-var">i</span></a><span> </span><span class="hs-operator hs-var">&&</span><span> </span><a href="#local-6989586621679036299"><span class="hs-identifier hs-var">i</span></a><span> </span><span class="hs-operator hs-var"><=</span><span> </span><a href="#local-6989586621679036298"><span class="hs-identifier hs-var">n</span></a><span>
</span><a name="line-471"></a><span>
</span><a name="line-472"></a><span class="hs-identifier">word5</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Integral</span><span> </span><a href="#local-6989586621679037086"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">=></span><span> </span><a href="#local-6989586621679037086"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span>
</span><a name="line-473"></a><a name="word5"><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier">word5</span></a></a><span> </span><a name="local-6989586621679039510"><a href="#local-6989586621679039510"><span class="hs-identifier">x</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679039510"><span class="hs-identifier hs-var">x</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><span class="hs-number">31</span><span class="hs-special">)</span><span>
</span><a name="line-474"></a><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">word5</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-475"></a><span class="hs-pragma">{-# SPECIALIZE INLINE</span><span> </span><span class="hs-pragma">word5</span><span> </span><span class="hs-pragma">::</span><span> </span><span class="hs-pragma">Word8</span><span> </span><span class="hs-pragma">-></span><span> </span><span class="hs-pragma">Word5</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-476"></a><span>
</span><a name="line-477"></a><span class="hs-identifier">fromWord5</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Integral</span><span> </span><a href="#local-6989586621679036580"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">=></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679036580"><span class="hs-identifier hs-type">a</span></a><span>
</span><a name="line-478"></a><a name="fromWord5"><a href="Codec.Binary.Bech32.Internal.html#fromWord5"><span class="hs-identifier">fromWord5</span></a></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><a name="local-6989586621679039511"><a href="#local-6989586621679039511"><span class="hs-identifier">x</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679039511"><span class="hs-identifier hs-var">x</span></a><span>
</span><a name="line-479"></a><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">fromWord5</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-480"></a><span class="hs-pragma">{-# SPECIALIZE INLINE</span><span> </span><span class="hs-pragma">fromWord5</span><span> </span><span class="hs-pragma">::</span><span> </span><span class="hs-pragma">Word5</span><span> </span><span class="hs-pragma">-></span><span> </span><span class="hs-pragma">Word8</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-481"></a><span>
</span><a name="line-482"></a><span class="hs-identifier">polymod</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Word</span><span>
</span><a name="line-483"></a><a name="polymod"><a href="Codec.Binary.Bech32.Internal.html#polymod"><span class="hs-identifier">polymod</span></a></a><span> </span><a name="local-6989586621679039512"><a href="#local-6989586621679039512"><span class="hs-identifier">values</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">foldl'</span><span> </span><a href="#local-6989586621679039513"><span class="hs-identifier hs-var">go</span></a><span> </span><span class="hs-number">1</span><span> </span><a href="#local-6989586621679039512"><span class="hs-identifier hs-var">values</span></a><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><span class="hs-number">0x3fffffff</span><span>
</span><a name="line-484"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-485"></a><span> </span><a name="local-6989586621679039513"><a href="#local-6989586621679039513"><span class="hs-identifier">go</span></a></a><span> </span><a name="local-6989586621679039514"><a href="#local-6989586621679039514"><span class="hs-identifier">chk</span></a></a><span> </span><a name="local-6989586621679039515"><a href="#local-6989586621679039515"><span class="hs-identifier">value</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-486"></a><span> </span><span class="hs-identifier hs-var">foldl'</span><span> </span><span class="hs-identifier hs-var">xor</span><span> </span><a href="#local-6989586621679039516"><span class="hs-identifier hs-var">chk'</span></a><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039518"><span class="hs-identifier hs-var">g</span></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679039518"><a href="#local-6989586621679039518"><span class="hs-identifier">g</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679039519"><a href="#local-6989586621679039519"><span class="hs-identifier">i</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph"><-</span><span> </span><span class="hs-identifier hs-var">zip</span><span> </span><a href="#local-6989586621679039517"><span class="hs-identifier hs-var">generator</span></a><span> </span><span class="hs-special">[</span><span class="hs-number">25</span><span> </span><span class="hs-glyph">..</span><span class="hs-special">]</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">testBit</span><span> </span><a href="#local-6989586621679039514"><span class="hs-identifier hs-var">chk</span></a><span> </span><a href="#local-6989586621679039519"><span class="hs-identifier hs-var">i</span></a><span class="hs-special">]</span><span>
</span><a name="line-487"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-488"></a><span> </span><a name="local-6989586621679039516"><a href="#local-6989586621679039516"><span class="hs-identifier">chk'</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039514"><span class="hs-identifier hs-var">chk</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3C%3C."><span class="hs-operator hs-var">.<<.</span></a><span> </span><span class="hs-number">5</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#fromWord5"><span class="hs-identifier hs-var">fromWord5</span></a><span> </span><a href="#local-6989586621679039515"><span class="hs-identifier hs-var">value</span></a><span class="hs-special">)</span><span>
</span><a name="line-489"></a><span> </span><a name="local-6989586621679039517"><a href="#local-6989586621679039517"><span class="hs-identifier">generator</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-490"></a><span> </span><span class="hs-special">[</span><span> </span><span class="hs-number">0x3b6a57b2</span><span>
</span><a name="line-491"></a><span> </span><span class="hs-special">,</span><span> </span><span class="hs-number">0x26508e6d</span><span>
</span><a name="line-492"></a><span> </span><span class="hs-special">,</span><span> </span><span class="hs-number">0x1ea119fa</span><span>
</span><a name="line-493"></a><span> </span><span class="hs-special">,</span><span> </span><span class="hs-number">0x3d4233dd</span><span>
</span><a name="line-494"></a><span> </span><span class="hs-special">,</span><span> </span><span class="hs-number">0x2a1462b3</span><span> </span><span class="hs-special">]</span><span>
</span><a name="line-495"></a><span>
</span><a name="line-496"></a><span class="hs-identifier">createChecksum</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#DataPart"><span class="hs-identifier hs-type">DataPart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span>
</span><a name="line-497"></a><a name="createChecksum"><a href="Codec.Binary.Bech32.Internal.html#createChecksum"><span class="hs-identifier">createChecksum</span></a></a><span> </span><a name="local-6989586621679039520"><a href="#local-6989586621679039520"><span class="hs-identifier">hrp</span></a></a><span> </span><a name="local-6989586621679039521"><a href="#local-6989586621679039521"><span class="hs-identifier">dat</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier hs-var">word5</span></a><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039523"><span class="hs-identifier hs-var">polymod'</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3E%3E."><span class="hs-operator hs-var">.>>.</span></a><span> </span><a href="#local-6989586621679039524"><span class="hs-identifier hs-var">i</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><a name="local-6989586621679039524"><a href="#local-6989586621679039524"><span class="hs-identifier">i</span></a></a><span> </span><span class="hs-glyph"><-</span><span> </span><span class="hs-special">[</span><span class="hs-number">25</span><span class="hs-special">,</span><span> </span><span class="hs-number">20</span><span> </span><span class="hs-glyph">..</span><span> </span><span class="hs-number">0</span><span class="hs-special">]</span><span class="hs-special">]</span><span>
</span><a name="line-498"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-499"></a><span> </span><a name="local-6989586621679039522"><a href="#local-6989586621679039522"><span class="hs-identifier">values</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToWords"><span class="hs-identifier hs-var">humanReadablePartToWords</span></a><span> </span><a href="#local-6989586621679039520"><span class="hs-identifier hs-var">hrp</span></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#dataPartToWords"><span class="hs-identifier hs-var">dataPartToWords</span></a><span> </span><a href="#local-6989586621679039521"><span class="hs-identifier hs-var">dat</span></a><span>
</span><a name="line-500"></a><span> </span><a name="local-6989586621679039523"><a href="#local-6989586621679039523"><span class="hs-identifier">polymod'</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-501"></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#polymod"><span class="hs-identifier hs-var">polymod</span></a><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039522"><span class="hs-identifier hs-var">values</span></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-var">Word5</span></a><span> </span><span class="hs-special">[</span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">]</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-502"></a><span>
</span><a name="line-503"></a><span class="hs-identifier">verifyChecksum</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#HumanReadablePart"><span class="hs-identifier hs-type">HumanReadablePart</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Bool</span><span>
</span><a name="line-504"></a><a name="verifyChecksum"><a href="Codec.Binary.Bech32.Internal.html#verifyChecksum"><span class="hs-identifier">verifyChecksum</span></a></a><span> </span><a name="local-6989586621679039525"><a href="#local-6989586621679039525"><span class="hs-identifier">hrp</span></a></a><span> </span><a name="local-6989586621679039526"><a href="#local-6989586621679039526"><span class="hs-identifier">dat</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#polymod"><span class="hs-identifier hs-var">polymod</span></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#humanReadablePartToWords"><span class="hs-identifier hs-var">humanReadablePartToWords</span></a><span> </span><a href="#local-6989586621679039525"><span class="hs-identifier hs-var">hrp</span></a><span> </span><span class="hs-operator hs-var">++</span><span> </span><a href="#local-6989586621679039526"><span class="hs-identifier hs-var">dat</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-505"></a><span>
</span><a name="line-506"></a><span class="hs-keyword">type</span><span> </span><a name="Pad"><a href="Codec.Binary.Bech32.Internal.html#Pad"><span class="hs-identifier">Pad</span></a></a><span> </span><a name="local-6989586621679028936"><a href="#local-6989586621679028936"><span class="hs-identifier">f</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Word</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word</span><span class="hs-special">]</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679028936"><span class="hs-identifier hs-type">f</span></a><span> </span><span class="hs-special">[</span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word</span><span class="hs-special">]</span><span class="hs-special">]</span><span>
</span><a name="line-507"></a><span>
</span><a name="line-508"></a><span class="hs-identifier">yesPadding</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Pad"><span class="hs-identifier hs-type">Pad</span></a><span> </span><span class="hs-identifier hs-type">Identity</span><span>
</span><a name="line-509"></a><a name="yesPadding"><a href="Codec.Binary.Bech32.Internal.html#yesPadding"><span class="hs-identifier">yesPadding</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679039527"><a href="#local-6989586621679039527"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">return</span><span> </span><a href="#local-6989586621679039527"><span class="hs-identifier hs-var">result</span></a><span>
</span><a name="line-510"></a><span class="hs-identifier">yesPadding</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679039528"><a href="#local-6989586621679039528"><span class="hs-identifier">padValue</span></a></a><span> </span><a name="local-6989586621679039529"><a href="#local-6989586621679039529"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">return</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039528"><span class="hs-identifier hs-var">padValue</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">:</span><span> </span><a href="#local-6989586621679039529"><span class="hs-identifier hs-var">result</span></a><span>
</span><a name="line-511"></a><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">yesPadding</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-512"></a><span>
</span><a name="line-513"></a><span class="hs-identifier">noPadding</span><span> </span><span class="hs-glyph">::</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Pad"><span class="hs-identifier hs-type">Pad</span></a><span> </span><span class="hs-identifier hs-type">Maybe</span><span>
</span><a name="line-514"></a><a name="noPadding"><a href="Codec.Binary.Bech32.Internal.html#noPadding"><span class="hs-identifier">noPadding</span></a></a><span> </span><a name="local-6989586621679039530"><a href="#local-6989586621679039530"><span class="hs-identifier">frombits</span></a></a><span> </span><a name="local-6989586621679039531"><a href="#local-6989586621679039531"><span class="hs-identifier">bits</span></a></a><span> </span><a name="local-6989586621679039532"><a href="#local-6989586621679039532"><span class="hs-identifier">padValue</span></a></a><span> </span><a name="local-6989586621679039533"><a href="#local-6989586621679039533"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><a name="line-515"></a><span> </span><span class="hs-identifier hs-var">guard</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="#local-6989586621679039531"><span class="hs-identifier hs-var">bits</span></a><span> </span><span class="hs-operator hs-var"><</span><span> </span><a href="#local-6989586621679039530"><span class="hs-identifier hs-var">frombits</span></a><span> </span><span class="hs-operator hs-var">&&</span><span> </span><a href="#local-6989586621679039532"><span class="hs-identifier hs-var">padValue</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-516"></a><span> </span><span class="hs-identifier hs-var">return</span><span> </span><a href="#local-6989586621679039533"><span class="hs-identifier hs-var">result</span></a><span>
</span><a name="line-517"></a><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">noPadding</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-518"></a><span>
</span><a name="line-519"></a><span class="hs-comment">-- | Big-endian conversion of a word string from base '2^frombits' to base</span><span>
</span><a name="line-520"></a><span class="hs-comment">-- '2^tobits'. The 'frombits' and 'twobits' parameters must be positive, while</span><span>
</span><a name="line-521"></a><span class="hs-comment">-- '2^frombits' and '2^tobits' must be smaller than the size of 'Word'. Every</span><span>
</span><a name="line-522"></a><span class="hs-comment">-- value in 'dat' must be strictly smaller than '2^frombits'.</span><span>
</span><a name="line-523"></a><span class="hs-identifier">convertBits</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Functor</span><span> </span><a href="#local-6989586621679036579"><span class="hs-identifier hs-type">f</span></a><span> </span><span class="hs-glyph">=></span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#Pad"><span class="hs-identifier hs-type">Pad</span></a><span> </span><a href="#local-6989586621679036579"><span class="hs-identifier hs-type">f</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679036579"><span class="hs-identifier hs-type">f</span></a><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word</span><span class="hs-special">]</span><span>
</span><a name="line-524"></a><a name="convertBits"><a href="Codec.Binary.Bech32.Internal.html#convertBits"><span class="hs-identifier">convertBits</span></a></a><span> </span><a name="local-6989586621679039534"><a href="#local-6989586621679039534"><span class="hs-identifier">dat</span></a></a><span> </span><a name="local-6989586621679039535"><a href="#local-6989586621679039535"><span class="hs-identifier">frombits</span></a></a><span> </span><a name="local-6989586621679039536"><a href="#local-6989586621679039536"><span class="hs-identifier">tobits</span></a></a><span> </span><a name="local-6989586621679039537"><a href="#local-6989586621679039537"><span class="hs-identifier">pad</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">concat</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">reverse</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><a href="#local-6989586621679039538"><span class="hs-identifier hs-var">go</span></a><span> </span><a href="#local-6989586621679039534"><span class="hs-identifier hs-var">dat</span></a><span> </span><span class="hs-number">0</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-525"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-526"></a><span> </span><a name="local-6989586621679039538"><a href="#local-6989586621679039538"><span class="hs-identifier">go</span></a></a><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><a name="local-6989586621679039540"><a href="#local-6989586621679039540"><span class="hs-identifier">acc</span></a></a><span> </span><a name="local-6989586621679039541"><a href="#local-6989586621679039541"><span class="hs-identifier">bits</span></a></a><span> </span><a name="local-6989586621679039542"><a href="#local-6989586621679039542"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-527"></a><span> </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679039543"><a href="#local-6989586621679039543"><span class="hs-identifier">padValue</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039540"><span class="hs-identifier hs-var">acc</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3C%3C."><span class="hs-operator hs-var">.<<.</span></a><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039536"><span class="hs-identifier hs-var">tobits</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039541"><span class="hs-identifier hs-var">bits</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><a href="#local-6989586621679039539"><span class="hs-identifier hs-var">maxv</span></a><span>
</span><a name="line-528"></a><span> </span><span class="hs-keyword">in</span><span> </span><a href="#local-6989586621679039537"><span class="hs-identifier hs-var">pad</span></a><span> </span><a href="#local-6989586621679039535"><span class="hs-identifier hs-var">frombits</span></a><span> </span><a href="#local-6989586621679039541"><span class="hs-identifier hs-var">bits</span></a><span> </span><a href="#local-6989586621679039543"><span class="hs-identifier hs-var">padValue</span></a><span> </span><a href="#local-6989586621679039542"><span class="hs-identifier hs-var">result</span></a><span>
</span><a name="line-529"></a><span> </span><span class="hs-identifier">go</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679039544"><a href="#local-6989586621679039544"><span class="hs-identifier">value</span></a></a><span class="hs-glyph">:</span><a name="local-6989586621679039545"><a href="#local-6989586621679039545"><span class="hs-identifier">dat'</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679039546"><a href="#local-6989586621679039546"><span class="hs-identifier">acc</span></a></a><span> </span><a name="local-6989586621679039547"><a href="#local-6989586621679039547"><span class="hs-identifier">bits</span></a></a><span> </span><a name="local-6989586621679039548"><a href="#local-6989586621679039548"><span class="hs-identifier">result</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-530"></a><span> </span><a href="#local-6989586621679039538"><span class="hs-identifier hs-var">go</span></a><span> </span><a href="#local-6989586621679039545"><span class="hs-identifier hs-var">dat'</span></a><span> </span><a href="#local-6989586621679039549"><span class="hs-identifier hs-var">acc'</span></a><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039550"><span class="hs-identifier hs-var">bits'</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">rem</span><span class="hs-special">`</span><span> </span><a href="#local-6989586621679039536"><span class="hs-identifier hs-var">tobits</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039551"><span class="hs-identifier hs-var">result'</span></a><span> </span><span class="hs-glyph">:</span><span> </span><a href="#local-6989586621679039548"><span class="hs-identifier hs-var">result</span></a><span class="hs-special">)</span><span>
</span><a name="line-531"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-532"></a><span> </span><a name="local-6989586621679039549"><a href="#local-6989586621679039549"><span class="hs-identifier">acc'</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039546"><span class="hs-identifier hs-var">acc</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3C%3C."><span class="hs-operator hs-var">.<<.</span></a><span> </span><a href="#local-6989586621679039535"><span class="hs-identifier hs-var">frombits</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.|.</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679039544"><span class="hs-identifier hs-var">value</span></a><span>
</span><a name="line-533"></a><span> </span><a name="local-6989586621679039550"><a href="#local-6989586621679039550"><span class="hs-identifier">bits'</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039547"><span class="hs-identifier hs-var">bits</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039535"><span class="hs-identifier hs-var">frombits</span></a><span>
</span><a name="line-534"></a><span> </span><a name="local-6989586621679039551"><a href="#local-6989586621679039551"><span class="hs-identifier">result'</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-535"></a><span> </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039549"><span class="hs-identifier hs-var">acc'</span></a><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3E%3E."><span class="hs-operator hs-var">.>>.</span></a><span> </span><a href="#local-6989586621679039552"><span class="hs-identifier hs-var">b</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><a href="#local-6989586621679039539"><span class="hs-identifier hs-var">maxv</span></a><span>
</span><a name="line-536"></a><span> </span><span class="hs-glyph">|</span><span> </span><a name="local-6989586621679039552"><a href="#local-6989586621679039552"><span class="hs-identifier">b</span></a></a><span> </span><span class="hs-glyph"><-</span><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039550"><span class="hs-identifier hs-var">bits'</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039536"><span class="hs-identifier hs-var">tobits</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679039550"><span class="hs-identifier hs-var">bits'</span></a><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">2</span><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="#local-6989586621679039536"><span class="hs-identifier hs-var">tobits</span></a><span> </span><span class="hs-glyph">..</span><span> </span><span class="hs-number">0</span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span>
</span><a name="line-537"></a><span> </span><a name="local-6989586621679039539"><a href="#local-6989586621679039539"><span class="hs-identifier">maxv</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-number">1</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#.%3C%3C."><span class="hs-operator hs-var">.<<.</span></a><span> </span><a href="#local-6989586621679039536"><span class="hs-identifier hs-var">tobits</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span>
</span><a name="line-538"></a><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">convertBits</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><a name="line-539"></a><span>
</span><a name="line-540"></a><span class="hs-identifier">toBase32</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word8</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span>
</span><a name="line-541"></a><a name="toBase32"><a href="Codec.Binary.Bech32.Internal.html#toBase32"><span class="hs-identifier">toBase32</span></a></a><span> </span><a name="local-6989586621679039553"><a href="#local-6989586621679039553"><span class="hs-identifier">dat</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-542"></a><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#word5"><span class="hs-identifier hs-var">word5</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">runIdentity</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#convertBits"><span class="hs-identifier hs-var">convertBits</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679039553"><span class="hs-identifier hs-var">dat</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">8</span><span> </span><span class="hs-number">5</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#yesPadding"><span class="hs-identifier hs-var">yesPadding</span></a><span>
</span><a name="line-543"></a><span>
</span><a name="line-544"></a><span class="hs-identifier">toBase256</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><a href="Codec.Binary.Bech32.Internal.html#Word5"><span class="hs-identifier hs-type">Word5</span></a><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Word8</span><span class="hs-special">]</span><span>
</span><a name="line-545"></a><a name="toBase256"><a href="Codec.Binary.Bech32.Internal.html#toBase256"><span class="hs-identifier">toBase256</span></a></a><span> </span><a name="local-6989586621679039554"><a href="#local-6989586621679039554"><span class="hs-identifier">dat</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-546"></a><span> </span><span class="hs-identifier hs-var">map</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><span class="hs-operator hs-var"><$></span><span> </span><a href="Codec.Binary.Bech32.Internal.html#convertBits"><span class="hs-identifier hs-var">convertBits</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#fromWord5"><span class="hs-identifier hs-var">fromWord5</span></a><span> </span><a href="#local-6989586621679039554"><span class="hs-identifier hs-var">dat</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">5</span><span> </span><span class="hs-number">8</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#noPadding"><span class="hs-identifier hs-var">noPadding</span></a><span>
</span><a name="line-547"></a><span>
</span><a name="line-548"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Error Location Detection
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-551"></a><span>
</span><a name="line-552"></a><span class="hs-comment">-- | This lookup table is a Haskell translation of the reference JavaScript</span><span>
</span><a name="line-553"></a><span class="hs-comment">-- implementation here: https://git.io/fj8FR</span><span>
</span><a name="line-554"></a><span class="hs-identifier">gf_1024_exp</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Array</span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-555"></a><a name="gf_1024_exp"><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier">gf_1024_exp</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Arr.listArray</span><span> </span><span class="hs-special">(</span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span> </span><span class="hs-special">[</span><span>
</span><a name="line-556"></a><span> </span><span class="hs-number">1</span><span class="hs-special">,</span><span> </span><span class="hs-number">303</span><span class="hs-special">,</span><span> </span><span class="hs-number">635</span><span class="hs-special">,</span><span> </span><span class="hs-number">446</span><span class="hs-special">,</span><span> </span><span class="hs-number">997</span><span class="hs-special">,</span><span> </span><span class="hs-number">640</span><span class="hs-special">,</span><span> </span><span class="hs-number">121</span><span class="hs-special">,</span><span> </span><span class="hs-number">142</span><span class="hs-special">,</span><span> </span><span class="hs-number">959</span><span class="hs-special">,</span><span> </span><span class="hs-number">420</span><span class="hs-special">,</span><span> </span><span class="hs-number">350</span><span class="hs-special">,</span><span> </span><span class="hs-number">438</span><span class="hs-special">,</span><span> </span><span class="hs-number">166</span><span class="hs-special">,</span><span> </span><span class="hs-number">39</span><span class="hs-special">,</span><span> </span><span class="hs-number">543</span><span class="hs-special">,</span><span>
</span><a name="line-557"></a><span> </span><span class="hs-number">335</span><span class="hs-special">,</span><span> </span><span class="hs-number">831</span><span class="hs-special">,</span><span> </span><span class="hs-number">691</span><span class="hs-special">,</span><span> </span><span class="hs-number">117</span><span class="hs-special">,</span><span> </span><span class="hs-number">632</span><span class="hs-special">,</span><span> </span><span class="hs-number">719</span><span class="hs-special">,</span><span> </span><span class="hs-number">97</span><span class="hs-special">,</span><span> </span><span class="hs-number">107</span><span class="hs-special">,</span><span> </span><span class="hs-number">374</span><span class="hs-special">,</span><span> </span><span class="hs-number">558</span><span class="hs-special">,</span><span> </span><span class="hs-number">797</span><span class="hs-special">,</span><span> </span><span class="hs-number">54</span><span class="hs-special">,</span><span> </span><span class="hs-number">150</span><span class="hs-special">,</span><span> </span><span class="hs-number">858</span><span class="hs-special">,</span><span> </span><span class="hs-number">877</span><span class="hs-special">,</span><span>
</span><a name="line-558"></a><span> </span><span class="hs-number">724</span><span class="hs-special">,</span><span> </span><span class="hs-number">1013</span><span class="hs-special">,</span><span> </span><span class="hs-number">294</span><span class="hs-special">,</span><span> </span><span class="hs-number">23</span><span class="hs-special">,</span><span> </span><span class="hs-number">354</span><span class="hs-special">,</span><span> </span><span class="hs-number">61</span><span class="hs-special">,</span><span> </span><span class="hs-number">164</span><span class="hs-special">,</span><span> </span><span class="hs-number">633</span><span class="hs-special">,</span><span> </span><span class="hs-number">992</span><span class="hs-special">,</span><span> </span><span class="hs-number">538</span><span class="hs-special">,</span><span> </span><span class="hs-number">469</span><span class="hs-special">,</span><span> </span><span class="hs-number">659</span><span class="hs-special">,</span><span> </span><span class="hs-number">174</span><span class="hs-special">,</span><span> </span><span class="hs-number">868</span><span class="hs-special">,</span><span> </span><span class="hs-number">184</span><span class="hs-special">,</span><span>
</span><a name="line-559"></a><span> </span><span class="hs-number">809</span><span class="hs-special">,</span><span> </span><span class="hs-number">766</span><span class="hs-special">,</span><span> </span><span class="hs-number">563</span><span class="hs-special">,</span><span> </span><span class="hs-number">866</span><span class="hs-special">,</span><span> </span><span class="hs-number">851</span><span class="hs-special">,</span><span> </span><span class="hs-number">257</span><span class="hs-special">,</span><span> </span><span class="hs-number">520</span><span class="hs-special">,</span><span> </span><span class="hs-number">45</span><span class="hs-special">,</span><span> </span><span class="hs-number">770</span><span class="hs-special">,</span><span> </span><span class="hs-number">535</span><span class="hs-special">,</span><span> </span><span class="hs-number">524</span><span class="hs-special">,</span><span> </span><span class="hs-number">408</span><span class="hs-special">,</span><span> </span><span class="hs-number">213</span><span class="hs-special">,</span><span> </span><span class="hs-number">436</span><span class="hs-special">,</span><span> </span><span class="hs-number">760</span><span class="hs-special">,</span><span>
</span><a name="line-560"></a><span> </span><span class="hs-number">472</span><span class="hs-special">,</span><span> </span><span class="hs-number">330</span><span class="hs-special">,</span><span> </span><span class="hs-number">933</span><span class="hs-special">,</span><span> </span><span class="hs-number">799</span><span class="hs-special">,</span><span> </span><span class="hs-number">616</span><span class="hs-special">,</span><span> </span><span class="hs-number">361</span><span class="hs-special">,</span><span> </span><span class="hs-number">15</span><span class="hs-special">,</span><span> </span><span class="hs-number">391</span><span class="hs-special">,</span><span> </span><span class="hs-number">756</span><span class="hs-special">,</span><span> </span><span class="hs-number">814</span><span class="hs-special">,</span><span> </span><span class="hs-number">58</span><span class="hs-special">,</span><span> </span><span class="hs-number">608</span><span class="hs-special">,</span><span> </span><span class="hs-number">554</span><span class="hs-special">,</span><span> </span><span class="hs-number">680</span><span class="hs-special">,</span><span> </span><span class="hs-number">993</span><span class="hs-special">,</span><span>
</span><a name="line-561"></a><span> </span><span class="hs-number">821</span><span class="hs-special">,</span><span> </span><span class="hs-number">942</span><span class="hs-special">,</span><span> </span><span class="hs-number">813</span><span class="hs-special">,</span><span> </span><span class="hs-number">843</span><span class="hs-special">,</span><span> </span><span class="hs-number">484</span><span class="hs-special">,</span><span> </span><span class="hs-number">193</span><span class="hs-special">,</span><span> </span><span class="hs-number">935</span><span class="hs-special">,</span><span> </span><span class="hs-number">321</span><span class="hs-special">,</span><span> </span><span class="hs-number">919</span><span class="hs-special">,</span><span> </span><span class="hs-number">572</span><span class="hs-special">,</span><span> </span><span class="hs-number">741</span><span class="hs-special">,</span><span> </span><span class="hs-number">423</span><span class="hs-special">,</span><span> </span><span class="hs-number">559</span><span class="hs-special">,</span><span> </span><span class="hs-number">562</span><span class="hs-special">,</span><span>
</span><a name="line-562"></a><span> </span><span class="hs-number">589</span><span class="hs-special">,</span><span> </span><span class="hs-number">296</span><span class="hs-special">,</span><span> </span><span class="hs-number">191</span><span class="hs-special">,</span><span> </span><span class="hs-number">493</span><span class="hs-special">,</span><span> </span><span class="hs-number">685</span><span class="hs-special">,</span><span> </span><span class="hs-number">891</span><span class="hs-special">,</span><span> </span><span class="hs-number">665</span><span class="hs-special">,</span><span> </span><span class="hs-number">435</span><span class="hs-special">,</span><span> </span><span class="hs-number">60</span><span class="hs-special">,</span><span> </span><span class="hs-number">395</span><span class="hs-special">,</span><span> </span><span class="hs-number">2</span><span class="hs-special">,</span><span> </span><span class="hs-number">606</span><span class="hs-special">,</span><span> </span><span class="hs-number">511</span><span class="hs-special">,</span><span> </span><span class="hs-number">853</span><span class="hs-special">,</span><span> </span><span class="hs-number">746</span><span class="hs-special">,</span><span>
</span><a name="line-563"></a><span> </span><span class="hs-number">32</span><span class="hs-special">,</span><span> </span><span class="hs-number">219</span><span class="hs-special">,</span><span> </span><span class="hs-number">284</span><span class="hs-special">,</span><span> </span><span class="hs-number">631</span><span class="hs-special">,</span><span> </span><span class="hs-number">840</span><span class="hs-special">,</span><span> </span><span class="hs-number">661</span><span class="hs-special">,</span><span> </span><span class="hs-number">837</span><span class="hs-special">,</span><span> </span><span class="hs-number">332</span><span class="hs-special">,</span><span> </span><span class="hs-number">78</span><span class="hs-special">,</span><span> </span><span class="hs-number">311</span><span class="hs-special">,</span><span> </span><span class="hs-number">670</span><span class="hs-special">,</span><span> </span><span class="hs-number">887</span><span class="hs-special">,</span><span> </span><span class="hs-number">111</span><span class="hs-special">,</span><span> </span><span class="hs-number">195</span><span class="hs-special">,</span><span> </span><span class="hs-number">505</span><span class="hs-special">,</span><span>
</span><a name="line-564"></a><span> </span><span class="hs-number">190</span><span class="hs-special">,</span><span> </span><span class="hs-number">194</span><span class="hs-special">,</span><span> </span><span class="hs-number">214</span><span class="hs-special">,</span><span> </span><span class="hs-number">709</span><span class="hs-special">,</span><span> </span><span class="hs-number">380</span><span class="hs-special">,</span><span> </span><span class="hs-number">819</span><span class="hs-special">,</span><span> </span><span class="hs-number">69</span><span class="hs-special">,</span><span> </span><span class="hs-number">261</span><span class="hs-special">,</span><span> </span><span class="hs-number">957</span><span class="hs-special">,</span><span> </span><span class="hs-number">1018</span><span class="hs-special">,</span><span> </span><span class="hs-number">161</span><span class="hs-special">,</span><span> </span><span class="hs-number">739</span><span class="hs-special">,</span><span> </span><span class="hs-number">588</span><span class="hs-special">,</span><span> </span><span class="hs-number">7</span><span class="hs-special">,</span><span> </span><span class="hs-number">708</span><span class="hs-special">,</span><span>
</span><a name="line-565"></a><span> </span><span class="hs-number">83</span><span class="hs-special">,</span><span> </span><span class="hs-number">328</span><span class="hs-special">,</span><span> </span><span class="hs-number">507</span><span class="hs-special">,</span><span> </span><span class="hs-number">736</span><span class="hs-special">,</span><span> </span><span class="hs-number">317</span><span class="hs-special">,</span><span> </span><span class="hs-number">899</span><span class="hs-special">,</span><span> </span><span class="hs-number">47</span><span class="hs-special">,</span><span> </span><span class="hs-number">348</span><span class="hs-special">,</span><span> </span><span class="hs-number">1000</span><span class="hs-special">,</span><span> </span><span class="hs-number">345</span><span class="hs-special">,</span><span> </span><span class="hs-number">882</span><span class="hs-special">,</span><span> </span><span class="hs-number">245</span><span class="hs-special">,</span><span> </span><span class="hs-number">367</span><span class="hs-special">,</span><span> </span><span class="hs-number">996</span><span class="hs-special">,</span><span> </span><span class="hs-number">943</span><span class="hs-special">,</span><span>
</span><a name="line-566"></a><span> </span><span class="hs-number">514</span><span class="hs-special">,</span><span> </span><span class="hs-number">304</span><span class="hs-special">,</span><span> </span><span class="hs-number">90</span><span class="hs-special">,</span><span> </span><span class="hs-number">804</span><span class="hs-special">,</span><span> </span><span class="hs-number">295</span><span class="hs-special">,</span><span> </span><span class="hs-number">312</span><span class="hs-special">,</span><span> </span><span class="hs-number">793</span><span class="hs-special">,</span><span> </span><span class="hs-number">387</span><span class="hs-special">,</span><span> </span><span class="hs-number">833</span><span class="hs-special">,</span><span> </span><span class="hs-number">249</span><span class="hs-special">,</span><span> </span><span class="hs-number">921</span><span class="hs-special">,</span><span> </span><span class="hs-number">660</span><span class="hs-special">,</span><span> </span><span class="hs-number">618</span><span class="hs-special">,</span><span> </span><span class="hs-number">823</span><span class="hs-special">,</span><span> </span><span class="hs-number">496</span><span class="hs-special">,</span><span>
</span><a name="line-567"></a><span> </span><span class="hs-number">722</span><span class="hs-special">,</span><span> </span><span class="hs-number">30</span><span class="hs-special">,</span><span> </span><span class="hs-number">782</span><span class="hs-special">,</span><span> </span><span class="hs-number">225</span><span class="hs-special">,</span><span> </span><span class="hs-number">892</span><span class="hs-special">,</span><span> </span><span class="hs-number">93</span><span class="hs-special">,</span><span> </span><span class="hs-number">480</span><span class="hs-special">,</span><span> </span><span class="hs-number">372</span><span class="hs-special">,</span><span> </span><span class="hs-number">112</span><span class="hs-special">,</span><span> </span><span class="hs-number">738</span><span class="hs-special">,</span><span> </span><span class="hs-number">867</span><span class="hs-special">,</span><span> </span><span class="hs-number">636</span><span class="hs-special">,</span><span> </span><span class="hs-number">890</span><span class="hs-special">,</span><span> </span><span class="hs-number">950</span><span class="hs-special">,</span><span> </span><span class="hs-number">968</span><span class="hs-special">,</span><span>
</span><a name="line-568"></a><span> </span><span class="hs-number">386</span><span class="hs-special">,</span><span> </span><span class="hs-number">622</span><span class="hs-special">,</span><span> </span><span class="hs-number">642</span><span class="hs-special">,</span><span> </span><span class="hs-number">551</span><span class="hs-special">,</span><span> </span><span class="hs-number">369</span><span class="hs-special">,</span><span> </span><span class="hs-number">234</span><span class="hs-special">,</span><span> </span><span class="hs-number">846</span><span class="hs-special">,</span><span> </span><span class="hs-number">382</span><span class="hs-special">,</span><span> </span><span class="hs-number">365</span><span class="hs-special">,</span><span> </span><span class="hs-number">442</span><span class="hs-special">,</span><span> </span><span class="hs-number">592</span><span class="hs-special">,</span><span> </span><span class="hs-number">343</span><span class="hs-special">,</span><span> </span><span class="hs-number">986</span><span class="hs-special">,</span><span> </span><span class="hs-number">122</span><span class="hs-special">,</span><span>
</span><a name="line-569"></a><span> </span><span class="hs-number">1023</span><span class="hs-special">,</span><span> </span><span class="hs-number">59</span><span class="hs-special">,</span><span> </span><span class="hs-number">847</span><span class="hs-special">,</span><span> </span><span class="hs-number">81</span><span class="hs-special">,</span><span> </span><span class="hs-number">790</span><span class="hs-special">,</span><span> </span><span class="hs-number">4</span><span class="hs-special">,</span><span> </span><span class="hs-number">437</span><span class="hs-special">,</span><span> </span><span class="hs-number">983</span><span class="hs-special">,</span><span> </span><span class="hs-number">931</span><span class="hs-special">,</span><span> </span><span class="hs-number">244</span><span class="hs-special">,</span><span> </span><span class="hs-number">64</span><span class="hs-special">,</span><span> </span><span class="hs-number">415</span><span class="hs-special">,</span><span> </span><span class="hs-number">529</span><span class="hs-special">,</span><span> </span><span class="hs-number">487</span><span class="hs-special">,</span><span> </span><span class="hs-number">944</span><span class="hs-special">,</span><span>
</span><a name="line-570"></a><span> </span><span class="hs-number">35</span><span class="hs-special">,</span><span> </span><span class="hs-number">938</span><span class="hs-special">,</span><span> </span><span class="hs-number">664</span><span class="hs-special">,</span><span> </span><span class="hs-number">156</span><span class="hs-special">,</span><span> </span><span class="hs-number">583</span><span class="hs-special">,</span><span> </span><span class="hs-number">53</span><span class="hs-special">,</span><span> </span><span class="hs-number">999</span><span class="hs-special">,</span><span> </span><span class="hs-number">222</span><span class="hs-special">,</span><span> </span><span class="hs-number">390</span><span class="hs-special">,</span><span> </span><span class="hs-number">987</span><span class="hs-special">,</span><span> </span><span class="hs-number">341</span><span class="hs-special">,</span><span> </span><span class="hs-number">388</span><span class="hs-special">,</span><span> </span><span class="hs-number">389</span><span class="hs-special">,</span><span> </span><span class="hs-number">170</span><span class="hs-special">,</span><span> </span><span class="hs-number">721</span><span class="hs-special">,</span><span>
</span><a name="line-571"></a><span> </span><span class="hs-number">879</span><span class="hs-special">,</span><span> </span><span class="hs-number">138</span><span class="hs-special">,</span><span> </span><span class="hs-number">522</span><span class="hs-special">,</span><span> </span><span class="hs-number">627</span><span class="hs-special">,</span><span> </span><span class="hs-number">765</span><span class="hs-special">,</span><span> </span><span class="hs-number">322</span><span class="hs-special">,</span><span> </span><span class="hs-number">230</span><span class="hs-special">,</span><span> </span><span class="hs-number">440</span><span class="hs-special">,</span><span> </span><span class="hs-number">14</span><span class="hs-special">,</span><span> </span><span class="hs-number">168</span><span class="hs-special">,</span><span> </span><span class="hs-number">143</span><span class="hs-special">,</span><span> </span><span class="hs-number">656</span><span class="hs-special">,</span><span> </span><span class="hs-number">991</span><span class="hs-special">,</span><span> </span><span class="hs-number">224</span><span class="hs-special">,</span><span> </span><span class="hs-number">595</span><span class="hs-special">,</span><span>
</span><a name="line-572"></a><span> </span><span class="hs-number">550</span><span class="hs-special">,</span><span> </span><span class="hs-number">94</span><span class="hs-special">,</span><span> </span><span class="hs-number">657</span><span class="hs-special">,</span><span> </span><span class="hs-number">752</span><span class="hs-special">,</span><span> </span><span class="hs-number">667</span><span class="hs-special">,</span><span> </span><span class="hs-number">1005</span><span class="hs-special">,</span><span> </span><span class="hs-number">451</span><span class="hs-special">,</span><span> </span><span class="hs-number">734</span><span class="hs-special">,</span><span> </span><span class="hs-number">744</span><span class="hs-special">,</span><span> </span><span class="hs-number">638</span><span class="hs-special">,</span><span> </span><span class="hs-number">292</span><span class="hs-special">,</span><span> </span><span class="hs-number">585</span><span class="hs-special">,</span><span> </span><span class="hs-number">157</span><span class="hs-special">,</span><span> </span><span class="hs-number">872</span><span class="hs-special">,</span><span>
</span><a name="line-573"></a><span> </span><span class="hs-number">590</span><span class="hs-special">,</span><span> </span><span class="hs-number">601</span><span class="hs-special">,</span><span> </span><span class="hs-number">827</span><span class="hs-special">,</span><span> </span><span class="hs-number">774</span><span class="hs-special">,</span><span> </span><span class="hs-number">930</span><span class="hs-special">,</span><span> </span><span class="hs-number">475</span><span class="hs-special">,</span><span> </span><span class="hs-number">571</span><span class="hs-special">,</span><span> </span><span class="hs-number">33</span><span class="hs-special">,</span><span> </span><span class="hs-number">500</span><span class="hs-special">,</span><span> </span><span class="hs-number">871</span><span class="hs-special">,</span><span> </span><span class="hs-number">969</span><span class="hs-special">,</span><span> </span><span class="hs-number">173</span><span class="hs-special">,</span><span> </span><span class="hs-number">21</span><span class="hs-special">,</span><span> </span><span class="hs-number">828</span><span class="hs-special">,</span><span> </span><span class="hs-number">450</span><span class="hs-special">,</span><span>
</span><a name="line-574"></a><span> </span><span class="hs-number">1009</span><span class="hs-special">,</span><span> </span><span class="hs-number">147</span><span class="hs-special">,</span><span> </span><span class="hs-number">960</span><span class="hs-special">,</span><span> </span><span class="hs-number">705</span><span class="hs-special">,</span><span> </span><span class="hs-number">201</span><span class="hs-special">,</span><span> </span><span class="hs-number">228</span><span class="hs-special">,</span><span> </span><span class="hs-number">998</span><span class="hs-special">,</span><span> </span><span class="hs-number">497</span><span class="hs-special">,</span><span> </span><span class="hs-number">1021</span><span class="hs-special">,</span><span> </span><span class="hs-number">613</span><span class="hs-special">,</span><span> </span><span class="hs-number">688</span><span class="hs-special">,</span><span> </span><span class="hs-number">772</span><span class="hs-special">,</span><span> </span><span class="hs-number">508</span><span class="hs-special">,</span><span> </span><span class="hs-number">36</span><span class="hs-special">,</span><span>
</span><a name="line-575"></a><span> </span><span class="hs-number">366</span><span class="hs-special">,</span><span> </span><span class="hs-number">715</span><span class="hs-special">,</span><span> </span><span class="hs-number">468</span><span class="hs-special">,</span><span> </span><span class="hs-number">956</span><span class="hs-special">,</span><span> </span><span class="hs-number">725</span><span class="hs-special">,</span><span> </span><span class="hs-number">730</span><span class="hs-special">,</span><span> </span><span class="hs-number">861</span><span class="hs-special">,</span><span> </span><span class="hs-number">425</span><span class="hs-special">,</span><span> </span><span class="hs-number">647</span><span class="hs-special">,</span><span> </span><span class="hs-number">701</span><span class="hs-special">,</span><span> </span><span class="hs-number">221</span><span class="hs-special">,</span><span> </span><span class="hs-number">759</span><span class="hs-special">,</span><span> </span><span class="hs-number">95</span><span class="hs-special">,</span><span> </span><span class="hs-number">958</span><span class="hs-special">,</span><span> </span><span class="hs-number">139</span><span class="hs-special">,</span><span>
</span><a name="line-576"></a><span> </span><span class="hs-number">805</span><span class="hs-special">,</span><span> </span><span class="hs-number">8</span><span class="hs-special">,</span><span> </span><span class="hs-number">835</span><span class="hs-special">,</span><span> </span><span class="hs-number">679</span><span class="hs-special">,</span><span> </span><span class="hs-number">614</span><span class="hs-special">,</span><span> </span><span class="hs-number">449</span><span class="hs-special">,</span><span> </span><span class="hs-number">128</span><span class="hs-special">,</span><span> </span><span class="hs-number">791</span><span class="hs-special">,</span><span> </span><span class="hs-number">299</span><span class="hs-special">,</span><span> </span><span class="hs-number">974</span><span class="hs-special">,</span><span> </span><span class="hs-number">617</span><span class="hs-special">,</span><span> </span><span class="hs-number">70</span><span class="hs-special">,</span><span> </span><span class="hs-number">628</span><span class="hs-special">,</span><span> </span><span class="hs-number">57</span><span class="hs-special">,</span><span> </span><span class="hs-number">273</span><span class="hs-special">,</span><span>
</span><a name="line-577"></a><span> </span><span class="hs-number">430</span><span class="hs-special">,</span><span> </span><span class="hs-number">67</span><span class="hs-special">,</span><span> </span><span class="hs-number">750</span><span class="hs-special">,</span><span> </span><span class="hs-number">405</span><span class="hs-special">,</span><span> </span><span class="hs-number">780</span><span class="hs-special">,</span><span> </span><span class="hs-number">703</span><span class="hs-special">,</span><span> </span><span class="hs-number">643</span><span class="hs-special">,</span><span> </span><span class="hs-number">776</span><span class="hs-special">,</span><span> </span><span class="hs-number">778</span><span class="hs-special">,</span><span> </span><span class="hs-number">340</span><span class="hs-special">,</span><span> </span><span class="hs-number">171</span><span class="hs-special">,</span><span> </span><span class="hs-number">1022</span><span class="hs-special">,</span><span> </span><span class="hs-number">276</span><span class="hs-special">,</span><span> </span><span class="hs-number">308</span><span class="hs-special">,</span><span>
</span><a name="line-578"></a><span> </span><span class="hs-number">495</span><span class="hs-special">,</span><span> </span><span class="hs-number">243</span><span class="hs-special">,</span><span> </span><span class="hs-number">644</span><span class="hs-special">,</span><span> </span><span class="hs-number">460</span><span class="hs-special">,</span><span> </span><span class="hs-number">857</span><span class="hs-special">,</span><span> </span><span class="hs-number">28</span><span class="hs-special">,</span><span> </span><span class="hs-number">336</span><span class="hs-special">,</span><span> </span><span class="hs-number">286</span><span class="hs-special">,</span><span> </span><span class="hs-number">41</span><span class="hs-special">,</span><span> </span><span class="hs-number">695</span><span class="hs-special">,</span><span> </span><span class="hs-number">448</span><span class="hs-special">,</span><span> </span><span class="hs-number">431</span><span class="hs-special">,</span><span> </span><span class="hs-number">364</span><span class="hs-special">,</span><span> </span><span class="hs-number">149</span><span class="hs-special">,</span><span> </span><span class="hs-number">43</span><span class="hs-special">,</span><span>
</span><a name="line-579"></a><span> </span><span class="hs-number">233</span><span class="hs-special">,</span><span> </span><span class="hs-number">63</span><span class="hs-special">,</span><span> </span><span class="hs-number">762</span><span class="hs-special">,</span><span> </span><span class="hs-number">902</span><span class="hs-special">,</span><span> </span><span class="hs-number">181</span><span class="hs-special">,</span><span> </span><span class="hs-number">240</span><span class="hs-special">,</span><span> </span><span class="hs-number">501</span><span class="hs-special">,</span><span> </span><span class="hs-number">584</span><span class="hs-special">,</span><span> </span><span class="hs-number">434</span><span class="hs-special">,</span><span> </span><span class="hs-number">275</span><span class="hs-special">,</span><span> </span><span class="hs-number">1008</span><span class="hs-special">,</span><span> </span><span class="hs-number">444</span><span class="hs-special">,</span><span> </span><span class="hs-number">443</span><span class="hs-special">,</span><span> </span><span class="hs-number">895</span><span class="hs-special">,</span><span>
</span><a name="line-580"></a><span> </span><span class="hs-number">812</span><span class="hs-special">,</span><span> </span><span class="hs-number">612</span><span class="hs-special">,</span><span> </span><span class="hs-number">927</span><span class="hs-special">,</span><span> </span><span class="hs-number">383</span><span class="hs-special">,</span><span> </span><span class="hs-number">66</span><span class="hs-special">,</span><span> </span><span class="hs-number">961</span><span class="hs-special">,</span><span> </span><span class="hs-number">1006</span><span class="hs-special">,</span><span> </span><span class="hs-number">690</span><span class="hs-special">,</span><span> </span><span class="hs-number">346</span><span class="hs-special">,</span><span> </span><span class="hs-number">3</span><span class="hs-special">,</span><span> </span><span class="hs-number">881</span><span class="hs-special">,</span><span> </span><span class="hs-number">900</span><span class="hs-special">,</span><span> </span><span class="hs-number">747</span><span class="hs-special">,</span><span> </span><span class="hs-number">271</span><span class="hs-special">,</span><span> </span><span class="hs-number">672</span><span class="hs-special">,</span><span>
</span><a name="line-581"></a><span> </span><span class="hs-number">162</span><span class="hs-special">,</span><span> </span><span class="hs-number">402</span><span class="hs-special">,</span><span> </span><span class="hs-number">456</span><span class="hs-special">,</span><span> </span><span class="hs-number">748</span><span class="hs-special">,</span><span> </span><span class="hs-number">971</span><span class="hs-special">,</span><span> </span><span class="hs-number">755</span><span class="hs-special">,</span><span> </span><span class="hs-number">490</span><span class="hs-special">,</span><span> </span><span class="hs-number">105</span><span class="hs-special">,</span><span> </span><span class="hs-number">808</span><span class="hs-special">,</span><span> </span><span class="hs-number">977</span><span class="hs-special">,</span><span> </span><span class="hs-number">72</span><span class="hs-special">,</span><span> </span><span class="hs-number">732</span><span class="hs-special">,</span><span> </span><span class="hs-number">182</span><span class="hs-special">,</span><span> </span><span class="hs-number">897</span><span class="hs-special">,</span><span> </span><span class="hs-number">625</span><span class="hs-special">,</span><span>
</span><a name="line-582"></a><span> </span><span class="hs-number">163</span><span class="hs-special">,</span><span> </span><span class="hs-number">189</span><span class="hs-special">,</span><span> </span><span class="hs-number">947</span><span class="hs-special">,</span><span> </span><span class="hs-number">850</span><span class="hs-special">,</span><span> </span><span class="hs-number">46</span><span class="hs-special">,</span><span> </span><span class="hs-number">115</span><span class="hs-special">,</span><span> </span><span class="hs-number">403</span><span class="hs-special">,</span><span> </span><span class="hs-number">231</span><span class="hs-special">,</span><span> </span><span class="hs-number">151</span><span class="hs-special">,</span><span> </span><span class="hs-number">629</span><span class="hs-special">,</span><span> </span><span class="hs-number">278</span><span class="hs-special">,</span><span> </span><span class="hs-number">874</span><span class="hs-special">,</span><span> </span><span class="hs-number">16</span><span class="hs-special">,</span><span> </span><span class="hs-number">934</span><span class="hs-special">,</span><span> </span><span class="hs-number">110</span><span class="hs-special">,</span><span>
</span><a name="line-583"></a><span> </span><span class="hs-number">492</span><span class="hs-special">,</span><span> </span><span class="hs-number">898</span><span class="hs-special">,</span><span> </span><span class="hs-number">256</span><span class="hs-special">,</span><span> </span><span class="hs-number">807</span><span class="hs-special">,</span><span> </span><span class="hs-number">598</span><span class="hs-special">,</span><span> </span><span class="hs-number">700</span><span class="hs-special">,</span><span> </span><span class="hs-number">498</span><span class="hs-special">,</span><span> </span><span class="hs-number">140</span><span class="hs-special">,</span><span> </span><span class="hs-number">481</span><span class="hs-special">,</span><span> </span><span class="hs-number">91</span><span class="hs-special">,</span><span> </span><span class="hs-number">523</span><span class="hs-special">,</span><span> </span><span class="hs-number">860</span><span class="hs-special">,</span><span> </span><span class="hs-number">134</span><span class="hs-special">,</span><span> </span><span class="hs-number">252</span><span class="hs-special">,</span><span> </span><span class="hs-number">771</span><span class="hs-special">,</span><span>
</span><a name="line-584"></a><span> </span><span class="hs-number">824</span><span class="hs-special">,</span><span> </span><span class="hs-number">119</span><span class="hs-special">,</span><span> </span><span class="hs-number">38</span><span class="hs-special">,</span><span> </span><span class="hs-number">816</span><span class="hs-special">,</span><span> </span><span class="hs-number">820</span><span class="hs-special">,</span><span> </span><span class="hs-number">641</span><span class="hs-special">,</span><span> </span><span class="hs-number">342</span><span class="hs-special">,</span><span> </span><span class="hs-number">757</span><span class="hs-special">,</span><span> </span><span class="hs-number">513</span><span class="hs-special">,</span><span> </span><span class="hs-number">577</span><span class="hs-special">,</span><span> </span><span class="hs-number">990</span><span class="hs-special">,</span><span> </span><span class="hs-number">463</span><span class="hs-special">,</span><span> </span><span class="hs-number">40</span><span class="hs-special">,</span><span> </span><span class="hs-number">920</span><span class="hs-special">,</span><span> </span><span class="hs-number">955</span><span class="hs-special">,</span><span>
</span><a name="line-585"></a><span> </span><span class="hs-number">17</span><span class="hs-special">,</span><span> </span><span class="hs-number">649</span><span class="hs-special">,</span><span> </span><span class="hs-number">533</span><span class="hs-special">,</span><span> </span><span class="hs-number">82</span><span class="hs-special">,</span><span> </span><span class="hs-number">103</span><span class="hs-special">,</span><span> </span><span class="hs-number">896</span><span class="hs-special">,</span><span> </span><span class="hs-number">862</span><span class="hs-special">,</span><span> </span><span class="hs-number">728</span><span class="hs-special">,</span><span> </span><span class="hs-number">259</span><span class="hs-special">,</span><span> </span><span class="hs-number">86</span><span class="hs-special">,</span><span> </span><span class="hs-number">466</span><span class="hs-special">,</span><span> </span><span class="hs-number">87</span><span class="hs-special">,</span><span> </span><span class="hs-number">253</span><span class="hs-special">,</span><span> </span><span class="hs-number">556</span><span class="hs-special">,</span><span> </span><span class="hs-number">323</span><span class="hs-special">,</span><span>
</span><a name="line-586"></a><span> </span><span class="hs-number">457</span><span class="hs-special">,</span><span> </span><span class="hs-number">963</span><span class="hs-special">,</span><span> </span><span class="hs-number">432</span><span class="hs-special">,</span><span> </span><span class="hs-number">845</span><span class="hs-special">,</span><span> </span><span class="hs-number">527</span><span class="hs-special">,</span><span> </span><span class="hs-number">745</span><span class="hs-special">,</span><span> </span><span class="hs-number">849</span><span class="hs-special">,</span><span> </span><span class="hs-number">863</span><span class="hs-special">,</span><span> </span><span class="hs-number">1015</span><span class="hs-special">,</span><span> </span><span class="hs-number">888</span><span class="hs-special">,</span><span> </span><span class="hs-number">488</span><span class="hs-special">,</span><span> </span><span class="hs-number">567</span><span class="hs-special">,</span><span> </span><span class="hs-number">727</span><span class="hs-special">,</span><span> </span><span class="hs-number">132</span><span class="hs-special">,</span><span>
</span><a name="line-587"></a><span> </span><span class="hs-number">674</span><span class="hs-special">,</span><span> </span><span class="hs-number">764</span><span class="hs-special">,</span><span> </span><span class="hs-number">109</span><span class="hs-special">,</span><span> </span><span class="hs-number">669</span><span class="hs-special">,</span><span> </span><span class="hs-number">6</span><span class="hs-special">,</span><span> </span><span class="hs-number">1003</span><span class="hs-special">,</span><span> </span><span class="hs-number">552</span><span class="hs-special">,</span><span> </span><span class="hs-number">246</span><span class="hs-special">,</span><span> </span><span class="hs-number">542</span><span class="hs-special">,</span><span> </span><span class="hs-number">96</span><span class="hs-special">,</span><span> </span><span class="hs-number">324</span><span class="hs-special">,</span><span> </span><span class="hs-number">781</span><span class="hs-special">,</span><span> </span><span class="hs-number">912</span><span class="hs-special">,</span><span> </span><span class="hs-number">248</span><span class="hs-special">,</span><span> </span><span class="hs-number">694</span><span class="hs-special">,</span><span>
</span><a name="line-588"></a><span> </span><span class="hs-number">239</span><span class="hs-special">,</span><span> </span><span class="hs-number">980</span><span class="hs-special">,</span><span> </span><span class="hs-number">210</span><span class="hs-special">,</span><span> </span><span class="hs-number">880</span><span class="hs-special">,</span><span> </span><span class="hs-number">683</span><span class="hs-special">,</span><span> </span><span class="hs-number">144</span><span class="hs-special">,</span><span> </span><span class="hs-number">177</span><span class="hs-special">,</span><span> </span><span class="hs-number">325</span><span class="hs-special">,</span><span> </span><span class="hs-number">546</span><span class="hs-special">,</span><span> </span><span class="hs-number">491</span><span class="hs-special">,</span><span> </span><span class="hs-number">326</span><span class="hs-special">,</span><span> </span><span class="hs-number">339</span><span class="hs-special">,</span><span> </span><span class="hs-number">623</span><span class="hs-special">,</span><span> </span><span class="hs-number">941</span><span class="hs-special">,</span><span> </span><span class="hs-number">92</span><span class="hs-special">,</span><span>
</span><a name="line-589"></a><span> </span><span class="hs-number">207</span><span class="hs-special">,</span><span> </span><span class="hs-number">783</span><span class="hs-special">,</span><span> </span><span class="hs-number">462</span><span class="hs-special">,</span><span> </span><span class="hs-number">263</span><span class="hs-special">,</span><span> </span><span class="hs-number">483</span><span class="hs-special">,</span><span> </span><span class="hs-number">517</span><span class="hs-special">,</span><span> </span><span class="hs-number">1012</span><span class="hs-special">,</span><span> </span><span class="hs-number">9</span><span class="hs-special">,</span><span> </span><span class="hs-number">620</span><span class="hs-special">,</span><span> </span><span class="hs-number">220</span><span class="hs-special">,</span><span> </span><span class="hs-number">984</span><span class="hs-special">,</span><span> </span><span class="hs-number">548</span><span class="hs-special">,</span><span> </span><span class="hs-number">512</span><span class="hs-special">,</span><span> </span><span class="hs-number">878</span><span class="hs-special">,</span><span> </span><span class="hs-number">421</span><span class="hs-special">,</span><span>
</span><a name="line-590"></a><span> </span><span class="hs-number">113</span><span class="hs-special">,</span><span> </span><span class="hs-number">973</span><span class="hs-special">,</span><span> </span><span class="hs-number">280</span><span class="hs-special">,</span><span> </span><span class="hs-number">962</span><span class="hs-special">,</span><span> </span><span class="hs-number">159</span><span class="hs-special">,</span><span> </span><span class="hs-number">310</span><span class="hs-special">,</span><span> </span><span class="hs-number">945</span><span class="hs-special">,</span><span> </span><span class="hs-number">268</span><span class="hs-special">,</span><span> </span><span class="hs-number">465</span><span class="hs-special">,</span><span> </span><span class="hs-number">806</span><span class="hs-special">,</span><span> </span><span class="hs-number">889</span><span class="hs-special">,</span><span> </span><span class="hs-number">199</span><span class="hs-special">,</span><span> </span><span class="hs-number">76</span><span class="hs-special">,</span><span> </span><span class="hs-number">873</span><span class="hs-special">,</span><span> </span><span class="hs-number">865</span><span class="hs-special">,</span><span>
</span><a name="line-591"></a><span> </span><span class="hs-number">34</span><span class="hs-special">,</span><span> </span><span class="hs-number">645</span><span class="hs-special">,</span><span> </span><span class="hs-number">227</span><span class="hs-special">,</span><span> </span><span class="hs-number">290</span><span class="hs-special">,</span><span> </span><span class="hs-number">418</span><span class="hs-special">,</span><span> </span><span class="hs-number">693</span><span class="hs-special">,</span><span> </span><span class="hs-number">926</span><span class="hs-special">,</span><span> </span><span class="hs-number">80</span><span class="hs-special">,</span><span> </span><span class="hs-number">569</span><span class="hs-special">,</span><span> </span><span class="hs-number">639</span><span class="hs-special">,</span><span> </span><span class="hs-number">11</span><span class="hs-special">,</span><span> </span><span class="hs-number">50</span><span class="hs-special">,</span><span> </span><span class="hs-number">291</span><span class="hs-special">,</span><span> </span><span class="hs-number">141</span><span class="hs-special">,</span><span> </span><span class="hs-number">206</span><span class="hs-special">,</span><span>
</span><a name="line-592"></a><span> </span><span class="hs-number">544</span><span class="hs-special">,</span><span> </span><span class="hs-number">949</span><span class="hs-special">,</span><span> </span><span class="hs-number">185</span><span class="hs-special">,</span><span> </span><span class="hs-number">518</span><span class="hs-special">,</span><span> </span><span class="hs-number">133</span><span class="hs-special">,</span><span> </span><span class="hs-number">909</span><span class="hs-special">,</span><span> </span><span class="hs-number">135</span><span class="hs-special">,</span><span> </span><span class="hs-number">467</span><span class="hs-special">,</span><span> </span><span class="hs-number">376</span><span class="hs-special">,</span><span> </span><span class="hs-number">646</span><span class="hs-special">,</span><span> </span><span class="hs-number">914</span><span class="hs-special">,</span><span> </span><span class="hs-number">678</span><span class="hs-special">,</span><span> </span><span class="hs-number">841</span><span class="hs-special">,</span><span> </span><span class="hs-number">954</span><span class="hs-special">,</span><span>
</span><a name="line-593"></a><span> </span><span class="hs-number">318</span><span class="hs-special">,</span><span> </span><span class="hs-number">242</span><span class="hs-special">,</span><span> </span><span class="hs-number">939</span><span class="hs-special">,</span><span> </span><span class="hs-number">951</span><span class="hs-special">,</span><span> </span><span class="hs-number">743</span><span class="hs-special">,</span><span> </span><span class="hs-number">1017</span><span class="hs-special">,</span><span> </span><span class="hs-number">976</span><span class="hs-special">,</span><span> </span><span class="hs-number">359</span><span class="hs-special">,</span><span> </span><span class="hs-number">167</span><span class="hs-special">,</span><span> </span><span class="hs-number">264</span><span class="hs-special">,</span><span> </span><span class="hs-number">100</span><span class="hs-special">,</span><span> </span><span class="hs-number">241</span><span class="hs-special">,</span><span> </span><span class="hs-number">218</span><span class="hs-special">,</span><span> </span><span class="hs-number">51</span><span class="hs-special">,</span><span> </span><span class="hs-number">12</span><span class="hs-special">,</span><span>
</span><a name="line-594"></a><span> </span><span class="hs-number">758</span><span class="hs-special">,</span><span> </span><span class="hs-number">368</span><span class="hs-special">,</span><span> </span><span class="hs-number">453</span><span class="hs-special">,</span><span> </span><span class="hs-number">309</span><span class="hs-special">,</span><span> </span><span class="hs-number">192</span><span class="hs-special">,</span><span> </span><span class="hs-number">648</span><span class="hs-special">,</span><span> </span><span class="hs-number">826</span><span class="hs-special">,</span><span> </span><span class="hs-number">553</span><span class="hs-special">,</span><span> </span><span class="hs-number">473</span><span class="hs-special">,</span><span> </span><span class="hs-number">101</span><span class="hs-special">,</span><span> </span><span class="hs-number">478</span><span class="hs-special">,</span><span> </span><span class="hs-number">673</span><span class="hs-special">,</span><span> </span><span class="hs-number">397</span><span class="hs-special">,</span><span> </span><span class="hs-number">1001</span><span class="hs-special">,</span><span>
</span><a name="line-595"></a><span> </span><span class="hs-number">118</span><span class="hs-special">,</span><span> </span><span class="hs-number">265</span><span class="hs-special">,</span><span> </span><span class="hs-number">331</span><span class="hs-special">,</span><span> </span><span class="hs-number">650</span><span class="hs-special">,</span><span> </span><span class="hs-number">356</span><span class="hs-special">,</span><span> </span><span class="hs-number">982</span><span class="hs-special">,</span><span> </span><span class="hs-number">652</span><span class="hs-special">,</span><span> </span><span class="hs-number">655</span><span class="hs-special">,</span><span> </span><span class="hs-number">510</span><span class="hs-special">,</span><span> </span><span class="hs-number">634</span><span class="hs-special">,</span><span> </span><span class="hs-number">145</span><span class="hs-special">,</span><span> </span><span class="hs-number">414</span><span class="hs-special">,</span><span> </span><span class="hs-number">830</span><span class="hs-special">,</span><span> </span><span class="hs-number">924</span><span class="hs-special">,</span><span>
</span><a name="line-596"></a><span> </span><span class="hs-number">526</span><span class="hs-special">,</span><span> </span><span class="hs-number">966</span><span class="hs-special">,</span><span> </span><span class="hs-number">298</span><span class="hs-special">,</span><span> </span><span class="hs-number">737</span><span class="hs-special">,</span><span> </span><span class="hs-number">18</span><span class="hs-special">,</span><span> </span><span class="hs-number">504</span><span class="hs-special">,</span><span> </span><span class="hs-number">401</span><span class="hs-special">,</span><span> </span><span class="hs-number">697</span><span class="hs-special">,</span><span> </span><span class="hs-number">360</span><span class="hs-special">,</span><span> </span><span class="hs-number">288</span><span class="hs-special">,</span><span> </span><span class="hs-number">1020</span><span class="hs-special">,</span><span> </span><span class="hs-number">842</span><span class="hs-special">,</span><span> </span><span class="hs-number">203</span><span class="hs-special">,</span><span> </span><span class="hs-number">698</span><span class="hs-special">,</span><span>
</span><a name="line-597"></a><span> </span><span class="hs-number">537</span><span class="hs-special">,</span><span> </span><span class="hs-number">676</span><span class="hs-special">,</span><span> </span><span class="hs-number">279</span><span class="hs-special">,</span><span> </span><span class="hs-number">581</span><span class="hs-special">,</span><span> </span><span class="hs-number">619</span><span class="hs-special">,</span><span> </span><span class="hs-number">536</span><span class="hs-special">,</span><span> </span><span class="hs-number">907</span><span class="hs-special">,</span><span> </span><span class="hs-number">876</span><span class="hs-special">,</span><span> </span><span class="hs-number">1019</span><span class="hs-special">,</span><span> </span><span class="hs-number">398</span><span class="hs-special">,</span><span> </span><span class="hs-number">152</span><span class="hs-special">,</span><span> </span><span class="hs-number">1010</span><span class="hs-special">,</span><span> </span><span class="hs-number">994</span><span class="hs-special">,</span><span> </span><span class="hs-number">68</span><span class="hs-special">,</span><span>
</span><a name="line-598"></a><span> </span><span class="hs-number">42</span><span class="hs-special">,</span><span> </span><span class="hs-number">454</span><span class="hs-special">,</span><span> </span><span class="hs-number">580</span><span class="hs-special">,</span><span> </span><span class="hs-number">836</span><span class="hs-special">,</span><span> </span><span class="hs-number">99</span><span class="hs-special">,</span><span> </span><span class="hs-number">565</span><span class="hs-special">,</span><span> </span><span class="hs-number">137</span><span class="hs-special">,</span><span> </span><span class="hs-number">379</span><span class="hs-special">,</span><span> </span><span class="hs-number">503</span><span class="hs-special">,</span><span> </span><span class="hs-number">22</span><span class="hs-special">,</span><span> </span><span class="hs-number">77</span><span class="hs-special">,</span><span> </span><span class="hs-number">582</span><span class="hs-special">,</span><span> </span><span class="hs-number">282</span><span class="hs-special">,</span><span> </span><span class="hs-number">412</span><span class="hs-special">,</span><span> </span><span class="hs-number">352</span><span class="hs-special">,</span><span>
</span><a name="line-599"></a><span> </span><span class="hs-number">611</span><span class="hs-special">,</span><span> </span><span class="hs-number">347</span><span class="hs-special">,</span><span> </span><span class="hs-number">300</span><span class="hs-special">,</span><span> </span><span class="hs-number">266</span><span class="hs-special">,</span><span> </span><span class="hs-number">570</span><span class="hs-special">,</span><span> </span><span class="hs-number">270</span><span class="hs-special">,</span><span> </span><span class="hs-number">911</span><span class="hs-special">,</span><span> </span><span class="hs-number">729</span><span class="hs-special">,</span><span> </span><span class="hs-number">44</span><span class="hs-special">,</span><span> </span><span class="hs-number">557</span><span class="hs-special">,</span><span> </span><span class="hs-number">108</span><span class="hs-special">,</span><span> </span><span class="hs-number">946</span><span class="hs-special">,</span><span> </span><span class="hs-number">637</span><span class="hs-special">,</span><span> </span><span class="hs-number">597</span><span class="hs-special">,</span><span> </span><span class="hs-number">461</span><span class="hs-special">,</span><span>
</span><a name="line-600"></a><span> </span><span class="hs-number">630</span><span class="hs-special">,</span><span> </span><span class="hs-number">615</span><span class="hs-special">,</span><span> </span><span class="hs-number">238</span><span class="hs-special">,</span><span> </span><span class="hs-number">763</span><span class="hs-special">,</span><span> </span><span class="hs-number">681</span><span class="hs-special">,</span><span> </span><span class="hs-number">718</span><span class="hs-special">,</span><span> </span><span class="hs-number">334</span><span class="hs-special">,</span><span> </span><span class="hs-number">528</span><span class="hs-special">,</span><span> </span><span class="hs-number">200</span><span class="hs-special">,</span><span> </span><span class="hs-number">459</span><span class="hs-special">,</span><span> </span><span class="hs-number">413</span><span class="hs-special">,</span><span> </span><span class="hs-number">79</span><span class="hs-special">,</span><span> </span><span class="hs-number">24</span><span class="hs-special">,</span><span> </span><span class="hs-number">229</span><span class="hs-special">,</span><span> </span><span class="hs-number">713</span><span class="hs-special">,</span><span>
</span><a name="line-601"></a><span> </span><span class="hs-number">906</span><span class="hs-special">,</span><span> </span><span class="hs-number">579</span><span class="hs-special">,</span><span> </span><span class="hs-number">384</span><span class="hs-special">,</span><span> </span><span class="hs-number">48</span><span class="hs-special">,</span><span> </span><span class="hs-number">893</span><span class="hs-special">,</span><span> </span><span class="hs-number">370</span><span class="hs-special">,</span><span> </span><span class="hs-number">923</span><span class="hs-special">,</span><span> </span><span class="hs-number">202</span><span class="hs-special">,</span><span> </span><span class="hs-number">917</span><span class="hs-special">,</span><span> </span><span class="hs-number">98</span><span class="hs-special">,</span><span> </span><span class="hs-number">794</span><span class="hs-special">,</span><span> </span><span class="hs-number">754</span><span class="hs-special">,</span><span> </span><span class="hs-number">197</span><span class="hs-special">,</span><span> </span><span class="hs-number">530</span><span class="hs-special">,</span><span> </span><span class="hs-number">662</span><span class="hs-special">,</span><span>
</span><a name="line-602"></a><span> </span><span class="hs-number">52</span><span class="hs-special">,</span><span> </span><span class="hs-number">712</span><span class="hs-special">,</span><span> </span><span class="hs-number">677</span><span class="hs-special">,</span><span> </span><span class="hs-number">56</span><span class="hs-special">,</span><span> </span><span class="hs-number">62</span><span class="hs-special">,</span><span> </span><span class="hs-number">981</span><span class="hs-special">,</span><span> </span><span class="hs-number">509</span><span class="hs-special">,</span><span> </span><span class="hs-number">267</span><span class="hs-special">,</span><span> </span><span class="hs-number">789</span><span class="hs-special">,</span><span> </span><span class="hs-number">885</span><span class="hs-special">,</span><span> </span><span class="hs-number">561</span><span class="hs-special">,</span><span> </span><span class="hs-number">316</span><span class="hs-special">,</span><span> </span><span class="hs-number">684</span><span class="hs-special">,</span><span> </span><span class="hs-number">596</span><span class="hs-special">,</span><span> </span><span class="hs-number">226</span><span class="hs-special">,</span><span>
</span><a name="line-603"></a><span> </span><span class="hs-number">13</span><span class="hs-special">,</span><span> </span><span class="hs-number">985</span><span class="hs-special">,</span><span> </span><span class="hs-number">779</span><span class="hs-special">,</span><span> </span><span class="hs-number">123</span><span class="hs-special">,</span><span> </span><span class="hs-number">720</span><span class="hs-special">,</span><span> </span><span class="hs-number">576</span><span class="hs-special">,</span><span> </span><span class="hs-number">753</span><span class="hs-special">,</span><span> </span><span class="hs-number">948</span><span class="hs-special">,</span><span> </span><span class="hs-number">406</span><span class="hs-special">,</span><span> </span><span class="hs-number">125</span><span class="hs-special">,</span><span> </span><span class="hs-number">315</span><span class="hs-special">,</span><span> </span><span class="hs-number">104</span><span class="hs-special">,</span><span> </span><span class="hs-number">519</span><span class="hs-special">,</span><span> </span><span class="hs-number">426</span><span class="hs-special">,</span><span> </span><span class="hs-number">502</span><span class="hs-special">,</span><span>
</span><a name="line-604"></a><span> </span><span class="hs-number">313</span><span class="hs-special">,</span><span> </span><span class="hs-number">566</span><span class="hs-special">,</span><span> </span><span class="hs-number">1016</span><span class="hs-special">,</span><span> </span><span class="hs-number">767</span><span class="hs-special">,</span><span> </span><span class="hs-number">796</span><span class="hs-special">,</span><span> </span><span class="hs-number">281</span><span class="hs-special">,</span><span> </span><span class="hs-number">749</span><span class="hs-special">,</span><span> </span><span class="hs-number">740</span><span class="hs-special">,</span><span> </span><span class="hs-number">136</span><span class="hs-special">,</span><span> </span><span class="hs-number">84</span><span class="hs-special">,</span><span> </span><span class="hs-number">908</span><span class="hs-special">,</span><span> </span><span class="hs-number">424</span><span class="hs-special">,</span><span> </span><span class="hs-number">936</span><span class="hs-special">,</span><span> </span><span class="hs-number">198</span><span class="hs-special">,</span><span>
</span><a name="line-605"></a><span> </span><span class="hs-number">355</span><span class="hs-special">,</span><span> </span><span class="hs-number">274</span><span class="hs-special">,</span><span> </span><span class="hs-number">735</span><span class="hs-special">,</span><span> </span><span class="hs-number">967</span><span class="hs-special">,</span><span> </span><span class="hs-number">5</span><span class="hs-special">,</span><span> </span><span class="hs-number">154</span><span class="hs-special">,</span><span> </span><span class="hs-number">428</span><span class="hs-special">,</span><span> </span><span class="hs-number">541</span><span class="hs-special">,</span><span> </span><span class="hs-number">785</span><span class="hs-special">,</span><span> </span><span class="hs-number">704</span><span class="hs-special">,</span><span> </span><span class="hs-number">486</span><span class="hs-special">,</span><span> </span><span class="hs-number">671</span><span class="hs-special">,</span><span> </span><span class="hs-number">600</span><span class="hs-special">,</span><span> </span><span class="hs-number">532</span><span class="hs-special">,</span><span> </span><span class="hs-number">381</span><span class="hs-special">,</span><span>
</span><a name="line-606"></a><span> </span><span class="hs-number">540</span><span class="hs-special">,</span><span> </span><span class="hs-number">574</span><span class="hs-special">,</span><span> </span><span class="hs-number">187</span><span class="hs-special">,</span><span> </span><span class="hs-number">88</span><span class="hs-special">,</span><span> </span><span class="hs-number">378</span><span class="hs-special">,</span><span> </span><span class="hs-number">216</span><span class="hs-special">,</span><span> </span><span class="hs-number">621</span><span class="hs-special">,</span><span> </span><span class="hs-number">499</span><span class="hs-special">,</span><span> </span><span class="hs-number">419</span><span class="hs-special">,</span><span> </span><span class="hs-number">922</span><span class="hs-special">,</span><span> </span><span class="hs-number">485</span><span class="hs-special">,</span><span> </span><span class="hs-number">494</span><span class="hs-special">,</span><span> </span><span class="hs-number">476</span><span class="hs-special">,</span><span> </span><span class="hs-number">255</span><span class="hs-special">,</span><span> </span><span class="hs-number">114</span><span class="hs-special">,</span><span>
</span><a name="line-607"></a><span> </span><span class="hs-number">188</span><span class="hs-special">,</span><span> </span><span class="hs-number">668</span><span class="hs-special">,</span><span> </span><span class="hs-number">297</span><span class="hs-special">,</span><span> </span><span class="hs-number">400</span><span class="hs-special">,</span><span> </span><span class="hs-number">918</span><span class="hs-special">,</span><span> </span><span class="hs-number">787</span><span class="hs-special">,</span><span> </span><span class="hs-number">158</span><span class="hs-special">,</span><span> </span><span class="hs-number">25</span><span class="hs-special">,</span><span> </span><span class="hs-number">458</span><span class="hs-special">,</span><span> </span><span class="hs-number">178</span><span class="hs-special">,</span><span> </span><span class="hs-number">564</span><span class="hs-special">,</span><span> </span><span class="hs-number">422</span><span class="hs-special">,</span><span> </span><span class="hs-number">768</span><span class="hs-special">,</span><span> </span><span class="hs-number">73</span><span class="hs-special">,</span><span> </span><span class="hs-number">1011</span><span class="hs-special">,</span><span>
</span><a name="line-608"></a><span> </span><span class="hs-number">717</span><span class="hs-special">,</span><span> </span><span class="hs-number">575</span><span class="hs-special">,</span><span> </span><span class="hs-number">404</span><span class="hs-special">,</span><span> </span><span class="hs-number">547</span><span class="hs-special">,</span><span> </span><span class="hs-number">196</span><span class="hs-special">,</span><span> </span><span class="hs-number">829</span><span class="hs-special">,</span><span> </span><span class="hs-number">237</span><span class="hs-special">,</span><span> </span><span class="hs-number">394</span><span class="hs-special">,</span><span> </span><span class="hs-number">301</span><span class="hs-special">,</span><span> </span><span class="hs-number">37</span><span class="hs-special">,</span><span> </span><span class="hs-number">65</span><span class="hs-special">,</span><span> </span><span class="hs-number">176</span><span class="hs-special">,</span><span> </span><span class="hs-number">106</span><span class="hs-special">,</span><span> </span><span class="hs-number">89</span><span class="hs-special">,</span><span> </span><span class="hs-number">85</span><span class="hs-special">,</span><span>
</span><a name="line-609"></a><span> </span><span class="hs-number">675</span><span class="hs-special">,</span><span> </span><span class="hs-number">979</span><span class="hs-special">,</span><span> </span><span class="hs-number">534</span><span class="hs-special">,</span><span> </span><span class="hs-number">803</span><span class="hs-special">,</span><span> </span><span class="hs-number">995</span><span class="hs-special">,</span><span> </span><span class="hs-number">363</span><span class="hs-special">,</span><span> </span><span class="hs-number">593</span><span class="hs-special">,</span><span> </span><span class="hs-number">120</span><span class="hs-special">,</span><span> </span><span class="hs-number">417</span><span class="hs-special">,</span><span> </span><span class="hs-number">452</span><span class="hs-special">,</span><span> </span><span class="hs-number">26</span><span class="hs-special">,</span><span> </span><span class="hs-number">699</span><span class="hs-special">,</span><span> </span><span class="hs-number">822</span><span class="hs-special">,</span><span> </span><span class="hs-number">223</span><span class="hs-special">,</span><span> </span><span class="hs-number">169</span><span class="hs-special">,</span><span>
</span><a name="line-610"></a><span> </span><span class="hs-number">416</span><span class="hs-special">,</span><span> </span><span class="hs-number">235</span><span class="hs-special">,</span><span> </span><span class="hs-number">609</span><span class="hs-special">,</span><span> </span><span class="hs-number">773</span><span class="hs-special">,</span><span> </span><span class="hs-number">211</span><span class="hs-special">,</span><span> </span><span class="hs-number">607</span><span class="hs-special">,</span><span> </span><span class="hs-number">208</span><span class="hs-special">,</span><span> </span><span class="hs-number">302</span><span class="hs-special">,</span><span> </span><span class="hs-number">852</span><span class="hs-special">,</span><span> </span><span class="hs-number">965</span><span class="hs-special">,</span><span> </span><span class="hs-number">603</span><span class="hs-special">,</span><span> </span><span class="hs-number">357</span><span class="hs-special">,</span><span> </span><span class="hs-number">761</span><span class="hs-special">,</span><span> </span><span class="hs-number">247</span><span class="hs-special">,</span><span>
</span><a name="line-611"></a><span> </span><span class="hs-number">817</span><span class="hs-special">,</span><span> </span><span class="hs-number">539</span><span class="hs-special">,</span><span> </span><span class="hs-number">250</span><span class="hs-special">,</span><span> </span><span class="hs-number">232</span><span class="hs-special">,</span><span> </span><span class="hs-number">272</span><span class="hs-special">,</span><span> </span><span class="hs-number">129</span><span class="hs-special">,</span><span> </span><span class="hs-number">568</span><span class="hs-special">,</span><span> </span><span class="hs-number">848</span><span class="hs-special">,</span><span> </span><span class="hs-number">624</span><span class="hs-special">,</span><span> </span><span class="hs-number">396</span><span class="hs-special">,</span><span> </span><span class="hs-number">710</span><span class="hs-special">,</span><span> </span><span class="hs-number">525</span><span class="hs-special">,</span><span> </span><span class="hs-number">183</span><span class="hs-special">,</span><span> </span><span class="hs-number">686</span><span class="hs-special">,</span><span> </span><span class="hs-number">10</span><span class="hs-special">,</span><span>
</span><a name="line-612"></a><span> </span><span class="hs-number">285</span><span class="hs-special">,</span><span> </span><span class="hs-number">856</span><span class="hs-special">,</span><span> </span><span class="hs-number">307</span><span class="hs-special">,</span><span> </span><span class="hs-number">811</span><span class="hs-special">,</span><span> </span><span class="hs-number">160</span><span class="hs-special">,</span><span> </span><span class="hs-number">972</span><span class="hs-special">,</span><span> </span><span class="hs-number">55</span><span class="hs-special">,</span><span> </span><span class="hs-number">441</span><span class="hs-special">,</span><span> </span><span class="hs-number">289</span><span class="hs-special">,</span><span> </span><span class="hs-number">723</span><span class="hs-special">,</span><span> </span><span class="hs-number">305</span><span class="hs-special">,</span><span> </span><span class="hs-number">373</span><span class="hs-special">,</span><span> </span><span class="hs-number">351</span><span class="hs-special">,</span><span> </span><span class="hs-number">153</span><span class="hs-special">,</span><span> </span><span class="hs-number">733</span><span class="hs-special">,</span><span>
</span><a name="line-613"></a><span> </span><span class="hs-number">409</span><span class="hs-special">,</span><span> </span><span class="hs-number">506</span><span class="hs-special">,</span><span> </span><span class="hs-number">975</span><span class="hs-special">,</span><span> </span><span class="hs-number">838</span><span class="hs-special">,</span><span> </span><span class="hs-number">573</span><span class="hs-special">,</span><span> </span><span class="hs-number">970</span><span class="hs-special">,</span><span> </span><span class="hs-number">988</span><span class="hs-special">,</span><span> </span><span class="hs-number">913</span><span class="hs-special">,</span><span> </span><span class="hs-number">471</span><span class="hs-special">,</span><span> </span><span class="hs-number">205</span><span class="hs-special">,</span><span> </span><span class="hs-number">337</span><span class="hs-special">,</span><span> </span><span class="hs-number">49</span><span class="hs-special">,</span><span> </span><span class="hs-number">594</span><span class="hs-special">,</span><span> </span><span class="hs-number">777</span><span class="hs-special">,</span><span> </span><span class="hs-number">549</span><span class="hs-special">,</span><span>
</span><a name="line-614"></a><span> </span><span class="hs-number">815</span><span class="hs-special">,</span><span> </span><span class="hs-number">277</span><span class="hs-special">,</span><span> </span><span class="hs-number">27</span><span class="hs-special">,</span><span> </span><span class="hs-number">916</span><span class="hs-special">,</span><span> </span><span class="hs-number">333</span><span class="hs-special">,</span><span> </span><span class="hs-number">353</span><span class="hs-special">,</span><span> </span><span class="hs-number">844</span><span class="hs-special">,</span><span> </span><span class="hs-number">800</span><span class="hs-special">,</span><span> </span><span class="hs-number">146</span><span class="hs-special">,</span><span> </span><span class="hs-number">751</span><span class="hs-special">,</span><span> </span><span class="hs-number">186</span><span class="hs-special">,</span><span> </span><span class="hs-number">375</span><span class="hs-special">,</span><span> </span><span class="hs-number">769</span><span class="hs-special">,</span><span> </span><span class="hs-number">358</span><span class="hs-special">,</span><span> </span><span class="hs-number">392</span><span class="hs-special">,</span><span>
</span><a name="line-615"></a><span> </span><span class="hs-number">883</span><span class="hs-special">,</span><span> </span><span class="hs-number">474</span><span class="hs-special">,</span><span> </span><span class="hs-number">788</span><span class="hs-special">,</span><span> </span><span class="hs-number">602</span><span class="hs-special">,</span><span> </span><span class="hs-number">74</span><span class="hs-special">,</span><span> </span><span class="hs-number">130</span><span class="hs-special">,</span><span> </span><span class="hs-number">329</span><span class="hs-special">,</span><span> </span><span class="hs-number">212</span><span class="hs-special">,</span><span> </span><span class="hs-number">155</span><span class="hs-special">,</span><span> </span><span class="hs-number">131</span><span class="hs-special">,</span><span> </span><span class="hs-number">102</span><span class="hs-special">,</span><span> </span><span class="hs-number">687</span><span class="hs-special">,</span><span> </span><span class="hs-number">293</span><span class="hs-special">,</span><span> </span><span class="hs-number">870</span><span class="hs-special">,</span><span> </span><span class="hs-number">742</span><span class="hs-special">,</span><span>
</span><a name="line-616"></a><span> </span><span class="hs-number">726</span><span class="hs-special">,</span><span> </span><span class="hs-number">427</span><span class="hs-special">,</span><span> </span><span class="hs-number">217</span><span class="hs-special">,</span><span> </span><span class="hs-number">834</span><span class="hs-special">,</span><span> </span><span class="hs-number">904</span><span class="hs-special">,</span><span> </span><span class="hs-number">29</span><span class="hs-special">,</span><span> </span><span class="hs-number">127</span><span class="hs-special">,</span><span> </span><span class="hs-number">869</span><span class="hs-special">,</span><span> </span><span class="hs-number">407</span><span class="hs-special">,</span><span> </span><span class="hs-number">338</span><span class="hs-special">,</span><span> </span><span class="hs-number">832</span><span class="hs-special">,</span><span> </span><span class="hs-number">470</span><span class="hs-special">,</span><span> </span><span class="hs-number">482</span><span class="hs-special">,</span><span> </span><span class="hs-number">810</span><span class="hs-special">,</span><span> </span><span class="hs-number">399</span><span class="hs-special">,</span><span>
</span><a name="line-617"></a><span> </span><span class="hs-number">439</span><span class="hs-special">,</span><span> </span><span class="hs-number">393</span><span class="hs-special">,</span><span> </span><span class="hs-number">604</span><span class="hs-special">,</span><span> </span><span class="hs-number">929</span><span class="hs-special">,</span><span> </span><span class="hs-number">682</span><span class="hs-special">,</span><span> </span><span class="hs-number">447</span><span class="hs-special">,</span><span> </span><span class="hs-number">714</span><span class="hs-special">,</span><span> </span><span class="hs-number">251</span><span class="hs-special">,</span><span> </span><span class="hs-number">455</span><span class="hs-special">,</span><span> </span><span class="hs-number">875</span><span class="hs-special">,</span><span> </span><span class="hs-number">319</span><span class="hs-special">,</span><span> </span><span class="hs-number">477</span><span class="hs-special">,</span><span> </span><span class="hs-number">464</span><span class="hs-special">,</span><span> </span><span class="hs-number">521</span><span class="hs-special">,</span><span>
</span><a name="line-618"></a><span> </span><span class="hs-number">258</span><span class="hs-special">,</span><span> </span><span class="hs-number">377</span><span class="hs-special">,</span><span> </span><span class="hs-number">937</span><span class="hs-special">,</span><span> </span><span class="hs-number">489</span><span class="hs-special">,</span><span> </span><span class="hs-number">792</span><span class="hs-special">,</span><span> </span><span class="hs-number">172</span><span class="hs-special">,</span><span> </span><span class="hs-number">314</span><span class="hs-special">,</span><span> </span><span class="hs-number">327</span><span class="hs-special">,</span><span> </span><span class="hs-number">124</span><span class="hs-special">,</span><span> </span><span class="hs-number">20</span><span class="hs-special">,</span><span> </span><span class="hs-number">531</span><span class="hs-special">,</span><span> </span><span class="hs-number">953</span><span class="hs-special">,</span><span> </span><span class="hs-number">591</span><span class="hs-special">,</span><span> </span><span class="hs-number">886</span><span class="hs-special">,</span><span> </span><span class="hs-number">320</span><span class="hs-special">,</span><span>
</span><a name="line-619"></a><span> </span><span class="hs-number">696</span><span class="hs-special">,</span><span> </span><span class="hs-number">71</span><span class="hs-special">,</span><span> </span><span class="hs-number">859</span><span class="hs-special">,</span><span> </span><span class="hs-number">578</span><span class="hs-special">,</span><span> </span><span class="hs-number">175</span><span class="hs-special">,</span><span> </span><span class="hs-number">587</span><span class="hs-special">,</span><span> </span><span class="hs-number">707</span><span class="hs-special">,</span><span> </span><span class="hs-number">663</span><span class="hs-special">,</span><span> </span><span class="hs-number">283</span><span class="hs-special">,</span><span> </span><span class="hs-number">179</span><span class="hs-special">,</span><span> </span><span class="hs-number">795</span><span class="hs-special">,</span><span> </span><span class="hs-number">989</span><span class="hs-special">,</span><span> </span><span class="hs-number">702</span><span class="hs-special">,</span><span> </span><span class="hs-number">940</span><span class="hs-special">,</span><span> </span><span class="hs-number">371</span><span class="hs-special">,</span><span>
</span><a name="line-620"></a><span> </span><span class="hs-number">692</span><span class="hs-special">,</span><span> </span><span class="hs-number">689</span><span class="hs-special">,</span><span> </span><span class="hs-number">555</span><span class="hs-special">,</span><span> </span><span class="hs-number">903</span><span class="hs-special">,</span><span> </span><span class="hs-number">410</span><span class="hs-special">,</span><span> </span><span class="hs-number">651</span><span class="hs-special">,</span><span> </span><span class="hs-number">75</span><span class="hs-special">,</span><span> </span><span class="hs-number">429</span><span class="hs-special">,</span><span> </span><span class="hs-number">818</span><span class="hs-special">,</span><span> </span><span class="hs-number">362</span><span class="hs-special">,</span><span> </span><span class="hs-number">894</span><span class="hs-special">,</span><span> </span><span class="hs-number">515</span><span class="hs-special">,</span><span> </span><span class="hs-number">31</span><span class="hs-special">,</span><span> </span><span class="hs-number">545</span><span class="hs-special">,</span><span> </span><span class="hs-number">666</span><span class="hs-special">,</span><span>
</span><a name="line-621"></a><span> </span><span class="hs-number">706</span><span class="hs-special">,</span><span> </span><span class="hs-number">952</span><span class="hs-special">,</span><span> </span><span class="hs-number">864</span><span class="hs-special">,</span><span> </span><span class="hs-number">269</span><span class="hs-special">,</span><span> </span><span class="hs-number">254</span><span class="hs-special">,</span><span> </span><span class="hs-number">349</span><span class="hs-special">,</span><span> </span><span class="hs-number">711</span><span class="hs-special">,</span><span> </span><span class="hs-number">802</span><span class="hs-special">,</span><span> </span><span class="hs-number">716</span><span class="hs-special">,</span><span> </span><span class="hs-number">784</span><span class="hs-special">,</span><span> </span><span class="hs-number">1007</span><span class="hs-special">,</span><span> </span><span class="hs-number">925</span><span class="hs-special">,</span><span> </span><span class="hs-number">801</span><span class="hs-special">,</span><span> </span><span class="hs-number">445</span><span class="hs-special">,</span><span>
</span><a name="line-622"></a><span> </span><span class="hs-number">148</span><span class="hs-special">,</span><span> </span><span class="hs-number">260</span><span class="hs-special">,</span><span> </span><span class="hs-number">658</span><span class="hs-special">,</span><span> </span><span class="hs-number">385</span><span class="hs-special">,</span><span> </span><span class="hs-number">287</span><span class="hs-special">,</span><span> </span><span class="hs-number">262</span><span class="hs-special">,</span><span> </span><span class="hs-number">204</span><span class="hs-special">,</span><span> </span><span class="hs-number">126</span><span class="hs-special">,</span><span> </span><span class="hs-number">586</span><span class="hs-special">,</span><span> </span><span class="hs-number">1004</span><span class="hs-special">,</span><span> </span><span class="hs-number">236</span><span class="hs-special">,</span><span> </span><span class="hs-number">165</span><span class="hs-special">,</span><span> </span><span class="hs-number">854</span><span class="hs-special">,</span><span> </span><span class="hs-number">411</span><span class="hs-special">,</span><span>
</span><a name="line-623"></a><span> </span><span class="hs-number">932</span><span class="hs-special">,</span><span> </span><span class="hs-number">560</span><span class="hs-special">,</span><span> </span><span class="hs-number">19</span><span class="hs-special">,</span><span> </span><span class="hs-number">215</span><span class="hs-special">,</span><span> </span><span class="hs-number">1002</span><span class="hs-special">,</span><span> </span><span class="hs-number">775</span><span class="hs-special">,</span><span> </span><span class="hs-number">653</span><span class="hs-special">,</span><span> </span><span class="hs-number">928</span><span class="hs-special">,</span><span> </span><span class="hs-number">901</span><span class="hs-special">,</span><span> </span><span class="hs-number">964</span><span class="hs-special">,</span><span> </span><span class="hs-number">884</span><span class="hs-special">,</span><span> </span><span class="hs-number">798</span><span class="hs-special">,</span><span> </span><span class="hs-number">839</span><span class="hs-special">,</span><span> </span><span class="hs-number">786</span><span class="hs-special">,</span><span>
</span><a name="line-624"></a><span> </span><span class="hs-number">433</span><span class="hs-special">,</span><span> </span><span class="hs-number">610</span><span class="hs-special">,</span><span> </span><span class="hs-number">116</span><span class="hs-special">,</span><span> </span><span class="hs-number">855</span><span class="hs-special">,</span><span> </span><span class="hs-number">180</span><span class="hs-special">,</span><span> </span><span class="hs-number">479</span><span class="hs-special">,</span><span> </span><span class="hs-number">910</span><span class="hs-special">,</span><span> </span><span class="hs-number">1014</span><span class="hs-special">,</span><span> </span><span class="hs-number">599</span><span class="hs-special">,</span><span> </span><span class="hs-number">915</span><span class="hs-special">,</span><span> </span><span class="hs-number">905</span><span class="hs-special">,</span><span> </span><span class="hs-number">306</span><span class="hs-special">,</span><span> </span><span class="hs-number">516</span><span class="hs-special">,</span><span> </span><span class="hs-number">731</span><span class="hs-special">,</span><span>
</span><a name="line-625"></a><span> </span><span class="hs-number">626</span><span class="hs-special">,</span><span> </span><span class="hs-number">978</span><span class="hs-special">,</span><span> </span><span class="hs-number">825</span><span class="hs-special">,</span><span> </span><span class="hs-number">344</span><span class="hs-special">,</span><span> </span><span class="hs-number">605</span><span class="hs-special">,</span><span> </span><span class="hs-number">654</span><span class="hs-special">,</span><span> </span><span class="hs-number">209</span><span> </span><span class="hs-special">]</span><span>
</span><a name="line-626"></a><span>
</span><a name="line-627"></a><span class="hs-comment">-- | This lookup table is a Haskell translation of the reference JavaScript</span><span>
</span><a name="line-628"></a><span class="hs-comment">-- implementation here: https://git.io/fj8FE</span><span>
</span><a name="line-629"></a><span class="hs-identifier">gf_1024_log</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Array</span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-630"></a><a name="gf_1024_log"><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier">gf_1024_log</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Arr.listArray</span><span> </span><span class="hs-special">(</span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span> </span><span class="hs-special">[</span><span>
</span><a name="line-631"></a><span> </span><span class="hs-glyph">-</span><span class="hs-number">1</span><span class="hs-special">,</span><span> </span><span class="hs-number">0</span><span class="hs-special">,</span><span> </span><span class="hs-number">99</span><span class="hs-special">,</span><span> </span><span class="hs-number">363</span><span class="hs-special">,</span><span> </span><span class="hs-number">198</span><span class="hs-special">,</span><span> </span><span class="hs-number">726</span><span class="hs-special">,</span><span> </span><span class="hs-number">462</span><span class="hs-special">,</span><span> </span><span class="hs-number">132</span><span class="hs-special">,</span><span> </span><span class="hs-number">297</span><span class="hs-special">,</span><span> </span><span class="hs-number">495</span><span class="hs-special">,</span><span> </span><span class="hs-number">825</span><span class="hs-special">,</span><span> </span><span class="hs-number">528</span><span class="hs-special">,</span><span> </span><span class="hs-number">561</span><span class="hs-special">,</span><span> </span><span class="hs-number">693</span><span class="hs-special">,</span><span> </span><span class="hs-number">231</span><span class="hs-special">,</span><span>
</span><a name="line-632"></a><span> </span><span class="hs-number">66</span><span class="hs-special">,</span><span> </span><span class="hs-number">396</span><span class="hs-special">,</span><span> </span><span class="hs-number">429</span><span class="hs-special">,</span><span> </span><span class="hs-number">594</span><span class="hs-special">,</span><span> </span><span class="hs-number">990</span><span class="hs-special">,</span><span> </span><span class="hs-number">924</span><span class="hs-special">,</span><span> </span><span class="hs-number">264</span><span class="hs-special">,</span><span> </span><span class="hs-number">627</span><span class="hs-special">,</span><span> </span><span class="hs-number">33</span><span class="hs-special">,</span><span> </span><span class="hs-number">660</span><span class="hs-special">,</span><span> </span><span class="hs-number">759</span><span class="hs-special">,</span><span> </span><span class="hs-number">792</span><span class="hs-special">,</span><span> </span><span class="hs-number">858</span><span class="hs-special">,</span><span> </span><span class="hs-number">330</span><span class="hs-special">,</span><span> </span><span class="hs-number">891</span><span class="hs-special">,</span><span>
</span><a name="line-633"></a><span> </span><span class="hs-number">165</span><span class="hs-special">,</span><span> </span><span class="hs-number">957</span><span class="hs-special">,</span><span> </span><span class="hs-number">104</span><span class="hs-special">,</span><span> </span><span class="hs-number">259</span><span class="hs-special">,</span><span> </span><span class="hs-number">518</span><span class="hs-special">,</span><span> </span><span class="hs-number">208</span><span class="hs-special">,</span><span> </span><span class="hs-number">280</span><span class="hs-special">,</span><span> </span><span class="hs-number">776</span><span class="hs-special">,</span><span> </span><span class="hs-number">416</span><span class="hs-special">,</span><span> </span><span class="hs-number">13</span><span class="hs-special">,</span><span> </span><span class="hs-number">426</span><span class="hs-special">,</span><span> </span><span class="hs-number">333</span><span class="hs-special">,</span><span> </span><span class="hs-number">618</span><span class="hs-special">,</span><span> </span><span class="hs-number">339</span><span class="hs-special">,</span><span> </span><span class="hs-number">641</span><span class="hs-special">,</span><span>
</span><a name="line-634"></a><span> </span><span class="hs-number">52</span><span class="hs-special">,</span><span> </span><span class="hs-number">388</span><span class="hs-special">,</span><span> </span><span class="hs-number">140</span><span class="hs-special">,</span><span> </span><span class="hs-number">666</span><span class="hs-special">,</span><span> </span><span class="hs-number">852</span><span class="hs-special">,</span><span> </span><span class="hs-number">529</span><span class="hs-special">,</span><span> </span><span class="hs-number">560</span><span class="hs-special">,</span><span> </span><span class="hs-number">678</span><span class="hs-special">,</span><span> </span><span class="hs-number">213</span><span class="hs-special">,</span><span> </span><span class="hs-number">26</span><span class="hs-special">,</span><span> </span><span class="hs-number">832</span><span class="hs-special">,</span><span> </span><span class="hs-number">681</span><span class="hs-special">,</span><span> </span><span class="hs-number">309</span><span class="hs-special">,</span><span> </span><span class="hs-number">70</span><span class="hs-special">,</span><span> </span><span class="hs-number">194</span><span class="hs-special">,</span><span>
</span><a name="line-635"></a><span> </span><span class="hs-number">97</span><span class="hs-special">,</span><span> </span><span class="hs-number">35</span><span class="hs-special">,</span><span> </span><span class="hs-number">682</span><span class="hs-special">,</span><span> </span><span class="hs-number">341</span><span class="hs-special">,</span><span> </span><span class="hs-number">203</span><span class="hs-special">,</span><span> </span><span class="hs-number">777</span><span class="hs-special">,</span><span> </span><span class="hs-number">358</span><span class="hs-special">,</span><span> </span><span class="hs-number">312</span><span class="hs-special">,</span><span> </span><span class="hs-number">617</span><span class="hs-special">,</span><span> </span><span class="hs-number">125</span><span class="hs-special">,</span><span> </span><span class="hs-number">307</span><span class="hs-special">,</span><span> </span><span class="hs-number">931</span><span class="hs-special">,</span><span> </span><span class="hs-number">379</span><span class="hs-special">,</span><span> </span><span class="hs-number">765</span><span class="hs-special">,</span><span> </span><span class="hs-number">875</span><span class="hs-special">,</span><span>
</span><a name="line-636"></a><span> </span><span class="hs-number">951</span><span class="hs-special">,</span><span> </span><span class="hs-number">515</span><span class="hs-special">,</span><span> </span><span class="hs-number">628</span><span class="hs-special">,</span><span> </span><span class="hs-number">112</span><span class="hs-special">,</span><span> </span><span class="hs-number">659</span><span class="hs-special">,</span><span> </span><span class="hs-number">525</span><span class="hs-special">,</span><span> </span><span class="hs-number">196</span><span class="hs-special">,</span><span> </span><span class="hs-number">432</span><span class="hs-special">,</span><span> </span><span class="hs-number">134</span><span class="hs-special">,</span><span> </span><span class="hs-number">717</span><span class="hs-special">,</span><span> </span><span class="hs-number">781</span><span class="hs-special">,</span><span> </span><span class="hs-number">438</span><span class="hs-special">,</span><span> </span><span class="hs-number">440</span><span class="hs-special">,</span><span> </span><span class="hs-number">740</span><span class="hs-special">,</span><span>
</span><a name="line-637"></a><span> </span><span class="hs-number">780</span><span class="hs-special">,</span><span> </span><span class="hs-number">151</span><span class="hs-special">,</span><span> </span><span class="hs-number">408</span><span class="hs-special">,</span><span> </span><span class="hs-number">487</span><span class="hs-special">,</span><span> </span><span class="hs-number">169</span><span class="hs-special">,</span><span> </span><span class="hs-number">239</span><span class="hs-special">,</span><span> </span><span class="hs-number">293</span><span class="hs-special">,</span><span> </span><span class="hs-number">467</span><span class="hs-special">,</span><span> </span><span class="hs-number">21</span><span class="hs-special">,</span><span> </span><span class="hs-number">672</span><span class="hs-special">,</span><span> </span><span class="hs-number">622</span><span class="hs-special">,</span><span> </span><span class="hs-number">557</span><span class="hs-special">,</span><span> </span><span class="hs-number">571</span><span class="hs-special">,</span><span> </span><span class="hs-number">881</span><span class="hs-special">,</span><span> </span><span class="hs-number">433</span><span class="hs-special">,</span><span>
</span><a name="line-638"></a><span> </span><span class="hs-number">704</span><span class="hs-special">,</span><span> </span><span class="hs-number">376</span><span class="hs-special">,</span><span> </span><span class="hs-number">779</span><span class="hs-special">,</span><span> </span><span class="hs-number">22</span><span class="hs-special">,</span><span> </span><span class="hs-number">643</span><span class="hs-special">,</span><span> </span><span class="hs-number">460</span><span class="hs-special">,</span><span> </span><span class="hs-number">398</span><span class="hs-special">,</span><span> </span><span class="hs-number">116</span><span class="hs-special">,</span><span> </span><span class="hs-number">172</span><span class="hs-special">,</span><span> </span><span class="hs-number">503</span><span class="hs-special">,</span><span> </span><span class="hs-number">751</span><span class="hs-special">,</span><span> </span><span class="hs-number">389</span><span class="hs-special">,</span><span> </span><span class="hs-number">1004</span><span class="hs-special">,</span><span> </span><span class="hs-number">18</span><span class="hs-special">,</span><span> </span><span class="hs-number">576</span><span class="hs-special">,</span><span>
</span><a name="line-639"></a><span> </span><span class="hs-number">415</span><span class="hs-special">,</span><span> </span><span class="hs-number">789</span><span class="hs-special">,</span><span> </span><span class="hs-number">6</span><span class="hs-special">,</span><span> </span><span class="hs-number">192</span><span class="hs-special">,</span><span> </span><span class="hs-number">696</span><span class="hs-special">,</span><span> </span><span class="hs-number">923</span><span class="hs-special">,</span><span> </span><span class="hs-number">702</span><span class="hs-special">,</span><span> </span><span class="hs-number">981</span><span class="hs-special">,</span><span> </span><span class="hs-number">892</span><span class="hs-special">,</span><span> </span><span class="hs-number">302</span><span class="hs-special">,</span><span> </span><span class="hs-number">816</span><span class="hs-special">,</span><span> </span><span class="hs-number">876</span><span class="hs-special">,</span><span> </span><span class="hs-number">880</span><span class="hs-special">,</span><span> </span><span class="hs-number">457</span><span class="hs-special">,</span><span> </span><span class="hs-number">537</span><span class="hs-special">,</span><span>
</span><a name="line-640"></a><span> </span><span class="hs-number">411</span><span class="hs-special">,</span><span> </span><span class="hs-number">539</span><span class="hs-special">,</span><span> </span><span class="hs-number">716</span><span class="hs-special">,</span><span> </span><span class="hs-number">624</span><span class="hs-special">,</span><span> </span><span class="hs-number">224</span><span class="hs-special">,</span><span> </span><span class="hs-number">295</span><span class="hs-special">,</span><span> </span><span class="hs-number">406</span><span class="hs-special">,</span><span> </span><span class="hs-number">531</span><span class="hs-special">,</span><span> </span><span class="hs-number">7</span><span class="hs-special">,</span><span> </span><span class="hs-number">233</span><span class="hs-special">,</span><span> </span><span class="hs-number">478</span><span class="hs-special">,</span><span> </span><span class="hs-number">586</span><span class="hs-special">,</span><span> </span><span class="hs-number">864</span><span class="hs-special">,</span><span> </span><span class="hs-number">268</span><span class="hs-special">,</span><span> </span><span class="hs-number">974</span><span class="hs-special">,</span><span>
</span><a name="line-641"></a><span> </span><span class="hs-number">338</span><span class="hs-special">,</span><span> </span><span class="hs-number">27</span><span class="hs-special">,</span><span> </span><span class="hs-number">392</span><span class="hs-special">,</span><span> </span><span class="hs-number">614</span><span class="hs-special">,</span><span> </span><span class="hs-number">839</span><span class="hs-special">,</span><span> </span><span class="hs-number">727</span><span class="hs-special">,</span><span> </span><span class="hs-number">879</span><span class="hs-special">,</span><span> </span><span class="hs-number">211</span><span class="hs-special">,</span><span> </span><span class="hs-number">250</span><span class="hs-special">,</span><span> </span><span class="hs-number">758</span><span class="hs-special">,</span><span> </span><span class="hs-number">507</span><span class="hs-special">,</span><span> </span><span class="hs-number">830</span><span class="hs-special">,</span><span> </span><span class="hs-number">129</span><span class="hs-special">,</span><span> </span><span class="hs-number">369</span><span class="hs-special">,</span><span> </span><span class="hs-number">384</span><span class="hs-special">,</span><span>
</span><a name="line-642"></a><span> </span><span class="hs-number">36</span><span class="hs-special">,</span><span> </span><span class="hs-number">985</span><span class="hs-special">,</span><span> </span><span class="hs-number">12</span><span class="hs-special">,</span><span> </span><span class="hs-number">555</span><span class="hs-special">,</span><span> </span><span class="hs-number">232</span><span class="hs-special">,</span><span> </span><span class="hs-number">796</span><span class="hs-special">,</span><span> </span><span class="hs-number">221</span><span class="hs-special">,</span><span> </span><span class="hs-number">321</span><span class="hs-special">,</span><span> </span><span class="hs-number">920</span><span class="hs-special">,</span><span> </span><span class="hs-number">263</span><span class="hs-special">,</span><span> </span><span class="hs-number">42</span><span class="hs-special">,</span><span> </span><span class="hs-number">934</span><span class="hs-special">,</span><span> </span><span class="hs-number">778</span><span class="hs-special">,</span><span> </span><span class="hs-number">479</span><span class="hs-special">,</span><span> </span><span class="hs-number">761</span><span class="hs-special">,</span><span>
</span><a name="line-643"></a><span> </span><span class="hs-number">939</span><span class="hs-special">,</span><span> </span><span class="hs-number">1006</span><span class="hs-special">,</span><span> </span><span class="hs-number">344</span><span class="hs-special">,</span><span> </span><span class="hs-number">381</span><span class="hs-special">,</span><span> </span><span class="hs-number">823</span><span class="hs-special">,</span><span> </span><span class="hs-number">44</span><span class="hs-special">,</span><span> </span><span class="hs-number">535</span><span class="hs-special">,</span><span> </span><span class="hs-number">866</span><span class="hs-special">,</span><span> </span><span class="hs-number">739</span><span class="hs-special">,</span><span> </span><span class="hs-number">752</span><span class="hs-special">,</span><span> </span><span class="hs-number">385</span><span class="hs-special">,</span><span> </span><span class="hs-number">119</span><span class="hs-special">,</span><span> </span><span class="hs-number">91</span><span class="hs-special">,</span><span> </span><span class="hs-number">566</span><span class="hs-special">,</span><span> </span><span class="hs-number">80</span><span class="hs-special">,</span><span>
</span><a name="line-644"></a><span> </span><span class="hs-number">120</span><span class="hs-special">,</span><span> </span><span class="hs-number">117</span><span class="hs-special">,</span><span> </span><span class="hs-number">771</span><span class="hs-special">,</span><span> </span><span class="hs-number">675</span><span class="hs-special">,</span><span> </span><span class="hs-number">721</span><span class="hs-special">,</span><span> </span><span class="hs-number">514</span><span class="hs-special">,</span><span> </span><span class="hs-number">656</span><span class="hs-special">,</span><span> </span><span class="hs-number">271</span><span class="hs-special">,</span><span> </span><span class="hs-number">670</span><span class="hs-special">,</span><span> </span><span class="hs-number">602</span><span class="hs-special">,</span><span> </span><span class="hs-number">980</span><span class="hs-special">,</span><span> </span><span class="hs-number">850</span><span class="hs-special">,</span><span> </span><span class="hs-number">532</span><span class="hs-special">,</span><span> </span><span class="hs-number">488</span><span class="hs-special">,</span><span>
</span><a name="line-645"></a><span> </span><span class="hs-number">803</span><span class="hs-special">,</span><span> </span><span class="hs-number">1022</span><span class="hs-special">,</span><span> </span><span class="hs-number">475</span><span class="hs-special">,</span><span> </span><span class="hs-number">801</span><span class="hs-special">,</span><span> </span><span class="hs-number">878</span><span class="hs-special">,</span><span> </span><span class="hs-number">57</span><span class="hs-special">,</span><span> </span><span class="hs-number">121</span><span class="hs-special">,</span><span> </span><span class="hs-number">991</span><span class="hs-special">,</span><span> </span><span class="hs-number">742</span><span class="hs-special">,</span><span> </span><span class="hs-number">888</span><span class="hs-special">,</span><span> </span><span class="hs-number">559</span><span class="hs-special">,</span><span> </span><span class="hs-number">105</span><span class="hs-special">,</span><span> </span><span class="hs-number">497</span><span class="hs-special">,</span><span> </span><span class="hs-number">291</span><span class="hs-special">,</span><span>
</span><a name="line-646"></a><span> </span><span class="hs-number">215</span><span class="hs-special">,</span><span> </span><span class="hs-number">795</span><span class="hs-special">,</span><span> </span><span class="hs-number">236</span><span class="hs-special">,</span><span> </span><span class="hs-number">167</span><span class="hs-special">,</span><span> </span><span class="hs-number">692</span><span class="hs-special">,</span><span> </span><span class="hs-number">520</span><span class="hs-special">,</span><span> </span><span class="hs-number">272</span><span class="hs-special">,</span><span> </span><span class="hs-number">661</span><span class="hs-special">,</span><span> </span><span class="hs-number">229</span><span class="hs-special">,</span><span> </span><span class="hs-number">391</span><span class="hs-special">,</span><span> </span><span class="hs-number">814</span><span class="hs-special">,</span><span> </span><span class="hs-number">340</span><span class="hs-special">,</span><span> </span><span class="hs-number">184</span><span class="hs-special">,</span><span> </span><span class="hs-number">798</span><span class="hs-special">,</span><span>
</span><a name="line-647"></a><span> </span><span class="hs-number">984</span><span class="hs-special">,</span><span> </span><span class="hs-number">773</span><span class="hs-special">,</span><span> </span><span class="hs-number">650</span><span class="hs-special">,</span><span> </span><span class="hs-number">473</span><span class="hs-special">,</span><span> </span><span class="hs-number">345</span><span class="hs-special">,</span><span> </span><span class="hs-number">558</span><span class="hs-special">,</span><span> </span><span class="hs-number">548</span><span class="hs-special">,</span><span> </span><span class="hs-number">326</span><span class="hs-special">,</span><span> </span><span class="hs-number">202</span><span class="hs-special">,</span><span> </span><span class="hs-number">145</span><span class="hs-special">,</span><span> </span><span class="hs-number">465</span><span class="hs-special">,</span><span> </span><span class="hs-number">810</span><span class="hs-special">,</span><span> </span><span class="hs-number">471</span><span class="hs-special">,</span><span> </span><span class="hs-number">158</span><span class="hs-special">,</span><span>
</span><a name="line-648"></a><span> </span><span class="hs-number">813</span><span class="hs-special">,</span><span> </span><span class="hs-number">908</span><span class="hs-special">,</span><span> </span><span class="hs-number">412</span><span class="hs-special">,</span><span> </span><span class="hs-number">441</span><span class="hs-special">,</span><span> </span><span class="hs-number">964</span><span class="hs-special">,</span><span> </span><span class="hs-number">750</span><span class="hs-special">,</span><span> </span><span class="hs-number">401</span><span class="hs-special">,</span><span> </span><span class="hs-number">50</span><span class="hs-special">,</span><span> </span><span class="hs-number">915</span><span class="hs-special">,</span><span> </span><span class="hs-number">437</span><span class="hs-special">,</span><span> </span><span class="hs-number">975</span><span class="hs-special">,</span><span> </span><span class="hs-number">126</span><span class="hs-special">,</span><span> </span><span class="hs-number">979</span><span class="hs-special">,</span><span> </span><span class="hs-number">491</span><span class="hs-special">,</span><span> </span><span class="hs-number">556</span><span class="hs-special">,</span><span>
</span><a name="line-649"></a><span> </span><span class="hs-number">577</span><span class="hs-special">,</span><span> </span><span class="hs-number">636</span><span class="hs-special">,</span><span> </span><span class="hs-number">685</span><span class="hs-special">,</span><span> </span><span class="hs-number">510</span><span class="hs-special">,</span><span> </span><span class="hs-number">963</span><span class="hs-special">,</span><span> </span><span class="hs-number">638</span><span class="hs-special">,</span><span> </span><span class="hs-number">367</span><span class="hs-special">,</span><span> </span><span class="hs-number">815</span><span class="hs-special">,</span><span> </span><span class="hs-number">310</span><span class="hs-special">,</span><span> </span><span class="hs-number">723</span><span class="hs-special">,</span><span> </span><span class="hs-number">349</span><span class="hs-special">,</span><span> </span><span class="hs-number">323</span><span class="hs-special">,</span><span> </span><span class="hs-number">857</span><span class="hs-special">,</span><span> </span><span class="hs-number">394</span><span class="hs-special">,</span><span>
</span><a name="line-650"></a><span> </span><span class="hs-number">606</span><span class="hs-special">,</span><span> </span><span class="hs-number">505</span><span class="hs-special">,</span><span> </span><span class="hs-number">713</span><span class="hs-special">,</span><span> </span><span class="hs-number">630</span><span class="hs-special">,</span><span> </span><span class="hs-number">938</span><span class="hs-special">,</span><span> </span><span class="hs-number">106</span><span class="hs-special">,</span><span> </span><span class="hs-number">826</span><span class="hs-special">,</span><span> </span><span class="hs-number">332</span><span class="hs-special">,</span><span> </span><span class="hs-number">978</span><span class="hs-special">,</span><span> </span><span class="hs-number">599</span><span class="hs-special">,</span><span> </span><span class="hs-number">834</span><span class="hs-special">,</span><span> </span><span class="hs-number">521</span><span class="hs-special">,</span><span> </span><span class="hs-number">530</span><span class="hs-special">,</span><span> </span><span class="hs-number">248</span><span class="hs-special">,</span><span>
</span><a name="line-651"></a><span> </span><span class="hs-number">883</span><span class="hs-special">,</span><span> </span><span class="hs-number">32</span><span class="hs-special">,</span><span> </span><span class="hs-number">153</span><span class="hs-special">,</span><span> </span><span class="hs-number">90</span><span class="hs-special">,</span><span> </span><span class="hs-number">754</span><span class="hs-special">,</span><span> </span><span class="hs-number">592</span><span class="hs-special">,</span><span> </span><span class="hs-number">304</span><span class="hs-special">,</span><span> </span><span class="hs-number">635</span><span class="hs-special">,</span><span> </span><span class="hs-number">775</span><span class="hs-special">,</span><span> </span><span class="hs-number">804</span><span class="hs-special">,</span><span> </span><span class="hs-number">1</span><span class="hs-special">,</span><span> </span><span class="hs-number">150</span><span class="hs-special">,</span><span> </span><span class="hs-number">836</span><span class="hs-special">,</span><span> </span><span class="hs-number">1013</span><span class="hs-special">,</span><span> </span><span class="hs-number">828</span><span class="hs-special">,</span><span>
</span><a name="line-652"></a><span> </span><span class="hs-number">324</span><span class="hs-special">,</span><span> </span><span class="hs-number">565</span><span class="hs-special">,</span><span> </span><span class="hs-number">508</span><span class="hs-special">,</span><span> </span><span class="hs-number">113</span><span class="hs-special">,</span><span> </span><span class="hs-number">154</span><span class="hs-special">,</span><span> </span><span class="hs-number">708</span><span class="hs-special">,</span><span> </span><span class="hs-number">921</span><span class="hs-special">,</span><span> </span><span class="hs-number">703</span><span class="hs-special">,</span><span> </span><span class="hs-number">689</span><span class="hs-special">,</span><span> </span><span class="hs-number">138</span><span class="hs-special">,</span><span> </span><span class="hs-number">547</span><span class="hs-special">,</span><span> </span><span class="hs-number">911</span><span class="hs-special">,</span><span> </span><span class="hs-number">929</span><span class="hs-special">,</span><span> </span><span class="hs-number">82</span><span class="hs-special">,</span><span> </span><span class="hs-number">228</span><span class="hs-special">,</span><span>
</span><a name="line-653"></a><span> </span><span class="hs-number">443</span><span class="hs-special">,</span><span> </span><span class="hs-number">468</span><span class="hs-special">,</span><span> </span><span class="hs-number">480</span><span class="hs-special">,</span><span> </span><span class="hs-number">483</span><span class="hs-special">,</span><span> </span><span class="hs-number">922</span><span class="hs-special">,</span><span> </span><span class="hs-number">135</span><span class="hs-special">,</span><span> </span><span class="hs-number">877</span><span class="hs-special">,</span><span> </span><span class="hs-number">61</span><span class="hs-special">,</span><span> </span><span class="hs-number">578</span><span class="hs-special">,</span><span> </span><span class="hs-number">111</span><span class="hs-special">,</span><span> </span><span class="hs-number">860</span><span class="hs-special">,</span><span> </span><span class="hs-number">654</span><span class="hs-special">,</span><span> </span><span class="hs-number">15</span><span class="hs-special">,</span><span> </span><span class="hs-number">331</span><span class="hs-special">,</span><span> </span><span class="hs-number">851</span><span class="hs-special">,</span><span>
</span><a name="line-654"></a><span> </span><span class="hs-number">895</span><span class="hs-special">,</span><span> </span><span class="hs-number">484</span><span class="hs-special">,</span><span> </span><span class="hs-number">320</span><span class="hs-special">,</span><span> </span><span class="hs-number">218</span><span class="hs-special">,</span><span> </span><span class="hs-number">420</span><span class="hs-special">,</span><span> </span><span class="hs-number">190</span><span class="hs-special">,</span><span> </span><span class="hs-number">1019</span><span class="hs-special">,</span><span> </span><span class="hs-number">143</span><span class="hs-special">,</span><span> </span><span class="hs-number">362</span><span class="hs-special">,</span><span> </span><span class="hs-number">634</span><span class="hs-special">,</span><span> </span><span class="hs-number">141</span><span class="hs-special">,</span><span> </span><span class="hs-number">965</span><span class="hs-special">,</span><span> </span><span class="hs-number">10</span><span class="hs-special">,</span><span> </span><span class="hs-number">838</span><span class="hs-special">,</span><span>
</span><a name="line-655"></a><span> </span><span class="hs-number">632</span><span class="hs-special">,</span><span> </span><span class="hs-number">861</span><span class="hs-special">,</span><span> </span><span class="hs-number">34</span><span class="hs-special">,</span><span> </span><span class="hs-number">722</span><span class="hs-special">,</span><span> </span><span class="hs-number">580</span><span class="hs-special">,</span><span> </span><span class="hs-number">808</span><span class="hs-special">,</span><span> </span><span class="hs-number">869</span><span class="hs-special">,</span><span> </span><span class="hs-number">554</span><span class="hs-special">,</span><span> </span><span class="hs-number">598</span><span class="hs-special">,</span><span> </span><span class="hs-number">65</span><span class="hs-special">,</span><span> </span><span class="hs-number">954</span><span class="hs-special">,</span><span> </span><span class="hs-number">787</span><span class="hs-special">,</span><span> </span><span class="hs-number">337</span><span class="hs-special">,</span><span> </span><span class="hs-number">187</span><span class="hs-special">,</span><span> </span><span class="hs-number">281</span><span class="hs-special">,</span><span>
</span><a name="line-656"></a><span> </span><span class="hs-number">146</span><span class="hs-special">,</span><span> </span><span class="hs-number">563</span><span class="hs-special">,</span><span> </span><span class="hs-number">183</span><span class="hs-special">,</span><span> </span><span class="hs-number">668</span><span class="hs-special">,</span><span> </span><span class="hs-number">944</span><span class="hs-special">,</span><span> </span><span class="hs-number">171</span><span class="hs-special">,</span><span> </span><span class="hs-number">837</span><span class="hs-special">,</span><span> </span><span class="hs-number">23</span><span class="hs-special">,</span><span> </span><span class="hs-number">867</span><span class="hs-special">,</span><span> </span><span class="hs-number">541</span><span class="hs-special">,</span><span> </span><span class="hs-number">916</span><span class="hs-special">,</span><span> </span><span class="hs-number">741</span><span class="hs-special">,</span><span> </span><span class="hs-number">625</span><span class="hs-special">,</span><span> </span><span class="hs-number">123</span><span class="hs-special">,</span><span> </span><span class="hs-number">736</span><span class="hs-special">,</span><span>
</span><a name="line-657"></a><span> </span><span class="hs-number">186</span><span class="hs-special">,</span><span> </span><span class="hs-number">357</span><span class="hs-special">,</span><span> </span><span class="hs-number">665</span><span class="hs-special">,</span><span> </span><span class="hs-number">977</span><span class="hs-special">,</span><span> </span><span class="hs-number">179</span><span class="hs-special">,</span><span> </span><span class="hs-number">156</span><span class="hs-special">,</span><span> </span><span class="hs-number">219</span><span class="hs-special">,</span><span> </span><span class="hs-number">220</span><span class="hs-special">,</span><span> </span><span class="hs-number">216</span><span class="hs-special">,</span><span> </span><span class="hs-number">67</span><span class="hs-special">,</span><span> </span><span class="hs-number">870</span><span class="hs-special">,</span><span> </span><span class="hs-number">902</span><span class="hs-special">,</span><span> </span><span class="hs-number">774</span><span class="hs-special">,</span><span> </span><span class="hs-number">98</span><span class="hs-special">,</span><span> </span><span class="hs-number">820</span><span class="hs-special">,</span><span>
</span><a name="line-658"></a><span> </span><span class="hs-number">574</span><span class="hs-special">,</span><span> </span><span class="hs-number">613</span><span class="hs-special">,</span><span> </span><span class="hs-number">900</span><span class="hs-special">,</span><span> </span><span class="hs-number">755</span><span class="hs-special">,</span><span> </span><span class="hs-number">596</span><span class="hs-special">,</span><span> </span><span class="hs-number">370</span><span class="hs-special">,</span><span> </span><span class="hs-number">390</span><span class="hs-special">,</span><span> </span><span class="hs-number">769</span><span class="hs-special">,</span><span> </span><span class="hs-number">314</span><span class="hs-special">,</span><span> </span><span class="hs-number">701</span><span class="hs-special">,</span><span> </span><span class="hs-number">894</span><span class="hs-special">,</span><span> </span><span class="hs-number">56</span><span class="hs-special">,</span><span> </span><span class="hs-number">841</span><span class="hs-special">,</span><span> </span><span class="hs-number">949</span><span class="hs-special">,</span><span> </span><span class="hs-number">987</span><span class="hs-special">,</span><span>
</span><a name="line-659"></a><span> </span><span class="hs-number">631</span><span class="hs-special">,</span><span> </span><span class="hs-number">658</span><span class="hs-special">,</span><span> </span><span class="hs-number">587</span><span class="hs-special">,</span><span> </span><span class="hs-number">204</span><span class="hs-special">,</span><span> </span><span class="hs-number">797</span><span class="hs-special">,</span><span> </span><span class="hs-number">790</span><span class="hs-special">,</span><span> </span><span class="hs-number">522</span><span class="hs-special">,</span><span> </span><span class="hs-number">745</span><span class="hs-special">,</span><span> </span><span class="hs-number">9</span><span class="hs-special">,</span><span> </span><span class="hs-number">502</span><span class="hs-special">,</span><span> </span><span class="hs-number">763</span><span class="hs-special">,</span><span> </span><span class="hs-number">86</span><span class="hs-special">,</span><span> </span><span class="hs-number">719</span><span class="hs-special">,</span><span> </span><span class="hs-number">288</span><span class="hs-special">,</span><span> </span><span class="hs-number">706</span><span class="hs-special">,</span><span>
</span><a name="line-660"></a><span> </span><span class="hs-number">887</span><span class="hs-special">,</span><span> </span><span class="hs-number">728</span><span class="hs-special">,</span><span> </span><span class="hs-number">952</span><span class="hs-special">,</span><span> </span><span class="hs-number">311</span><span class="hs-special">,</span><span> </span><span class="hs-number">336</span><span class="hs-special">,</span><span> </span><span class="hs-number">446</span><span class="hs-special">,</span><span> </span><span class="hs-number">1002</span><span class="hs-special">,</span><span> </span><span class="hs-number">348</span><span class="hs-special">,</span><span> </span><span class="hs-number">96</span><span class="hs-special">,</span><span> </span><span class="hs-number">58</span><span class="hs-special">,</span><span> </span><span class="hs-number">199</span><span class="hs-special">,</span><span> </span><span class="hs-number">11</span><span class="hs-special">,</span><span> </span><span class="hs-number">901</span><span class="hs-special">,</span><span> </span><span class="hs-number">230</span><span class="hs-special">,</span><span> </span><span class="hs-number">833</span><span class="hs-special">,</span><span>
</span><a name="line-661"></a><span> </span><span class="hs-number">188</span><span class="hs-special">,</span><span> </span><span class="hs-number">352</span><span class="hs-special">,</span><span> </span><span class="hs-number">351</span><span class="hs-special">,</span><span> </span><span class="hs-number">973</span><span class="hs-special">,</span><span> </span><span class="hs-number">3</span><span class="hs-special">,</span><span> </span><span class="hs-number">906</span><span class="hs-special">,</span><span> </span><span class="hs-number">335</span><span class="hs-special">,</span><span> </span><span class="hs-number">301</span><span class="hs-special">,</span><span> </span><span class="hs-number">266</span><span class="hs-special">,</span><span> </span><span class="hs-number">244</span><span class="hs-special">,</span><span> </span><span class="hs-number">791</span><span class="hs-special">,</span><span> </span><span class="hs-number">564</span><span class="hs-special">,</span><span> </span><span class="hs-number">619</span><span class="hs-special">,</span><span> </span><span class="hs-number">909</span><span class="hs-special">,</span><span> </span><span class="hs-number">371</span><span class="hs-special">,</span><span>
</span><a name="line-662"></a><span> </span><span class="hs-number">444</span><span class="hs-special">,</span><span> </span><span class="hs-number">760</span><span class="hs-special">,</span><span> </span><span class="hs-number">657</span><span class="hs-special">,</span><span> </span><span class="hs-number">328</span><span class="hs-special">,</span><span> </span><span class="hs-number">647</span><span class="hs-special">,</span><span> </span><span class="hs-number">490</span><span class="hs-special">,</span><span> </span><span class="hs-number">425</span><span class="hs-special">,</span><span> </span><span class="hs-number">913</span><span class="hs-special">,</span><span> </span><span class="hs-number">511</span><span class="hs-special">,</span><span> </span><span class="hs-number">439</span><span class="hs-special">,</span><span> </span><span class="hs-number">540</span><span class="hs-special">,</span><span> </span><span class="hs-number">283</span><span class="hs-special">,</span><span> </span><span class="hs-number">40</span><span class="hs-special">,</span><span> </span><span class="hs-number">897</span><span class="hs-special">,</span><span> </span><span class="hs-number">849</span><span class="hs-special">,</span><span>
</span><a name="line-663"></a><span> </span><span class="hs-number">60</span><span class="hs-special">,</span><span> </span><span class="hs-number">570</span><span class="hs-special">,</span><span> </span><span class="hs-number">872</span><span class="hs-special">,</span><span> </span><span class="hs-number">257</span><span class="hs-special">,</span><span> </span><span class="hs-number">749</span><span class="hs-special">,</span><span> </span><span class="hs-number">912</span><span class="hs-special">,</span><span> </span><span class="hs-number">572</span><span class="hs-special">,</span><span> </span><span class="hs-number">1007</span><span class="hs-special">,</span><span> </span><span class="hs-number">170</span><span class="hs-special">,</span><span> </span><span class="hs-number">407</span><span class="hs-special">,</span><span> </span><span class="hs-number">898</span><span class="hs-special">,</span><span> </span><span class="hs-number">492</span><span class="hs-special">,</span><span> </span><span class="hs-number">79</span><span class="hs-special">,</span><span> </span><span class="hs-number">747</span><span class="hs-special">,</span><span> </span><span class="hs-number">732</span><span class="hs-special">,</span><span>
</span><a name="line-664"></a><span> </span><span class="hs-number">206</span><span class="hs-special">,</span><span> </span><span class="hs-number">454</span><span class="hs-special">,</span><span> </span><span class="hs-number">918</span><span class="hs-special">,</span><span> </span><span class="hs-number">375</span><span class="hs-special">,</span><span> </span><span class="hs-number">482</span><span class="hs-special">,</span><span> </span><span class="hs-number">399</span><span class="hs-special">,</span><span> </span><span class="hs-number">92</span><span class="hs-special">,</span><span> </span><span class="hs-number">748</span><span class="hs-special">,</span><span> </span><span class="hs-number">325</span><span class="hs-special">,</span><span> </span><span class="hs-number">163</span><span class="hs-special">,</span><span> </span><span class="hs-number">274</span><span class="hs-special">,</span><span> </span><span class="hs-number">405</span><span class="hs-special">,</span><span> </span><span class="hs-number">744</span><span class="hs-special">,</span><span> </span><span class="hs-number">260</span><span class="hs-special">,</span><span> </span><span class="hs-number">346</span><span class="hs-special">,</span><span>
</span><a name="line-665"></a><span> </span><span class="hs-number">707</span><span class="hs-special">,</span><span> </span><span class="hs-number">626</span><span class="hs-special">,</span><span> </span><span class="hs-number">595</span><span class="hs-special">,</span><span> </span><span class="hs-number">118</span><span class="hs-special">,</span><span> </span><span class="hs-number">842</span><span class="hs-special">,</span><span> </span><span class="hs-number">136</span><span class="hs-special">,</span><span> </span><span class="hs-number">279</span><span class="hs-special">,</span><span> </span><span class="hs-number">684</span><span class="hs-special">,</span><span> </span><span class="hs-number">584</span><span class="hs-special">,</span><span> </span><span class="hs-number">101</span><span class="hs-special">,</span><span> </span><span class="hs-number">500</span><span class="hs-special">,</span><span> </span><span class="hs-number">422</span><span class="hs-special">,</span><span> </span><span class="hs-number">149</span><span class="hs-special">,</span><span> </span><span class="hs-number">956</span><span class="hs-special">,</span><span>
</span><a name="line-666"></a><span> </span><span class="hs-number">1014</span><span class="hs-special">,</span><span> </span><span class="hs-number">493</span><span class="hs-special">,</span><span> </span><span class="hs-number">536</span><span class="hs-special">,</span><span> </span><span class="hs-number">705</span><span class="hs-special">,</span><span> </span><span class="hs-number">51</span><span class="hs-special">,</span><span> </span><span class="hs-number">914</span><span class="hs-special">,</span><span> </span><span class="hs-number">225</span><span class="hs-special">,</span><span> </span><span class="hs-number">409</span><span class="hs-special">,</span><span> </span><span class="hs-number">55</span><span class="hs-special">,</span><span> </span><span class="hs-number">822</span><span class="hs-special">,</span><span> </span><span class="hs-number">590</span><span class="hs-special">,</span><span> </span><span class="hs-number">448</span><span class="hs-special">,</span><span> </span><span class="hs-number">655</span><span class="hs-special">,</span><span> </span><span class="hs-number">205</span><span class="hs-special">,</span><span> </span><span class="hs-number">676</span><span class="hs-special">,</span><span>
</span><a name="line-667"></a><span> </span><span class="hs-number">925</span><span class="hs-special">,</span><span> </span><span class="hs-number">735</span><span class="hs-special">,</span><span> </span><span class="hs-number">431</span><span class="hs-special">,</span><span> </span><span class="hs-number">784</span><span class="hs-special">,</span><span> </span><span class="hs-number">54</span><span class="hs-special">,</span><span> </span><span class="hs-number">609</span><span class="hs-special">,</span><span> </span><span class="hs-number">604</span><span class="hs-special">,</span><span> </span><span class="hs-number">39</span><span class="hs-special">,</span><span> </span><span class="hs-number">812</span><span class="hs-special">,</span><span> </span><span class="hs-number">737</span><span class="hs-special">,</span><span> </span><span class="hs-number">729</span><span class="hs-special">,</span><span> </span><span class="hs-number">466</span><span class="hs-special">,</span><span> </span><span class="hs-number">14</span><span class="hs-special">,</span><span> </span><span class="hs-number">533</span><span class="hs-special">,</span><span> </span><span class="hs-number">958</span><span class="hs-special">,</span><span>
</span><a name="line-668"></a><span> </span><span class="hs-number">481</span><span class="hs-special">,</span><span> </span><span class="hs-number">770</span><span class="hs-special">,</span><span> </span><span class="hs-number">499</span><span class="hs-special">,</span><span> </span><span class="hs-number">855</span><span class="hs-special">,</span><span> </span><span class="hs-number">238</span><span class="hs-special">,</span><span> </span><span class="hs-number">182</span><span class="hs-special">,</span><span> </span><span class="hs-number">464</span><span class="hs-special">,</span><span> </span><span class="hs-number">569</span><span class="hs-special">,</span><span> </span><span class="hs-number">72</span><span class="hs-special">,</span><span> </span><span class="hs-number">947</span><span class="hs-special">,</span><span> </span><span class="hs-number">442</span><span class="hs-special">,</span><span> </span><span class="hs-number">642</span><span class="hs-special">,</span><span> </span><span class="hs-number">24</span><span class="hs-special">,</span><span> </span><span class="hs-number">87</span><span class="hs-special">,</span><span> </span><span class="hs-number">989</span><span class="hs-special">,</span><span>
</span><a name="line-669"></a><span> </span><span class="hs-number">688</span><span class="hs-special">,</span><span> </span><span class="hs-number">88</span><span class="hs-special">,</span><span> </span><span class="hs-number">47</span><span class="hs-special">,</span><span> </span><span class="hs-number">762</span><span class="hs-special">,</span><span> </span><span class="hs-number">623</span><span class="hs-special">,</span><span> </span><span class="hs-number">709</span><span class="hs-special">,</span><span> </span><span class="hs-number">455</span><span class="hs-special">,</span><span> </span><span class="hs-number">817</span><span class="hs-special">,</span><span> </span><span class="hs-number">526</span><span class="hs-special">,</span><span> </span><span class="hs-number">637</span><span class="hs-special">,</span><span> </span><span class="hs-number">258</span><span class="hs-special">,</span><span> </span><span class="hs-number">84</span><span class="hs-special">,</span><span> </span><span class="hs-number">845</span><span class="hs-special">,</span><span> </span><span class="hs-number">738</span><span class="hs-special">,</span><span> </span><span class="hs-number">768</span><span class="hs-special">,</span><span>
</span><a name="line-670"></a><span> </span><span class="hs-number">698</span><span class="hs-special">,</span><span> </span><span class="hs-number">423</span><span class="hs-special">,</span><span> </span><span class="hs-number">933</span><span class="hs-special">,</span><span> </span><span class="hs-number">664</span><span class="hs-special">,</span><span> </span><span class="hs-number">620</span><span class="hs-special">,</span><span> </span><span class="hs-number">607</span><span class="hs-special">,</span><span> </span><span class="hs-number">629</span><span class="hs-special">,</span><span> </span><span class="hs-number">212</span><span class="hs-special">,</span><span> </span><span class="hs-number">347</span><span class="hs-special">,</span><span> </span><span class="hs-number">249</span><span class="hs-special">,</span><span> </span><span class="hs-number">982</span><span class="hs-special">,</span><span> </span><span class="hs-number">935</span><span class="hs-special">,</span><span> </span><span class="hs-number">131</span><span class="hs-special">,</span><span> </span><span class="hs-number">89</span><span class="hs-special">,</span><span> </span><span class="hs-number">252</span><span class="hs-special">,</span><span>
</span><a name="line-671"></a><span> </span><span class="hs-number">927</span><span class="hs-special">,</span><span> </span><span class="hs-number">189</span><span class="hs-special">,</span><span> </span><span class="hs-number">788</span><span class="hs-special">,</span><span> </span><span class="hs-number">853</span><span class="hs-special">,</span><span> </span><span class="hs-number">237</span><span class="hs-special">,</span><span> </span><span class="hs-number">691</span><span class="hs-special">,</span><span> </span><span class="hs-number">646</span><span class="hs-special">,</span><span> </span><span class="hs-number">403</span><span class="hs-special">,</span><span> </span><span class="hs-number">1010</span><span class="hs-special">,</span><span> </span><span class="hs-number">734</span><span class="hs-special">,</span><span> </span><span class="hs-number">253</span><span class="hs-special">,</span><span> </span><span class="hs-number">874</span><span class="hs-special">,</span><span> </span><span class="hs-number">807</span><span class="hs-special">,</span><span> </span><span class="hs-number">903</span><span class="hs-special">,</span><span>
</span><a name="line-672"></a><span> </span><span class="hs-number">1020</span><span class="hs-special">,</span><span> </span><span class="hs-number">100</span><span class="hs-special">,</span><span> </span><span class="hs-number">802</span><span class="hs-special">,</span><span> </span><span class="hs-number">71</span><span class="hs-special">,</span><span> </span><span class="hs-number">799</span><span class="hs-special">,</span><span> </span><span class="hs-number">1003</span><span class="hs-special">,</span><span> </span><span class="hs-number">633</span><span class="hs-special">,</span><span> </span><span class="hs-number">355</span><span class="hs-special">,</span><span> </span><span class="hs-number">276</span><span class="hs-special">,</span><span> </span><span class="hs-number">300</span><span class="hs-special">,</span><span> </span><span class="hs-number">649</span><span class="hs-special">,</span><span> </span><span class="hs-number">64</span><span class="hs-special">,</span><span> </span><span class="hs-number">306</span><span class="hs-special">,</span><span> </span><span class="hs-number">161</span><span class="hs-special">,</span><span>
</span><a name="line-673"></a><span> </span><span class="hs-number">608</span><span class="hs-special">,</span><span> </span><span class="hs-number">496</span><span class="hs-special">,</span><span> </span><span class="hs-number">743</span><span class="hs-special">,</span><span> </span><span class="hs-number">180</span><span class="hs-special">,</span><span> </span><span class="hs-number">485</span><span class="hs-special">,</span><span> </span><span class="hs-number">819</span><span class="hs-special">,</span><span> </span><span class="hs-number">383</span><span class="hs-special">,</span><span> </span><span class="hs-number">1016</span><span class="hs-special">,</span><span> </span><span class="hs-number">226</span><span class="hs-special">,</span><span> </span><span class="hs-number">308</span><span class="hs-special">,</span><span> </span><span class="hs-number">393</span><span class="hs-special">,</span><span> </span><span class="hs-number">648</span><span class="hs-special">,</span><span> </span><span class="hs-number">107</span><span class="hs-special">,</span><span> </span><span class="hs-number">19</span><span class="hs-special">,</span><span> </span><span class="hs-number">37</span><span class="hs-special">,</span><span>
</span><a name="line-674"></a><span> </span><span class="hs-number">585</span><span class="hs-special">,</span><span> </span><span class="hs-number">2</span><span class="hs-special">,</span><span> </span><span class="hs-number">175</span><span class="hs-special">,</span><span> </span><span class="hs-number">645</span><span class="hs-special">,</span><span> </span><span class="hs-number">247</span><span class="hs-special">,</span><span> </span><span class="hs-number">527</span><span class="hs-special">,</span><span> </span><span class="hs-number">5</span><span class="hs-special">,</span><span> </span><span class="hs-number">419</span><span class="hs-special">,</span><span> </span><span class="hs-number">181</span><span class="hs-special">,</span><span> </span><span class="hs-number">317</span><span class="hs-special">,</span><span> </span><span class="hs-number">327</span><span class="hs-special">,</span><span> </span><span class="hs-number">519</span><span class="hs-special">,</span><span> </span><span class="hs-number">542</span><span class="hs-special">,</span><span> </span><span class="hs-number">289</span><span class="hs-special">,</span><span> </span><span class="hs-number">567</span><span class="hs-special">,</span><span>
</span><a name="line-675"></a><span> </span><span class="hs-number">430</span><span class="hs-special">,</span><span> </span><span class="hs-number">579</span><span class="hs-special">,</span><span> </span><span class="hs-number">950</span><span class="hs-special">,</span><span> </span><span class="hs-number">582</span><span class="hs-special">,</span><span> </span><span class="hs-number">994</span><span class="hs-special">,</span><span> </span><span class="hs-number">1021</span><span class="hs-special">,</span><span> </span><span class="hs-number">583</span><span class="hs-special">,</span><span> </span><span class="hs-number">234</span><span class="hs-special">,</span><span> </span><span class="hs-number">240</span><span class="hs-special">,</span><span> </span><span class="hs-number">976</span><span class="hs-special">,</span><span> </span><span class="hs-number">41</span><span class="hs-special">,</span><span> </span><span class="hs-number">160</span><span class="hs-special">,</span><span> </span><span class="hs-number">109</span><span class="hs-special">,</span><span> </span><span class="hs-number">677</span><span class="hs-special">,</span><span>
</span><a name="line-676"></a><span> </span><span class="hs-number">937</span><span class="hs-special">,</span><span> </span><span class="hs-number">210</span><span class="hs-special">,</span><span> </span><span class="hs-number">95</span><span class="hs-special">,</span><span> </span><span class="hs-number">959</span><span class="hs-special">,</span><span> </span><span class="hs-number">242</span><span class="hs-special">,</span><span> </span><span class="hs-number">753</span><span class="hs-special">,</span><span> </span><span class="hs-number">461</span><span class="hs-special">,</span><span> </span><span class="hs-number">114</span><span class="hs-special">,</span><span> </span><span class="hs-number">733</span><span class="hs-special">,</span><span> </span><span class="hs-number">368</span><span class="hs-special">,</span><span> </span><span class="hs-number">573</span><span class="hs-special">,</span><span> </span><span class="hs-number">458</span><span class="hs-special">,</span><span> </span><span class="hs-number">782</span><span class="hs-special">,</span><span> </span><span class="hs-number">605</span><span class="hs-special">,</span><span> </span><span class="hs-number">680</span><span class="hs-special">,</span><span>
</span><a name="line-677"></a><span> </span><span class="hs-number">544</span><span class="hs-special">,</span><span> </span><span class="hs-number">299</span><span class="hs-special">,</span><span> </span><span class="hs-number">73</span><span class="hs-special">,</span><span> </span><span class="hs-number">652</span><span class="hs-special">,</span><span> </span><span class="hs-number">905</span><span class="hs-special">,</span><span> </span><span class="hs-number">477</span><span class="hs-special">,</span><span> </span><span class="hs-number">690</span><span class="hs-special">,</span><span> </span><span class="hs-number">93</span><span class="hs-special">,</span><span> </span><span class="hs-number">824</span><span class="hs-special">,</span><span> </span><span class="hs-number">882</span><span class="hs-special">,</span><span> </span><span class="hs-number">277</span><span class="hs-special">,</span><span> </span><span class="hs-number">946</span><span class="hs-special">,</span><span> </span><span class="hs-number">361</span><span class="hs-special">,</span><span> </span><span class="hs-number">17</span><span class="hs-special">,</span><span> </span><span class="hs-number">945</span><span class="hs-special">,</span><span>
</span><a name="line-678"></a><span> </span><span class="hs-number">523</span><span class="hs-special">,</span><span> </span><span class="hs-number">472</span><span class="hs-special">,</span><span> </span><span class="hs-number">334</span><span class="hs-special">,</span><span> </span><span class="hs-number">930</span><span class="hs-special">,</span><span> </span><span class="hs-number">597</span><span class="hs-special">,</span><span> </span><span class="hs-number">603</span><span class="hs-special">,</span><span> </span><span class="hs-number">793</span><span class="hs-special">,</span><span> </span><span class="hs-number">404</span><span class="hs-special">,</span><span> </span><span class="hs-number">290</span><span class="hs-special">,</span><span> </span><span class="hs-number">942</span><span class="hs-special">,</span><span> </span><span class="hs-number">316</span><span class="hs-special">,</span><span> </span><span class="hs-number">731</span><span class="hs-special">,</span><span> </span><span class="hs-number">270</span><span class="hs-special">,</span><span> </span><span class="hs-number">960</span><span class="hs-special">,</span><span>
</span><a name="line-679"></a><span> </span><span class="hs-number">936</span><span class="hs-special">,</span><span> </span><span class="hs-number">133</span><span class="hs-special">,</span><span> </span><span class="hs-number">122</span><span class="hs-special">,</span><span> </span><span class="hs-number">821</span><span class="hs-special">,</span><span> </span><span class="hs-number">966</span><span class="hs-special">,</span><span> </span><span class="hs-number">679</span><span class="hs-special">,</span><span> </span><span class="hs-number">662</span><span class="hs-special">,</span><span> </span><span class="hs-number">907</span><span class="hs-special">,</span><span> </span><span class="hs-number">282</span><span class="hs-special">,</span><span> </span><span class="hs-number">968</span><span class="hs-special">,</span><span> </span><span class="hs-number">767</span><span class="hs-special">,</span><span> </span><span class="hs-number">653</span><span class="hs-special">,</span><span> </span><span class="hs-number">20</span><span class="hs-special">,</span><span> </span><span class="hs-number">697</span><span class="hs-special">,</span><span> </span><span class="hs-number">222</span><span class="hs-special">,</span><span>
</span><a name="line-680"></a><span> </span><span class="hs-number">164</span><span class="hs-special">,</span><span> </span><span class="hs-number">835</span><span class="hs-special">,</span><span> </span><span class="hs-number">30</span><span class="hs-special">,</span><span> </span><span class="hs-number">285</span><span class="hs-special">,</span><span> </span><span class="hs-number">886</span><span class="hs-special">,</span><span> </span><span class="hs-number">456</span><span class="hs-special">,</span><span> </span><span class="hs-number">436</span><span class="hs-special">,</span><span> </span><span class="hs-number">640</span><span class="hs-special">,</span><span> </span><span class="hs-number">286</span><span class="hs-special">,</span><span> </span><span class="hs-number">1015</span><span class="hs-special">,</span><span> </span><span class="hs-number">380</span><span class="hs-special">,</span><span> </span><span class="hs-number">840</span><span class="hs-special">,</span><span> </span><span class="hs-number">245</span><span class="hs-special">,</span><span> </span><span class="hs-number">724</span><span class="hs-special">,</span><span>
</span><a name="line-681"></a><span> </span><span class="hs-number">137</span><span class="hs-special">,</span><span> </span><span class="hs-number">593</span><span class="hs-special">,</span><span> </span><span class="hs-number">173</span><span class="hs-special">,</span><span> </span><span class="hs-number">130</span><span class="hs-special">,</span><span> </span><span class="hs-number">715</span><span class="hs-special">,</span><span> </span><span class="hs-number">85</span><span class="hs-special">,</span><span> </span><span class="hs-number">885</span><span class="hs-special">,</span><span> </span><span class="hs-number">551</span><span class="hs-special">,</span><span> </span><span class="hs-number">246</span><span class="hs-special">,</span><span> </span><span class="hs-number">449</span><span class="hs-special">,</span><span> </span><span class="hs-number">103</span><span class="hs-special">,</span><span> </span><span class="hs-number">366</span><span class="hs-special">,</span><span> </span><span class="hs-number">372</span><span class="hs-special">,</span><span> </span><span class="hs-number">714</span><span class="hs-special">,</span><span> </span><span class="hs-number">313</span><span class="hs-special">,</span><span>
</span><a name="line-682"></a><span> </span><span class="hs-number">865</span><span class="hs-special">,</span><span> </span><span class="hs-number">241</span><span class="hs-special">,</span><span> </span><span class="hs-number">699</span><span class="hs-special">,</span><span> </span><span class="hs-number">674</span><span class="hs-special">,</span><span> </span><span class="hs-number">374</span><span class="hs-special">,</span><span> </span><span class="hs-number">68</span><span class="hs-special">,</span><span> </span><span class="hs-number">421</span><span class="hs-special">,</span><span> </span><span class="hs-number">562</span><span class="hs-special">,</span><span> </span><span class="hs-number">292</span><span class="hs-special">,</span><span> </span><span class="hs-number">59</span><span class="hs-special">,</span><span> </span><span class="hs-number">809</span><span class="hs-special">,</span><span> </span><span class="hs-number">342</span><span class="hs-special">,</span><span> </span><span class="hs-number">651</span><span class="hs-special">,</span><span> </span><span class="hs-number">459</span><span class="hs-special">,</span><span> </span><span class="hs-number">227</span><span class="hs-special">,</span><span>
</span><a name="line-683"></a><span> </span><span class="hs-number">46</span><span class="hs-special">,</span><span> </span><span class="hs-number">711</span><span class="hs-special">,</span><span> </span><span class="hs-number">764</span><span class="hs-special">,</span><span> </span><span class="hs-number">868</span><span class="hs-special">,</span><span> </span><span class="hs-number">53</span><span class="hs-special">,</span><span> </span><span class="hs-number">413</span><span class="hs-special">,</span><span> </span><span class="hs-number">278</span><span class="hs-special">,</span><span> </span><span class="hs-number">800</span><span class="hs-special">,</span><span> </span><span class="hs-number">255</span><span class="hs-special">,</span><span> </span><span class="hs-number">993</span><span class="hs-special">,</span><span> </span><span class="hs-number">318</span><span class="hs-special">,</span><span> </span><span class="hs-number">854</span><span class="hs-special">,</span><span> </span><span class="hs-number">319</span><span class="hs-special">,</span><span> </span><span class="hs-number">695</span><span class="hs-special">,</span><span> </span><span class="hs-number">315</span><span class="hs-special">,</span><span>
</span><a name="line-684"></a><span> </span><span class="hs-number">469</span><span class="hs-special">,</span><span> </span><span class="hs-number">166</span><span class="hs-special">,</span><span> </span><span class="hs-number">489</span><span class="hs-special">,</span><span> </span><span class="hs-number">969</span><span class="hs-special">,</span><span> </span><span class="hs-number">730</span><span class="hs-special">,</span><span> </span><span class="hs-number">1001</span><span class="hs-special">,</span><span> </span><span class="hs-number">757</span><span class="hs-special">,</span><span> </span><span class="hs-number">873</span><span class="hs-special">,</span><span> </span><span class="hs-number">686</span><span class="hs-special">,</span><span> </span><span class="hs-number">197</span><span class="hs-special">,</span><span> </span><span class="hs-number">303</span><span class="hs-special">,</span><span> </span><span class="hs-number">919</span><span class="hs-special">,</span><span> </span><span class="hs-number">155</span><span class="hs-special">,</span><span> </span><span class="hs-number">673</span><span class="hs-special">,</span><span>
</span><a name="line-685"></a><span> </span><span class="hs-number">940</span><span class="hs-special">,</span><span> </span><span class="hs-number">712</span><span class="hs-special">,</span><span> </span><span class="hs-number">25</span><span class="hs-special">,</span><span> </span><span class="hs-number">999</span><span class="hs-special">,</span><span> </span><span class="hs-number">63</span><span class="hs-special">,</span><span> </span><span class="hs-number">863</span><span class="hs-special">,</span><span> </span><span class="hs-number">972</span><span class="hs-special">,</span><span> </span><span class="hs-number">967</span><span class="hs-special">,</span><span> </span><span class="hs-number">785</span><span class="hs-special">,</span><span> </span><span class="hs-number">152</span><span class="hs-special">,</span><span> </span><span class="hs-number">296</span><span class="hs-special">,</span><span> </span><span class="hs-number">512</span><span class="hs-special">,</span><span> </span><span class="hs-number">402</span><span class="hs-special">,</span><span> </span><span class="hs-number">377</span><span class="hs-special">,</span><span> </span><span class="hs-number">45</span><span class="hs-special">,</span><span>
</span><a name="line-686"></a><span> </span><span class="hs-number">899</span><span class="hs-special">,</span><span> </span><span class="hs-number">829</span><span class="hs-special">,</span><span> </span><span class="hs-number">354</span><span class="hs-special">,</span><span> </span><span class="hs-number">77</span><span class="hs-special">,</span><span> </span><span class="hs-number">69</span><span class="hs-special">,</span><span> </span><span class="hs-number">856</span><span class="hs-special">,</span><span> </span><span class="hs-number">417</span><span class="hs-special">,</span><span> </span><span class="hs-number">811</span><span class="hs-special">,</span><span> </span><span class="hs-number">953</span><span class="hs-special">,</span><span> </span><span class="hs-number">124</span><span class="hs-special">,</span><span> </span><span class="hs-number">418</span><span class="hs-special">,</span><span> </span><span class="hs-number">75</span><span class="hs-special">,</span><span> </span><span class="hs-number">794</span><span class="hs-special">,</span><span> </span><span class="hs-number">162</span><span class="hs-special">,</span><span> </span><span class="hs-number">414</span><span class="hs-special">,</span><span>
</span><a name="line-687"></a><span> </span><span class="hs-number">1018</span><span class="hs-special">,</span><span> </span><span class="hs-number">568</span><span class="hs-special">,</span><span> </span><span class="hs-number">254</span><span class="hs-special">,</span><span> </span><span class="hs-number">265</span><span class="hs-special">,</span><span> </span><span class="hs-number">772</span><span class="hs-special">,</span><span> </span><span class="hs-number">588</span><span class="hs-special">,</span><span> </span><span class="hs-number">16</span><span class="hs-special">,</span><span> </span><span class="hs-number">896</span><span class="hs-special">,</span><span> </span><span class="hs-number">157</span><span class="hs-special">,</span><span> </span><span class="hs-number">889</span><span class="hs-special">,</span><span> </span><span class="hs-number">298</span><span class="hs-special">,</span><span> </span><span class="hs-number">621</span><span class="hs-special">,</span><span> </span><span class="hs-number">110</span><span class="hs-special">,</span><span> </span><span class="hs-number">844</span><span class="hs-special">,</span><span>
</span><a name="line-688"></a><span> </span><span class="hs-number">1000</span><span class="hs-special">,</span><span> </span><span class="hs-number">108</span><span class="hs-special">,</span><span> </span><span class="hs-number">545</span><span class="hs-special">,</span><span> </span><span class="hs-number">601</span><span class="hs-special">,</span><span> </span><span class="hs-number">78</span><span class="hs-special">,</span><span> </span><span class="hs-number">862</span><span class="hs-special">,</span><span> </span><span class="hs-number">447</span><span class="hs-special">,</span><span> </span><span class="hs-number">185</span><span class="hs-special">,</span><span> </span><span class="hs-number">195</span><span class="hs-special">,</span><span> </span><span class="hs-number">818</span><span class="hs-special">,</span><span> </span><span class="hs-number">450</span><span class="hs-special">,</span><span> </span><span class="hs-number">387</span><span class="hs-special">,</span><span> </span><span class="hs-number">49</span><span class="hs-special">,</span><span> </span><span class="hs-number">805</span><span class="hs-special">,</span><span> </span><span class="hs-number">102</span><span class="hs-special">,</span><span>
</span><a name="line-689"></a><span> </span><span class="hs-number">986</span><span class="hs-special">,</span><span> </span><span class="hs-number">1005</span><span class="hs-special">,</span><span> </span><span class="hs-number">827</span><span class="hs-special">,</span><span> </span><span class="hs-number">329</span><span class="hs-special">,</span><span> </span><span class="hs-number">28</span><span class="hs-special">,</span><span> </span><span class="hs-number">932</span><span class="hs-special">,</span><span> </span><span class="hs-number">410</span><span class="hs-special">,</span><span> </span><span class="hs-number">287</span><span class="hs-special">,</span><span> </span><span class="hs-number">435</span><span class="hs-special">,</span><span> </span><span class="hs-number">451</span><span class="hs-special">,</span><span> </span><span class="hs-number">962</span><span class="hs-special">,</span><span> </span><span class="hs-number">517</span><span class="hs-special">,</span><span> </span><span class="hs-number">48</span><span class="hs-special">,</span><span> </span><span class="hs-number">174</span><span class="hs-special">,</span><span> </span><span class="hs-number">43</span><span class="hs-special">,</span><span>
</span><a name="line-690"></a><span> </span><span class="hs-number">893</span><span class="hs-special">,</span><span> </span><span class="hs-number">884</span><span class="hs-special">,</span><span> </span><span class="hs-number">261</span><span class="hs-special">,</span><span> </span><span class="hs-number">251</span><span class="hs-special">,</span><span> </span><span class="hs-number">516</span><span class="hs-special">,</span><span> </span><span class="hs-number">395</span><span class="hs-special">,</span><span> </span><span class="hs-number">910</span><span class="hs-special">,</span><span> </span><span class="hs-number">611</span><span class="hs-special">,</span><span> </span><span class="hs-number">29</span><span class="hs-special">,</span><span> </span><span class="hs-number">501</span><span class="hs-special">,</span><span> </span><span class="hs-number">223</span><span class="hs-special">,</span><span> </span><span class="hs-number">476</span><span class="hs-special">,</span><span> </span><span class="hs-number">364</span><span class="hs-special">,</span><span> </span><span class="hs-number">144</span><span class="hs-special">,</span><span> </span><span class="hs-number">871</span><span class="hs-special">,</span><span>
</span><a name="line-691"></a><span> </span><span class="hs-number">998</span><span class="hs-special">,</span><span> </span><span class="hs-number">687</span><span class="hs-special">,</span><span> </span><span class="hs-number">928</span><span class="hs-special">,</span><span> </span><span class="hs-number">115</span><span class="hs-special">,</span><span> </span><span class="hs-number">453</span><span class="hs-special">,</span><span> </span><span class="hs-number">513</span><span class="hs-special">,</span><span> </span><span class="hs-number">176</span><span class="hs-special">,</span><span> </span><span class="hs-number">94</span><span class="hs-special">,</span><span> </span><span class="hs-number">168</span><span class="hs-special">,</span><span> </span><span class="hs-number">667</span><span class="hs-special">,</span><span> </span><span class="hs-number">955</span><span class="hs-special">,</span><span> </span><span class="hs-number">353</span><span class="hs-special">,</span><span> </span><span class="hs-number">434</span><span class="hs-special">,</span><span> </span><span class="hs-number">382</span><span class="hs-special">,</span><span> </span><span class="hs-number">400</span><span class="hs-special">,</span><span>
</span><a name="line-692"></a><span> </span><span class="hs-number">139</span><span class="hs-special">,</span><span> </span><span class="hs-number">365</span><span class="hs-special">,</span><span> </span><span class="hs-number">996</span><span class="hs-special">,</span><span> </span><span class="hs-number">343</span><span class="hs-special">,</span><span> </span><span class="hs-number">948</span><span class="hs-special">,</span><span> </span><span class="hs-number">890</span><span class="hs-special">,</span><span> </span><span class="hs-number">1012</span><span class="hs-special">,</span><span> </span><span class="hs-number">663</span><span class="hs-special">,</span><span> </span><span class="hs-number">610</span><span class="hs-special">,</span><span> </span><span class="hs-number">718</span><span class="hs-special">,</span><span> </span><span class="hs-number">538</span><span class="hs-special">,</span><span> </span><span class="hs-number">1008</span><span class="hs-special">,</span><span> </span><span class="hs-number">639</span><span class="hs-special">,</span><span> </span><span class="hs-number">470</span><span class="hs-special">,</span><span>
</span><a name="line-693"></a><span> </span><span class="hs-number">848</span><span class="hs-special">,</span><span> </span><span class="hs-number">543</span><span class="hs-special">,</span><span> </span><span class="hs-number">1011</span><span class="hs-special">,</span><span> </span><span class="hs-number">859</span><span class="hs-special">,</span><span> </span><span class="hs-number">671</span><span class="hs-special">,</span><span> </span><span class="hs-number">756</span><span class="hs-special">,</span><span> </span><span class="hs-number">83</span><span class="hs-special">,</span><span> </span><span class="hs-number">427</span><span class="hs-special">,</span><span> </span><span class="hs-number">159</span><span class="hs-special">,</span><span> </span><span class="hs-number">746</span><span class="hs-special">,</span><span> </span><span class="hs-number">669</span><span class="hs-special">,</span><span> </span><span class="hs-number">589</span><span class="hs-special">,</span><span> </span><span class="hs-number">971</span><span class="hs-special">,</span><span> </span><span class="hs-number">524</span><span class="hs-special">,</span><span>
</span><a name="line-694"></a><span> </span><span class="hs-number">356</span><span class="hs-special">,</span><span> </span><span class="hs-number">995</span><span class="hs-special">,</span><span> </span><span class="hs-number">904</span><span class="hs-special">,</span><span> </span><span class="hs-number">256</span><span class="hs-special">,</span><span> </span><span class="hs-number">201</span><span class="hs-special">,</span><span> </span><span class="hs-number">988</span><span class="hs-special">,</span><span> </span><span class="hs-number">62</span><span class="hs-special">,</span><span> </span><span class="hs-number">397</span><span class="hs-special">,</span><span> </span><span class="hs-number">81</span><span class="hs-special">,</span><span> </span><span class="hs-number">720</span><span class="hs-special">,</span><span> </span><span class="hs-number">917</span><span class="hs-special">,</span><span> </span><span class="hs-number">209</span><span class="hs-special">,</span><span> </span><span class="hs-number">549</span><span class="hs-special">,</span><span> </span><span class="hs-number">943</span><span class="hs-special">,</span><span> </span><span class="hs-number">486</span><span class="hs-special">,</span><span>
</span><a name="line-695"></a><span> </span><span class="hs-number">76</span><span class="hs-special">,</span><span> </span><span class="hs-number">148</span><span class="hs-special">,</span><span> </span><span class="hs-number">207</span><span class="hs-special">,</span><span> </span><span class="hs-number">509</span><span class="hs-special">,</span><span> </span><span class="hs-number">644</span><span class="hs-special">,</span><span> </span><span class="hs-number">386</span><span class="hs-special">,</span><span> </span><span class="hs-number">700</span><span class="hs-special">,</span><span> </span><span class="hs-number">534</span><span class="hs-special">,</span><span> </span><span class="hs-number">177</span><span class="hs-special">,</span><span> </span><span class="hs-number">550</span><span class="hs-special">,</span><span> </span><span class="hs-number">961</span><span class="hs-special">,</span><span> </span><span class="hs-number">926</span><span class="hs-special">,</span><span> </span><span class="hs-number">546</span><span class="hs-special">,</span><span> </span><span class="hs-number">428</span><span class="hs-special">,</span><span> </span><span class="hs-number">284</span><span class="hs-special">,</span><span>
</span><a name="line-696"></a><span> </span><span class="hs-number">127</span><span class="hs-special">,</span><span> </span><span class="hs-number">294</span><span class="hs-special">,</span><span> </span><span class="hs-number">8</span><span class="hs-special">,</span><span> </span><span class="hs-number">269</span><span class="hs-special">,</span><span> </span><span class="hs-number">359</span><span class="hs-special">,</span><span> </span><span class="hs-number">506</span><span class="hs-special">,</span><span> </span><span class="hs-number">445</span><span class="hs-special">,</span><span> </span><span class="hs-number">997</span><span class="hs-special">,</span><span> </span><span class="hs-number">806</span><span class="hs-special">,</span><span> </span><span class="hs-number">591</span><span class="hs-special">,</span><span> </span><span class="hs-number">725</span><span class="hs-special">,</span><span> </span><span class="hs-number">178</span><span class="hs-special">,</span><span> </span><span class="hs-number">262</span><span class="hs-special">,</span><span> </span><span class="hs-number">846</span><span class="hs-special">,</span><span> </span><span class="hs-number">373</span><span class="hs-special">,</span><span>
</span><a name="line-697"></a><span> </span><span class="hs-number">831</span><span class="hs-special">,</span><span> </span><span class="hs-number">504</span><span class="hs-special">,</span><span> </span><span class="hs-number">305</span><span class="hs-special">,</span><span> </span><span class="hs-number">843</span><span class="hs-special">,</span><span> </span><span class="hs-number">553</span><span class="hs-special">,</span><span> </span><span class="hs-number">378</span><span class="hs-special">,</span><span> </span><span class="hs-number">1017</span><span class="hs-special">,</span><span> </span><span class="hs-number">783</span><span class="hs-special">,</span><span> </span><span class="hs-number">474</span><span class="hs-special">,</span><span> </span><span class="hs-number">683</span><span class="hs-special">,</span><span> </span><span class="hs-number">581</span><span class="hs-special">,</span><span> </span><span class="hs-number">200</span><span class="hs-special">,</span><span> </span><span class="hs-number">498</span><span class="hs-special">,</span><span> </span><span class="hs-number">694</span><span class="hs-special">,</span><span>
</span><a name="line-698"></a><span> </span><span class="hs-number">191</span><span class="hs-special">,</span><span> </span><span class="hs-number">217</span><span class="hs-special">,</span><span> </span><span class="hs-number">847</span><span class="hs-special">,</span><span> </span><span class="hs-number">941</span><span class="hs-special">,</span><span> </span><span class="hs-number">424</span><span class="hs-special">,</span><span> </span><span class="hs-number">235</span><span class="hs-special">,</span><span> </span><span class="hs-number">38</span><span class="hs-special">,</span><span> </span><span class="hs-number">74</span><span class="hs-special">,</span><span> </span><span class="hs-number">616</span><span class="hs-special">,</span><span> </span><span class="hs-number">786</span><span class="hs-special">,</span><span> </span><span class="hs-number">147</span><span class="hs-special">,</span><span> </span><span class="hs-number">4</span><span class="hs-special">,</span><span> </span><span class="hs-number">273</span><span class="hs-special">,</span><span> </span><span class="hs-number">214</span><span class="hs-special">,</span><span> </span><span class="hs-number">142</span><span class="hs-special">,</span><span>
</span><a name="line-699"></a><span> </span><span class="hs-number">575</span><span class="hs-special">,</span><span> </span><span class="hs-number">992</span><span class="hs-special">,</span><span> </span><span class="hs-number">463</span><span class="hs-special">,</span><span> </span><span class="hs-number">983</span><span class="hs-special">,</span><span> </span><span class="hs-number">243</span><span class="hs-special">,</span><span> </span><span class="hs-number">360</span><span class="hs-special">,</span><span> </span><span class="hs-number">970</span><span class="hs-special">,</span><span> </span><span class="hs-number">350</span><span class="hs-special">,</span><span> </span><span class="hs-number">267</span><span class="hs-special">,</span><span> </span><span class="hs-number">615</span><span class="hs-special">,</span><span> </span><span class="hs-number">766</span><span class="hs-special">,</span><span> </span><span class="hs-number">494</span><span class="hs-special">,</span><span> </span><span class="hs-number">31</span><span class="hs-special">,</span><span> </span><span class="hs-number">1009</span><span class="hs-special">,</span><span>
</span><a name="line-700"></a><span> </span><span class="hs-number">452</span><span class="hs-special">,</span><span> </span><span class="hs-number">710</span><span class="hs-special">,</span><span> </span><span class="hs-number">552</span><span class="hs-special">,</span><span> </span><span class="hs-number">128</span><span class="hs-special">,</span><span> </span><span class="hs-number">612</span><span class="hs-special">,</span><span> </span><span class="hs-number">600</span><span class="hs-special">,</span><span> </span><span class="hs-number">275</span><span class="hs-special">,</span><span> </span><span class="hs-number">322</span><span class="hs-special">,</span><span> </span><span class="hs-number">193</span><span> </span><span class="hs-special">]</span><span>
</span><a name="line-701"></a><span>
</span><a name="line-702"></a><span class="hs-comment">-- | This function is a Haskell translation of the reference JavaScript</span><span>
</span><a name="line-703"></a><span class="hs-comment">-- implementation here: https://git.io/fj8Fu</span><span>
</span><a name="line-704"></a><span class="hs-identifier">syndrome</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Bits</span><span> </span><a href="#local-6989586621679036448"><span class="hs-identifier hs-type">a</span></a><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Num</span><span> </span><a href="#local-6989586621679036448"><span class="hs-identifier hs-type">a</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=></span><span> </span><a href="#local-6989586621679036448"><span class="hs-identifier hs-type">a</span></a><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679036448"><span class="hs-identifier hs-type">a</span></a><span>
</span><a name="line-705"></a><a name="syndrome"><a href="Codec.Binary.Bech32.Internal.html#syndrome"><span class="hs-identifier">syndrome</span></a></a><span> </span><a name="local-6989586621679039555"><a href="#local-6989586621679039555"><span class="hs-identifier">residue</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039556"><span class="hs-identifier hs-var">low</span></a><span>
</span><a name="line-706"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039556"><span class="hs-identifier hs-var">low</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">unsafeShiftL</span><span class="hs-special">`</span><span> </span><span class="hs-number">10</span><span class="hs-special">)</span><span>
</span><a name="line-707"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039556"><span class="hs-identifier hs-var">low</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">unsafeShiftL</span><span class="hs-special">`</span><span> </span><span class="hs-number">20</span><span class="hs-special">)</span><span>
</span><a name="line-708"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">5</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x31edd3c4</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-709"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">6</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x335f86a8</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-710"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">7</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x363b8870</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-711"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">8</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x3e6390c9</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-712"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">9</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x2ec72192</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-713"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">10</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1046f79d</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-714"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">11</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x208d4e33</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-715"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">12</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x130ebd6f</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-716"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">13</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x2499fade</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-717"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">14</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1b27d4b5</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-718"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">15</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x04be1eb4</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-719"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">16</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x0968b861</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-720"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">17</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1055f0c2</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-721"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">18</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x20ab4584</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-722"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">19</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1342af08</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-723"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">20</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x24f1f318</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-724"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">21</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1be34739</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-725"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">22</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x35562f7b</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-726"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">23</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x3a3c5bff</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-727"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">24</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x266c96f7</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-728"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">25</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x25c78b65</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-729"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">26</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x1b1f13ea</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-730"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">27</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x34baa2f4</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-731"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">28</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x3b61c0e1</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-732"></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">testBit</span><span class="hs-special">`</span><span> </span><span class="hs-number">29</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0x265325c2</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span>
</span><a name="line-733"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-734"></a><span> </span><a name="local-6989586621679039556"><a href="#local-6989586621679039556"><span class="hs-identifier">low</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039555"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><span class="hs-number">0x1f</span><span>
</span><a name="line-735"></a><span>
</span><a name="line-736"></a><span class="hs-comment">-- | For a given Bech32 string residue and Bech32 string length, reports the</span><span>
</span><a name="line-737"></a><span class="hs-comment">-- positions of detectably erroneous characters in the original Bech32 string.</span><span>
</span><a name="line-738"></a><span class="hs-comment">--</span><span>
</span><a name="line-739"></a><span class="hs-comment">-- The reported character positions are zero-based, counting from right to left</span><span>
</span><a name="line-740"></a><span class="hs-comment">-- within the original string, but omitting the separation character (which is</span><span>
</span><a name="line-741"></a><span class="hs-comment">-- not counted).</span><span>
</span><a name="line-742"></a><span class="hs-comment">--</span><span>
</span><a name="line-743"></a><span class="hs-comment">-- Returns the empty list if it is not possible to reliably determine the</span><span>
</span><a name="line-744"></a><span class="hs-comment">-- locations of errors.</span><span>
</span><a name="line-745"></a><span class="hs-comment">--</span><span>
</span><a name="line-746"></a><span class="hs-comment">-- This function is a Haskell translation of the reference JavaScript</span><span>
</span><a name="line-747"></a><span class="hs-comment">-- implementation here: https://git.io/fj8Fz</span><span>
</span><a name="line-748"></a><span class="hs-comment">--</span><span>
</span><a name="line-749"></a><span class="hs-identifier">locateErrors</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Int</span><span class="hs-special">]</span><span>
</span><a name="line-750"></a><a name="locateErrors"><a href="Codec.Binary.Bech32.Internal.html#locateErrors"><span class="hs-identifier">locateErrors</span></a></a><span> </span><a name="local-6989586621679039557"><a href="#local-6989586621679039557"><span class="hs-identifier">residue</span></a></a><span> </span><a name="local-6989586621679039558"><a href="#local-6989586621679039558"><span class="hs-identifier">len</span></a></a><span>
</span><a name="line-751"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039557"><span class="hs-identifier hs-var">residue</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-752"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">/=</span><span> </span><span class="hs-glyph">-</span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">&&</span><span>
</span><a name="line-753"></a><span> </span><a href="#local-6989586621679039564"><span class="hs-identifier hs-var">l_s1</span></a><span> </span><span class="hs-operator hs-var">/=</span><span> </span><span class="hs-glyph">-</span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">&&</span><span>
</span><a name="line-754"></a><span> </span><a href="#local-6989586621679039565"><span class="hs-identifier hs-var">l_s2</span></a><span> </span><span class="hs-operator hs-var">/=</span><span> </span><span class="hs-glyph">-</span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">&&</span><span> </span><span class="hs-special">(</span><span class="hs-number">2</span><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="#local-6989586621679039564"><span class="hs-identifier hs-var">l_s1</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039565"><span class="hs-identifier hs-var">l_s2</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-number">2046</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-755"></a><span> </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679039576"><a href="#local-6989586621679039576"><span class="hs-identifier">p1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039564"><span class="hs-identifier hs-var">l_s1</span></a><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span> </span><span class="hs-keyword">in</span><span>
</span><a name="line-756"></a><span> </span><span class="hs-keyword">if</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039576"><span class="hs-identifier hs-var">p1</span></a><span> </span><span class="hs-operator hs-var">>=</span><span> </span><a href="#local-6989586621679039558"><span class="hs-identifier hs-var">len</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-keyword">else</span><span>
</span><a name="line-757"></a><span> </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679039577"><a href="#local-6989586621679039577"><span class="hs-identifier">l_e1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-special">(</span><span class="hs-number">1023</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">997</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="#local-6989586621679039576"><span class="hs-identifier hs-var">p1</span></a><span> </span><span class="hs-keyword">in</span><span>
</span><a name="line-758"></a><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039576"><span class="hs-identifier hs-var">p1</span></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039577"><span class="hs-identifier hs-var">l_e1</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">33</span><span> </span><span class="hs-operator hs-var"><=</span><span> </span><span class="hs-number">0</span><span class="hs-special">]</span><span>
</span><a name="line-759"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-760"></a><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">filter</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">not</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">null</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="#local-6989586621679039566"><span class="hs-identifier hs-var">findError</span></a><span> </span><span class="hs-special">[</span><span class="hs-number">0</span><span> </span><span class="hs-glyph">..</span><span> </span><a href="#local-6989586621679039558"><span class="hs-identifier hs-var">len</span></a><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span class="hs-special">]</span><span> </span><span class="hs-keyword">of</span><span>
</span><a name="line-761"></a><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-762"></a><span> </span><a name="local-6989586621679039578"><a href="#local-6989586621679039578"><span class="hs-identifier">es</span></a></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-var">join</span><span> </span><a href="#local-6989586621679039578"><span class="hs-identifier hs-var">es</span></a><span>
</span><a name="line-763"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-764"></a><span> </span><a name="local-6989586621679039559"><a href="#local-6989586621679039559"><span class="hs-identifier">syn</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#syndrome"><span class="hs-identifier hs-var">syndrome</span></a><span> </span><a href="#local-6989586621679039557"><span class="hs-identifier hs-var">residue</span></a><span>
</span><a name="line-765"></a><span> </span><a name="local-6989586621679039560"><a href="#local-6989586621679039560"><span class="hs-identifier">s0</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039559"><span class="hs-identifier hs-var">syn</span></a><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><span class="hs-number">0x3FF</span><span>
</span><a name="line-766"></a><span> </span><a name="local-6989586621679039561"><a href="#local-6989586621679039561"><span class="hs-identifier">s1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039559"><span class="hs-identifier hs-var">syn</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">unsafeShiftR</span><span class="hs-special">`</span><span> </span><span class="hs-number">10</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">.&.</span><span> </span><span class="hs-number">0x3FF</span><span>
</span><a name="line-767"></a><span> </span><a name="local-6989586621679039562"><a href="#local-6989586621679039562"><span class="hs-identifier">s2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039559"><span class="hs-identifier hs-var">syn</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">unsafeShiftR</span><span class="hs-special">`</span><span> </span><span class="hs-number">20</span><span>
</span><a name="line-768"></a><span> </span><a name="local-6989586621679039563"><a href="#local-6989586621679039563"><span class="hs-identifier">l_s0</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039560"><span class="hs-identifier hs-var">s0</span></a><span>
</span><a name="line-769"></a><span> </span><a name="local-6989586621679039564"><a href="#local-6989586621679039564"><span class="hs-identifier">l_s1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039561"><span class="hs-identifier hs-var">s1</span></a><span>
</span><a name="line-770"></a><span> </span><a name="local-6989586621679039565"><a href="#local-6989586621679039565"><span class="hs-identifier">l_s2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039562"><span class="hs-identifier hs-var">s2</span></a><span>
</span><a name="line-771"></a><span>
</span><a name="line-772"></a><span> </span><span class="hs-identifier">findError</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">Int</span><span class="hs-special">]</span><span>
</span><a name="line-773"></a><span> </span><a name="local-6989586621679039566"><a href="#local-6989586621679039566"><span class="hs-identifier">findError</span></a></a><span> </span><a name="local-6989586621679039567"><a href="#local-6989586621679039567"><span class="hs-identifier">p1</span></a></a><span>
</span><a name="line-774"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039575"><span class="hs-identifier hs-var">s2_s1p1</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-775"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039573"><span class="hs-identifier hs-var">s1_s0p1</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-776"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span> </span><span class="hs-operator hs-var">>=</span><span> </span><a href="#local-6989586621679039558"><span class="hs-identifier hs-var">len</span></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-777"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-778"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039574"><span class="hs-identifier hs-var">s1_s0p2</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-779"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039570"><span class="hs-identifier hs-var">l_e2</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">33</span><span> </span><span class="hs-operator hs-var">></span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-780"></a><span> </span><span class="hs-glyph">|</span><span> </span><a href="#local-6989586621679039569"><span class="hs-identifier hs-var">l_e1</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">33</span><span> </span><span class="hs-operator hs-var">></span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><a name="line-781"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span> </span><span class="hs-operator hs-var"><</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span class="hs-special">]</span><span>
</span><a name="line-782"></a><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier hs-var">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span class="hs-special">]</span><span>
</span><a name="line-783"></a><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-784"></a><span> </span><a name="local-6989586621679039568"><a href="#local-6989586621679039568"><span class="hs-identifier">inv_p1_p2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1023</span><span> </span><span class="hs-glyph">-</span><span>
</span><a name="line-785"></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier hs-var">gf_1024_exp</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span>
</span><a name="line-786"></a><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier hs-var">gf_1024_exp</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span class="hs-special">)</span><span>
</span><a name="line-787"></a><span> </span><a name="local-6989586621679039569"><a href="#local-6989586621679039569"><span class="hs-identifier">l_e1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039574"><span class="hs-identifier hs-var">s1_s0p2</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039568"><span class="hs-identifier hs-var">inv_p1_p2</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-special">(</span><span class="hs-number">1023</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">997</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span>
</span><a name="line-788"></a><span> </span><a name="local-6989586621679039570"><a href="#local-6989586621679039570"><span class="hs-identifier">l_e2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039571"><span class="hs-identifier hs-var">l_s1_s0p1</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039568"><span class="hs-identifier hs-var">inv_p1_p2</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-special">(</span><span class="hs-number">1023</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">997</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span>
</span><a name="line-789"></a><span> </span><a name="local-6989586621679039571"><a href="#local-6989586621679039571"><span class="hs-identifier">l_s1_s0p1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039573"><span class="hs-identifier hs-var">s1_s0p1</span></a><span>
</span><a name="line-790"></a><span> </span><a name="local-6989586621679039572"><a href="#local-6989586621679039572"><span class="hs-identifier">p2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_log"><span class="hs-identifier hs-var">gf_1024_log</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><a href="#local-6989586621679039575"><span class="hs-identifier hs-var">s2_s1p1</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-</span><span> </span><a href="#local-6989586621679039571"><span class="hs-identifier hs-var">l_s1_s0p1</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span>
</span><a name="line-791"></a><span> </span><a name="local-6989586621679039573"><a href="#local-6989586621679039573"><span class="hs-identifier">s1_s0p1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039561"><span class="hs-identifier hs-var">s1</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span>
</span><a name="line-792"></a><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039560"><span class="hs-identifier hs-var">s0</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">else</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier hs-var">gf_1024_exp</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-793"></a><span> </span><a name="local-6989586621679039574"><a href="#local-6989586621679039574"><span class="hs-identifier">s1_s0p2</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039561"><span class="hs-identifier hs-var">s1</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span>
</span><a name="line-794"></a><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039560"><span class="hs-identifier hs-var">s0</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">else</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier hs-var">gf_1024_exp</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a href="#local-6989586621679039563"><span class="hs-identifier hs-var">l_s0</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039572"><span class="hs-identifier hs-var">p2</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-795"></a><span> </span><a name="local-6989586621679039575"><a href="#local-6989586621679039575"><span class="hs-identifier">s2_s1p1</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679039562"><span class="hs-identifier hs-var">s2</span></a><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">xor</span><span class="hs-special">`</span><span>
</span><a name="line-796"></a><span> </span><span class="hs-special">(</span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039561"><span class="hs-identifier hs-var">s1</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-keyword">else</span><span> </span><a href="Codec.Binary.Bech32.Internal.html#gf_1024_exp"><span class="hs-identifier hs-var">gf_1024_exp</span></a><span> </span><span class="hs-operator hs-var">Arr.!</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a href="#local-6989586621679039564"><span class="hs-identifier hs-var">l_s1</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679039567"><span class="hs-identifier hs-var">p1</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier hs-var">mod</span><span class="hs-special">`</span><span> </span><span class="hs-number">1023</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-797"></a><span>
</span><a name="line-798"></a><span class="hs-comment">{-------------------------------------------------------------------------------
Utilities
-------------------------------------------------------------------------------}</span><span>
</span><a name="line-801"></a><span>
</span><a name="line-802"></a><span class="hs-identifier">guardE</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Bool</span><span> </span><span class="hs-glyph">-></span><span> </span><a href="#local-6989586621679036300"><span class="hs-identifier hs-type">e</span></a><span> </span><span class="hs-glyph">-></span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><a href="#local-6989586621679036300"><span class="hs-identifier hs-type">e</span></a><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><a name="line-803"></a><a name="guardE"><a href="Codec.Binary.Bech32.Internal.html#guardE"><span class="hs-identifier">guardE</span></a></a><span> </span><a name="local-6989586621679039579"><a href="#local-6989586621679039579"><span class="hs-identifier">b</span></a></a><span> </span><a name="local-6989586621679039580"><a href="#local-6989586621679039580"><span class="hs-identifier">e</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">if</span><span> </span><a href="#local-6989586621679039579"><span class="hs-identifier hs-var">b</span></a><span> </span><span class="hs-keyword">then</span><span> </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">else</span><span> </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="#local-6989586621679039580"><span class="hs-identifier hs-var">e</span></a><span>
</span><a name="line-804"></a></pre></body></html>