@bookipi/htmlgenerator 1.1.23-alpha4 → 1.1.23-alpha5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { util } from '@bookipi/bookipi-core';
1
2
  import sanitizeHtml from 'sanitize-html';
2
3
 
3
4
  function _extends() {
@@ -60,1599 +61,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
60
61
  return it.next.bind(it);
61
62
  }
62
63
 
63
- var currencies = {
64
- AED: {
65
- symbol: "AED",
66
- name: "United Arab Emirates Dirham",
67
- symbol_native: "د.إ.‏",
68
- decimal_digits: 2,
69
- rounding: 0,
70
- code: "AED",
71
- name_plural: "UAE dirhams",
72
- rtl: true
73
- },
74
- AFN: {
75
- symbol: "Af",
76
- name: "Afghan Afghani",
77
- symbol_native: "Af",
78
- decimal_digits: 0,
79
- rounding: 0,
80
- code: "AFN",
81
- name_plural: "Afghan Afghanis",
82
- rtl: true
83
- },
84
- ALL: {
85
- symbol: "ALL",
86
- name: "Albanian Lek",
87
- symbol_native: "Lek",
88
- decimal_digits: 0,
89
- rounding: 0,
90
- code: "ALL",
91
- name_plural: "Albanian lekë"
92
- },
93
- AOA: {
94
- symbol: "Kz",
95
- name: "Angolan kwanza",
96
- symbol_native: "Kz",
97
- decimal_digits: 2,
98
- rounding: 0,
99
- code: "AOA",
100
- name_plural: "Angolan kwanza"
101
- },
102
- AMD: {
103
- symbol: "AMD",
104
- name: "Armenian Dram",
105
- symbol_native: "դր.",
106
- decimal_digits: 0,
107
- rounding: 0,
108
- code: "AMD",
109
- name_plural: "Armenian drams"
110
- },
111
- ANG: {
112
- symbol: "ANG",
113
- name: "Dutch Guilder",
114
- symbol_native: "ƒ",
115
- decimal_digits: 2,
116
- rounding: 0,
117
- code: "ANG",
118
- name_plural: "Dutch Guilders"
119
- },
120
- ARS: {
121
- symbol: "AR$",
122
- name: "Argentine Peso",
123
- symbol_native: "$",
124
- decimal_digits: 2,
125
- rounding: 0,
126
- code: "ARS",
127
- name_plural: "Argentine pesos"
128
- },
129
- AUD: {
130
- symbol: "AU$",
131
- name: "Australian Dollar",
132
- symbol_native: "$",
133
- decimal_digits: 2,
134
- rounding: 0,
135
- code: "AUD",
136
- name_plural: "Australian dollars"
137
- },
138
- AZN: {
139
- symbol: "man.",
140
- name: "Azerbaijani Manat",
141
- symbol_native: "ман.",
142
- decimal_digits: 2,
143
- rounding: 0,
144
- code: "AZN",
145
- name_plural: "Azerbaijani manats"
146
- },
147
- BAM: {
148
- symbol: "KM",
149
- name: "Bosnia-Herzegovina Convertible Mark",
150
- symbol_native: "KM",
151
- decimal_digits: 2,
152
- rounding: 0,
153
- code: "BAM",
154
- name_plural: "Bosnia-Herzegovina convertible marks"
155
- },
156
- BBD: {
157
- symbol: "Bds$",
158
- name: "Barbadian Dollar",
159
- symbol_native: "Bds$",
160
- decimal_digits: 2,
161
- rounding: 0,
162
- code: "BBD",
163
- name_plural: "Barbadian Dollars"
164
- },
165
- BDT: {
166
- symbol: "Tk",
167
- name: "Bangladeshi Taka",
168
- symbol_native: "Tk",
169
- decimal_digits: 2,
170
- rounding: 0,
171
- code: "BDT",
172
- name_plural: "Bangladeshi takas"
173
- },
174
- BGN: {
175
- symbol: "BGN",
176
- name: "Bulgarian Lev",
177
- symbol_native: "лв.",
178
- decimal_digits: 2,
179
- rounding: 0,
180
- code: "BGN",
181
- name_plural: "Bulgarian leva"
182
- },
183
- BHD: {
184
- symbol: "BD",
185
- name: "Bahraini Dinar",
186
- symbol_native: "د.ب.‏",
187
- decimal_digits: 3,
188
- rounding: 0,
189
- code: "BHD",
190
- name_plural: "Bahraini dinars",
191
- rtl: true
192
- },
193
- BIF: {
194
- symbol: "FBu",
195
- name: "Burundian Franc",
196
- symbol_native: "FBu",
197
- decimal_digits: 0,
198
- rounding: 0,
199
- code: "BIF",
200
- name_plural: "Burundian francs"
201
- },
202
- BND: {
203
- symbol: "BN$",
204
- name: "Brunei Dollar",
205
- symbol_native: "$",
206
- decimal_digits: 2,
207
- rounding: 0,
208
- code: "BND",
209
- name_plural: "Brunei dollars"
210
- },
211
- BOB: {
212
- symbol: "Bs",
213
- name: "Bolivian Boliviano",
214
- symbol_native: "Bs",
215
- decimal_digits: 2,
216
- rounding: 0,
217
- code: "BOB",
218
- name_plural: "Bolivian bolivianos"
219
- },
220
- BRL: {
221
- symbol: "R$",
222
- name: "Brazilian Real",
223
- symbol_native: "R$",
224
- decimal_digits: 2,
225
- rounding: 0,
226
- code: "BRL",
227
- name_plural: "Brazilian reals"
228
- },
229
- BWP: {
230
- symbol: "BWP",
231
- name: "Botswanan Pula",
232
- symbol_native: "P",
233
- decimal_digits: 2,
234
- rounding: 0,
235
- code: "BWP",
236
- name_plural: "Botswanan pulas"
237
- },
238
- BYR: {
239
- symbol: "BYR",
240
- name: "Belarusian Ruble",
241
- symbol_native: "BYR",
242
- decimal_digits: 0,
243
- rounding: 0,
244
- code: "BYR",
245
- name_plural: "Belarusian rubles"
246
- },
247
- BZD: {
248
- symbol: "BZ$",
249
- name: "Belize Dollar",
250
- symbol_native: "$",
251
- decimal_digits: 2,
252
- rounding: 0,
253
- code: "BZD",
254
- name_plural: "Belize dollars"
255
- },
256
- CAD: {
257
- symbol: "CA$",
258
- name: "Canadian Dollar",
259
- symbol_native: "$",
260
- decimal_digits: 2,
261
- rounding: 0,
262
- code: "CAD",
263
- name_plural: "Canadian dollars"
264
- },
265
- CDF: {
266
- symbol: "CDF",
267
- name: "Congolese Franc",
268
- symbol_native: "FrCD",
269
- decimal_digits: 2,
270
- rounding: 0,
271
- code: "CDF",
272
- name_plural: "Congolese francs"
273
- },
274
- CHF: {
275
- symbol: "CHF",
276
- name: "Swiss Franc",
277
- symbol_native: "CHF",
278
- decimal_digits: 2,
279
- rounding: 0.05,
280
- code: "CHF",
281
- name_plural: "Swiss francs"
282
- },
283
- CLP: {
284
- symbol: "CL$",
285
- name: "Chilean Peso",
286
- symbol_native: "$",
287
- decimal_digits: 0,
288
- rounding: 0,
289
- code: "CLP",
290
- name_plural: "Chilean pesos"
291
- },
292
- CNY: {
293
- symbol: "¥",
294
- name: "Chinese Yuan",
295
- symbol_native: "¥",
296
- decimal_digits: 2,
297
- rounding: 0,
298
- code: "CNY",
299
- name_plural: "Chinese yuan"
300
- },
301
- COP: {
302
- symbol: "CO$",
303
- name: "Colombian Peso",
304
- symbol_native: "$",
305
- decimal_digits: 0,
306
- rounding: 0,
307
- code: "COP",
308
- name_plural: "Colombian pesos"
309
- },
310
- CRC: {
311
- symbol: "₡",
312
- name: "Costa Rican Colón",
313
- symbol_native: "₡",
314
- decimal_digits: 0,
315
- rounding: 0,
316
- code: "CRC",
317
- name_plural: "Costa Rican colóns"
318
- },
319
- CVE: {
320
- symbol: "CV$",
321
- name: "Cape Verdean Escudo",
322
- symbol_native: "CV$",
323
- decimal_digits: 2,
324
- rounding: 0,
325
- code: "CVE",
326
- name_plural: "Cape Verdean escudos"
327
- },
328
- CZK: {
329
- symbol: "Kč",
330
- name: "Czech Republic Koruna",
331
- symbol_native: "Kč",
332
- decimal_digits: 2,
333
- rounding: 0,
334
- code: "CZK",
335
- name_plural: "Czech Republic korunas"
336
- },
337
- DJF: {
338
- symbol: "Fdj",
339
- name: "Djiboutian Franc",
340
- symbol_native: "Fdj",
341
- decimal_digits: 0,
342
- rounding: 0,
343
- code: "DJF",
344
- name_plural: "Djiboutian francs"
345
- },
346
- DKK: {
347
- symbol: "Dkr",
348
- name: "Danish Krone",
349
- symbol_native: "kr",
350
- decimal_digits: 2,
351
- rounding: 0,
352
- code: "DKK",
353
- name_plural: "Danish kroner"
354
- },
355
- DOP: {
356
- symbol: "RD$",
357
- name: "Dominican Peso",
358
- symbol_native: "RD$",
359
- decimal_digits: 2,
360
- rounding: 0,
361
- code: "DOP",
362
- name_plural: "Dominican pesos"
363
- },
364
- DZD: {
365
- symbol: "DA",
366
- name: "Algerian Dinar",
367
- symbol_native: "د.ج.‏",
368
- decimal_digits: 2,
369
- rounding: 0,
370
- code: "DZD",
371
- name_plural: "Algerian dinars",
372
- rtl: true
373
- },
374
- EEK: {
375
- symbol: "Ekr",
376
- name: "Estonian Kroon",
377
- symbol_native: "kr",
378
- decimal_digits: 2,
379
- rounding: 0,
380
- code: "EEK",
381
- name_plural: "Estonian kroons"
382
- },
383
- EGP: {
384
- symbol: "EGP",
385
- name: "Egyptian Pound",
386
- symbol_native: "ج.م.‏",
387
- decimal_digits: 2,
388
- rounding: 0,
389
- code: "EGP",
390
- name_plural: "Egyptian pounds",
391
- rtl: true
392
- },
393
- ERN: {
394
- symbol: "Nfk",
395
- name: "Eritrean Nakfa",
396
- symbol_native: "Nfk",
397
- decimal_digits: 2,
398
- rounding: 0,
399
- code: "ERN",
400
- name_plural: "Eritrean nakfas"
401
- },
402
- ETB: {
403
- symbol: "Br",
404
- name: "Ethiopian Birr",
405
- symbol_native: "Br",
406
- decimal_digits: 2,
407
- rounding: 0,
408
- code: "ETB",
409
- name_plural: "Ethiopian birrs"
410
- },
411
- EUR: {
412
- symbol: "€",
413
- name: "Euro",
414
- symbol_native: "€",
415
- decimal_digits: 2,
416
- rounding: 0,
417
- code: "EUR",
418
- name_plural: "euros"
419
- },
420
- GBP: {
421
- symbol: "£",
422
- name: "British Pound Sterling",
423
- symbol_native: "£",
424
- decimal_digits: 2,
425
- rounding: 0,
426
- code: "GBP",
427
- name_plural: "British pounds sterling"
428
- },
429
- GEL: {
430
- symbol: "GEL",
431
- name: "Georgian Lari",
432
- symbol_native: "GEL",
433
- decimal_digits: 2,
434
- rounding: 0,
435
- code: "GEL",
436
- name_plural: "Georgian laris"
437
- },
438
- GHS: {
439
- symbol: "GH₵",
440
- name: "Ghanaian Cedi",
441
- symbol_native: "GH₵",
442
- decimal_digits: 2,
443
- rounding: 0,
444
- code: "GHS",
445
- name_plural: "Ghanaian cedis"
446
- },
447
- GNF: {
448
- symbol: "FG",
449
- name: "Guinean Franc",
450
- symbol_native: "FG",
451
- decimal_digits: 0,
452
- rounding: 0,
453
- code: "GNF",
454
- name_plural: "Guinean francs"
455
- },
456
- GTQ: {
457
- symbol: "GTQ",
458
- name: "Guatemalan Quetzal",
459
- symbol_native: "Q",
460
- decimal_digits: 2,
461
- rounding: 0,
462
- code: "GTQ",
463
- name_plural: "Guatemalan quetzals"
464
- },
465
- HKD: {
466
- symbol: "HK$",
467
- name: "Hong Kong Dollar",
468
- symbol_native: "HKD",
469
- decimal_digits: 2,
470
- rounding: 0,
471
- code: "HKD",
472
- name_plural: "Hong Kong dollars"
473
- },
474
- HNL: {
475
- symbol: "HNL",
476
- name: "Honduran Lempira",
477
- symbol_native: "L",
478
- decimal_digits: 2,
479
- rounding: 0,
480
- code: "HNL",
481
- name_plural: "Honduran lempiras"
482
- },
483
- HRK: {
484
- symbol: "kn",
485
- name: "Croatian Kuna",
486
- symbol_native: "kn",
487
- decimal_digits: 2,
488
- rounding: 0,
489
- code: "HRK",
490
- name_plural: "Croatian kunas"
491
- },
492
- HTG: {
493
- symbol: "HTG",
494
- name: "Haitian gourde",
495
- symbol_native: "G",
496
- decimal_digits: 2,
497
- rounding: 0,
498
- code: "HTG",
499
- name_plural: "Haitian gourde"
500
- },
501
- HUF: {
502
- symbol: "Ft",
503
- name: "Hungarian Forint",
504
- symbol_native: "Ft",
505
- decimal_digits: 0,
506
- rounding: 0,
507
- code: "HUF",
508
- name_plural: "Hungarian forints"
509
- },
510
- IDR: {
511
- symbol: "Rp",
512
- name: "Indonesian Rupiah",
513
- symbol_native: "Rp",
514
- decimal_digits: 0,
515
- rounding: 0,
516
- code: "IDR",
517
- name_plural: "Indonesian rupiahs"
518
- },
519
- ILS: {
520
- symbol: "₪",
521
- name: "Israeli New Sheqel",
522
- symbol_native: "₪",
523
- decimal_digits: 2,
524
- rounding: 0,
525
- code: "ILS",
526
- name_plural: "Israeli new sheqels"
527
- },
528
- INR: {
529
- symbol: "Rs",
530
- name: "Indian Rupee",
531
- symbol_native: "₹",
532
- decimal_digits: 2,
533
- rounding: 0,
534
- code: "INR",
535
- name_plural: "Indian rupees"
536
- },
537
- IQD: {
538
- symbol: "IQD",
539
- name: "Iraqi Dinar",
540
- symbol_native: "د.ع.‏",
541
- decimal_digits: 0,
542
- rounding: 0,
543
- code: "IQD",
544
- name_plural: "Iraqi dinars",
545
- rtl: true
546
- },
547
- IRR: {
548
- symbol: "IRR",
549
- name: "Iranian Rial",
550
- symbol_native: "﷼",
551
- decimal_digits: 0,
552
- rounding: 0,
553
- code: "IRR",
554
- name_plural: "Iranian rials",
555
- rtl: true
556
- },
557
- ISK: {
558
- symbol: "Ikr",
559
- name: "Icelandic Króna",
560
- symbol_native: "kr",
561
- decimal_digits: 0,
562
- rounding: 0,
563
- code: "ISK",
564
- name_plural: "Icelandic krónur"
565
- },
566
- JMD: {
567
- symbol: "J$",
568
- name: "Jamaican Dollar",
569
- symbol_native: "$",
570
- decimal_digits: 2,
571
- rounding: 0,
572
- code: "JMD",
573
- name_plural: "Jamaican dollars"
574
- },
575
- JOD: {
576
- symbol: "JD",
577
- name: "Jordanian Dinar",
578
- symbol_native: "د.أ.‏",
579
- decimal_digits: 3,
580
- rounding: 0,
581
- code: "JOD",
582
- name_plural: "Jordanian dinars",
583
- rtl: true
584
- },
585
- JPY: {
586
- symbol: "¥",
587
- name: "Japanese Yen",
588
- symbol_native: "¥",
589
- decimal_digits: 0,
590
- rounding: 0,
591
- code: "JPY",
592
- name_plural: "Japanese yen"
593
- },
594
- KES: {
595
- symbol: "Ksh",
596
- name: "Kenyan Shilling",
597
- symbol_native: "Ksh",
598
- decimal_digits: 2,
599
- rounding: 0,
600
- code: "KES",
601
- name_plural: "Kenyan shillings"
602
- },
603
- KHR: {
604
- symbol: "KHR",
605
- name: "Cambodian Riel",
606
- symbol_native: "KHR",
607
- decimal_digits: 2,
608
- rounding: 0,
609
- code: "KHR",
610
- name_plural: "Cambodian riels"
611
- },
612
- KMF: {
613
- symbol: "CF",
614
- name: "Comorian Franc",
615
- symbol_native: "FC",
616
- decimal_digits: 0,
617
- rounding: 0,
618
- code: "KMF",
619
- name_plural: "Comorian francs"
620
- },
621
- KRW: {
622
- symbol: "₩",
623
- name: "Korean Won(₩)",
624
- symbol_native: "₩",
625
- decimal_digits: 0,
626
- rounding: 0,
627
- code: "KRW",
628
- name_plural: "Korean won"
629
- },
630
- KRW2: {
631
- symbol: "원",
632
- name: "Korean Won(원)",
633
- symbol_native: "원",
634
- decimal_digits: 0,
635
- rounding: 0,
636
- code: "KRW2",
637
- name_plural: "Korean won"
638
- },
639
- KWD: {
640
- symbol: "KD",
641
- name: "Kuwaiti Dinar",
642
- symbol_native: "د.ك.‏",
643
- decimal_digits: 3,
644
- rounding: 0,
645
- code: "KWD",
646
- name_plural: "Kuwaiti dinars",
647
- rtl: true
648
- },
649
- KZT: {
650
- symbol: "KZT",
651
- name: "Kazakhstani Tenge",
652
- symbol_native: "тңг.",
653
- decimal_digits: 2,
654
- rounding: 0,
655
- code: "KZT",
656
- name_plural: "Kazakhstani tenges"
657
- },
658
- LBP: {
659
- symbol: "LB£",
660
- name: "Lebanese Pound",
661
- symbol_native: "ل.ل.‏",
662
- decimal_digits: 0,
663
- rounding: 0,
664
- code: "LBP",
665
- name_plural: "Lebanese pounds",
666
- rtl: true
667
- },
668
- LKR: {
669
- symbol: "SLRs",
670
- name: "Sri Lankan Rupee",
671
- symbol_native: "LKR Rs",
672
- decimal_digits: 2,
673
- rounding: 0,
674
- code: "LKR",
675
- name_plural: "Sri Lankan rupees"
676
- },
677
- LTL: {
678
- symbol: "Lt",
679
- name: "Lithuanian Litas",
680
- symbol_native: "Lt",
681
- decimal_digits: 2,
682
- rounding: 0,
683
- code: "LTL",
684
- name_plural: "Lithuanian litai"
685
- },
686
- LVL: {
687
- symbol: "Ls",
688
- name: "Latvian Lats",
689
- symbol_native: "Ls",
690
- decimal_digits: 2,
691
- rounding: 0,
692
- code: "LVL",
693
- name_plural: "Latvian lati"
694
- },
695
- LYD: {
696
- symbol: "LD",
697
- name: "Libyan Dinar",
698
- symbol_native: "د.ل.‏",
699
- decimal_digits: 3,
700
- rounding: 0,
701
- code: "LYD",
702
- name_plural: "Libyan dinars",
703
- rtl: true
704
- },
705
- MAD: {
706
- symbol: "MAD",
707
- name: "Moroccan Dirham",
708
- symbol_native: "د.م.‏",
709
- decimal_digits: 2,
710
- rounding: 0,
711
- code: "MAD",
712
- name_plural: "Moroccan dirhams",
713
- rtl: true
714
- },
715
- MDL: {
716
- symbol: "MDL",
717
- name: "Moldovan Leu",
718
- symbol_native: "MDL",
719
- decimal_digits: 2,
720
- rounding: 0,
721
- code: "MDL",
722
- name_plural: "Moldovan lei"
723
- },
724
- MGA: {
725
- symbol: "MGA",
726
- name: "Malagasy Ariary",
727
- symbol_native: "MGA",
728
- decimal_digits: 0,
729
- rounding: 0,
730
- code: "MGA",
731
- name_plural: "Malagasy Ariaries"
732
- },
733
- MKD: {
734
- symbol: "MKD",
735
- name: "Macedonian Denar",
736
- symbol_native: "MKD",
737
- decimal_digits: 2,
738
- rounding: 0,
739
- code: "MKD",
740
- name_plural: "Macedonian denari"
741
- },
742
- MMK: {
743
- symbol: "MMK",
744
- name: "Myanma Kyat",
745
- symbol_native: "K",
746
- decimal_digits: 0,
747
- rounding: 0,
748
- code: "MMK",
749
- name_plural: "Myanma kyats"
750
- },
751
- MOP: {
752
- symbol: "MOP$",
753
- name: "Macanese Pataca",
754
- symbol_native: "MOP$",
755
- decimal_digits: 2,
756
- rounding: 0,
757
- code: "MOP",
758
- name_plural: "Macanese patacas"
759
- },
760
- MUR: {
761
- symbol: "MURs",
762
- name: "Mauritian Rupee",
763
- symbol_native: "MURs",
764
- decimal_digits: 0,
765
- rounding: 0,
766
- code: "MUR",
767
- name_plural: "Mauritian rupees"
768
- },
769
- MXN: {
770
- symbol: "MX$",
771
- name: "Mexican Peso",
772
- symbol_native: "$",
773
- decimal_digits: 2,
774
- rounding: 0,
775
- code: "MXN",
776
- name_plural: "Mexican pesos"
777
- },
778
- MVR: {
779
- symbol: "MVR",
780
- name: "Maldivian rufiyaa",
781
- symbol_native: "MVR",
782
- decimal_digits: 2,
783
- rounding: 0,
784
- code: "MVR",
785
- name_plural: "Maldivian rufiyaas"
786
- },
787
- MYR: {
788
- symbol: "RM",
789
- name: "Malaysian Ringgit",
790
- symbol_native: "RM",
791
- decimal_digits: 2,
792
- rounding: 0,
793
- code: "MYR",
794
- name_plural: "Malaysian ringgits"
795
- },
796
- MZN: {
797
- symbol: "MTn",
798
- name: "Mozambican Metical",
799
- symbol_native: "MTn",
800
- decimal_digits: 2,
801
- rounding: 0,
802
- code: "MZN",
803
- name_plural: "Mozambican meticals"
804
- },
805
- NAD: {
806
- symbol: "N$",
807
- name: "Namibian Dollar",
808
- symbol_native: "N$",
809
- decimal_digits: 2,
810
- rounding: 0,
811
- code: "NAD",
812
- name_plural: "Namibian dollars"
813
- },
814
- NGN: {
815
- symbol: "₦",
816
- name: "Nigerian Naira",
817
- symbol_native: "₦",
818
- decimal_digits: 2,
819
- rounding: 0,
820
- code: "NGN",
821
- name_plural: "Nigerian nairas"
822
- },
823
- NIO: {
824
- symbol: "C$",
825
- name: "Nicaraguan Córdoba",
826
- symbol_native: "C$",
827
- decimal_digits: 2,
828
- rounding: 0,
829
- code: "NIO",
830
- name_plural: "Nicaraguan córdobas"
831
- },
832
- NOK: {
833
- symbol: "Nkr",
834
- name: "Norwegian Krone",
835
- symbol_native: "kr",
836
- decimal_digits: 2,
837
- rounding: 0,
838
- code: "NOK",
839
- name_plural: "Norwegian kroner"
840
- },
841
- NPR: {
842
- symbol: "NPRs",
843
- name: "Nepalese Rupee",
844
- symbol_native: "NPRs",
845
- decimal_digits: 2,
846
- rounding: 0,
847
- code: "NPR",
848
- name_plural: "Nepalese rupees"
849
- },
850
- NZD: {
851
- symbol: "NZ$",
852
- name: "New Zealand Dollar",
853
- symbol_native: "$",
854
- decimal_digits: 2,
855
- rounding: 0,
856
- code: "NZD",
857
- name_plural: "New Zealand dollars"
858
- },
859
- OMR: {
860
- symbol: "OMR",
861
- name: "Omani Rial",
862
- symbol_native: "OMR",
863
- decimal_digits: 3,
864
- rounding: 0,
865
- code: "OMR",
866
- name_plural: "Omani rials"
867
- },
868
- PAB: {
869
- symbol: "B/.",
870
- name: "Panamanian Balboa",
871
- symbol_native: "B/.",
872
- decimal_digits: 2,
873
- rounding: 0,
874
- code: "PAB",
875
- name_plural: "Panamanian balboas"
876
- },
877
- PEN: {
878
- symbol: "S/.",
879
- name: "Peruvian Nuevo Sol",
880
- symbol_native: "S/.",
881
- decimal_digits: 2,
882
- rounding: 0,
883
- code: "PEN",
884
- name_plural: "Peruvian nuevos soles"
885
- },
886
- PGK: {
887
- symbol: "K",
888
- name: "Papua New Guinea Kina",
889
- symbol_native: "K",
890
- decimal_digits: 2,
891
- rounding: 0,
892
- code: "PGK",
893
- name_plural: "Papua New Guinea Kina"
894
- },
895
- PHP: {
896
- symbol: "₱",
897
- name: "Philippine Peso",
898
- symbol_native: "₱",
899
- decimal_digits: 2,
900
- rounding: 0,
901
- code: "PHP",
902
- name_plural: "Philippine pesos"
903
- },
904
- PKR: {
905
- symbol: "PKRs",
906
- name: "Pakistani Rupee",
907
- symbol_native: "₨",
908
- decimal_digits: 0,
909
- rounding: 0,
910
- code: "PKR",
911
- name_plural: "Pakistani rupees"
912
- },
913
- PLN: {
914
- symbol: "zł",
915
- name: "Polish Zloty",
916
- symbol_native: "zł",
917
- decimal_digits: 2,
918
- rounding: 0,
919
- code: "PLN",
920
- name_plural: "Polish zlotys"
921
- },
922
- PYG: {
923
- symbol: "₲",
924
- name: "Paraguayan Guarani",
925
- symbol_native: "₲",
926
- decimal_digits: 0,
927
- rounding: 0,
928
- code: "PYG",
929
- name_plural: "Paraguayan guaranis"
930
- },
931
- QAR: {
932
- symbol: "QR",
933
- name: "Qatari Rial",
934
- symbol_native: "ر.ق.‏",
935
- decimal_digits: 2,
936
- rounding: 0,
937
- code: "QAR",
938
- name_plural: "Qatari rials",
939
- rtl: true
940
- },
941
- RON: {
942
- symbol: "lei",
943
- name: "Romanian Leu",
944
- symbol_native: "lei",
945
- decimal_digits: 2,
946
- rounding: 0,
947
- code: "RON",
948
- name_plural: "Romanian lei"
949
- },
950
- RSD: {
951
- symbol: "din.",
952
- name: "Serbian Dinar",
953
- symbol_native: "дин.",
954
- decimal_digits: 2,
955
- rounding: 0,
956
- code: "RSD",
957
- name_plural: "Serbian dinars"
958
- },
959
- RUB: {
960
- symbol: "RUB",
961
- name: "Russian Ruble",
962
- symbol_native: "руб.",
963
- decimal_digits: 2,
964
- rounding: 0,
965
- code: "RUB",
966
- name_plural: "Russian rubles"
967
- },
968
- RWF: {
969
- symbol: "RWF",
970
- name: "Rwandan Franc",
971
- symbol_native: "FR",
972
- decimal_digits: 0,
973
- rounding: 0,
974
- code: "RWF",
975
- name_plural: "Rwandan francs"
976
- },
977
- SAR: {
978
- symbol: "SR",
979
- name: "Saudi Riyal",
980
- symbol_native: "ر.س.‏",
981
- decimal_digits: 2,
982
- rounding: 0,
983
- code: "SAR",
984
- name_plural: "Saudi riyals",
985
- rtl: true
986
- },
987
- SDG: {
988
- symbol: "SDG",
989
- name: "Sudanese Pound",
990
- symbol_native: "SDG",
991
- decimal_digits: 2,
992
- rounding: 0,
993
- code: "SDG",
994
- name_plural: "Sudanese pounds"
995
- },
996
- SEK: {
997
- symbol: "Skr",
998
- name: "Swedish Krona",
999
- symbol_native: "kr",
1000
- decimal_digits: 2,
1001
- rounding: 0,
1002
- code: "SEK",
1003
- name_plural: "Swedish kronor"
1004
- },
1005
- SGD: {
1006
- symbol: "S$",
1007
- name: "Singapore Dollar",
1008
- symbol_native: "$",
1009
- decimal_digits: 2,
1010
- rounding: 0,
1011
- code: "SGD",
1012
- name_plural: "Singapore dollars"
1013
- },
1014
- SLL: {
1015
- symbol: "SLL",
1016
- name: "Sierra Leonean Leone",
1017
- symbol_native: "SLL",
1018
- decimal_digits: 2,
1019
- rounding: 0,
1020
- code: "SLL",
1021
- name_plural: "Sierra Leonean Leones"
1022
- },
1023
- SOS: {
1024
- symbol: "Ssh",
1025
- name: "Somali Shilling",
1026
- symbol_native: "Ssh",
1027
- decimal_digits: 0,
1028
- rounding: 0,
1029
- code: "SOS",
1030
- name_plural: "Somali shillings"
1031
- },
1032
- SRD: {
1033
- symbol: "SRD",
1034
- name: "Surinamese dollar",
1035
- symbol_native: "SRD",
1036
- decimal_digits: 0,
1037
- rounding: 0,
1038
- code: "SRD",
1039
- name_plural: "Surinamese dollars"
1040
- },
1041
- SYP: {
1042
- symbol: "SY£",
1043
- name: "Syrian Pound",
1044
- symbol_native: "ل.س.‏",
1045
- decimal_digits: 0,
1046
- rounding: 0,
1047
- code: "SYP",
1048
- name_plural: "Syrian pounds",
1049
- rtl: true
1050
- },
1051
- THB: {
1052
- symbol: "฿",
1053
- name: "Thai Baht",
1054
- symbol_native: "฿",
1055
- decimal_digits: 2,
1056
- rounding: 0,
1057
- code: "THB",
1058
- name_plural: "Thai baht"
1059
- },
1060
- TND: {
1061
- symbol: "DT",
1062
- name: "Tunisian Dinar",
1063
- symbol_native1: "د.ت.‏",
1064
- symbol_native: "TND",
1065
- decimal_digits: 3,
1066
- rounding: 0,
1067
- code: "TND",
1068
- name_plural: "Tunisian dinars"
1069
- },
1070
- TOP: {
1071
- symbol: "T$",
1072
- name: "Tongan Paʻanga",
1073
- symbol_native: "T$",
1074
- decimal_digits: 2,
1075
- rounding: 0,
1076
- code: "TOP",
1077
- name_plural: "Tongan paʻanga"
1078
- },
1079
- TRY: {
1080
- symbol: "TL",
1081
- name: "Turkish Lira",
1082
- symbol_native: "TL",
1083
- decimal_digits: 2,
1084
- rounding: 0,
1085
- code: "TRY",
1086
- name_plural: "Turkish Lira"
1087
- },
1088
- TTD: {
1089
- symbol: "TT$",
1090
- name: "Trinidad and Tobago Dollar",
1091
- symbol_native: "$",
1092
- decimal_digits: 2,
1093
- rounding: 0,
1094
- code: "TTD",
1095
- name_plural: "Trinidad and Tobago dollars"
1096
- },
1097
- TWD: {
1098
- symbol: "NT$",
1099
- name: "New Taiwan Dollar",
1100
- symbol_native: "NT$",
1101
- decimal_digits: 2,
1102
- rounding: 0,
1103
- code: "TWD",
1104
- name_plural: "New Taiwan dollars"
1105
- },
1106
- TZS: {
1107
- symbol: "TSh",
1108
- name: "Tanzanian Shilling",
1109
- symbol_native: "TSh",
1110
- decimal_digits: 0,
1111
- rounding: 0,
1112
- code: "TZS",
1113
- name_plural: "Tanzanian shillings"
1114
- },
1115
- UAH: {
1116
- symbol: "₴",
1117
- name: "Ukrainian Hryvnia",
1118
- symbol_native: "₴",
1119
- decimal_digits: 2,
1120
- rounding: 0,
1121
- code: "UAH",
1122
- name_plural: "Ukrainian hryvnias"
1123
- },
1124
- UGX: {
1125
- symbol: "USh",
1126
- name: "Ugandan Shilling",
1127
- symbol_native: "USh",
1128
- decimal_digits: 0,
1129
- rounding: 0,
1130
- code: "UGX",
1131
- name_plural: "Ugandan shillings"
1132
- },
1133
- USD: {
1134
- symbol: "US$",
1135
- name: "US Dollar",
1136
- symbol_native: "$",
1137
- decimal_digits: 2,
1138
- rounding: 0,
1139
- code: "USD",
1140
- name_plural: "US dollars"
1141
- },
1142
- UYU: {
1143
- symbol: "$U",
1144
- name: "Uruguayan Peso",
1145
- symbol_native: "$",
1146
- decimal_digits: 2,
1147
- rounding: 0,
1148
- code: "UYU",
1149
- name_plural: "Uruguayan pesos"
1150
- },
1151
- UZS: {
1152
- symbol: "UZS",
1153
- name: "Uzbekistan Som",
1154
- symbol_native: "UZS",
1155
- decimal_digits: 0,
1156
- rounding: 0,
1157
- code: "UZS",
1158
- name_plural: "Uzbekistan som"
1159
- },
1160
- VEF: {
1161
- symbol: "Bs.F.",
1162
- name: "Venezuelan Bolívar",
1163
- symbol_native: "Bs.F.",
1164
- decimal_digits: 2,
1165
- rounding: 0,
1166
- code: "VEF",
1167
- name_plural: "Venezuelan bolívars"
1168
- },
1169
- VES: {
1170
- symbol: "VES",
1171
- name: "Bolívar Soberano",
1172
- symbol_native: "Bs.S ",
1173
- decimal_digits: 2,
1174
- rounding: 0,
1175
- code: "VES",
1176
- name_plural: "Bolívares Soberanos"
1177
- },
1178
- VND: {
1179
- symbol: "Dong",
1180
- name: "Vietnamese Dong",
1181
- symbol_native: "Dong",
1182
- decimal_digits: 0,
1183
- rounding: 0,
1184
- code: "VND",
1185
- name_plural: "Vietnamese dong"
1186
- },
1187
- XAF: {
1188
- symbol: "FCFA",
1189
- name: "CFA Franc BEAC",
1190
- symbol_native: "FCFA",
1191
- decimal_digits: 0,
1192
- rounding: 0,
1193
- code: "XAF",
1194
- name_plural: "CFA francs BEAC"
1195
- },
1196
- XCD: {
1197
- symbol: "XCD$",
1198
- name: "East Caribbean Dollar",
1199
- symbol_native: "$",
1200
- decimal_digits: 2,
1201
- rounding: 0,
1202
- code: "XCD",
1203
- name_plural: "East Caribbean Dollars"
1204
- },
1205
- XOF: {
1206
- symbol: "CFA",
1207
- name: "CFA Franc BCEAO",
1208
- symbol_native: "CFA",
1209
- decimal_digits: 0,
1210
- rounding: 0,
1211
- code: "XOF",
1212
- name_plural: "CFA francs BCEAO"
1213
- },
1214
- XPF: {
1215
- symbol: "XPF",
1216
- name: "Central Pacific Franc",
1217
- symbol_native: "F",
1218
- decimal_digits: 2,
1219
- rounding: 0,
1220
- code: "XPF",
1221
- name_plural: "Central Pacific Franc"
1222
- },
1223
- YER: {
1224
- symbol: "YR",
1225
- name: "Yemeni Rial",
1226
- symbol_native: "ر.ي.‏",
1227
- decimal_digits: 0,
1228
- rounding: 0,
1229
- code: "YER",
1230
- name_plural: "Yemeni rials",
1231
- rtl: true
1232
- },
1233
- ZAR: {
1234
- symbol: "R",
1235
- name: "South African Rand",
1236
- symbol_native: "R",
1237
- decimal_digits: 2,
1238
- rounding: 0,
1239
- code: "ZAR",
1240
- name_plural: "South African rand"
1241
- },
1242
- ZMK: {
1243
- symbol: "ZK",
1244
- name: "Zambian Kwacha",
1245
- symbol_native: "ZK",
1246
- decimal_digits: 0,
1247
- rounding: 0,
1248
- code: "ZMK",
1249
- name_plural: "Zambian kwachas"
1250
- }
1251
- };
1252
-
1253
- var numberFormat = {
1254
- am: {
1255
- decimal: ".",
1256
- group: ",",
1257
- format: "$$###",
1258
- currency: "AMD"
1259
- },
1260
- ar: {
1261
- decimal: ".",
1262
- group: ",",
1263
- format: "$$ ###",
1264
- currency: "ARS"
1265
- },
1266
- bg: {
1267
- decimal: ",",
1268
- group: " ",
1269
- format: "### $$",
1270
- currency: "BGN"
1271
- },
1272
- bn: {
1273
- decimal: ".",
1274
- group: ",",
1275
- format: "###$$",
1276
- currency: "BND"
1277
- },
1278
- ca: {
1279
- decimal: ",",
1280
- group: ".",
1281
- format: "### $$",
1282
- currency: "CAD"
1283
- },
1284
- cs: {
1285
- decimal: ",",
1286
- group: " ",
1287
- format: "### $$",
1288
- currency: "EUR"
1289
- },
1290
- da: {
1291
- decimal: ",",
1292
- group: ".",
1293
- format: "### $$",
1294
- currency: "DKK"
1295
- },
1296
- de: {
1297
- decimal: ",",
1298
- group: ".",
1299
- format: "### $$",
1300
- currency: ""
1301
- },
1302
- el: {
1303
- decimal: ",",
1304
- group: ".",
1305
- format: "### $$",
1306
- currency: ""
1307
- },
1308
- en: {
1309
- decimal: ".",
1310
- group: ",",
1311
- format: "$$###",
1312
- currency: ""
1313
- },
1314
- "en-GB": {
1315
- decimal: ".",
1316
- group: ",",
1317
- format: "$$###",
1318
- currency: ""
1319
- },
1320
- es: {
1321
- decimal: ",",
1322
- group: ".",
1323
- format: "### $$",
1324
- currency: ""
1325
- },
1326
- "es-419": {
1327
- decimal: ".",
1328
- group: ",",
1329
- format: "$$###",
1330
- currency: ""
1331
- },
1332
- et: {
1333
- decimal: ",",
1334
- group: " ",
1335
- format: "### $$",
1336
- currency: ""
1337
- },
1338
- fa: {
1339
- decimal: ".",
1340
- group: ",",
1341
- format: "‎$$ ###",
1342
- currency: ""
1343
- },
1344
- fi: {
1345
- decimal: ",",
1346
- group: " ",
1347
- format: "### $$",
1348
- currency: ""
1349
- },
1350
- fil: {
1351
- decimal: ".",
1352
- group: ",",
1353
- format: "$$###",
1354
- currency: ""
1355
- },
1356
- fr: {
1357
- decimal: ",",
1358
- group: " ",
1359
- format: "### $$",
1360
- currency: ""
1361
- },
1362
- he: {
1363
- decimal: ".",
1364
- group: ",",
1365
- format: "### $$",
1366
- currency: ""
1367
- },
1368
- hi: {
1369
- decimal: ".",
1370
- group: ",",
1371
- format: "$$###",
1372
- currency: ""
1373
- },
1374
- hr: {
1375
- decimal: ",",
1376
- group: ".",
1377
- format: "### $$",
1378
- currency: ""
1379
- },
1380
- gu: {
1381
- decimal: ".",
1382
- group: ",",
1383
- format: "$$###",
1384
- currency: ""
1385
- },
1386
- hu: {
1387
- decimal: ",",
1388
- group: " ",
1389
- format: "### $$",
1390
- currency: ""
1391
- },
1392
- id: {
1393
- decimal: ",",
1394
- group: ".",
1395
- format: "$$###",
1396
- currency: ""
1397
- },
1398
- it: {
1399
- decimal: ",",
1400
- group: ".",
1401
- format: "### $$",
1402
- currency: ""
1403
- },
1404
- ja: {
1405
- decimal: ".",
1406
- group: ",",
1407
- format: "$$###",
1408
- currency: ""
1409
- },
1410
- kn: {
1411
- decimal: ".",
1412
- group: ",",
1413
- format: "$$###",
1414
- currency: ""
1415
- },
1416
- ko: {
1417
- decimal: ".",
1418
- group: ",",
1419
- format: "$$###",
1420
- currency: ""
1421
- },
1422
- lv: {
1423
- decimal: ",",
1424
- group: " ",
1425
- format: "### $$",
1426
- currency: ""
1427
- },
1428
- lt: {
1429
- decimal: ",",
1430
- group: " ",
1431
- format: "### $$",
1432
- currency: ""
1433
- },
1434
- ml: {
1435
- decimal: ".",
1436
- group: ",",
1437
- format: "$$###",
1438
- currency: ""
1439
- },
1440
- mr: {
1441
- decimal: ".",
1442
- group: ",",
1443
- format: "$$###",
1444
- currency: ""
1445
- },
1446
- ms: {
1447
- decimal: ".",
1448
- group: ",",
1449
- format: "$$###",
1450
- currency: ""
1451
- },
1452
- nb: {
1453
- decimal: ",",
1454
- group: " ",
1455
- format: "$$ ###",
1456
- currency: ""
1457
- },
1458
- nl: {
1459
- decimal: ",",
1460
- group: ".",
1461
- format: "$$ ###",
1462
- currency: ""
1463
- },
1464
- pt: {
1465
- decimal: ",",
1466
- group: ".",
1467
- format: "$$ ###",
1468
- currency: ""
1469
- },
1470
- pl: {
1471
- decimal: ",",
1472
- group: " ",
1473
- format: "### $$",
1474
- currency: ""
1475
- },
1476
- "pt-PT": {
1477
- decimal: ",",
1478
- group: " ",
1479
- format: "### $$",
1480
- currency: ""
1481
- },
1482
- ro: {
1483
- decimal: ",",
1484
- group: ".",
1485
- format: "### $$",
1486
- currency: ""
1487
- },
1488
- ru: {
1489
- decimal: ",",
1490
- group: " ",
1491
- format: "### $$",
1492
- currency: ""
1493
- },
1494
- sk: {
1495
- decimal: ",",
1496
- group: " ",
1497
- format: "### $$",
1498
- currency: ""
1499
- },
1500
- sl: {
1501
- decimal: ",",
1502
- group: ".",
1503
- format: "### $$",
1504
- currency: ""
1505
- },
1506
- sr: {
1507
- decimal: ",",
1508
- group: ".",
1509
- format: "### $$",
1510
- currency: ""
1511
- },
1512
- sv: {
1513
- decimal: ",",
1514
- group: " ",
1515
- format: "### $$",
1516
- currency: ""
1517
- },
1518
- sw: {
1519
- decimal: ".",
1520
- group: ",",
1521
- format: "$$###",
1522
- currency: ""
1523
- },
1524
- ta: {
1525
- decimal: ".",
1526
- group: ",",
1527
- format: "$$ ###",
1528
- currency: ""
1529
- },
1530
- te: {
1531
- decimal: ".",
1532
- group: ",",
1533
- format: "$$###",
1534
- currency: ""
1535
- },
1536
- th: {
1537
- decimal: ".",
1538
- group: ",",
1539
- format: "$$###",
1540
- currency: ""
1541
- },
1542
- tr: {
1543
- decimal: ",",
1544
- group: ".",
1545
- format: "$$###",
1546
- currency: ""
1547
- },
1548
- uk: {
1549
- decimal: ",",
1550
- group: " ",
1551
- format: "### $$",
1552
- currency: ""
1553
- },
1554
- vi: {
1555
- decimal: ",",
1556
- group: ".",
1557
- format: "### $$",
1558
- currency: ""
1559
- },
1560
- "zh-Hans": {
1561
- decimal: ".",
1562
- group: ",",
1563
- format: "$$###",
1564
- currency: ""
1565
- },
1566
- zh: {
1567
- decimal: ".",
1568
- group: ",",
1569
- format: "$$###",
1570
- currency: ""
1571
- },
1572
- "zh-Hant": {
1573
- decimal: ".",
1574
- group: ",",
1575
- format: "$$###",
1576
- currency: ""
1577
- },
1578
- c_1: {
1579
- decimal: ".",
1580
- group: ",",
1581
- format: "$$###",
1582
- currency: ""
1583
- },
1584
- c_2: {
1585
- decimal: ".",
1586
- group: ",",
1587
- format: "$$ ###",
1588
- currency: ""
1589
- },
1590
- c_3: {
1591
- decimal: ",",
1592
- group: ".",
1593
- format: "### $$",
1594
- currency: ""
1595
- },
1596
- c_4: {
1597
- decimal: ",",
1598
- group: " ",
1599
- format: "### $$",
1600
- currency: ""
1601
- }
1602
- };
1603
-
1604
- Number.prototype.formatMoney = function (c, d, t, forcePositive) {
1605
- var _this = this;
1606
-
1607
- if (forcePositive === void 0) {
1608
- forcePositive = false;
1609
- }
1610
-
1611
- return function (c, d, t) {
1612
- var n = forcePositive ? Math.abs(_this) : _this,
1613
- c = isNaN(c = Math.abs(c)) ? 2 : c,
1614
- d = d == undefined ? "." : d,
1615
- t = t == undefined ? "," : t,
1616
- s = n < 0 ? "-" : "",
1617
- i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
1618
- j = (j = i.length) > 3 ? j % 3 : 0;
1619
- return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
1620
- }(c, d, t);
1621
- };
1622
-
1623
- var currencyFormat = function currencyFormat(value, currency, lang, cFormat, rtl, removeDecimal, showLongSymbol) {
1624
- var currencyName = currency || "USD";
1625
-
1626
- if (!currencies[currencyName]) {
1627
- currencyName = "USD";
1628
- }
1629
-
1630
- var symbol = currency === "none" ? "" : currencies[currencyName][showLongSymbol ? "symbol" : "symbol_native"];
1631
- var decimal = removeDecimal ? 0 : currencies[currencyName].decimal_digits;
1632
- var language = lang || "en";
1633
- language = language.substring(0, 2);
1634
- var numberFormatObj = cFormat ? "c_" + cFormat.toString() : language;
1635
-
1636
- if (!numberFormat[numberFormatObj]) {
1637
- numberFormatObj = "c_1";
1638
- }
1639
-
1640
- var format = numberFormat[numberFormatObj];
1641
- var formattedValue = parseFloat(value).formatMoney(decimal, format.decimal, format.group, true);
1642
-
1643
- if (rtl && currencies[currencyName].rtl) {
1644
- formattedValue = formattedValue.split("").reverse().join("");
1645
- }
1646
-
1647
- formattedValue = format.format.replace("###", formattedValue);
1648
- formattedValue = formattedValue.replace("$$", symbol);
1649
- return (value < 0 ? "-" : "") + formattedValue;
1650
- };
1651
-
1652
- var FormatCurrency = function FormatCurrency(value, currency, language, cFormat) {
1653
- return currencyFormat(value, currency, language, cFormat);
1654
- };
1655
-
1656
64
  var nl2br = function nl2br(str, is_xhtml) {
1657
65
  if (typeof str === "undefined" || str === null) {
1658
66
  return "";
@@ -9294,6 +7702,8 @@ var defaultLang = {
9294
7702
  }
9295
7703
  };
9296
7704
 
7705
+ var FormatCurrency = util.FormatCurrency;
7706
+
9297
7707
  Object.fromEntries = Object.fromEntries || function (arr) {
9298
7708
  return arr.reduce(function (acc, curr) {
9299
7709
  acc[curr[0]] = curr[1];