intl-tel-input 25.10.6 → 25.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { mergeModels as r2, useModel as D2, ref as v1, onMounted as P2, watch as x2, onUnmounted as R2, withDirectives as B2, createElementBlock as k2, openBlock as O2, mergeProps as G2, vModelText as F2 } from "vue";
1
+ import { mergeModels as a2, useModel as D2, ref as S1, onMounted as P2, watch as x2, onUnmounted as R2, withDirectives as B2, createElementBlock as k2, openBlock as O2, mergeProps as G2, vModelText as F2 } from "vue";
2
2
  const U2 = [
3
3
  [
4
4
  "af",
@@ -1322,18 +1322,18 @@ const U2 = [
1322
1322
  // Zimbabwe
1323
1323
  "263"
1324
1324
  ]
1325
- ], J = [];
1326
- for (const m of U2)
1327
- J.push({
1325
+ ], q = [];
1326
+ for (const y of U2)
1327
+ q.push({
1328
1328
  name: "",
1329
1329
  // populated in the plugin
1330
- iso2: m[0],
1331
- dialCode: m[1],
1332
- priority: m[2] || 0,
1333
- areaCodes: m[3] || null,
1330
+ iso2: y[0],
1331
+ dialCode: y[1],
1332
+ priority: y[2] || 0,
1333
+ areaCodes: y[3] || null,
1334
1334
  nodeById: {},
1335
1335
  // populated by the plugin
1336
- nationalPrefix: m[4] || null
1336
+ nationalPrefix: y[4] || null
1337
1337
  });
1338
1338
  const V2 = {
1339
1339
  ad: "Andorra",
@@ -1590,17 +1590,17 @@ const V2 = {
1590
1590
  // additional countries (not supported by country-list library)
1591
1591
  ac: "Ascension Island",
1592
1592
  xk: "Kosovo"
1593
- }, u2 = { ...V2, ...K2 };
1594
- for (const m of J)
1595
- m.name = u2[m.iso2];
1593
+ }, h2 = { ...V2, ...K2 };
1594
+ for (const y of q)
1595
+ y.name = h2[y.iso2];
1596
1596
  let H2 = 0;
1597
- const w1 = (m) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(m).matches, j2 = () => {
1597
+ const b1 = (y) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(y).matches, j2 = () => {
1598
1598
  if (typeof navigator < "u" && typeof window < "u") {
1599
- const m = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), e = w1("(max-width: 500px)"), i = w1("(max-height: 600px)"), n = w1("(pointer: coarse)");
1600
- return m || e || n && i;
1599
+ const y = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), e = b1("(max-width: 500px)"), i = b1("(max-height: 600px)"), n = b1("(pointer: coarse)");
1600
+ return y || e || n && i;
1601
1601
  }
1602
1602
  return !1;
1603
- }, l2 = {
1603
+ }, c2 = {
1604
1604
  // Allow alphanumeric "phonewords" (e.g. +1 800 FLOWERS) as valid numbers
1605
1605
  allowPhonewords: !1,
1606
1606
  //* Whether or not to allow the dropdown.
@@ -1669,32 +1669,32 @@ const w1 = (m) => typeof window < "u" && typeof window.matchMedia == "function"
1669
1669
  "887",
1670
1670
  "888",
1671
1671
  "889"
1672
- ], f1 = (m) => m.replace(/\D/g, ""), o2 = (m = "") => m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), a2 = (m) => {
1673
- const e = f1(m);
1672
+ ], p1 = (y) => y.replace(/\D/g, ""), u2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), l2 = (y) => {
1673
+ const e = p1(y);
1674
1674
  if (e.charAt(0) === "1") {
1675
1675
  const i = e.substring(1, 4);
1676
1676
  return W2.includes(i);
1677
1677
  }
1678
1678
  return !1;
1679
- }, z2 = (m, e, i, n) => {
1679
+ }, z2 = (y, e, i, n) => {
1680
1680
  if (i === 0 && !n)
1681
1681
  return 0;
1682
1682
  let o = 0;
1683
1683
  for (let l = 0; l < e.length; l++) {
1684
- if (/[+0-9]/.test(e[l]) && o++, o === m && !n)
1684
+ if (/[+0-9]/.test(e[l]) && o++, o === y && !n)
1685
1685
  return l + 1;
1686
- if (n && o === m + 1)
1686
+ if (n && o === y + 1)
1687
1687
  return l;
1688
1688
  }
1689
1689
  return e.length;
1690
- }, N = (m, e, i) => {
1691
- const n = document.createElement(m);
1690
+ }, T = (y, e, i) => {
1691
+ const n = document.createElement(y);
1692
1692
  return e && Object.entries(e).forEach(([o, l]) => n.setAttribute(o, l)), i && i.appendChild(n), n;
1693
- }, $1 = (m, ...e) => {
1694
- const { instances: i } = C;
1695
- Object.values(i).forEach((n) => n[m](...e));
1693
+ }, i1 = (y, ...e) => {
1694
+ const { instances: i } = m;
1695
+ Object.values(i).forEach((n) => n[y](...e));
1696
1696
  };
1697
- class p1 {
1697
+ class g1 {
1698
1698
  /**
1699
1699
  * Build a space-delimited class string from an object map of className -> truthy/falsey.
1700
1700
  * Only keys with truthy values are included.
@@ -1703,13 +1703,13 @@ class p1 {
1703
1703
  return Object.keys(e).filter((i) => !!e[i]).join(" ");
1704
1704
  }
1705
1705
  constructor(e, i = {}) {
1706
- this.id = H2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, l2, i), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1706
+ this.id = H2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, c2, i), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1707
1707
  }
1708
1708
  //* Can't be private as it's called from intlTelInput convenience wrapper.
1709
1709
  _init() {
1710
1710
  this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.telInput.dir = "ltr";
1711
1711
  const e = this.options.allowDropdown || this.options.separateDialCode;
1712
- 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 };
1712
+ 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 = { ...h2, ...this.options.i18n };
1713
1713
  const i = new Promise((o, l) => {
1714
1714
  this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = l;
1715
1715
  }), n = new Promise((o, l) => {
@@ -1727,7 +1727,7 @@ class p1 {
1727
1727
  //* Precompute and cache country search tokens to speed up filtering
1728
1728
  _cacheSearchTokens() {
1729
1729
  for (const e of this.countries)
1730
- e.normalisedName = o2(e.name), e.initials = e.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((i) => i[0]).join("").toLowerCase(), e.dialCodePlus = `+${e.dialCode}`;
1730
+ e.normalisedName = u2(e.name), e.initials = e.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((i) => i[0]).join("").toLowerCase(), e.dialCodePlus = `+${e.dialCode}`;
1731
1731
  }
1732
1732
  //* Sort countries by countryOrder option (if present), then name.
1733
1733
  _sortCountries() {
@@ -1759,18 +1759,18 @@ class p1 {
1759
1759
  const n = e.map(
1760
1760
  (o) => o.toLowerCase()
1761
1761
  );
1762
- this.countries = J.filter(
1762
+ this.countries = q.filter(
1763
1763
  (o) => n.includes(o.iso2)
1764
1764
  );
1765
1765
  } else if (i.length) {
1766
1766
  const n = i.map(
1767
1767
  (o) => o.toLowerCase()
1768
1768
  );
1769
- this.countries = J.filter(
1769
+ this.countries = q.filter(
1770
1770
  (o) => !n.includes(o.iso2)
1771
1771
  );
1772
1772
  } else
1773
- this.countries = J;
1773
+ this.countries = q;
1774
1774
  }
1775
1775
  //* Translate Countries by object literal provided on config.
1776
1776
  _translateCountryNames() {
@@ -1801,7 +1801,7 @@ class p1 {
1801
1801
  }
1802
1802
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
1803
1803
  _generateMarkup() {
1804
- var S, M, O;
1804
+ var S, A, G;
1805
1805
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
1806
1806
  const {
1807
1807
  allowDropdown: e,
@@ -1811,23 +1811,23 @@ class p1 {
1811
1811
  hiddenInput: l,
1812
1812
  dropdownContainer: f,
1813
1813
  fixDropdownWidth: h,
1814
- useFullscreenPopup: _,
1815
- countrySearch: v,
1816
- i18n: w
1817
- } = this.options, g = p1._buildClassNames({
1814
+ useFullscreenPopup: C,
1815
+ countrySearch: I,
1816
+ i18n: v
1817
+ } = this.options, g = g1._buildClassNames({
1818
1818
  iti: !0,
1819
1819
  "iti--allow-dropdown": e,
1820
1820
  "iti--show-flags": n,
1821
- "iti--inline-dropdown": !_,
1821
+ "iti--inline-dropdown": !C,
1822
1822
  [o]: !!o
1823
- }), I = N("div", { class: g });
1824
- if ((S = this.telInput.parentNode) == null || S.insertBefore(I, this.telInput), e || n || i) {
1825
- this.countryContainer = N(
1823
+ }), w = T("div", { class: g });
1824
+ if ((S = this.telInput.parentNode) == null || S.insertBefore(w, this.telInput), e || n || i) {
1825
+ this.countryContainer = T(
1826
1826
  "div",
1827
1827
  // visibly hidden until we measure it's width to set the input padding correctly
1828
1828
  { class: "iti__country-container iti__v-hide" },
1829
- I
1830
- ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = N(
1829
+ w
1830
+ ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = T(
1831
1831
  "button",
1832
1832
  {
1833
1833
  type: "button",
@@ -1838,92 +1838,92 @@ class p1 {
1838
1838
  "aria-controls": `iti-${this.id}__dropdown-content`
1839
1839
  },
1840
1840
  this.countryContainer
1841
- ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = N(
1841
+ ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = T(
1842
1842
  "div",
1843
1843
  { class: "iti__selected-country" },
1844
1844
  this.countryContainer
1845
1845
  );
1846
- const G = N(
1846
+ const x = T(
1847
1847
  "div",
1848
1848
  { class: "iti__selected-country-primary" },
1849
1849
  this.selectedCountry
1850
1850
  );
1851
- if (this.selectedCountryInner = N(
1851
+ if (this.selectedCountryInner = T(
1852
1852
  "div",
1853
1853
  { class: "iti__flag" },
1854
- G
1855
- ), e && (this.dropdownArrow = N(
1854
+ x
1855
+ ), e && (this.dropdownArrow = T(
1856
1856
  "div",
1857
1857
  { class: "iti__arrow", "aria-hidden": "true" },
1858
- G
1859
- )), i && (this.selectedDialCode = N(
1858
+ x
1859
+ )), i && (this.selectedDialCode = T(
1860
1860
  "div",
1861
1861
  { class: "iti__selected-dial-code", dir: "ltr" },
1862
1862
  this.selectedCountry
1863
1863
  )), e) {
1864
- const F = h ? "" : "iti--flexible-dropdown-width";
1865
- if (this.dropdownContent = N("div", {
1864
+ const R = h ? "" : "iti--flexible-dropdown-width";
1865
+ if (this.dropdownContent = T("div", {
1866
1866
  id: `iti-${this.id}__dropdown-content`,
1867
- class: `iti__dropdown-content iti__hide ${F}`,
1867
+ class: `iti__dropdown-content iti__hide ${R}`,
1868
1868
  role: "dialog",
1869
1869
  "aria-modal": "true"
1870
- }), v) {
1871
- const D = N(
1870
+ }), I) {
1871
+ const N = T(
1872
1872
  "div",
1873
1873
  { class: "iti__search-input-wrapper" },
1874
1874
  this.dropdownContent
1875
1875
  );
1876
- this.searchIcon = N(
1876
+ this.searchIcon = T(
1877
1877
  "span",
1878
1878
  {
1879
1879
  class: "iti__search-icon",
1880
1880
  "aria-hidden": "true"
1881
1881
  },
1882
- D
1882
+ N
1883
1883
  ), this.searchIcon.innerHTML = `
1884
1884
  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" aria-hidden="true">
1885
1885
  <circle cx="11" cy="11" r="7" />
1886
1886
  <line x1="21" y1="21" x2="16.65" y2="16.65" />
1887
- </svg>`, this.searchInput = N(
1887
+ </svg>`, this.searchInput = T(
1888
1888
  "input",
1889
1889
  {
1890
1890
  id: `iti-${this.id}__search-input`,
1891
1891
  // Chrome says inputs need either a name or an id
1892
1892
  type: "search",
1893
1893
  class: "iti__search-input",
1894
- placeholder: w.searchPlaceholder,
1894
+ placeholder: v.searchPlaceholder,
1895
1895
  // role=combobox + aria-autocomplete=list + aria-activedescendant allows maintaining focus on the search input while allowing users to navigate search results with up/down keyboard keys
1896
1896
  role: "combobox",
1897
1897
  "aria-expanded": "true",
1898
- "aria-label": w.searchPlaceholder,
1898
+ "aria-label": v.searchPlaceholder,
1899
1899
  "aria-controls": `iti-${this.id}__country-listbox`,
1900
1900
  "aria-autocomplete": "list",
1901
1901
  autocomplete: "off"
1902
1902
  },
1903
- D
1904
- ), this.searchClearButton = N(
1903
+ N
1904
+ ), this.searchClearButton = T(
1905
1905
  "button",
1906
1906
  {
1907
1907
  type: "button",
1908
1908
  class: "iti__search-clear iti__hide",
1909
- "aria-label": w.clearSearchAriaLabel,
1909
+ "aria-label": v.clearSearchAriaLabel,
1910
1910
  tabindex: "-1"
1911
1911
  },
1912
- D
1912
+ N
1913
1913
  );
1914
- const i1 = `iti-${this.id}-clear-mask`;
1914
+ const W = `iti-${this.id}-clear-mask`;
1915
1915
  this.searchClearButton.innerHTML = `
1916
1916
  <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
1917
- <mask id="${i1}" maskUnits="userSpaceOnUse">
1917
+ <mask id="${W}" maskUnits="userSpaceOnUse">
1918
1918
  <rect width="16" height="16" fill="white" />
1919
1919
  <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
1920
1920
  </mask>
1921
- <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${i1})" />
1922
- </svg>`, this.searchResultsA11yText = N(
1921
+ <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${W})" />
1922
+ </svg>`, this.searchResultsA11yText = T(
1923
1923
  "span",
1924
1924
  { class: "iti__a11y-text" },
1925
1925
  this.dropdownContent
1926
- ), this.searchNoResults = N(
1926
+ ), this.searchNoResults = T(
1927
1927
  "div",
1928
1928
  {
1929
1929
  class: "iti__no-results iti__hide",
@@ -1931,52 +1931,52 @@ class p1 {
1931
1931
  // all a11y messaging happens in this.searchResultsA11yText
1932
1932
  },
1933
1933
  this.dropdownContent
1934
- ), this.searchNoResults.textContent = w.zeroSearchResults;
1934
+ ), this.searchNoResults.textContent = v.zeroSearchResults;
1935
1935
  }
1936
- if (this.countryList = N(
1936
+ if (this.countryList = T(
1937
1937
  "ul",
1938
1938
  {
1939
1939
  class: "iti__country-list",
1940
1940
  id: `iti-${this.id}__country-listbox`,
1941
1941
  role: "listbox",
1942
- "aria-label": w.countryListAriaLabel
1942
+ "aria-label": v.countryListAriaLabel
1943
1943
  },
1944
1944
  this.dropdownContent
1945
- ), this._appendListItems(), v && this._updateSearchResultsA11yText(), f) {
1946
- const D = p1._buildClassNames({
1945
+ ), this._appendListItems(), I && this._updateSearchResultsA11yText(), f) {
1946
+ const N = g1._buildClassNames({
1947
1947
  iti: !0,
1948
1948
  "iti--container": !0,
1949
- "iti--fullscreen-popup": _,
1950
- "iti--inline-dropdown": !_,
1949
+ "iti--fullscreen-popup": C,
1950
+ "iti--inline-dropdown": !C,
1951
1951
  [o]: !!o
1952
1952
  });
1953
- this.dropdown = N("div", { class: D }), this.dropdown.appendChild(this.dropdownContent);
1953
+ this.dropdown = T("div", { class: N }), this.dropdown.appendChild(this.dropdownContent);
1954
1954
  } else
1955
1955
  this.countryContainer.appendChild(this.dropdownContent);
1956
1956
  }
1957
1957
  }
1958
- if (I.appendChild(this.telInput), this.countryContainer && (this._updateInputPadding(), this.countryContainer.classList.remove("iti__v-hide")), l) {
1959
- const G = this.telInput.getAttribute("name") || "", F = l(G);
1960
- if (F.phone) {
1961
- const D = (M = this.telInput.form) == null ? void 0 : M.querySelector(`input[name="${F.phone}"]`);
1962
- D ? this.hiddenInput = D : (this.hiddenInput = N("input", {
1958
+ if (w.appendChild(this.telInput), this.countryContainer && (this._updateInputPadding(), this.countryContainer.classList.remove("iti__v-hide")), l) {
1959
+ const x = this.telInput.getAttribute("name") || "", R = l(x);
1960
+ if (R.phone) {
1961
+ const N = (A = this.telInput.form) == null ? void 0 : A.querySelector(`input[name="${R.phone}"]`);
1962
+ N ? this.hiddenInput = N : (this.hiddenInput = T("input", {
1963
1963
  type: "hidden",
1964
- name: F.phone
1965
- }), I.appendChild(this.hiddenInput));
1964
+ name: R.phone
1965
+ }), w.appendChild(this.hiddenInput));
1966
1966
  }
1967
- if (F.country) {
1968
- const D = (O = this.telInput.form) == null ? void 0 : O.querySelector(`input[name="${F.country}"]`);
1969
- D ? this.hiddenInputCountry = D : (this.hiddenInputCountry = N("input", {
1967
+ if (R.country) {
1968
+ const N = (G = this.telInput.form) == null ? void 0 : G.querySelector(`input[name="${R.country}"]`);
1969
+ N ? this.hiddenInputCountry = N : (this.hiddenInputCountry = T("input", {
1970
1970
  type: "hidden",
1971
- name: F.country
1972
- }), I.appendChild(this.hiddenInputCountry));
1971
+ name: R.country
1972
+ }), w.appendChild(this.hiddenInputCountry));
1973
1973
  }
1974
1974
  }
1975
1975
  }
1976
1976
  //* For each country: add a country list item <li> to the countryList <ul> container.
1977
1977
  _appendListItems() {
1978
1978
  for (let e = 0; e < this.countries.length; e++) {
1979
- const i = this.countries[e], n = e === 0 ? "iti__highlight" : "", o = N(
1979
+ const i = this.countries[e], n = e === 0 ? "iti__highlight" : "", o = T(
1980
1980
  "li",
1981
1981
  {
1982
1982
  id: `iti-${this.id}__item-${i.iso2}`,
@@ -1998,11 +1998,11 @@ class p1 {
1998
1998
  //* 1. Extracting a dial code from the given number
1999
1999
  //* 2. Using explicit initialCountry
2000
2000
  _setInitialState(e = !1) {
2001
- const i = this.telInput.getAttribute("value"), n = this.telInput.value, l = i && i.charAt(0) === "+" && (!n || n.charAt(0) !== "+") ? i : n, f = this._getDialCode(l), h = a2(l), { initialCountry: _, geoIpLookup: v } = this.options, w = _ === "auto" && v;
2001
+ const i = this.telInput.getAttribute("value"), n = this.telInput.value, l = i && i.charAt(0) === "+" && (!n || n.charAt(0) !== "+") ? i : n, f = this._getDialCode(l), h = l2(l), { initialCountry: C, geoIpLookup: I } = this.options, v = C === "auto" && I;
2002
2002
  if (f && !h)
2003
2003
  this._updateCountryFromNumber(l);
2004
- else if (!w || e) {
2005
- const g = _ ? _.toLowerCase() : "";
2004
+ else if (!v || e) {
2005
+ const g = C ? C.toLowerCase() : "";
2006
2006
  g && this._getCountryData(g, !0) ? this._setCountry(g) : f && h ? this._setCountry("us") : this._setCountry();
2007
2007
  }
2008
2008
  l && this._updateValFromNumber(l);
@@ -2039,21 +2039,21 @@ class p1 {
2039
2039
  //* Init many requests: utils script / geo ip lookup.
2040
2040
  _initRequests() {
2041
2041
  let { loadUtils: e, initialCountry: i, geoIpLookup: n } = this.options;
2042
- e && !C.utils ? (this._handlePageLoad = () => {
2042
+ e && !m.utils ? (this._handlePageLoad = () => {
2043
2043
  var l;
2044
- window.removeEventListener("load", this._handlePageLoad), (l = C.attachUtils(e)) == null || l.catch(() => {
2044
+ window.removeEventListener("load", this._handlePageLoad), (l = m.attachUtils(e)) == null || l.catch(() => {
2045
2045
  });
2046
- }, C.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), i === "auto" && n && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2046
+ }, m.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), i === "auto" && n && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2047
2047
  }
2048
2048
  //* Perform the geo ip lookup.
2049
2049
  _loadAutoCountry() {
2050
- C.autoCountry ? this.handleAutoCountry() : C.startedLoadingAutoCountry || (C.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
2050
+ m.autoCountry ? this.handleAutoCountry() : m.startedLoadingAutoCountry || (m.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
2051
2051
  (e = "") => {
2052
2052
  const i = e.toLowerCase();
2053
- i && this._getCountryData(i, !0) ? (C.autoCountry = i, setTimeout(() => $1("handleAutoCountry"))) : (this._setInitialState(!0), $1("rejectAutoCountryPromise"));
2053
+ i && this._getCountryData(i, !0) ? (m.autoCountry = i, setTimeout(() => i1("handleAutoCountry"))) : (this._setInitialState(!0), i1("rejectAutoCountryPromise"));
2054
2054
  },
2055
2055
  () => {
2056
- this._setInitialState(!0), $1("rejectAutoCountryPromise");
2056
+ this._setInitialState(!0), i1("rejectAutoCountryPromise");
2057
2057
  }
2058
2058
  ));
2059
2059
  }
@@ -2066,17 +2066,17 @@ class p1 {
2066
2066
  let f = !1;
2067
2067
  new RegExp("\\p{L}", "u").test(this.telInput.value) && (f = !0), this._handleInputEvent = (h) => {
2068
2068
  if (this.isAndroid && (h == null ? void 0 : h.data) === "+" && n && o && l) {
2069
- const g = this.telInput.selectionStart || 0, I = this.telInput.value.substring(0, g - 1), S = this.telInput.value.substring(g);
2070
- this.telInput.value = I + S, this._openDropdownWithPlus();
2069
+ const g = this.telInput.selectionStart || 0, w = this.telInput.value.substring(0, g - 1), S = this.telInput.value.substring(g);
2070
+ this.telInput.value = w + S, this._openDropdownWithPlus();
2071
2071
  return;
2072
2072
  }
2073
2073
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
2074
- const _ = (h == null ? void 0 : h.data) && /[^+0-9]/.test(h.data), v = (h == null ? void 0 : h.inputType) === "insertFromPaste" && this.telInput.value;
2075
- _ || v && !e ? f = !0 : /[^+0-9]/.test(this.telInput.value) || (f = !1);
2076
- const w = (h == null ? void 0 : h.detail) && h.detail.isSetNumber;
2077
- if (i && !f && !w) {
2078
- const g = this.telInput.selectionStart || 0, S = this.telInput.value.substring(0, g).replace(/[^+0-9]/g, "").length, M = (h == null ? void 0 : h.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), G = z2(S, O, g, M);
2079
- this.telInput.value = O, this.telInput.setSelectionRange(G, G);
2074
+ const C = (h == null ? void 0 : h.data) && /[^+0-9]/.test(h.data), I = (h == null ? void 0 : h.inputType) === "insertFromPaste" && this.telInput.value;
2075
+ C || I && !e ? f = !0 : /[^+0-9]/.test(this.telInput.value) || (f = !1);
2076
+ const v = (h == null ? void 0 : h.detail) && h.detail.isSetNumber;
2077
+ if (i && !f && !v) {
2078
+ const g = this.telInput.selectionStart || 0, S = this.telInput.value.substring(0, g).replace(/[^+0-9]/g, "").length, A = (h == null ? void 0 : h.inputType) === "deleteContentForward", G = this._formatNumberAsYouType(), x = z2(S, G, g, A);
2079
+ this.telInput.value = G, this.telInput.setSelectionRange(x, x);
2080
2080
  }
2081
2081
  }, this.telInput.addEventListener("input", this._handleInputEvent), (e || n) && (this._handleKeydownEvent = (h) => {
2082
2082
  if (h.key && h.key.length === 1 && !h.altKey && !h.ctrlKey && !h.metaKey) {
@@ -2085,11 +2085,25 @@ class p1 {
2085
2085
  return;
2086
2086
  }
2087
2087
  if (e) {
2088
- const _ = this.telInput.value, w = !(_.charAt(0) === "+") && this.telInput.selectionStart === 0 && h.key === "+", g = /^[0-9]$/.test(h.key), I = n ? g : w || g, S = _.slice(0, this.telInput.selectionStart) + h.key + _.slice(this.telInput.selectionEnd), M = this._getFullNumber(S), O = C.utils.getCoreNumber(M, this.selectedCountryData.iso2), G = this.maxCoreNumberLength && O.length > this.maxCoreNumberLength, D = this._getNewCountryFromNumber(M) !== null;
2089
- (!I || G && !D && !w) && h.preventDefault();
2088
+ const C = this.telInput.value, v = !(C.charAt(0) === "+") && this.telInput.selectionStart === 0 && h.key === "+", g = /^[0-9]$/.test(h.key), w = n ? g : v || g, S = C.slice(0, this.telInput.selectionStart) + h.key + C.slice(this.telInput.selectionEnd), A = this._getFullNumber(S), G = m.utils.getCoreNumber(A, this.selectedCountryData.iso2), x = this.maxCoreNumberLength && G.length > this.maxCoreNumberLength, N = this._getNewCountryFromNumber(A) !== null;
2089
+ (!w || x && !N && !v) && h.preventDefault();
2090
2090
  }
2091
2091
  }
2092
- }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
2092
+ }, this.telInput.addEventListener("keydown", this._handleKeydownEvent)), e && (this._handlePasteEvent = (h) => {
2093
+ h.preventDefault();
2094
+ const C = this.telInput, I = C.selectionStart, v = C.selectionEnd, g = h.clipboardData.getData("text"), w = I === 0 && v > 0, S = !C.value.startsWith("+") || w, A = g.replace(/[^0-9+]/g, ""), G = A.startsWith("+"), x = A.replace(/\+/g, ""), R = G && S ? `+${x}` : x;
2095
+ let N = C.value.slice(0, I) + R + C.value.slice(v);
2096
+ const W = m.utils.getCoreNumber(N, this.selectedCountryData.iso2);
2097
+ if (this.maxCoreNumberLength && W.length > this.maxCoreNumberLength)
2098
+ if (C.selectionEnd === C.value.length) {
2099
+ const C1 = W.length - this.maxCoreNumberLength;
2100
+ N = N.slice(0, N.length - C1);
2101
+ } else
2102
+ return;
2103
+ C.value = N;
2104
+ const n1 = I + R.length;
2105
+ C.setSelectionRange(n1, n1), C.dispatchEvent(new InputEvent("input", { bubbles: !0 }));
2106
+ }, this.telInput.addEventListener("paste", this._handlePasteEvent));
2093
2107
  }
2094
2108
  //* Adhere to the input's maxlength attr.
2095
2109
  _cap(e) {
@@ -2175,21 +2189,21 @@ class p1 {
2175
2189
  _filterCountries(e) {
2176
2190
  let i = !0;
2177
2191
  this.countryList.innerHTML = "";
2178
- const n = o2(e);
2192
+ const n = u2(e);
2179
2193
  let o;
2180
2194
  if (e === "")
2181
2195
  o = this.countries;
2182
2196
  else {
2183
- const l = [], f = [], h = [], _ = [], v = [], w = [];
2197
+ const l = [], f = [], h = [], C = [], I = [], v = [];
2184
2198
  for (const g of this.countries)
2185
- g.iso2 === n ? l.push(g) : g.normalisedName.startsWith(n) ? f.push(g) : g.normalisedName.includes(n) ? h.push(g) : n === g.dialCode || n === g.dialCodePlus ? _.push(g) : g.dialCodePlus.includes(n) ? v.push(g) : g.initials.includes(n) && w.push(g);
2199
+ g.iso2 === n ? l.push(g) : g.normalisedName.startsWith(n) ? f.push(g) : g.normalisedName.includes(n) ? h.push(g) : n === g.dialCode || n === g.dialCodePlus ? C.push(g) : g.dialCodePlus.includes(n) ? I.push(g) : g.initials.includes(n) && v.push(g);
2186
2200
  o = [
2187
- ...l.sort((g, I) => g.priority - I.priority),
2188
- ...f.sort((g, I) => g.priority - I.priority),
2189
- ...h.sort((g, I) => g.priority - I.priority),
2190
- ..._.sort((g, I) => g.priority - I.priority),
2191
- ...v.sort((g, I) => g.priority - I.priority),
2192
- ...w.sort((g, I) => g.priority - I.priority)
2201
+ ...l.sort((g, w) => g.priority - w.priority),
2202
+ ...f.sort((g, w) => g.priority - w.priority),
2203
+ ...h.sort((g, w) => g.priority - w.priority),
2204
+ ...C.sort((g, w) => g.priority - w.priority),
2205
+ ...I.sort((g, w) => g.priority - w.priority),
2206
+ ...v.sort((g, w) => g.priority - w.priority)
2193
2207
  ];
2194
2208
  }
2195
2209
  for (const l of o) {
@@ -2218,9 +2232,9 @@ class p1 {
2218
2232
  //* NOTE: this is called from _setInitialState, handleUtils and setNumber.
2219
2233
  _updateValFromNumber(e) {
2220
2234
  let i = e;
2221
- if (this.options.formatOnDisplay && C.utils && this.selectedCountryData) {
2222
- const n = this.options.nationalMode || i.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: l } = C.utils.numberFormat, f = n ? o : l;
2223
- i = C.utils.formatNumber(
2235
+ if (this.options.formatOnDisplay && m.utils && this.selectedCountryData) {
2236
+ const n = this.options.nationalMode || i.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: l } = m.utils.numberFormat, f = n ? o : l;
2237
+ i = m.utils.formatNumber(
2224
2238
  i,
2225
2239
  this.selectedCountryData.iso2,
2226
2240
  f
@@ -2249,18 +2263,18 @@ class p1 {
2249
2263
  let n = i ? e.substring(i) : e;
2250
2264
  const o = this.selectedCountryData.iso2, l = this.selectedCountryData.dialCode;
2251
2265
  n = this._ensureHasDialCode(n);
2252
- const f = this._getDialCode(n, !0), h = f1(n);
2266
+ const f = this._getDialCode(n, !0), h = p1(n);
2253
2267
  if (f) {
2254
- const _ = f1(f), v = this.dialCodeToIso2Map[_];
2255
- if (v.length === 1)
2256
- return v[0] === o ? null : v[0];
2257
- if (!o && this.defaultCountry && v.includes(this.defaultCountry))
2268
+ const C = p1(f), I = this.dialCodeToIso2Map[C];
2269
+ if (I.length === 1)
2270
+ return I[0] === o ? null : I[0];
2271
+ if (!o && this.defaultCountry && I.includes(this.defaultCountry))
2258
2272
  return this.defaultCountry;
2259
- if (l === "1" && a2(h))
2273
+ if (l === "1" && l2(h))
2260
2274
  return null;
2261
- const g = this.selectedCountryData.areaCodes && h.length > _.length;
2262
- if (!(o && v.includes(o) && !g))
2263
- return v[0];
2275
+ const g = this.selectedCountryData.areaCodes && h.length > C.length;
2276
+ if (!(o && I.includes(o) && !g))
2277
+ return I[0];
2264
2278
  } else {
2265
2279
  if (n.charAt(0) === "+" && h.length)
2266
2280
  return "";
@@ -2294,13 +2308,13 @@ class p1 {
2294
2308
  const { separateDialCode: i, showFlags: n, i18n: o } = this.options, l = this.selectedCountryData.iso2 || "";
2295
2309
  if (this.selectedCountryData = e ? this._getCountryData(e, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountry) {
2296
2310
  const f = e && n ? `iti__flag iti__${e}` : "iti__flag iti__globe";
2297
- let h, _;
2311
+ let h, C;
2298
2312
  if (e) {
2299
- const { name: v, dialCode: w } = this.selectedCountryData;
2300
- _ = v, h = o.selectedCountryAriaLabel.replace("${countryName}", v).replace("${dialCode}", `+${w}`);
2313
+ const { name: I, dialCode: v } = this.selectedCountryData;
2314
+ C = I, h = o.selectedCountryAriaLabel.replace("${countryName}", I).replace("${dialCode}", `+${v}`);
2301
2315
  } else
2302
- _ = o.noCountrySelected, h = o.noCountrySelected;
2303
- this.selectedCountryInner.className = f, this.selectedCountry.setAttribute("title", _), this.selectedCountry.setAttribute("aria-label", h);
2316
+ C = o.noCountrySelected, h = o.noCountrySelected;
2317
+ this.selectedCountryInner.className = f, this.selectedCountry.setAttribute("title", C), this.selectedCountry.setAttribute("aria-label", h);
2304
2318
  }
2305
2319
  if (i) {
2306
2320
  const f = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
@@ -2318,19 +2332,19 @@ class p1 {
2318
2332
  //* Update the maximum valid number length for the currently selected country.
2319
2333
  _updateMaxLength() {
2320
2334
  const { strictMode: e, placeholderNumberType: i, validationNumberTypes: n } = this.options, { iso2: o } = this.selectedCountryData;
2321
- if (e && C.utils)
2335
+ if (e && m.utils)
2322
2336
  if (o) {
2323
- const l = C.utils.numberType[i];
2324
- let f = C.utils.getExampleNumber(
2337
+ const l = m.utils.numberType[i];
2338
+ let f = m.utils.getExampleNumber(
2325
2339
  o,
2326
2340
  !1,
2327
2341
  l,
2328
2342
  !0
2329
2343
  ), h = f;
2330
- for (; C.utils.isPossibleNumber(f, o, n); )
2344
+ for (; m.utils.isPossibleNumber(f, o, n); )
2331
2345
  h = f, f += "0";
2332
- const _ = C.utils.getCoreNumber(h, o);
2333
- this.maxCoreNumberLength = _.length, o === "by" && (this.maxCoreNumberLength = _.length + 1);
2346
+ const C = m.utils.getCoreNumber(h, o);
2347
+ this.maxCoreNumberLength = C.length, o === "by" && (this.maxCoreNumberLength = C.length + 1);
2334
2348
  } else
2335
2349
  this.maxCoreNumberLength = null;
2336
2350
  }
@@ -2365,9 +2379,9 @@ class p1 {
2365
2379
  nationalMode: n,
2366
2380
  customPlaceholder: o
2367
2381
  } = this.options, l = e === "aggressive" || !this.hadInitialPlaceholder && e === "polite";
2368
- if (C.utils && l) {
2369
- const f = C.utils.numberType[i];
2370
- let h = this.selectedCountryData.iso2 ? C.utils.getExampleNumber(
2382
+ if (m.utils && l) {
2383
+ const f = m.utils.numberType[i];
2384
+ let h = this.selectedCountryData.iso2 ? m.utils.getExampleNumber(
2371
2385
  this.selectedCountryData.iso2,
2372
2386
  n,
2373
2387
  f
@@ -2394,12 +2408,12 @@ class p1 {
2394
2408
  }
2395
2409
  //* Check if an element is visible within it's container, else scroll until it is.
2396
2410
  _scrollTo(e) {
2397
- const i = this.countryList, n = document.documentElement.scrollTop, o = i.offsetHeight, l = i.getBoundingClientRect().top + n, f = l + o, h = e.offsetHeight, _ = e.getBoundingClientRect().top + n, v = _ + h, w = _ - l + i.scrollTop;
2398
- if (_ < l)
2399
- i.scrollTop = w;
2400
- else if (v > f) {
2411
+ const i = this.countryList, n = document.documentElement.scrollTop, o = i.offsetHeight, l = i.getBoundingClientRect().top + n, f = l + o, h = e.offsetHeight, C = e.getBoundingClientRect().top + n, I = C + h, v = C - l + i.scrollTop;
2412
+ if (C < l)
2413
+ i.scrollTop = v;
2414
+ else if (I > f) {
2401
2415
  const g = o - h;
2402
- i.scrollTop = w - g;
2416
+ i.scrollTop = v - g;
2403
2417
  }
2404
2418
  }
2405
2419
  //* Replace any existing dial code with the new one
@@ -2438,7 +2452,7 @@ class p1 {
2438
2452
  _getFullNumber(e) {
2439
2453
  const i = e || this.telInput.value.trim(), { dialCode: n } = this.selectedCountryData;
2440
2454
  let o;
2441
- const l = f1(i);
2455
+ const l = p1(i);
2442
2456
  return this.options.separateDialCode && i.charAt(0) !== "+" && n && l ? o = `+${n}` : o = "", o + i;
2443
2457
  }
2444
2458
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
@@ -2460,7 +2474,7 @@ class p1 {
2460
2474
  }
2461
2475
  //* Format the number as the user types.
2462
2476
  _formatNumberAsYouType() {
2463
- const e = this._getFullNumber(), i = C.utils ? C.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: n } = this.selectedCountryData;
2477
+ const e = this._getFullNumber(), i = m.utils ? m.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: n } = this.selectedCountryData;
2464
2478
  return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && i.includes(`+${n}`) ? (i.split(`+${n}`)[1] || "").trim() : i;
2465
2479
  }
2466
2480
  //**************************
@@ -2468,11 +2482,11 @@ class p1 {
2468
2482
  //**************************
2469
2483
  //* This is called when the geoip call returns.
2470
2484
  handleAutoCountry() {
2471
- this.options.initialCountry === "auto" && C.autoCountry && (this.defaultCountry = C.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2485
+ this.options.initialCountry === "auto" && m.autoCountry && (this.defaultCountry = m.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2472
2486
  }
2473
2487
  //* This is called when the utils request completes.
2474
2488
  handleUtils() {
2475
- C.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2489
+ m.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2476
2490
  }
2477
2491
  //********************
2478
2492
  //* PUBLIC METHODS
@@ -2494,22 +2508,22 @@ class p1 {
2494
2508
  h && h.removeEventListener("click", this._handleLabelClick);
2495
2509
  }
2496
2510
  const { form: n } = this.telInput;
2497
- this._handleHiddenInputSubmit && n && n.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"), i && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2511
+ this._handleHiddenInputSubmit && n && n.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this._handlePasteEvent && this.telInput.removeEventListener("paste", this._handlePasteEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), i && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2498
2512
  const o = this.telInput.parentNode;
2499
- (l = o == null ? void 0 : o.parentNode) == null || l.insertBefore(this.telInput, o), (f = o == null ? void 0 : o.parentNode) == null || f.removeChild(o), delete C.instances[this.id];
2513
+ (l = o == null ? void 0 : o.parentNode) == null || l.insertBefore(this.telInput, o), (f = o == null ? void 0 : o.parentNode) == null || f.removeChild(o), delete m.instances[this.id];
2500
2514
  }
2501
2515
  //* Get the extension from the current number.
2502
2516
  getExtension() {
2503
- return C.utils ? C.utils.getExtension(
2517
+ return m.utils ? m.utils.getExtension(
2504
2518
  this._getFullNumber(),
2505
2519
  this.selectedCountryData.iso2
2506
2520
  ) : "";
2507
2521
  }
2508
2522
  //* Format the number to the given format.
2509
2523
  getNumber(e) {
2510
- if (C.utils) {
2524
+ if (m.utils) {
2511
2525
  const { iso2: i } = this.selectedCountryData;
2512
- return C.utils.formatNumber(
2526
+ return m.utils.formatNumber(
2513
2527
  this._getFullNumber(),
2514
2528
  i,
2515
2529
  e
@@ -2519,7 +2533,7 @@ class p1 {
2519
2533
  }
2520
2534
  //* Get the type of the entered number e.g. landline/mobile.
2521
2535
  getNumberType() {
2522
- return C.utils ? C.utils.getNumberType(
2536
+ return m.utils ? m.utils.getNumberType(
2523
2537
  this._getFullNumber(),
2524
2538
  this.selectedCountryData.iso2
2525
2539
  ) : -99;
@@ -2530,9 +2544,9 @@ class p1 {
2530
2544
  }
2531
2545
  //* Get the validation error.
2532
2546
  getValidationError() {
2533
- if (C.utils) {
2547
+ if (m.utils) {
2534
2548
  const { iso2: e } = this.selectedCountryData;
2535
- return C.utils.getValidationError(this._getFullNumber(), e);
2549
+ return m.utils.getValidationError(this._getFullNumber(), e);
2536
2550
  }
2537
2551
  return -99;
2538
2552
  }
@@ -2545,7 +2559,7 @@ class p1 {
2545
2559
  return this._validateNumber(!0);
2546
2560
  }
2547
2561
  _utilsIsPossibleNumber(e) {
2548
- return C.utils ? C.utils.isPossibleNumber(e, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2562
+ return m.utils ? m.utils.isPossibleNumber(e, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2549
2563
  }
2550
2564
  //* Shared internal validation logic to handle alpha character extension rules.
2551
2565
  _validateNumber(e) {
@@ -2553,13 +2567,13 @@ class p1 {
2553
2567
  return !1;
2554
2568
  const i = (f) => e ? this._utilsIsValidNumber(f) : this._utilsIsPossibleNumber(f), n = this._getFullNumber(), o = n.search(new RegExp("\\p{L}", "u"));
2555
2569
  if (o > -1 && !this.options.allowPhonewords) {
2556
- const f = n.substring(0, o), h = i(f), _ = i(n);
2557
- return h && _;
2570
+ const f = n.substring(0, o), h = i(f), C = i(n);
2571
+ return h && C;
2558
2572
  }
2559
2573
  return i(n);
2560
2574
  }
2561
2575
  _utilsIsValidNumber(e) {
2562
- return C.utils ? C.utils.isValidNumber(e, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2576
+ return m.utils ? m.utils.isValidNumber(e, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2563
2577
  }
2564
2578
  //* Update the selected country, and update the input val accordingly.
2565
2579
  setCountry(e) {
@@ -2579,56 +2593,56 @@ class p1 {
2579
2593
  this.telInput.disabled = e, e ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2580
2594
  }
2581
2595
  }
2582
- const Z2 = (m) => {
2583
- if (!C.utils && !C.startedLoadingUtilsScript) {
2596
+ const Z2 = (y) => {
2597
+ if (!m.utils && !m.startedLoadingUtilsScript) {
2584
2598
  let e;
2585
- if (typeof m == "function")
2599
+ if (typeof y == "function")
2586
2600
  try {
2587
- e = Promise.resolve(m());
2601
+ e = Promise.resolve(y());
2588
2602
  } catch (i) {
2589
2603
  return Promise.reject(i);
2590
2604
  }
2591
2605
  else
2592
- return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof m}`));
2593
- return C.startedLoadingUtilsScript = !0, e.then((i) => {
2606
+ 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}`));
2607
+ return m.startedLoadingUtilsScript = !0, e.then((i) => {
2594
2608
  const n = i == null ? void 0 : i.default;
2595
2609
  if (!n || typeof n != "object")
2596
2610
  throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
2597
- return C.utils = n, $1("handleUtils"), !0;
2611
+ return m.utils = n, i1("handleUtils"), !0;
2598
2612
  }).catch((i) => {
2599
- throw $1("rejectUtilsScriptPromise", i), i;
2613
+ throw i1("rejectUtilsScriptPromise", i), i;
2600
2614
  });
2601
2615
  }
2602
2616
  return null;
2603
- }, C = Object.assign(
2604
- (m, e) => {
2605
- const i = new p1(m, e);
2606
- return i._init(), m.setAttribute("data-intl-tel-input-id", i.id.toString()), C.instances[i.id] = i, m.iti = i, i;
2617
+ }, m = Object.assign(
2618
+ (y, e) => {
2619
+ const i = new g1(y, e);
2620
+ return i._init(), y.setAttribute("data-intl-tel-input-id", i.id.toString()), m.instances[i.id] = i, y.iti = i, i;
2607
2621
  },
2608
2622
  {
2609
- defaults: l2,
2623
+ defaults: c2,
2610
2624
  //* Using a static var like this allows us to mock it in the tests.
2611
2625
  documentReady: () => document.readyState === "complete",
2612
2626
  //* Get the country data object.
2613
- getCountryData: () => J,
2627
+ getCountryData: () => q,
2614
2628
  //* A getter for the plugin instance.
2615
- getInstance: (m) => {
2616
- const e = m.getAttribute("data-intl-tel-input-id");
2617
- return e ? C.instances[e] : null;
2629
+ getInstance: (y) => {
2630
+ const e = y.getAttribute("data-intl-tel-input-id");
2631
+ return e ? m.instances[e] : null;
2618
2632
  },
2619
2633
  //* A map from instance ID to instance object.
2620
2634
  instances: {},
2621
2635
  attachUtils: Z2,
2622
2636
  startedLoadingUtilsScript: !1,
2623
2637
  startedLoadingAutoCountry: !1,
2624
- version: "25.10.6"
2638
+ version: "25.10.7"
2625
2639
  }
2626
2640
  );
2627
2641
  (function() {
2628
- var m = this || self;
2642
+ var y = this || self;
2629
2643
  function e(d, t) {
2630
2644
  d = d.split(".");
2631
- var $ = m;
2645
+ var $ = y;
2632
2646
  d[0] in $ || typeof $.execScript > "u" || $.execScript("var " + d[0]);
2633
2647
  for (var s; d.length && (s = d.shift()); ) d.length || t === void 0 ? $[s] && $[s] !== Object.prototype[s] ? $ = $[s] : $ = $[s] = {} : $[s] = t;
2634
2648
  }
@@ -2666,21 +2680,21 @@ const Z2 = (m) => {
2666
2680
  }
2667
2681
  }
2668
2682
  new h();
2669
- const _ = {};
2670
- class v {
2683
+ const C = {};
2684
+ class I {
2671
2685
  constructor() {
2672
- if (_ !== _) throw Error("SafeStyleSheet is not meant to be built directly");
2686
+ if (C !== C) throw Error("SafeStyleSheet is not meant to be built directly");
2673
2687
  }
2674
2688
  toString() {
2675
2689
  return "";
2676
2690
  }
2677
2691
  }
2678
- new v();
2679
- const w = {};
2692
+ new I();
2693
+ const v = {};
2680
2694
  class g {
2681
2695
  constructor() {
2682
- var t = m.trustedTypes && m.trustedTypes.emptyHTML || "";
2683
- if (w !== w) throw Error("SafeHtml is not meant to be built directly");
2696
+ var t = y.trustedTypes && y.trustedTypes.emptyHTML || "";
2697
+ if (v !== v) throw Error("SafeHtml is not meant to be built directly");
2684
2698
  this.g = t;
2685
2699
  }
2686
2700
  toString() {
@@ -2688,64 +2702,64 @@ const Z2 = (m) => {
2688
2702
  }
2689
2703
  }
2690
2704
  new g();
2691
- function I(d, t) {
2705
+ function w(d, t) {
2692
2706
  switch (this.g = d, this.l = !!t.aa, this.h = t.i, this.s = t.type, this.o = !1, this.h) {
2693
- case O:
2694
2707
  case G:
2695
- case F:
2696
- case D:
2697
- case i1:
2698
- case M:
2708
+ case x:
2709
+ case R:
2710
+ case N:
2711
+ case W:
2712
+ case A:
2699
2713
  case S:
2700
2714
  this.o = !0;
2701
2715
  }
2702
2716
  this.j = t.defaultValue;
2703
2717
  }
2704
- var S = 1, M = 2, O = 3, G = 4, F = 6, D = 16, i1 = 18;
2705
- function c2(d, t) {
2718
+ var S = 1, A = 2, G = 3, x = 4, R = 6, N = 16, W = 18;
2719
+ function n1(d, t) {
2706
2720
  for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
2707
2721
  var $ = t[d];
2708
2722
  this.g[$.g] = $;
2709
2723
  }
2710
2724
  }
2711
- function f2(d) {
2725
+ function C1(d) {
2712
2726
  return d = n(d.g), d.sort(function(t, $) {
2713
2727
  return t.g - $.g;
2714
2728
  }), d;
2715
2729
  }
2716
- function x() {
2730
+ function B() {
2717
2731
  this.h = {}, this.j = this.m().g, this.g = this.l = null;
2718
2732
  }
2719
- x.prototype.has = function(d) {
2720
- return R(this, d.g);
2721
- }, x.prototype.get = function(d, t) {
2733
+ B.prototype.has = function(d) {
2734
+ return k(this, d.g);
2735
+ }, B.prototype.get = function(d, t) {
2722
2736
  return p(this, d.g, t);
2723
- }, x.prototype.set = function(d, t) {
2724
- A(this, d.g, t);
2725
- }, x.prototype.add = function(d, t) {
2726
- b1(this, d.g, t);
2737
+ }, B.prototype.set = function(d, t) {
2738
+ M(this, d.g, t);
2739
+ }, B.prototype.add = function(d, t) {
2740
+ N1(this, d.g, t);
2727
2741
  };
2728
- function S1(d, t) {
2729
- for (var $ = f2(d.m()), s = 0; s < $.length; s++) {
2742
+ function L1(d, t) {
2743
+ for (var $ = C1(d.m()), s = 0; s < $.length; s++) {
2730
2744
  var r = $[s], a = r.g;
2731
- if (R(t, a)) {
2745
+ if (k(t, a)) {
2732
2746
  d.g && delete d.g[r.g];
2733
2747
  var u = r.h == 11 || r.h == 10;
2734
2748
  if (r.l) {
2735
2749
  r = P(t, a);
2736
- for (var c = 0; c < r.length; c++) b1(d, a, u ? r[c].clone() : r[c]);
2737
- } else r = n1(t, a), u ? (u = n1(d, a)) ? S1(u, r) : A(d, a, r.clone()) : A(d, a, r);
2750
+ for (var c = 0; c < r.length; c++) N1(d, a, u ? r[c].clone() : r[c]);
2751
+ } else r = s1(t, a), u ? (u = s1(d, a)) ? L1(u, r) : M(d, a, r.clone()) : M(d, a, r);
2738
2752
  }
2739
2753
  }
2740
2754
  }
2741
- x.prototype.clone = function() {
2755
+ B.prototype.clone = function() {
2742
2756
  var d = new this.constructor();
2743
- return d != this && (d.h = {}, d.g && (d.g = {}), S1(d, this)), d;
2757
+ return d != this && (d.h = {}, d.g && (d.g = {}), L1(d, this)), d;
2744
2758
  };
2745
- function R(d, t) {
2759
+ function k(d, t) {
2746
2760
  return d.h[t] != null;
2747
2761
  }
2748
- function n1(d, t) {
2762
+ function s1(d, t) {
2749
2763
  var $ = d.h[t];
2750
2764
  if ($ == null) return null;
2751
2765
  if (d.l) {
@@ -2762,11 +2776,11 @@ const Z2 = (m) => {
2762
2776
  return $;
2763
2777
  }
2764
2778
  function p(d, t, $) {
2765
- var s = n1(d, t);
2779
+ var s = s1(d, t);
2766
2780
  return d.j[t].l ? s[$ || 0] : s;
2767
2781
  }
2768
2782
  function b(d, t) {
2769
- if (R(d, t)) d = p(d, t);
2783
+ if (k(d, t)) d = p(d, t);
2770
2784
  else d: {
2771
2785
  if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
2772
2786
  else if (t === Number) d.j = 0;
@@ -2780,87 +2794,87 @@ const Z2 = (m) => {
2780
2794
  return d;
2781
2795
  }
2782
2796
  function P(d, t) {
2783
- return n1(d, t) || [];
2797
+ return s1(d, t) || [];
2784
2798
  }
2785
2799
  function K(d, t) {
2786
- return d.j[t].l ? R(d, t) ? d.h[t].length : 0 : R(d, t) ? 1 : 0;
2800
+ return d.j[t].l ? k(d, t) ? d.h[t].length : 0 : k(d, t) ? 1 : 0;
2787
2801
  }
2788
- function A(d, t, $) {
2802
+ function M(d, t, $) {
2789
2803
  d.h[t] = $, d.g && (d.g[t] = $);
2790
2804
  }
2791
- function b1(d, t, $) {
2805
+ function N1(d, t, $) {
2792
2806
  d.h[t] || (d.h[t] = []), d.h[t].push($), d.g && delete d.g[t];
2793
2807
  }
2794
- function s1(d, t) {
2808
+ function r1(d, t) {
2795
2809
  var $ = [], s;
2796
- for (s in t) s != 0 && $.push(new I(s, t[s]));
2797
- return new c2(d, $);
2810
+ for (s in t) s != 0 && $.push(new w(s, t[s]));
2811
+ return new n1(d, $);
2798
2812
  }
2799
- function r1() {
2813
+ function o1() {
2800
2814
  }
2801
- r1.prototype.g = function(d) {
2815
+ o1.prototype.g = function(d) {
2802
2816
  throw new d.h(), Error("Unimplemented");
2803
- }, r1.prototype.h = function(d, t) {
2804
- if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
2805
- if (d.h == 14) return typeof t == "string" && L1.test(t) && (d = Number(t), 0 < d) ? d : t;
2817
+ }, o1.prototype.h = function(d, t) {
2818
+ if (d.h == 11 || d.h == 10) return t instanceof B ? t : this.g(d.s.prototype.m(), t);
2819
+ if (d.h == 14) return typeof t == "string" && T1.test(t) && (d = Number(t), 0 < d) ? d : t;
2806
2820
  if (!d.o) return t;
2807
2821
  if (d = d.s, d === String) {
2808
2822
  if (typeof t == "number") return String(t);
2809
- } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || L1.test(t))) return Number(t);
2823
+ } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || T1.test(t))) return Number(t);
2810
2824
  return t;
2811
2825
  };
2812
- var L1 = /^-?[0-9]+$/;
2813
- function g1() {
2826
+ var T1 = /^-?[0-9]+$/;
2827
+ function m1() {
2814
2828
  }
2815
- i(g1, r1), g1.prototype.g = function(d, t) {
2829
+ i(m1, o1), m1.prototype.g = function(d, t) {
2816
2830
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
2817
2831
  };
2818
- function q() {
2832
+ function X() {
2819
2833
  }
2820
- i(q, g1), q.prototype.h = function(d, t) {
2821
- return d.h == 8 ? !!t : r1.prototype.h.apply(this, arguments);
2822
- }, q.prototype.g = function(d, t) {
2823
- return q.ma.g.call(this, d, t);
2834
+ i(X, m1), X.prototype.h = function(d, t) {
2835
+ return d.h == 8 ? !!t : o1.prototype.h.apply(this, arguments);
2836
+ }, X.prototype.g = function(d, t) {
2837
+ return X.ma.g.call(this, d, t);
2824
2838
  };
2825
- function T(d, t) {
2839
+ function E(d, t) {
2826
2840
  d != null && this.g.apply(this, arguments);
2827
2841
  }
2828
- T.prototype.h = "", T.prototype.set = function(d) {
2842
+ E.prototype.h = "", E.prototype.set = function(d) {
2829
2843
  this.h = "" + d;
2830
- }, T.prototype.g = function(d, t, $) {
2844
+ }, E.prototype.g = function(d, t, $) {
2831
2845
  if (this.h += String(d), t != null) for (let s = 1; s < arguments.length; s++) this.h += arguments[s];
2832
2846
  return this;
2833
2847
  };
2834
- function B(d) {
2848
+ function O(d) {
2835
2849
  d.h = "";
2836
2850
  }
2837
- T.prototype.toString = function() {
2851
+ E.prototype.toString = function() {
2838
2852
  return this.h;
2839
2853
  };
2840
- function W() {
2841
- x.call(this);
2854
+ function z() {
2855
+ B.call(this);
2842
2856
  }
2843
- i(W, x);
2844
- var N1 = null;
2857
+ i(z, B);
2858
+ var A1 = null;
2845
2859
  function L() {
2846
- x.call(this);
2860
+ B.call(this);
2847
2861
  }
2848
- i(L, x);
2849
- var T1 = null;
2850
- function z() {
2851
- x.call(this);
2862
+ i(L, B);
2863
+ var E1 = null;
2864
+ function Z() {
2865
+ B.call(this);
2852
2866
  }
2853
- i(z, x);
2854
- var A1 = null;
2855
- W.prototype.m = function() {
2856
- var d = N1;
2857
- return d || (N1 = d = s1(W, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
2858
- }, W.m = W.prototype.m, L.prototype.m = function() {
2859
- var d = T1;
2860
- return d || (T1 = d = s1(L, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
2861
- }, L.m = L.prototype.m, z.prototype.m = function() {
2867
+ i(Z, B);
2868
+ var M1 = null;
2869
+ z.prototype.m = function() {
2862
2870
  var d = A1;
2863
- return d || (A1 = d = s1(z, {
2871
+ return d || (A1 = d = r1(z, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
2872
+ }, z.m = z.prototype.m, L.prototype.m = function() {
2873
+ var d = E1;
2874
+ return d || (E1 = d = r1(L, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
2875
+ }, L.m = L.prototype.m, Z.prototype.m = function() {
2876
+ var d = M1;
2877
+ return d || (M1 = d = r1(Z, {
2864
2878
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
2865
2879
  1: { name: "general_desc", i: 11, type: L },
2866
2880
  2: { name: "fixed_line", i: 11, type: L },
@@ -2892,26 +2906,26 @@ const Z2 = (m) => {
2892
2906
  },
2893
2907
  16: { name: "national_prefix_transform_rule", i: 9, type: String },
2894
2908
  18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: !1, type: Boolean },
2895
- 19: { name: "number_format", aa: !0, i: 11, type: W },
2896
- 20: { name: "intl_number_format", aa: !0, i: 11, type: W },
2909
+ 19: { name: "number_format", aa: !0, i: 11, type: z },
2910
+ 20: { name: "intl_number_format", aa: !0, i: 11, type: z },
2897
2911
  22: { name: "main_country_for_code", i: 8, defaultValue: !1, type: Boolean },
2898
2912
  23: { name: "leading_digits", i: 9, type: String }
2899
2913
  })), d;
2900
- }, z.m = z.prototype.m;
2914
+ }, Z.m = Z.prototype.m;
2901
2915
  function H() {
2902
- x.call(this);
2916
+ B.call(this);
2903
2917
  }
2904
- i(H, x);
2905
- var E1 = null, p2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2918
+ i(H, B);
2919
+ var D1 = null, p2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2906
2920
  H.prototype.m = function() {
2907
- var d = E1;
2908
- return d || (E1 = d = s1(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: p2 }, 7: {
2921
+ var d = D1;
2922
+ return d || (D1 = d = r1(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: p2 }, 7: {
2909
2923
  name: "preferred_domestic_carrier_code",
2910
2924
  i: 9,
2911
2925
  type: String
2912
2926
  } })), d;
2913
2927
  }, H.ctor = H, H.ctor.m = H.prototype.m;
2914
- var X = {
2928
+ var Q = {
2915
2929
  1: "US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),
2916
2930
  7: ["RU", "KZ"],
2917
2931
  20: ["EG"],
@@ -3127,7 +3141,7 @@ const Z2 = (m) => {
3127
3141
  995: ["GE"],
3128
3142
  996: ["KG"],
3129
3143
  998: ["UZ"]
3130
- }, M1 = {
3144
+ }, P1 = {
3131
3145
  AC: [, [
3132
3146
  ,
3133
3147
  ,
@@ -8232,13 +8246,13 @@ const Z2 = (m) => {
8232
8246
  ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
8233
8247
  979: [, [, , "[1359]\\d{8}", , , , , , , [9], [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[1359]\\d{8}", , , , "123456789", , , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 979, , , , , , , , 1, [[, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]]
8234
8248
  };
8235
- function E() {
8249
+ function D() {
8236
8250
  this.g = {};
8237
8251
  }
8238
- E.h = void 0, E.g = function() {
8239
- return E.h ? E.h : E.h = new E();
8252
+ D.h = void 0, D.g = function() {
8253
+ return D.h ? D.h : D.h = new D();
8240
8254
  };
8241
- var C1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, g2 = {
8255
+ var y1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, g2 = {
8242
8256
  0: "0",
8243
8257
  1: "1",
8244
8258
  2: "2",
@@ -8319,54 +8333,54 @@ const Z2 = (m) => {
8319
8333
  X: "9",
8320
8334
  Y: "9",
8321
8335
  Z: "9"
8322
- }, m2 = RegExp("[++]+"), Q = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), y2 = RegExp("[++0-90-9٠-٩۰-۹]"), _2 = /[\\\/] *x/, I2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), v2 = /(?:.*?[A-Za-z]){3}.*/, w2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), S2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8323
- function Y(d) {
8336
+ }, m2 = RegExp("[++]+"), d1 = RegExp("^[++]+"), x1 = RegExp("([0-90-9٠-٩۰-۹])"), y2 = RegExp("[++0-90-9٠-٩۰-۹]"), _2 = /[\\\/] *x/, I2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), v2 = /(?:.*?[A-Za-z]){3}.*/, w2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), S2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8337
+ function J(d) {
8324
8338
  return "([0-90-9٠-٩۰-۹]{1," + d + "})";
8325
8339
  }
8326
- function P1() {
8327
- return ";ext=" + Y("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (Y("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (Y("9") + "#?|[- ]+") + (Y("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (Y("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (Y("9") + "#?");
8340
+ function R1() {
8341
+ return ";ext=" + J("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (J("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (J("9") + "#?|[- ]+") + (J("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (J("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (J("9") + "#?");
8328
8342
  }
8329
- var x1 = new RegExp("(?:" + P1() + ")$", "i"), b2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + P1() + ")?$", "i"), L2 = /(\$\d)/, N2 = /^\(?\$1\)?$/;
8330
- function R1(d) {
8343
+ var B1 = new RegExp("(?:" + R1() + ")$", "i"), b2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + R1() + ")?$", "i"), L2 = /(\$\d)/, N2 = /^\(?\$1\)?$/;
8344
+ function k1(d) {
8331
8345
  return 2 > d.length ? !1 : U(b2, d);
8332
8346
  }
8333
- function B1(d) {
8334
- return U(v2, d) ? o1(d, C2) : o1(d, C1);
8347
+ function O1(d) {
8348
+ return U(v2, d) ? a1(d, C2) : a1(d, y1);
8335
8349
  }
8336
- function k1(d) {
8337
- var t = B1(d.toString());
8338
- B(d), d.g(t);
8350
+ function G1(d) {
8351
+ var t = O1(d.toString());
8352
+ O(d), d.g(t);
8339
8353
  }
8340
- function O1(d) {
8354
+ function F1(d) {
8341
8355
  return d != null && (K(d, 9) != 1 || P(d, 9)[0] != -1);
8342
8356
  }
8343
- function o1(d, t) {
8344
- for (var $ = new T(), s, r = d.length, a = 0; a < r; ++a) s = d.charAt(a), s = t[s.toUpperCase()], s != null && $.g(s);
8357
+ function a1(d, t) {
8358
+ for (var $ = new E(), s, r = d.length, a = 0; a < r; ++a) s = d.charAt(a), s = t[s.toUpperCase()], s != null && $.g(s);
8345
8359
  return $.toString();
8346
8360
  }
8347
- function G1(d) {
8361
+ function U1(d) {
8348
8362
  return d.length == 0 || N2.test(d);
8349
8363
  }
8350
- function a1(d) {
8351
- return d != null && isNaN(d) && d.toUpperCase() in M1;
8364
+ function u1(d) {
8365
+ return d != null && isNaN(d) && d.toUpperCase() in P1;
8352
8366
  }
8353
- E.prototype.format = function(d, t) {
8354
- if (p(d, 2) == 0 && R(d, 5)) {
8367
+ D.prototype.format = function(d, t) {
8368
+ if (p(d, 2) == 0 && k(d, 5)) {
8355
8369
  var $ = b(d, 5);
8356
8370
  if (0 < $.length) return $;
8357
8371
  }
8358
8372
  $ = b(d, 1);
8359
- var s = t1(d);
8360
- if (t == 0) return F1($, 0, s, "");
8361
- if (!($ in X)) return s;
8362
- var r = d1(this, $, e1($));
8363
- d = R(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : R(r, 13) ? p(r, 13) + b(d, 3) : " ext. " + b(d, 3) : "";
8373
+ var s = e1(d);
8374
+ if (t == 0) return V1($, 0, s, "");
8375
+ if (!($ in Q)) return s;
8376
+ var r = t1(this, $, $1($));
8377
+ d = k(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : k(r, 13) ? p(r, 13) + b(d, 3) : " ext. " + b(d, 3) : "";
8364
8378
  d: {
8365
8379
  r = P(r, 20).length == 0 || t == 2 ? P(r, 19) : P(r, 20);
8366
8380
  for (var a, u = r.length, c = 0; c < u; ++c) {
8367
8381
  a = r[c];
8368
- var y = K(a, 3);
8369
- if ((y == 0 || s.search(p(a, 3, y - 1)) == 0) && (y = new RegExp(p(a, 1)), U(y, s))) {
8382
+ var _ = K(a, 3);
8383
+ if ((_ == 0 || s.search(p(a, 3, _ - 1)) == 0) && (_ = new RegExp(p(a, 1)), U(_, s))) {
8370
8384
  r = a;
8371
8385
  break d;
8372
8386
  }
@@ -8376,17 +8390,17 @@ const Z2 = (m) => {
8376
8390
  return r != null && (u = r, r = b(u, 2), a = new RegExp(p(u, 1)), b(
8377
8391
  u,
8378
8392
  5
8379
- ), u = b(u, 4), s = t == 2 && u != null && 0 < u.length ? s.replace(a, r.replace(L2, u)) : s.replace(a, r), t == 3 && (s = s.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), s = s.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), F1($, t, s, d);
8393
+ ), u = b(u, 4), s = t == 2 && u != null && 0 < u.length ? s.replace(a, r.replace(L2, u)) : s.replace(a, r), t == 3 && (s = s.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), s = s.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), V1($, t, s, d);
8380
8394
  };
8381
- function d1(d, t, $) {
8395
+ function t1(d, t, $) {
8382
8396
  return $ == "001" ? j(d, "" + t) : j(d, $);
8383
8397
  }
8384
- function t1(d) {
8385
- if (!R(d, 2)) return "";
8398
+ function e1(d) {
8399
+ if (!k(d, 2)) return "";
8386
8400
  var t = "" + p(d, 2);
8387
- return R(d, 4) && p(d, 4) && 0 < b(d, 8) ? Array(b(d, 8) + 1).join("0") + t : t;
8401
+ return k(d, 4) && p(d, 4) && 0 < b(d, 8) ? Array(b(d, 8) + 1).join("0") + t : t;
8388
8402
  }
8389
- function F1(d, t, $, s) {
8403
+ function V1(d, t, $, s) {
8390
8404
  switch (t) {
8391
8405
  case 0:
8392
8406
  return "+" + d + $ + s;
@@ -8398,7 +8412,7 @@ const Z2 = (m) => {
8398
8412
  return $ + s;
8399
8413
  }
8400
8414
  }
8401
- function u1(d, t) {
8415
+ function l1(d, t) {
8402
8416
  switch (t) {
8403
8417
  case 4:
8404
8418
  return p(d, 5);
@@ -8425,47 +8439,47 @@ const Z2 = (m) => {
8425
8439
  return p(d, 1);
8426
8440
  }
8427
8441
  }
8428
- function U1(d, t) {
8429
- var $ = V1(d, t);
8430
- return d = d1(d, b(t, 1), $), d == null ? -1 : (t = t1(t), m1(t, d));
8442
+ function K1(d, t) {
8443
+ var $ = H1(d, t);
8444
+ return d = t1(d, b(t, 1), $), d == null ? -1 : (t = e1(t), _1(t, d));
8431
8445
  }
8432
- function m1(d, t) {
8433
- return k(d, p(t, 1)) ? k(d, p(t, 5)) ? 4 : k(d, p(t, 4)) ? 3 : k(d, p(t, 6)) ? 5 : k(d, p(t, 8)) ? 6 : k(d, p(t, 7)) ? 7 : k(d, p(t, 21)) ? 8 : k(d, p(t, 25)) ? 9 : k(d, p(t, 28)) ? 10 : k(d, p(t, 2)) ? p(t, 18) || k(d, p(t, 3)) ? 2 : 0 : !p(t, 18) && k(d, p(t, 3)) ? 1 : -1 : -1;
8446
+ function _1(d, t) {
8447
+ return F(d, p(t, 1)) ? F(d, p(t, 5)) ? 4 : F(d, p(t, 4)) ? 3 : F(d, p(t, 6)) ? 5 : F(d, p(t, 8)) ? 6 : F(d, p(t, 7)) ? 7 : F(d, p(t, 21)) ? 8 : F(d, p(t, 25)) ? 9 : F(d, p(t, 28)) ? 10 : F(d, p(t, 2)) ? p(t, 18) || F(d, p(t, 3)) ? 2 : 0 : !p(t, 18) && F(d, p(t, 3)) ? 1 : -1 : -1;
8434
8448
  }
8435
8449
  function j(d, t) {
8436
8450
  if (t == null) return null;
8437
8451
  t = t.toUpperCase();
8438
8452
  var $ = d.g[t];
8439
8453
  if ($ == null) {
8440
- if ($ = M1[t], $ == null) return null;
8441
- $ = new q().g(z.m(), $), d.g[t] = $;
8454
+ if ($ = P1[t], $ == null) return null;
8455
+ $ = new X().g(Z.m(), $), d.g[t] = $;
8442
8456
  }
8443
8457
  return $;
8444
8458
  }
8445
- function k(d, t) {
8459
+ function F(d, t) {
8446
8460
  var $ = d.length;
8447
8461
  return 0 < K(t, 9) && P(t, 9).indexOf($) == -1 ? !1 : U(b(t, 2), d);
8448
8462
  }
8449
8463
  function T2(d, t) {
8450
- var $ = V1(d, t), s = b(t, 1), r = d1(d, s, $);
8451
- return r == null || $ != "001" && s != K1(d, $) ? r = !1 : (d = t1(t), r = m1(d, r) != -1), r;
8464
+ var $ = H1(d, t), s = b(t, 1), r = t1(d, s, $);
8465
+ return r == null || $ != "001" && s != j1(d, $) ? r = !1 : (d = e1(t), r = _1(d, r) != -1), r;
8452
8466
  }
8453
- function V1(d, t) {
8467
+ function H1(d, t) {
8454
8468
  if (t == null) return null;
8455
8469
  var $ = b(t, 1);
8456
- if ($ = X[$], $ == null) d = null;
8470
+ if ($ = Q[$], $ == null) d = null;
8457
8471
  else if ($.length == 1) d = $[0];
8458
8472
  else d: {
8459
- t = t1(t);
8473
+ t = e1(t);
8460
8474
  for (var s, r = $.length, a = 0; a < r; a++) {
8461
8475
  s = $[a];
8462
8476
  var u = j(d, s);
8463
- if (R(u, 23)) {
8477
+ if (k(u, 23)) {
8464
8478
  if (t.search(p(u, 23)) == 0) {
8465
8479
  d = s;
8466
8480
  break d;
8467
8481
  }
8468
- } else if (m1(t, u) != -1) {
8482
+ } else if (_1(t, u) != -1) {
8469
8483
  d = s;
8470
8484
  break d;
8471
8485
  }
@@ -8474,70 +8488,70 @@ const Z2 = (m) => {
8474
8488
  }
8475
8489
  return d;
8476
8490
  }
8477
- function e1(d) {
8478
- return d = X[d], d == null ? "ZZ" : d[0];
8491
+ function $1(d) {
8492
+ return d = Q[d], d == null ? "ZZ" : d[0];
8479
8493
  }
8480
- function K1(d, t) {
8494
+ function j1(d, t) {
8481
8495
  if (d = j(d, t), d == null) throw Error("Invalid region code: " + t);
8482
8496
  return b(d, 10);
8483
8497
  }
8484
- function l1(d, t, $, s) {
8485
- var r = u1($, s), a = K(r, 9) == 0 ? P(p($, 1), 9) : P(r, 9);
8486
- if (r = P(r, 10), s == 2) if (O1(u1($, 0))) d = u1($, 1), O1(d) && (a = a.concat(K(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), a.sort(), r.length == 0 ? r = P(d, 10) : (r = r.concat(P(d, 10)), r.sort()));
8487
- else return l1(d, t, $, 1);
8498
+ function h1(d, t, $, s) {
8499
+ var r = l1($, s), a = K(r, 9) == 0 ? P(p($, 1), 9) : P(r, 9);
8500
+ if (r = P(r, 10), s == 2) if (F1(l1($, 0))) d = l1($, 1), F1(d) && (a = a.concat(K(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), a.sort(), r.length == 0 ? r = P(d, 10) : (r = r.concat(P(d, 10)), r.sort()));
8501
+ else return h1(d, t, $, 1);
8488
8502
  return a[0] == -1 ? 5 : (t = t.length, -1 < r.indexOf(t) ? 4 : ($ = a[0], $ == t ? 0 : $ > t ? 2 : a[a.length - 1] < t ? 3 : -1 < a.indexOf(t, 1) ? 0 : 5));
8489
8503
  }
8490
- function h1(d, t, $) {
8491
- var s = t1(t);
8492
- return t = b(t, 1), t in X ? (t = d1(d, t, e1(t)), l1(d, s, t, $)) : 1;
8504
+ function c1(d, t, $) {
8505
+ var s = e1(t);
8506
+ return t = b(t, 1), t in Q ? (t = t1(d, t, $1(t)), h1(d, s, t, $)) : 1;
8493
8507
  }
8494
- function H1(d, t) {
8508
+ function W1(d, t) {
8495
8509
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
8496
- for (var $, s = d.length, r = 1; 3 >= r && r <= s; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in X) return t.g(d.substring(r)), $;
8510
+ for (var $, s = d.length, r = 1; 3 >= r && r <= s; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in Q) return t.g(d.substring(r)), $;
8497
8511
  return 0;
8498
8512
  }
8499
- function j1(d, t, $, s, r, a) {
8513
+ function z1(d, t, $, s, r, a) {
8500
8514
  if (t.length == 0) return 0;
8501
- t = new T(t);
8515
+ t = new E(t);
8502
8516
  var u;
8503
8517
  $ != null && (u = p($, 11)), u == null && (u = "NonMatch");
8504
8518
  var c = t.toString();
8505
8519
  if (c.length == 0) u = 20;
8506
- else if (Q.test(c)) c = c.replace(Q, ""), B(t), t.g(B1(c)), u = 1;
8520
+ else if (d1.test(c)) c = c.replace(d1, ""), O(t), t.g(O1(c)), u = 1;
8507
8521
  else {
8508
- if (c = new RegExp(u), k1(t), u = t.toString(), u.search(c) == 0) {
8522
+ if (c = new RegExp(u), G1(t), u = t.toString(), u.search(c) == 0) {
8509
8523
  c = u.match(c)[0].length;
8510
- var y = u.substring(c).match(D1);
8511
- y && y[1] != null && 0 < y[1].length && o1(y[1], C1) == "0" ? u = !1 : (B(t), t.g(u.substring(c)), u = !0);
8524
+ var _ = u.substring(c).match(x1);
8525
+ _ && _[1] != null && 0 < _[1].length && a1(_[1], y1) == "0" ? u = !1 : (O(t), t.g(u.substring(c)), u = !0);
8512
8526
  } else u = !1;
8513
8527
  u = u ? 5 : 20;
8514
8528
  }
8515
- if (r && A(a, 6, u), u != 20) {
8529
+ if (r && M(a, 6, u), u != 20) {
8516
8530
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
8517
- if (d = H1(t, s), d != 0) return A(a, 1, d), d;
8531
+ if (d = W1(t, s), d != 0) return M(a, 1, d), d;
8518
8532
  throw Error("Invalid country calling code");
8519
8533
  }
8520
- return $ != null && (u = b($, 10), c = "" + u, y = t.toString(), y.lastIndexOf(c, 0) == 0 && (c = new T(y.substring(c.length)), y = p($, 1), y = new RegExp(b(y, 2)), W1(c, $, null), c = c.toString(), !U(y, t.toString()) && U(y, c) || l1(d, t.toString(), $, -1) == 3)) ? (s.g(c), r && A(a, 6, 10), A(a, 1, u), u) : (A(a, 1, 0), 0);
8534
+ return $ != null && (u = b($, 10), c = "" + u, _ = t.toString(), _.lastIndexOf(c, 0) == 0 && (c = new E(_.substring(c.length)), _ = p($, 1), _ = new RegExp(b(_, 2)), Z1(c, $, null), c = c.toString(), !U(_, t.toString()) && U(_, c) || h1(d, t.toString(), $, -1) == 3)) ? (s.g(c), r && M(a, 6, 10), M(a, 1, u), u) : (M(a, 1, 0), 0);
8521
8535
  }
8522
- function W1(d, t, $) {
8536
+ function Z1(d, t, $) {
8523
8537
  var s = d.toString(), r = s.length, a = p(t, 15);
8524
8538
  if (r != 0 && a != null && a.length != 0) {
8525
8539
  var u = new RegExp("^(?:" + a + ")");
8526
8540
  if (r = u.exec(s)) {
8527
8541
  a = new RegExp(b(p(t, 1), 2));
8528
- var c = U(a, s), y = r.length - 1;
8529
- t = p(t, 16), t == null || t.length == 0 || r[y] == null || r[y].length == 0 ? (!c || U(a, s.substring(r[0].length))) && ($ != null && 0 < y && r[y] != null && $.g(r[1]), d.set(s.substring(r[0].length))) : (s = s.replace(u, t), (!c || U(a, s)) && ($ != null && 0 < y && $.g(r[1]), d.set(s)));
8542
+ var c = U(a, s), _ = r.length - 1;
8543
+ t = p(t, 16), t == null || t.length == 0 || r[_] == null || r[_].length == 0 ? (!c || U(a, s.substring(r[0].length))) && ($ != null && 0 < _ && r[_] != null && $.g(r[1]), d.set(s.substring(r[0].length))) : (s = s.replace(u, t), (!c || U(a, s)) && ($ != null && 0 < _ && $.g(r[1]), d.set(s)));
8530
8544
  }
8531
8545
  }
8532
8546
  }
8533
- function Z(d, t, $) {
8534
- if (!a1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8535
- return z1(d, t, $, !0);
8547
+ function Y(d, t, $) {
8548
+ if (!u1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8549
+ return Y1(d, t, $, !0);
8536
8550
  }
8537
- function z1(d, t, $, s) {
8551
+ function Y1(d, t, $, s) {
8538
8552
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
8539
8553
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
8540
- var r = new T(), a = t.indexOf(";phone-context=");
8554
+ var r = new E(), a = t.indexOf(";phone-context=");
8541
8555
  if (a === -1) a = null;
8542
8556
  else if (a += 15, a >= t.length) a = "";
8543
8557
  else {
@@ -8545,66 +8559,66 @@ const Z2 = (m) => {
8545
8559
  a = u !== -1 ? t.substring(a, u) : t.substring(a);
8546
8560
  }
8547
8561
  var c = a;
8548
- if (c == null ? u = !0 : c.length === 0 ? u = !1 : (u = w2.exec(c), c = S2.exec(c), u = u !== null || c !== null), !u || (a != null ? (a.charAt(0) === "+" && r.g(a), a = t.indexOf("tel:"), r.g(t.substring(0 <= a ? a + 4 : 0, t.indexOf(";phone-context=")))) : (a = r.g, u = t ?? "", c = u.search(y2), 0 <= c ? (u = u.substring(c), u = u.replace(I2, ""), c = u.search(_2), 0 <= c && (u = u.substring(0, c))) : u = "", a.call(r, u)), a = r.toString(), u = a.indexOf(";isub="), 0 < u && (B(r), r.g(a.substring(0, u))), !R1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
8549
- if (a = r.toString(), !(a1($) || a != null && 0 < a.length && Q.test(a))) throw Error("Invalid country calling code");
8550
- a = new H(), s && A(a, 5, t);
8562
+ if (c == null ? u = !0 : c.length === 0 ? u = !1 : (u = w2.exec(c), c = S2.exec(c), u = u !== null || c !== null), !u || (a != null ? (a.charAt(0) === "+" && r.g(a), a = t.indexOf("tel:"), r.g(t.substring(0 <= a ? a + 4 : 0, t.indexOf(";phone-context=")))) : (a = r.g, u = t ?? "", c = u.search(y2), 0 <= c ? (u = u.substring(c), u = u.replace(I2, ""), c = u.search(_2), 0 <= c && (u = u.substring(0, c))) : u = "", a.call(r, u)), a = r.toString(), u = a.indexOf(";isub="), 0 < u && (O(r), r.g(a.substring(0, u))), !k1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
8563
+ if (a = r.toString(), !(u1($) || a != null && 0 < a.length && d1.test(a))) throw Error("Invalid country calling code");
8564
+ a = new H(), s && M(a, 5, t);
8551
8565
  d: {
8552
- if (t = r.toString(), u = t.search(x1), 0 <= u && R1(t.substring(0, u))) {
8553
- c = t.match(x1);
8554
- for (var y = c.length, V = 1; V < y; ++V) if (c[V] != null && 0 < c[V].length) {
8555
- B(r), r.g(t.substring(0, u)), t = c[V];
8566
+ if (t = r.toString(), u = t.search(B1), 0 <= u && k1(t.substring(0, u))) {
8567
+ c = t.match(B1);
8568
+ for (var _ = c.length, V = 1; V < _; ++V) if (c[V] != null && 0 < c[V].length) {
8569
+ O(r), r.g(t.substring(0, u)), t = c[V];
8556
8570
  break d;
8557
8571
  }
8558
8572
  }
8559
8573
  t = "";
8560
8574
  }
8561
- 0 < t.length && A(a, 3, t), u = j(d, $), t = new T(), c = 0, y = r.toString();
8575
+ 0 < t.length && M(a, 3, t), u = j(d, $), t = new E(), c = 0, _ = r.toString();
8562
8576
  try {
8563
- c = j1(d, y, u, t, s, a);
8564
- } catch (I1) {
8565
- if (I1.message == "Invalid country calling code" && Q.test(y)) {
8566
- if (y = y.replace(Q, ""), c = j1(d, y, u, t, s, a), c == 0) throw I1;
8567
- } else throw I1;
8577
+ c = z1(d, _, u, t, s, a);
8578
+ } catch (w1) {
8579
+ if (w1.message == "Invalid country calling code" && d1.test(_)) {
8580
+ if (_ = _.replace(d1, ""), c = z1(d, _, u, t, s, a), c == 0) throw w1;
8581
+ } else throw w1;
8568
8582
  }
8569
- if (c != 0 ? (r = e1(c), r != $ && (u = d1(d, c, r))) : (k1(r), t.g(r.toString()), $ != null ? (c = b(u, 10), A(
8583
+ if (c != 0 ? (r = $1(c), r != $ && (u = t1(d, c, r))) : (G1(r), t.g(r.toString()), $ != null ? (c = b(u, 10), M(
8570
8584
  a,
8571
8585
  1,
8572
8586
  c
8573
- )) : s && (delete a.h[6], a.g && delete a.g[6])), 2 > t.h.length || (u != null && ($ = new T(), r = new T(t.toString()), W1(r, u, $), d = l1(d, r.toString(), u, -1), d != 2 && d != 4 && d != 5 && (t = r, s && 0 < $.toString().length && A(a, 7, $.toString()))), s = t.toString(), d = s.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8587
+ )) : s && (delete a.h[6], a.g && delete a.g[6])), 2 > t.h.length || (u != null && ($ = new E(), r = new E(t.toString()), Z1(r, u, $), d = h1(d, r.toString(), u, -1), d != 2 && d != 4 && d != 5 && (t = r, s && 0 < $.toString().length && M(a, 7, $.toString()))), s = t.toString(), d = s.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8574
8588
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
8575
8589
  if (1 < s.length && s.charAt(0) == "0") {
8576
- for (A(a, 4, !0), d = 1; d < s.length - 1 && s.charAt(d) == "0"; ) d++;
8577
- d != 1 && A(a, 8, d);
8590
+ for (M(a, 4, !0), d = 1; d < s.length - 1 && s.charAt(d) == "0"; ) d++;
8591
+ d != 1 && M(a, 8, d);
8578
8592
  }
8579
- return A(a, 2, parseInt(s, 10)), a;
8593
+ return M(a, 2, parseInt(s, 10)), a;
8580
8594
  }
8581
8595
  function U(d, t) {
8582
8596
  return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
8583
8597
  }
8584
8598
  function A2(d) {
8585
- this.fa = RegExp(" "), this.ja = "", this.v = new T(), this.da = "", this.s = new T(), this.ba = new T(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = E.g(), this.$ = 0, this.h = new T(), this.ha = !1, this.o = "", this.g = new T(), this.j = [], this.ka = d, this.l = J1(this, this.ka);
8599
+ this.fa = RegExp(" "), this.ja = "", this.v = new E(), this.da = "", this.s = new E(), this.ba = new E(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new E(), this.ha = !1, this.o = "", this.g = new E(), this.j = [], this.ka = d, this.l = X1(this, this.ka);
8586
8600
  }
8587
- var Z1 = new z();
8588
- A(Z1, 11, "NA");
8589
- var E2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), Y1 = /[- ]/;
8590
- function J1(d, t) {
8601
+ var J1 = new Z();
8602
+ M(J1, 11, "NA");
8603
+ var E2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), q1 = /[- ]/;
8604
+ function X1(d, t) {
8591
8605
  var $ = d.ga;
8592
- return t = a1(t) ? K1($, t) : 0, d = j(d.ga, e1(t)), d ?? Z1;
8606
+ return t = u1(t) ? j1($, t) : 0, d = j(d.ga, $1(t)), d ?? J1;
8593
8607
  }
8594
- function q1(d) {
8608
+ function Q1(d) {
8595
8609
  for (var t = d.j.length, $ = 0; $ < t; ++$) {
8596
8610
  var s = d.j[$], r = b(s, 1);
8597
8611
  if (d.da == r) return !1;
8598
8612
  var a = d, u = s, c = b(u, 1);
8599
- B(a.v);
8600
- var y = a;
8613
+ O(a.v);
8614
+ var _ = a;
8601
8615
  u = b(u, 2);
8602
8616
  var V = "999999999999999".match(c)[0];
8603
- if (V.length < y.g.h.length ? y = "" : (y = V.replace(new RegExp(c, "g"), u), y = y.replace(RegExp("9", "g"), " ")), 0 < y.length ? (a.v.g(y), a = !0) : a = !1, a) return d.da = r, d.ha = Y1.test(p(s, 4)), d.$ = 0, !0;
8617
+ if (V.length < _.g.h.length ? _ = "" : (_ = V.replace(new RegExp(c, "g"), u), _ = _.replace(RegExp("9", "g"), " ")), 0 < _.length ? (a.v.g(_), a = !0) : a = !1, a) return d.da = r, d.ha = q1.test(p(s, 4)), d.$ = 0, !0;
8604
8618
  }
8605
8619
  return d.u = !1;
8606
8620
  }
8607
- function X1(d, t) {
8621
+ function d2(d, t) {
8608
8622
  for (var $ = [], s = t.length - 3, r = d.j.length, a = 0; a < r; ++a) {
8609
8623
  var u = d.j[a];
8610
8624
  K(u, 3) == 0 ? $.push(d.j[a]) : (u = p(u, 3, Math.min(s, K(u, 3) - 1)), t.search(u) == 0 && $.push(d.j[a]));
@@ -8614,11 +8628,11 @@ const Z2 = (m) => {
8614
8628
  function M2(d, t) {
8615
8629
  d.s.g(t);
8616
8630
  var $ = t;
8617
- if (D1.test($) || d.s.h.length == 1 && m2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = C1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
8631
+ if (x1.test($) || d.s.h.length == 1 && m2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = y1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
8618
8632
  if (!d.la) {
8619
- if ($2(d)) {
8620
- if (i2(d)) return Q1(d);
8621
- } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, $))), d.o != e2(d)) return d.h.g(" "), Q1(d);
8633
+ if (n2(d)) {
8634
+ if (s2(d)) return t2(d);
8635
+ } else if (0 < d.o.length && (t = d.g.toString(), O(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), O(d.h), d.h.g(t.substring(0, $))), d.o != i2(d)) return d.h.g(" "), t2(d);
8622
8636
  }
8623
8637
  return d.s.toString();
8624
8638
  }
@@ -8628,72 +8642,72 @@ const Z2 = (m) => {
8628
8642
  case 2:
8629
8643
  return d.s.toString();
8630
8644
  case 3:
8631
- if ($2(d)) d.ea = !0;
8632
- else return d.o = e2(d), y1(d);
8645
+ if (n2(d)) d.ea = !0;
8646
+ else return d.o = i2(d), I1(d);
8633
8647
  default:
8634
- return d.ea ? (i2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = n2(d, t), $ = d2(d), 0 < $.length ? $ : (X1(d, d.g.toString()), q1(d) ? t2(d) : d.u ? c1(d, t) : d.s.toString())) : y1(d);
8648
+ return d.ea ? (s2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = r2(d, t), $ = e2(d), 0 < $.length ? $ : (d2(d, d.g.toString()), Q1(d) ? $2(d) : d.u ? f1(d, t) : d.s.toString())) : I1(d);
8635
8649
  }
8636
8650
  }
8637
- function Q1(d) {
8638
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", y1(d);
8651
+ function t2(d) {
8652
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, O(d.v), d.da = "", I1(d);
8639
8653
  }
8640
- function d2(d) {
8654
+ function e2(d) {
8641
8655
  for (var t = d.g.toString(), $ = d.j.length, s = 0; s < $; ++s) {
8642
8656
  var r = d.j[s], a = b(r, 1);
8643
- if (new RegExp("^(?:" + a + ")$").test(t) && (d.ha = Y1.test(p(r, 4)), r = t.replace(new RegExp(a, "g"), p(r, 2)), r = c1(d, r), o1(r, g2) == d.ba)) return r;
8657
+ if (new RegExp("^(?:" + a + ")$").test(t) && (d.ha = q1.test(p(r, 4)), r = t.replace(new RegExp(a, "g"), p(r, 2)), r = f1(d, r), a1(r, g2) == d.ba)) return r;
8644
8658
  }
8645
8659
  return "";
8646
8660
  }
8647
- function c1(d, t) {
8661
+ function f1(d, t) {
8648
8662
  var $ = d.h.h.length;
8649
8663
  return d.ha && 0 < $ && d.h.toString().charAt($ - 1) != " " ? d.h + " " + t : d.h + t;
8650
8664
  }
8651
- function y1(d) {
8665
+ function I1(d) {
8652
8666
  var t = d.g.toString();
8653
8667
  if (3 <= t.length) {
8654
8668
  for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), s = $.length, r = 0; r < s; ++r) {
8655
8669
  var a = $[r];
8656
- 0 < d.o.length && G1(b(a, 4)) && !p(a, 6) && !R(a, 5) || (d.o.length != 0 || d.ca || G1(b(a, 4)) || p(a, 6)) && E2.test(b(a, 2)) && d.j.push(a);
8670
+ 0 < d.o.length && U1(b(a, 4)) && !p(a, 6) && !k(a, 5) || (d.o.length != 0 || d.ca || U1(b(a, 4)) || p(a, 6)) && E2.test(b(a, 2)) && d.j.push(a);
8657
8671
  }
8658
- return X1(d, t), t = d2(d), 0 < t.length ? t : q1(d) ? t2(d) : d.s.toString();
8672
+ return d2(d, t), t = e2(d), 0 < t.length ? t : Q1(d) ? $2(d) : d.s.toString();
8659
8673
  }
8660
- return c1(d, t);
8674
+ return f1(d, t);
8661
8675
  }
8662
- function t2(d) {
8676
+ function $2(d) {
8663
8677
  var t = d.g.toString(), $ = t.length;
8664
8678
  if (0 < $) {
8665
- for (var s = "", r = 0; r < $; r++) s = n2(d, t.charAt(r));
8666
- return d.u ? c1(d, s) : d.s.toString();
8679
+ for (var s = "", r = 0; r < $; r++) s = r2(d, t.charAt(r));
8680
+ return d.u ? f1(d, s) : d.s.toString();
8667
8681
  }
8668
8682
  return d.h.toString();
8669
8683
  }
8670
- function e2(d) {
8684
+ function i2(d) {
8671
8685
  var t = d.g.toString(), $ = 0;
8672
8686
  if (p(d.l, 10) != 1) var s = !1;
8673
8687
  else s = d.g.toString(), s = s.charAt(0) == "1" && s.charAt(1) != "0" && s.charAt(1) != "1";
8674
- return s ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (s = new RegExp("^(?:" + p(d.l, 15) + ")"), s = t.match(s), s != null && s[0] != null && 0 < s[0].length && (d.ca = !0, $ = s[0].length, d.h.g(t.substring(0, $)))), B(d.g), d.g.g(t.substring($)), t.substring(0, $);
8688
+ return s ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : k(d.l, 15) && (s = new RegExp("^(?:" + p(d.l, 15) + ")"), s = t.match(s), s != null && s[0] != null && 0 < s[0].length && (d.ca = !0, $ = s[0].length, d.h.g(t.substring(0, $)))), O(d.g), d.g.g(t.substring($)), t.substring(0, $);
8675
8689
  }
8676
- function $2(d) {
8690
+ function n2(d) {
8677
8691
  var t = d.ba.toString(), $ = new RegExp("^(?:\\+|" + p(d.l, 11) + ")");
8678
- return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length, B(d.g), d.g.g(t.substring($)), B(d.h), d.h.g(t.substring(0, $)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8692
+ return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length, O(d.g), d.g.g(t.substring($)), O(d.h), d.h.g(t.substring(0, $)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8679
8693
  }
8680
- function i2(d) {
8694
+ function s2(d) {
8681
8695
  if (d.g.h.length == 0) return !1;
8682
- var t = new T(), $ = H1(d.g, t);
8683
- return $ == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = e1($), t == "001" ? d.l = j(d.ga, "" + $) : t != d.ka && (d.l = J1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
8696
+ var t = new E(), $ = W1(d.g, t);
8697
+ return $ == 0 ? !1 : (O(d.g), d.g.g(t.toString()), t = $1($), t == "001" ? d.l = j(d.ga, "" + $) : t != d.ka && (d.l = X1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
8684
8698
  }
8685
- function n2(d, t) {
8699
+ function r2(d, t) {
8686
8700
  var $ = d.v.toString();
8687
8701
  if (0 <= $.substring(d.$).search(d.fa)) {
8688
8702
  var s = $.search(d.fa);
8689
- return t = $.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = s, t.substring(0, d.$ + 1);
8703
+ return t = $.replace(d.fa, t), O(d.v), d.v.g(t), d.$ = s, t.substring(0, d.$ + 1);
8690
8704
  }
8691
8705
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
8692
8706
  }
8693
- const s2 = (d) => {
8707
+ const o2 = (d) => {
8694
8708
  const t = [];
8695
8709
  return d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || t.push("MOBILE"), d.includes("FIXED_LINE") || t.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && t.push("FIXED_LINE_OR_MOBILE"), d.concat(t);
8696
- }, _1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
8710
+ }, v1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
8697
8711
  e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
8698
8712
  try {
8699
8713
  const $ = d.replace(/[^+0-9]/g, ""), s = new A2(t);
@@ -8705,22 +8719,22 @@ const Z2 = (m) => {
8705
8719
  }
8706
8720
  }), e("intlTelInputUtilsTemp.formatNumber", (d, t, $) => {
8707
8721
  try {
8708
- const r = E.g(), a = Z(r, d, t);
8709
- var s = h1(r, a, -1);
8722
+ const r = D.g(), a = Y(r, d, t);
8723
+ var s = c1(r, a, -1);
8710
8724
  return s == 0 || s == 4 ? r.format(a, typeof $ > "u" ? 0 : $) : d;
8711
8725
  } catch {
8712
8726
  return d;
8713
8727
  }
8714
8728
  }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, $, s) => {
8715
8729
  try {
8716
- const y = E.g();
8730
+ const _ = D.g();
8717
8731
  d: {
8718
- var r = y;
8719
- if (a1(d)) {
8720
- var a = u1(j(r, d), $);
8732
+ var r = _;
8733
+ if (u1(d)) {
8734
+ var a = l1(j(r, d), $);
8721
8735
  try {
8722
- if (R(a, 6)) {
8723
- var u = p(a, 6), c = z1(r, u, d, !1);
8736
+ if (k(a, 6)) {
8737
+ var u = p(a, 6), c = Y1(r, u, d, !1);
8724
8738
  break d;
8725
8739
  }
8726
8740
  } catch {
@@ -8728,37 +8742,37 @@ const Z2 = (m) => {
8728
8742
  }
8729
8743
  c = null;
8730
8744
  }
8731
- return y.format(c, s ? 0 : t ? 2 : 1);
8745
+ return _.format(c, s ? 0 : t ? 2 : 1);
8732
8746
  } catch {
8733
8747
  return "";
8734
8748
  }
8735
8749
  }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
8736
8750
  try {
8737
- return p(Z(E.g(), d, t), 3);
8751
+ return p(Y(D.g(), d, t), 3);
8738
8752
  } catch {
8739
8753
  return "";
8740
8754
  }
8741
8755
  }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
8742
8756
  try {
8743
- const $ = E.g(), s = Z($, d, t);
8744
- return U1($, s);
8757
+ const $ = D.g(), s = Y($, d, t);
8758
+ return K1($, s);
8745
8759
  } catch {
8746
8760
  return -99;
8747
8761
  }
8748
8762
  }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
8749
8763
  if (!t) return 1;
8750
8764
  try {
8751
- const $ = E.g(), s = Z($, d, t);
8752
- return h1($, s, -1);
8765
+ const $ = D.g(), s = Y($, d, t);
8766
+ return c1($, s, -1);
8753
8767
  } catch ($) {
8754
8768
  return $.message === "Invalid country calling code" ? 1 : 3 >= d.length || $.message === "Phone number too short after IDD" || $.message === "The string supplied is too short to be a phone number" ? 2 : $.message === "The string supplied is too long to be a phone number" ? 3 : -99;
8755
8769
  }
8756
8770
  }), e("intlTelInputUtilsTemp.isValidNumber", (d, t, $) => {
8757
8771
  try {
8758
- const s = E.g(), r = Z(s, d, t), a = T2(s, r);
8772
+ const s = D.g(), r = Y(s, d, t), a = T2(s, r);
8759
8773
  if ($) {
8760
- const u = s2($).map((c) => _1[c]);
8761
- return a && u.includes(U1(s, r));
8774
+ const u = o2($).map((c) => v1[c]);
8775
+ return a && u.includes(K1(s, r));
8762
8776
  }
8763
8777
  return a;
8764
8778
  } catch {
@@ -8766,30 +8780,30 @@ const Z2 = (m) => {
8766
8780
  }
8767
8781
  }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, $) => {
8768
8782
  try {
8769
- const s = E.g(), r = Z(s, d, t);
8783
+ const s = D.g(), r = Y(s, d, t);
8770
8784
  if ($) {
8771
- const a = s2($);
8772
- for (let u of a) if (h1(s, r, _1[u]) === 0) return !0;
8785
+ const a = o2($);
8786
+ for (let u of a) if (c1(s, r, v1[u]) === 0) return !0;
8773
8787
  return !1;
8774
8788
  }
8775
- return h1(s, r, -1) === 0;
8789
+ return c1(s, r, -1) === 0;
8776
8790
  } catch {
8777
8791
  return !1;
8778
8792
  }
8779
8793
  }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
8780
8794
  try {
8781
- return p(Z(E.g(), d, t), 2).toString();
8795
+ return p(Y(D.g(), d, t), 2).toString();
8782
8796
  } catch {
8783
8797
  return "";
8784
8798
  }
8785
- }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", _1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8799
+ }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", v1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8786
8800
  })();
8787
- const h2 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, Y2 = h2.intlTelInputUtilsTemp;
8788
- delete h2.intlTelInputUtilsTemp;
8789
- C.utils = Y2;
8801
+ const f2 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, Y2 = f2.intlTelInputUtilsTemp;
8802
+ delete f2.intlTelInputUtilsTemp;
8803
+ m.utils = Y2;
8790
8804
  const q2 = {
8791
8805
  __name: "IntlTelInputWithUtils",
8792
- props: /* @__PURE__ */ r2({
8806
+ props: /* @__PURE__ */ a2({
8793
8807
  disabled: {
8794
8808
  type: Boolean,
8795
8809
  default: !1
@@ -8813,45 +8827,45 @@ const q2 = {
8813
8827
  },
8814
8828
  modelModifiers: {}
8815
8829
  }),
8816
- emits: /* @__PURE__ */ r2([
8830
+ emits: /* @__PURE__ */ a2([
8817
8831
  "changeNumber",
8818
8832
  "changeCountry",
8819
8833
  "changeValidity",
8820
8834
  "changeErrorCode"
8821
8835
  ], ["update:modelValue"]),
8822
- setup(m, { expose: e, emit: i }) {
8823
- const n = D2(m, "modelValue"), o = m, l = i, f = v1(), h = v1(), _ = v1(!1), v = () => h.value ? o.options.strictMode ? h.value.isValidNumberPrecise() : h.value.isValidNumber() : null, w = () => {
8824
- let S = v();
8825
- _.value !== S && (_.value = S, l("changeValidity", !!S), l(
8836
+ setup(y, { expose: e, emit: i }) {
8837
+ const n = D2(y, "modelValue"), o = y, l = i, f = S1(), h = S1(), C = S1(!1), I = () => h.value ? o.options.strictMode ? h.value.isValidNumberPrecise() : h.value.isValidNumber() : null, v = () => {
8838
+ let S = I();
8839
+ C.value !== S && (C.value = S, l("changeValidity", !!S), l(
8826
8840
  "changeErrorCode",
8827
8841
  S ? null : h.value.getValidationError()
8828
8842
  ));
8829
8843
  }, g = () => {
8830
8844
  var S;
8831
- l("changeNumber", ((S = h.value) == null ? void 0 : S.getNumber()) ?? ""), w();
8832
- }, I = () => {
8845
+ l("changeNumber", ((S = h.value) == null ? void 0 : S.getNumber()) ?? ""), v();
8846
+ }, w = () => {
8833
8847
  var S;
8834
- l("changeCountry", ((S = h.value) == null ? void 0 : S.getSelectedCountryData().iso2) ?? ""), g(), w();
8848
+ l("changeCountry", ((S = h.value) == null ? void 0 : S.getSelectedCountryData().iso2) ?? ""), g(), v();
8835
8849
  };
8836
8850
  return P2(() => {
8837
- f.value && (h.value = C(f.value, o.options), o.value && h.value.setNumber(o.value), o.disabled && h.value.setDisabled(o.disabled), _.value = v());
8851
+ f.value && (h.value = m(f.value, o.options), o.value && h.value.setNumber(o.value), o.disabled && h.value.setDisabled(o.disabled), C.value = I());
8838
8852
  }), x2(
8839
8853
  () => o.disabled,
8840
8854
  (S) => {
8841
- var M;
8842
- return (M = h.value) == null ? void 0 : M.setDisabled(S);
8855
+ var A;
8856
+ return (A = h.value) == null ? void 0 : A.setDisabled(S);
8843
8857
  }
8844
8858
  ), R2(() => {
8845
8859
  var S;
8846
8860
  return (S = h.value) == null ? void 0 : S.destroy();
8847
- }), e({ instance: h, input: f }), (S, M) => B2((O2(), k2("input", G2({
8861
+ }), e({ instance: h, input: f }), (S, A) => B2((O2(), k2("input", G2({
8848
8862
  ref_key: "input",
8849
8863
  ref: f,
8850
- "onUpdate:modelValue": M[0] || (M[0] = (O) => n.value = O),
8864
+ "onUpdate:modelValue": A[0] || (A[0] = (G) => n.value = G),
8851
8865
  type: "tel",
8852
- onCountrychange: I,
8866
+ onCountrychange: w,
8853
8867
  onInput: g
8854
- }, m.inputProps), null, 16)), [
8868
+ }, y.inputProps), null, 16)), [
8855
8869
  [
8856
8870
  F2,
8857
8871
  n.value,