intl-tel-input 25.1.1 → 25.2.1
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/README.md +18 -22
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/index.js +1 -0
- package/build/js/i18n/tr/interface.js +2 -2
- package/build/js/i18n/uk/countries.js +245 -0
- package/build/js/i18n/uk/index.js +5 -0
- package/build/js/i18n/uk/interface.js +13 -0
- package/build/js/intlTelInput.d.ts +19 -0
- package/build/js/intlTelInput.js +5 -5
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +258 -143
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +35 -34
- package/package.json +2 -2
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +4 -4
- package/react/build/IntlTelInput.d.ts +19 -0
- package/react/build/IntlTelInput.js +4 -4
- package/react/build/IntlTelInputWithUtils.cjs +257 -142
- package/react/build/IntlTelInputWithUtils.js +257 -142
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +6 -6
- package/vue/build/IntlTelInputWithUtils.mjs +438 -323
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mergeModels as i2, useModel as A2, ref as I1, onMounted as E2, watch as D2, onUnmounted as M2, withDirectives as P2, openBlock as x2, createElementBlock as R2, mergeProps as B2, vModelText as k2 } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const s2 = [
|
|
3
3
|
[
|
|
4
4
|
"af",
|
|
5
5
|
// Afghanistan
|
|
@@ -1323,8 +1323,8 @@ const r2 = [
|
|
|
1323
1323
|
"263"
|
|
1324
1324
|
]
|
|
1325
1325
|
], W = [];
|
|
1326
|
-
for (let y = 0; y <
|
|
1327
|
-
const e =
|
|
1326
|
+
for (let y = 0; y < s2.length; y++) {
|
|
1327
|
+
const e = s2[y];
|
|
1328
1328
|
W[y] = {
|
|
1329
1329
|
name: "",
|
|
1330
1330
|
// this is now populated in the plugin
|
|
@@ -1667,30 +1667,30 @@ const l2 = {
|
|
|
1667
1667
|
"887",
|
|
1668
1668
|
"888",
|
|
1669
1669
|
"889"
|
|
1670
|
-
], c1 = (y) => y.replace(/\D/g, ""),
|
|
1670
|
+
], c1 = (y) => y.replace(/\D/g, ""), r2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), o2 = (y) => {
|
|
1671
1671
|
const e = c1(y);
|
|
1672
1672
|
if (e.charAt(0) === "1") {
|
|
1673
1673
|
const n = e.substr(1, 3);
|
|
1674
|
-
return U2.
|
|
1674
|
+
return U2.includes(n);
|
|
1675
1675
|
}
|
|
1676
1676
|
return !1;
|
|
1677
|
-
}, V2 = (y, e, n,
|
|
1678
|
-
if (n === 0 && !
|
|
1677
|
+
}, V2 = (y, e, n, s) => {
|
|
1678
|
+
if (n === 0 && !s)
|
|
1679
1679
|
return 0;
|
|
1680
1680
|
let o = 0;
|
|
1681
1681
|
for (let a = 0; a < e.length; a++) {
|
|
1682
|
-
if (/[+0-9]/.test(e[a]) && o++, o === y && !
|
|
1682
|
+
if (/[+0-9]/.test(e[a]) && o++, o === y && !s)
|
|
1683
1683
|
return a + 1;
|
|
1684
|
-
if (
|
|
1684
|
+
if (s && o === y + 1)
|
|
1685
1685
|
return a;
|
|
1686
1686
|
}
|
|
1687
1687
|
return e.length;
|
|
1688
1688
|
}, T = (y, e, n) => {
|
|
1689
|
-
const
|
|
1690
|
-
return e && Object.entries(e).forEach(([o, a]) =>
|
|
1689
|
+
const s = document.createElement(y);
|
|
1690
|
+
return e && Object.entries(e).forEach(([o, a]) => s.setAttribute(o, a)), n && n.appendChild(s), s;
|
|
1691
1691
|
}, $1 = (y, ...e) => {
|
|
1692
1692
|
const { instances: n } = C;
|
|
1693
|
-
Object.values(n).forEach((
|
|
1693
|
+
Object.values(n).forEach((s) => s[y](...e));
|
|
1694
1694
|
};
|
|
1695
1695
|
class K2 {
|
|
1696
1696
|
constructor(e, n = {}) {
|
|
@@ -1703,10 +1703,10 @@ class K2 {
|
|
|
1703
1703
|
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...u2, ...this.options.i18n };
|
|
1704
1704
|
const n = new Promise((o, a) => {
|
|
1705
1705
|
this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = a;
|
|
1706
|
-
}),
|
|
1706
|
+
}), s = new Promise((o, a) => {
|
|
1707
1707
|
this.resolveUtilsScriptPromise = o, this.rejectUtilsScriptPromise = a;
|
|
1708
1708
|
});
|
|
1709
|
-
this.promise = Promise.all([n,
|
|
1709
|
+
this.promise = Promise.all([n, s]), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
|
|
1710
1710
|
}
|
|
1711
1711
|
//********************
|
|
1712
1712
|
//* PRIVATE METHODS
|
|
@@ -1718,9 +1718,9 @@ class K2 {
|
|
|
1718
1718
|
//* Sort countries by countryOrder option (if present), then name.
|
|
1719
1719
|
_sortCountries() {
|
|
1720
1720
|
this.options.countryOrder && (this.options.countryOrder = this.options.countryOrder.map((e) => e.toLowerCase())), this.countries.sort((e, n) => {
|
|
1721
|
-
const { countryOrder:
|
|
1722
|
-
if (
|
|
1723
|
-
const o =
|
|
1721
|
+
const { countryOrder: s } = this.options;
|
|
1722
|
+
if (s) {
|
|
1723
|
+
const o = s.indexOf(e.iso2), a = s.indexOf(n.iso2), c = o > -1, g = a > -1;
|
|
1724
1724
|
if (c || g)
|
|
1725
1725
|
return c && g ? o - a : c ? -1 : 1;
|
|
1726
1726
|
}
|
|
@@ -1728,30 +1728,30 @@ class K2 {
|
|
|
1728
1728
|
});
|
|
1729
1729
|
}
|
|
1730
1730
|
//* Add a dial code to this.dialCodeToIso2Map.
|
|
1731
|
-
_addToDialCodeMap(e, n,
|
|
1731
|
+
_addToDialCodeMap(e, n, s) {
|
|
1732
1732
|
n.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = n.length), this.dialCodeToIso2Map.hasOwnProperty(n) || (this.dialCodeToIso2Map[n] = []);
|
|
1733
1733
|
for (let a = 0; a < this.dialCodeToIso2Map[n].length; a++)
|
|
1734
1734
|
if (this.dialCodeToIso2Map[n][a] === e)
|
|
1735
1735
|
return;
|
|
1736
|
-
const o =
|
|
1736
|
+
const o = s !== void 0 ? s : this.dialCodeToIso2Map[n].length;
|
|
1737
1737
|
this.dialCodeToIso2Map[n][o] = e;
|
|
1738
1738
|
}
|
|
1739
1739
|
//* Process onlyCountries or excludeCountries array if present.
|
|
1740
1740
|
_processAllCountries() {
|
|
1741
1741
|
const { onlyCountries: e, excludeCountries: n } = this.options;
|
|
1742
1742
|
if (e.length) {
|
|
1743
|
-
const
|
|
1743
|
+
const s = e.map(
|
|
1744
1744
|
(o) => o.toLowerCase()
|
|
1745
1745
|
);
|
|
1746
1746
|
this.countries = W.filter(
|
|
1747
|
-
(o) =>
|
|
1747
|
+
(o) => s.includes(o.iso2)
|
|
1748
1748
|
);
|
|
1749
1749
|
} else if (n.length) {
|
|
1750
|
-
const
|
|
1750
|
+
const s = n.map(
|
|
1751
1751
|
(o) => o.toLowerCase()
|
|
1752
1752
|
);
|
|
1753
1753
|
this.countries = W.filter(
|
|
1754
|
-
(o) =>
|
|
1754
|
+
(o) => !s.includes(o.iso2)
|
|
1755
1755
|
);
|
|
1756
1756
|
} else
|
|
1757
1757
|
this.countries = W;
|
|
@@ -1773,12 +1773,12 @@ class K2 {
|
|
|
1773
1773
|
for (let e = 0; e < this.countries.length; e++) {
|
|
1774
1774
|
const n = this.countries[e];
|
|
1775
1775
|
if (n.areaCodes) {
|
|
1776
|
-
const
|
|
1776
|
+
const s = this.dialCodeToIso2Map[n.dialCode][0];
|
|
1777
1777
|
for (let o = 0; o < n.areaCodes.length; o++) {
|
|
1778
1778
|
const a = n.areaCodes[o];
|
|
1779
1779
|
for (let c = 1; c < a.length; c++) {
|
|
1780
1780
|
const g = a.substr(0, c), f = n.dialCode + g;
|
|
1781
|
-
this._addToDialCodeMap(
|
|
1781
|
+
this._addToDialCodeMap(s, f), this._addToDialCodeMap(n.iso2, f);
|
|
1782
1782
|
}
|
|
1783
1783
|
this._addToDialCodeMap(n.iso2, n.dialCode + a);
|
|
1784
1784
|
}
|
|
@@ -1792,7 +1792,7 @@ class K2 {
|
|
|
1792
1792
|
const {
|
|
1793
1793
|
allowDropdown: e,
|
|
1794
1794
|
separateDialCode: n,
|
|
1795
|
-
showFlags:
|
|
1795
|
+
showFlags: s,
|
|
1796
1796
|
containerClass: o,
|
|
1797
1797
|
hiddenInput: a,
|
|
1798
1798
|
dropdownContainer: c,
|
|
@@ -1802,9 +1802,9 @@ class K2 {
|
|
|
1802
1802
|
i18n: _
|
|
1803
1803
|
} = this.options;
|
|
1804
1804
|
let b = "iti";
|
|
1805
|
-
e && (b += " iti--allow-dropdown"),
|
|
1805
|
+
e && (b += " iti--allow-dropdown"), s && (b += " iti--show-flags"), o && (b += ` ${o}`), f || (b += " iti--inline-dropdown");
|
|
1806
1806
|
const w = T("div", { class: b });
|
|
1807
|
-
if ((I = this.telInput.parentNode) == null || I.insertBefore(w, this.telInput), e ||
|
|
1807
|
+
if ((I = this.telInput.parentNode) == null || I.insertBefore(w, this.telInput), e || s || n) {
|
|
1808
1808
|
this.countryContainer = T(
|
|
1809
1809
|
"div",
|
|
1810
1810
|
{ class: "iti__country-container" },
|
|
@@ -1899,11 +1899,11 @@ class K2 {
|
|
|
1899
1899
|
//* For each country: add a country list item <li> to the countryList <ul> container.
|
|
1900
1900
|
_appendListItems() {
|
|
1901
1901
|
for (let e = 0; e < this.countries.length; e++) {
|
|
1902
|
-
const n = this.countries[e],
|
|
1902
|
+
const n = this.countries[e], s = e === 0 ? "iti__highlight" : "", o = T(
|
|
1903
1903
|
"li",
|
|
1904
1904
|
{
|
|
1905
1905
|
id: `iti-${this.id}__item-${n.iso2}`,
|
|
1906
|
-
class: `iti__country ${
|
|
1906
|
+
class: `iti__country ${s}`,
|
|
1907
1907
|
tabindex: "-1",
|
|
1908
1908
|
role: "option",
|
|
1909
1909
|
"data-dial-code": n.dialCode,
|
|
@@ -1921,7 +1921,7 @@ class K2 {
|
|
|
1921
1921
|
//* 1. Extracting a dial code from the given number
|
|
1922
1922
|
//* 2. Using explicit initialCountry
|
|
1923
1923
|
_setInitialState(e = !1) {
|
|
1924
|
-
const n = this.telInput.getAttribute("value"),
|
|
1924
|
+
const n = this.telInput.getAttribute("value"), s = this.telInput.value, a = n && n.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? n : s, c = this._getDialCode(a), g = o2(a), { initialCountry: f, geoIpLookup: S } = this.options, _ = f === "auto" && S;
|
|
1925
1925
|
if (c && !g)
|
|
1926
1926
|
this._updateCountryFromNumber(a);
|
|
1927
1927
|
else if (!_ || e) {
|
|
@@ -1961,12 +1961,12 @@ class K2 {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
//* Init many requests: utils script / geo ip lookup.
|
|
1963
1963
|
_initRequests() {
|
|
1964
|
-
let { loadUtils: e, initialCountry: n, geoIpLookup:
|
|
1964
|
+
let { loadUtils: e, initialCountry: n, geoIpLookup: s } = this.options;
|
|
1965
1965
|
e && !C.utils ? (this._handlePageLoad = () => {
|
|
1966
1966
|
var a;
|
|
1967
1967
|
window.removeEventListener("load", this._handlePageLoad), (a = C.attachUtils(e)) == null || a.catch(() => {
|
|
1968
1968
|
});
|
|
1969
|
-
}, C.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), n === "auto" &&
|
|
1969
|
+
}, C.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), n === "auto" && s && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
|
|
1970
1970
|
}
|
|
1971
1971
|
//* Perform the geo ip lookup.
|
|
1972
1972
|
_loadAutoCountry() {
|
|
@@ -1985,10 +1985,10 @@ class K2 {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
//* Initialize the tel input listeners.
|
|
1987
1987
|
_initTelInputListeners() {
|
|
1988
|
-
const { strictMode: e, formatAsYouType: n, separateDialCode:
|
|
1988
|
+
const { strictMode: e, formatAsYouType: n, separateDialCode: s, formatOnDisplay: o, allowDropdown: a, countrySearch: c } = this.options;
|
|
1989
1989
|
let g = !1;
|
|
1990
1990
|
new RegExp("\\p{L}", "u").test(this.telInput.value) && (g = !0), this._handleInputEvent = (f) => {
|
|
1991
|
-
if (this.isAndroid && (f == null ? void 0 : f.data) === "+" &&
|
|
1991
|
+
if (this.isAndroid && (f == null ? void 0 : f.data) === "+" && s && a && c) {
|
|
1992
1992
|
const w = this.telInput.selectionStart || 0, I = this.telInput.value.substring(0, w - 1), A = this.telInput.value.substring(w);
|
|
1993
1993
|
this.telInput.value = I + A, this._openDropdownWithPlus();
|
|
1994
1994
|
return;
|
|
@@ -2001,14 +2001,14 @@ class K2 {
|
|
|
2001
2001
|
const w = this.telInput.selectionStart || 0, A = this.telInput.value.substring(0, w).replace(/[^+0-9]/g, "").length, G = (f == null ? void 0 : f.inputType) === "deleteContentForward", F = this._formatNumberAsYouType(), M = V2(A, F, w, G);
|
|
2002
2002
|
this.telInput.value = F, this.telInput.setSelectionRange(M, M);
|
|
2003
2003
|
}
|
|
2004
|
-
}, this.telInput.addEventListener("input", this._handleInputEvent), (e ||
|
|
2004
|
+
}, this.telInput.addEventListener("input", this._handleInputEvent), (e || s) && (this._handleKeydownEvent = (f) => {
|
|
2005
2005
|
if (f.key && f.key.length === 1 && !f.altKey && !f.ctrlKey && !f.metaKey) {
|
|
2006
|
-
if (
|
|
2006
|
+
if (s && a && c && f.key === "+") {
|
|
2007
2007
|
f.preventDefault(), this._openDropdownWithPlus();
|
|
2008
2008
|
return;
|
|
2009
2009
|
}
|
|
2010
2010
|
if (e) {
|
|
2011
|
-
const S = this.telInput.value, _ = S.charAt(0) === "+", b = !_ && this.telInput.selectionStart === 0 && f.key === "+", w = /^[0-9]$/.test(f.key), I =
|
|
2011
|
+
const S = this.telInput.value, _ = S.charAt(0) === "+", b = !_ && this.telInput.selectionStart === 0 && f.key === "+", w = /^[0-9]$/.test(f.key), I = s ? w : b || w, A = S.slice(0, this.telInput.selectionStart) + f.key + S.slice(this.telInput.selectionEnd), G = this._getFullNumber(A), F = C.utils.getCoreNumber(G, this.selectedCountryData.iso2), M = this.maxCoreNumberLength && F.length > this.maxCoreNumberLength;
|
|
2012
2012
|
let x = !1;
|
|
2013
2013
|
if (_) {
|
|
2014
2014
|
const f1 = this.selectedCountryData.iso2;
|
|
@@ -2026,19 +2026,19 @@ class K2 {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
//* Trigger a custom event on the input.
|
|
2028
2028
|
_trigger(e, n = {}) {
|
|
2029
|
-
const
|
|
2029
|
+
const s = new CustomEvent(e, {
|
|
2030
2030
|
bubbles: !0,
|
|
2031
2031
|
cancelable: !0,
|
|
2032
2032
|
detail: n
|
|
2033
2033
|
});
|
|
2034
|
-
this.telInput.dispatchEvent(
|
|
2034
|
+
this.telInput.dispatchEvent(s);
|
|
2035
2035
|
}
|
|
2036
2036
|
//* Open the dropdown.
|
|
2037
2037
|
_openDropdown() {
|
|
2038
2038
|
const { fixDropdownWidth: e, countrySearch: n } = this.options;
|
|
2039
2039
|
if (e && (this.dropdownContent.style.width = `${this.telInput.offsetWidth}px`), this.dropdownContent.classList.remove("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), n) {
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2040
|
+
const s = this.countryList.firstElementChild;
|
|
2041
|
+
s && (this._highlightListItem(s, !1), this.countryList.scrollTop = 0), this.searchInput.focus();
|
|
2042
2042
|
}
|
|
2043
2043
|
this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
|
|
2044
2044
|
}
|
|
@@ -2070,9 +2070,9 @@ class K2 {
|
|
|
2070
2070
|
"click",
|
|
2071
2071
|
this._handleClickOffToClose
|
|
2072
2072
|
);
|
|
2073
|
-
let n = "",
|
|
2073
|
+
let n = "", s = null;
|
|
2074
2074
|
if (this._handleKeydownOnDropdown = (o) => {
|
|
2075
|
-
["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.key === "ArrowUp" || o.key === "ArrowDown" ? this._handleUpDownKey(o.key) : o.key === "Enter" ? this._handleEnterKey() : o.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key) && (o.stopPropagation(),
|
|
2075
|
+
["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.key === "ArrowUp" || o.key === "ArrowDown" ? this._handleUpDownKey(o.key) : o.key === "Enter" ? this._handleEnterKey() : o.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key) && (o.stopPropagation(), s && clearTimeout(s), n += o.key.toLowerCase(), this._searchForCountry(n), s = setTimeout(() => {
|
|
2076
2076
|
n = "";
|
|
2077
2077
|
}, 1e3));
|
|
2078
2078
|
}, document.addEventListener("keydown", this._handleKeydownOnDropdown), this.options.countrySearch) {
|
|
@@ -2091,9 +2091,9 @@ class K2 {
|
|
|
2091
2091
|
//* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
|
|
2092
2092
|
_searchForCountry(e) {
|
|
2093
2093
|
for (let n = 0; n < this.countries.length; n++) {
|
|
2094
|
-
const
|
|
2095
|
-
if (
|
|
2096
|
-
const a =
|
|
2094
|
+
const s = this.countries[n];
|
|
2095
|
+
if (s.name.substr(0, e.length).toLowerCase() === e) {
|
|
2096
|
+
const a = s.nodeById[this.id];
|
|
2097
2097
|
this._highlightListItem(a, !1), this._scrollTo(a);
|
|
2098
2098
|
break;
|
|
2099
2099
|
}
|
|
@@ -2101,28 +2101,28 @@ class K2 {
|
|
|
2101
2101
|
}
|
|
2102
2102
|
//* Country search enabled: Filter the countries according to the search query.
|
|
2103
2103
|
_filterCountries(e, n = !1) {
|
|
2104
|
-
let
|
|
2104
|
+
let s = !0;
|
|
2105
2105
|
this.countryList.innerHTML = "";
|
|
2106
|
-
const o =
|
|
2106
|
+
const o = r2(e);
|
|
2107
2107
|
for (let a = 0; a < this.countries.length; a++) {
|
|
2108
|
-
const c = this.countries[a], g =
|
|
2108
|
+
const c = this.countries[a], g = r2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), S = `+${c.dialCode}`;
|
|
2109
2109
|
if (n || g.includes(o) || S.includes(o) || c.iso2.includes(o) || f.includes(o)) {
|
|
2110
2110
|
const _ = c.nodeById[this.id];
|
|
2111
|
-
_ && this.countryList.appendChild(_),
|
|
2111
|
+
_ && this.countryList.appendChild(_), s && (this._highlightListItem(_, !1), s = !1);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
|
|
2114
|
+
s && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
|
|
2115
2115
|
}
|
|
2116
2116
|
//* Update search results text (for a11y).
|
|
2117
2117
|
_updateSearchResultsText() {
|
|
2118
2118
|
const { i18n: e } = this.options, n = this.countryList.childElementCount;
|
|
2119
|
-
let
|
|
2120
|
-
n === 0 ?
|
|
2119
|
+
let s;
|
|
2120
|
+
n === 0 ? s = e.zeroSearchResults : n === 1 ? s = e.oneSearchResult : s = e.multipleSearchResults.replace("${count}", n.toString()), this.searchResultsA11yText.textContent = s;
|
|
2121
2121
|
}
|
|
2122
2122
|
//* Highlight the next/prev item in the list (and ensure it is visible).
|
|
2123
2123
|
_handleUpDownKey(e) {
|
|
2124
|
-
var
|
|
2125
|
-
let n = e === "ArrowUp" ? (
|
|
2124
|
+
var s, o;
|
|
2125
|
+
let n = e === "ArrowUp" ? (s = this.highlightedItem) == null ? void 0 : s.previousElementSibling : (o = this.highlightedItem) == null ? void 0 : o.nextElementSibling;
|
|
2126
2126
|
!n && this.countryList.childElementCount > 1 && (n = e === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), n && (this._scrollTo(n), this._highlightListItem(n, !1));
|
|
2127
2127
|
}
|
|
2128
2128
|
//* Select the currently highlighted item.
|
|
@@ -2134,7 +2134,7 @@ class K2 {
|
|
|
2134
2134
|
_updateValFromNumber(e) {
|
|
2135
2135
|
let n = e;
|
|
2136
2136
|
if (this.options.formatOnDisplay && C.utils && this.selectedCountryData) {
|
|
2137
|
-
const
|
|
2137
|
+
const s = this.options.nationalMode || n.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: a } = C.utils.numberFormat, c = s ? o : a;
|
|
2138
2138
|
n = C.utils.formatNumber(
|
|
2139
2139
|
n,
|
|
2140
2140
|
this.selectedCountryData.iso2,
|
|
@@ -2150,18 +2150,18 @@ class K2 {
|
|
|
2150
2150
|
return n !== null ? this._setCountry(n) : !1;
|
|
2151
2151
|
}
|
|
2152
2152
|
_ensureHasDialCode(e) {
|
|
2153
|
-
const { dialCode: n, nationalPrefix:
|
|
2153
|
+
const { dialCode: n, nationalPrefix: s } = this.selectedCountryData;
|
|
2154
2154
|
if (e.charAt(0) === "+" || !n)
|
|
2155
2155
|
return e;
|
|
2156
|
-
const c =
|
|
2156
|
+
const c = s && e.charAt(0) === s && !this.options.separateDialCode ? e.substring(1) : e;
|
|
2157
2157
|
return `+${n}${c}`;
|
|
2158
2158
|
}
|
|
2159
2159
|
_getCountryFromNumber(e) {
|
|
2160
2160
|
const n = e.indexOf("+");
|
|
2161
|
-
let
|
|
2161
|
+
let s = n ? e.substring(n) : e;
|
|
2162
2162
|
const o = this.selectedCountryData.iso2, a = this.selectedCountryData.dialCode;
|
|
2163
|
-
|
|
2164
|
-
const c = this._getDialCode(
|
|
2163
|
+
s = this._ensureHasDialCode(s);
|
|
2164
|
+
const c = this._getDialCode(s, !0), g = c1(s);
|
|
2165
2165
|
if (c) {
|
|
2166
2166
|
const f = c1(c), S = this.dialCodeToIso2Map[f];
|
|
2167
2167
|
if (!o && this.defaultCountry && S.includes(this.defaultCountry))
|
|
@@ -2173,17 +2173,17 @@ class K2 {
|
|
|
2173
2173
|
return S[w];
|
|
2174
2174
|
}
|
|
2175
2175
|
} else {
|
|
2176
|
-
if (
|
|
2176
|
+
if (s.charAt(0) === "+" && g.length)
|
|
2177
2177
|
return "";
|
|
2178
|
-
if ((!
|
|
2178
|
+
if ((!s || s === "+") && !this.selectedCountryData.iso2)
|
|
2179
2179
|
return this.defaultCountry;
|
|
2180
2180
|
}
|
|
2181
2181
|
return null;
|
|
2182
2182
|
}
|
|
2183
2183
|
//* Remove highlighting from other list items and highlight the given item.
|
|
2184
2184
|
_highlightListItem(e, n) {
|
|
2185
|
-
const
|
|
2186
|
-
if (
|
|
2185
|
+
const s = this.highlightedItem;
|
|
2186
|
+
if (s && (s.classList.remove("iti__highlight"), s.setAttribute("aria-selected", "false")), this.highlightedItem = e, this.highlightedItem) {
|
|
2187
2187
|
this.highlightedItem.classList.add("iti__highlight"), this.highlightedItem.setAttribute("aria-selected", "true");
|
|
2188
2188
|
const o = this.highlightedItem.getAttribute("id") || "";
|
|
2189
2189
|
this.selectedCountry.setAttribute("aria-activedescendant", o), this.options.countrySearch && this.searchInput.setAttribute("aria-activedescendant", o);
|
|
@@ -2193,9 +2193,9 @@ class K2 {
|
|
|
2193
2193
|
//* Find the country data for the given iso2 code
|
|
2194
2194
|
//* the ignoreOnlyCountriesOption is only used during init() while parsing the onlyCountries array
|
|
2195
2195
|
_getCountryData(e, n) {
|
|
2196
|
-
for (let
|
|
2197
|
-
if (this.countries[
|
|
2198
|
-
return this.countries[
|
|
2196
|
+
for (let s = 0; s < this.countries.length; s++)
|
|
2197
|
+
if (this.countries[s].iso2 === e)
|
|
2198
|
+
return this.countries[s];
|
|
2199
2199
|
if (n)
|
|
2200
2200
|
return null;
|
|
2201
2201
|
throw new Error(`No country data for '${e}'`);
|
|
@@ -2203,10 +2203,10 @@ class K2 {
|
|
|
2203
2203
|
//* Update the selected country, dial code (if separateDialCode), placeholder, title, and active list item.
|
|
2204
2204
|
//* Note: called from _setInitialState, _updateCountryFromNumber, _selectListItem, setCountry.
|
|
2205
2205
|
_setCountry(e) {
|
|
2206
|
-
const { separateDialCode: n, showFlags:
|
|
2206
|
+
const { separateDialCode: n, showFlags: s, i18n: o } = this.options, a = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
|
|
2207
2207
|
if (this.selectedCountryData = e ? this._getCountryData(e, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountryInner) {
|
|
2208
2208
|
let c = "", g = "";
|
|
2209
|
-
e &&
|
|
2209
|
+
e && s ? (c = `iti__flag iti__${e}`, g = `${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`) : (c = "iti__flag iti__globe", g = o.noCountrySelected), this.selectedCountryInner.className = c, this.selectedCountryA11yText.textContent = g;
|
|
2210
2210
|
}
|
|
2211
2211
|
if (this._setSelectedCountryTitleAttribute(e, n), n) {
|
|
2212
2212
|
const c = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
|
|
@@ -2223,7 +2223,7 @@ class K2 {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
//* Update the maximum valid number length for the currently selected country.
|
|
2225
2225
|
_updateMaxLength() {
|
|
2226
|
-
const { strictMode: e, placeholderNumberType: n, validationNumberTypes:
|
|
2226
|
+
const { strictMode: e, placeholderNumberType: n, validationNumberTypes: s } = this.options, { iso2: o } = this.selectedCountryData;
|
|
2227
2227
|
if (e && C.utils)
|
|
2228
2228
|
if (o) {
|
|
2229
2229
|
const a = C.utils.numberType[n];
|
|
@@ -2233,7 +2233,7 @@ class K2 {
|
|
|
2233
2233
|
a,
|
|
2234
2234
|
!0
|
|
2235
2235
|
), g = c;
|
|
2236
|
-
for (; C.utils.isPossibleNumber(c, o,
|
|
2236
|
+
for (; C.utils.isPossibleNumber(c, o, s); )
|
|
2237
2237
|
g = c, c += "0";
|
|
2238
2238
|
const f = C.utils.getCoreNumber(g, o);
|
|
2239
2239
|
this.maxCoreNumberLength = f.length, o === "by" && (this.maxCoreNumberLength = f.length + 1);
|
|
@@ -2243,8 +2243,8 @@ class K2 {
|
|
|
2243
2243
|
_setSelectedCountryTitleAttribute(e = null, n) {
|
|
2244
2244
|
if (!this.selectedCountry)
|
|
2245
2245
|
return;
|
|
2246
|
-
let
|
|
2247
|
-
e && !n ?
|
|
2246
|
+
let s;
|
|
2247
|
+
e && !n ? s = `${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}` : e ? s = this.selectedCountryData.name : s = "Unknown", this.selectedCountry.setAttribute("title", s);
|
|
2248
2248
|
}
|
|
2249
2249
|
//* When the input is in a hidden container during initialisation, we must inject some markup
|
|
2250
2250
|
//* into the end of the DOM to calculate the correct offsetWidth.
|
|
@@ -2256,9 +2256,9 @@ class K2 {
|
|
|
2256
2256
|
e.style.visibility = "hidden", document.body.appendChild(e);
|
|
2257
2257
|
const n = this.countryContainer.cloneNode();
|
|
2258
2258
|
e.appendChild(n);
|
|
2259
|
-
const
|
|
2260
|
-
n.appendChild(
|
|
2261
|
-
const o =
|
|
2259
|
+
const s = this.selectedCountry.cloneNode(!0);
|
|
2260
|
+
n.appendChild(s);
|
|
2261
|
+
const o = s.offsetWidth;
|
|
2262
2262
|
return document.body.removeChild(e), o;
|
|
2263
2263
|
}
|
|
2264
2264
|
return 0;
|
|
@@ -2268,14 +2268,14 @@ class K2 {
|
|
|
2268
2268
|
const {
|
|
2269
2269
|
autoPlaceholder: e,
|
|
2270
2270
|
placeholderNumberType: n,
|
|
2271
|
-
nationalMode:
|
|
2271
|
+
nationalMode: s,
|
|
2272
2272
|
customPlaceholder: o
|
|
2273
2273
|
} = this.options, a = e === "aggressive" || !this.hadInitialPlaceholder && e === "polite";
|
|
2274
2274
|
if (C.utils && a) {
|
|
2275
2275
|
const c = C.utils.numberType[n];
|
|
2276
2276
|
let g = this.selectedCountryData.iso2 ? C.utils.getExampleNumber(
|
|
2277
2277
|
this.selectedCountryData.iso2,
|
|
2278
|
-
|
|
2278
|
+
s,
|
|
2279
2279
|
c
|
|
2280
2280
|
) : "";
|
|
2281
2281
|
g = this._beforeSetNumber(g), typeof o == "function" && (g = o(g, this.selectedCountryData)), this.telInput.setAttribute("placeholder", g);
|
|
@@ -2300,7 +2300,7 @@ class K2 {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
//* Check if an element is visible within it's container, else scroll until it is.
|
|
2302
2302
|
_scrollTo(e) {
|
|
2303
|
-
const n = this.countryList,
|
|
2303
|
+
const n = this.countryList, s = document.documentElement.scrollTop, o = n.offsetHeight, a = n.getBoundingClientRect().top + s, c = a + o, g = e.offsetHeight, f = e.getBoundingClientRect().top + s, S = f + g, _ = f - a + n.scrollTop;
|
|
2304
2304
|
if (f < a)
|
|
2305
2305
|
n.scrollTop = _;
|
|
2306
2306
|
else if (S > c) {
|
|
@@ -2311,26 +2311,26 @@ class K2 {
|
|
|
2311
2311
|
//* Replace any existing dial code with the new one
|
|
2312
2312
|
//* Note: called from _selectListItem and setCountry
|
|
2313
2313
|
_updateDialCode(e) {
|
|
2314
|
-
const n = this.telInput.value,
|
|
2314
|
+
const n = this.telInput.value, s = `+${e}`;
|
|
2315
2315
|
let o;
|
|
2316
2316
|
if (n.charAt(0) === "+") {
|
|
2317
2317
|
const a = this._getDialCode(n);
|
|
2318
|
-
a ? o = n.replace(a,
|
|
2318
|
+
a ? o = n.replace(a, s) : o = s, this.telInput.value = o;
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
2321
|
//* Try and extract a valid international dial code from a full telephone number.
|
|
2322
2322
|
//* Note: returns the raw string inc plus character and any whitespace/dots etc.
|
|
2323
2323
|
_getDialCode(e, n) {
|
|
2324
|
-
let
|
|
2324
|
+
let s = "";
|
|
2325
2325
|
if (e.charAt(0) === "+") {
|
|
2326
2326
|
let o = "";
|
|
2327
2327
|
for (let a = 0; a < e.length; a++) {
|
|
2328
2328
|
const c = e.charAt(a);
|
|
2329
2329
|
if (!isNaN(parseInt(c, 10))) {
|
|
2330
2330
|
if (o += c, n)
|
|
2331
|
-
this.dialCodeToIso2Map[o] && (
|
|
2331
|
+
this.dialCodeToIso2Map[o] && (s = e.substr(0, a + 1));
|
|
2332
2332
|
else if (this.dialCodes[o]) {
|
|
2333
|
-
|
|
2333
|
+
s = e.substr(0, a + 1);
|
|
2334
2334
|
break;
|
|
2335
2335
|
}
|
|
2336
2336
|
if (o.length === this.dialCodeMaxLen)
|
|
@@ -2338,23 +2338,23 @@ class K2 {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
return
|
|
2341
|
+
return s;
|
|
2342
2342
|
}
|
|
2343
2343
|
//* Get the input val, adding the dial code if separateDialCode is enabled.
|
|
2344
2344
|
_getFullNumber(e) {
|
|
2345
|
-
const n = e || this.telInput.value.trim(), { dialCode:
|
|
2345
|
+
const n = e || this.telInput.value.trim(), { dialCode: s } = this.selectedCountryData;
|
|
2346
2346
|
let o;
|
|
2347
2347
|
const a = c1(n);
|
|
2348
|
-
return this.options.separateDialCode && n.charAt(0) !== "+" &&
|
|
2348
|
+
return this.options.separateDialCode && n.charAt(0) !== "+" && s && a ? o = `+${s}` : o = "", o + n;
|
|
2349
2349
|
}
|
|
2350
2350
|
//* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
|
|
2351
2351
|
_beforeSetNumber(e) {
|
|
2352
2352
|
let n = e;
|
|
2353
2353
|
if (this.options.separateDialCode) {
|
|
2354
|
-
let
|
|
2355
|
-
if (
|
|
2356
|
-
|
|
2357
|
-
const o = n[
|
|
2354
|
+
let s = this._getDialCode(n);
|
|
2355
|
+
if (s) {
|
|
2356
|
+
s = `+${this.selectedCountryData.dialCode}`;
|
|
2357
|
+
const o = n[s.length] === " " || n[s.length] === "-" ? s.length + 1 : s.length;
|
|
2358
2358
|
n = n.substr(o);
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
@@ -2366,8 +2366,8 @@ class K2 {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
//* Format the number as the user types.
|
|
2368
2368
|
_formatNumberAsYouType() {
|
|
2369
|
-
const e = this._getFullNumber(), n = C.utils ? C.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode:
|
|
2370
|
-
return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && n.includes(`+${
|
|
2369
|
+
const e = this._getFullNumber(), n = C.utils ? C.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: s } = this.selectedCountryData;
|
|
2370
|
+
return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && n.includes(`+${s}`) ? (n.split(`+${s}`)[1] || "").trim() : n;
|
|
2371
2371
|
}
|
|
2372
2372
|
//**************************
|
|
2373
2373
|
//* SECRET PUBLIC METHODS
|
|
@@ -2398,8 +2398,8 @@ class K2 {
|
|
|
2398
2398
|
const g = this.telInput.closest("label");
|
|
2399
2399
|
g && g.removeEventListener("click", this._handleLabelClick);
|
|
2400
2400
|
}
|
|
2401
|
-
const { form:
|
|
2402
|
-
this._handleHiddenInputSubmit &&
|
|
2401
|
+
const { form: s } = this.telInput;
|
|
2402
|
+
this._handleHiddenInputSubmit && s && s.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), n && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
|
|
2403
2403
|
const o = this.telInput.parentNode;
|
|
2404
2404
|
(a = o == null ? void 0 : o.parentNode) == null || a.insertBefore(this.telInput, o), (c = o == null ? void 0 : o.parentNode) == null || c.removeChild(o), delete C.instances[this.id];
|
|
2405
2405
|
}
|
|
@@ -2447,7 +2447,7 @@ class K2 {
|
|
|
2447
2447
|
return !1;
|
|
2448
2448
|
const e = this._getFullNumber(), n = e.search(new RegExp("\\p{L}", "u"));
|
|
2449
2449
|
if (n > -1) {
|
|
2450
|
-
const
|
|
2450
|
+
const s = e.substring(0, n), o = this._utilsIsPossibleNumber(s), a = this._utilsIsPossibleNumber(e);
|
|
2451
2451
|
return o && a;
|
|
2452
2452
|
}
|
|
2453
2453
|
return this._utilsIsPossibleNumber(e);
|
|
@@ -2461,7 +2461,7 @@ class K2 {
|
|
|
2461
2461
|
return !1;
|
|
2462
2462
|
const e = this._getFullNumber(), n = e.search(new RegExp("\\p{L}", "u"));
|
|
2463
2463
|
if (n > -1) {
|
|
2464
|
-
const
|
|
2464
|
+
const s = e.substring(0, n), o = this._utilsIsValidNumber(s), a = this._utilsIsValidNumber(e);
|
|
2465
2465
|
return o && a;
|
|
2466
2466
|
}
|
|
2467
2467
|
return this._utilsIsValidNumber(e);
|
|
@@ -2471,8 +2471,8 @@ class K2 {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
//* Update the selected country, and update the input val accordingly.
|
|
2473
2473
|
setCountry(e) {
|
|
2474
|
-
const n = e == null ? void 0 : e.toLowerCase(),
|
|
2475
|
-
(e && n !==
|
|
2474
|
+
const n = e == null ? void 0 : e.toLowerCase(), s = this.selectedCountryData.iso2;
|
|
2475
|
+
(e && n !== s || !e && s) && (this._setCountry(n), this._updateDialCode(this.selectedCountryData.dialCode), this._triggerCountryChange());
|
|
2476
2476
|
}
|
|
2477
2477
|
//* Set the input value and update the country.
|
|
2478
2478
|
setNumber(e) {
|
|
@@ -2499,10 +2499,10 @@ const H2 = (y) => {
|
|
|
2499
2499
|
else
|
|
2500
2500
|
return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof y}`));
|
|
2501
2501
|
return C.startedLoadingUtilsScript = !0, e.then((n) => {
|
|
2502
|
-
const
|
|
2503
|
-
if (!
|
|
2502
|
+
const s = n == null ? void 0 : n.default;
|
|
2503
|
+
if (!s || typeof s != "object")
|
|
2504
2504
|
throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
|
|
2505
|
-
return C.utils =
|
|
2505
|
+
return C.utils = s, $1("handleUtils"), !0;
|
|
2506
2506
|
}).catch((n) => {
|
|
2507
2507
|
throw $1("rejectUtilsScriptPromise", n), n;
|
|
2508
2508
|
});
|
|
@@ -2529,7 +2529,7 @@ const H2 = (y) => {
|
|
|
2529
2529
|
attachUtils: H2,
|
|
2530
2530
|
startedLoadingUtilsScript: !1,
|
|
2531
2531
|
startedLoadingAutoCountry: !1,
|
|
2532
|
-
version: "25.
|
|
2532
|
+
version: "25.2.1"
|
|
2533
2533
|
}
|
|
2534
2534
|
);
|
|
2535
2535
|
(function() {
|
|
@@ -2543,12 +2543,12 @@ const H2 = (y) => {
|
|
|
2543
2543
|
function n(d, t) {
|
|
2544
2544
|
function $() {
|
|
2545
2545
|
}
|
|
2546
|
-
$.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(i,
|
|
2546
|
+
$.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(i, r, u) {
|
|
2547
2547
|
for (var l = Array(arguments.length - 2), h = 2; h < arguments.length; h++) l[h - 2] = arguments[h];
|
|
2548
|
-
return t.prototype[
|
|
2548
|
+
return t.prototype[r].apply(i, l);
|
|
2549
2549
|
};
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function s(d) {
|
|
2552
2552
|
const t = [];
|
|
2553
2553
|
let $ = 0;
|
|
2554
2554
|
for (const i in d) t[$++] = d[i];
|
|
@@ -2617,7 +2617,7 @@ const H2 = (y) => {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
2619
|
function a2(d) {
|
|
2620
|
-
return d =
|
|
2620
|
+
return d = s(d.g), d.sort(function(t, $) {
|
|
2621
2621
|
return t.g - $.g;
|
|
2622
2622
|
}), d;
|
|
2623
2623
|
}
|
|
@@ -2635,14 +2635,14 @@ const H2 = (y) => {
|
|
|
2635
2635
|
};
|
|
2636
2636
|
function S1(d, t) {
|
|
2637
2637
|
for (var $ = a2(d.m()), i = 0; i < $.length; i++) {
|
|
2638
|
-
var
|
|
2638
|
+
var r = $[i], u = r.g;
|
|
2639
2639
|
if (B(t, u)) {
|
|
2640
|
-
d.g && delete d.g[
|
|
2641
|
-
var l =
|
|
2642
|
-
if (
|
|
2643
|
-
|
|
2644
|
-
for (var h = 0; h <
|
|
2645
|
-
} else
|
|
2640
|
+
d.g && delete d.g[r.g];
|
|
2641
|
+
var l = r.h == 11 || r.h == 10;
|
|
2642
|
+
if (r.l) {
|
|
2643
|
+
r = P(t, u);
|
|
2644
|
+
for (var h = 0; h < r.length; h++) w1(d, u, l ? r[h].clone() : r[h]);
|
|
2645
|
+
} else r = n1(t, u), l ? (l = n1(d, u)) ? S1(l, r) : E(d, u, r.clone()) : E(d, u, r);
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
@@ -2658,11 +2658,11 @@ const H2 = (y) => {
|
|
|
2658
2658
|
if ($ == null) return null;
|
|
2659
2659
|
if (d.l) {
|
|
2660
2660
|
if (!(t in d.g)) {
|
|
2661
|
-
var i = d.l,
|
|
2662
|
-
if ($ != null) if (
|
|
2663
|
-
for (var u = [], l = 0; l < $.length; l++) u[l] = i.h(
|
|
2661
|
+
var i = d.l, r = d.j[t];
|
|
2662
|
+
if ($ != null) if (r.l) {
|
|
2663
|
+
for (var u = [], l = 0; l < $.length; l++) u[l] = i.h(r, $[l]);
|
|
2664
2664
|
$ = u;
|
|
2665
|
-
} else $ = i.h(
|
|
2665
|
+
} else $ = i.h(r, $);
|
|
2666
2666
|
return d.g[t] = $;
|
|
2667
2667
|
}
|
|
2668
2668
|
return d.g[t];
|
|
@@ -2704,11 +2704,11 @@ const H2 = (y) => {
|
|
|
2704
2704
|
for (i in t) i != 0 && $.push(new w(i, t[i]));
|
|
2705
2705
|
return new v1(d, $);
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function s1() {
|
|
2708
2708
|
}
|
|
2709
|
-
|
|
2709
|
+
s1.prototype.g = function(d) {
|
|
2710
2710
|
throw new d.h(), Error("Unimplemented");
|
|
2711
|
-
},
|
|
2711
|
+
}, s1.prototype.h = function(d, t) {
|
|
2712
2712
|
if (d.h == 11 || d.h == 10) return t instanceof R ? t : this.g(d.s.prototype.m(), t);
|
|
2713
2713
|
if (d.h == 14) return typeof t == "string" && b1.test(t) && (d = Number(t), 0 < d) ? d : t;
|
|
2714
2714
|
if (!d.o) return t;
|
|
@@ -2720,13 +2720,13 @@ const H2 = (y) => {
|
|
|
2720
2720
|
var b1 = /^-?[0-9]+$/;
|
|
2721
2721
|
function p1() {
|
|
2722
2722
|
}
|
|
2723
|
-
n(p1,
|
|
2723
|
+
n(p1, s1), p1.prototype.g = function(d, t) {
|
|
2724
2724
|
return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
|
|
2725
2725
|
};
|
|
2726
2726
|
function q() {
|
|
2727
2727
|
}
|
|
2728
2728
|
n(q, p1), q.prototype.h = function(d, t) {
|
|
2729
|
-
return d.h == 8 ? !!t :
|
|
2729
|
+
return d.h == 8 ? !!t : s1.prototype.h.apply(this, arguments);
|
|
2730
2730
|
}, q.prototype.g = function(d, t) {
|
|
2731
2731
|
return q.ma.g.call(this, d, t);
|
|
2732
2732
|
};
|
|
@@ -3838,11 +3838,11 @@ const H2 = (y) => {
|
|
|
3838
3838
|
], [, , "(?:2(?:04|[23]6|[48]9|50|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}", , , , "5062345678", , , [10], [7]], [, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002123456", , , [10]], [, , "900[2-9]\\d{6}", , , , "9002123456", , , [10]], [, , , , , , , , , [-1]], [
|
|
3839
3839
|
,
|
|
3840
3840
|
,
|
|
3841
|
-
"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(?:
|
|
3841
|
+
"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]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",
|
|
3842
3842
|
,
|
|
3843
3843
|
,
|
|
3844
3844
|
,
|
|
3845
|
-
"
|
|
3845
|
+
"5219023456",
|
|
3846
3846
|
,
|
|
3847
3847
|
,
|
|
3848
3848
|
[10]
|
|
@@ -4201,7 +4201,7 @@ const H2 = (y) => {
|
|
|
4201
4201
|
,
|
|
4202
4202
|
[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
4203
4203
|
[2, 3, 4]
|
|
4204
|
-
], [, , "
|
|
4204
|
+
], [, , "1(?:(?:5(?:[0-25-9]\\d\\d|310)|76\\d\\d)\\d{6}|6[023]\\d{7,8})|17\\d{8}", , , , "15123456789", , , [10, 11]], [, , "800\\d{7,12}", , , , "8001234567890", , , [10, 11, 12, 13, 14, 15]], [, , "(?:137[7-9]|900(?:[135]|9\\d))\\d{6}", , , , "9001234567", , , [10, 11]], [, , "180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}", , , , "18012345", , , [7, 8, 9, 10, 11, 12, 13, 14]], [, , "700\\d{8}", , , , "70012345678", , , [11]], [, , , , , , , , , [-1]], "DE", 49, "00", "0", , , "0", , , , [
|
|
4205
4205
|
[
|
|
4206
4206
|
,
|
|
4207
4207
|
"(\\d{2})(\\d{3,13})",
|
|
@@ -4248,44 +4248,62 @@ const H2 = (y) => {
|
|
|
4248
4248
|
DK: [, [, , "[2-9]\\d{7}", , , , , , , [8]], [
|
|
4249
4249
|
,
|
|
4250
4250
|
,
|
|
4251
|
-
"(?:(?:
|
|
4251
|
+
"(?:2(?:[0-59][1-9]|[6-8]\\d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7\\d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]\\d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6\\d))\\d{5}",
|
|
4252
4252
|
,
|
|
4253
4253
|
,
|
|
4254
4254
|
,
|
|
4255
4255
|
"32123456"
|
|
4256
|
-
], [, , "(?:[2-
|
|
4257
|
-
DM: [
|
|
4256
|
+
], [, , "(?:2[6-8]|37|6[78]|96)\\d{6}|(?:2[0-59]|3[0-689]|[457]\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\d{5}", , , , "34412345"], [, , "80\\d{6}", , , , "80123456"], [, , "90\\d{6}", , , , "90123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "DK", 45, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4257
|
+
DM: [
|
|
4258
4258
|
,
|
|
4259
|
-
,
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4259
|
+
[, , "(?:[58]\\d\\d|767|900)\\d{7}", , , , , , , [10], [7]],
|
|
4260
|
+
[
|
|
4261
|
+
,
|
|
4262
|
+
,
|
|
4263
|
+
"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",
|
|
4264
|
+
,
|
|
4265
|
+
,
|
|
4266
|
+
,
|
|
4267
|
+
"7674201234",
|
|
4268
|
+
,
|
|
4269
|
+
,
|
|
4270
|
+
,
|
|
4271
|
+
[7]
|
|
4272
|
+
],
|
|
4273
|
+
[, , "767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}", , , , "7672251234", , , , [7]],
|
|
4274
|
+
[, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002123456"],
|
|
4275
|
+
[, , "900[2-9]\\d{6}", , , , "9002123456"],
|
|
4276
|
+
[, , , , , , , , , [-1]],
|
|
4277
|
+
[, , "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]|33|44|66|77|88)[2-9]\\d{6}", , , , "5002345678"],
|
|
4278
|
+
[, , , , , , , , , [-1]],
|
|
4279
|
+
"DM",
|
|
4280
|
+
1,
|
|
4281
|
+
"011",
|
|
4282
|
+
"1",
|
|
4270
4283
|
,
|
|
4271
4284
|
,
|
|
4285
|
+
"([2-7]\\d{6})$|1",
|
|
4286
|
+
"767$1",
|
|
4272
4287
|
,
|
|
4273
4288
|
,
|
|
4274
4289
|
,
|
|
4275
4290
|
,
|
|
4291
|
+
[, , , , , , , , , [-1]],
|
|
4276
4292
|
,
|
|
4293
|
+
"767",
|
|
4294
|
+
[, , , , , , , , , [-1]],
|
|
4295
|
+
[, , , , , , , , , [-1]],
|
|
4277
4296
|
,
|
|
4278
4297
|
,
|
|
4279
|
-
[-1]
|
|
4280
|
-
],
|
|
4298
|
+
[, , , , , , , , , [-1]]
|
|
4299
|
+
],
|
|
4281
4300
|
DO: [
|
|
4282
4301
|
,
|
|
4283
4302
|
[, , "(?:[58]\\d\\d|900)\\d{7}", , , , , , , [10], [7]],
|
|
4284
|
-
[, , "8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}", , , , "8092345678", , , , [7]],
|
|
4285
4303
|
[
|
|
4286
4304
|
,
|
|
4287
4305
|
,
|
|
4288
|
-
"8[
|
|
4306
|
+
"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",
|
|
4289
4307
|
,
|
|
4290
4308
|
,
|
|
4291
4309
|
,
|
|
@@ -4295,6 +4313,7 @@ const H2 = (y) => {
|
|
|
4295
4313
|
,
|
|
4296
4314
|
[7]
|
|
4297
4315
|
],
|
|
4316
|
+
[, , "8[024]9[2-9]\\d{6}", , , , "8092345678", , , , [7]],
|
|
4298
4317
|
[, , "8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}", , , , "8002123456"],
|
|
4299
4318
|
[, , "900[2-9]\\d{6}", , , , "9002123456"],
|
|
4300
4319
|
[, , , , , , , , , [-1]],
|
|
@@ -4321,106 +4340,146 @@ const H2 = (y) => {
|
|
|
4321
4340
|
,
|
|
4322
4341
|
[, , , , , , , , , [-1]]
|
|
4323
4342
|
],
|
|
4324
|
-
DZ: [
|
|
4325
|
-
,
|
|
4326
|
-
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
4327
|
-
"$1 $2 $3 $4",
|
|
4328
|
-
["[1-4]"],
|
|
4329
|
-
"0$1"
|
|
4330
|
-
], [, "(\\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"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4331
|
-
EC: [, [, , "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", , , , , , , [8, 9, 10, 11], [7]], [, , "[2-7][2-7]\\d{6}", , , , "22123456", , , [8], [7]], [, , "964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}", , , , "991234567", , , [9]], [, , "1800\\d{7}|1[78]00\\d{6}", , , , "18001234567", , , [10, 11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
|
|
4332
|
-
,
|
|
4343
|
+
DZ: [
|
|
4333
4344
|
,
|
|
4345
|
+
[, , "(?:[1-4]|[5-79]\\d|80)\\d{7}", , , , , , , [8, 9]],
|
|
4346
|
+
[, , "9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}", , , , "12345678"],
|
|
4347
|
+
[, , "(?:5(?:4[0-29]|5\\d|6[0-3])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}", , , , "551234567", , , [9]],
|
|
4348
|
+
[, , "800\\d{6}", , , , "800123456", , , [9]],
|
|
4349
|
+
[, , "80[3-689]1\\d{5}", , , , "808123456", , , [9]],
|
|
4350
|
+
[, , "80[12]1\\d{5}", , , , "801123456", , , [9]],
|
|
4351
|
+
[, , , , , , , , , [-1]],
|
|
4352
|
+
[, , "98[23]\\d{6}", , , , "983123456", , , [9]],
|
|
4353
|
+
"DZ",
|
|
4354
|
+
213,
|
|
4355
|
+
"00",
|
|
4356
|
+
"0",
|
|
4334
4357
|
,
|
|
4335
4358
|
,
|
|
4359
|
+
"0",
|
|
4336
4360
|
,
|
|
4337
4361
|
,
|
|
4338
4362
|
,
|
|
4363
|
+
[[, "(\\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"]],
|
|
4339
4364
|
,
|
|
4365
|
+
[, , , , , , , , , [-1]],
|
|
4340
4366
|
,
|
|
4341
|
-
[-1]
|
|
4342
|
-
], [, , "[2-7]890\\d{4}", , , , "28901234", , , [8]], "EC", 593, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{4})", "$1-$2", ["[2-7]"]], [, "(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], [[, "(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-7]"]], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4343
|
-
EE: [
|
|
4344
4367
|
,
|
|
4345
|
-
[, , "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", , , , , , , [7, 8, 10]],
|
|
4346
|
-
[, , "(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}", , , , "3212345", , , [7]],
|
|
4347
|
-
[, , "(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}", , , , "51234567", , , [7, 8]],
|
|
4348
|
-
[
|
|
4349
|
-
,
|
|
4350
|
-
,
|
|
4351
|
-
"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",
|
|
4352
|
-
,
|
|
4353
|
-
,
|
|
4354
|
-
,
|
|
4355
|
-
"80012345"
|
|
4356
|
-
],
|
|
4357
|
-
[, , "(?:40\\d\\d|900)\\d{4}", , , , "9001234", , , [7, 8]],
|
|
4358
4368
|
[, , , , , , , , , [-1]],
|
|
4359
|
-
[, , "70[0-2]\\d{5}", , , , "70012345", , , [8]],
|
|
4360
4369
|
[, , , , , , , , , [-1]],
|
|
4361
|
-
"EE",
|
|
4362
|
-
372,
|
|
4363
|
-
"00",
|
|
4364
4370
|
,
|
|
4371
|
+
,
|
|
4372
|
+
[, , , , , , , , , [-1]]
|
|
4373
|
+
],
|
|
4374
|
+
EC: [, [, , "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", , , , , , , [8, 9, 10, 11], [7]], [, , "[2-7][2-7]\\d{6}", , , , "22123456", , , [8], [7]], [, , "964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}", , , , "991234567", , , [9]], [
|
|
4375
|
+
,
|
|
4376
|
+
,
|
|
4377
|
+
"1800\\d{7}|1[78]00\\d{6}",
|
|
4378
|
+
,
|
|
4379
|
+
,
|
|
4380
|
+
,
|
|
4381
|
+
"18001234567",
|
|
4382
|
+
,
|
|
4383
|
+
,
|
|
4384
|
+
[10, 11]
|
|
4385
|
+
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[2-7]890\\d{4}", , , , "28901234", , , [8]], "EC", 593, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{4})", "$1-$2", ["[2-7]"]], [, "(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], [[, "(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-7]"]], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], [
|
|
4365
4386
|
,
|
|
4366
4387
|
,
|
|
4367
4388
|
,
|
|
4368
4389
|
,
|
|
4369
4390
|
,
|
|
4370
4391
|
,
|
|
4371
|
-
[[, "(\\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"]]],
|
|
4372
4392
|
,
|
|
4373
|
-
[
|
|
4374
|
-
,
|
|
4375
|
-
,
|
|
4376
|
-
,
|
|
4377
|
-
,
|
|
4378
|
-
,
|
|
4379
|
-
,
|
|
4380
|
-
,
|
|
4381
|
-
,
|
|
4382
|
-
,
|
|
4383
|
-
[-1]
|
|
4384
|
-
],
|
|
4385
4393
|
,
|
|
4386
4394
|
,
|
|
4387
|
-
[
|
|
4395
|
+
[-1]
|
|
4396
|
+
], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4397
|
+
EE: [, [, , "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", , , , , , , [7, 8, 10]], [, , "(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}", , , , "3212345", , , [7]], [
|
|
4398
|
+
,
|
|
4399
|
+
,
|
|
4400
|
+
"(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",
|
|
4401
|
+
,
|
|
4402
|
+
,
|
|
4403
|
+
,
|
|
4404
|
+
"51234567",
|
|
4405
|
+
,
|
|
4406
|
+
,
|
|
4407
|
+
[7, 8]
|
|
4408
|
+
], [, , "800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}", , , , "80012345"], [, , "(?:40\\d\\d|900)\\d{4}", , , , "9001234", , , [7, 8]], [, , , , , , , , , [-1]], [, , "70[0-2]\\d{5}", , , , "70012345", , , [8]], [, , , , , , , , , [-1]], "EE", 372, "00", , , , , , , , [[, "(\\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])"]], [
|
|
4409
|
+
,
|
|
4410
|
+
"(\\d{2})(\\d{2})(\\d{4})",
|
|
4411
|
+
"$1 $2 $3",
|
|
4412
|
+
["7"]
|
|
4413
|
+
], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]], , [, , , , , , , , , [-1]], , , [, , "800[2-9]\\d{3}", , , , , , , [7]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4414
|
+
EG: [
|
|
4415
|
+
,
|
|
4416
|
+
[, , "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", , , , , , , [8, 9, 10], [6, 7]],
|
|
4417
|
+
[, , "13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}", , , , "234567890", , , [8, 9], [6, 7]],
|
|
4418
|
+
[, , "1[0-25]\\d{8}", , , , "1001234567", , , [10]],
|
|
4419
|
+
[, , "800\\d{7}", , , , "8001234567", , , [10]],
|
|
4420
|
+
[, , "900\\d{7}", , , , "9001234567", , , [10]],
|
|
4421
|
+
[, , , , , , , , , [-1]],
|
|
4422
|
+
[, , , , , , , , , [-1]],
|
|
4388
4423
|
[, , , , , , , , , [-1]],
|
|
4424
|
+
"EG",
|
|
4425
|
+
20,
|
|
4426
|
+
"00",
|
|
4427
|
+
"0",
|
|
4389
4428
|
,
|
|
4390
4429
|
,
|
|
4391
|
-
|
|
4392
|
-
],
|
|
4393
|
-
EG: [, [, , "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", , , , , , , [8, 9, 10], [6, 7]], [, , "13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}", , , , "234567890", , , [8, 9], [6, 7]], [, , "1[0-25]\\d{8}", , , , "1001234567", , , [10]], [, , "800\\d{7}", , , , "8001234567", , , [10]], [, , "900\\d{7}", , , , "9001234567", , , [10]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "EG", 20, "00", "0", , , "0", , , , [[
|
|
4430
|
+
"0",
|
|
4394
4431
|
,
|
|
4395
|
-
"(\\d)(\\d{7,8})",
|
|
4396
|
-
"$1 $2",
|
|
4397
|
-
["[23]"],
|
|
4398
|
-
"0$1"
|
|
4399
|
-
], [, "(\\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"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4400
|
-
EH: [, [, , "[5-8]\\d{8}", , , , , , , [9]], [, , "528[89]\\d{5}", , , , "528812345"], [, , "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}", , , , "650123456"], [, , "80[0-7]\\d{6}", , , , "801234567"], [, , "89\\d{7}", , , , "891234567"], [, , , , , , , , , [-1]], [
|
|
4401
4432
|
,
|
|
4402
4433
|
,
|
|
4434
|
+
[[, "(\\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"]],
|
|
4403
4435
|
,
|
|
4436
|
+
[, , , , , , , , , [-1]],
|
|
4404
4437
|
,
|
|
4405
4438
|
,
|
|
4439
|
+
[, , , , , , , , , [-1]],
|
|
4440
|
+
[, , , , , , , , , [-1]],
|
|
4406
4441
|
,
|
|
4407
4442
|
,
|
|
4443
|
+
[, , , , , , , , , [-1]]
|
|
4444
|
+
],
|
|
4445
|
+
EH: [
|
|
4408
4446
|
,
|
|
4447
|
+
[, , "[5-8]\\d{8}", , , , , , , [9]],
|
|
4448
|
+
[, , "528[89]\\d{5}", , , , "528812345"],
|
|
4449
|
+
[, , "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}", , , , "650123456"],
|
|
4450
|
+
[, , "80[0-7]\\d{6}", , , , "801234567"],
|
|
4451
|
+
[, , "89\\d{7}", , , , "891234567"],
|
|
4452
|
+
[, , , , , , , , , [-1]],
|
|
4453
|
+
[, , , , , , , , , [-1]],
|
|
4454
|
+
[, , "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}", , , , "592401234"],
|
|
4455
|
+
"EH",
|
|
4456
|
+
212,
|
|
4457
|
+
"00",
|
|
4458
|
+
"0",
|
|
4409
4459
|
,
|
|
4410
|
-
[-1]
|
|
4411
|
-
], [, , "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}", , , , "592401234"], "EH", 212, "00", "0", , , "0", , , , , , [, , , , , , , , , [-1]], , "528[89]", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4412
|
-
ER: [, [, , "[178]\\d{6}", , , , , , , [7], [6]], [, , "(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}", , , , "8370362", , , , [6]], [, , "(?:17[1-3]|7\\d\\d)\\d{4}", , , , "7123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "ER", 291, "00", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], , [
|
|
4413
4460
|
,
|
|
4461
|
+
"0",
|
|
4414
4462
|
,
|
|
4415
4463
|
,
|
|
4416
4464
|
,
|
|
4417
4465
|
,
|
|
4418
4466
|
,
|
|
4467
|
+
[, , , , , , , , , [-1]],
|
|
4419
4468
|
,
|
|
4469
|
+
"528[89]",
|
|
4470
|
+
[, , , , , , , , , [-1]],
|
|
4471
|
+
[, , , , , , , , , [-1]],
|
|
4420
4472
|
,
|
|
4421
4473
|
,
|
|
4422
|
-
[-1]
|
|
4423
|
-
],
|
|
4474
|
+
[, , , , , , , , , [-1]]
|
|
4475
|
+
],
|
|
4476
|
+
ER: [, [, , "[178]\\d{6}", , , , , , , [7], [6]], [, , "(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}", , , , "8370362", , , , [6]], [, , "(?:17[1-3]|7\\d\\d)\\d{4}", , , , "7123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "ER", 291, "00", "0", , , "0", , , , [[
|
|
4477
|
+
,
|
|
4478
|
+
"(\\d)(\\d{3})(\\d{3})",
|
|
4479
|
+
"$1 $2 $3",
|
|
4480
|
+
["[178]"],
|
|
4481
|
+
"0$1"
|
|
4482
|
+
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4424
4483
|
ES: [
|
|
4425
4484
|
,
|
|
4426
4485
|
[, , "[5-9]\\d{8}", , , , , , , [9]],
|
|
@@ -4452,7 +4511,19 @@ const H2 = (y) => {
|
|
|
4452
4511
|
,
|
|
4453
4512
|
[, , , , , , , , , [-1]]
|
|
4454
4513
|
],
|
|
4455
|
-
ET: [, [
|
|
4514
|
+
ET: [, [
|
|
4515
|
+
,
|
|
4516
|
+
,
|
|
4517
|
+
"(?:11|[2-579]\\d)\\d{7}",
|
|
4518
|
+
,
|
|
4519
|
+
,
|
|
4520
|
+
,
|
|
4521
|
+
,
|
|
4522
|
+
,
|
|
4523
|
+
,
|
|
4524
|
+
[9],
|
|
4525
|
+
[7]
|
|
4526
|
+
], [
|
|
4456
4527
|
,
|
|
4457
4528
|
,
|
|
4458
4529
|
"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8]|7\\d)|5(?:1[578]|44|5[0-4])|6(?:1[578]|2[69]|39|4[5-7]|5[0-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",
|
|
@@ -5029,7 +5100,7 @@ const H2 = (y) => {
|
|
|
5029
5100
|
10,
|
|
5030
5101
|
11,
|
|
5031
5102
|
12
|
|
5032
|
-
]], [, , "153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}", , , , "21234567", , , [8, 11, 12], [7]], [, , "55(?:
|
|
5103
|
+
]], [, , "153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}", , , , "21234567", , , [8, 11, 12], [7]], [, , "55(?:4(?:[01]0|5[0-2])|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}", , , , "502345678", , , [9]], [, , "1(?:255|80[019]\\d{3})\\d{3}", , , , "1800123456", , , [7, 10]], [, , "1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}", , , , "1919123456", , , [8, 10]], [, , "1700\\d{6}", , , , "1700123456", , , [10]], [, , , , , , , , , [-1]], [
|
|
5033
5104
|
,
|
|
5034
5105
|
,
|
|
5035
5106
|
"7(?:38(?:0\\d|5[0-2569]|88)|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",
|
|
@@ -5330,61 +5401,86 @@ const H2 = (y) => {
|
|
|
5330
5401
|
,
|
|
5331
5402
|
[9]
|
|
5332
5403
|
], , , [, , , , , , , , , [-1]], [, , "8(?:10|8\\d)\\d{5}", , , , "88101234", , , [8]], , , [, , , , , , , , , [-1]]],
|
|
5333
|
-
JP: [
|
|
5334
|
-
,
|
|
5404
|
+
JP: [
|
|
5335
5405
|
,
|
|
5336
|
-
"[
|
|
5337
|
-
,
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5406
|
+
[, , "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]],
|
|
5407
|
+
[, , "(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}", , , , "312345678", , , [9]],
|
|
5408
|
+
[
|
|
5409
|
+
,
|
|
5410
|
+
,
|
|
5411
|
+
"(?:60\\d|[7-9]0[1-9])\\d{7}",
|
|
5412
|
+
,
|
|
5413
|
+
,
|
|
5414
|
+
,
|
|
5415
|
+
"9012345678",
|
|
5416
|
+
,
|
|
5417
|
+
,
|
|
5418
|
+
[10]
|
|
5419
|
+
],
|
|
5420
|
+
[, , "00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}", , , , "120123456"],
|
|
5421
|
+
[, , "990\\d{6}", , , , "990123456", , , [9]],
|
|
5422
|
+
[, , , , , , , , , [-1]],
|
|
5423
|
+
[, , "60\\d{7}", , , , "601234567", , , [9]],
|
|
5424
|
+
[, , "50[1-9]\\d{7}", , , , "5012345678", , , [10]],
|
|
5425
|
+
"JP",
|
|
5426
|
+
81,
|
|
5427
|
+
"010",
|
|
5428
|
+
"0",
|
|
5341
5429
|
,
|
|
5342
5430
|
,
|
|
5343
|
-
[
|
|
5344
|
-
|
|
5431
|
+
"(000[259]\\d{6})$|(?:(?:003768)0?)|0",
|
|
5432
|
+
"$1",
|
|
5345
5433
|
,
|
|
5346
|
-
"(\\d{4})(\\d)(\\d{4})",
|
|
5347
|
-
"$1-$2-$3",
|
|
5348
|
-
["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]"],
|
|
5349
|
-
"0$1"
|
|
5350
|
-
], [
|
|
5351
5434
|
,
|
|
5352
|
-
"(\\d{2})(\\d{3})(\\d{
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5435
|
+
[[, "(\\d{4})(\\d{4})", "$1-$2", ["007", "0077", "00777", "00777[01]"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], [
|
|
5436
|
+
,
|
|
5437
|
+
"(\\d{4})(\\d)(\\d{4})",
|
|
5438
|
+
"$1-$2-$3",
|
|
5439
|
+
["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]"],
|
|
5440
|
+
"0$1"
|
|
5441
|
+
], [
|
|
5442
|
+
,
|
|
5443
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
5444
|
+
"$1-$2-$3",
|
|
5445
|
+
["60"],
|
|
5446
|
+
"0$1"
|
|
5447
|
+
], [, "(\\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"], [
|
|
5448
|
+
,
|
|
5449
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
5450
|
+
"$1-$2-$3",
|
|
5451
|
+
[
|
|
5452
|
+
"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])",
|
|
5453
|
+
"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]",
|
|
5454
|
+
"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]"
|
|
5455
|
+
],
|
|
5456
|
+
"0$1"
|
|
5457
|
+
], [, "(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], [, "(\\d{4})(\\d{2})(\\d{3,4})", "$1-$2-$3", ["007", "0077"]], [, "(\\d{4})(\\d{2})(\\d{4})", "$1-$2-$3", ["008"]], [, "(\\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"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1-$2-$3", ["0"]], [, "(\\d{4})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["0"]], [, "(\\d{4})(\\d{5})(\\d{5,6})", "$1-$2-$3", ["0"]], [, "(\\d{4})(\\d{6})(\\d{6,7})", "$1-$2-$3", ["0"]]],
|
|
5458
|
+
[[, "(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], [
|
|
5459
|
+
,
|
|
5460
|
+
"(\\d{4})(\\d)(\\d{4})",
|
|
5461
|
+
"$1-$2-$3",
|
|
5462
|
+
["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]"],
|
|
5463
|
+
"0$1"
|
|
5464
|
+
], [, "(\\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"], [
|
|
5465
|
+
,
|
|
5466
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
5467
|
+
"$1-$2-$3",
|
|
5468
|
+
[
|
|
5469
|
+
"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])",
|
|
5470
|
+
"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]",
|
|
5471
|
+
"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]"
|
|
5472
|
+
],
|
|
5473
|
+
"0$1"
|
|
5474
|
+
], [, "(\\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"]],
|
|
5475
|
+
[, , "20\\d{8}", , , , "2012345678", , , [10]],
|
|
5357
5476
|
,
|
|
5358
|
-
"(\\d{2})(\\d{3})(\\d{4})",
|
|
5359
|
-
"$1-$2-$3",
|
|
5360
|
-
[
|
|
5361
|
-
"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])",
|
|
5362
|
-
"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]",
|
|
5363
|
-
"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]"
|
|
5364
|
-
],
|
|
5365
|
-
"0$1"
|
|
5366
|
-
], [, "(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], [, "(\\d{4})(\\d{2})(\\d{3,4})", "$1-$2-$3", ["007", "0077"]], [, "(\\d{4})(\\d{2})(\\d{4})", "$1-$2-$3", ["008"]], [, "(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], [, "(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3,4})", "$1-$2-$3", ["0"]], [, "(\\d{4})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["0"]], [, "(\\d{4})(\\d{5})(\\d{5,6})", "$1-$2-$3", ["0"]], [
|
|
5367
5477
|
,
|
|
5368
|
-
"(\\d
|
|
5369
|
-
"
|
|
5370
|
-
["0"]
|
|
5371
|
-
]], [[, "(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], [
|
|
5478
|
+
[, , "00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],
|
|
5479
|
+
[, , "570\\d{6}", , , , "570123456", , , [9]],
|
|
5372
5480
|
,
|
|
5373
|
-
"(\\d{4})(\\d)(\\d{4})",
|
|
5374
|
-
"$1-$2-$3",
|
|
5375
|
-
["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]"],
|
|
5376
|
-
"0$1"
|
|
5377
|
-
], [, "(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], [
|
|
5378
5481
|
,
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
[
|
|
5382
|
-
"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])",
|
|
5383
|
-
"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]",
|
|
5384
|
-
"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]"
|
|
5385
|
-
],
|
|
5386
|
-
"0$1"
|
|
5387
|
-
], [, "(\\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", ["[257-9]"], "0$1"]], [, , "20\\d{8}", , , , "2012345678", , , [10]], , , [, , "00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"], [, , "570\\d{6}", , , , "570123456", , , [9]], , , [, , , , , , , , , [-1]]],
|
|
5482
|
+
[, , , , , , , , , [-1]]
|
|
5483
|
+
],
|
|
5388
5484
|
KE: [, [, , "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", , , , , , , [7, 8, 9, 10]], [
|
|
5389
5485
|
,
|
|
5390
5486
|
,
|
|
@@ -5547,7 +5643,7 @@ const H2 = (y) => {
|
|
|
5547
5643
|
KY: [, [, , "(?:345|[58]\\d\\d|900)\\d{7}", , , , , , , [10], [7]], [
|
|
5548
5644
|
,
|
|
5549
5645
|
,
|
|
5550
|
-
"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[
|
|
5646
|
+
"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))\\d{4}",
|
|
5551
5647
|
,
|
|
5552
5648
|
,
|
|
5553
5649
|
,
|
|
@@ -5564,7 +5660,7 @@ const H2 = (y) => {
|
|
|
5564
5660
|
,
|
|
5565
5661
|
,
|
|
5566
5662
|
"5002345678"
|
|
5567
|
-
], [, , , , , , , , , [-1]], "KY", 1, "011", "1", , , "([2-9]\\d{6})$|1", "345$1", , , , , [, ,
|
|
5663
|
+
], [, , , , , , , , , [-1]], "KY", 1, "011", "1", , , "([2-9]\\d{6})$|1", "345$1", , , , , [, , , , , , , , , [-1]], , "345", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5568
5664
|
KZ: [, [, , "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", , , , , , , [10, 14], [5, 6, 7]], [
|
|
5569
5665
|
,
|
|
5570
5666
|
,
|
|
@@ -5970,18 +6066,37 @@ const H2 = (y) => {
|
|
|
5970
6066
|
,
|
|
5971
6067
|
[, , , , , , , , , [-1]]
|
|
5972
6068
|
],
|
|
5973
|
-
MN: [
|
|
6069
|
+
MN: [
|
|
5974
6070
|
,
|
|
6071
|
+
[, , "[12]\\d{7,9}|[5-9]\\d{7}", , , , , , , [8, 9, 10], [4, 5, 6]],
|
|
6072
|
+
[, , "[12]2[1-3]\\d{5,6}|(?:(?:[12](?:1|27)|5[368])\\d\\d|7(?:0(?:[0-5]\\d|7[078]|80)|128))\\d{4}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}", , , , "53123456", , , , [4, 5, 6]],
|
|
6073
|
+
[, , "(?:83[01]|92[039])\\d{5}|(?:5[05]|6[069]|72|8[015689]|9[013-9])\\d{6}", , , , "88123456", , , [8]],
|
|
6074
|
+
[, , , , , , , , , [-1]],
|
|
6075
|
+
[, , , , , , , , , [-1]],
|
|
6076
|
+
[, , , , , , , , , [-1]],
|
|
6077
|
+
[, , , , , , , , , [-1]],
|
|
6078
|
+
[, , "712[0-79]\\d{4}|7(?:1[013-9]|[5-9]\\d)\\d{5}", , , , "75123456", , , [8]],
|
|
6079
|
+
"MN",
|
|
6080
|
+
976,
|
|
6081
|
+
"001",
|
|
6082
|
+
"0",
|
|
5975
6083
|
,
|
|
5976
|
-
"712[0-79]\\d{4}|7(?:1[013-9]|[25-9]\\d)\\d{5}",
|
|
5977
6084
|
,
|
|
6085
|
+
"0",
|
|
5978
6086
|
,
|
|
5979
6087
|
,
|
|
5980
|
-
"75123456",
|
|
5981
6088
|
,
|
|
6089
|
+
[[, "(\\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"]],
|
|
5982
6090
|
,
|
|
5983
|
-
[
|
|
5984
|
-
|
|
6091
|
+
[, , , , , , , , , [-1]],
|
|
6092
|
+
,
|
|
6093
|
+
,
|
|
6094
|
+
[, , , , , , , , , [-1]],
|
|
6095
|
+
[, , , , , , , , , [-1]],
|
|
6096
|
+
,
|
|
6097
|
+
,
|
|
6098
|
+
[, , , , , , , , , [-1]]
|
|
6099
|
+
],
|
|
5985
6100
|
MO: [, [
|
|
5986
6101
|
,
|
|
5987
6102
|
,
|
|
@@ -7398,7 +7513,7 @@ const H2 = (y) => {
|
|
|
7398
7513
|
,
|
|
7399
7514
|
,
|
|
7400
7515
|
[5, 6, 7]
|
|
7401
|
-
], [, , "72[48]0\\d{5}|7(?:[015-8]\\d|2[067]|36|4[0-
|
|
7516
|
+
], [, , "72[48]0\\d{5}|7(?:[015-8]\\d|2[067]|36|4[0-7]|9[89])\\d{6}", , , , "712345678"], [, , "800[1-3]\\d{5}", , , , "800123456"], [, , "90[1-3]\\d{6}", , , , "901123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UG", 256, "00[057]", "0", , , "0", , , , [[, "(\\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"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7402
7517
|
US: [, [
|
|
7403
7518
|
,
|
|
7404
7519
|
,
|
|
@@ -7414,7 +7529,7 @@ const H2 = (y) => {
|
|
|
7414
7529
|
], [
|
|
7415
7530
|
,
|
|
7416
7531
|
,
|
|
7417
|
-
"(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])
|
|
7532
|
+
"(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|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-47-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-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|8[04-69]))[2-9]\\d{6}",
|
|
7418
7533
|
,
|
|
7419
7534
|
,
|
|
7420
7535
|
,
|
|
@@ -7426,7 +7541,7 @@ const H2 = (y) => {
|
|
|
7426
7541
|
], [
|
|
7427
7542
|
,
|
|
7428
7543
|
,
|
|
7429
|
-
"(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])
|
|
7544
|
+
"(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|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-47-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-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|8[04-69]))[2-9]\\d{6}",
|
|
7430
7545
|
,
|
|
7431
7546
|
,
|
|
7432
7547
|
,
|
|
@@ -7460,10 +7575,10 @@ const H2 = (y) => {
|
|
|
7460
7575
|
,
|
|
7461
7576
|
[-1]
|
|
7462
7577
|
]],
|
|
7463
|
-
UZ: [, [, , "(?:20|33|[5-
|
|
7578
|
+
UZ: [, [, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|[68]\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"], [
|
|
7464
7579
|
,
|
|
7465
7580
|
,
|
|
7466
|
-
"(?:(?:[25]0|33|
|
|
7581
|
+
"(?:(?:[25]0|33|8[78]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
|
|
7467
7582
|
,
|
|
7468
7583
|
,
|
|
7469
7584
|
,
|
|
@@ -7999,7 +8114,7 @@ const H2 = (y) => {
|
|
|
7999
8114
|
return 2 > d.length ? !1 : U(v2, d);
|
|
8000
8115
|
}
|
|
8001
8116
|
function R1(d) {
|
|
8002
|
-
return U(y2, d) ?
|
|
8117
|
+
return U(y2, d) ? r1(d, f2) : r1(d, g1);
|
|
8003
8118
|
}
|
|
8004
8119
|
function B1(d) {
|
|
8005
8120
|
var t = R1(d.toString());
|
|
@@ -8008,8 +8123,8 @@ const H2 = (y) => {
|
|
|
8008
8123
|
function k1(d) {
|
|
8009
8124
|
return d != null && (K(d, 9) != 1 || P(d, 9)[0] != -1);
|
|
8010
8125
|
}
|
|
8011
|
-
function
|
|
8012
|
-
for (var $ = new N(), i,
|
|
8126
|
+
function r1(d, t) {
|
|
8127
|
+
for (var $ = new N(), i, r = d.length, u = 0; u < r; ++u) i = d.charAt(u), i = t[i.toUpperCase()], i != null && $.g(i);
|
|
8013
8128
|
return $.toString();
|
|
8014
8129
|
}
|
|
8015
8130
|
function O1(d) {
|
|
@@ -8027,24 +8142,24 @@ const H2 = (y) => {
|
|
|
8027
8142
|
var i = t1(d);
|
|
8028
8143
|
if (t == 0) return G1($, 0, i, "");
|
|
8029
8144
|
if (!($ in X)) return i;
|
|
8030
|
-
var
|
|
8031
|
-
d = B(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : B(
|
|
8145
|
+
var r = d1(this, $, e1($));
|
|
8146
|
+
d = B(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : B(r, 13) ? p(r, 13) + v(d, 3) : " ext. " + v(d, 3) : "";
|
|
8032
8147
|
d: {
|
|
8033
|
-
|
|
8034
|
-
for (var u, l =
|
|
8035
|
-
u =
|
|
8148
|
+
r = P(r, 20).length == 0 || t == 2 ? P(r, 19) : P(r, 20);
|
|
8149
|
+
for (var u, l = r.length, h = 0; h < l; ++h) {
|
|
8150
|
+
u = r[h];
|
|
8036
8151
|
var m = K(u, 3);
|
|
8037
8152
|
if ((m == 0 || i.search(p(u, 3, m - 1)) == 0) && (m = new RegExp(p(u, 1)), U(m, i))) {
|
|
8038
|
-
|
|
8153
|
+
r = u;
|
|
8039
8154
|
break d;
|
|
8040
8155
|
}
|
|
8041
8156
|
}
|
|
8042
|
-
|
|
8157
|
+
r = null;
|
|
8043
8158
|
}
|
|
8044
|
-
return
|
|
8159
|
+
return r != null && (l = r, r = v(l, 2), u = new RegExp(p(l, 1)), v(
|
|
8045
8160
|
l,
|
|
8046
8161
|
5
|
|
8047
|
-
), l = v(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u,
|
|
8162
|
+
), l = v(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u, r.replace(S2, l)) : i.replace(u, r), t == 3 && (i = i.replace(RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), i = i.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), G1($, t, i, d);
|
|
8048
8163
|
};
|
|
8049
8164
|
function d1(d, t, $) {
|
|
8050
8165
|
return $ == "001" ? j(d, "" + t) : j(d, $);
|
|
@@ -8115,8 +8230,8 @@ const H2 = (y) => {
|
|
|
8115
8230
|
return 0 < K(t, 9) && P(t, 9).indexOf($) == -1 ? !1 : U(v(t, 2), d);
|
|
8116
8231
|
}
|
|
8117
8232
|
function b2(d, t) {
|
|
8118
|
-
var $ = U1(d, t), i = v(t, 1),
|
|
8119
|
-
return
|
|
8233
|
+
var $ = U1(d, t), i = v(t, 1), r = d1(d, i, $);
|
|
8234
|
+
return r == null || $ != "001" && i != V1(d, $) ? r = !1 : (d = t1(t), r = C1(d, r) != -1), r;
|
|
8120
8235
|
}
|
|
8121
8236
|
function U1(d, t) {
|
|
8122
8237
|
if (t == null) return null;
|
|
@@ -8125,7 +8240,7 @@ const H2 = (y) => {
|
|
|
8125
8240
|
else if ($.length == 1) d = $[0];
|
|
8126
8241
|
else d: {
|
|
8127
8242
|
t = t1(t);
|
|
8128
|
-
for (var i,
|
|
8243
|
+
for (var i, r = $.length, u = 0; u < r; u++) {
|
|
8129
8244
|
i = $[u];
|
|
8130
8245
|
var l = j(d, i);
|
|
8131
8246
|
if (B(l, 23)) {
|
|
@@ -8150,10 +8265,10 @@ const H2 = (y) => {
|
|
|
8150
8265
|
return v(d, 10);
|
|
8151
8266
|
}
|
|
8152
8267
|
function l1(d, t, $, i) {
|
|
8153
|
-
var
|
|
8154
|
-
if (
|
|
8268
|
+
var r = u1($, i), u = K(r, 9) == 0 ? P(p($, 1), 9) : P(r, 9);
|
|
8269
|
+
if (r = P(r, 10), i == 2) if (k1(u1($, 0))) d = u1($, 1), k1(d) && (u = u.concat(K(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), u.sort(), r.length == 0 ? r = P(d, 10) : (r = r.concat(P(d, 10)), r.sort()));
|
|
8155
8270
|
else return l1(d, t, $, 1);
|
|
8156
|
-
return u[0] == -1 ? 5 : (t = t.length, -1 <
|
|
8271
|
+
return u[0] == -1 ? 5 : (t = t.length, -1 < r.indexOf(t) ? 4 : ($ = u[0], $ == t ? 0 : $ > t ? 2 : u[u.length - 1] < t ? 3 : -1 < u.indexOf(t, 1) ? 0 : 5));
|
|
8157
8272
|
}
|
|
8158
8273
|
function a1(d, t, $) {
|
|
8159
8274
|
var i = t1(t);
|
|
@@ -8161,10 +8276,10 @@ const H2 = (y) => {
|
|
|
8161
8276
|
}
|
|
8162
8277
|
function K1(d, t) {
|
|
8163
8278
|
if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
|
|
8164
|
-
for (var $, i = d.length,
|
|
8279
|
+
for (var $, i = d.length, r = 1; 3 >= r && r <= i; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in X) return t.g(d.substring(r)), $;
|
|
8165
8280
|
return 0;
|
|
8166
8281
|
}
|
|
8167
|
-
function H1(d, t, $, i,
|
|
8282
|
+
function H1(d, t, $, i, r, u) {
|
|
8168
8283
|
if (t.length == 0) return 0;
|
|
8169
8284
|
t = new N(t);
|
|
8170
8285
|
var l;
|
|
@@ -8176,25 +8291,25 @@ const H2 = (y) => {
|
|
|
8176
8291
|
if (h = new RegExp(l), B1(t), l = t.toString(), l.search(h) == 0) {
|
|
8177
8292
|
h = l.match(h)[0].length;
|
|
8178
8293
|
var m = l.substring(h).match(D1);
|
|
8179
|
-
m && m[1] != null && 0 < m[1].length &&
|
|
8294
|
+
m && m[1] != null && 0 < m[1].length && r1(m[1], g1) == "0" ? l = !1 : (k(t), t.g(l.substring(h)), l = !0);
|
|
8180
8295
|
} else l = !1;
|
|
8181
8296
|
l = l ? 5 : 20;
|
|
8182
8297
|
}
|
|
8183
|
-
if (
|
|
8298
|
+
if (r && E(u, 6, l), l != 20) {
|
|
8184
8299
|
if (2 >= t.h.length) throw Error("Phone number too short after IDD");
|
|
8185
8300
|
if (d = K1(t, i), d != 0) return E(u, 1, d), d;
|
|
8186
8301
|
throw Error("Invalid country calling code");
|
|
8187
8302
|
}
|
|
8188
|
-
return $ != null && (l = v($, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new N(m.substring(h.length)), m = p($, 1), m = new RegExp(v(m, 2)), j1(h, $, null), h = h.toString(), !U(m, t.toString()) && U(m, h) || l1(d, t.toString(), $, -1) == 3)) ? (i.g(h),
|
|
8303
|
+
return $ != null && (l = v($, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new N(m.substring(h.length)), m = p($, 1), m = new RegExp(v(m, 2)), j1(h, $, null), h = h.toString(), !U(m, t.toString()) && U(m, h) || l1(d, t.toString(), $, -1) == 3)) ? (i.g(h), r && E(u, 6, 10), E(u, 1, l), l) : (E(u, 1, 0), 0);
|
|
8189
8304
|
}
|
|
8190
8305
|
function j1(d, t, $) {
|
|
8191
|
-
var i = d.toString(),
|
|
8192
|
-
if (
|
|
8306
|
+
var i = d.toString(), r = i.length, u = p(t, 15);
|
|
8307
|
+
if (r != 0 && u != null && u.length != 0) {
|
|
8193
8308
|
var l = new RegExp("^(?:" + u + ")");
|
|
8194
|
-
if (
|
|
8309
|
+
if (r = l.exec(i)) {
|
|
8195
8310
|
u = new RegExp(v(p(t, 1), 2));
|
|
8196
|
-
var h = U(u, i), m =
|
|
8197
|
-
t = p(t, 16), t == null || t.length == 0 ||
|
|
8311
|
+
var h = U(u, i), m = r.length - 1;
|
|
8312
|
+
t = p(t, 16), t == null || t.length == 0 || r[m] == null || r[m].length == 0 ? (!h || U(u, i.substring(r[0].length))) && ($ != null && 0 < m && r[m] != null && $.g(r[1]), d.set(i.substring(r[0].length))) : (i = i.replace(l, t), (!h || U(u, i)) && ($ != null && 0 < m && $.g(r[1]), d.set(i)));
|
|
8198
8313
|
}
|
|
8199
8314
|
}
|
|
8200
8315
|
}
|
|
@@ -8205,7 +8320,7 @@ const H2 = (y) => {
|
|
|
8205
8320
|
function W1(d, t, $, i) {
|
|
8206
8321
|
if (t == null) throw Error("The string supplied did not seem to be a phone number");
|
|
8207
8322
|
if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
|
|
8208
|
-
var
|
|
8323
|
+
var r = new N(), u = t.indexOf(";phone-context=");
|
|
8209
8324
|
if (u === -1) u = null;
|
|
8210
8325
|
else if (u += 15, u >= t.length) u = "";
|
|
8211
8326
|
else {
|
|
@@ -8213,20 +8328,20 @@ const H2 = (y) => {
|
|
|
8213
8328
|
u = l !== -1 ? t.substring(u, l) : t.substring(u);
|
|
8214
8329
|
}
|
|
8215
8330
|
var h = u;
|
|
8216
|
-
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = _2.exec(h), h = I2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" &&
|
|
8217
|
-
if (u =
|
|
8331
|
+
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = _2.exec(h), h = I2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && r.g(u), u = t.indexOf("tel:"), r.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = r.g, l = t ?? "", h = l.search(g2), 0 <= h ? (l = l.substring(h), l = l.replace(m2, ""), h = l.search(C2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(r, l)), u = r.toString(), l = u.indexOf(";isub="), 0 < l && (k(r), r.g(u.substring(0, l))), !x1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
|
|
8332
|
+
if (u = r.toString(), !(o1($) || u != null && 0 < u.length && Q.test(u))) throw Error("Invalid country calling code");
|
|
8218
8333
|
u = new H(), i && E(u, 5, t);
|
|
8219
8334
|
d: {
|
|
8220
|
-
if (t =
|
|
8335
|
+
if (t = r.toString(), l = t.search(P1), 0 <= l && x1(t.substring(0, l))) {
|
|
8221
8336
|
h = t.match(P1);
|
|
8222
8337
|
for (var m = h.length, V = 1; V < m; ++V) if (h[V] != null && 0 < h[V].length) {
|
|
8223
|
-
k(
|
|
8338
|
+
k(r), r.g(t.substring(0, l)), t = h[V];
|
|
8224
8339
|
break d;
|
|
8225
8340
|
}
|
|
8226
8341
|
}
|
|
8227
8342
|
t = "";
|
|
8228
8343
|
}
|
|
8229
|
-
0 < t.length && E(u, 3, t), l = j(d, $), t = new N(), h = 0, m =
|
|
8344
|
+
0 < t.length && E(u, 3, t), l = j(d, $), t = new N(), h = 0, m = r.toString();
|
|
8230
8345
|
try {
|
|
8231
8346
|
h = H1(d, m, l, t, i, u);
|
|
8232
8347
|
} catch (_1) {
|
|
@@ -8234,11 +8349,11 @@ const H2 = (y) => {
|
|
|
8234
8349
|
if (m = m.replace(Q, ""), h = H1(d, m, l, t, i, u), h == 0) throw _1;
|
|
8235
8350
|
} else throw _1;
|
|
8236
8351
|
}
|
|
8237
|
-
if (h != 0 ? (
|
|
8352
|
+
if (h != 0 ? (r = e1(h), r != $ && (l = d1(d, h, r))) : (B1(r), t.g(r.toString()), $ != null ? (h = v(l, 10), E(
|
|
8238
8353
|
u,
|
|
8239
8354
|
1,
|
|
8240
8355
|
h
|
|
8241
|
-
)) : i && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new N(),
|
|
8356
|
+
)) : i && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new N(), r = new N(t.toString()), j1(r, l, $), d = l1(d, r.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = r, i && 0 < $.toString().length && E(u, 7, $.toString()))), i = t.toString(), d = i.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
|
|
8242
8357
|
if (17 < d) throw Error("The string supplied is too long to be a phone number");
|
|
8243
8358
|
if (1 < i.length && i.charAt(0) == "0") {
|
|
8244
8359
|
for (E(u, 4, !0), d = 1; d < i.length - 1 && i.charAt(d) == "0"; ) d++;
|
|
@@ -8261,19 +8376,19 @@ const H2 = (y) => {
|
|
|
8261
8376
|
}
|
|
8262
8377
|
function J1(d) {
|
|
8263
8378
|
for (var t = d.j.length, $ = 0; $ < t; ++$) {
|
|
8264
|
-
var i = d.j[$],
|
|
8265
|
-
if (d.da ==
|
|
8379
|
+
var i = d.j[$], r = v(i, 1);
|
|
8380
|
+
if (d.da == r) return !1;
|
|
8266
8381
|
var u = d, l = i, h = v(l, 1);
|
|
8267
8382
|
k(u.v);
|
|
8268
8383
|
var m = u;
|
|
8269
8384
|
l = v(l, 2);
|
|
8270
8385
|
var V = "999999999999999".match(h)[0];
|
|
8271
|
-
if (V.length < m.g.h.length ? m = "" : (m = V.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da =
|
|
8386
|
+
if (V.length < m.g.h.length ? m = "" : (m = V.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da = r, d.ha = Z1.test(p(i, 4)), d.$ = 0, !0;
|
|
8272
8387
|
}
|
|
8273
8388
|
return d.u = !1;
|
|
8274
8389
|
}
|
|
8275
8390
|
function q1(d, t) {
|
|
8276
|
-
for (var $ = [], i = t.length - 3,
|
|
8391
|
+
for (var $ = [], i = t.length - 3, r = d.j.length, u = 0; u < r; ++u) {
|
|
8277
8392
|
var l = d.j[u];
|
|
8278
8393
|
K(l, 3) == 0 ? $.push(d.j[u]) : (l = p(l, 3, Math.min(i, K(l, 3) - 1)), t.search(l) == 0 && $.push(d.j[u]));
|
|
8279
8394
|
}
|
|
@@ -8307,8 +8422,8 @@ const H2 = (y) => {
|
|
|
8307
8422
|
}
|
|
8308
8423
|
function Q1(d) {
|
|
8309
8424
|
for (var t = d.g.toString(), $ = d.j.length, i = 0; i < $; ++i) {
|
|
8310
|
-
var
|
|
8311
|
-
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = Z1.test(p(
|
|
8425
|
+
var r = d.j[i], u = v(r, 1);
|
|
8426
|
+
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = Z1.test(p(r, 4)), r = t.replace(new RegExp(u, "g"), p(r, 2)), r = h1(d, r), r1(r, c2) == d.ba)) return r;
|
|
8312
8427
|
}
|
|
8313
8428
|
return "";
|
|
8314
8429
|
}
|
|
@@ -8319,8 +8434,8 @@ const H2 = (y) => {
|
|
|
8319
8434
|
function m1(d) {
|
|
8320
8435
|
var t = d.g.toString();
|
|
8321
8436
|
if (3 <= t.length) {
|
|
8322
|
-
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), i = $.length,
|
|
8323
|
-
var u = $[
|
|
8437
|
+
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), i = $.length, r = 0; r < i; ++r) {
|
|
8438
|
+
var u = $[r];
|
|
8324
8439
|
0 < d.o.length && O1(v(u, 4)) && !p(u, 6) && !B(u, 5) || (d.o.length != 0 || d.ca || O1(v(u, 4)) || p(u, 6)) && N2.test(v(u, 2)) && d.j.push(u);
|
|
8325
8440
|
}
|
|
8326
8441
|
return q1(d, t), t = Q1(d), 0 < t.length ? t : J1(d) ? d2(d) : d.s.toString();
|
|
@@ -8330,7 +8445,7 @@ const H2 = (y) => {
|
|
|
8330
8445
|
function d2(d) {
|
|
8331
8446
|
var t = d.g.toString(), $ = t.length;
|
|
8332
8447
|
if (0 < $) {
|
|
8333
|
-
for (var i = "",
|
|
8448
|
+
for (var i = "", r = 0; r < $; r++) i = n2(d, t.charAt(r));
|
|
8334
8449
|
return d.u ? h1(d, i) : d.s.toString();
|
|
8335
8450
|
}
|
|
8336
8451
|
return d.h.toString();
|
|
@@ -8363,16 +8478,16 @@ const H2 = (y) => {
|
|
|
8363
8478
|
try {
|
|
8364
8479
|
const $ = d.replace(/[^+0-9]/g, ""), i = new L2(t);
|
|
8365
8480
|
t = "";
|
|
8366
|
-
for (let
|
|
8481
|
+
for (let r = 0; r < $.length; r++) i.ja = T2(i, $.charAt(r)), t = i.ja;
|
|
8367
8482
|
return t;
|
|
8368
8483
|
} catch {
|
|
8369
8484
|
return d;
|
|
8370
8485
|
}
|
|
8371
8486
|
}), e("intlTelInputUtilsTemp.formatNumber", (d, t, $) => {
|
|
8372
8487
|
try {
|
|
8373
|
-
const
|
|
8374
|
-
var i = a1(
|
|
8375
|
-
return i == 0 || i == 4 ?
|
|
8488
|
+
const r = D.g(), u = Y(r, d, t);
|
|
8489
|
+
var i = a1(r, u, -1);
|
|
8490
|
+
return i == 0 || i == 4 ? r.format(u, typeof $ > "u" ? 0 : $) : d;
|
|
8376
8491
|
} catch {
|
|
8377
8492
|
return d;
|
|
8378
8493
|
}
|
|
@@ -8380,12 +8495,12 @@ const H2 = (y) => {
|
|
|
8380
8495
|
try {
|
|
8381
8496
|
const m = D.g();
|
|
8382
8497
|
d: {
|
|
8383
|
-
var
|
|
8498
|
+
var r = m;
|
|
8384
8499
|
if (o1(d)) {
|
|
8385
|
-
var u = u1(j(
|
|
8500
|
+
var u = u1(j(r, d), $);
|
|
8386
8501
|
try {
|
|
8387
8502
|
if (B(u, 6)) {
|
|
8388
|
-
var l = p(u, 6), h = W1(
|
|
8503
|
+
var l = p(u, 6), h = W1(r, l, d, !1);
|
|
8389
8504
|
break d;
|
|
8390
8505
|
}
|
|
8391
8506
|
} catch {
|
|
@@ -8420,10 +8535,10 @@ const H2 = (y) => {
|
|
|
8420
8535
|
}
|
|
8421
8536
|
}), e("intlTelInputUtilsTemp.isValidNumber", (d, t, $) => {
|
|
8422
8537
|
try {
|
|
8423
|
-
const i = D.g(),
|
|
8538
|
+
const i = D.g(), r = Y(i, d, t), u = b2(i, r);
|
|
8424
8539
|
if ($) {
|
|
8425
8540
|
const l = $.map((h) => y1[h]);
|
|
8426
|
-
return u && l.includes(F1(i,
|
|
8541
|
+
return u && l.includes(F1(i, r));
|
|
8427
8542
|
}
|
|
8428
8543
|
return u;
|
|
8429
8544
|
} catch {
|
|
@@ -8431,13 +8546,13 @@ const H2 = (y) => {
|
|
|
8431
8546
|
}
|
|
8432
8547
|
}), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, $) => {
|
|
8433
8548
|
try {
|
|
8434
|
-
const i = D.g(),
|
|
8549
|
+
const i = D.g(), r = Y(i, d, t);
|
|
8435
8550
|
if ($) {
|
|
8436
8551
|
$.includes("FIXED_LINE_OR_MOBILE") && ($.includes("MOBILE") || $.push("MOBILE"), $.includes("FIXED_LINE") || $.push("FIXED_LINE"));
|
|
8437
|
-
for (let u of $) if (a1(i,
|
|
8552
|
+
for (let u of $) if (a1(i, r, y1[u]) === 0) return !0;
|
|
8438
8553
|
return !1;
|
|
8439
8554
|
}
|
|
8440
|
-
return a1(i,
|
|
8555
|
+
return a1(i, r, -1) === 0;
|
|
8441
8556
|
} catch {
|
|
8442
8557
|
return !1;
|
|
8443
8558
|
}
|
|
@@ -8485,7 +8600,7 @@ const z2 = {
|
|
|
8485
8600
|
"changeErrorCode"
|
|
8486
8601
|
], ["update:modelValue"]),
|
|
8487
8602
|
setup(y, { expose: e, emit: n }) {
|
|
8488
|
-
const
|
|
8603
|
+
const s = A2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1), S = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, _ = () => {
|
|
8489
8604
|
let I = S();
|
|
8490
8605
|
f.value !== I && (f.value = I, a("changeValidity", !!I), a(
|
|
8491
8606
|
"changeErrorCode",
|
|
@@ -8512,12 +8627,12 @@ const z2 = {
|
|
|
8512
8627
|
}), e({ instance: g, input: c }), (I, A) => P2((x2(), R2("input", B2({
|
|
8513
8628
|
ref_key: "input",
|
|
8514
8629
|
ref: c,
|
|
8515
|
-
"onUpdate:modelValue": A[0] || (A[0] = (G) =>
|
|
8630
|
+
"onUpdate:modelValue": A[0] || (A[0] = (G) => s.value = G),
|
|
8516
8631
|
type: "tel",
|
|
8517
8632
|
onCountrychange: w,
|
|
8518
8633
|
onInput: b
|
|
8519
8634
|
}, y.inputProps), null, 16)), [
|
|
8520
|
-
[k2,
|
|
8635
|
+
[k2, s.value]
|
|
8521
8636
|
]);
|
|
8522
8637
|
}
|
|
8523
8638
|
};
|