@one-payments/web-components 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +564 -501
- package/dist/one-payment.d.ts +3 -21
- package/dist/one-payment.d.ts.map +1 -1
- package/dist/one-payment.js +99 -42
- package/dist/one-payment.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -621,7 +621,8 @@ var p = {
|
|
|
621
621
|
KONBINI: "konbini",
|
|
622
622
|
PAYEASY: "payeasy",
|
|
623
623
|
GRABPAY_SG: "grabpay_sg",
|
|
624
|
-
FPX: "fpx"
|
|
624
|
+
FPX: "fpx",
|
|
625
|
+
WECHATPAY: "wechatpay"
|
|
625
626
|
}, F = {
|
|
626
627
|
IDLE: "idle",
|
|
627
628
|
INITIALIZING: "initializing",
|
|
@@ -1032,6 +1033,10 @@ var ii = class {
|
|
|
1032
1033
|
id: "fpx",
|
|
1033
1034
|
enabled: !0,
|
|
1034
1035
|
priority: u++
|
|
1036
|
+
}), (f.includes("wechat") || f.includes("wechatpay") || f.includes("weixin") || $.includes("payments_wechat")) && h.push({
|
|
1037
|
+
id: "wechatpay",
|
|
1038
|
+
enabled: !0,
|
|
1039
|
+
priority: u++
|
|
1035
1040
|
}));
|
|
1036
1041
|
}), this.setState({
|
|
1037
1042
|
status: F.READY,
|
|
@@ -1199,11 +1204,13 @@ var ii = class {
|
|
|
1199
1204
|
return "grabpay_sg";
|
|
1200
1205
|
case "fpx":
|
|
1201
1206
|
return "fpx";
|
|
1207
|
+
case "wechatpay":
|
|
1208
|
+
return "wechatpay";
|
|
1202
1209
|
default:
|
|
1203
1210
|
return "qr";
|
|
1204
1211
|
}
|
|
1205
|
-
}, l = ($,
|
|
1206
|
-
let P = $.toUpperCase(), y =
|
|
1212
|
+
}, l = ($, C) => (C === "konbini" || C === "payeasy") && $.startsWith("+81") ? "0" + $.slice(3).replace(/\s/g, "") : $, c = ($, C) => {
|
|
1213
|
+
let P = $.toUpperCase(), y = C.toUpperCase();
|
|
1207
1214
|
if (P.length + y.length > 9) {
|
|
1208
1215
|
const S = Math.ceil(4.5);
|
|
1209
1216
|
P = P.slice(0, S), y = y.slice(0, 9 - P.length);
|
|
@@ -1393,7 +1400,7 @@ var ii = class {
|
|
|
1393
1400
|
this.stopPolling();
|
|
1394
1401
|
return;
|
|
1395
1402
|
}
|
|
1396
|
-
const r = t.selectedMethod === "promptpay" || t.selectedMethod === "duitnow" || t.selectedMethod === "gopay" || t.selectedMethod === "boost" || t.selectedMethod === "shopeepay" || t.selectedMethod === "atom" || t.selectedMethod === "dana" || t.selectedMethod === "tng" || t.selectedMethod === "alipaycn" || t.selectedMethod === "alipayhk" || t.selectedMethod === "gcash" || t.selectedMethod === "konbini" || t.selectedMethod === "payeasy" || t.selectedMethod === "grabpay_sg" || t.selectedMethod === "fpx";
|
|
1403
|
+
const r = t.selectedMethod === "promptpay" || t.selectedMethod === "duitnow" || t.selectedMethod === "gopay" || t.selectedMethod === "boost" || t.selectedMethod === "shopeepay" || t.selectedMethod === "atom" || t.selectedMethod === "dana" || t.selectedMethod === "tng" || t.selectedMethod === "alipaycn" || t.selectedMethod === "alipayhk" || t.selectedMethod === "gcash" || t.selectedMethod === "konbini" || t.selectedMethod === "payeasy" || t.selectedMethod === "grabpay_sg" || t.selectedMethod === "fpx" || t.selectedMethod === "wechatpay";
|
|
1397
1404
|
if (e.qrCode && !this.ignoreQRInPolling && !r) {
|
|
1398
1405
|
this.emit({
|
|
1399
1406
|
type: "qr_code_received",
|
|
@@ -1555,6 +1562,16 @@ var ii = class {
|
|
|
1555
1562
|
});
|
|
1556
1563
|
return;
|
|
1557
1564
|
}
|
|
1565
|
+
if (t.selectedMethod === "wechatpay") {
|
|
1566
|
+
this.stopPolling(), this.emit({
|
|
1567
|
+
type: "wechatpay_redirect",
|
|
1568
|
+
payload: {
|
|
1569
|
+
redirectUrl: e.nextActionUrl,
|
|
1570
|
+
methodId: t.selectedMethod
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1558
1575
|
if (t.selectedMethod === "paynow" && !this.ignoreQRInPolling) {
|
|
1559
1576
|
this.emit({
|
|
1560
1577
|
type: "qr_code_received",
|
|
@@ -1656,7 +1673,7 @@ var ii = class {
|
|
|
1656
1673
|
r(e);
|
|
1657
1674
|
});
|
|
1658
1675
|
}
|
|
1659
|
-
}, ai = "https://images.ctfassets.net/c3n7jozh84hr/2A5qlS6JkUsOyFVPzQ0KlK/22b497afd71030ef1a44a52394b15027/______2022-06-30_11.03.43.png", oi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/xLSOJpNvMp7cBKdvDln0B/eb2f53a0a3f2317750739dceff9df413/______2022-06-30_10.59.00.png", si = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/4Iq13VoxktB3amHFbQK1yb/f2fe12add0dac233d56c22cf5651c65c/image-20220630-030728.png", di = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/mjau5Tqscwu9tbhRLFbmJ/a66cd2894060b2d3a94b75d7f4e65355/______2022-07-04_17.05.18.png", li = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1M4DBVFhOrkprPmjxZwS7M/c4a90840d3846b926d3a5524392435fe/Boost.svg", ci = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1BYCLeHNQEyPXBjlIdu09h/71d67c5be3975f77091bf45c7ab58f65/ShopeePay.svg", ui = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/61LYQ3RuziTGisarZgaAV1/309f3f1e569609dd0b0095857d6382b5/__2022-05-31_11.44.42.png", hi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/79Uj5xItEZE7L51j2oh6IV/6af4cfefdd65834305931fd16f652d87/DANA.svg", pi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/15FHwC4H3W0JrNvsqy6TWH/5d18aa44231c55d6457389e17ac7ea0c/TnG.svg", fi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/5EK8VF1nACmJ0KpPocLuR7/785178078004e82cb69782c570623b8c/Alipay.svg", mi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/3sNSjVq0K9mq5whYcGJhBe/78857434adff807c8e293425491e0bd4/AlipayHK.svg", $i = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/4WAO5JJPUOrZ9jBA0Vf4tf/c3896e1a5508efa0c569bd3eaa577dad/GCash.svg", gi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/2k2M0v6xdd5HvUNxX2sYCi/c9de881648bdd61adb15ec1941f2d47e/konbini_420x280.png", yi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/3DKc8YOvmllqXs9MIZvDFU/195c73003eacb07b60dd2740c59ab4e3/Pay-easy.svg", bi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1DshnBdElQDmhfINo/abfc59a3c7cb7f3a89b2d32504971c39/GrabPay.svg", vi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/35hEmofKsxnjVV4zidB0Ir/00447c59f79d5c1e095f1354f6b909ce/FPX.svg", nt = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, J = function(e, t, r, n, i, a, o, s, d, l) {
|
|
1676
|
+
}, ai = "https://images.ctfassets.net/c3n7jozh84hr/2A5qlS6JkUsOyFVPzQ0KlK/22b497afd71030ef1a44a52394b15027/______2022-06-30_11.03.43.png", oi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/xLSOJpNvMp7cBKdvDln0B/eb2f53a0a3f2317750739dceff9df413/______2022-06-30_10.59.00.png", si = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/4Iq13VoxktB3amHFbQK1yb/f2fe12add0dac233d56c22cf5651c65c/image-20220630-030728.png", di = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/mjau5Tqscwu9tbhRLFbmJ/a66cd2894060b2d3a94b75d7f4e65355/______2022-07-04_17.05.18.png", li = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1M4DBVFhOrkprPmjxZwS7M/c4a90840d3846b926d3a5524392435fe/Boost.svg", ci = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1BYCLeHNQEyPXBjlIdu09h/71d67c5be3975f77091bf45c7ab58f65/ShopeePay.svg", ui = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/61LYQ3RuziTGisarZgaAV1/309f3f1e569609dd0b0095857d6382b5/__2022-05-31_11.44.42.png", hi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/79Uj5xItEZE7L51j2oh6IV/6af4cfefdd65834305931fd16f652d87/DANA.svg", pi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/15FHwC4H3W0JrNvsqy6TWH/5d18aa44231c55d6457389e17ac7ea0c/TnG.svg", fi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/5EK8VF1nACmJ0KpPocLuR7/785178078004e82cb69782c570623b8c/Alipay.svg", mi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/3sNSjVq0K9mq5whYcGJhBe/78857434adff807c8e293425491e0bd4/AlipayHK.svg", $i = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/4WAO5JJPUOrZ9jBA0Vf4tf/c3896e1a5508efa0c569bd3eaa577dad/GCash.svg", gi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/2k2M0v6xdd5HvUNxX2sYCi/c9de881648bdd61adb15ec1941f2d47e/konbini_420x280.png", yi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/3DKc8YOvmllqXs9MIZvDFU/195c73003eacb07b60dd2740c59ab4e3/Pay-easy.svg", bi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/1DshnBdElQDmhfINo/abfc59a3c7cb7f3a89b2d32504971c39/GrabPay.svg", vi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/35hEmofKsxnjVV4zidB0Ir/00447c59f79d5c1e095f1354f6b909ce/FPX.svg", Pi = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/3NCcTgdKi1v9XRZljCe5z4/6585925fece04edbac1a2cbfcd2659fb/WeChat_Pay.svg", nt = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, J = function(e, t, r, n, i, a, o, s, d, l) {
|
|
1660
1677
|
var c = this;
|
|
1661
1678
|
c.numeralDecimalMark = e || ".", c.numeralIntegerScale = t > 0 ? t : 0, c.numeralDecimalScale = r >= 0 ? r : 2, c.numeralThousandsGroupStyle = n || J.groupStyle.thousand, c.numeralPositiveOnly = !!i, c.stripLeadingZeroes = a !== !1, c.prefix = o || o === "" ? o : "", c.signBeforePrefix = !!s, c.tailPrefix = !!d, c.delimiter = l || l === "" ? l : ",", c.delimiterRE = l ? new RegExp("\\" + l, "g") : "";
|
|
1662
1679
|
};
|
|
@@ -1686,7 +1703,7 @@ J.prototype = {
|
|
|
1686
1703
|
return t.tailPrefix ? n + a.toString() + (t.numeralDecimalScale > 0 ? o.toString() : "") + t.prefix : i + a.toString() + (t.numeralDecimalScale > 0 ? o.toString() : "");
|
|
1687
1704
|
}
|
|
1688
1705
|
};
|
|
1689
|
-
var
|
|
1706
|
+
var wi = J, Vr = function(e, t, r) {
|
|
1690
1707
|
var n = this;
|
|
1691
1708
|
n.date = [], n.blocks = [], n.datePattern = e, n.dateMin = t.split("-").reverse().map(function(i) {
|
|
1692
1709
|
return parseInt(i, 10);
|
|
@@ -1727,21 +1744,21 @@ Vr.prototype = {
|
|
|
1727
1744
|
},
|
|
1728
1745
|
getFixedDateString: function(e) {
|
|
1729
1746
|
var t = this, r = t.datePattern, n = [], i = 0, a = 0, o = 0, s = 0, d = 0, l = 0, c, h, u, m = !1;
|
|
1730
|
-
e.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (s = r[0] === "d" ? 0 : 2, d = 2 - s, c = parseInt(e.slice(s, s + 2), 10), h = parseInt(e.slice(d, d + 2), 10), n = this.getFixedDate(c, h, 0)), e.length === 8 && (r.forEach(function($,
|
|
1747
|
+
e.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (s = r[0] === "d" ? 0 : 2, d = 2 - s, c = parseInt(e.slice(s, s + 2), 10), h = parseInt(e.slice(d, d + 2), 10), n = this.getFixedDate(c, h, 0)), e.length === 8 && (r.forEach(function($, C) {
|
|
1731
1748
|
switch ($) {
|
|
1732
1749
|
case "d":
|
|
1733
|
-
i =
|
|
1750
|
+
i = C;
|
|
1734
1751
|
break;
|
|
1735
1752
|
case "m":
|
|
1736
|
-
a =
|
|
1753
|
+
a = C;
|
|
1737
1754
|
break;
|
|
1738
1755
|
default:
|
|
1739
|
-
o =
|
|
1756
|
+
o = C;
|
|
1740
1757
|
break;
|
|
1741
1758
|
}
|
|
1742
1759
|
}), l = o * 2, s = i <= o ? i * 2 : i * 2 + 2, d = a <= o ? a * 2 : a * 2 + 2, c = parseInt(e.slice(s, s + 2), 10), h = parseInt(e.slice(d, d + 2), 10), u = parseInt(e.slice(l, l + 4), 10), m = e.slice(l, l + 4).length === 4, n = this.getFixedDate(c, h, u)), e.length === 4 && (r[0] === "y" || r[1] === "y") && (d = r[0] === "m" ? 0 : 2, l = 2 - d, h = parseInt(e.slice(d, d + 2), 10), u = parseInt(e.slice(l, l + 2), 10), m = e.slice(l, l + 2).length === 2, n = [0, h, u]), e.length === 6 && (r[0] === "Y" || r[1] === "Y") && (d = r[0] === "m" ? 0 : 4, l = 2 - 0.5 * d, h = parseInt(e.slice(d, d + 2), 10), u = parseInt(e.slice(l, l + 4), 10), m = e.slice(l, l + 4).length === 4, n = [0, h, u]), n = t.getRangeFixedDate(n), t.date = n;
|
|
1743
|
-
var f = n.length === 0 ? e : r.reduce(function($,
|
|
1744
|
-
switch (
|
|
1760
|
+
var f = n.length === 0 ? e : r.reduce(function($, C) {
|
|
1761
|
+
switch (C) {
|
|
1745
1762
|
case "d":
|
|
1746
1763
|
return $ + (n[0] === 0 ? "" : t.addLeadingZero(n[0]));
|
|
1747
1764
|
case "m":
|
|
@@ -1773,7 +1790,7 @@ Vr.prototype = {
|
|
|
1773
1790
|
return t ? (e < 10 ? "000" : e < 100 ? "00" : e < 1e3 ? "0" : "") + e : (e < 10 ? "0" : "") + e;
|
|
1774
1791
|
}
|
|
1775
1792
|
};
|
|
1776
|
-
var
|
|
1793
|
+
var Ci = Vr, zr = function(e, t) {
|
|
1777
1794
|
var r = this;
|
|
1778
1795
|
r.time = [], r.blocks = [], r.timePattern = e, r.timeFormat = t, r.initBlocks();
|
|
1779
1796
|
};
|
|
@@ -1882,7 +1899,7 @@ qr.prototype = {
|
|
|
1882
1899
|
return r = r.replace(/[()]/g, ""), r = r.replace(/[\s-]/g, t.delimiter), r;
|
|
1883
1900
|
}
|
|
1884
1901
|
};
|
|
1885
|
-
var
|
|
1902
|
+
var xi = qr, ge = {
|
|
1886
1903
|
blocks: {
|
|
1887
1904
|
uatp: [4, 5, 6],
|
|
1888
1905
|
amex: [4, 6, 5],
|
|
@@ -1949,7 +1966,7 @@ var Ci = qr, ge = {
|
|
|
1949
1966
|
blocks: t ? this.getStrictBlocks(r.general) : r.general
|
|
1950
1967
|
};
|
|
1951
1968
|
}
|
|
1952
|
-
},
|
|
1969
|
+
}, Si = ge, Ai = {
|
|
1953
1970
|
noop: function() {
|
|
1954
1971
|
},
|
|
1955
1972
|
strip: function(e, t) {
|
|
@@ -2078,7 +2095,7 @@ var Ci = qr, ge = {
|
|
|
2078
2095
|
isAndroidBackspaceKeydown: function(e, t) {
|
|
2079
2096
|
return !this.isAndroid() || !e || !t ? !1 : t === e.slice(0, -1);
|
|
2080
2097
|
}
|
|
2081
|
-
},
|
|
2098
|
+
}, ki = Ai, Ei = {
|
|
2082
2099
|
// Maybe change to object-assign
|
|
2083
2100
|
// for now just keep it as simple
|
|
2084
2101
|
assign: function(e, t) {
|
|
@@ -2086,7 +2103,7 @@ var Ci = qr, ge = {
|
|
|
2086
2103
|
}, e.phone = !!t.phone, e.phoneRegionCode = t.phoneRegionCode || "AU", e.phoneFormatter = {}, e.time = !!t.time, e.timePattern = t.timePattern || ["h", "m", "s"], e.timeFormat = t.timeFormat || "24", e.timeFormatter = {}, e.date = !!t.date, e.datePattern = t.datePattern || ["d", "m", "Y"], e.dateMin = t.dateMin || "", e.dateMax = t.dateMax || "", e.dateFormatter = {}, e.numeral = !!t.numeral, e.numeralIntegerScale = t.numeralIntegerScale > 0 ? t.numeralIntegerScale : 0, e.numeralDecimalScale = t.numeralDecimalScale >= 0 ? t.numeralDecimalScale : 2, e.numeralDecimalMark = t.numeralDecimalMark || ".", e.numeralThousandsGroupStyle = t.numeralThousandsGroupStyle || "thousand", e.numeralPositiveOnly = !!t.numeralPositiveOnly, e.stripLeadingZeroes = t.stripLeadingZeroes !== !1, e.signBeforePrefix = !!t.signBeforePrefix, e.tailPrefix = !!t.tailPrefix, e.swapHiddenInput = !!t.swapHiddenInput, e.numericOnly = e.creditCard || e.date || !!t.numericOnly, e.uppercase = !!t.uppercase, e.lowercase = !!t.lowercase, e.prefix = e.creditCard || e.date ? "" : t.prefix || "", e.noImmediatePrefix = !!t.noImmediatePrefix, e.prefixLength = e.prefix.length, e.rawValueTrimPrefix = !!t.rawValueTrimPrefix, e.copyDelimiter = !!t.copyDelimiter, e.initValue = t.initValue !== void 0 && t.initValue !== null ? t.initValue.toString() : "", e.delimiter = t.delimiter || t.delimiter === "" ? t.delimiter : t.date ? "/" : t.time ? ":" : t.numeral ? "," : (t.phone, " "), e.delimiterLength = e.delimiter.length, e.delimiterLazyShow = !!t.delimiterLazyShow, e.delimiters = t.delimiters || [], e.blocks = t.blocks || [], e.blocksLength = e.blocks.length, e.root = typeof nt == "object" && nt ? nt : window, e.document = t.document || e.root.document, e.maxLength = 0, e.backspace = !1, e.result = "", e.onValueChanged = t.onValueChanged || function() {
|
|
2087
2104
|
}, e;
|
|
2088
2105
|
}
|
|
2089
|
-
},
|
|
2106
|
+
}, _i = Ei, x = function(e, t) {
|
|
2090
2107
|
var r = this, n = !1;
|
|
2091
2108
|
if (typeof e == "string" ? (r.element = document.querySelector(e), n = document.querySelectorAll(e).length > 1) : typeof e.length < "u" && e.length > 0 ? (r.element = e[0], n = e.length > 1) : r.element = e, !r.element)
|
|
2092
2109
|
throw new Error("[cleave.js] Please check the element");
|
|
@@ -2257,19 +2274,19 @@ x.prototype = {
|
|
|
2257
2274
|
return "[Cleave Object]";
|
|
2258
2275
|
}
|
|
2259
2276
|
};
|
|
2260
|
-
x.NumeralFormatter =
|
|
2261
|
-
x.DateFormatter =
|
|
2277
|
+
x.NumeralFormatter = wi;
|
|
2278
|
+
x.DateFormatter = Ci;
|
|
2262
2279
|
x.TimeFormatter = Ni;
|
|
2263
|
-
x.PhoneFormatter =
|
|
2264
|
-
x.CreditCardDetector =
|
|
2265
|
-
x.Util =
|
|
2266
|
-
x.DefaultProperties =
|
|
2280
|
+
x.PhoneFormatter = xi;
|
|
2281
|
+
x.CreditCardDetector = Si;
|
|
2282
|
+
x.Util = ki;
|
|
2283
|
+
x.DefaultProperties = _i;
|
|
2267
2284
|
(typeof nt == "object" && nt ? nt : window).Cleave = x;
|
|
2268
|
-
var rr = x, Ft = {},
|
|
2285
|
+
var rr = x, Ft = {}, Ii = function() {
|
|
2269
2286
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
2270
2287
|
}, Kr = {}, O = {};
|
|
2271
2288
|
let Oe;
|
|
2272
|
-
const
|
|
2289
|
+
const Ti = [
|
|
2273
2290
|
0,
|
|
2274
2291
|
// Not used
|
|
2275
2292
|
26,
|
|
@@ -2319,7 +2336,7 @@ O.getSymbolSize = function(t) {
|
|
|
2319
2336
|
return t * 4 + 17;
|
|
2320
2337
|
};
|
|
2321
2338
|
O.getSymbolTotalCodewords = function(t) {
|
|
2322
|
-
return
|
|
2339
|
+
return Ti[t];
|
|
2323
2340
|
};
|
|
2324
2341
|
O.getBCHDigit = function(e) {
|
|
2325
2342
|
let t = 0;
|
|
@@ -2393,7 +2410,7 @@ Wr.prototype = {
|
|
|
2393
2410
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
2394
2411
|
}
|
|
2395
2412
|
};
|
|
2396
|
-
var
|
|
2413
|
+
var Mi = Wr;
|
|
2397
2414
|
function Dt(e) {
|
|
2398
2415
|
if (!e || e < 1)
|
|
2399
2416
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -2412,7 +2429,7 @@ Dt.prototype.xor = function(e, t, r) {
|
|
|
2412
2429
|
Dt.prototype.isReserved = function(e, t) {
|
|
2413
2430
|
return this.reservedBit[e * this.size + t];
|
|
2414
2431
|
};
|
|
2415
|
-
var
|
|
2432
|
+
var Oi = Dt, Qr = {};
|
|
2416
2433
|
(function(e) {
|
|
2417
2434
|
const t = O.getSymbolSize;
|
|
2418
2435
|
e.getRowColCoords = function(n) {
|
|
@@ -2432,9 +2449,9 @@ var Mi = Dt, Qr = {};
|
|
|
2432
2449
|
};
|
|
2433
2450
|
})(Qr);
|
|
2434
2451
|
var Jr = {};
|
|
2435
|
-
const
|
|
2452
|
+
const Fi = O.getSymbolSize, nr = 7;
|
|
2436
2453
|
Jr.getPositions = function(t) {
|
|
2437
|
-
const r =
|
|
2454
|
+
const r = Fi(t);
|
|
2438
2455
|
return [
|
|
2439
2456
|
// top-left
|
|
2440
2457
|
[0, 0],
|
|
@@ -2958,30 +2975,30 @@ Fe.prototype.encode = function(t) {
|
|
|
2958
2975
|
}
|
|
2959
2976
|
return n;
|
|
2960
2977
|
};
|
|
2961
|
-
var
|
|
2978
|
+
var Di = Fe, en = {}, K = {}, De = {};
|
|
2962
2979
|
De.isValid = function(t) {
|
|
2963
2980
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
2964
2981
|
};
|
|
2965
2982
|
var U = {};
|
|
2966
|
-
const rn = "[0-9]+",
|
|
2983
|
+
const rn = "[0-9]+", Ri = "[A-Z $%*+\\-./:]+";
|
|
2967
2984
|
let vt = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
2968
2985
|
vt = vt.replace(/u/g, "\\u");
|
|
2969
|
-
const
|
|
2986
|
+
const Li = "(?:(?![A-Z0-9 $%*+\\-./:]|" + vt + `)(?:.|[\r
|
|
2970
2987
|
]))+`;
|
|
2971
2988
|
U.KANJI = new RegExp(vt, "g");
|
|
2972
2989
|
U.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
2973
|
-
U.BYTE = new RegExp(
|
|
2990
|
+
U.BYTE = new RegExp(Li, "g");
|
|
2974
2991
|
U.NUMERIC = new RegExp(rn, "g");
|
|
2975
|
-
U.ALPHANUMERIC = new RegExp(
|
|
2976
|
-
const
|
|
2992
|
+
U.ALPHANUMERIC = new RegExp(Ri, "g");
|
|
2993
|
+
const Bi = new RegExp("^" + vt + "$"), Ui = new RegExp("^" + rn + "$"), Hi = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
2977
2994
|
U.testKanji = function(t) {
|
|
2978
|
-
return
|
|
2995
|
+
return Bi.test(t);
|
|
2979
2996
|
};
|
|
2980
2997
|
U.testNumeric = function(t) {
|
|
2981
|
-
return
|
|
2998
|
+
return Ui.test(t);
|
|
2982
2999
|
};
|
|
2983
3000
|
U.testAlphanumeric = function(t) {
|
|
2984
|
-
return
|
|
3001
|
+
return Hi.test(t);
|
|
2985
3002
|
};
|
|
2986
3003
|
(function(e) {
|
|
2987
3004
|
const t = De, r = U;
|
|
@@ -3055,8 +3072,8 @@ U.testAlphanumeric = function(t) {
|
|
|
3055
3072
|
function c(u, m) {
|
|
3056
3073
|
let f = 0;
|
|
3057
3074
|
return u.forEach(function($) {
|
|
3058
|
-
const
|
|
3059
|
-
f +=
|
|
3075
|
+
const C = l($.mode, m);
|
|
3076
|
+
f += C + $.getBitsLength();
|
|
3060
3077
|
}), f;
|
|
3061
3078
|
}
|
|
3062
3079
|
function h(u, m) {
|
|
@@ -3070,7 +3087,7 @@ U.testAlphanumeric = function(t) {
|
|
|
3070
3087
|
if (!a.isValid(m))
|
|
3071
3088
|
throw new Error("Invalid QR Code version");
|
|
3072
3089
|
typeof $ > "u" && ($ = i.BYTE);
|
|
3073
|
-
const
|
|
3090
|
+
const C = t.getSymbolTotalCodewords(m), b = r.getTotalCodewordsCount(m, f), P = (C - b) * 8;
|
|
3074
3091
|
if ($ === i.MIXED) return P;
|
|
3075
3092
|
const y = P - l($, m);
|
|
3076
3093
|
switch ($) {
|
|
@@ -3086,16 +3103,16 @@ U.testAlphanumeric = function(t) {
|
|
|
3086
3103
|
}
|
|
3087
3104
|
}, e.getBestVersionForData = function(m, f) {
|
|
3088
3105
|
let $;
|
|
3089
|
-
const
|
|
3106
|
+
const C = n.from(f, n.M);
|
|
3090
3107
|
if (Array.isArray(m)) {
|
|
3091
3108
|
if (m.length > 1)
|
|
3092
|
-
return h(m,
|
|
3109
|
+
return h(m, C);
|
|
3093
3110
|
if (m.length === 0)
|
|
3094
3111
|
return 1;
|
|
3095
3112
|
$ = m[0];
|
|
3096
3113
|
} else
|
|
3097
3114
|
$ = m;
|
|
3098
|
-
return d($.mode, $.getLength(),
|
|
3115
|
+
return d($.mode, $.getLength(), C);
|
|
3099
3116
|
}, e.getEncodedBits = function(m) {
|
|
3100
3117
|
if (!a.isValid(m) || m < 7)
|
|
3101
3118
|
throw new Error("Invalid QR Code version");
|
|
@@ -3106,18 +3123,18 @@ U.testAlphanumeric = function(t) {
|
|
|
3106
3123
|
};
|
|
3107
3124
|
})(en);
|
|
3108
3125
|
var nn = {};
|
|
3109
|
-
const ye = O, an = 1335,
|
|
3126
|
+
const ye = O, an = 1335, ji = 21522, ir = ye.getBCHDigit(an);
|
|
3110
3127
|
nn.getEncodedBits = function(t, r) {
|
|
3111
3128
|
const n = t.bit << 3 | r;
|
|
3112
3129
|
let i = n << 10;
|
|
3113
3130
|
for (; ye.getBCHDigit(i) - ir >= 0; )
|
|
3114
3131
|
i ^= an << ye.getBCHDigit(i) - ir;
|
|
3115
|
-
return (n << 10 | i) ^
|
|
3132
|
+
return (n << 10 | i) ^ ji;
|
|
3116
3133
|
};
|
|
3117
3134
|
var on = {};
|
|
3118
|
-
const
|
|
3135
|
+
const Gi = K;
|
|
3119
3136
|
function ot(e) {
|
|
3120
|
-
this.mode =
|
|
3137
|
+
this.mode = Gi.NUMERIC, this.data = e.toString();
|
|
3121
3138
|
}
|
|
3122
3139
|
ot.getBitsLength = function(t) {
|
|
3123
3140
|
return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
|
|
@@ -3135,8 +3152,8 @@ ot.prototype.write = function(t) {
|
|
|
3135
3152
|
const a = this.data.length - r;
|
|
3136
3153
|
a > 0 && (n = this.data.substr(r), i = parseInt(n, 10), t.put(i, a * 3 + 1));
|
|
3137
3154
|
};
|
|
3138
|
-
var
|
|
3139
|
-
const
|
|
3155
|
+
var Yi = ot;
|
|
3156
|
+
const Vi = K, de = [
|
|
3140
3157
|
"0",
|
|
3141
3158
|
"1",
|
|
3142
3159
|
"2",
|
|
@@ -3184,7 +3201,7 @@ const Yi = K, de = [
|
|
|
3184
3201
|
":"
|
|
3185
3202
|
];
|
|
3186
3203
|
function st(e) {
|
|
3187
|
-
this.mode =
|
|
3204
|
+
this.mode = Vi.ALPHANUMERIC, this.data = e;
|
|
3188
3205
|
}
|
|
3189
3206
|
st.getBitsLength = function(t) {
|
|
3190
3207
|
return 11 * Math.floor(t / 2) + 6 * (t % 2);
|
|
@@ -3203,10 +3220,10 @@ st.prototype.write = function(t) {
|
|
|
3203
3220
|
}
|
|
3204
3221
|
this.data.length % 2 && t.put(de.indexOf(this.data[r]), 6);
|
|
3205
3222
|
};
|
|
3206
|
-
var
|
|
3207
|
-
const
|
|
3223
|
+
var zi = st;
|
|
3224
|
+
const qi = K;
|
|
3208
3225
|
function dt(e) {
|
|
3209
|
-
this.mode =
|
|
3226
|
+
this.mode = qi.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
|
|
3210
3227
|
}
|
|
3211
3228
|
dt.getBitsLength = function(t) {
|
|
3212
3229
|
return t * 8;
|
|
@@ -3221,10 +3238,10 @@ dt.prototype.write = function(e) {
|
|
|
3221
3238
|
for (let t = 0, r = this.data.length; t < r; t++)
|
|
3222
3239
|
e.put(this.data[t], 8);
|
|
3223
3240
|
};
|
|
3224
|
-
var
|
|
3225
|
-
const
|
|
3241
|
+
var Ki = dt;
|
|
3242
|
+
const Wi = K, Qi = O;
|
|
3226
3243
|
function lt(e) {
|
|
3227
|
-
this.mode =
|
|
3244
|
+
this.mode = Wi.KANJI, this.data = e;
|
|
3228
3245
|
}
|
|
3229
3246
|
lt.getBitsLength = function(t) {
|
|
3230
3247
|
return t * 13;
|
|
@@ -3238,7 +3255,7 @@ lt.prototype.getBitsLength = function() {
|
|
|
3238
3255
|
lt.prototype.write = function(e) {
|
|
3239
3256
|
let t;
|
|
3240
3257
|
for (t = 0; t < this.data.length; t++) {
|
|
3241
|
-
let r =
|
|
3258
|
+
let r = Qi.toSJIS(this.data[t]);
|
|
3242
3259
|
if (r >= 33088 && r <= 40956)
|
|
3243
3260
|
r -= 33088;
|
|
3244
3261
|
else if (r >= 57408 && r <= 60351)
|
|
@@ -3251,7 +3268,7 @@ Make sure your charset is UTF-8`
|
|
|
3251
3268
|
r = (r >>> 8 & 255) * 192 + (r & 255), e.put(r, 13);
|
|
3252
3269
|
}
|
|
3253
3270
|
};
|
|
3254
|
-
var
|
|
3271
|
+
var Ji = lt, sn = { exports: {} };
|
|
3255
3272
|
(function(e) {
|
|
3256
3273
|
var t = {
|
|
3257
3274
|
single_source_shortest_paths: function(r, n, i) {
|
|
@@ -3259,10 +3276,10 @@ var Qi = lt, sn = { exports: {} };
|
|
|
3259
3276
|
o[n] = 0;
|
|
3260
3277
|
var s = t.PriorityQueue.make();
|
|
3261
3278
|
s.push(n, 0);
|
|
3262
|
-
for (var d, l, c, h, u, m, f, $,
|
|
3279
|
+
for (var d, l, c, h, u, m, f, $, C; !s.empty(); ) {
|
|
3263
3280
|
d = s.pop(), l = d.value, h = d.cost, u = r[l] || {};
|
|
3264
3281
|
for (c in u)
|
|
3265
|
-
u.hasOwnProperty(c) && (m = u[c], f = h + m, $ = o[c],
|
|
3282
|
+
u.hasOwnProperty(c) && (m = u[c], f = h + m, $ = o[c], C = typeof o[c] > "u", (C || $ > f) && (o[c] = f, s.push(c, f), a[c] = l));
|
|
3266
3283
|
}
|
|
3267
3284
|
if (typeof i < "u" && typeof o[i] > "u") {
|
|
3268
3285
|
var b = ["Could not find a path from ", n, " to ", i, "."].join("");
|
|
@@ -3317,9 +3334,9 @@ var Qi = lt, sn = { exports: {} };
|
|
|
3317
3334
|
};
|
|
3318
3335
|
e.exports = t;
|
|
3319
3336
|
})(sn);
|
|
3320
|
-
var
|
|
3337
|
+
var Xi = sn.exports;
|
|
3321
3338
|
(function(e) {
|
|
3322
|
-
const t = K, r =
|
|
3339
|
+
const t = K, r = Yi, n = zi, i = Ki, a = Ji, o = U, s = O, d = Xi;
|
|
3323
3340
|
function l(b) {
|
|
3324
3341
|
return unescape(encodeURIComponent(b)).length;
|
|
3325
3342
|
}
|
|
@@ -3417,7 +3434,7 @@ var Ji = sn.exports;
|
|
|
3417
3434
|
v[S[k]].end = 0;
|
|
3418
3435
|
return { map: v, table: y };
|
|
3419
3436
|
}
|
|
3420
|
-
function
|
|
3437
|
+
function C(b, P) {
|
|
3421
3438
|
let y;
|
|
3422
3439
|
const v = t.getBestModeForData(b);
|
|
3423
3440
|
if (y = t.from(P, v), y !== t.BYTE && y.bit < v.bit)
|
|
@@ -3436,7 +3453,7 @@ var Ji = sn.exports;
|
|
|
3436
3453
|
}
|
|
3437
3454
|
e.fromArray = function(P) {
|
|
3438
3455
|
return P.reduce(function(y, v) {
|
|
3439
|
-
return typeof v == "string" ? y.push(
|
|
3456
|
+
return typeof v == "string" ? y.push(C(v, null)) : v.data && y.push(C(v.data, v.mode)), y;
|
|
3440
3457
|
}, []);
|
|
3441
3458
|
}, e.fromString = function(P, y) {
|
|
3442
3459
|
const v = h(P, s.isKanjiModeEnabled()), S = f(v), k = $(S, y), E = d.find_path(k.map, "start", "end"), D = [];
|
|
@@ -3449,9 +3466,9 @@ var Ji = sn.exports;
|
|
|
3449
3466
|
);
|
|
3450
3467
|
};
|
|
3451
3468
|
})(on);
|
|
3452
|
-
const Xt = O, le = Wt,
|
|
3453
|
-
function
|
|
3454
|
-
const r = e.size, n =
|
|
3469
|
+
const Xt = O, le = Wt, Zi = Mi, ta = Oi, ea = Qr, ra = Jr, be = Xr, ve = Qt, na = Di, Yt = en, ia = nn, aa = K, ce = on;
|
|
3470
|
+
function oa(e, t) {
|
|
3471
|
+
const r = e.size, n = ra.getPositions(t);
|
|
3455
3472
|
for (let i = 0; i < n.length; i++) {
|
|
3456
3473
|
const a = n[i][0], o = n[i][1];
|
|
3457
3474
|
for (let s = -1; s <= 7; s++)
|
|
@@ -3460,15 +3477,15 @@ function aa(e, t) {
|
|
|
3460
3477
|
o + d <= -1 || r <= o + d || (s >= 0 && s <= 6 && (d === 0 || d === 6) || d >= 0 && d <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && d >= 2 && d <= 4 ? e.set(a + s, o + d, !0, !0) : e.set(a + s, o + d, !1, !0));
|
|
3461
3478
|
}
|
|
3462
3479
|
}
|
|
3463
|
-
function
|
|
3480
|
+
function sa(e) {
|
|
3464
3481
|
const t = e.size;
|
|
3465
3482
|
for (let r = 8; r < t - 8; r++) {
|
|
3466
3483
|
const n = r % 2 === 0;
|
|
3467
3484
|
e.set(r, 6, n, !0), e.set(6, r, n, !0);
|
|
3468
3485
|
}
|
|
3469
3486
|
}
|
|
3470
|
-
function
|
|
3471
|
-
const r =
|
|
3487
|
+
function da(e, t) {
|
|
3488
|
+
const r = ea.getPositions(t);
|
|
3472
3489
|
for (let n = 0; n < r.length; n++) {
|
|
3473
3490
|
const i = r[n][0], a = r[n][1];
|
|
3474
3491
|
for (let o = -2; o <= 2; o++)
|
|
@@ -3476,20 +3493,20 @@ function sa(e, t) {
|
|
|
3476
3493
|
o === -2 || o === 2 || s === -2 || s === 2 || o === 0 && s === 0 ? e.set(i + o, a + s, !0, !0) : e.set(i + o, a + s, !1, !0);
|
|
3477
3494
|
}
|
|
3478
3495
|
}
|
|
3479
|
-
function
|
|
3496
|
+
function la(e, t) {
|
|
3480
3497
|
const r = e.size, n = Yt.getEncodedBits(t);
|
|
3481
3498
|
let i, a, o;
|
|
3482
3499
|
for (let s = 0; s < 18; s++)
|
|
3483
3500
|
i = Math.floor(s / 3), a = s % 3 + r - 8 - 3, o = (n >> s & 1) === 1, e.set(i, a, o, !0), e.set(a, i, o, !0);
|
|
3484
3501
|
}
|
|
3485
3502
|
function ue(e, t, r) {
|
|
3486
|
-
const n = e.size, i =
|
|
3503
|
+
const n = e.size, i = ia.getEncodedBits(t, r);
|
|
3487
3504
|
let a, o;
|
|
3488
3505
|
for (a = 0; a < 15; a++)
|
|
3489
3506
|
o = (i >> a & 1) === 1, a < 6 ? e.set(a, 8, o, !0) : a < 8 ? e.set(a + 1, 8, o, !0) : e.set(n - 15 + a, 8, o, !0), a < 8 ? e.set(8, n - a - 1, o, !0) : a < 9 ? e.set(8, 15 - a - 1 + 1, o, !0) : e.set(8, 15 - a - 1, o, !0);
|
|
3490
3507
|
e.set(n - 8, 8, 1, !0);
|
|
3491
3508
|
}
|
|
3492
|
-
function
|
|
3509
|
+
function ca(e, t) {
|
|
3493
3510
|
const r = e.size;
|
|
3494
3511
|
let n = -1, i = r - 1, a = 7, o = 0;
|
|
3495
3512
|
for (let s = r - 1; s > 0; s -= 2)
|
|
@@ -3505,10 +3522,10 @@ function la(e, t) {
|
|
|
3505
3522
|
}
|
|
3506
3523
|
}
|
|
3507
3524
|
}
|
|
3508
|
-
function
|
|
3509
|
-
const n = new
|
|
3525
|
+
function ua(e, t, r) {
|
|
3526
|
+
const n = new Zi();
|
|
3510
3527
|
r.forEach(function(d) {
|
|
3511
|
-
n.put(d.mode.bit, 4), n.put(d.getLength(),
|
|
3528
|
+
n.put(d.mode.bit, 4), n.put(d.getLength(), aa.getCharCountIndicator(d.mode, e)), d.write(n);
|
|
3512
3529
|
});
|
|
3513
3530
|
const i = Xt.getSymbolTotalCodewords(e), a = ve.getTotalCodewordsCount(e, t), o = (i - a) * 8;
|
|
3514
3531
|
for (n.getLengthInBits() + 4 <= o && n.put(0, 4); n.getLengthInBits() % 8 !== 0; )
|
|
@@ -3516,17 +3533,17 @@ function ca(e, t, r) {
|
|
|
3516
3533
|
const s = (o - n.getLengthInBits()) / 8;
|
|
3517
3534
|
for (let d = 0; d < s; d++)
|
|
3518
3535
|
n.put(d % 2 ? 17 : 236, 8);
|
|
3519
|
-
return
|
|
3536
|
+
return ha(n, e, t);
|
|
3520
3537
|
}
|
|
3521
|
-
function
|
|
3522
|
-
const n = Xt.getSymbolTotalCodewords(t), i = ve.getTotalCodewordsCount(t, r), a = n - i, o = ve.getBlocksCount(t, r), s = n % o, d = o - s, l = Math.floor(n / o), c = Math.floor(a / o), h = c + 1, u = l - c, m = new
|
|
3538
|
+
function ha(e, t, r) {
|
|
3539
|
+
const n = Xt.getSymbolTotalCodewords(t), i = ve.getTotalCodewordsCount(t, r), a = n - i, o = ve.getBlocksCount(t, r), s = n % o, d = o - s, l = Math.floor(n / o), c = Math.floor(a / o), h = c + 1, u = l - c, m = new na(u);
|
|
3523
3540
|
let f = 0;
|
|
3524
|
-
const $ = new Array(o),
|
|
3541
|
+
const $ = new Array(o), C = new Array(o);
|
|
3525
3542
|
let b = 0;
|
|
3526
3543
|
const P = new Uint8Array(e.buffer);
|
|
3527
3544
|
for (let E = 0; E < o; E++) {
|
|
3528
3545
|
const D = E < d ? c : h;
|
|
3529
|
-
$[E] = P.slice(f, f + D),
|
|
3546
|
+
$[E] = P.slice(f, f + D), C[E] = m.encode($[E]), f += D, b = Math.max(b, D);
|
|
3530
3547
|
}
|
|
3531
3548
|
const y = new Uint8Array(n);
|
|
3532
3549
|
let v = 0, S, k;
|
|
@@ -3535,10 +3552,10 @@ function ua(e, t, r) {
|
|
|
3535
3552
|
S < $[k].length && (y[v++] = $[k][S]);
|
|
3536
3553
|
for (S = 0; S < u; S++)
|
|
3537
3554
|
for (k = 0; k < o; k++)
|
|
3538
|
-
y[v++] =
|
|
3555
|
+
y[v++] = C[k][S];
|
|
3539
3556
|
return y;
|
|
3540
3557
|
}
|
|
3541
|
-
function
|
|
3558
|
+
function pa(e, t, r, n) {
|
|
3542
3559
|
let i;
|
|
3543
3560
|
if (Array.isArray(e))
|
|
3544
3561
|
i = ce.fromArray(e);
|
|
@@ -3563,8 +3580,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
3563
3580
|
Minimum version required to store current data is: ` + a + `.
|
|
3564
3581
|
`
|
|
3565
3582
|
);
|
|
3566
|
-
const o =
|
|
3567
|
-
return
|
|
3583
|
+
const o = ua(t, r, i), s = Xt.getSymbolSize(t), d = new ta(s);
|
|
3584
|
+
return oa(d, t), sa(d), da(d, t), ue(d, r, 0), t >= 7 && la(d, t), ca(d, o), isNaN(n) && (n = be.getBestMask(
|
|
3568
3585
|
d,
|
|
3569
3586
|
ue.bind(null, d, r)
|
|
3570
3587
|
)), be.applyMask(n, d), ue(d, r, n), {
|
|
@@ -3579,7 +3596,7 @@ Kr.create = function(t, r) {
|
|
|
3579
3596
|
if (typeof t > "u" || t === "")
|
|
3580
3597
|
throw new Error("No input text");
|
|
3581
3598
|
let n = le.M, i, a;
|
|
3582
|
-
return typeof r < "u" && (n = le.from(r.errorCorrectionLevel, le.M), i = Yt.from(r.version), a = be.from(r.maskPattern), r.toSJISFunc && Xt.setToSJISFunction(r.toSJISFunc)),
|
|
3599
|
+
return typeof r < "u" && (n = le.from(r.errorCorrectionLevel, le.M), i = Yt.from(r.version), a = be.from(r.maskPattern), r.toSJISFunc && Xt.setToSJISFunction(r.toSJISFunc)), pa(t, i, n, a);
|
|
3583
3600
|
};
|
|
3584
3601
|
var dn = {}, Re = {};
|
|
3585
3602
|
(function(e) {
|
|
@@ -3626,8 +3643,8 @@ var dn = {}, Re = {};
|
|
|
3626
3643
|
for (let m = 0; m < l; m++) {
|
|
3627
3644
|
let f = (u * l + m) * 4, $ = a.color.light;
|
|
3628
3645
|
if (u >= c && m >= c && u < l - c && m < l - c) {
|
|
3629
|
-
const
|
|
3630
|
-
$ = h[s[
|
|
3646
|
+
const C = Math.floor((u - c) / d), b = Math.floor((m - c) / d);
|
|
3647
|
+
$ = h[s[C * o + b] ? 1 : 0];
|
|
3631
3648
|
}
|
|
3632
3649
|
n[f++] = $.r, n[f++] = $.g, n[f++] = $.b, n[f] = $.a;
|
|
3633
3650
|
}
|
|
@@ -3658,7 +3675,7 @@ var dn = {}, Re = {};
|
|
|
3658
3675
|
};
|
|
3659
3676
|
})(dn);
|
|
3660
3677
|
var ln = {};
|
|
3661
|
-
const
|
|
3678
|
+
const fa = Re;
|
|
3662
3679
|
function ar(e, t) {
|
|
3663
3680
|
const r = e.a / 255, n = t + '="' + e.hex + '"';
|
|
3664
3681
|
return r < 1 ? n + " " + t + '-opacity="' + r.toFixed(2).slice(1) + '"' : n;
|
|
@@ -3667,7 +3684,7 @@ function he(e, t, r) {
|
|
|
3667
3684
|
let n = e + t;
|
|
3668
3685
|
return typeof r < "u" && (n += " " + r), n;
|
|
3669
3686
|
}
|
|
3670
|
-
function
|
|
3687
|
+
function ma(e, t, r) {
|
|
3671
3688
|
let n = "", i = 0, a = !1, o = 0;
|
|
3672
3689
|
for (let s = 0; s < e.length; s++) {
|
|
3673
3690
|
const d = Math.floor(s % t), l = Math.floor(s / t);
|
|
@@ -3676,14 +3693,14 @@ function fa(e, t, r) {
|
|
|
3676
3693
|
return n;
|
|
3677
3694
|
}
|
|
3678
3695
|
ln.render = function(t, r, n) {
|
|
3679
|
-
const i =
|
|
3696
|
+
const i = fa.getOptions(r), a = t.modules.size, o = t.modules.data, s = a + i.margin * 2, d = i.color.light.a ? "<path " + ar(i.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", l = "<path " + ar(i.color.dark, "stroke") + ' d="' + ma(o, a, i.margin) + '"/>', c = 'viewBox="0 0 ' + s + " " + s + '"', u = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + c + ' shape-rendering="crispEdges">' + d + l + `</svg>
|
|
3680
3697
|
`;
|
|
3681
3698
|
return typeof n == "function" && n(null, u), u;
|
|
3682
3699
|
};
|
|
3683
|
-
const
|
|
3700
|
+
const $a = Ii, Pe = Kr, cn = dn, ga = ln;
|
|
3684
3701
|
function Le(e, t, r, n, i) {
|
|
3685
3702
|
const a = [].slice.call(arguments, 1), o = a.length, s = typeof a[o - 1] == "function";
|
|
3686
|
-
if (!s &&
|
|
3703
|
+
if (!s && !$a())
|
|
3687
3704
|
throw new Error("Callback required as last argument");
|
|
3688
3705
|
if (s) {
|
|
3689
3706
|
if (o < 2)
|
|
@@ -3712,7 +3729,7 @@ Ft.create = Pe.create;
|
|
|
3712
3729
|
Ft.toCanvas = Le.bind(null, cn.render);
|
|
3713
3730
|
Ft.toDataURL = Le.bind(null, cn.renderToDataURL);
|
|
3714
3731
|
Ft.toString = Le.bind(null, function(e, t, r) {
|
|
3715
|
-
return
|
|
3732
|
+
return ga.render(e, r);
|
|
3716
3733
|
});
|
|
3717
3734
|
const un = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["20"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "[3489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
3718
3735
|
function hn(e, t) {
|
|
@@ -3730,9 +3747,9 @@ function or(e, t) {
|
|
|
3730
3747
|
}
|
|
3731
3748
|
return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
|
|
3732
3749
|
}
|
|
3733
|
-
var
|
|
3750
|
+
var ya = {}.constructor;
|
|
3734
3751
|
function Z(e) {
|
|
3735
|
-
return e != null && e.constructor ===
|
|
3752
|
+
return e != null && e.constructor === ya;
|
|
3736
3753
|
}
|
|
3737
3754
|
function ct(e) {
|
|
3738
3755
|
"@babel/helpers - typeof";
|
|
@@ -3745,20 +3762,20 @@ function ct(e) {
|
|
|
3745
3762
|
function Zt(e, t) {
|
|
3746
3763
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3747
3764
|
}
|
|
3748
|
-
function
|
|
3765
|
+
function ba(e, t) {
|
|
3749
3766
|
for (var r = 0; r < t.length; r++) {
|
|
3750
3767
|
var n = t[r];
|
|
3751
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
3768
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, va(n.key), n);
|
|
3752
3769
|
}
|
|
3753
3770
|
}
|
|
3754
3771
|
function te(e, t, r) {
|
|
3755
|
-
return t &&
|
|
3772
|
+
return t && ba(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3756
3773
|
}
|
|
3757
|
-
function
|
|
3758
|
-
var t =
|
|
3774
|
+
function va(e) {
|
|
3775
|
+
var t = Pa(e, "string");
|
|
3759
3776
|
return ct(t) == "symbol" ? t : t + "";
|
|
3760
3777
|
}
|
|
3761
|
-
function
|
|
3778
|
+
function Pa(e, t) {
|
|
3762
3779
|
if (ct(e) != "object" || !e) return e;
|
|
3763
3780
|
var r = e[Symbol.toPrimitive];
|
|
3764
3781
|
if (r !== void 0) {
|
|
@@ -3768,7 +3785,7 @@ function va(e, t) {
|
|
|
3768
3785
|
}
|
|
3769
3786
|
return String(e);
|
|
3770
3787
|
}
|
|
3771
|
-
var
|
|
3788
|
+
var wa = "1.2.0", Ca = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ */ function() {
|
|
3772
3789
|
function e(t) {
|
|
3773
3790
|
Zt(this, e), pn(t), this.metadata = t, fn.call(this, t);
|
|
3774
3791
|
}
|
|
@@ -4013,7 +4030,7 @@ var Pa = "1.2.0", wa = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ *
|
|
|
4013
4030
|
value: function() {
|
|
4014
4031
|
var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
4015
4032
|
return n.map(function(i) {
|
|
4016
|
-
return new
|
|
4033
|
+
return new xa(i, r);
|
|
4017
4034
|
});
|
|
4018
4035
|
}
|
|
4019
4036
|
}, {
|
|
@@ -4082,7 +4099,7 @@ var Pa = "1.2.0", wa = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ *
|
|
|
4082
4099
|
key: "type",
|
|
4083
4100
|
value: function(r) {
|
|
4084
4101
|
if (this.hasTypes() && lr(this.types(), r))
|
|
4085
|
-
return new
|
|
4102
|
+
return new Aa(lr(this.types(), r), this);
|
|
4086
4103
|
}
|
|
4087
4104
|
}, {
|
|
4088
4105
|
key: "ext",
|
|
@@ -4090,7 +4107,7 @@ var Pa = "1.2.0", wa = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ *
|
|
|
4090
4107
|
return this.v1 || this.v2 ? sr : this.metadata[13] || sr;
|
|
4091
4108
|
}
|
|
4092
4109
|
}]);
|
|
4093
|
-
}(),
|
|
4110
|
+
}(), xa = /* @__PURE__ */ function() {
|
|
4094
4111
|
function e(t, r) {
|
|
4095
4112
|
Zt(this, e), this._format = t, this.metadata = r;
|
|
4096
4113
|
}
|
|
@@ -4129,7 +4146,7 @@ var Pa = "1.2.0", wa = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ *
|
|
|
4129
4146
|
key: "usesNationalPrefix",
|
|
4130
4147
|
value: function() {
|
|
4131
4148
|
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
4132
|
-
!
|
|
4149
|
+
!Sa.test(this.nationalPrefixFormattingRule()));
|
|
4133
4150
|
}
|
|
4134
4151
|
}, {
|
|
4135
4152
|
key: "internationalFormat",
|
|
@@ -4137,7 +4154,7 @@ var Pa = "1.2.0", wa = "1.7.35", sr = " ext. ", Na = /^\d+$/, I = /* @__PURE__ *
|
|
|
4137
4154
|
return this._format[5] || this.format();
|
|
4138
4155
|
}
|
|
4139
4156
|
}]);
|
|
4140
|
-
}(),
|
|
4157
|
+
}(), Sa = /^\(?\$1\)?$/, Aa = /* @__PURE__ */ function() {
|
|
4141
4158
|
function e(t, r) {
|
|
4142
4159
|
Zt(this, e), this.type = t, this.metadata = r;
|
|
4143
4160
|
}
|
|
@@ -4182,9 +4199,9 @@ function pn(e) {
|
|
|
4182
4199
|
if (!e)
|
|
4183
4200
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
4184
4201
|
if (!Z(e) || !Z(e.countries))
|
|
4185
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Z(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " +
|
|
4202
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Z(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + ka(e) + ": " + e, "."));
|
|
4186
4203
|
}
|
|
4187
|
-
var
|
|
4204
|
+
var ka = function(t) {
|
|
4188
4205
|
return ct(t);
|
|
4189
4206
|
};
|
|
4190
4207
|
function Be(e, t) {
|
|
@@ -4192,17 +4209,17 @@ function Be(e, t) {
|
|
|
4192
4209
|
return t.selectNumberingPlan(e).countryCallingCode();
|
|
4193
4210
|
throw new Error("Unknown country: ".concat(e));
|
|
4194
4211
|
}
|
|
4195
|
-
function
|
|
4212
|
+
function Ea(e, t) {
|
|
4196
4213
|
return t.countries.hasOwnProperty(e);
|
|
4197
4214
|
}
|
|
4198
4215
|
function fn(e) {
|
|
4199
4216
|
var t = e.version;
|
|
4200
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? or(t,
|
|
4217
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? or(t, wa) === -1 ? this.v2 = !0 : or(t, Ca) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
4201
4218
|
}
|
|
4202
4219
|
function ee(e, t, r) {
|
|
4203
|
-
return
|
|
4220
|
+
return _a(e, t, void 0, r);
|
|
4204
4221
|
}
|
|
4205
|
-
function
|
|
4222
|
+
function _a(e, t, r, n) {
|
|
4206
4223
|
t && (n = new I(n.metadata), n.selectNumberingPlan(t));
|
|
4207
4224
|
var i = n.type(r), a = i && i.possibleLengths() || n.possibleLengths();
|
|
4208
4225
|
if (!a)
|
|
@@ -4210,7 +4227,7 @@ function Ea(e, t, r, n) {
|
|
|
4210
4227
|
var o = e.length, s = a[0];
|
|
4211
4228
|
return s === o ? "IS_POSSIBLE" : s > o ? "TOO_SHORT" : a[a.length - 1] < o ? "TOO_LONG" : a.indexOf(o, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
4212
4229
|
}
|
|
4213
|
-
function
|
|
4230
|
+
function Ia(e, t, r) {
|
|
4214
4231
|
if (t === void 0 && (t = {}), r = new I(r), t.v2) {
|
|
4215
4232
|
if (!e.countryCallingCode)
|
|
4216
4233
|
throw new Error("Invalid phone number object passed");
|
|
@@ -4245,10 +4262,10 @@ function mn(e, t, r) {
|
|
|
4245
4262
|
function G(e, t) {
|
|
4246
4263
|
return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
|
|
4247
4264
|
}
|
|
4248
|
-
function
|
|
4265
|
+
function Ta(e, t) {
|
|
4249
4266
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4250
4267
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
4251
|
-
if (Array.isArray(e) || (r =
|
|
4268
|
+
if (Array.isArray(e) || (r = Ma(e)) || t) {
|
|
4252
4269
|
r && (e = r);
|
|
4253
4270
|
var n = 0;
|
|
4254
4271
|
return function() {
|
|
@@ -4258,7 +4275,7 @@ function Ia(e, t) {
|
|
|
4258
4275
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4259
4276
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4260
4277
|
}
|
|
4261
|
-
function
|
|
4278
|
+
function Ma(e, t) {
|
|
4262
4279
|
if (e) {
|
|
4263
4280
|
if (typeof e == "string") return cr(e, t);
|
|
4264
4281
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -4270,7 +4287,7 @@ function cr(e, t) {
|
|
|
4270
4287
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
4271
4288
|
return n;
|
|
4272
4289
|
}
|
|
4273
|
-
var
|
|
4290
|
+
var Oa = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
4274
4291
|
function Ue(e, t, r) {
|
|
4275
4292
|
if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
|
|
4276
4293
|
r = new I(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
@@ -4278,7 +4295,7 @@ function Ue(e, t, r) {
|
|
|
4278
4295
|
if (G(n, r.nationalNumberPattern())) {
|
|
4279
4296
|
if (pe(n, "FIXED_LINE", r))
|
|
4280
4297
|
return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || pe(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
4281
|
-
for (var i =
|
|
4298
|
+
for (var i = Ta(Oa), a; !(a = i()).done; ) {
|
|
4282
4299
|
var o = a.value;
|
|
4283
4300
|
if (pe(n, o, r))
|
|
4284
4301
|
return o;
|
|
@@ -4290,23 +4307,23 @@ function pe(e, t, r) {
|
|
|
4290
4307
|
var n = r.type(t);
|
|
4291
4308
|
return !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : G(e, n.pattern());
|
|
4292
4309
|
}
|
|
4293
|
-
function
|
|
4310
|
+
function Fa(e, t, r) {
|
|
4294
4311
|
if (t = t || {}, r = new I(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
|
4295
4312
|
return Ue(e, t, r.metadata) !== void 0;
|
|
4296
4313
|
var n = t.v2 ? e.nationalNumber : e.phone;
|
|
4297
4314
|
return G(n, r.nationalNumberPattern());
|
|
4298
4315
|
}
|
|
4299
|
-
function
|
|
4316
|
+
function Da(e, t, r) {
|
|
4300
4317
|
var n = new I(r), i = n.getCountryCodesForCallingCode(e);
|
|
4301
4318
|
return i ? i.filter(function(a) {
|
|
4302
|
-
return
|
|
4319
|
+
return Ra(t, a, r);
|
|
4303
4320
|
}) : [];
|
|
4304
4321
|
}
|
|
4305
|
-
function
|
|
4322
|
+
function Ra(e, t, r) {
|
|
4306
4323
|
var n = new I(r);
|
|
4307
4324
|
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
4308
4325
|
}
|
|
4309
|
-
var He = 2,
|
|
4326
|
+
var He = 2, La = 17, Ba = 3, T = "0-90-9٠-٩۰-۹", Ua = "-‐-―−ー-", Ha = "//", ja = "..", Ga = " ", Ya = "()()[]\\[\\]", Va = "~⁓∼~", L = "".concat(Ua).concat(Ha).concat(ja).concat(Ga).concat(Ya).concat(Va), re = "++", za = new RegExp("([" + T + "])");
|
|
4310
4327
|
function $n(e, t, r, n) {
|
|
4311
4328
|
if (t) {
|
|
4312
4329
|
var i = new I(n);
|
|
@@ -4314,7 +4331,7 @@ function $n(e, t, r, n) {
|
|
|
4314
4331
|
var a = new RegExp(i.IDDPrefix());
|
|
4315
4332
|
if (e.search(a) === 0) {
|
|
4316
4333
|
e = e.slice(e.match(a)[0].length);
|
|
4317
|
-
var o = e.match(
|
|
4334
|
+
var o = e.match(za);
|
|
4318
4335
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0"))
|
|
4319
4336
|
return e;
|
|
4320
4337
|
}
|
|
@@ -4348,10 +4365,10 @@ function we(e, t) {
|
|
|
4348
4365
|
nationalNumber: e
|
|
4349
4366
|
};
|
|
4350
4367
|
}
|
|
4351
|
-
function
|
|
4368
|
+
function qa(e, t) {
|
|
4352
4369
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4353
4370
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
4354
|
-
if (Array.isArray(e) || (r =
|
|
4371
|
+
if (Array.isArray(e) || (r = Ka(e)) || t) {
|
|
4355
4372
|
r && (e = r);
|
|
4356
4373
|
var n = 0;
|
|
4357
4374
|
return function() {
|
|
@@ -4361,7 +4378,7 @@ function za(e, t) {
|
|
|
4361
4378
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4362
4379
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4363
4380
|
}
|
|
4364
|
-
function
|
|
4381
|
+
function Ka(e, t) {
|
|
4365
4382
|
if (e) {
|
|
4366
4383
|
if (typeof e == "string") return ur(e, t);
|
|
4367
4384
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -4376,7 +4393,7 @@ function ur(e, t) {
|
|
|
4376
4393
|
function gn(e, t) {
|
|
4377
4394
|
var r = t.countries, n = t.metadata;
|
|
4378
4395
|
n = new I(n);
|
|
4379
|
-
for (var i =
|
|
4396
|
+
for (var i = qa(r), a; !(a = i()).done; ) {
|
|
4380
4397
|
var o = a.value;
|
|
4381
4398
|
if (n.selectNumberingPlan(o), n.leadingDigits()) {
|
|
4382
4399
|
if (e && e.search(n.leadingDigits()) === 0)
|
|
@@ -4396,17 +4413,17 @@ function je(e, t) {
|
|
|
4396
4413
|
metadata: n.metadata
|
|
4397
4414
|
});
|
|
4398
4415
|
}
|
|
4399
|
-
function
|
|
4416
|
+
function Ce(e, t, r) {
|
|
4400
4417
|
var n = we(e, r), i = n.carrierCode, a = n.nationalNumber;
|
|
4401
4418
|
if (a !== e) {
|
|
4402
|
-
if (!
|
|
4419
|
+
if (!Wa(e, a, r))
|
|
4403
4420
|
return {
|
|
4404
4421
|
nationalNumber: e
|
|
4405
4422
|
};
|
|
4406
4423
|
if (r.numberingPlan.possibleLengths() && (t || (t = je(r.numberingPlan.callingCode(), {
|
|
4407
4424
|
nationalNumber: a,
|
|
4408
4425
|
metadata: r
|
|
4409
|
-
})), !
|
|
4426
|
+
})), !Qa(a, t, r)))
|
|
4410
4427
|
return {
|
|
4411
4428
|
nationalNumber: e
|
|
4412
4429
|
};
|
|
@@ -4416,10 +4433,10 @@ function Ne(e, t, r) {
|
|
|
4416
4433
|
carrierCode: i
|
|
4417
4434
|
};
|
|
4418
4435
|
}
|
|
4419
|
-
function
|
|
4436
|
+
function Wa(e, t, r) {
|
|
4420
4437
|
return !(G(e, r.nationalNumberPattern()) && !G(t, r.nationalNumberPattern()));
|
|
4421
4438
|
}
|
|
4422
|
-
function
|
|
4439
|
+
function Qa(e, t, r) {
|
|
4423
4440
|
switch (ee(e, t, r)) {
|
|
4424
4441
|
case "TOO_SHORT":
|
|
4425
4442
|
case "INVALID_LENGTH":
|
|
@@ -4432,7 +4449,7 @@ function yn(e, t, r, n, i) {
|
|
|
4432
4449
|
var a = t || r ? Be(t || r, i) : n;
|
|
4433
4450
|
if (e.indexOf(a) === 0) {
|
|
4434
4451
|
i = new I(i), i.selectNumberingPlan(t || r, a);
|
|
4435
|
-
var o = e.slice(a.length), s =
|
|
4452
|
+
var o = e.slice(a.length), s = Ce(o, t, i), d = s.nationalNumber, l = Ce(e, t, i), c = l.nationalNumber;
|
|
4436
4453
|
if (!G(c, i.nationalNumberPattern()) && G(d, i.nationalNumberPattern()) || ee(c, t, i) === "TOO_LONG")
|
|
4437
4454
|
return {
|
|
4438
4455
|
countryCallingCode: a,
|
|
@@ -4471,7 +4488,7 @@ function Ge(e, t, r, n, i) {
|
|
|
4471
4488
|
if (e[1] === "0")
|
|
4472
4489
|
return {};
|
|
4473
4490
|
i = new I(i);
|
|
4474
|
-
for (var c = 2; c - 1 <=
|
|
4491
|
+
for (var c = 2; c - 1 <= Ba && c <= e.length; ) {
|
|
4475
4492
|
var h = e.slice(1, c);
|
|
4476
4493
|
if (i.hasCallingCode(h))
|
|
4477
4494
|
return i.selectNumberingPlan(h), {
|
|
@@ -4508,34 +4525,34 @@ function Pn(e, t, r) {
|
|
|
4508
4525
|
));
|
|
4509
4526
|
return n ? bn(a) : a;
|
|
4510
4527
|
}
|
|
4511
|
-
var
|
|
4512
|
-
function
|
|
4528
|
+
var Ja = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
4529
|
+
function Xa(e, t, r) {
|
|
4513
4530
|
var n = new I(r);
|
|
4514
4531
|
if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix())
|
|
4515
4532
|
return n.defaultIDDPrefix();
|
|
4516
|
-
if (
|
|
4533
|
+
if (Ja.test(n.IDDPrefix()))
|
|
4517
4534
|
return n.IDDPrefix();
|
|
4518
4535
|
}
|
|
4519
|
-
var
|
|
4536
|
+
var Za = ";ext=", et = function(t) {
|
|
4520
4537
|
return "([".concat(T, "]{1,").concat(t, "})");
|
|
4521
4538
|
};
|
|
4522
4539
|
function wn(e) {
|
|
4523
|
-
var t = "20", r = "15", n = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", h = "[ \\t]*", u = "(?:,{2}|;)", m =
|
|
4524
|
-
return m + "|" + f + "|" + $ + "|" +
|
|
4540
|
+
var t = "20", r = "15", n = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", h = "[ \\t]*", u = "(?:,{2}|;)", m = Za + et(t), f = a + d + o + et(t) + s, $ = a + l + o + et(n) + s, C = c + et(i) + "#", b = h + u + o + et(r) + s, P = h + "(?:,)+" + o + et(n) + s;
|
|
4541
|
+
return m + "|" + f + "|" + $ + "|" + C + "|" + b + "|" + P;
|
|
4525
4542
|
}
|
|
4526
|
-
var
|
|
4527
|
-
"(?:" + wn() + ")?",
|
|
4543
|
+
var to = "[" + T + "]{" + He + "}", eo = "[" + re + "]{0,1}(?:[" + L + "]*[" + T + "]){3,}[" + L + T + "]*", ro = new RegExp("^[" + re + "]{0,1}(?:[" + L + "]*[" + T + "]){1,2}$", "i"), no = eo + // Phone number extensions
|
|
4544
|
+
"(?:" + wn() + ")?", io = new RegExp(
|
|
4528
4545
|
// Either a short two-digit-only phone number
|
|
4529
|
-
"^" +
|
|
4546
|
+
"^" + to + "$|^" + no + "$",
|
|
4530
4547
|
"i"
|
|
4531
4548
|
);
|
|
4532
|
-
function io(e) {
|
|
4533
|
-
return e.length >= He && no.test(e);
|
|
4534
|
-
}
|
|
4535
4549
|
function ao(e) {
|
|
4536
|
-
return
|
|
4550
|
+
return e.length >= He && io.test(e);
|
|
4537
4551
|
}
|
|
4538
4552
|
function oo(e) {
|
|
4553
|
+
return ro.test(e);
|
|
4554
|
+
}
|
|
4555
|
+
function so(e) {
|
|
4539
4556
|
var t = e.number, r = e.ext;
|
|
4540
4557
|
if (!t)
|
|
4541
4558
|
return "";
|
|
@@ -4548,8 +4565,8 @@ var hr = {
|
|
|
4548
4565
|
return "".concat(t).concat(n.ext()).concat(r);
|
|
4549
4566
|
}
|
|
4550
4567
|
};
|
|
4551
|
-
function
|
|
4552
|
-
if (r ? r =
|
|
4568
|
+
function lo(e, t, r, n) {
|
|
4569
|
+
if (r ? r = ho({}, hr, r) : r = hr, n = new I(n), e.country && e.country !== "001") {
|
|
4553
4570
|
if (!n.hasCountry(e.country))
|
|
4554
4571
|
throw new Error("Unknown country: ".concat(e.country));
|
|
4555
4572
|
n.selectNumberingPlan(e.country);
|
|
@@ -4565,21 +4582,21 @@ function so(e, t, r, n) {
|
|
|
4565
4582
|
case "E.164":
|
|
4566
4583
|
return "+".concat(i).concat(a);
|
|
4567
4584
|
case "RFC3966":
|
|
4568
|
-
return
|
|
4585
|
+
return so({
|
|
4569
4586
|
number: "+".concat(i).concat(a),
|
|
4570
4587
|
ext: e.ext
|
|
4571
4588
|
});
|
|
4572
4589
|
case "IDD":
|
|
4573
4590
|
if (!r.fromCountry)
|
|
4574
4591
|
return;
|
|
4575
|
-
var s =
|
|
4592
|
+
var s = uo(a, e.carrierCode, i, r.fromCountry, n);
|
|
4576
4593
|
return s ? fe(s, e.ext, n, r.formatExtension) : void 0;
|
|
4577
4594
|
default:
|
|
4578
4595
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
4579
4596
|
}
|
|
4580
4597
|
}
|
|
4581
4598
|
function Vt(e, t, r, n, i) {
|
|
4582
|
-
var a =
|
|
4599
|
+
var a = co(n.formats(), e);
|
|
4583
4600
|
return a ? Pn(e, a, {
|
|
4584
4601
|
useInternationalFormat: r === "INTERNATIONAL",
|
|
4585
4602
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
@@ -4587,8 +4604,8 @@ function Vt(e, t, r, n, i) {
|
|
|
4587
4604
|
metadata: n
|
|
4588
4605
|
}) : e;
|
|
4589
4606
|
}
|
|
4590
|
-
function
|
|
4591
|
-
return
|
|
4607
|
+
function co(e, t) {
|
|
4608
|
+
return po(e, function(r) {
|
|
4592
4609
|
if (r.leadingDigitsPatterns().length > 0) {
|
|
4593
4610
|
var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
|
4594
4611
|
if (t.search(n) !== 0)
|
|
@@ -4600,17 +4617,17 @@ function lo(e, t) {
|
|
|
4600
4617
|
function fe(e, t, r, n) {
|
|
4601
4618
|
return t ? n(e, t, r) : e;
|
|
4602
4619
|
}
|
|
4603
|
-
function
|
|
4620
|
+
function uo(e, t, r, n, i) {
|
|
4604
4621
|
var a = Be(n, i.metadata);
|
|
4605
4622
|
if (a === r) {
|
|
4606
4623
|
var o = Vt(e, t, "NATIONAL", i);
|
|
4607
4624
|
return r === "1" ? r + " " + o : o;
|
|
4608
4625
|
}
|
|
4609
|
-
var s =
|
|
4626
|
+
var s = Xa(n, void 0, i.metadata);
|
|
4610
4627
|
if (s)
|
|
4611
4628
|
return "".concat(s, " ").concat(r, " ").concat(Vt(e, null, "INTERNATIONAL", i));
|
|
4612
4629
|
}
|
|
4613
|
-
function
|
|
4630
|
+
function ho() {
|
|
4614
4631
|
for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
4615
4632
|
r[n] = arguments[n];
|
|
4616
4633
|
for (; e < r.length; ) {
|
|
@@ -4621,7 +4638,7 @@ function uo() {
|
|
|
4621
4638
|
}
|
|
4622
4639
|
return r[0];
|
|
4623
4640
|
}
|
|
4624
|
-
function
|
|
4641
|
+
function po(e, t) {
|
|
4625
4642
|
for (var r = 0; r < e.length; ) {
|
|
4626
4643
|
if (t(e[r]))
|
|
4627
4644
|
return e[r];
|
|
@@ -4650,33 +4667,33 @@ function fr(e) {
|
|
|
4650
4667
|
for (var t = 1; t < arguments.length; t++) {
|
|
4651
4668
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4652
4669
|
t % 2 ? pr(Object(r), !0).forEach(function(n) {
|
|
4653
|
-
|
|
4670
|
+
fo(e, n, r[n]);
|
|
4654
4671
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
|
|
4655
4672
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4656
4673
|
});
|
|
4657
4674
|
}
|
|
4658
4675
|
return e;
|
|
4659
4676
|
}
|
|
4660
|
-
function
|
|
4661
|
-
return (t =
|
|
4677
|
+
function fo(e, t, r) {
|
|
4678
|
+
return (t = Cn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
4662
4679
|
}
|
|
4663
|
-
function
|
|
4680
|
+
function mo(e, t) {
|
|
4664
4681
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
4665
4682
|
}
|
|
4666
|
-
function
|
|
4683
|
+
function $o(e, t) {
|
|
4667
4684
|
for (var r = 0; r < t.length; r++) {
|
|
4668
4685
|
var n = t[r];
|
|
4669
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
4686
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Cn(n.key), n);
|
|
4670
4687
|
}
|
|
4671
4688
|
}
|
|
4672
|
-
function
|
|
4673
|
-
return t &&
|
|
4689
|
+
function go(e, t, r) {
|
|
4690
|
+
return t && $o(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4674
4691
|
}
|
|
4675
|
-
function
|
|
4676
|
-
var t =
|
|
4692
|
+
function Cn(e) {
|
|
4693
|
+
var t = yo(e, "string");
|
|
4677
4694
|
return Pt(t) == "symbol" ? t : t + "";
|
|
4678
4695
|
}
|
|
4679
|
-
function
|
|
4696
|
+
function yo(e, t) {
|
|
4680
4697
|
if (Pt(e) != "object" || !e) return e;
|
|
4681
4698
|
var r = e[Symbol.toPrimitive];
|
|
4682
4699
|
if (r !== void 0) {
|
|
@@ -4686,9 +4703,9 @@ function go(e, t) {
|
|
|
4686
4703
|
}
|
|
4687
4704
|
return String(e);
|
|
4688
4705
|
}
|
|
4689
|
-
var
|
|
4706
|
+
var Nn = /* @__PURE__ */ function() {
|
|
4690
4707
|
function e(t, r, n) {
|
|
4691
|
-
if (
|
|
4708
|
+
if (mo(this, e), !t)
|
|
4692
4709
|
throw new TypeError("First argument is required");
|
|
4693
4710
|
if (typeof t != "string")
|
|
4694
4711
|
throw new TypeError("First argument must be a string");
|
|
@@ -4697,7 +4714,7 @@ var Cn = /* @__PURE__ */ function() {
|
|
|
4697
4714
|
if (Z(r) && Z(r.countries)) {
|
|
4698
4715
|
n = r;
|
|
4699
4716
|
var i = t;
|
|
4700
|
-
if (!
|
|
4717
|
+
if (!Po.test(i))
|
|
4701
4718
|
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
|
4702
4719
|
var a = Ge(i, void 0, void 0, void 0, n), o = a.countryCallingCode, s = a.number;
|
|
4703
4720
|
if (r = s, t = o, !r)
|
|
@@ -4708,12 +4725,12 @@ var Cn = /* @__PURE__ */ function() {
|
|
|
4708
4725
|
if (typeof r != "string")
|
|
4709
4726
|
throw new TypeError("`nationalNumber` argument must be a string");
|
|
4710
4727
|
pn(n);
|
|
4711
|
-
var d =
|
|
4728
|
+
var d = vo(t, n), l = d.country, c = d.countryCallingCode;
|
|
4712
4729
|
this.country = l, this.countryCallingCode = c, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
4713
4730
|
return n;
|
|
4714
4731
|
};
|
|
4715
4732
|
}
|
|
4716
|
-
return
|
|
4733
|
+
return go(e, [{
|
|
4717
4734
|
key: "setExt",
|
|
4718
4735
|
value: function(r) {
|
|
4719
4736
|
this.ext = r;
|
|
@@ -4721,19 +4738,19 @@ var Cn = /* @__PURE__ */ function() {
|
|
|
4721
4738
|
}, {
|
|
4722
4739
|
key: "getPossibleCountries",
|
|
4723
4740
|
value: function() {
|
|
4724
|
-
return this.country ? [this.country] :
|
|
4741
|
+
return this.country ? [this.country] : Da(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
4725
4742
|
}
|
|
4726
4743
|
}, {
|
|
4727
4744
|
key: "isPossible",
|
|
4728
4745
|
value: function() {
|
|
4729
|
-
return
|
|
4746
|
+
return Ia(this, {
|
|
4730
4747
|
v2: !0
|
|
4731
4748
|
}, this.getMetadata());
|
|
4732
4749
|
}
|
|
4733
4750
|
}, {
|
|
4734
4751
|
key: "isValid",
|
|
4735
4752
|
value: function() {
|
|
4736
|
-
return
|
|
4753
|
+
return Fa(this, {
|
|
4737
4754
|
v2: !0
|
|
4738
4755
|
}, this.getMetadata());
|
|
4739
4756
|
}
|
|
@@ -4772,7 +4789,7 @@ var Cn = /* @__PURE__ */ function() {
|
|
|
4772
4789
|
}, {
|
|
4773
4790
|
key: "format",
|
|
4774
4791
|
value: function(r, n) {
|
|
4775
|
-
return
|
|
4792
|
+
return lo(this, r, n ? fr(fr({}, n), {}, {
|
|
4776
4793
|
v2: !0
|
|
4777
4794
|
}) : {
|
|
4778
4795
|
v2: !0
|
|
@@ -4794,63 +4811,63 @@ var Cn = /* @__PURE__ */ function() {
|
|
|
4794
4811
|
return this.format("RFC3966", r);
|
|
4795
4812
|
}
|
|
4796
4813
|
}]);
|
|
4797
|
-
}(),
|
|
4814
|
+
}(), bo = function(t) {
|
|
4798
4815
|
return /^[A-Z]{2}$/.test(t);
|
|
4799
4816
|
};
|
|
4800
|
-
function
|
|
4817
|
+
function vo(e, t) {
|
|
4801
4818
|
var r, n, i = new I(t);
|
|
4802
|
-
return
|
|
4819
|
+
return bo(e) ? (r = e, i.selectNumberingPlan(r), n = i.countryCallingCode()) : n = e, {
|
|
4803
4820
|
country: r,
|
|
4804
4821
|
countryCallingCode: n
|
|
4805
4822
|
};
|
|
4806
4823
|
}
|
|
4807
|
-
var
|
|
4808
|
-
function
|
|
4824
|
+
var Po = /^\+\d+$/;
|
|
4825
|
+
function Ne(e) {
|
|
4809
4826
|
"@babel/helpers - typeof";
|
|
4810
|
-
return
|
|
4827
|
+
return Ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4811
4828
|
return typeof t;
|
|
4812
4829
|
} : function(t) {
|
|
4813
4830
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4814
|
-
},
|
|
4831
|
+
}, Ne(e);
|
|
4815
4832
|
}
|
|
4816
|
-
function
|
|
4833
|
+
function wo(e, t, r) {
|
|
4817
4834
|
return Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4818
4835
|
}
|
|
4819
|
-
function
|
|
4836
|
+
function Co(e, t) {
|
|
4820
4837
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
4821
4838
|
}
|
|
4822
4839
|
function No(e, t, r) {
|
|
4823
|
-
return t =
|
|
4840
|
+
return t = Ct(t), xo(e, Ye() ? Reflect.construct(t, r || [], Ct(e).constructor) : t.apply(e, r));
|
|
4824
4841
|
}
|
|
4825
|
-
function
|
|
4826
|
-
if (t && (
|
|
4842
|
+
function xo(e, t) {
|
|
4843
|
+
if (t && (Ne(t) == "object" || typeof t == "function")) return t;
|
|
4827
4844
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
4828
|
-
return
|
|
4845
|
+
return So(e);
|
|
4829
4846
|
}
|
|
4830
|
-
function
|
|
4847
|
+
function So(e) {
|
|
4831
4848
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4832
4849
|
return e;
|
|
4833
4850
|
}
|
|
4834
|
-
function
|
|
4851
|
+
function Ao(e, t) {
|
|
4835
4852
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
4836
4853
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && wt(e, t);
|
|
4837
4854
|
}
|
|
4838
4855
|
function xe(e) {
|
|
4839
4856
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
4840
4857
|
return xe = function(n) {
|
|
4841
|
-
if (n === null || !
|
|
4858
|
+
if (n === null || !Eo(n)) return n;
|
|
4842
4859
|
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
4843
4860
|
if (t !== void 0) {
|
|
4844
4861
|
if (t.has(n)) return t.get(n);
|
|
4845
4862
|
t.set(n, i);
|
|
4846
4863
|
}
|
|
4847
4864
|
function i() {
|
|
4848
|
-
return
|
|
4865
|
+
return ko(n, arguments, Ct(this).constructor);
|
|
4849
4866
|
}
|
|
4850
4867
|
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), wt(i, n);
|
|
4851
4868
|
}, xe(e);
|
|
4852
4869
|
}
|
|
4853
|
-
function
|
|
4870
|
+
function ko(e, t, r) {
|
|
4854
4871
|
if (Ye()) return Reflect.construct.apply(null, arguments);
|
|
4855
4872
|
var n = [null];
|
|
4856
4873
|
n.push.apply(n, t);
|
|
@@ -4867,7 +4884,7 @@ function Ye() {
|
|
|
4867
4884
|
return !!e;
|
|
4868
4885
|
})();
|
|
4869
4886
|
}
|
|
4870
|
-
function
|
|
4887
|
+
function Eo(e) {
|
|
4871
4888
|
try {
|
|
4872
4889
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
4873
4890
|
} catch {
|
|
@@ -4879,19 +4896,19 @@ function wt(e, t) {
|
|
|
4879
4896
|
return r.__proto__ = n, r;
|
|
4880
4897
|
}, wt(e, t);
|
|
4881
4898
|
}
|
|
4882
|
-
function
|
|
4883
|
-
return
|
|
4899
|
+
function Ct(e) {
|
|
4900
|
+
return Ct = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
4884
4901
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
4885
|
-
},
|
|
4902
|
+
}, Ct(e);
|
|
4886
4903
|
}
|
|
4887
4904
|
var j = /* @__PURE__ */ function(e) {
|
|
4888
4905
|
function t(r) {
|
|
4889
4906
|
var n;
|
|
4890
|
-
return
|
|
4907
|
+
return Co(this, t), n = No(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
4891
4908
|
}
|
|
4892
|
-
return
|
|
4909
|
+
return Ao(t, e), wo(t);
|
|
4893
4910
|
}(/* @__PURE__ */ xe(Error)), mr = new RegExp("(?:" + wn() + ")$", "i");
|
|
4894
|
-
function
|
|
4911
|
+
function _o(e) {
|
|
4895
4912
|
var t = e.search(mr);
|
|
4896
4913
|
if (t < 0)
|
|
4897
4914
|
return {};
|
|
@@ -4904,10 +4921,10 @@ function Eo(e) {
|
|
|
4904
4921
|
i++;
|
|
4905
4922
|
}
|
|
4906
4923
|
}
|
|
4907
|
-
function
|
|
4924
|
+
function Io(e, t) {
|
|
4908
4925
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4909
4926
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
4910
|
-
if (Array.isArray(e) || (r =
|
|
4927
|
+
if (Array.isArray(e) || (r = To(e)) || t) {
|
|
4911
4928
|
r && (e = r);
|
|
4912
4929
|
var n = 0;
|
|
4913
4930
|
return function() {
|
|
@@ -4917,7 +4934,7 @@ function _o(e, t) {
|
|
|
4917
4934
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4918
4935
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4919
4936
|
}
|
|
4920
|
-
function
|
|
4937
|
+
function To(e, t) {
|
|
4921
4938
|
if (e) {
|
|
4922
4939
|
if (typeof e == "string") return $r(e, t);
|
|
4923
4940
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -4929,7 +4946,7 @@ function $r(e, t) {
|
|
|
4929
4946
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
4930
4947
|
return n;
|
|
4931
4948
|
}
|
|
4932
|
-
var
|
|
4949
|
+
var Mo = {
|
|
4933
4950
|
0: "0",
|
|
4934
4951
|
1: "1",
|
|
4935
4952
|
2: "2",
|
|
@@ -5002,19 +5019,19 @@ var To = {
|
|
|
5002
5019
|
// Eastern-Arabic digit 9
|
|
5003
5020
|
};
|
|
5004
5021
|
function xn(e) {
|
|
5005
|
-
return
|
|
5022
|
+
return Mo[e];
|
|
5006
5023
|
}
|
|
5007
5024
|
function zt(e) {
|
|
5008
|
-
for (var t = "", r =
|
|
5025
|
+
for (var t = "", r = Io(e.split("")), n; !(n = r()).done; ) {
|
|
5009
5026
|
var i = n.value, a = xn(i);
|
|
5010
5027
|
a && (t += a);
|
|
5011
5028
|
}
|
|
5012
5029
|
return t;
|
|
5013
5030
|
}
|
|
5014
|
-
function
|
|
5031
|
+
function Oo(e, t) {
|
|
5015
5032
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5016
5033
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
5017
|
-
if (Array.isArray(e) || (r =
|
|
5034
|
+
if (Array.isArray(e) || (r = Fo(e)) || t) {
|
|
5018
5035
|
r && (e = r);
|
|
5019
5036
|
var n = 0;
|
|
5020
5037
|
return function() {
|
|
@@ -5024,7 +5041,7 @@ function Mo(e, t) {
|
|
|
5024
5041
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5025
5042
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5026
5043
|
}
|
|
5027
|
-
function
|
|
5044
|
+
function Fo(e, t) {
|
|
5028
5045
|
if (e) {
|
|
5029
5046
|
if (typeof e == "string") return gr(e, t);
|
|
5030
5047
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -5037,17 +5054,17 @@ function gr(e, t) {
|
|
|
5037
5054
|
return n;
|
|
5038
5055
|
}
|
|
5039
5056
|
function yr(e) {
|
|
5040
|
-
for (var t = "", r =
|
|
5057
|
+
for (var t = "", r = Oo(e.split("")), n; !(n = r()).done; ) {
|
|
5041
5058
|
var i = n.value;
|
|
5042
|
-
t +=
|
|
5059
|
+
t += Do(i, t) || "";
|
|
5043
5060
|
}
|
|
5044
5061
|
return t;
|
|
5045
5062
|
}
|
|
5046
|
-
function
|
|
5063
|
+
function Do(e, t, r) {
|
|
5047
5064
|
return e === "+" ? t ? void 0 : "+" : xn(e);
|
|
5048
5065
|
}
|
|
5049
|
-
var Sn = "+",
|
|
5050
|
-
function
|
|
5066
|
+
var Sn = "+", Ro = "[\\-\\.\\(\\)]?", br = "([" + T + "]|" + Ro + ")", Lo = "^\\" + Sn + br + "*[" + T + "]" + br + "*$", Bo = new RegExp(Lo, "g"), Se = T, Uo = "[" + Se + "]+((\\-)*[" + Se + "])*", Ho = "a-zA-Z", jo = "[" + Ho + "]+((\\-)*[" + Se + "])*", Go = "^(" + Uo + "\\.)*" + jo + "\\.?$", Yo = new RegExp(Go, "g"), vr = "tel:", Ae = ";phone-context=", Vo = ";isub=";
|
|
5067
|
+
function zo(e) {
|
|
5051
5068
|
var t = e.indexOf(Ae);
|
|
5052
5069
|
if (t < 0)
|
|
5053
5070
|
return null;
|
|
@@ -5057,12 +5074,12 @@ function Vo(e) {
|
|
|
5057
5074
|
var n = e.indexOf(";", r);
|
|
5058
5075
|
return n >= 0 ? e.substring(r, n) : e.substring(r);
|
|
5059
5076
|
}
|
|
5060
|
-
function
|
|
5061
|
-
return e === null ? !0 : e.length === 0 ? !1 :
|
|
5077
|
+
function qo(e) {
|
|
5078
|
+
return e === null ? !0 : e.length === 0 ? !1 : Bo.test(e) || Yo.test(e);
|
|
5062
5079
|
}
|
|
5063
|
-
function
|
|
5064
|
-
var r = t.extractFormattedPhoneNumber, n =
|
|
5065
|
-
if (!
|
|
5080
|
+
function Ko(e, t) {
|
|
5081
|
+
var r = t.extractFormattedPhoneNumber, n = zo(e);
|
|
5082
|
+
if (!qo(n))
|
|
5066
5083
|
throw new j("NOT_A_NUMBER");
|
|
5067
5084
|
var i;
|
|
5068
5085
|
if (n === null)
|
|
@@ -5074,21 +5091,21 @@ function qo(e, t) {
|
|
|
5074
5091
|
var s = e.indexOf(Ae);
|
|
5075
5092
|
i += e.substring(o, s);
|
|
5076
5093
|
}
|
|
5077
|
-
var d = i.indexOf(
|
|
5094
|
+
var d = i.indexOf(Vo);
|
|
5078
5095
|
if (d > 0 && (i = i.substring(0, d)), i !== "")
|
|
5079
5096
|
return i;
|
|
5080
5097
|
}
|
|
5081
|
-
var
|
|
5082
|
-
function
|
|
5098
|
+
var Wo = 250, Qo = new RegExp("[" + re + T + "]"), Jo = new RegExp("[^" + T + "#]+$");
|
|
5099
|
+
function Xo(e, t, r) {
|
|
5083
5100
|
if (t = t || {}, r = new I(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
|
|
5084
5101
|
throw t.v2 ? new j("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
|
|
5085
|
-
var n =
|
|
5102
|
+
var n = ts(e, t.v2, t.extract), i = n.number, a = n.ext, o = n.error;
|
|
5086
5103
|
if (!i) {
|
|
5087
5104
|
if (t.v2)
|
|
5088
5105
|
throw o === "TOO_SHORT" ? new j("TOO_SHORT") : new j("NOT_A_NUMBER");
|
|
5089
5106
|
return {};
|
|
5090
5107
|
}
|
|
5091
|
-
var s =
|
|
5108
|
+
var s = rs(i, t.defaultCountry, t.defaultCallingCode, r), d = s.country, l = s.nationalNumber, c = s.countryCallingCode, h = s.countryCallingCodeSource, u = s.carrierCode;
|
|
5092
5109
|
if (!r.hasSelectedNumberingPlan()) {
|
|
5093
5110
|
if (t.v2)
|
|
5094
5111
|
throw new j("INVALID_COUNTRY");
|
|
@@ -5099,13 +5116,13 @@ function Jo(e, t, r) {
|
|
|
5099
5116
|
throw new j("TOO_SHORT");
|
|
5100
5117
|
return {};
|
|
5101
5118
|
}
|
|
5102
|
-
if (l.length >
|
|
5119
|
+
if (l.length > La) {
|
|
5103
5120
|
if (t.v2)
|
|
5104
5121
|
throw new j("TOO_LONG");
|
|
5105
5122
|
return {};
|
|
5106
5123
|
}
|
|
5107
5124
|
if (t.v2) {
|
|
5108
|
-
var m = new
|
|
5125
|
+
var m = new Nn(c, l, r.metadata);
|
|
5109
5126
|
return d && (m.country = d), u && (m.carrierCode = u), a && (m.ext = a), m.__countryCallingCodeSource = h, m;
|
|
5110
5127
|
}
|
|
5111
5128
|
var f = (t.extended ? r.hasSelectedNumberingPlan() : d) ? G(l, r.nationalNumberPattern()) : !1;
|
|
@@ -5117,47 +5134,47 @@ function Jo(e, t, r) {
|
|
|
5117
5134
|
possible: f ? !0 : !!(t.extended === !0 && r.possibleLengths() && mn(l, d, r)),
|
|
5118
5135
|
phone: l,
|
|
5119
5136
|
ext: a
|
|
5120
|
-
} : f ?
|
|
5137
|
+
} : f ? es(d, l, a) : {};
|
|
5121
5138
|
}
|
|
5122
|
-
function
|
|
5139
|
+
function Zo(e, t, r) {
|
|
5123
5140
|
if (e) {
|
|
5124
|
-
if (e.length >
|
|
5141
|
+
if (e.length > Wo) {
|
|
5125
5142
|
if (r)
|
|
5126
5143
|
throw new j("TOO_LONG");
|
|
5127
5144
|
return;
|
|
5128
5145
|
}
|
|
5129
5146
|
if (t === !1)
|
|
5130
5147
|
return e;
|
|
5131
|
-
var n = e.search(
|
|
5148
|
+
var n = e.search(Qo);
|
|
5132
5149
|
if (!(n < 0))
|
|
5133
|
-
return e.slice(n).replace(
|
|
5150
|
+
return e.slice(n).replace(Jo, "");
|
|
5134
5151
|
}
|
|
5135
5152
|
}
|
|
5136
|
-
function
|
|
5137
|
-
var n =
|
|
5153
|
+
function ts(e, t, r) {
|
|
5154
|
+
var n = Ko(e, {
|
|
5138
5155
|
extractFormattedPhoneNumber: function(o) {
|
|
5139
|
-
return
|
|
5156
|
+
return Zo(o, r, t);
|
|
5140
5157
|
}
|
|
5141
5158
|
});
|
|
5142
5159
|
if (!n)
|
|
5143
5160
|
return {};
|
|
5144
|
-
if (!
|
|
5145
|
-
return
|
|
5161
|
+
if (!ao(n))
|
|
5162
|
+
return oo(n) ? {
|
|
5146
5163
|
error: "TOO_SHORT"
|
|
5147
5164
|
} : {};
|
|
5148
|
-
var i =
|
|
5165
|
+
var i = _o(n);
|
|
5149
5166
|
return i.ext ? i : {
|
|
5150
5167
|
number: n
|
|
5151
5168
|
};
|
|
5152
5169
|
}
|
|
5153
|
-
function
|
|
5170
|
+
function es(e, t, r) {
|
|
5154
5171
|
var n = {
|
|
5155
5172
|
country: e,
|
|
5156
5173
|
phone: t
|
|
5157
5174
|
};
|
|
5158
5175
|
return r && (n.ext = r), n;
|
|
5159
5176
|
}
|
|
5160
|
-
function
|
|
5177
|
+
function rs(e, t, r, n) {
|
|
5161
5178
|
var i = Ge(yr(e), void 0, t, r, n.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, d;
|
|
5162
5179
|
if (o)
|
|
5163
5180
|
n.selectNumberingPlan(o);
|
|
@@ -5169,7 +5186,7 @@ function es(e, t, r, n) {
|
|
|
5169
5186
|
countryCallingCodeSource: a,
|
|
5170
5187
|
countryCallingCode: o
|
|
5171
5188
|
};
|
|
5172
|
-
var l =
|
|
5189
|
+
var l = Ce(yr(s), d, n), c = l.nationalNumber, h = l.carrierCode, u = je(o, {
|
|
5173
5190
|
nationalNumber: c,
|
|
5174
5191
|
metadata: n
|
|
5175
5192
|
});
|
|
@@ -5181,13 +5198,13 @@ function es(e, t, r, n) {
|
|
|
5181
5198
|
carrierCode: h
|
|
5182
5199
|
};
|
|
5183
5200
|
}
|
|
5184
|
-
function
|
|
5201
|
+
function Nt(e) {
|
|
5185
5202
|
"@babel/helpers - typeof";
|
|
5186
|
-
return
|
|
5203
|
+
return Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
5187
5204
|
return typeof t;
|
|
5188
5205
|
} : function(t) {
|
|
5189
5206
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5190
|
-
},
|
|
5207
|
+
}, Nt(e);
|
|
5191
5208
|
}
|
|
5192
5209
|
function Pr(e, t) {
|
|
5193
5210
|
var r = Object.keys(e);
|
|
@@ -5203,32 +5220,32 @@ function wr(e) {
|
|
|
5203
5220
|
for (var t = 1; t < arguments.length; t++) {
|
|
5204
5221
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
5205
5222
|
t % 2 ? Pr(Object(r), !0).forEach(function(n) {
|
|
5206
|
-
|
|
5223
|
+
ns(e, n, r[n]);
|
|
5207
5224
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pr(Object(r)).forEach(function(n) {
|
|
5208
5225
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5209
5226
|
});
|
|
5210
5227
|
}
|
|
5211
5228
|
return e;
|
|
5212
5229
|
}
|
|
5213
|
-
function
|
|
5214
|
-
return (t =
|
|
5230
|
+
function ns(e, t, r) {
|
|
5231
|
+
return (t = is(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
5215
5232
|
}
|
|
5216
|
-
function
|
|
5217
|
-
var t =
|
|
5218
|
-
return
|
|
5233
|
+
function is(e) {
|
|
5234
|
+
var t = as(e, "string");
|
|
5235
|
+
return Nt(t) == "symbol" ? t : t + "";
|
|
5219
5236
|
}
|
|
5220
|
-
function
|
|
5221
|
-
if (
|
|
5237
|
+
function as(e, t) {
|
|
5238
|
+
if (Nt(e) != "object" || !e) return e;
|
|
5222
5239
|
var r = e[Symbol.toPrimitive];
|
|
5223
5240
|
if (r !== void 0) {
|
|
5224
5241
|
var n = r.call(e, t);
|
|
5225
|
-
if (
|
|
5242
|
+
if (Nt(n) != "object") return n;
|
|
5226
5243
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5227
5244
|
}
|
|
5228
5245
|
return (t === "string" ? String : Number)(e);
|
|
5229
5246
|
}
|
|
5230
5247
|
function An(e, t, r) {
|
|
5231
|
-
return
|
|
5248
|
+
return Xo(e, wr(wr({}, t), {}, {
|
|
5232
5249
|
v2: !0
|
|
5233
5250
|
}), r);
|
|
5234
5251
|
}
|
|
@@ -5240,7 +5257,7 @@ function xt(e) {
|
|
|
5240
5257
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5241
5258
|
}, xt(e);
|
|
5242
5259
|
}
|
|
5243
|
-
function
|
|
5260
|
+
function Cr(e, t) {
|
|
5244
5261
|
var r = Object.keys(e);
|
|
5245
5262
|
if (Object.getOwnPropertySymbols) {
|
|
5246
5263
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -5250,25 +5267,25 @@ function Nr(e, t) {
|
|
|
5250
5267
|
}
|
|
5251
5268
|
return r;
|
|
5252
5269
|
}
|
|
5253
|
-
function
|
|
5270
|
+
function os(e) {
|
|
5254
5271
|
for (var t = 1; t < arguments.length; t++) {
|
|
5255
5272
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
5256
|
-
t % 2 ?
|
|
5257
|
-
|
|
5258
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
5273
|
+
t % 2 ? Cr(Object(r), !0).forEach(function(n) {
|
|
5274
|
+
ss(e, n, r[n]);
|
|
5275
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Cr(Object(r)).forEach(function(n) {
|
|
5259
5276
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5260
5277
|
});
|
|
5261
5278
|
}
|
|
5262
5279
|
return e;
|
|
5263
5280
|
}
|
|
5264
|
-
function
|
|
5265
|
-
return (t =
|
|
5281
|
+
function ss(e, t, r) {
|
|
5282
|
+
return (t = ds(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
5266
5283
|
}
|
|
5267
|
-
function
|
|
5268
|
-
var t =
|
|
5284
|
+
function ds(e) {
|
|
5285
|
+
var t = ls(e, "string");
|
|
5269
5286
|
return xt(t) == "symbol" ? t : t + "";
|
|
5270
5287
|
}
|
|
5271
|
-
function
|
|
5288
|
+
function ls(e, t) {
|
|
5272
5289
|
if (xt(e) != "object" || !e) return e;
|
|
5273
5290
|
var r = e[Symbol.toPrimitive];
|
|
5274
5291
|
if (r !== void 0) {
|
|
@@ -5278,26 +5295,26 @@ function ds(e, t) {
|
|
|
5278
5295
|
}
|
|
5279
5296
|
return (t === "string" ? String : Number)(e);
|
|
5280
5297
|
}
|
|
5281
|
-
function
|
|
5282
|
-
return
|
|
5298
|
+
function cs(e, t) {
|
|
5299
|
+
return fs(e) || ps(e, t) || hs(e, t) || us();
|
|
5283
5300
|
}
|
|
5284
|
-
function
|
|
5301
|
+
function us() {
|
|
5285
5302
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5286
5303
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5287
5304
|
}
|
|
5288
|
-
function
|
|
5305
|
+
function hs(e, t) {
|
|
5289
5306
|
if (e) {
|
|
5290
|
-
if (typeof e == "string") return
|
|
5307
|
+
if (typeof e == "string") return Nr(e, t);
|
|
5291
5308
|
var r = {}.toString.call(e).slice(8, -1);
|
|
5292
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
5309
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Nr(e, t) : void 0;
|
|
5293
5310
|
}
|
|
5294
5311
|
}
|
|
5295
|
-
function
|
|
5312
|
+
function Nr(e, t) {
|
|
5296
5313
|
(t == null || t > e.length) && (t = e.length);
|
|
5297
5314
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
5298
5315
|
return n;
|
|
5299
5316
|
}
|
|
5300
|
-
function
|
|
5317
|
+
function ps(e, t) {
|
|
5301
5318
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5302
5319
|
if (r != null) {
|
|
5303
5320
|
var n, i, a, o, s = [], d = !0, l = !1;
|
|
@@ -5315,16 +5332,16 @@ function hs(e, t) {
|
|
|
5315
5332
|
return s;
|
|
5316
5333
|
}
|
|
5317
5334
|
}
|
|
5318
|
-
function
|
|
5335
|
+
function fs(e) {
|
|
5319
5336
|
if (Array.isArray(e)) return e;
|
|
5320
5337
|
}
|
|
5321
5338
|
function kn(e) {
|
|
5322
|
-
var t = Array.prototype.slice.call(e), r =
|
|
5339
|
+
var t = Array.prototype.slice.call(e), r = cs(t, 4), n = r[0], i = r[1], a = r[2], o = r[3], s, d, l;
|
|
5323
5340
|
if (typeof n == "string")
|
|
5324
5341
|
s = n;
|
|
5325
5342
|
else throw new TypeError("A text for parsing must be a string.");
|
|
5326
5343
|
if (!i || typeof i == "string")
|
|
5327
|
-
o ? (d = a, l = o) : (d = void 0, l = a), i && (d =
|
|
5344
|
+
o ? (d = a, l = o) : (d = void 0, l = a), i && (d = os({
|
|
5328
5345
|
defaultCountry: i
|
|
5329
5346
|
}, d));
|
|
5330
5347
|
else if (Z(i))
|
|
@@ -5336,7 +5353,7 @@ function kn(e) {
|
|
|
5336
5353
|
metadata: l
|
|
5337
5354
|
};
|
|
5338
5355
|
}
|
|
5339
|
-
function
|
|
5356
|
+
function ms() {
|
|
5340
5357
|
var e = kn(arguments), t = e.text, r = e.options, n = e.metadata;
|
|
5341
5358
|
return An(t, r, n);
|
|
5342
5359
|
}
|
|
@@ -5362,21 +5379,21 @@ function Sr(e) {
|
|
|
5362
5379
|
for (var t = 1; t < arguments.length; t++) {
|
|
5363
5380
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
5364
5381
|
t % 2 ? xr(Object(r), !0).forEach(function(n) {
|
|
5365
|
-
|
|
5382
|
+
$s(e, n, r[n]);
|
|
5366
5383
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xr(Object(r)).forEach(function(n) {
|
|
5367
5384
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5368
5385
|
});
|
|
5369
5386
|
}
|
|
5370
5387
|
return e;
|
|
5371
5388
|
}
|
|
5372
|
-
function
|
|
5373
|
-
return (t =
|
|
5389
|
+
function $s(e, t, r) {
|
|
5390
|
+
return (t = gs(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
5374
5391
|
}
|
|
5375
|
-
function
|
|
5376
|
-
var t =
|
|
5392
|
+
function gs(e) {
|
|
5393
|
+
var t = ys(e, "string");
|
|
5377
5394
|
return St(t) == "symbol" ? t : t + "";
|
|
5378
5395
|
}
|
|
5379
|
-
function
|
|
5396
|
+
function ys(e, t) {
|
|
5380
5397
|
if (St(e) != "object" || !e) return e;
|
|
5381
5398
|
var r = e[Symbol.toPrimitive];
|
|
5382
5399
|
if (r !== void 0) {
|
|
@@ -5386,8 +5403,8 @@ function gs(e, t) {
|
|
|
5386
5403
|
}
|
|
5387
5404
|
return (t === "string" ? String : Number)(e);
|
|
5388
5405
|
}
|
|
5389
|
-
function
|
|
5390
|
-
t && t.defaultCountry && !
|
|
5406
|
+
function bs(e, t, r) {
|
|
5407
|
+
t && t.defaultCountry && !Ea(t.defaultCountry, r) && (t = Sr(Sr({}, t), {}, {
|
|
5391
5408
|
defaultCountry: void 0
|
|
5392
5409
|
}));
|
|
5393
5410
|
try {
|
|
@@ -5418,21 +5435,21 @@ function kr(e) {
|
|
|
5418
5435
|
for (var t = 1; t < arguments.length; t++) {
|
|
5419
5436
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
5420
5437
|
t % 2 ? Ar(Object(r), !0).forEach(function(n) {
|
|
5421
|
-
|
|
5438
|
+
vs(e, n, r[n]);
|
|
5422
5439
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ar(Object(r)).forEach(function(n) {
|
|
5423
5440
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5424
5441
|
});
|
|
5425
5442
|
}
|
|
5426
5443
|
return e;
|
|
5427
5444
|
}
|
|
5428
|
-
function
|
|
5429
|
-
return (t =
|
|
5445
|
+
function vs(e, t, r) {
|
|
5446
|
+
return (t = Ps(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
5430
5447
|
}
|
|
5431
|
-
function
|
|
5432
|
-
var t =
|
|
5448
|
+
function Ps(e) {
|
|
5449
|
+
var t = ws(e, "string");
|
|
5433
5450
|
return At(t) == "symbol" ? t : t + "";
|
|
5434
5451
|
}
|
|
5435
|
-
function
|
|
5452
|
+
function ws(e, t) {
|
|
5436
5453
|
if (At(e) != "object" || !e) return e;
|
|
5437
5454
|
var r = e[Symbol.toPrimitive];
|
|
5438
5455
|
if (r !== void 0) {
|
|
@@ -5442,12 +5459,12 @@ function Ps(e, t) {
|
|
|
5442
5459
|
}
|
|
5443
5460
|
return (t === "string" ? String : Number)(e);
|
|
5444
5461
|
}
|
|
5445
|
-
function
|
|
5462
|
+
function Cs() {
|
|
5446
5463
|
var e = kn(arguments), t = e.text, r = e.options, n = e.metadata;
|
|
5447
5464
|
r = kr(kr({}, r), {}, {
|
|
5448
5465
|
extract: !1
|
|
5449
5466
|
});
|
|
5450
|
-
var i =
|
|
5467
|
+
var i = bs(t, r, n);
|
|
5451
5468
|
return i && i.isValid() || !1;
|
|
5452
5469
|
}
|
|
5453
5470
|
function kt(e) {
|
|
@@ -5461,20 +5478,20 @@ function kt(e) {
|
|
|
5461
5478
|
function Ns(e, t) {
|
|
5462
5479
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
5463
5480
|
}
|
|
5464
|
-
function
|
|
5481
|
+
function xs(e, t) {
|
|
5465
5482
|
for (var r = 0; r < t.length; r++) {
|
|
5466
5483
|
var n = t[r];
|
|
5467
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
5484
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, As(n.key), n);
|
|
5468
5485
|
}
|
|
5469
5486
|
}
|
|
5470
|
-
function
|
|
5471
|
-
return t &&
|
|
5487
|
+
function Ss(e, t, r) {
|
|
5488
|
+
return t && xs(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5472
5489
|
}
|
|
5473
|
-
function
|
|
5474
|
-
var t =
|
|
5490
|
+
function As(e) {
|
|
5491
|
+
var t = ks(e, "string");
|
|
5475
5492
|
return kt(t) == "symbol" ? t : t + "";
|
|
5476
5493
|
}
|
|
5477
|
-
function
|
|
5494
|
+
function ks(e, t) {
|
|
5478
5495
|
if (kt(e) != "object" || !e) return e;
|
|
5479
5496
|
var r = e[Symbol.toPrimitive];
|
|
5480
5497
|
if (r !== void 0) {
|
|
@@ -5484,12 +5501,12 @@ function As(e, t) {
|
|
|
5484
5501
|
}
|
|
5485
5502
|
return String(e);
|
|
5486
5503
|
}
|
|
5487
|
-
var
|
|
5504
|
+
var Es = /* @__PURE__ */ function() {
|
|
5488
5505
|
function e(t) {
|
|
5489
5506
|
var r = t.onCountryChange, n = t.onCallingCodeChange;
|
|
5490
5507
|
Ns(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
|
|
5491
5508
|
}
|
|
5492
|
-
return
|
|
5509
|
+
return Ss(e, [{
|
|
5493
5510
|
key: "reset",
|
|
5494
5511
|
value: function(r) {
|
|
5495
5512
|
var n = r.country, i = r.callingCode;
|
|
@@ -5557,10 +5574,10 @@ var ks = /* @__PURE__ */ function() {
|
|
|
5557
5574
|
}
|
|
5558
5575
|
}]);
|
|
5559
5576
|
}();
|
|
5560
|
-
function
|
|
5577
|
+
function _s(e, t) {
|
|
5561
5578
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5562
5579
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
5563
|
-
if (Array.isArray(e) || (r =
|
|
5580
|
+
if (Array.isArray(e) || (r = Is(e)) || t) {
|
|
5564
5581
|
r && (e = r);
|
|
5565
5582
|
var n = 0;
|
|
5566
5583
|
return function() {
|
|
@@ -5570,7 +5587,7 @@ function Es(e, t) {
|
|
|
5570
5587
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5571
5588
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5572
5589
|
}
|
|
5573
|
-
function
|
|
5590
|
+
function Is(e, t) {
|
|
5574
5591
|
if (e) {
|
|
5575
5592
|
if (typeof e == "string") return Er(e, t);
|
|
5576
5593
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -5591,9 +5608,9 @@ function Ut(e, t) {
|
|
|
5591
5608
|
return r + e;
|
|
5592
5609
|
}
|
|
5593
5610
|
function _r(e, t) {
|
|
5594
|
-
return e[t] === ")" && t++,
|
|
5611
|
+
return e[t] === ")" && t++, Ts(e.slice(0, t));
|
|
5595
5612
|
}
|
|
5596
|
-
function
|
|
5613
|
+
function Ts(e) {
|
|
5597
5614
|
for (var t = [], r = 0; r < e.length; )
|
|
5598
5615
|
e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
|
|
5599
5616
|
var n = 0, i = "";
|
|
@@ -5604,8 +5621,8 @@ function Is(e) {
|
|
|
5604
5621
|
}
|
|
5605
5622
|
return i;
|
|
5606
5623
|
}
|
|
5607
|
-
function
|
|
5608
|
-
for (var n =
|
|
5624
|
+
function Ms(e, t, r) {
|
|
5625
|
+
for (var n = _s(r.split("")), i; !(i = n()).done; ) {
|
|
5609
5626
|
var a = i.value;
|
|
5610
5627
|
if (e.slice(t + 1).search(me) < 0)
|
|
5611
5628
|
return;
|
|
@@ -5613,19 +5630,19 @@ function Ts(e, t, r) {
|
|
|
5613
5630
|
}
|
|
5614
5631
|
return [e, t];
|
|
5615
5632
|
}
|
|
5616
|
-
function
|
|
5633
|
+
function Os(e, t, r) {
|
|
5617
5634
|
var n = r.metadata, i = r.shouldTryNationalPrefixFormattingRule, a = r.getSeparatorAfterNationalPrefix, o = new RegExp("^(?:".concat(t.pattern(), ")$"));
|
|
5618
5635
|
if (o.test(e.nationalSignificantNumber))
|
|
5619
|
-
return
|
|
5636
|
+
return Ds(e, t, {
|
|
5620
5637
|
metadata: n,
|
|
5621
5638
|
shouldTryNationalPrefixFormattingRule: i,
|
|
5622
5639
|
getSeparatorAfterNationalPrefix: a
|
|
5623
5640
|
});
|
|
5624
5641
|
}
|
|
5625
|
-
function
|
|
5642
|
+
function Fs(e, t, r) {
|
|
5626
5643
|
return ee(e, t, r) === "IS_POSSIBLE";
|
|
5627
5644
|
}
|
|
5628
|
-
function
|
|
5645
|
+
function Ds(e, t, r) {
|
|
5629
5646
|
var n = r.metadata, i = r.shouldTryNationalPrefixFormattingRule, a = r.getSeparatorAfterNationalPrefix;
|
|
5630
5647
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
5631
5648
|
var o = Ir(e, t, {
|
|
@@ -5649,10 +5666,10 @@ function Ir(e, t, r) {
|
|
|
5649
5666
|
withNationalPrefix: i,
|
|
5650
5667
|
metadata: n
|
|
5651
5668
|
});
|
|
5652
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
5669
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), Rs(o, e))
|
|
5653
5670
|
return o;
|
|
5654
5671
|
}
|
|
5655
|
-
function
|
|
5672
|
+
function Rs(e, t) {
|
|
5656
5673
|
return zt(e) === t.getNationalDigits();
|
|
5657
5674
|
}
|
|
5658
5675
|
function Et(e) {
|
|
@@ -5663,23 +5680,23 @@ function Et(e) {
|
|
|
5663
5680
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5664
5681
|
}, Et(e);
|
|
5665
5682
|
}
|
|
5666
|
-
function
|
|
5683
|
+
function Ls(e, t) {
|
|
5667
5684
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
5668
5685
|
}
|
|
5669
|
-
function
|
|
5686
|
+
function Bs(e, t) {
|
|
5670
5687
|
for (var r = 0; r < t.length; r++) {
|
|
5671
5688
|
var n = t[r];
|
|
5672
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
5689
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Hs(n.key), n);
|
|
5673
5690
|
}
|
|
5674
5691
|
}
|
|
5675
|
-
function
|
|
5676
|
-
return t &&
|
|
5692
|
+
function Us(e, t, r) {
|
|
5693
|
+
return t && Bs(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5677
5694
|
}
|
|
5678
|
-
function
|
|
5679
|
-
var t =
|
|
5695
|
+
function Hs(e) {
|
|
5696
|
+
var t = js(e, "string");
|
|
5680
5697
|
return Et(t) == "symbol" ? t : t + "";
|
|
5681
5698
|
}
|
|
5682
|
-
function
|
|
5699
|
+
function js(e, t) {
|
|
5683
5700
|
if (Et(e) != "object" || !e) return e;
|
|
5684
5701
|
var r = e[Symbol.toPrimitive];
|
|
5685
5702
|
if (r !== void 0) {
|
|
@@ -5689,11 +5706,11 @@ function Hs(e, t) {
|
|
|
5689
5706
|
}
|
|
5690
5707
|
return String(e);
|
|
5691
5708
|
}
|
|
5692
|
-
var
|
|
5709
|
+
var Gs = /* @__PURE__ */ function() {
|
|
5693
5710
|
function e() {
|
|
5694
|
-
|
|
5711
|
+
Ls(this, e);
|
|
5695
5712
|
}
|
|
5696
|
-
return
|
|
5713
|
+
return Us(e, [{
|
|
5697
5714
|
key: "parse",
|
|
5698
5715
|
value: function(r) {
|
|
5699
5716
|
if (this.context = [{
|
|
@@ -5731,9 +5748,9 @@ var js = /* @__PURE__ */ function() {
|
|
|
5731
5748
|
value: function(r) {
|
|
5732
5749
|
if (!r)
|
|
5733
5750
|
throw new Error("Pattern is required");
|
|
5734
|
-
var n = r.match(
|
|
5751
|
+
var n = r.match(zs);
|
|
5735
5752
|
if (!n) {
|
|
5736
|
-
if (
|
|
5753
|
+
if (Vs.test(r))
|
|
5737
5754
|
throw new Error("Illegal characters found in a pattern: ".concat(r));
|
|
5738
5755
|
this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
|
|
5739
5756
|
return;
|
|
@@ -5778,7 +5795,7 @@ var js = /* @__PURE__ */ function() {
|
|
|
5778
5795
|
throw new Error('"]" operator must be preceded by "[" operator');
|
|
5779
5796
|
this.endContext(), this.getContext().instructions.push({
|
|
5780
5797
|
op: "[]",
|
|
5781
|
-
args:
|
|
5798
|
+
args: Ys(a)
|
|
5782
5799
|
});
|
|
5783
5800
|
break;
|
|
5784
5801
|
default:
|
|
@@ -5788,7 +5805,7 @@ var js = /* @__PURE__ */ function() {
|
|
|
5788
5805
|
}
|
|
5789
5806
|
}]);
|
|
5790
5807
|
}();
|
|
5791
|
-
function
|
|
5808
|
+
function Ys(e) {
|
|
5792
5809
|
for (var t = [], r = 0; r < e.length; ) {
|
|
5793
5810
|
if (e[r] === "-") {
|
|
5794
5811
|
if (r === 0 || r === e.length - 1)
|
|
@@ -5801,7 +5818,7 @@ function Gs(e) {
|
|
|
5801
5818
|
}
|
|
5802
5819
|
return t;
|
|
5803
5820
|
}
|
|
5804
|
-
var
|
|
5821
|
+
var Vs = /[\(\)\[\]\?\:\|]/, zs = new RegExp(
|
|
5805
5822
|
// any of:
|
|
5806
5823
|
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
5807
5824
|
);
|
|
@@ -5811,7 +5828,7 @@ function $e(e) {
|
|
|
5811
5828
|
function Tr(e, t) {
|
|
5812
5829
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5813
5830
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
5814
|
-
if (Array.isArray(e) || (r =
|
|
5831
|
+
if (Array.isArray(e) || (r = qs(e)) || t) {
|
|
5815
5832
|
r && (e = r);
|
|
5816
5833
|
var n = 0;
|
|
5817
5834
|
return function() {
|
|
@@ -5821,7 +5838,7 @@ function Tr(e, t) {
|
|
|
5821
5838
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5822
5839
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5823
5840
|
}
|
|
5824
|
-
function
|
|
5841
|
+
function qs(e, t) {
|
|
5825
5842
|
if (e) {
|
|
5826
5843
|
if (typeof e == "string") return Mr(e, t);
|
|
5827
5844
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -5841,23 +5858,23 @@ function _t(e) {
|
|
|
5841
5858
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5842
5859
|
}, _t(e);
|
|
5843
5860
|
}
|
|
5844
|
-
function
|
|
5861
|
+
function Ks(e, t) {
|
|
5845
5862
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
5846
5863
|
}
|
|
5847
|
-
function
|
|
5864
|
+
function Ws(e, t) {
|
|
5848
5865
|
for (var r = 0; r < t.length; r++) {
|
|
5849
5866
|
var n = t[r];
|
|
5850
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
5867
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Js(n.key), n);
|
|
5851
5868
|
}
|
|
5852
5869
|
}
|
|
5853
|
-
function
|
|
5854
|
-
return t &&
|
|
5870
|
+
function Qs(e, t, r) {
|
|
5871
|
+
return t && Ws(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5855
5872
|
}
|
|
5856
|
-
function
|
|
5857
|
-
var t =
|
|
5873
|
+
function Js(e) {
|
|
5874
|
+
var t = Xs(e, "string");
|
|
5858
5875
|
return _t(t) == "symbol" ? t : t + "";
|
|
5859
5876
|
}
|
|
5860
|
-
function
|
|
5877
|
+
function Xs(e, t) {
|
|
5861
5878
|
if (_t(e) != "object" || !e) return e;
|
|
5862
5879
|
var r = e[Symbol.toPrimitive];
|
|
5863
5880
|
if (r !== void 0) {
|
|
@@ -5867,11 +5884,11 @@ function Js(e, t) {
|
|
|
5867
5884
|
}
|
|
5868
5885
|
return String(e);
|
|
5869
5886
|
}
|
|
5870
|
-
var
|
|
5887
|
+
var Zs = /* @__PURE__ */ function() {
|
|
5871
5888
|
function e(t) {
|
|
5872
|
-
|
|
5889
|
+
Ks(this, e), this.matchTree = new Gs().parse(t);
|
|
5873
5890
|
}
|
|
5874
|
-
return
|
|
5891
|
+
return Qs(e, [{
|
|
5875
5892
|
key: "match",
|
|
5876
5893
|
value: function(r) {
|
|
5877
5894
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.allowOverflow;
|
|
@@ -5986,7 +6003,7 @@ function It(e) {
|
|
|
5986
6003
|
function Or(e, t) {
|
|
5987
6004
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5988
6005
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
5989
|
-
if (Array.isArray(e) || (r =
|
|
6006
|
+
if (Array.isArray(e) || (r = td(e)) || t) {
|
|
5990
6007
|
r && (e = r);
|
|
5991
6008
|
var n = 0;
|
|
5992
6009
|
return function() {
|
|
@@ -5996,7 +6013,7 @@ function Or(e, t) {
|
|
|
5996
6013
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5997
6014
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5998
6015
|
}
|
|
5999
|
-
function
|
|
6016
|
+
function td(e, t) {
|
|
6000
6017
|
if (e) {
|
|
6001
6018
|
if (typeof e == "string") return Fr(e, t);
|
|
6002
6019
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -6008,23 +6025,23 @@ function Fr(e, t) {
|
|
|
6008
6025
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
6009
6026
|
return n;
|
|
6010
6027
|
}
|
|
6011
|
-
function
|
|
6028
|
+
function ed(e, t) {
|
|
6012
6029
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
6013
6030
|
}
|
|
6014
|
-
function
|
|
6031
|
+
function rd(e, t) {
|
|
6015
6032
|
for (var r = 0; r < t.length; r++) {
|
|
6016
6033
|
var n = t[r];
|
|
6017
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
6034
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, id(n.key), n);
|
|
6018
6035
|
}
|
|
6019
6036
|
}
|
|
6020
|
-
function
|
|
6021
|
-
return t &&
|
|
6037
|
+
function nd(e, t, r) {
|
|
6038
|
+
return t && rd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
6022
6039
|
}
|
|
6023
|
-
function
|
|
6024
|
-
var t =
|
|
6040
|
+
function id(e) {
|
|
6041
|
+
var t = ad(e, "string");
|
|
6025
6042
|
return It(t) == "symbol" ? t : t + "";
|
|
6026
6043
|
}
|
|
6027
|
-
function
|
|
6044
|
+
function ad(e, t) {
|
|
6028
6045
|
if (It(e) != "object" || !e) return e;
|
|
6029
6046
|
var r = e[Symbol.toPrimitive];
|
|
6030
6047
|
if (r !== void 0) {
|
|
@@ -6034,17 +6051,17 @@ function id(e, t) {
|
|
|
6034
6051
|
}
|
|
6035
6052
|
return String(e);
|
|
6036
6053
|
}
|
|
6037
|
-
var Ee = "9",
|
|
6054
|
+
var Ee = "9", od = 15, sd = Ut(Ee, od), dd = /[- ]/, ld = function() {
|
|
6038
6055
|
return /\[([^\[\]])*\]/g;
|
|
6039
|
-
},
|
|
6056
|
+
}, cd = function() {
|
|
6040
6057
|
return /\d(?=[^,}][^,}])/g;
|
|
6041
|
-
},
|
|
6058
|
+
}, ud = new RegExp("[" + L + "]*\\$1[" + L + "]*(\\$\\d[" + L + "]*)*$"), Dr = 3, hd = /* @__PURE__ */ function() {
|
|
6042
6059
|
function e(t) {
|
|
6043
6060
|
t.state;
|
|
6044
6061
|
var r = t.metadata;
|
|
6045
|
-
|
|
6062
|
+
ed(this, e), this.metadata = r, this.resetFormat();
|
|
6046
6063
|
}
|
|
6047
|
-
return
|
|
6064
|
+
return nd(e, [{
|
|
6048
6065
|
key: "resetFormat",
|
|
6049
6066
|
value: function() {
|
|
6050
6067
|
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
@@ -6064,9 +6081,9 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6064
6081
|
key: "format",
|
|
6065
6082
|
value: function(r, n) {
|
|
6066
6083
|
var i = this;
|
|
6067
|
-
if (
|
|
6084
|
+
if (Fs(n.nationalSignificantNumber, n.country, this.metadata))
|
|
6068
6085
|
for (var a = Or(this.matchingFormats), o; !(o = a()).done; ) {
|
|
6069
|
-
var s = o.value, d =
|
|
6086
|
+
var s = o.value, d = Os(n, s, {
|
|
6070
6087
|
metadata: this.metadata,
|
|
6071
6088
|
shouldTryNationalPrefixFormattingRule: function(c) {
|
|
6072
6089
|
return i.shouldTryNationalPrefixFormattingRule(c, {
|
|
@@ -6115,7 +6132,7 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6115
6132
|
var o = r.leadingDigitsPatterns()[i];
|
|
6116
6133
|
if (n.length < Dr)
|
|
6117
6134
|
try {
|
|
6118
|
-
return new
|
|
6135
|
+
return new Zs(o).match(n, {
|
|
6119
6136
|
allowOverflow: !0
|
|
6120
6137
|
}) !== void 0;
|
|
6121
6138
|
} catch (s) {
|
|
@@ -6133,7 +6150,7 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6133
6150
|
value: function(r) {
|
|
6134
6151
|
for (var n = this, i = function() {
|
|
6135
6152
|
var l = s.value;
|
|
6136
|
-
return n.chosenFormat === l ? 0 :
|
|
6153
|
+
return n.chosenFormat === l ? 0 : ud.test(n.getFormatFormat(l, r.international)) ? n.createTemplateForFormat(l, r) ? (n.chosenFormat = l, 0) : (n.matchingFormats = n.matchingFormats.filter(function(c) {
|
|
6137
6154
|
return c !== l;
|
|
6138
6155
|
}), 1) : 1;
|
|
6139
6156
|
}, a, o = Or(this.matchingFormats.slice()), s; !(s = o()).done && (a = i(), a !== 0); )
|
|
@@ -6152,7 +6169,7 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6152
6169
|
}, {
|
|
6153
6170
|
key: "getSeparatorAfterNationalPrefix",
|
|
6154
6171
|
value: function(r) {
|
|
6155
|
-
return this.isNANP || r && r.nationalPrefixFormattingRule() &&
|
|
6172
|
+
return this.isNANP || r && r.nationalPrefixFormattingRule() && dd.test(r.nationalPrefixFormattingRule()) ? " " : "";
|
|
6156
6173
|
}
|
|
6157
6174
|
}, {
|
|
6158
6175
|
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
@@ -6187,8 +6204,8 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6187
6204
|
key: "getTemplateForFormat",
|
|
6188
6205
|
value: function(r, n) {
|
|
6189
6206
|
var i = n.nationalSignificantNumber, a = n.international, o = n.nationalPrefix, s = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, d = r.pattern();
|
|
6190
|
-
d = d.replace(
|
|
6191
|
-
var l =
|
|
6207
|
+
d = d.replace(ld(), "\\d").replace(cd(), "\\d");
|
|
6208
|
+
var l = sd.match(d)[0];
|
|
6192
6209
|
if (!(i.length > l.length)) {
|
|
6193
6210
|
var c = new RegExp("^" + d + "$"), h = i.replace(/\d/g, Ee);
|
|
6194
6211
|
c.test(h) && (l = h);
|
|
@@ -6202,14 +6219,14 @@ var Ee = "9", ad = 15, od = Ut(Ee, ad), sd = /[- ]/, dd = function() {
|
|
|
6202
6219
|
for (var $ = o.length; $ > 0; )
|
|
6203
6220
|
u = u.replace(/\d/, R), $--;
|
|
6204
6221
|
}
|
|
6205
|
-
var
|
|
6206
|
-
return m || (s ?
|
|
6222
|
+
var C = l.replace(new RegExp(d), u).replace(new RegExp(Ee, "g"), R);
|
|
6223
|
+
return m || (s ? C = Ut(R, s.length) + " " + C : o && (C = Ut(R, o.length) + this.getSeparatorAfterNationalPrefix(r) + C)), a && (C = bn(C)), C;
|
|
6207
6224
|
}
|
|
6208
6225
|
}
|
|
6209
6226
|
}, {
|
|
6210
6227
|
key: "formatNextNationalNumberDigits",
|
|
6211
6228
|
value: function(r) {
|
|
6212
|
-
var n =
|
|
6229
|
+
var n = Ms(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
|
|
6213
6230
|
if (!n) {
|
|
6214
6231
|
this.resetFormat();
|
|
6215
6232
|
return;
|
|
@@ -6237,13 +6254,13 @@ function Tt(e) {
|
|
|
6237
6254
|
}, Tt(e);
|
|
6238
6255
|
}
|
|
6239
6256
|
function En(e, t) {
|
|
6240
|
-
return
|
|
6257
|
+
return $d(e) || md(e, t) || fd(e, t) || pd();
|
|
6241
6258
|
}
|
|
6242
|
-
function
|
|
6259
|
+
function pd() {
|
|
6243
6260
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6244
6261
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6245
6262
|
}
|
|
6246
|
-
function
|
|
6263
|
+
function fd(e, t) {
|
|
6247
6264
|
if (e) {
|
|
6248
6265
|
if (typeof e == "string") return Rr(e, t);
|
|
6249
6266
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -6255,7 +6272,7 @@ function Rr(e, t) {
|
|
|
6255
6272
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
6256
6273
|
return n;
|
|
6257
6274
|
}
|
|
6258
|
-
function
|
|
6275
|
+
function md(e, t) {
|
|
6259
6276
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
6260
6277
|
if (r != null) {
|
|
6261
6278
|
var n, i, a, o, s = [], d = !0, l = !1;
|
|
@@ -6273,26 +6290,26 @@ function fd(e, t) {
|
|
|
6273
6290
|
return s;
|
|
6274
6291
|
}
|
|
6275
6292
|
}
|
|
6276
|
-
function
|
|
6293
|
+
function $d(e) {
|
|
6277
6294
|
if (Array.isArray(e)) return e;
|
|
6278
6295
|
}
|
|
6279
|
-
function
|
|
6296
|
+
function gd(e, t) {
|
|
6280
6297
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
6281
6298
|
}
|
|
6282
|
-
function
|
|
6299
|
+
function yd(e, t) {
|
|
6283
6300
|
for (var r = 0; r < t.length; r++) {
|
|
6284
6301
|
var n = t[r];
|
|
6285
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
6302
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, vd(n.key), n);
|
|
6286
6303
|
}
|
|
6287
6304
|
}
|
|
6288
|
-
function
|
|
6289
|
-
return t &&
|
|
6305
|
+
function bd(e, t, r) {
|
|
6306
|
+
return t && yd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
6290
6307
|
}
|
|
6291
|
-
function
|
|
6292
|
-
var t =
|
|
6308
|
+
function vd(e) {
|
|
6309
|
+
var t = Pd(e, "string");
|
|
6293
6310
|
return Tt(t) == "symbol" ? t : t + "";
|
|
6294
6311
|
}
|
|
6295
|
-
function
|
|
6312
|
+
function Pd(e, t) {
|
|
6296
6313
|
if (Tt(e) != "object" || !e) return e;
|
|
6297
6314
|
var r = e[Symbol.toPrimitive];
|
|
6298
6315
|
if (r !== void 0) {
|
|
@@ -6302,15 +6319,15 @@ function vd(e, t) {
|
|
|
6302
6319
|
}
|
|
6303
6320
|
return String(e);
|
|
6304
6321
|
}
|
|
6305
|
-
var
|
|
6322
|
+
var wd = "[" + L + T + "]+", Cd = new RegExp("^" + wd + "$", "i"), Nd = "(?:[" + re + "][" + L + T + "]*|[" + L + T + "]+)", xd = new RegExp("[^" + L + T + "]+.*$"), Sd = /[^\d\[\]]/, Ad = /* @__PURE__ */ function() {
|
|
6306
6323
|
function e(t) {
|
|
6307
6324
|
var r = t.defaultCountry, n = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
6308
|
-
|
|
6325
|
+
gd(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
6309
6326
|
}
|
|
6310
|
-
return
|
|
6327
|
+
return bd(e, [{
|
|
6311
6328
|
key: "input",
|
|
6312
6329
|
value: function(r, n) {
|
|
6313
|
-
var i =
|
|
6330
|
+
var i = _d(r), a = En(i, 2), o = a[0], s = a[1], d = zt(o), l;
|
|
6314
6331
|
return s && (n.digits || (n.startInternationalNumber(void 0, void 0), d || (l = !0))), d && this.inputDigits(d, n), {
|
|
6315
6332
|
digits: d,
|
|
6316
6333
|
justLeadingPlus: l
|
|
@@ -6357,7 +6374,7 @@ var Pd = "[" + L + T + "]+", wd = new RegExp("^" + Pd + "$", "i"), Nd = "(?:[" +
|
|
|
6357
6374
|
if (r) {
|
|
6358
6375
|
this.hasSelectedNumberingPlan = !0;
|
|
6359
6376
|
var n = r._nationalPrefixForParsing();
|
|
6360
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = n &&
|
|
6377
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = n && Sd.test(n);
|
|
6361
6378
|
} else
|
|
6362
6379
|
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
6363
6380
|
}
|
|
@@ -6467,21 +6484,21 @@ var Pd = "[" + L + T + "]+", wd = new RegExp("^" + Pd + "$", "i"), Nd = "(?:[" +
|
|
|
6467
6484
|
}
|
|
6468
6485
|
}]);
|
|
6469
6486
|
}();
|
|
6470
|
-
function
|
|
6487
|
+
function kd(e) {
|
|
6471
6488
|
var t = e.search(Nd);
|
|
6472
6489
|
if (!(t < 0)) {
|
|
6473
6490
|
e = e.slice(t);
|
|
6474
6491
|
var r;
|
|
6475
|
-
return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(
|
|
6492
|
+
return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(xd, ""), r && (e = "+" + e), e;
|
|
6476
6493
|
}
|
|
6477
6494
|
}
|
|
6478
|
-
function
|
|
6479
|
-
var t =
|
|
6495
|
+
function Ed(e) {
|
|
6496
|
+
var t = kd(e) || "";
|
|
6480
6497
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
6481
6498
|
}
|
|
6482
|
-
function
|
|
6483
|
-
var t =
|
|
6484
|
-
return
|
|
6499
|
+
function _d(e) {
|
|
6500
|
+
var t = Ed(e), r = En(t, 2), n = r[0], i = r[1];
|
|
6501
|
+
return Cd.test(n) || (n = ""), [n, i];
|
|
6485
6502
|
}
|
|
6486
6503
|
function Mt(e) {
|
|
6487
6504
|
"@babel/helpers - typeof";
|
|
@@ -6491,14 +6508,14 @@ function Mt(e) {
|
|
|
6491
6508
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
6492
6509
|
}, Mt(e);
|
|
6493
6510
|
}
|
|
6494
|
-
function
|
|
6495
|
-
return
|
|
6511
|
+
function Id(e, t) {
|
|
6512
|
+
return Fd(e) || Od(e, t) || Md(e, t) || Td();
|
|
6496
6513
|
}
|
|
6497
|
-
function
|
|
6514
|
+
function Td() {
|
|
6498
6515
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6499
6516
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6500
6517
|
}
|
|
6501
|
-
function
|
|
6518
|
+
function Md(e, t) {
|
|
6502
6519
|
if (e) {
|
|
6503
6520
|
if (typeof e == "string") return Lr(e, t);
|
|
6504
6521
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -6510,7 +6527,7 @@ function Lr(e, t) {
|
|
|
6510
6527
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
6511
6528
|
return n;
|
|
6512
6529
|
}
|
|
6513
|
-
function
|
|
6530
|
+
function Od(e, t) {
|
|
6514
6531
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
6515
6532
|
if (r != null) {
|
|
6516
6533
|
var n, i, a, o, s = [], d = !0, l = !1;
|
|
@@ -6528,26 +6545,26 @@ function Md(e, t) {
|
|
|
6528
6545
|
return s;
|
|
6529
6546
|
}
|
|
6530
6547
|
}
|
|
6531
|
-
function
|
|
6548
|
+
function Fd(e) {
|
|
6532
6549
|
if (Array.isArray(e)) return e;
|
|
6533
6550
|
}
|
|
6534
|
-
function
|
|
6551
|
+
function Dd(e, t) {
|
|
6535
6552
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
6536
6553
|
}
|
|
6537
|
-
function
|
|
6554
|
+
function Rd(e, t) {
|
|
6538
6555
|
for (var r = 0; r < t.length; r++) {
|
|
6539
6556
|
var n = t[r];
|
|
6540
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
6557
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Bd(n.key), n);
|
|
6541
6558
|
}
|
|
6542
6559
|
}
|
|
6543
|
-
function
|
|
6544
|
-
return t &&
|
|
6560
|
+
function Ld(e, t, r) {
|
|
6561
|
+
return t && Rd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
6545
6562
|
}
|
|
6546
|
-
function
|
|
6547
|
-
var t =
|
|
6563
|
+
function Bd(e) {
|
|
6564
|
+
var t = Ud(e, "string");
|
|
6548
6565
|
return Mt(t) == "symbol" ? t : t + "";
|
|
6549
6566
|
}
|
|
6550
|
-
function
|
|
6567
|
+
function Ud(e, t) {
|
|
6551
6568
|
if (Mt(e) != "object" || !e) return e;
|
|
6552
6569
|
var r = e[Symbol.toPrimitive];
|
|
6553
6570
|
if (r !== void 0) {
|
|
@@ -6559,11 +6576,11 @@ function Bd(e, t) {
|
|
|
6559
6576
|
}
|
|
6560
6577
|
var _n = /* @__PURE__ */ function() {
|
|
6561
6578
|
function e(t, r) {
|
|
6562
|
-
|
|
6563
|
-
var n = this.getCountryAndCallingCode(t), i =
|
|
6579
|
+
Dd(this, e), this.metadata = new I(r);
|
|
6580
|
+
var n = this.getCountryAndCallingCode(t), i = Id(n, 2), a = i[0], o = i[1];
|
|
6564
6581
|
this.defaultCountry = a, this.defaultCallingCode = o, this.reset();
|
|
6565
6582
|
}
|
|
6566
|
-
return
|
|
6583
|
+
return Ld(e, [{
|
|
6567
6584
|
key: "getCountryAndCallingCode",
|
|
6568
6585
|
value: function(r) {
|
|
6569
6586
|
var n, i;
|
|
@@ -6596,17 +6613,17 @@ var _n = /* @__PURE__ */ function() {
|
|
|
6596
6613
|
key: "reset",
|
|
6597
6614
|
value: function() {
|
|
6598
6615
|
var r = this;
|
|
6599
|
-
return this.state = new
|
|
6616
|
+
return this.state = new Es({
|
|
6600
6617
|
onCountryChange: function(i) {
|
|
6601
6618
|
r.country = i;
|
|
6602
6619
|
},
|
|
6603
6620
|
onCallingCodeChange: function(i, a) {
|
|
6604
6621
|
r.metadata.selectNumberingPlan(a, i), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
|
|
6605
6622
|
}
|
|
6606
|
-
}), this.formatter = new
|
|
6623
|
+
}), this.formatter = new hd({
|
|
6607
6624
|
state: this.state,
|
|
6608
6625
|
metadata: this.metadata
|
|
6609
|
-
}), this.parser = new
|
|
6626
|
+
}), this.parser = new Ad({
|
|
6610
6627
|
defaultCountry: this.defaultCountry,
|
|
6611
6628
|
defaultCallingCode: this.defaultCallingCode,
|
|
6612
6629
|
metadata: this.metadata,
|
|
@@ -6781,7 +6798,7 @@ var _n = /* @__PURE__ */ function() {
|
|
|
6781
6798
|
c && (o = c);
|
|
6782
6799
|
}
|
|
6783
6800
|
}
|
|
6784
|
-
var h = new
|
|
6801
|
+
var h = new Nn(o || a, n, this.metadata.metadata);
|
|
6785
6802
|
return i && (h.carrierCode = i), h;
|
|
6786
6803
|
}
|
|
6787
6804
|
}
|
|
@@ -6837,21 +6854,21 @@ var _n = /* @__PURE__ */ function() {
|
|
|
6837
6854
|
}
|
|
6838
6855
|
}]);
|
|
6839
6856
|
}();
|
|
6840
|
-
function Ud() {
|
|
6841
|
-
return hn(fs, arguments);
|
|
6842
|
-
}
|
|
6843
6857
|
function Hd() {
|
|
6844
|
-
return hn(
|
|
6858
|
+
return hn(ms, arguments);
|
|
6859
|
+
}
|
|
6860
|
+
function jd() {
|
|
6861
|
+
return hn(Cs, arguments);
|
|
6845
6862
|
}
|
|
6846
6863
|
function qt(e) {
|
|
6847
6864
|
return _n.call(this, e, un);
|
|
6848
6865
|
}
|
|
6849
6866
|
qt.prototype = Object.create(_n.prototype, {});
|
|
6850
6867
|
qt.prototype.constructor = qt;
|
|
6851
|
-
var
|
|
6852
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
6868
|
+
var Gd = Object.defineProperty, Yd = Object.getOwnPropertyDescriptor, N = (e, t, r, n) => {
|
|
6869
|
+
for (var i = n > 1 ? void 0 : n ? Yd(t, r) : t, a = e.length - 1, o; a >= 0; a--)
|
|
6853
6870
|
(o = e[a]) && (i = (n ? o(t, r, i) : o(i)) || i);
|
|
6854
|
-
return n && i &&
|
|
6871
|
+
return n && i && Gd(t, r, i), i;
|
|
6855
6872
|
};
|
|
6856
6873
|
let w = class extends mt {
|
|
6857
6874
|
constructor() {
|
|
@@ -6905,7 +6922,7 @@ let w = class extends mt {
|
|
|
6905
6922
|
* the element is already in the DOM.
|
|
6906
6923
|
*/
|
|
6907
6924
|
hasAllRequiredProps() {
|
|
6908
|
-
return !(!this.config || !this.adapters || !this.amount || !this.currency || !this.orderId || !this.firstName || typeof this.firstName != "string" || this.firstName.trim() === "" || !this.lastName || typeof this.lastName != "string" || this.lastName.trim() === "" || !this.email || typeof this.email != "string" || this.email.trim() === ""
|
|
6925
|
+
return !(!this.config || !this.adapters || !this.amount || !this.currency || !this.orderId || !this.firstName || typeof this.firstName != "string" || this.firstName.trim() === "" || !this.lastName || typeof this.lastName != "string" || this.lastName.trim() === "" || !this.email || typeof this.email != "string" || this.email.trim() === "");
|
|
6909
6926
|
}
|
|
6910
6927
|
/**
|
|
6911
6928
|
* Check if a payment method requires phone number
|
|
@@ -6922,16 +6939,10 @@ let w = class extends mt {
|
|
|
6922
6939
|
}
|
|
6923
6940
|
/**
|
|
6924
6941
|
* Check if phone number is available for payment
|
|
6925
|
-
* Returns true if
|
|
6942
|
+
* Returns true if the user has entered a valid number in the input field
|
|
6926
6943
|
*/
|
|
6927
6944
|
hasPhoneNumber(e) {
|
|
6928
|
-
return
|
|
6929
|
-
p.BOOST,
|
|
6930
|
-
p.SHOPEEPAY,
|
|
6931
|
-
p.ATOM,
|
|
6932
|
-
p.KONBINI,
|
|
6933
|
-
p.PAYEASY
|
|
6934
|
-
].includes(e) ? !!(this.phoneInputValue.trim() || this.phoneNumber && this.phoneNumber.trim()) : !!(this.phoneNumber && this.phoneNumber.trim());
|
|
6945
|
+
return this.requiresPhoneNumber(e) ? !!this.phoneInputValue.trim() : !0;
|
|
6935
6946
|
}
|
|
6936
6947
|
/**
|
|
6937
6948
|
* Check if the pay button should be disabled for a method
|
|
@@ -7233,6 +7244,12 @@ let w = class extends mt {
|
|
|
7233
7244
|
const { redirectUrl: r } = t.payload;
|
|
7234
7245
|
r && (window.location.href = r);
|
|
7235
7246
|
}
|
|
7247
|
+
), this.sdk.on(
|
|
7248
|
+
"wechatpay_redirect",
|
|
7249
|
+
(t) => {
|
|
7250
|
+
const { redirectUrl: r } = t.payload;
|
|
7251
|
+
r && (window.location.href = r);
|
|
7252
|
+
}
|
|
7236
7253
|
), this.sdk.initialize({
|
|
7237
7254
|
amount: this.amount,
|
|
7238
7255
|
currency: this.currency,
|
|
@@ -7310,8 +7327,7 @@ let w = class extends mt {
|
|
|
7310
7327
|
cvv: this.cardFormData.cvv,
|
|
7311
7328
|
firstName: i.firstName,
|
|
7312
7329
|
lastName: i.lastName,
|
|
7313
|
-
email: this.email
|
|
7314
|
-
phoneNumber: this.phoneNumber
|
|
7330
|
+
email: this.email
|
|
7315
7331
|
});
|
|
7316
7332
|
}
|
|
7317
7333
|
handlePayNowPayment() {
|
|
@@ -7322,8 +7338,7 @@ let w = class extends mt {
|
|
|
7322
7338
|
this.sdk.submitPayment(p.PAYNOW, {
|
|
7323
7339
|
firstName: e.firstName,
|
|
7324
7340
|
lastName: e.lastName,
|
|
7325
|
-
email: this.email
|
|
7326
|
-
phoneNumber: this.phoneNumber
|
|
7341
|
+
email: this.email
|
|
7327
7342
|
});
|
|
7328
7343
|
}
|
|
7329
7344
|
handlePromptPayPayment() {
|
|
@@ -7334,8 +7349,7 @@ let w = class extends mt {
|
|
|
7334
7349
|
this.sdk.submitPayment(p.PROMPTPAY, {
|
|
7335
7350
|
firstName: e.firstName,
|
|
7336
7351
|
lastName: e.lastName,
|
|
7337
|
-
email: this.email
|
|
7338
|
-
phoneNumber: this.phoneNumber
|
|
7352
|
+
email: this.email
|
|
7339
7353
|
});
|
|
7340
7354
|
}
|
|
7341
7355
|
handleDuitNowPayment() {
|
|
@@ -7346,8 +7360,7 @@ let w = class extends mt {
|
|
|
7346
7360
|
this.sdk.submitPayment(p.DUITNOW, {
|
|
7347
7361
|
firstName: e.firstName,
|
|
7348
7362
|
lastName: e.lastName,
|
|
7349
|
-
email: this.email
|
|
7350
|
-
phoneNumber: this.phoneNumber
|
|
7363
|
+
email: this.email
|
|
7351
7364
|
});
|
|
7352
7365
|
}
|
|
7353
7366
|
handleGoPayPayment() {
|
|
@@ -7358,8 +7371,7 @@ let w = class extends mt {
|
|
|
7358
7371
|
this.sdk.submitPayment(p.GOPAY, {
|
|
7359
7372
|
firstName: e.firstName,
|
|
7360
7373
|
lastName: e.lastName,
|
|
7361
|
-
email: this.email
|
|
7362
|
-
phoneNumber: this.phoneNumber
|
|
7374
|
+
email: this.email
|
|
7363
7375
|
});
|
|
7364
7376
|
}
|
|
7365
7377
|
handleBoostPayment() {
|
|
@@ -7490,8 +7502,7 @@ let w = class extends mt {
|
|
|
7490
7502
|
this.sdk.submitPayment(p.GRABPAY_SG, {
|
|
7491
7503
|
firstName: e.firstName,
|
|
7492
7504
|
lastName: e.lastName,
|
|
7493
|
-
email: this.email
|
|
7494
|
-
phoneNumber: this.phoneNumber
|
|
7505
|
+
email: this.email
|
|
7495
7506
|
});
|
|
7496
7507
|
}
|
|
7497
7508
|
handleFPXPayment() {
|
|
@@ -7503,10 +7514,20 @@ let w = class extends mt {
|
|
|
7503
7514
|
firstName: e.firstName,
|
|
7504
7515
|
lastName: e.lastName,
|
|
7505
7516
|
email: this.email,
|
|
7506
|
-
phoneNumber: this.phoneNumber,
|
|
7507
7517
|
bankName: this.selectedBank.bankName
|
|
7508
7518
|
});
|
|
7509
7519
|
}
|
|
7520
|
+
handleWeChatPayPayment() {
|
|
7521
|
+
if (!this.sdk || this.currentState.status !== "ready")
|
|
7522
|
+
return;
|
|
7523
|
+
this.paymentLocked = !0;
|
|
7524
|
+
const e = this.formatNamesUppercase();
|
|
7525
|
+
this.sdk.submitPayment(p.WECHATPAY, {
|
|
7526
|
+
firstName: e.firstName,
|
|
7527
|
+
lastName: e.lastName,
|
|
7528
|
+
email: this.email
|
|
7529
|
+
});
|
|
7530
|
+
}
|
|
7510
7531
|
/**
|
|
7511
7532
|
* Fetch available banks for a payment method
|
|
7512
7533
|
*/
|
|
@@ -7554,7 +7575,7 @@ let w = class extends mt {
|
|
|
7554
7575
|
getFormattedPhoneWithCountryCode() {
|
|
7555
7576
|
if (!this.phoneInputValue.trim()) return "";
|
|
7556
7577
|
try {
|
|
7557
|
-
const n =
|
|
7578
|
+
const n = Hd(this.phoneInputValue, this.selectedCountry);
|
|
7558
7579
|
if (n)
|
|
7559
7580
|
return n.formatInternational();
|
|
7560
7581
|
} catch {
|
|
@@ -7568,11 +7589,10 @@ let w = class extends mt {
|
|
|
7568
7589
|
* - Other methods: Keep international format (+XX XXXX XXXX)
|
|
7569
7590
|
*/
|
|
7570
7591
|
getEffectivePhoneNumber(e) {
|
|
7571
|
-
if (this.phoneInputValue.trim())
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
return this.phoneNumber || "";
|
|
7592
|
+
if (!this.phoneInputValue.trim())
|
|
7593
|
+
return "";
|
|
7594
|
+
const t = this.getFormattedPhoneWithCountryCode();
|
|
7595
|
+
return this.isJapanOnlyPhoneMethod(e) ? this.formatPhoneForJapan(t) : t;
|
|
7576
7596
|
}
|
|
7577
7597
|
/**
|
|
7578
7598
|
* Format phone number for Japan (convert +81 to 0)
|
|
@@ -7620,7 +7640,7 @@ let w = class extends mt {
|
|
|
7620
7640
|
if (e.replace(/\D/g, "").length < this.MIN_PHONE_LENGTH)
|
|
7621
7641
|
return this.phoneInputError = `Phone number must be at least ${this.MIN_PHONE_LENGTH} digits`, !1;
|
|
7622
7642
|
try {
|
|
7623
|
-
if (!
|
|
7643
|
+
if (!jd(e, this.selectedCountry))
|
|
7624
7644
|
return this.phoneInputError = "Please enter a valid phone number", !1;
|
|
7625
7645
|
} catch {
|
|
7626
7646
|
return this.phoneInputError = "Please enter a valid phone number", !1;
|
|
@@ -8648,6 +8668,42 @@ let w = class extends mt {
|
|
|
8648
8668
|
</div>
|
|
8649
8669
|
`;
|
|
8650
8670
|
}
|
|
8671
|
+
renderWeChatPayContent() {
|
|
8672
|
+
return g`
|
|
8673
|
+
<div class="paynow-container">
|
|
8674
|
+
<div class="paynow-instructions">
|
|
8675
|
+
<h3 class="instructions-title">How to Pay with WeChat Pay:</h3>
|
|
8676
|
+
|
|
8677
|
+
<div class="instruction-steps">
|
|
8678
|
+
<div class="instruction-step">
|
|
8679
|
+
<div class="step-number">1</div>
|
|
8680
|
+
<p class="step-text">Click <strong>"Pay"</strong> to open WeChat Pay.</p>
|
|
8681
|
+
</div>
|
|
8682
|
+
|
|
8683
|
+
<div class="instruction-step">
|
|
8684
|
+
<div class="step-number">2</div>
|
|
8685
|
+
<p class="step-text">Scan the QR code with your WeChat app.</p>
|
|
8686
|
+
</div>
|
|
8687
|
+
|
|
8688
|
+
<div class="instruction-step">
|
|
8689
|
+
<div class="step-number">3</div>
|
|
8690
|
+
<p class="step-text">Confirm and complete your payment.</p>
|
|
8691
|
+
</div>
|
|
8692
|
+
</div>
|
|
8693
|
+
|
|
8694
|
+
<div class="submit-section">
|
|
8695
|
+
<button
|
|
8696
|
+
class="pay-button ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "loading" : ""}"
|
|
8697
|
+
@click=${this.handleWeChatPayPayment}
|
|
8698
|
+
?disabled=${this.currentState.status === "processing" || this.currentState.status === "requires_action"}
|
|
8699
|
+
>
|
|
8700
|
+
${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "Redirecting..." : `Pay ${this.getPayButtonAmount()}`}
|
|
8701
|
+
</button>
|
|
8702
|
+
</div>
|
|
8703
|
+
</div>
|
|
8704
|
+
</div>
|
|
8705
|
+
`;
|
|
8706
|
+
}
|
|
8651
8707
|
render3DSModal() {
|
|
8652
8708
|
return !this.show3DSModal || !this.nextActionUrl ? null : g`
|
|
8653
8709
|
<div class="modal-overlay">
|
|
@@ -8742,6 +8798,8 @@ let w = class extends mt {
|
|
|
8742
8798
|
return "GrabPay";
|
|
8743
8799
|
case p.FPX:
|
|
8744
8800
|
return "FPX Online Banking";
|
|
8801
|
+
case p.WECHATPAY:
|
|
8802
|
+
return "WeChat Pay";
|
|
8745
8803
|
default:
|
|
8746
8804
|
return o;
|
|
8747
8805
|
}
|
|
@@ -8838,6 +8896,14 @@ let w = class extends mt {
|
|
|
8838
8896
|
style="width: 45px; height: auto;"
|
|
8839
8897
|
/>
|
|
8840
8898
|
</div>
|
|
8899
|
+
` : o === p.WECHATPAY ? g`
|
|
8900
|
+
<div class="method-icon-right">
|
|
8901
|
+
<img
|
|
8902
|
+
src="${Pi}"
|
|
8903
|
+
alt="WeChat Pay"
|
|
8904
|
+
style="width: 45px; height: auto;"
|
|
8905
|
+
/>
|
|
8906
|
+
</div>
|
|
8841
8907
|
` : null, a = [
|
|
8842
8908
|
this.width ? `--one-payment-width: ${this.width}` : "",
|
|
8843
8909
|
this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
|
|
@@ -8873,7 +8939,7 @@ let w = class extends mt {
|
|
|
8873
8939
|
${i(o.id)}
|
|
8874
8940
|
</div>
|
|
8875
8941
|
${s ? g`<div class="method-content">
|
|
8876
|
-
${o.id === p.CARD ? this.renderCardForm() : o.id === p.PAYNOW ? this.renderPayNowContent() : o.id === p.PROMPTPAY ? this.renderPromptPayContent() : o.id === p.DUITNOW ? this.renderDuitNowContent() : o.id === p.GOPAY ? this.renderGoPayContent() : o.id === p.BOOST ? this.renderBoostContent() : o.id === p.SHOPEEPAY ? this.renderShopeePayContent() : o.id === p.ATOM ? this.renderAtomContent() : o.id === p.DANA ? this.renderDanaContent() : o.id === p.TNG ? this.renderTngContent() : o.id === p.ALIPAYCN ? this.renderAlipayCNContent() : o.id === p.ALIPAYHK ? this.renderAlipayHKContent() : o.id === p.GCASH ? this.renderGCashContent() : o.id === p.KONBINI ? this.renderKonbiniContent() : o.id === p.PAYEASY ? this.renderPayEasyContent() : o.id === p.GRABPAY_SG ? this.renderGrabPaySGContent() : o.id === p.FPX ? this.renderFPXContent() : null}
|
|
8942
|
+
${o.id === p.CARD ? this.renderCardForm() : o.id === p.PAYNOW ? this.renderPayNowContent() : o.id === p.PROMPTPAY ? this.renderPromptPayContent() : o.id === p.DUITNOW ? this.renderDuitNowContent() : o.id === p.GOPAY ? this.renderGoPayContent() : o.id === p.BOOST ? this.renderBoostContent() : o.id === p.SHOPEEPAY ? this.renderShopeePayContent() : o.id === p.ATOM ? this.renderAtomContent() : o.id === p.DANA ? this.renderDanaContent() : o.id === p.TNG ? this.renderTngContent() : o.id === p.ALIPAYCN ? this.renderAlipayCNContent() : o.id === p.ALIPAYHK ? this.renderAlipayHKContent() : o.id === p.GCASH ? this.renderGCashContent() : o.id === p.KONBINI ? this.renderKonbiniContent() : o.id === p.PAYEASY ? this.renderPayEasyContent() : o.id === p.GRABPAY_SG ? this.renderGrabPaySGContent() : o.id === p.FPX ? this.renderFPXContent() : o.id === p.WECHATPAY ? this.renderWeChatPayContent() : null}
|
|
8877
8943
|
</div>` : ""}
|
|
8878
8944
|
</div>
|
|
8879
8945
|
`;
|
|
@@ -10536,130 +10602,127 @@ w.styles = Tn`
|
|
|
10536
10602
|
}
|
|
10537
10603
|
}
|
|
10538
10604
|
`;
|
|
10539
|
-
|
|
10605
|
+
N([
|
|
10540
10606
|
M({ type: Object })
|
|
10541
10607
|
], w.prototype, "config", 2);
|
|
10542
|
-
|
|
10608
|
+
N([
|
|
10543
10609
|
M({ type: Object })
|
|
10544
10610
|
], w.prototype, "adapters", 2);
|
|
10545
|
-
|
|
10611
|
+
N([
|
|
10546
10612
|
M({ type: Number })
|
|
10547
10613
|
], w.prototype, "amount", 2);
|
|
10548
|
-
|
|
10614
|
+
N([
|
|
10549
10615
|
M({ type: String })
|
|
10550
10616
|
], w.prototype, "currency", 2);
|
|
10551
|
-
|
|
10617
|
+
N([
|
|
10552
10618
|
M({ type: String })
|
|
10553
10619
|
], w.prototype, "orderId", 2);
|
|
10554
|
-
|
|
10620
|
+
N([
|
|
10555
10621
|
M({ type: String })
|
|
10556
10622
|
], w.prototype, "firstName", 2);
|
|
10557
|
-
|
|
10623
|
+
N([
|
|
10558
10624
|
M({ type: String })
|
|
10559
10625
|
], w.prototype, "lastName", 2);
|
|
10560
|
-
|
|
10626
|
+
N([
|
|
10561
10627
|
M({ type: String })
|
|
10562
10628
|
], w.prototype, "email", 2);
|
|
10563
|
-
|
|
10564
|
-
M({ type: String })
|
|
10565
|
-
], w.prototype, "phoneNumber", 2);
|
|
10566
|
-
C([
|
|
10629
|
+
N([
|
|
10567
10630
|
M({ type: Array })
|
|
10568
10631
|
], w.prototype, "excludePaymentMethods", 2);
|
|
10569
|
-
|
|
10632
|
+
N([
|
|
10570
10633
|
M({ type: String })
|
|
10571
10634
|
], w.prototype, "width", 2);
|
|
10572
|
-
|
|
10635
|
+
N([
|
|
10573
10636
|
M({ type: String })
|
|
10574
10637
|
], w.prototype, "maxWidth", 2);
|
|
10575
|
-
|
|
10638
|
+
N([
|
|
10576
10639
|
M({ type: Object })
|
|
10577
10640
|
], w.prototype, "appearance", 2);
|
|
10578
|
-
|
|
10641
|
+
N([
|
|
10579
10642
|
A()
|
|
10580
10643
|
], w.prototype, "currentState", 2);
|
|
10581
|
-
|
|
10644
|
+
N([
|
|
10582
10645
|
A()
|
|
10583
10646
|
], w.prototype, "selectedMethod", 2);
|
|
10584
|
-
|
|
10647
|
+
N([
|
|
10585
10648
|
A()
|
|
10586
10649
|
], w.prototype, "cardFormData", 2);
|
|
10587
|
-
|
|
10650
|
+
N([
|
|
10588
10651
|
A()
|
|
10589
10652
|
], w.prototype, "formErrors", 2);
|
|
10590
|
-
|
|
10653
|
+
N([
|
|
10591
10654
|
A()
|
|
10592
10655
|
], w.prototype, "paymentData", 2);
|
|
10593
|
-
|
|
10656
|
+
N([
|
|
10594
10657
|
A()
|
|
10595
10658
|
], w.prototype, "feesExpanded", 2);
|
|
10596
|
-
|
|
10659
|
+
N([
|
|
10597
10660
|
A()
|
|
10598
10661
|
], w.prototype, "isInitializing", 2);
|
|
10599
|
-
|
|
10662
|
+
N([
|
|
10600
10663
|
A()
|
|
10601
10664
|
], w.prototype, "cardBrand", 2);
|
|
10602
|
-
|
|
10665
|
+
N([
|
|
10603
10666
|
A()
|
|
10604
10667
|
], w.prototype, "paymentLocked", 2);
|
|
10605
|
-
|
|
10668
|
+
N([
|
|
10606
10669
|
A()
|
|
10607
10670
|
], w.prototype, "show3DSModal", 2);
|
|
10608
|
-
|
|
10671
|
+
N([
|
|
10609
10672
|
A()
|
|
10610
10673
|
], w.prototype, "showQRModal", 2);
|
|
10611
|
-
|
|
10674
|
+
N([
|
|
10612
10675
|
A()
|
|
10613
10676
|
], w.prototype, "nextActionUrl", 2);
|
|
10614
|
-
|
|
10677
|
+
N([
|
|
10615
10678
|
A()
|
|
10616
10679
|
], w.prototype, "qrCode", 2);
|
|
10617
|
-
|
|
10680
|
+
N([
|
|
10618
10681
|
A()
|
|
10619
10682
|
], w.prototype, "qrCodeDataUrl", 2);
|
|
10620
|
-
|
|
10683
|
+
N([
|
|
10621
10684
|
A()
|
|
10622
10685
|
], w.prototype, "qrAutoResumeTimer", 2);
|
|
10623
|
-
|
|
10686
|
+
N([
|
|
10624
10687
|
A()
|
|
10625
10688
|
], w.prototype, "qrPollingInProgress", 2);
|
|
10626
|
-
|
|
10689
|
+
N([
|
|
10627
10690
|
A()
|
|
10628
10691
|
], w.prototype, "availableBanks", 2);
|
|
10629
|
-
|
|
10692
|
+
N([
|
|
10630
10693
|
A()
|
|
10631
10694
|
], w.prototype, "selectedBank", 2);
|
|
10632
|
-
|
|
10695
|
+
N([
|
|
10633
10696
|
A()
|
|
10634
10697
|
], w.prototype, "banksLoading", 2);
|
|
10635
|
-
|
|
10698
|
+
N([
|
|
10636
10699
|
A()
|
|
10637
10700
|
], w.prototype, "bankSearchQuery", 2);
|
|
10638
|
-
|
|
10701
|
+
N([
|
|
10639
10702
|
A()
|
|
10640
10703
|
], w.prototype, "phoneInputValue", 2);
|
|
10641
|
-
|
|
10704
|
+
N([
|
|
10642
10705
|
A()
|
|
10643
10706
|
], w.prototype, "phoneInputError", 2);
|
|
10644
|
-
|
|
10707
|
+
N([
|
|
10645
10708
|
A()
|
|
10646
10709
|
], w.prototype, "selectedCountry", 2);
|
|
10647
|
-
w =
|
|
10710
|
+
w = N([
|
|
10648
10711
|
Jn("one-payment")
|
|
10649
10712
|
], w);
|
|
10650
|
-
const
|
|
10713
|
+
const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10651
10714
|
__proto__: null,
|
|
10652
10715
|
get OnePayment() {
|
|
10653
10716
|
return w;
|
|
10654
10717
|
}
|
|
10655
10718
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10656
|
-
function
|
|
10657
|
-
customElements.get("one-payment") || Promise.resolve().then(() =>
|
|
10719
|
+
function Kd() {
|
|
10720
|
+
customElements.get("one-payment") || Promise.resolve().then(() => Vd).then(({ OnePayment: e }) => {
|
|
10658
10721
|
customElements.define("one-payment", e);
|
|
10659
10722
|
});
|
|
10660
10723
|
}
|
|
10661
10724
|
export {
|
|
10662
10725
|
w as OnePayment,
|
|
10663
10726
|
w as OnePaymentElement,
|
|
10664
|
-
|
|
10727
|
+
Kd as defineCustomElements
|
|
10665
10728
|
};
|