mui-tel-input 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mui-tel-input.es.js +1230 -1262
- package/dist/mui-tel-input.umd.js +18 -18
- package/package.json +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.types.d.ts +0 -33
- package/dist/shared/constants/continents.d.ts +0 -7
- package/dist/shared/constants/countries.d.ts +0 -4
- package/dist/shared/constants/flags.d.ts +0 -6
- package/dist/shared/constants/lang.d.ts +0 -1
- package/dist/shared/helpers/array.d.ts +0 -2
- package/dist/shared/helpers/country.d.ts +0 -18
- package/dist/shared/helpers/dom.d.ts +0 -1
- package/dist/shared/helpers/intl.d.ts +0 -1
- package/dist/shared/helpers/log.d.ts +0 -1
- package/dist/shared/helpers/object.d.ts +0 -2
- package/dist/shared/helpers/ref.d.ts +0 -2
- package/dist/shared/helpers/string.d.ts +0 -1
- package/dist/shared/hooks/useMissmatchProps.d.ts +0 -2
- package/dist/shared/hooks/usePhoneDigits.d.ts +0 -33
- package/dist/vite-env.d.ts +0 -1
package/dist/mui-tel-input.es.js
CHANGED
|
@@ -2,18 +2,18 @@ import p from "react";
|
|
|
2
2
|
import { styled as k } from "@mui/material/styles";
|
|
3
3
|
import { jsxs as M, jsx as v, Fragment as Ee } from "react/jsx-runtime";
|
|
4
4
|
import Mt from "@mui/material/IconButton";
|
|
5
|
-
import { grey as
|
|
5
|
+
import { grey as lr } from "@mui/material/colors";
|
|
6
6
|
import Fe from "@mui/material/Typography";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
7
|
+
import fr from "@mui/material/MenuItem";
|
|
8
|
+
import sr from "@mui/material/ListItemIcon";
|
|
9
|
+
import cr from "@mui/material/ListItemText";
|
|
10
|
+
import hr from "@mui/material/Menu";
|
|
11
|
+
import gr from "@mui/material/InputAdornment";
|
|
12
|
+
import yr from "@mui/material/TextField";
|
|
13
|
+
const mr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAeCAYAAABXNvynAAAMeGlDQ1BEaXNwbGF5AABIiZVXd1ST9xp+vpGEhBFGQEBG2EsQ2UNmmIKCbBBHSAIEQoghQcU9ahWtWxw40bqLViuodaJWrRbBbR1FLSqVWtQ6Ubl/JKD13nvuue85ye89z+95n3d838nJC3DfCBUKGWkIlMlVyrT4aH5Obh6f9RAU2ODAAG5CUYUiKjU1GQB6z8+MAF5dAwEAlz2FCoUM/58ZiyUVIoDIB1AgrhCVAcRxgF4jUihVADMfgMM4lUIFMKcB4ClzcvMA5jIAvCKNvw0Ar0DjHwbAU2akCQBmC6CjJxQqiwCD2wD4laIiFWDwHoC3XCyVA9wBAMJFxUIxwJUBGFBWVi4GuCsBuFaKihQA9ziAoILPNIv+oV/Qpy8UFvX5mr4AADox0gqFTDjh/xzN/7Yymbo3hzMAvWJlQhoAHkDcKC1PSgOgBxCd8oJhKQCMAeKNVKyZO0ByitUJmRo+aSWqEOQBMANIb7EwJgmAFUDGyWXDkrV4QaE0LhGAIUCOl6oSMwCYA+QcSUVsupazQVmeps1FNhQqBVFa/KxQCWhz3VWXZkZp9Z8XSxK1+pRBVXFGNgAOQDlWSrOGATAAKK+K0vQkLWdwVbFgWC9HqU7LBOAIUGkSeXy0Rp+qLFTGpWn51WUVvf1SG4qlicO0/l5VcUaCZj7UKZEwNl3TC9UikUdl9upIKnKSe3sRS2JiNb1TjyXyzHStzhuFKjpNE0tzFLJULZ+2l8ji0wDYA7RfRWW6NpbOUikztM+ILlSoUjM0ddJVJcIhqZp66EVIhgAx4EMNPgpQjhJImzsbO8HX3sRBCCWKIIGnFumNyIYQSsghRDqq8CfkkKCiLy4aQighQSXk+NCHar49UQghlKiEBBUoxUMoUYYkyCCBGkpIIO/LloXfoYT037ILwYcI5ZChHEpI/wvei35CoiBAshZR92bkc3uZzFhmDDOBGcd0oy3pcDqUTqbD6Ug6nPahg+jg3j4+8RkPGa2M+4yrjDbGzdHSGcovqhyKNqi1M5Sg4PNZ0M60D+1PR9NhdDgdDD5tRlvCk/ajg+goOoIOpf3pYAi0dauh/GKGX3Tw2dPQ8tjebJLdjx3Jdv0y0sDdwL9PRQL5P+ajqbWgb96Cvpsv8ws+m74Y5Uj6kknNofZRZ6gT1DnqMNUIPnWMOkBdoI5QjZ+9Xb9DiaK+bGmQQI5SyCD9t3xCbU4lJKjw3und4f1ec6eSjFcBgKBcMUEpLSpW8aMUCpmEnygXeQ3g+3j7+AA5uXl8zc/Xi+EgABBmFz5hM38Dwo719PT8+Akbcgz4PhDgHPyEuQYBRrrA2YMitbJSg9EAwAAHXPBgARs4wBWe8EEAQhGJWAxBCjKQi1EQoRhlUGIcJmE6ZmMeFmE5VmM9NmEbvsNeNOIwTuAnnEcLruIW2tCOJ+jCK3QTBMEi9AkTwoKwJZwID8KHCCLCiVgimUgjcokxRBEhJ9TEJGImMY9YQqwmNhLbie+Jg8QJ4hzRStwk7hEdxHPiHUmReiSPtCadyYFkEBlFJpEZ5EiyiBxLVpGzyAXkSrKO3EU2kCfI8+RVso18Qr6kQOlSZpQd5UkFUQIqhcqjCiklNYWqpmqoOqqeOkSdoS5TbVQn9ZZm0iY0n/akQ+kEOpMW0WPpKfR8ejW9jW6gT9GX6Xt0F/2Roc+wYngwQhiJjBxGEWMcYzajhrGFsZ9xmnGV0c54xWQyzZguzEBmAjOXWcKcyJzPXMvczTzObGU+YL5ksVgWLA9WGCuFJWSpWLNZq1i7WMdYl1jtrDc6ujq2Oj46cTp5OnKdGTo1Ojt0jupc0nmk0802ZDuxQ9gpbDF7AnshezP7EPsiu53dzTHiuHDCOBmcEs50zkpOPec05zbnha6urr1usO5wXanuNN2Vunt0z+re032rZ6znrifQy9dT6y3Q26p3XO+m3gt9fX1n/Uj9PH2V/gL97fon9e/qvzEwMfAySDQQG0w1qDVoMLhk8JTL5jpxo7ijuFXcGu4+7kVupyHb0NlQYCg0nGJYa3jQ8LrhSyMTo0FGKUZlRvONdhidM3pszDJ2No41FhvPMt5kfNL4gQll4mAiMBGZzDTZbHLapJ3H5LnwEnklvHm873jNvC5TY1M/0yzT8aa1pkdM28woM2ezRDOZ2UKzvWbXzN71s+4X1U/Sb26/+n6X+r02728eaS4xrzbfbX7V/J0F3yLWotRisUWjxR1L2tLdcrjlOMt1lqctO/vz+of2F/Wv7r+3/69WpJW7VZrVRKtNVhesXlrbWMdbK6xXWZ+07rQxs4m0KbFZZnPUpsPWxDbcVmq7zPaY7R98U34UX8ZfyT/F77KzskuwU9tttGu267Z3sc+0n2G/2/6OA8chyKHQYZlDk0OXo63jUMdJjjsdf3ViOwU5FTutcDrj9NrZxTnb+WvnRufHLuYuiS5VLjtdbrvqu0a4jnWtc73ixnQLcit1W+vW4k66+7sXu9e6X/QgPQI8pB5rPVoHMAYED5APqBtw3VPPM8qz0nOn5z0vM69krxlejV5PBzoOzBu4eOCZgR+9/b1l3pu9bw0yHjRk0IxBhwY993H3EfnU+lzx1feN853qe8D3mZ+Hn8Rvnd8NfxP/of5f+zf5fwgIDFAG1Ad0BDoGjglcE3g9iBeUGjQ/6GwwIzg6eGrw4eC3IQEhqpC9IX+FeoaWhu4IfTzYZbBk8ObBD8Lsw4RhG8PawvnhY8I3hLdF2EUII+oi7kc6RIojt0Q+inKLKonaFfU02jtaGb0/+rUgRDBZcDyGiomPqY5pjjWOzYxdHXs3zj6uKG5nXFe8f/zE+OMJjISkhMUJ1xOtE0WJ2xO7hgQOmTzkVJJeUnrS6qT7ye7JyuRDQ8mhQ4YuHXp7mNMw+bDGFKQkpixNuZPqkjo29cfhzOGpw2uHP0wblDYp7Uy6Sfro9B3przKiMxZm3Mp0zVRnNmVxs/Kztme9zo7JXpLdljMwZ3LO+VzLXGnugTxWXlbelryXI2JHLB/Rnu+fPzv/2kiXkeNHnhtlOUo26sho7mjh6H1jGGOyx+wY816YIqwTvixILFhT0CUSiFaInogjxcvEHZIwyRLJo8KwwiWFj4vCipYWdRRHFNcUd0oF0tXSZyUJJetLXpemlG4t7ZFly3aX6ZSNKTsoN5aXyk+V25SPL29VeChmK9rGhoxdPrZLmaTcUkFUjKw4oOKpFKoLalf1V+p7leGVtZVvxmWN2zfeaLx8/IUJ7hPmTnhUFVf17UR6omhi0yS7SdMn3ZscNXnjFGJKwZSmqQ5TZ01tnxY/bdt0zvTS6b/M8J6xZMbfM7NnHpplPWvarAdfxX+1c7bBbOXs61+Hfr1+Dj1HOqd5ru/cVXM/Vourf57nPa9m3vv5ovk/fzPom5Xf9CwoXNC8MGDhukXMRfJF1xZHLN62xGhJ1ZIHS4cubVjGX1a97O/lo5efq/GrWb+Cs0K9om1l8soDqxxXLVr1fnXx6qu10bW711itmbvm9Vrx2kvrItfVr7deP2/9uw3SDTc2xm9sqHOuq9nE3FS56eHmrM1nvg36dvsWyy3ztnzYKt/ati1t26ntgdu377DasXAnuVO9s2NX/q6W72K+O1DvWb9xt9nueXuwR73nj+/HfH9tb9Lepn1B++p/cPphzX6T/dUNRMOEhq7G4sa2A7kHWg8OOdh0KPTQ/h+9ftx62O5w7RHTIwuPco7OOtpzrOrYy+OK450nik48aBrddOtkzskrp4afaj6ddPrsT3E/nTwTdebY2bCzh8+FnDv4c9DPjecDzjdc8L+w/xf/X/Y3BzQ3XAy8eKAluOVQ6+DWo5ciLp24HHP5pyuJV85fHXa19VrmtRvX86+33RDfeHxTdvPZr5W/dt+adptxu/qO4Z2au1Z3635z+213W0DbkXsx9y7cT79/64HowZPfK35/3z7rof7Dmke2j7Y/9nl8uCOuo+WPEX+0P1E86e6c/afRn2ueuj794a/Ivy505XS1P1M+63k+/4XFi61/+/3d9DL15d1XZa+6X1e/sXiz7W3Q2zPvst896h73nvV+5Qe3D4c+Jn283VPW06MQKoUAAAoAWVgIPN8K6OcCJi0AZ4RmFwQAEJr9FdD8B/nPvmZfBAAEAPU8YHgnILgO7NkMOBcC3HwgVR/ICAbp69v30VpFoa+PRksvGmDc7el54QywlgIfFvX0dNf19HzYBFC3geNyzQ4KAExDYEPih4KyAvwH0+ynn/X45QmQvr5++PL8F6mCkLerjl90AAAACXBIWXMAAAsTAAALEwEAmpwYAAAE92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjItMDMtMTJUMTQ6MTY6NTArMDE6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIyLTAzLTIwVDEwOjIyOjUxKzAxOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIyLTAzLTIwVDEwOjIyOjUxKzAxOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpmZDY2ZDIzMC1mMDk3LTRhMjUtODkxNi1mN2YxMmQ2NTRhNjkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ZmQ2NmQyMzAtZjA5Ny00YTI1LTg5MTYtZjdmMTJkNjU0YTY5IiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZmQ2NmQyMzAtZjA5Ny00YTI1LTg5MTYtZjdmMTJkNjU0YTY5Ij4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpmZDY2ZDIzMC1mMDk3LTRhMjUtODkxNi1mN2YxMmQ2NTRhNjkiIHN0RXZ0OndoZW49IjIwMjItMDMtMTJUMTQ6MTY6NTArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChNYWNpbnRvc2gpIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjHOcacAAAMOSURBVFiFzZixa1NBHMe/FxOIryWNNUkjJCYQkhJKU2oXsdJowU7t6KZroYNDB7eOgn+Dg0t10MmhrhUUEelm2hDaUmibQBtbQxuaI5JHn4O8cHe59/LuRY3fJbnj97vf5373vSOEzC8t4+W9mcUNzfcc/6mSw9H38U9rzx4d1ndJ9e27xa3Q0It+QznR1MbHjEfsbL1Bu35XjZflqtYBgPLMwgpZX/9gWEbYqN6gCAxofzVPjKWU1jyU0pos0MnYSddFBQa0rh1nY1lpmjbskSWJgbKOpBJJgy3OFmTjZcedSiQNuxyrDVBKaxxwt6R6g6LeoEglksZ4bozcvnO3PW91zOa8uVY6k8Z4boykM2lpvKxpLIenI8NmAwAwNTmB8dwYAQDN78Pcgznp5mQQU5MTiMdiAIB4LIbpfL4jT1bTnOMsIR6t1edZ7Zy7pCa06E0xbzqfb8OaOt4/4NbqVptSWlN+Jczjn529z83TZgtfv3zm7MHChgODXPxmoWjsHewT1ZeGFL5tXSplADg5/U7CoYhhWsOU3tJRKm1zDYgmE0SELVcq2N3ZRTgUUX5SXQGzsoNOZTJE8/s6YEVbqcj20rEyRjxENr9ZKHLFvT4vUpkMiSYTfxwWkACzYOx3Ur20LLRZKBp6S2+PNb+vw7PdYMWGWDWoZ0uwkllA5ute5NgSweEhaed7FbuubCxKCixLYo9TZg9Zd4HfnhYvptW6srHYHCmw6sXIZkc5WL2lgzZbXIwI7fSUxOY4toSVstlR4vV5ublSadvY29nhLiLAQ9tdYjvZAlu9GFawektHuVLhwGWd7uZTu+6Tw3LZ1U7F3wUAOFhWN0aiEE/BKrabXFlCBRYAjqrHEO0Rj8XgDwSVaysDXw+NdMw56ZYM+tpVv2p5deAfp1Wc1C/aY5WjZaFps4Wj6rFqefce9geCaNbP3KT2lOv6WXNbsNfcnt/hfy1POBJd7TeEU50fVlevPB3wFH/mbj3pN4wTRdbePCTzS8t4fTOQLs8srBiD/sf9hpKJXDRfmX8G/gKUwMkA3my/NwAAAABJRU5ErkJggg==", Rt = {
|
|
14
14
|
AC: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 513 342'%3e%3cpath fill='%230052B4' d='M0 0h513v342H0z'/%3e%3cpath fill='white' d='M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z'/%3e%3cpath fill='%2329DBFF' d='M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9'/%3e%3cpath fill='white' d='M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4'/%3e%3cpath fill='%2329DBFF' d='M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53'/%3e%3cpath fill='white' d='M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1'/%3e%3cpath fill='%2329DBFF' d='M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5'/%3e%3cpath fill='%235CC85C' d='M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z'/%3e%3cellipse transform='rotate(-82.3 291.431 225.686)' fill='%23F7A226' cx='291.4' cy='225.7' rx='48.7' ry='15.7'/%3e%3cellipse transform='rotate(-68.099 303.087 164.67)' fill='%23DDC7AB' cx='303.1' cy='164.7' rx='11.7' ry='7.2'/%3e%3cellipse transform='rotate(-81.738 291.697 271.697)' fill='%23DDC7AB' cx='291.7' cy='271.7' rx='11.4' ry='3.3'/%3e%3cellipse transform='matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)' fill='%23DDC7AB' cx='299.6' cy='269.4' rx='3.3' ry='11'/%3e%3cellipse transform='rotate(-21.518 314.54 201.06)' fill='%23DDC7AB' cx='314.5' cy='201.1' rx='4.1' ry='13.7'/%3e%3cellipse transform='rotate(-21.518 317.511 178.077)' fill='%23DDC7AB' cx='317.5' cy='178.1' rx='13.7' ry='4.1'/%3e%3cellipse transform='rotate(-7.7 473.781 225.857)' fill='%23F7A226' cx='473.6' cy='225.9' rx='15.7' ry='48.7'/%3e%3cellipse transform='rotate(-21.901 462.057 164.866)' fill='%23DDC7AB' cx='462' cy='164.9' rx='7.2' ry='11.7'/%3e%3cellipse transform='rotate(-8.27 473.27 271.908)' fill='%23DDC7AB' cx='473.4' cy='271.9' rx='3.3' ry='11.4'/%3e%3cellipse transform='matrix(.05353 -.9986 .9986 .05353 171.34 719.998)' fill='%23DDC7AB' cx='465.5' cy='269.6' rx='11' ry='3.3'/%3e%3cellipse transform='rotate(-68.482 450.552 201.247)' fill='%23DDC7AB' cx='450.6' cy='201.2' rx='13.7' ry='4.1'/%3e%3cellipse transform='rotate(-68.482 447.58 178.265)' fill='%23DDC7AB' cx='447.6' cy='178.3' rx='4.1' ry='13.7'/%3e%3cpath fill='%23B0C6CC' d='M373.3 130.3L356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z'/%3e%3cpath fill='white' d='M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z'/%3e%3cpath fill='%23D80027' d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath fill='%23D80027' d='M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6l-77.8-53.3h22.6l62.5 42.3v11z'/%3e%3c/svg%3e",
|
|
15
15
|
TA: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 341.3'%3e%3cpath fill='%230052B4' d='M0 0h512v341.3H0z'/%3e%3cpath fill='white' d='M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z'/%3e%3cg fill='%23D80027'%3e%3cpath d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath d='M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z'/%3e%3c/g%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath d='M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z' fill='%23D80027'/%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath d='M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z' fill='%23D80027'/%3e%3cpath fill='%2329DBFF' d='M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z'/%3e%3cpath fill='white' d='M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9'/%3e%3cpath fill='%2329DBFF' d='M385.4 251.7l-22.9-43h45.8z'/%3e%3cpath fill='white' d='M385.4 165.8l-22.9 42.9h45.8z'/%3e%3cellipse fill='%23FFBE57' cx='474.8' cy='236.8' rx='16.8' ry='43.3'/%3e%3cellipse fill='%23FFBE57' cx='295.3' cy='236.8' rx='16.8' ry='43.3'/%3e%3cpath fill='white' d='M385.4 31.5l-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z'/%3e%3cellipse fill='%23A5A5A5' cx='386.3' cy='104.3' rx='34.3' ry='23.3'/%3e%3c/svg%3e"
|
|
16
|
-
},
|
|
16
|
+
}, lt = {
|
|
17
17
|
Flag: k("span")(() => ({
|
|
18
18
|
display: "flex",
|
|
19
19
|
alignItems: "center"
|
|
@@ -31,45 +31,40 @@ const Nn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAeCAYAAABXNvynAA
|
|
|
31
31
|
position: "absolute",
|
|
32
32
|
whiteSpace: "nowrap"
|
|
33
33
|
}))
|
|
34
|
-
},
|
|
34
|
+
}, pr = (t) => t ? t === "TA" || t === "AC" ? {
|
|
35
35
|
TA: Rt.TA,
|
|
36
36
|
AC: Rt.AC
|
|
37
|
-
}[t] : "" :
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return /* @__PURE__ */ M(
|
|
44
|
-
"data-testid":
|
|
37
|
+
}[t] : "" : mr, pt = ({
|
|
38
|
+
size: t = "small",
|
|
39
|
+
isoCode: r,
|
|
40
|
+
countryName: e = ""
|
|
41
|
+
}) => {
|
|
42
|
+
const n = r ? r.toLowerCase() : "", d = pr(r), i = t === "small" ? 40 : 80;
|
|
43
|
+
return /* @__PURE__ */ M(lt.Flag, {
|
|
44
|
+
"data-testid": r,
|
|
45
45
|
className: "MuiTelInput-Flag",
|
|
46
|
-
children: [
|
|
47
|
-
src:
|
|
46
|
+
children: [d ? /* @__PURE__ */ v("img", {
|
|
47
|
+
src: d,
|
|
48
48
|
alt: e || "unknown",
|
|
49
|
-
width:
|
|
50
|
-
}) : /* @__PURE__ */ M(
|
|
49
|
+
width: i / 2
|
|
50
|
+
}) : /* @__PURE__ */ M(lt.Picture, {
|
|
51
51
|
children: [/* @__PURE__ */ v("source", {
|
|
52
52
|
type: "image/webp",
|
|
53
|
-
srcSet: `https://flagcdn.com/w${
|
|
53
|
+
srcSet: `https://flagcdn.com/w${i}/${n}.webp`
|
|
54
54
|
}), /* @__PURE__ */ v("source", {
|
|
55
55
|
type: "image/png",
|
|
56
|
-
srcSet: `https://flagcdn.com/w${
|
|
56
|
+
srcSet: `https://flagcdn.com/w${i}/${n}.png`
|
|
57
57
|
}), /* @__PURE__ */ v("img", {
|
|
58
|
-
src: `https://flagcdn.com/w${
|
|
59
|
-
width:
|
|
58
|
+
src: `https://flagcdn.com/w${i}/${n}.png`,
|
|
59
|
+
width: i / 2,
|
|
60
60
|
alt: e || "unknown",
|
|
61
61
|
loading: "lazy"
|
|
62
62
|
})]
|
|
63
|
-
}),
|
|
64
|
-
children:
|
|
63
|
+
}), r ? /* @__PURE__ */ v(lt.Span, {
|
|
64
|
+
children: r
|
|
65
65
|
}) : null]
|
|
66
66
|
});
|
|
67
|
-
}
|
|
68
|
-
K.defaultProps = {
|
|
69
|
-
countryName: "",
|
|
70
|
-
size: "small"
|
|
71
|
-
};
|
|
72
|
-
const Tt = {
|
|
67
|
+
}, Tt = {
|
|
73
68
|
EU: [
|
|
74
69
|
"AD",
|
|
75
70
|
"AL",
|
|
@@ -326,342 +321,318 @@ const Tt = {
|
|
|
326
321
|
"ZW"
|
|
327
322
|
]
|
|
328
323
|
}, Et = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([457]\\d{6})$", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2457]\\d{6})$", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "1|([267]\\d{6})$", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "0|(183[12])", 0, 0, 0, [["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}", [9]], ["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|22"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[047]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:[25689]\\d|40)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([3-8]\\d{6})$", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-79]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "(?:[2-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "[189]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "10(?:10|9[56])|2[0-57-9](?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "0|(1(?:[12]\\d|79)\\d\\d)", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0(4(?:[14]4|56)|[579])?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["5"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[189]"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-246-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94|80\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "0|([25-9]\\d{5})$", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d\\d|606)\\d{5}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "1|([3-9]\\d{6})$", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-489]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-489]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([25-8]\\d{5})$", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], 0, 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([0-24-8]\\d{5})$", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"]], "0"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|(?:[235-8]\\d|99)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[013-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "0|(1001)"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{5})(\\d{4})", "$1-$2", ["5(?:29|38)", "5(?:29[1289]|389)", "529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-489]|3[5-9]|9)|892", "5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"], ["80\\d{7}"], ["89\\d{7}"], 0, 0, 0, 0, ["592(?:4[0-2]|93)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "0|([24-9]\\d{6})$", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "670$1", 0, "670"], MQ: ["596", "00", "(?:69|80)\\d{7}|(?:59|97)6\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "1|([34]\\d{6})$", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[3467]|9[1-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[04]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[489]|59"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-7]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[47]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-579]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|[89]0", "50(?:[0367]|88)|[89]0"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[59]|80"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7|86"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "(?:[45]|80\\d\\d)\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-6])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}", [7, 8, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["2[126]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]]]], RE: ["262", "00", "976\\d{6}|(?:26|[68]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, "26[23]|69|[89]"], RO: ["40", "00", "(?:[2378]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[237-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-6]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|[57]9)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3478]|64|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|(5\\d{6})$", "721$1", 0, "721"], SY: ["963", "00", "[1-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "1|([2-479]\\d{6})$", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:00|[1-57-9]\\d)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[34]7|91[78]"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3[1-5]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "[1-6]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["6"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|616)", "5(?:[0-59]|6161)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-46-8]\\d{6})$", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["505(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|4[46]))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [7, 8, 10, 13], [["(\\d{3})(\\d{4})", "$1 $2", ["405|8|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "810", "(?:33|55|[679]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[35-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-578]\\d{6})$", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[69]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3578]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[23]"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7[24-68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "80\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, "269|63"], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "[0-36-9]\\d{8}", [9], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-36-9]"]]], 0, 0, 0, 0, 0, 0, [0, ["[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|(?:285|50\\d)\\d{9}|(?:[19]\\d|49)\\d{6}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["4"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[19]"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["34[57]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, 0, 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]], 883: ["883", 0, "2\\d{9}(?:\\d{2})?|51\\d{7}|(?:370|51\\d)\\d{9}", [9, 10, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
329
|
-
function
|
|
324
|
+
function vr(t) {
|
|
330
325
|
return typeof t == "object" && !Array.isArray(t) && t !== null;
|
|
331
326
|
}
|
|
332
|
-
const
|
|
333
|
-
function E(t,
|
|
327
|
+
const br = Object.keys, j = Et.countries, Nr = br(j), Cr = "US";
|
|
328
|
+
function E(t, r) {
|
|
334
329
|
const e = Array.isArray(t);
|
|
335
|
-
return
|
|
330
|
+
return r ? e && t.length > 0 : e;
|
|
336
331
|
}
|
|
337
|
-
function
|
|
338
|
-
return t.find((e) =>
|
|
332
|
+
function Pr(t, r) {
|
|
333
|
+
return t.find((e) => r.includes(e)) || null;
|
|
339
334
|
}
|
|
340
|
-
function
|
|
335
|
+
function K(t) {
|
|
341
336
|
return j[t]?.[0];
|
|
342
337
|
}
|
|
343
|
-
function
|
|
344
|
-
return t ||
|
|
338
|
+
function Ar(t) {
|
|
339
|
+
return t || Cr;
|
|
345
340
|
}
|
|
346
|
-
function _t(t,
|
|
347
|
-
return [...new Set(
|
|
341
|
+
function _t(t, r) {
|
|
342
|
+
return [...new Set(r.concat(t))];
|
|
348
343
|
}
|
|
349
|
-
function
|
|
350
|
-
return t.flatMap((
|
|
344
|
+
function Ir(t) {
|
|
345
|
+
return t.flatMap((r) => Tt[r]);
|
|
351
346
|
}
|
|
352
|
-
function
|
|
353
|
-
return t.filter((e) =>
|
|
347
|
+
function xr(t, r) {
|
|
348
|
+
return t.filter((e) => r.includes(e));
|
|
354
349
|
}
|
|
355
|
-
function
|
|
356
|
-
return E(
|
|
350
|
+
function Sr(t, r) {
|
|
351
|
+
return E(r, !0) ? t.filter((e) => !r.includes(e)) : t;
|
|
357
352
|
}
|
|
358
|
-
function
|
|
359
|
-
const { onlyCountries: e, excludedCountries:
|
|
353
|
+
function Or(t, r) {
|
|
354
|
+
const { onlyCountries: e, excludedCountries: n, continents: d, preferredCountries: i } = r;
|
|
360
355
|
if (E(e, !0)) {
|
|
361
|
-
const u =
|
|
356
|
+
const u = xr(t, e);
|
|
362
357
|
return E(i, !0) ? _t(u, i) : u;
|
|
363
358
|
}
|
|
364
|
-
const a = E(d, !0) ?
|
|
365
|
-
return E(
|
|
359
|
+
const a = E(d, !0) ? Ir(d) : t, o = E(i, !0) ? _t(a, i) : a;
|
|
360
|
+
return E(n, !0) ? Sr(o, n) : o;
|
|
366
361
|
}
|
|
367
|
-
function
|
|
368
|
-
return t.some((e) => Tt[e].includes(
|
|
362
|
+
function Tr(t, r) {
|
|
363
|
+
return t.some((e) => Tt[e].includes(r));
|
|
369
364
|
}
|
|
370
|
-
function
|
|
371
|
-
return [...t].sort((e,
|
|
372
|
-
const d =
|
|
365
|
+
function Er(t, r) {
|
|
366
|
+
return [...t].sort((e, n) => {
|
|
367
|
+
const d = r.of(e), i = r.of(n);
|
|
373
368
|
return d.localeCompare(i);
|
|
374
369
|
});
|
|
375
370
|
}
|
|
376
|
-
const
|
|
371
|
+
const Fr = {
|
|
377
372
|
CallingCodeSplitted: k(Fe)({
|
|
378
|
-
borderRight: `1px solid ${
|
|
373
|
+
borderRight: `1px solid ${lr[300]}`,
|
|
379
374
|
paddingRight: 10,
|
|
380
375
|
cursor: "default",
|
|
381
376
|
pointerEvents: "none"
|
|
382
377
|
})
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
we.defaultProps = {
|
|
427
|
-
disableDropdown: !1,
|
|
428
|
-
forceCallingCode: !1,
|
|
429
|
-
flagSize: "small"
|
|
430
|
-
};
|
|
431
|
-
const Lt = {
|
|
432
|
-
ListItemIcon: k(yn)({
|
|
378
|
+
}, wr = ({
|
|
379
|
+
disableDropdown: t = !1,
|
|
380
|
+
forceCallingCode: r = !1,
|
|
381
|
+
flagSize: e = "small",
|
|
382
|
+
isFlagsMenuOpened: n = !1,
|
|
383
|
+
isoCode: d,
|
|
384
|
+
...i
|
|
385
|
+
}) => /* @__PURE__ */ M(Ee, {
|
|
386
|
+
children: [t ? /* @__PURE__ */ v(Mt, {
|
|
387
|
+
tabIndex: -1,
|
|
388
|
+
className: "MuiTelInput-IconButton",
|
|
389
|
+
role: "",
|
|
390
|
+
disableRipple: !0,
|
|
391
|
+
sx: {
|
|
392
|
+
pointerEvents: "none",
|
|
393
|
+
aspectRatio: "1 / 1"
|
|
394
|
+
},
|
|
395
|
+
component: "span",
|
|
396
|
+
children: /* @__PURE__ */ v(pt, {
|
|
397
|
+
size: e,
|
|
398
|
+
isoCode: d
|
|
399
|
+
})
|
|
400
|
+
}) : /* @__PURE__ */ v(Mt, {
|
|
401
|
+
...i,
|
|
402
|
+
"aria-label": "Select country",
|
|
403
|
+
className: "MuiTelInput-IconButton",
|
|
404
|
+
"aria-haspopup": "listbox",
|
|
405
|
+
sx: {
|
|
406
|
+
aspectRatio: "1 / 1"
|
|
407
|
+
},
|
|
408
|
+
"aria-controls": n ? "select-country" : void 0,
|
|
409
|
+
"aria-expanded": n ? "true" : "false",
|
|
410
|
+
children: /* @__PURE__ */ v(pt, {
|
|
411
|
+
size: e,
|
|
412
|
+
isoCode: d
|
|
413
|
+
})
|
|
414
|
+
}), r && d ? /* @__PURE__ */ M(Fr.CallingCodeSplitted, {
|
|
415
|
+
children: ["+", K(d)]
|
|
416
|
+
}) : null]
|
|
417
|
+
}), Lt = {
|
|
418
|
+
ListItemIcon: k(sr)({
|
|
433
419
|
marginRight: "10px"
|
|
434
420
|
}),
|
|
435
|
-
ListItemText: k(
|
|
421
|
+
ListItemText: k(cr)({
|
|
436
422
|
marginRight: "10px"
|
|
437
423
|
})
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
className: "MuiTelInput-
|
|
454
|
-
children:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
})]
|
|
470
|
-
});
|
|
471
|
-
};
|
|
472
|
-
De.defaultProps = {
|
|
473
|
-
flagSize: "small"
|
|
474
|
-
};
|
|
475
|
-
const _n = p.memo(De), vt = "en";
|
|
424
|
+
}, Dr = ({
|
|
425
|
+
isoCode: t,
|
|
426
|
+
onSelectCountry: r,
|
|
427
|
+
countryName: e,
|
|
428
|
+
flagSize: n = "small",
|
|
429
|
+
...d
|
|
430
|
+
}) => /* @__PURE__ */ M(fr, {
|
|
431
|
+
...d,
|
|
432
|
+
onClick: (a) => {
|
|
433
|
+
a.preventDefault(), r(t);
|
|
434
|
+
},
|
|
435
|
+
role: "option",
|
|
436
|
+
"data-testid": `option-${t}`,
|
|
437
|
+
className: "MuiTelInput-MenuItem",
|
|
438
|
+
children: [/* @__PURE__ */ v(Lt.ListItemIcon, {
|
|
439
|
+
className: "MuiTelInput-ListItemIcon-flag",
|
|
440
|
+
children: /* @__PURE__ */ v(pt, {
|
|
441
|
+
size: n,
|
|
442
|
+
isoCode: t,
|
|
443
|
+
countryName: e
|
|
444
|
+
})
|
|
445
|
+
}), /* @__PURE__ */ v(Lt.ListItemText, {
|
|
446
|
+
className: "MuiTelInput-ListItemText-country",
|
|
447
|
+
children: e
|
|
448
|
+
}), /* @__PURE__ */ M(Fe, {
|
|
449
|
+
variant: "body2",
|
|
450
|
+
color: "text.secondary",
|
|
451
|
+
className: "MuiTelInput-Typography-calling-code",
|
|
452
|
+
children: ["+", j[t]?.[0]]
|
|
453
|
+
})]
|
|
454
|
+
}), Mr = p.memo(Dr), vt = "en";
|
|
476
455
|
function L(...t) {
|
|
477
456
|
process.env.NODE_ENV !== "production" && console.error(...t);
|
|
478
457
|
}
|
|
479
|
-
function
|
|
458
|
+
function Rr(t = vt) {
|
|
480
459
|
try {
|
|
481
460
|
return new Intl.DisplayNames(t, {
|
|
482
461
|
type: "region"
|
|
483
462
|
});
|
|
484
|
-
} catch (
|
|
485
|
-
return L(
|
|
463
|
+
} catch (r) {
|
|
464
|
+
return L(r), new Intl.DisplayNames(vt, {
|
|
486
465
|
type: "region"
|
|
487
466
|
});
|
|
488
467
|
}
|
|
489
468
|
}
|
|
490
|
-
const
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
onlyCountries:
|
|
505
|
-
excludedCountries:
|
|
506
|
-
continents:
|
|
507
|
-
preferredCountries:
|
|
469
|
+
const _r = ({
|
|
470
|
+
anchorEl: t,
|
|
471
|
+
isoCode: r,
|
|
472
|
+
onSelectCountry: e,
|
|
473
|
+
excludedCountries: n = [],
|
|
474
|
+
onlyCountries: d = [],
|
|
475
|
+
langOfCountryName: i = vt,
|
|
476
|
+
continents: a = [],
|
|
477
|
+
preferredCountries: o = [],
|
|
478
|
+
className: u,
|
|
479
|
+
flagSize: $ = "small",
|
|
480
|
+
...f
|
|
481
|
+
}) => {
|
|
482
|
+
const s = p.useMemo(() => Rr(i), [i]), c = Er(Nr, s), h = Or(c, {
|
|
483
|
+
onlyCountries: d,
|
|
484
|
+
excludedCountries: n,
|
|
485
|
+
continents: a,
|
|
486
|
+
preferredCountries: o
|
|
508
487
|
});
|
|
509
|
-
return /* @__PURE__ */ v(
|
|
510
|
-
anchorEl:
|
|
511
|
-
open: Boolean(
|
|
488
|
+
return /* @__PURE__ */ v(hr, {
|
|
489
|
+
anchorEl: t,
|
|
490
|
+
open: Boolean(t),
|
|
512
491
|
id: "select-country",
|
|
513
|
-
className: `MuiTelInput-Menu ${
|
|
492
|
+
className: `MuiTelInput-Menu ${u || ""}`,
|
|
514
493
|
MenuListProps: {
|
|
515
494
|
role: "listbox",
|
|
516
|
-
"aria-activedescendant":
|
|
495
|
+
"aria-activedescendant": r ? `country-${r}` : "",
|
|
517
496
|
"aria-labelledby": "select-country"
|
|
518
497
|
},
|
|
519
|
-
...
|
|
520
|
-
children:
|
|
521
|
-
onSelectCountry:
|
|
498
|
+
...f,
|
|
499
|
+
children: h.map((g) => /* @__PURE__ */ v(Mr, {
|
|
500
|
+
onSelectCountry: e,
|
|
522
501
|
isoCode: g,
|
|
523
502
|
countryName: s.of(g),
|
|
524
|
-
selected: g ===
|
|
503
|
+
selected: g === r,
|
|
525
504
|
id: `country-${g}`,
|
|
526
|
-
flagSize:
|
|
505
|
+
flagSize: $
|
|
527
506
|
}, g))
|
|
528
507
|
});
|
|
529
508
|
};
|
|
530
|
-
|
|
531
|
-
onlyCountries: [],
|
|
532
|
-
excludedCountries: [],
|
|
533
|
-
continents: [],
|
|
534
|
-
preferredCountries: [],
|
|
535
|
-
flagSize: "small",
|
|
536
|
-
langOfCountryName: vt
|
|
537
|
-
};
|
|
538
|
-
function kn(t) {
|
|
509
|
+
function Lr(t) {
|
|
539
510
|
t.focus();
|
|
540
|
-
const { length:
|
|
541
|
-
t.setSelectionRange(
|
|
511
|
+
const { length: r } = t.value;
|
|
512
|
+
t.setSelectionRange(r, r);
|
|
542
513
|
}
|
|
543
|
-
function
|
|
544
|
-
typeof
|
|
514
|
+
function ft(t, r) {
|
|
515
|
+
typeof r == "function" ? r(t) : r && vr(r) && "current" in r && (r.current = t);
|
|
545
516
|
}
|
|
546
|
-
function
|
|
547
|
-
return t.replace(
|
|
517
|
+
function we(t, r) {
|
|
518
|
+
return t.replace(r, "");
|
|
548
519
|
}
|
|
549
|
-
function
|
|
520
|
+
function kr(t) {
|
|
550
521
|
const {
|
|
551
|
-
defaultCountry:
|
|
522
|
+
defaultCountry: r,
|
|
552
523
|
onlyCountries: e,
|
|
553
|
-
excludedCountries:
|
|
524
|
+
excludedCountries: n,
|
|
554
525
|
continents: d,
|
|
555
526
|
forceCallingCode: i
|
|
556
527
|
} = t;
|
|
557
528
|
p.useEffect(() => {
|
|
558
|
-
if (e &&
|
|
559
|
-
const a =
|
|
529
|
+
if (e && n) {
|
|
530
|
+
const a = Pr(
|
|
560
531
|
e,
|
|
561
|
-
|
|
532
|
+
n
|
|
562
533
|
);
|
|
563
534
|
a && L(
|
|
564
535
|
`[mui-tel-input] Not expected to have the country ${a} to be included in the 'onlyCountries' AND 'excludedCountries' props`
|
|
565
536
|
);
|
|
566
537
|
}
|
|
567
|
-
}, [e,
|
|
568
|
-
|
|
569
|
-
`[mui-tel-input] Not expected to have the 'defaultCountry' (${
|
|
538
|
+
}, [e, n]), p.useEffect(() => {
|
|
539
|
+
r && n && n.includes(r) && L(
|
|
540
|
+
`[mui-tel-input] Not expected to have the 'defaultCountry' (${r}) prop excluded by the 'excludedCountries' prop`
|
|
570
541
|
);
|
|
571
|
-
}, [
|
|
572
|
-
|
|
573
|
-
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${
|
|
542
|
+
}, [r, n]), p.useEffect(() => {
|
|
543
|
+
r && e && !e.includes(r) && L(
|
|
544
|
+
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${r}) and a 'onlyCountries' prop but without included the 'defaultCountry' (${r})`
|
|
574
545
|
);
|
|
575
|
-
}, [
|
|
576
|
-
|
|
577
|
-
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${
|
|
546
|
+
}, [r, e]), p.useEffect(() => {
|
|
547
|
+
r && d && d.length > 0 && (d.some((o) => Tt[o].includes(r)) || L(
|
|
548
|
+
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${r}) and a 'continents' prop that are not contain the country (${r})`
|
|
578
549
|
));
|
|
579
|
-
}, [
|
|
580
|
-
i && !
|
|
550
|
+
}, [r, d]), p.useEffect(() => {
|
|
551
|
+
i && !r && L(
|
|
581
552
|
"[mui-tel-input] 'forceCallingCode' needs 'defaultCountry' defined. Will default to US."
|
|
582
553
|
);
|
|
583
|
-
}, [
|
|
554
|
+
}, [r, i]);
|
|
584
555
|
}
|
|
585
|
-
function
|
|
586
|
-
var e = Array.prototype.slice.call(
|
|
556
|
+
function De(t, r) {
|
|
557
|
+
var e = Array.prototype.slice.call(r);
|
|
587
558
|
return e.push(Et), t.apply(this, e);
|
|
588
559
|
}
|
|
589
560
|
function bt(t) {
|
|
590
|
-
return bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
591
|
-
return typeof
|
|
592
|
-
} : function(
|
|
593
|
-
return
|
|
561
|
+
return bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
562
|
+
return typeof r;
|
|
563
|
+
} : function(r) {
|
|
564
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
594
565
|
}, bt(t);
|
|
595
566
|
}
|
|
596
|
-
function kt(t,
|
|
597
|
-
for (var e = 0; e <
|
|
598
|
-
var
|
|
599
|
-
|
|
567
|
+
function kt(t, r) {
|
|
568
|
+
for (var e = 0; e < r.length; e++) {
|
|
569
|
+
var n = r[e];
|
|
570
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
600
571
|
}
|
|
601
572
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
573
|
+
function jr(t, r, e) {
|
|
574
|
+
return r && kt(t.prototype, r), e && kt(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
604
575
|
}
|
|
605
|
-
function
|
|
606
|
-
if (!(t instanceof
|
|
576
|
+
function Gr(t, r) {
|
|
577
|
+
if (!(t instanceof r))
|
|
607
578
|
throw new TypeError("Cannot call a class as a function");
|
|
608
579
|
}
|
|
609
|
-
function
|
|
610
|
-
if (typeof
|
|
580
|
+
function Br(t, r) {
|
|
581
|
+
if (typeof r != "function" && r !== null)
|
|
611
582
|
throw new TypeError("Super expression must either be null or a function");
|
|
612
|
-
t.prototype = Object.create(
|
|
583
|
+
t.prototype = Object.create(r && r.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), r && H(t, r);
|
|
613
584
|
}
|
|
614
|
-
function
|
|
615
|
-
var
|
|
585
|
+
function Ur(t) {
|
|
586
|
+
var r = Re();
|
|
616
587
|
return function() {
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
588
|
+
var n = V(t), d;
|
|
589
|
+
if (r) {
|
|
619
590
|
var i = V(this).constructor;
|
|
620
|
-
d = Reflect.construct(
|
|
591
|
+
d = Reflect.construct(n, arguments, i);
|
|
621
592
|
} else
|
|
622
|
-
d =
|
|
623
|
-
return
|
|
593
|
+
d = n.apply(this, arguments);
|
|
594
|
+
return Wr(this, d);
|
|
624
595
|
};
|
|
625
596
|
}
|
|
626
|
-
function
|
|
627
|
-
if (
|
|
628
|
-
return
|
|
629
|
-
if (
|
|
597
|
+
function Wr(t, r) {
|
|
598
|
+
if (r && (bt(r) === "object" || typeof r == "function"))
|
|
599
|
+
return r;
|
|
600
|
+
if (r !== void 0)
|
|
630
601
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
631
|
-
return
|
|
602
|
+
return Me(t);
|
|
632
603
|
}
|
|
633
|
-
function
|
|
604
|
+
function Me(t) {
|
|
634
605
|
if (t === void 0)
|
|
635
606
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
636
607
|
return t;
|
|
637
608
|
}
|
|
638
609
|
function Nt(t) {
|
|
639
|
-
var
|
|
640
|
-
return Nt = function(
|
|
641
|
-
if (
|
|
642
|
-
return
|
|
643
|
-
if (typeof
|
|
610
|
+
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
611
|
+
return Nt = function(n) {
|
|
612
|
+
if (n === null || !Hr(n))
|
|
613
|
+
return n;
|
|
614
|
+
if (typeof n != "function")
|
|
644
615
|
throw new TypeError("Super expression must either be null or a function");
|
|
645
|
-
if (typeof
|
|
646
|
-
if (
|
|
647
|
-
return
|
|
648
|
-
|
|
616
|
+
if (typeof r < "u") {
|
|
617
|
+
if (r.has(n))
|
|
618
|
+
return r.get(n);
|
|
619
|
+
r.set(n, d);
|
|
649
620
|
}
|
|
650
621
|
function d() {
|
|
651
|
-
return
|
|
622
|
+
return z(n, arguments, V(this).constructor);
|
|
652
623
|
}
|
|
653
|
-
return d.prototype = Object.create(
|
|
624
|
+
return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), H(d, n);
|
|
654
625
|
}, Nt(t);
|
|
655
626
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
627
|
+
function z(t, r, e) {
|
|
628
|
+
return Re() ? z = Reflect.construct : z = function(d, i, a) {
|
|
658
629
|
var o = [null];
|
|
659
630
|
o.push.apply(o, i);
|
|
660
631
|
var u = Function.bind.apply(d, o), $ = new u();
|
|
661
632
|
return a && H($, a.prototype), $;
|
|
662
|
-
},
|
|
633
|
+
}, z.apply(null, arguments);
|
|
663
634
|
}
|
|
664
|
-
function
|
|
635
|
+
function Re() {
|
|
665
636
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
666
637
|
return !1;
|
|
667
638
|
if (typeof Proxy == "function")
|
|
@@ -673,13 +644,13 @@ function ke() {
|
|
|
673
644
|
return !1;
|
|
674
645
|
}
|
|
675
646
|
}
|
|
676
|
-
function
|
|
647
|
+
function Hr(t) {
|
|
677
648
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
678
649
|
}
|
|
679
|
-
function H(t,
|
|
680
|
-
return H = Object.setPrototypeOf || function(
|
|
681
|
-
return
|
|
682
|
-
}, H(t,
|
|
650
|
+
function H(t, r) {
|
|
651
|
+
return H = Object.setPrototypeOf || function(n, d) {
|
|
652
|
+
return n.__proto__ = d, n;
|
|
653
|
+
}, H(t, r);
|
|
683
654
|
}
|
|
684
655
|
function V(t) {
|
|
685
656
|
return V = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
|
@@ -687,18 +658,18 @@ function V(t) {
|
|
|
687
658
|
}, V(t);
|
|
688
659
|
}
|
|
689
660
|
var D = /* @__PURE__ */ function(t) {
|
|
690
|
-
|
|
691
|
-
var
|
|
692
|
-
function e(
|
|
661
|
+
Br(e, t);
|
|
662
|
+
var r = Ur(e);
|
|
663
|
+
function e(n) {
|
|
693
664
|
var d;
|
|
694
|
-
return
|
|
695
|
-
}
|
|
696
|
-
return
|
|
697
|
-
}(/* @__PURE__ */ Nt(Error)), Ft = 2,
|
|
698
|
-
function jt(t,
|
|
699
|
-
t = t.split("-"),
|
|
700
|
-
for (var e = t[0].split("."),
|
|
701
|
-
var i = Number(e[d]), a = Number(
|
|
665
|
+
return Gr(this, e), d = r.call(this, n), Object.setPrototypeOf(Me(d), e.prototype), d.name = d.constructor.name, d;
|
|
666
|
+
}
|
|
667
|
+
return jr(e);
|
|
668
|
+
}(/* @__PURE__ */ Nt(Error)), Ft = 2, Vr = 17, Zr = 3, P = "0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9", Yr = "-\u2010-\u2015\u2212\u30FC\uFF0D", zr = "\uFF0F/", Xr = "\uFF0E.", Kr = " \xA0\xAD\u200B\u2060\u3000", Qr = "()\uFF08\uFF09\uFF3B\uFF3D\\[\\]", Jr = "~\u2053\u223C\uFF5E", I = "".concat(Yr).concat(zr).concat(Xr).concat(Kr).concat(Qr).concat(Jr), rt = "+\uFF0B";
|
|
669
|
+
function jt(t, r) {
|
|
670
|
+
t = t.split("-"), r = r.split("-");
|
|
671
|
+
for (var e = t[0].split("."), n = r[0].split("."), d = 0; d < 3; d++) {
|
|
672
|
+
var i = Number(e[d]), a = Number(n[d]);
|
|
702
673
|
if (i > a)
|
|
703
674
|
return 1;
|
|
704
675
|
if (a > i)
|
|
@@ -708,33 +679,33 @@ function jt(t, n) {
|
|
|
708
679
|
if (isNaN(i) && !isNaN(a))
|
|
709
680
|
return -1;
|
|
710
681
|
}
|
|
711
|
-
return t[1] &&
|
|
682
|
+
return t[1] && r[1] ? t[1] > r[1] ? 1 : t[1] < r[1] ? -1 : 0 : !t[1] && r[1] ? 1 : t[1] && !r[1] ? -1 : 0;
|
|
712
683
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
715
|
-
return typeof
|
|
716
|
-
} : function(
|
|
717
|
-
return
|
|
718
|
-
},
|
|
719
|
-
}
|
|
720
|
-
function
|
|
721
|
-
if (!(t instanceof
|
|
684
|
+
function Q(t) {
|
|
685
|
+
return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
686
|
+
return typeof r;
|
|
687
|
+
} : function(r) {
|
|
688
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
689
|
+
}, Q(t);
|
|
690
|
+
}
|
|
691
|
+
function nt(t, r) {
|
|
692
|
+
if (!(t instanceof r))
|
|
722
693
|
throw new TypeError("Cannot call a class as a function");
|
|
723
694
|
}
|
|
724
|
-
function Gt(t,
|
|
725
|
-
for (var e = 0; e <
|
|
726
|
-
var
|
|
727
|
-
|
|
695
|
+
function Gt(t, r) {
|
|
696
|
+
for (var e = 0; e < r.length; e++) {
|
|
697
|
+
var n = r[e];
|
|
698
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
728
699
|
}
|
|
729
700
|
}
|
|
730
|
-
function
|
|
731
|
-
return
|
|
701
|
+
function dt(t, r, e) {
|
|
702
|
+
return r && Gt(t.prototype, r), e && Gt(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
732
703
|
}
|
|
733
|
-
var
|
|
734
|
-
function t(
|
|
735
|
-
|
|
704
|
+
var qr = "1.2.0", tn = "1.7.35", Bt = " ext. ", en = /^\d+$/, C = /* @__PURE__ */ function() {
|
|
705
|
+
function t(r) {
|
|
706
|
+
nt(this, t), an(r), this.metadata = r, _e.call(this, r);
|
|
736
707
|
}
|
|
737
|
-
return
|
|
708
|
+
return dt(t, [{
|
|
738
709
|
key: "getCountries",
|
|
739
710
|
value: function() {
|
|
740
711
|
return Object.keys(this.metadata.countries).filter(function(e) {
|
|
@@ -766,8 +737,8 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
766
737
|
if (this.nonGeographic()[e])
|
|
767
738
|
return !0;
|
|
768
739
|
} else {
|
|
769
|
-
var
|
|
770
|
-
if (
|
|
740
|
+
var n = this.countryCallingCodes()[e];
|
|
741
|
+
if (n && n.length === 1 && n[0] === "001")
|
|
771
742
|
return !0;
|
|
772
743
|
}
|
|
773
744
|
}
|
|
@@ -783,15 +754,15 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
783
754
|
}
|
|
784
755
|
}, {
|
|
785
756
|
key: "selectNumberingPlan",
|
|
786
|
-
value: function(e,
|
|
787
|
-
if (e &&
|
|
757
|
+
value: function(e, n) {
|
|
758
|
+
if (e && en.test(e) && (n = e, e = null), e && e !== "001") {
|
|
788
759
|
if (!this.hasCountry(e))
|
|
789
760
|
throw new Error("Unknown country: ".concat(e));
|
|
790
761
|
this.numberingPlan = new Ut(this.getCountryMetadata(e), this);
|
|
791
|
-
} else if (
|
|
792
|
-
if (!this.hasCallingCode(
|
|
793
|
-
throw new Error("Unknown calling code: ".concat(
|
|
794
|
-
this.numberingPlan = new Ut(this.getNumberingPlanMetadata(
|
|
762
|
+
} else if (n) {
|
|
763
|
+
if (!this.hasCallingCode(n))
|
|
764
|
+
throw new Error("Unknown calling code: ".concat(n));
|
|
765
|
+
this.numberingPlan = new Ut(this.getNumberingPlanMetadata(n), this);
|
|
795
766
|
} else
|
|
796
767
|
this.numberingPlan = void 0;
|
|
797
768
|
return this;
|
|
@@ -799,23 +770,23 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
799
770
|
}, {
|
|
800
771
|
key: "getCountryCodesForCallingCode",
|
|
801
772
|
value: function(e) {
|
|
802
|
-
var
|
|
803
|
-
if (
|
|
804
|
-
return
|
|
773
|
+
var n = this.countryCallingCodes()[e];
|
|
774
|
+
if (n)
|
|
775
|
+
return n.length === 1 && n[0].length === 3 ? void 0 : n;
|
|
805
776
|
}
|
|
806
777
|
}, {
|
|
807
778
|
key: "getCountryCodeForCallingCode",
|
|
808
779
|
value: function(e) {
|
|
809
|
-
var
|
|
810
|
-
if (
|
|
811
|
-
return
|
|
780
|
+
var n = this.getCountryCodesForCallingCode(e);
|
|
781
|
+
if (n)
|
|
782
|
+
return n[0];
|
|
812
783
|
}
|
|
813
784
|
}, {
|
|
814
785
|
key: "getNumberingPlanMetadata",
|
|
815
786
|
value: function(e) {
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
818
|
-
return this.getCountryMetadata(
|
|
787
|
+
var n = this.getCountryCodeForCallingCode(e);
|
|
788
|
+
if (n)
|
|
789
|
+
return this.getCountryMetadata(n);
|
|
819
790
|
if (this.nonGeographic()) {
|
|
820
791
|
var d = this.nonGeographic()[e];
|
|
821
792
|
if (d)
|
|
@@ -903,10 +874,10 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
903
874
|
}
|
|
904
875
|
}]), t;
|
|
905
876
|
}(), Ut = /* @__PURE__ */ function() {
|
|
906
|
-
function t(
|
|
907
|
-
|
|
877
|
+
function t(r, e) {
|
|
878
|
+
nt(this, t), this.globalMetadataObject = e, this.metadata = r, _e.call(this, e.metadata);
|
|
908
879
|
}
|
|
909
|
-
return
|
|
880
|
+
return dt(t, [{
|
|
910
881
|
key: "callingCode",
|
|
911
882
|
value: function() {
|
|
912
883
|
return this.metadata[0];
|
|
@@ -947,9 +918,9 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
947
918
|
}, {
|
|
948
919
|
key: "formats",
|
|
949
920
|
value: function() {
|
|
950
|
-
var e = this,
|
|
951
|
-
return
|
|
952
|
-
return new
|
|
921
|
+
var e = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
922
|
+
return n.map(function(d) {
|
|
923
|
+
return new rn(d, e);
|
|
953
924
|
});
|
|
954
925
|
}
|
|
955
926
|
}, {
|
|
@@ -1011,7 +982,7 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
1011
982
|
key: "type",
|
|
1012
983
|
value: function(e) {
|
|
1013
984
|
if (this.hasTypes() && Wt(this.types(), e))
|
|
1014
|
-
return new
|
|
985
|
+
return new dn(Wt(this.types(), e), this);
|
|
1015
986
|
}
|
|
1016
987
|
}, {
|
|
1017
988
|
key: "ext",
|
|
@@ -1019,11 +990,11 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
1019
990
|
return this.v1 || this.v2 ? Bt : this.metadata[13] || Bt;
|
|
1020
991
|
}
|
|
1021
992
|
}]), t;
|
|
1022
|
-
}(),
|
|
1023
|
-
function t(
|
|
1024
|
-
|
|
993
|
+
}(), rn = /* @__PURE__ */ function() {
|
|
994
|
+
function t(r, e) {
|
|
995
|
+
nt(this, t), this._format = r, this.metadata = e;
|
|
1025
996
|
}
|
|
1026
|
-
return
|
|
997
|
+
return dt(t, [{
|
|
1027
998
|
key: "pattern",
|
|
1028
999
|
value: function() {
|
|
1029
1000
|
return this._format[0];
|
|
@@ -1056,7 +1027,7 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
1056
1027
|
}, {
|
|
1057
1028
|
key: "usesNationalPrefix",
|
|
1058
1029
|
value: function() {
|
|
1059
|
-
return !!(this.nationalPrefixFormattingRule() && !
|
|
1030
|
+
return !!(this.nationalPrefixFormattingRule() && !nn.test(this.nationalPrefixFormattingRule()));
|
|
1060
1031
|
}
|
|
1061
1032
|
}, {
|
|
1062
1033
|
key: "internationalFormat",
|
|
@@ -1064,11 +1035,11 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
1064
1035
|
return this._format[5] || this.format();
|
|
1065
1036
|
}
|
|
1066
1037
|
}]), t;
|
|
1067
|
-
}(),
|
|
1068
|
-
function t(
|
|
1069
|
-
|
|
1038
|
+
}(), nn = /^\(?\$1\)?$/, dn = /* @__PURE__ */ function() {
|
|
1039
|
+
function t(r, e) {
|
|
1040
|
+
nt(this, t), this.type = r, this.metadata = e;
|
|
1070
1041
|
}
|
|
1071
|
-
return
|
|
1042
|
+
return dt(t, [{
|
|
1072
1043
|
key: "pattern",
|
|
1073
1044
|
value: function() {
|
|
1074
1045
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -1081,8 +1052,8 @@ var tr = "1.2.0", er = "1.7.35", Bt = " ext. ", nr = /^\d+$/, C = /* @__PURE__ *
|
|
|
1081
1052
|
}
|
|
1082
1053
|
}]), t;
|
|
1083
1054
|
}();
|
|
1084
|
-
function Wt(t,
|
|
1085
|
-
switch (
|
|
1055
|
+
function Wt(t, r) {
|
|
1056
|
+
switch (r) {
|
|
1086
1057
|
case "FIXED_LINE":
|
|
1087
1058
|
return t[0];
|
|
1088
1059
|
case "MOBILE":
|
|
@@ -1105,92 +1076,92 @@ function Wt(t, n) {
|
|
|
1105
1076
|
return t[9];
|
|
1106
1077
|
}
|
|
1107
1078
|
}
|
|
1108
|
-
function
|
|
1079
|
+
function an(t) {
|
|
1109
1080
|
if (!t)
|
|
1110
1081
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1111
|
-
if (!
|
|
1112
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(
|
|
1082
|
+
if (!st(t) || !st(t.countries))
|
|
1083
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(st(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + on(t) + ": " + t, "."));
|
|
1113
1084
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1116
|
-
},
|
|
1117
|
-
return
|
|
1085
|
+
var st = function(r) {
|
|
1086
|
+
return Q(r) === "object";
|
|
1087
|
+
}, on = function(r) {
|
|
1088
|
+
return Q(r);
|
|
1118
1089
|
};
|
|
1119
|
-
function wt(t,
|
|
1120
|
-
if (
|
|
1121
|
-
return
|
|
1090
|
+
function wt(t, r) {
|
|
1091
|
+
if (r = new C(r), r.hasCountry(t))
|
|
1092
|
+
return r.country(t).countryCallingCode();
|
|
1122
1093
|
throw new Error("Unknown country: ".concat(t));
|
|
1123
1094
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1095
|
+
function un(t, r) {
|
|
1096
|
+
return r.countries[t] !== void 0;
|
|
1126
1097
|
}
|
|
1127
|
-
function
|
|
1128
|
-
var
|
|
1129
|
-
typeof
|
|
1098
|
+
function _e(t) {
|
|
1099
|
+
var r = t.version;
|
|
1100
|
+
typeof r == "number" ? (this.v1 = r === 1, this.v2 = r === 2, this.v3 = r === 3, this.v4 = r === 4) : r ? jt(r, qr) === -1 ? this.v2 = !0 : jt(r, tn) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
1130
1101
|
}
|
|
1131
|
-
var $
|
|
1132
|
-
return "([".concat(P, "]{1,").concat(
|
|
1102
|
+
var $n = ";ext=", _ = function(r) {
|
|
1103
|
+
return "([".concat(P, "]{1,").concat(r, "})");
|
|
1133
1104
|
};
|
|
1134
|
-
function
|
|
1135
|
-
var
|
|
1136
|
-
return h + "|" +
|
|
1105
|
+
function Le(t) {
|
|
1106
|
+
var r = "20", e = "15", n = "9", d = "6", i = "[ \xA0\\t,]*", a = "[:\\.\uFF0E]?[ \xA0\\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)", $ = "(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)", f = "[- ]+", s = "[ \xA0\\t]*", c = "(?:,{2}|;)", h = $n + _(r), g = i + u + a + _(r) + o, N = i + $ + a + _(n) + o, y = f + _(d) + "#", S = s + c + a + _(e) + o, B = s + "(?:,)+" + a + _(n) + o;
|
|
1107
|
+
return h + "|" + g + "|" + N + "|" + y + "|" + S + "|" + B;
|
|
1137
1108
|
}
|
|
1138
|
-
var
|
|
1139
|
-
"^" +
|
|
1109
|
+
var ln = "[" + P + "]{" + Ft + "}", fn = "[" + rt + "]{0,1}(?:[" + I + "]*[" + P + "]){3,}[" + I + P + "]*", sn = new RegExp("^[" + rt + "]{0,1}(?:[" + I + "]*[" + P + "]){1,2}$", "i"), cn = fn + "(?:" + Le() + ")?", hn = new RegExp(
|
|
1110
|
+
"^" + ln + "$|^" + cn + "$",
|
|
1140
1111
|
"i"
|
|
1141
1112
|
);
|
|
1142
|
-
function
|
|
1143
|
-
return t.length >= Ft &&
|
|
1113
|
+
function J(t) {
|
|
1114
|
+
return t.length >= Ft && hn.test(t);
|
|
1144
1115
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1116
|
+
function gn(t) {
|
|
1117
|
+
return sn.test(t);
|
|
1147
1118
|
}
|
|
1148
|
-
var Ht = new RegExp("(?:" +
|
|
1149
|
-
function
|
|
1150
|
-
var
|
|
1151
|
-
if (
|
|
1119
|
+
var Ht = new RegExp("(?:" + Le() + ")$", "i");
|
|
1120
|
+
function yn(t) {
|
|
1121
|
+
var r = t.search(Ht);
|
|
1122
|
+
if (r < 0)
|
|
1152
1123
|
return {};
|
|
1153
|
-
for (var e = t.slice(0,
|
|
1154
|
-
if (
|
|
1124
|
+
for (var e = t.slice(0, r), n = t.match(Ht), d = 1; d < n.length; ) {
|
|
1125
|
+
if (n[d])
|
|
1155
1126
|
return {
|
|
1156
1127
|
number: e,
|
|
1157
|
-
ext:
|
|
1128
|
+
ext: n[d]
|
|
1158
1129
|
};
|
|
1159
1130
|
d++;
|
|
1160
1131
|
}
|
|
1161
1132
|
}
|
|
1162
|
-
function
|
|
1133
|
+
function mn(t, r) {
|
|
1163
1134
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1164
1135
|
if (e)
|
|
1165
1136
|
return (e = e.call(t)).next.bind(e);
|
|
1166
|
-
if (Array.isArray(t) || (e =
|
|
1137
|
+
if (Array.isArray(t) || (e = pn(t)) || r && t && typeof t.length == "number") {
|
|
1167
1138
|
e && (t = e);
|
|
1168
|
-
var
|
|
1139
|
+
var n = 0;
|
|
1169
1140
|
return function() {
|
|
1170
|
-
return
|
|
1141
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1171
1142
|
};
|
|
1172
1143
|
}
|
|
1173
1144
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1174
1145
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1175
1146
|
}
|
|
1176
|
-
function
|
|
1147
|
+
function pn(t, r) {
|
|
1177
1148
|
if (!!t) {
|
|
1178
1149
|
if (typeof t == "string")
|
|
1179
|
-
return Vt(t,
|
|
1150
|
+
return Vt(t, r);
|
|
1180
1151
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1181
1152
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1182
1153
|
return Array.from(t);
|
|
1183
1154
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1184
|
-
return Vt(t,
|
|
1155
|
+
return Vt(t, r);
|
|
1185
1156
|
}
|
|
1186
1157
|
}
|
|
1187
|
-
function Vt(t,
|
|
1188
|
-
(
|
|
1189
|
-
for (var e = 0,
|
|
1190
|
-
|
|
1191
|
-
return
|
|
1158
|
+
function Vt(t, r) {
|
|
1159
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1160
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1161
|
+
n[e] = t[e];
|
|
1162
|
+
return n;
|
|
1192
1163
|
}
|
|
1193
|
-
var
|
|
1164
|
+
var vn = {
|
|
1194
1165
|
0: "0",
|
|
1195
1166
|
1: "1",
|
|
1196
1167
|
2: "2",
|
|
@@ -1232,90 +1203,90 @@ var vr = {
|
|
|
1232
1203
|
"\u06F8": "8",
|
|
1233
1204
|
"\u06F9": "9"
|
|
1234
1205
|
};
|
|
1235
|
-
function
|
|
1236
|
-
return
|
|
1206
|
+
function ke(t) {
|
|
1207
|
+
return vn[t];
|
|
1237
1208
|
}
|
|
1238
|
-
function
|
|
1239
|
-
for (var
|
|
1240
|
-
var d =
|
|
1241
|
-
i && (
|
|
1209
|
+
function q(t) {
|
|
1210
|
+
for (var r = "", e = mn(t.split("")), n; !(n = e()).done; ) {
|
|
1211
|
+
var d = n.value, i = ke(d);
|
|
1212
|
+
i && (r += i);
|
|
1242
1213
|
}
|
|
1243
|
-
return
|
|
1214
|
+
return r;
|
|
1244
1215
|
}
|
|
1245
|
-
function
|
|
1216
|
+
function bn(t, r) {
|
|
1246
1217
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1247
1218
|
if (e)
|
|
1248
1219
|
return (e = e.call(t)).next.bind(e);
|
|
1249
|
-
if (Array.isArray(t) || (e =
|
|
1220
|
+
if (Array.isArray(t) || (e = Nn(t)) || r && t && typeof t.length == "number") {
|
|
1250
1221
|
e && (t = e);
|
|
1251
|
-
var
|
|
1222
|
+
var n = 0;
|
|
1252
1223
|
return function() {
|
|
1253
|
-
return
|
|
1224
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1254
1225
|
};
|
|
1255
1226
|
}
|
|
1256
1227
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1257
1228
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1258
1229
|
}
|
|
1259
|
-
function
|
|
1230
|
+
function Nn(t, r) {
|
|
1260
1231
|
if (!!t) {
|
|
1261
1232
|
if (typeof t == "string")
|
|
1262
|
-
return Zt(t,
|
|
1233
|
+
return Zt(t, r);
|
|
1263
1234
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1264
1235
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1265
1236
|
return Array.from(t);
|
|
1266
1237
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1267
|
-
return Zt(t,
|
|
1238
|
+
return Zt(t, r);
|
|
1268
1239
|
}
|
|
1269
1240
|
}
|
|
1270
|
-
function Zt(t,
|
|
1271
|
-
(
|
|
1272
|
-
for (var e = 0,
|
|
1273
|
-
|
|
1274
|
-
return
|
|
1241
|
+
function Zt(t, r) {
|
|
1242
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1243
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1244
|
+
n[e] = t[e];
|
|
1245
|
+
return n;
|
|
1275
1246
|
}
|
|
1276
|
-
function
|
|
1277
|
-
for (var
|
|
1278
|
-
var d =
|
|
1279
|
-
|
|
1247
|
+
function Yt(t) {
|
|
1248
|
+
for (var r = "", e = bn(t.split("")), n; !(n = e()).done; ) {
|
|
1249
|
+
var d = n.value;
|
|
1250
|
+
r += Cn(d, r) || "";
|
|
1280
1251
|
}
|
|
1281
|
-
return
|
|
1252
|
+
return r;
|
|
1282
1253
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return t === "+" ?
|
|
1254
|
+
function Cn(t, r) {
|
|
1255
|
+
return t === "+" ? r ? void 0 : "+" : ke(t);
|
|
1285
1256
|
}
|
|
1286
|
-
function
|
|
1257
|
+
function Pn(t, r) {
|
|
1287
1258
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1288
1259
|
if (e)
|
|
1289
1260
|
return (e = e.call(t)).next.bind(e);
|
|
1290
|
-
if (Array.isArray(t) || (e =
|
|
1261
|
+
if (Array.isArray(t) || (e = An(t)) || r && t && typeof t.length == "number") {
|
|
1291
1262
|
e && (t = e);
|
|
1292
|
-
var
|
|
1263
|
+
var n = 0;
|
|
1293
1264
|
return function() {
|
|
1294
|
-
return
|
|
1265
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1295
1266
|
};
|
|
1296
1267
|
}
|
|
1297
1268
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1298
1269
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1299
1270
|
}
|
|
1300
|
-
function
|
|
1271
|
+
function An(t, r) {
|
|
1301
1272
|
if (!!t) {
|
|
1302
1273
|
if (typeof t == "string")
|
|
1303
|
-
return
|
|
1274
|
+
return zt(t, r);
|
|
1304
1275
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1305
1276
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1306
1277
|
return Array.from(t);
|
|
1307
1278
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1308
|
-
return
|
|
1279
|
+
return zt(t, r);
|
|
1309
1280
|
}
|
|
1310
1281
|
}
|
|
1311
|
-
function
|
|
1312
|
-
(
|
|
1313
|
-
for (var e = 0,
|
|
1314
|
-
|
|
1315
|
-
return
|
|
1282
|
+
function zt(t, r) {
|
|
1283
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1284
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1285
|
+
n[e] = t[e];
|
|
1286
|
+
return n;
|
|
1316
1287
|
}
|
|
1317
|
-
function
|
|
1318
|
-
for (var e = t.slice(),
|
|
1288
|
+
function In(t, r) {
|
|
1289
|
+
for (var e = t.slice(), n = Pn(r), d; !(d = n()).done; ) {
|
|
1319
1290
|
var i = d.value;
|
|
1320
1291
|
t.indexOf(i) < 0 && e.push(i);
|
|
1321
1292
|
}
|
|
@@ -1323,25 +1294,25 @@ function Ir(t, n) {
|
|
|
1323
1294
|
return a - o;
|
|
1324
1295
|
});
|
|
1325
1296
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return
|
|
1297
|
+
function it(t, r) {
|
|
1298
|
+
return je(t, void 0, r);
|
|
1328
1299
|
}
|
|
1329
|
-
function
|
|
1330
|
-
var
|
|
1300
|
+
function je(t, r, e) {
|
|
1301
|
+
var n = e.type(r), d = n && n.possibleLengths() || e.possibleLengths();
|
|
1331
1302
|
if (!d)
|
|
1332
1303
|
return "IS_POSSIBLE";
|
|
1333
|
-
if (
|
|
1304
|
+
if (r === "FIXED_LINE_OR_MOBILE") {
|
|
1334
1305
|
if (!e.type("FIXED_LINE"))
|
|
1335
|
-
return
|
|
1306
|
+
return je(t, "MOBILE", e);
|
|
1336
1307
|
var i = e.type("MOBILE");
|
|
1337
|
-
i && (d =
|
|
1338
|
-
} else if (
|
|
1308
|
+
i && (d = In(d, i.possibleLengths()));
|
|
1309
|
+
} else if (r && !n)
|
|
1339
1310
|
return "INVALID_LENGTH";
|
|
1340
1311
|
var a = t.length, o = d[0];
|
|
1341
1312
|
return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : d[d.length - 1] < a ? "TOO_LONG" : d.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
1342
1313
|
}
|
|
1343
|
-
function
|
|
1344
|
-
if (
|
|
1314
|
+
function xn(t, r, e) {
|
|
1315
|
+
if (r === void 0 && (r = {}), e = new C(e), r.v2) {
|
|
1345
1316
|
if (!t.countryCallingCode)
|
|
1346
1317
|
throw new Error("Invalid phone number object passed");
|
|
1347
1318
|
e.selectNumberingPlan(t.countryCallingCode);
|
|
@@ -1359,32 +1330,32 @@ function xr(t, n, e) {
|
|
|
1359
1330
|
}
|
|
1360
1331
|
}
|
|
1361
1332
|
if (e.possibleLengths())
|
|
1362
|
-
return
|
|
1333
|
+
return Ge(t.phone || t.nationalNumber, e);
|
|
1363
1334
|
if (t.countryCallingCode && e.isNonGeographicCallingCode(t.countryCallingCode))
|
|
1364
1335
|
return !0;
|
|
1365
1336
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
1366
1337
|
}
|
|
1367
|
-
function
|
|
1368
|
-
switch (
|
|
1338
|
+
function Ge(t, r) {
|
|
1339
|
+
switch (it(t, r)) {
|
|
1369
1340
|
case "IS_POSSIBLE":
|
|
1370
1341
|
return !0;
|
|
1371
1342
|
default:
|
|
1372
1343
|
return !1;
|
|
1373
1344
|
}
|
|
1374
1345
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1346
|
+
function Sn(t, r) {
|
|
1347
|
+
return En(t) || Tn(t, r) || Be(t, r) || On();
|
|
1377
1348
|
}
|
|
1378
|
-
function
|
|
1349
|
+
function On() {
|
|
1379
1350
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1380
1351
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1381
1352
|
}
|
|
1382
|
-
function
|
|
1353
|
+
function Tn(t, r) {
|
|
1383
1354
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1384
1355
|
if (e != null) {
|
|
1385
|
-
var
|
|
1356
|
+
var n = [], d = !0, i = !1, a, o;
|
|
1386
1357
|
try {
|
|
1387
|
-
for (e = e.call(t); !(d = (a = e.next()).done) && (
|
|
1358
|
+
for (e = e.call(t); !(d = (a = e.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
|
|
1388
1359
|
;
|
|
1389
1360
|
} catch (u) {
|
|
1390
1361
|
i = !0, o = u;
|
|
@@ -1396,329 +1367,329 @@ function Tr(t, n) {
|
|
|
1396
1367
|
throw o;
|
|
1397
1368
|
}
|
|
1398
1369
|
}
|
|
1399
|
-
return
|
|
1370
|
+
return n;
|
|
1400
1371
|
}
|
|
1401
1372
|
}
|
|
1402
|
-
function
|
|
1373
|
+
function En(t) {
|
|
1403
1374
|
if (Array.isArray(t))
|
|
1404
1375
|
return t;
|
|
1405
1376
|
}
|
|
1406
|
-
function
|
|
1377
|
+
function Fn(t, r) {
|
|
1407
1378
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1408
1379
|
if (e)
|
|
1409
1380
|
return (e = e.call(t)).next.bind(e);
|
|
1410
|
-
if (Array.isArray(t) || (e =
|
|
1381
|
+
if (Array.isArray(t) || (e = Be(t)) || r && t && typeof t.length == "number") {
|
|
1411
1382
|
e && (t = e);
|
|
1412
|
-
var
|
|
1383
|
+
var n = 0;
|
|
1413
1384
|
return function() {
|
|
1414
|
-
return
|
|
1385
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1415
1386
|
};
|
|
1416
1387
|
}
|
|
1417
1388
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1418
1389
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1419
1390
|
}
|
|
1420
|
-
function
|
|
1391
|
+
function Be(t, r) {
|
|
1421
1392
|
if (!!t) {
|
|
1422
1393
|
if (typeof t == "string")
|
|
1423
|
-
return Xt(t,
|
|
1394
|
+
return Xt(t, r);
|
|
1424
1395
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1425
1396
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1426
1397
|
return Array.from(t);
|
|
1427
1398
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1428
|
-
return Xt(t,
|
|
1399
|
+
return Xt(t, r);
|
|
1429
1400
|
}
|
|
1430
1401
|
}
|
|
1431
|
-
function Xt(t,
|
|
1432
|
-
(
|
|
1433
|
-
for (var e = 0,
|
|
1434
|
-
|
|
1435
|
-
return
|
|
1402
|
+
function Xt(t, r) {
|
|
1403
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1404
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1405
|
+
n[e] = t[e];
|
|
1406
|
+
return n;
|
|
1436
1407
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var
|
|
1408
|
+
function wn(t) {
|
|
1409
|
+
var r, e;
|
|
1439
1410
|
t = t.replace(/^tel:/, "tel=");
|
|
1440
|
-
for (var
|
|
1441
|
-
var i = d.value, a = i.split("="), o =
|
|
1411
|
+
for (var n = Fn(t.split(";")), d; !(d = n()).done; ) {
|
|
1412
|
+
var i = d.value, a = i.split("="), o = Sn(a, 2), u = o[0], $ = o[1];
|
|
1442
1413
|
switch (u) {
|
|
1443
1414
|
case "tel":
|
|
1444
|
-
|
|
1415
|
+
r = $;
|
|
1445
1416
|
break;
|
|
1446
1417
|
case "ext":
|
|
1447
1418
|
e = $;
|
|
1448
1419
|
break;
|
|
1449
1420
|
case "phone-context":
|
|
1450
|
-
$[0] === "+" && (
|
|
1421
|
+
$[0] === "+" && (r = $ + r);
|
|
1451
1422
|
break;
|
|
1452
1423
|
}
|
|
1453
1424
|
}
|
|
1454
|
-
if (!
|
|
1425
|
+
if (!J(r))
|
|
1455
1426
|
return {};
|
|
1456
1427
|
var f = {
|
|
1457
|
-
number:
|
|
1428
|
+
number: r
|
|
1458
1429
|
};
|
|
1459
1430
|
return e && (f.ext = e), f;
|
|
1460
1431
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var
|
|
1463
|
-
if (!
|
|
1432
|
+
function Dn(t) {
|
|
1433
|
+
var r = t.number, e = t.ext;
|
|
1434
|
+
if (!r)
|
|
1464
1435
|
return "";
|
|
1465
|
-
if (
|
|
1436
|
+
if (r[0] !== "+")
|
|
1466
1437
|
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
1467
|
-
return "tel:".concat(
|
|
1438
|
+
return "tel:".concat(r).concat(e ? ";ext=" + e : "");
|
|
1468
1439
|
}
|
|
1469
|
-
function F(t,
|
|
1470
|
-
return t = t || "", new RegExp("^(?:" +
|
|
1440
|
+
function F(t, r) {
|
|
1441
|
+
return t = t || "", new RegExp("^(?:" + r + ")$").test(t);
|
|
1471
1442
|
}
|
|
1472
|
-
function
|
|
1443
|
+
function Mn(t, r) {
|
|
1473
1444
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1474
1445
|
if (e)
|
|
1475
1446
|
return (e = e.call(t)).next.bind(e);
|
|
1476
|
-
if (Array.isArray(t) || (e =
|
|
1447
|
+
if (Array.isArray(t) || (e = Rn(t)) || r && t && typeof t.length == "number") {
|
|
1477
1448
|
e && (t = e);
|
|
1478
|
-
var
|
|
1449
|
+
var n = 0;
|
|
1479
1450
|
return function() {
|
|
1480
|
-
return
|
|
1451
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1481
1452
|
};
|
|
1482
1453
|
}
|
|
1483
1454
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1484
1455
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1485
1456
|
}
|
|
1486
|
-
function
|
|
1457
|
+
function Rn(t, r) {
|
|
1487
1458
|
if (!!t) {
|
|
1488
1459
|
if (typeof t == "string")
|
|
1489
|
-
return Kt(t,
|
|
1460
|
+
return Kt(t, r);
|
|
1490
1461
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1491
1462
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1492
1463
|
return Array.from(t);
|
|
1493
1464
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1494
|
-
return Kt(t,
|
|
1465
|
+
return Kt(t, r);
|
|
1495
1466
|
}
|
|
1496
1467
|
}
|
|
1497
|
-
function Kt(t,
|
|
1498
|
-
(
|
|
1499
|
-
for (var e = 0,
|
|
1500
|
-
|
|
1501
|
-
return
|
|
1468
|
+
function Kt(t, r) {
|
|
1469
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1470
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1471
|
+
n[e] = t[e];
|
|
1472
|
+
return n;
|
|
1502
1473
|
}
|
|
1503
|
-
var
|
|
1504
|
-
function
|
|
1505
|
-
if (
|
|
1474
|
+
var _n = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1475
|
+
function at(t, r, e) {
|
|
1476
|
+
if (r = r || {}, !!t.country) {
|
|
1506
1477
|
e = new C(e), e.selectNumberingPlan(t.country, t.countryCallingCode);
|
|
1507
|
-
var
|
|
1508
|
-
if (!!F(
|
|
1509
|
-
if (
|
|
1510
|
-
return e.type("MOBILE") && e.type("MOBILE").pattern() === "" || !e.type("MOBILE") ||
|
|
1511
|
-
for (var d =
|
|
1478
|
+
var n = r.v2 ? t.nationalNumber : t.phone;
|
|
1479
|
+
if (!!F(n, e.nationalNumberPattern())) {
|
|
1480
|
+
if (ct(n, "FIXED_LINE", e))
|
|
1481
|
+
return e.type("MOBILE") && e.type("MOBILE").pattern() === "" || !e.type("MOBILE") || ct(n, "MOBILE", e) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1482
|
+
for (var d = Mn(_n), i; !(i = d()).done; ) {
|
|
1512
1483
|
var a = i.value;
|
|
1513
|
-
if (
|
|
1484
|
+
if (ct(n, a, e))
|
|
1514
1485
|
return a;
|
|
1515
1486
|
}
|
|
1516
1487
|
}
|
|
1517
1488
|
}
|
|
1518
1489
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1490
|
+
function ct(t, r, e) {
|
|
1491
|
+
return r = e.type(r), !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(t.length) < 0 ? !1 : F(t, r.pattern());
|
|
1521
1492
|
}
|
|
1522
|
-
function
|
|
1523
|
-
if (
|
|
1493
|
+
function Ln(t, r, e) {
|
|
1494
|
+
if (r = r || {}, e = new C(e), !t.country)
|
|
1524
1495
|
return !1;
|
|
1525
1496
|
if (e.selectNumberingPlan(t.country, t.countryCallingCode), e.hasTypes())
|
|
1526
|
-
return
|
|
1527
|
-
var
|
|
1528
|
-
return F(
|
|
1497
|
+
return at(t, r, e.metadata) !== void 0;
|
|
1498
|
+
var n = r.v2 ? t.nationalNumber : t.phone;
|
|
1499
|
+
return F(n, e.nationalNumberPattern());
|
|
1529
1500
|
}
|
|
1530
|
-
function
|
|
1501
|
+
function Ue(t) {
|
|
1531
1502
|
return t.replace(new RegExp("[".concat(I, "]+"), "g"), " ").trim();
|
|
1532
1503
|
}
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1535
|
-
var
|
|
1504
|
+
var We = /(\$\d)/;
|
|
1505
|
+
function He(t, r, e) {
|
|
1506
|
+
var n = e.useInternationalFormat, d = e.withNationalPrefix;
|
|
1536
1507
|
e.carrierCode, e.metadata;
|
|
1537
|
-
var i = t.replace(new RegExp(
|
|
1538
|
-
return
|
|
1539
|
-
}
|
|
1540
|
-
var
|
|
1541
|
-
function
|
|
1542
|
-
var
|
|
1543
|
-
if (
|
|
1544
|
-
return
|
|
1545
|
-
if (
|
|
1546
|
-
return
|
|
1547
|
-
}
|
|
1548
|
-
function
|
|
1508
|
+
var i = t.replace(new RegExp(r.pattern()), n ? r.internationalFormat() : d && r.nationalPrefixFormattingRule() ? r.format().replace(We, r.nationalPrefixFormattingRule()) : r.format());
|
|
1509
|
+
return n ? Ue(i) : i;
|
|
1510
|
+
}
|
|
1511
|
+
var kn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
1512
|
+
function jn(t, r, e) {
|
|
1513
|
+
var n = new C(e);
|
|
1514
|
+
if (n.selectNumberingPlan(t, r), n.defaultIDDPrefix())
|
|
1515
|
+
return n.defaultIDDPrefix();
|
|
1516
|
+
if (kn.test(n.IDDPrefix()))
|
|
1517
|
+
return n.IDDPrefix();
|
|
1518
|
+
}
|
|
1519
|
+
function Gn(t, r) {
|
|
1549
1520
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1550
1521
|
if (e)
|
|
1551
1522
|
return (e = e.call(t)).next.bind(e);
|
|
1552
|
-
if (Array.isArray(t) || (e =
|
|
1523
|
+
if (Array.isArray(t) || (e = Bn(t)) || r && t && typeof t.length == "number") {
|
|
1553
1524
|
e && (t = e);
|
|
1554
|
-
var
|
|
1525
|
+
var n = 0;
|
|
1555
1526
|
return function() {
|
|
1556
|
-
return
|
|
1527
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1557
1528
|
};
|
|
1558
1529
|
}
|
|
1559
1530
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1560
1531
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1561
1532
|
}
|
|
1562
|
-
function
|
|
1533
|
+
function Bn(t, r) {
|
|
1563
1534
|
if (!!t) {
|
|
1564
1535
|
if (typeof t == "string")
|
|
1565
|
-
return Qt(t,
|
|
1536
|
+
return Qt(t, r);
|
|
1566
1537
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1567
1538
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1568
1539
|
return Array.from(t);
|
|
1569
1540
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1570
|
-
return Qt(t,
|
|
1541
|
+
return Qt(t, r);
|
|
1571
1542
|
}
|
|
1572
1543
|
}
|
|
1573
|
-
function Qt(t,
|
|
1574
|
-
(
|
|
1575
|
-
for (var e = 0,
|
|
1576
|
-
|
|
1577
|
-
return
|
|
1544
|
+
function Qt(t, r) {
|
|
1545
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1546
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1547
|
+
n[e] = t[e];
|
|
1548
|
+
return n;
|
|
1578
1549
|
}
|
|
1579
|
-
function Jt(t,
|
|
1550
|
+
function Jt(t, r) {
|
|
1580
1551
|
var e = Object.keys(t);
|
|
1581
1552
|
if (Object.getOwnPropertySymbols) {
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1553
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
1554
|
+
r && (n = n.filter(function(d) {
|
|
1584
1555
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
1585
|
-
})), e.push.apply(e,
|
|
1556
|
+
})), e.push.apply(e, n);
|
|
1586
1557
|
}
|
|
1587
1558
|
return e;
|
|
1588
1559
|
}
|
|
1589
1560
|
function qt(t) {
|
|
1590
|
-
for (var
|
|
1591
|
-
var e = arguments[
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Jt(Object(e)).forEach(function(
|
|
1595
|
-
Object.defineProperty(t,
|
|
1561
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1562
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
1563
|
+
r % 2 ? Jt(Object(e), !0).forEach(function(n) {
|
|
1564
|
+
Un(t, n, e[n]);
|
|
1565
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Jt(Object(e)).forEach(function(n) {
|
|
1566
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
1596
1567
|
});
|
|
1597
1568
|
}
|
|
1598
1569
|
return t;
|
|
1599
1570
|
}
|
|
1600
|
-
function
|
|
1601
|
-
return
|
|
1571
|
+
function Un(t, r, e) {
|
|
1572
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
1602
1573
|
}
|
|
1603
1574
|
var te = {
|
|
1604
|
-
formatExtension: function(
|
|
1605
|
-
return "".concat(
|
|
1575
|
+
formatExtension: function(r, e, n) {
|
|
1576
|
+
return "".concat(r).concat(n.ext()).concat(e);
|
|
1606
1577
|
}
|
|
1607
1578
|
};
|
|
1608
|
-
function
|
|
1609
|
-
if (e ? e = qt(qt({}, te), e) : e = te,
|
|
1610
|
-
if (!
|
|
1579
|
+
function Wn(t, r, e, n) {
|
|
1580
|
+
if (e ? e = qt(qt({}, te), e) : e = te, n = new C(n), t.country && t.country !== "001") {
|
|
1581
|
+
if (!n.hasCountry(t.country))
|
|
1611
1582
|
throw new Error("Unknown country: ".concat(t.country));
|
|
1612
|
-
|
|
1583
|
+
n.country(t.country);
|
|
1613
1584
|
} else if (t.countryCallingCode)
|
|
1614
|
-
|
|
1585
|
+
n.selectNumberingPlan(t.countryCallingCode);
|
|
1615
1586
|
else
|
|
1616
1587
|
return t.phone || "";
|
|
1617
|
-
var d =
|
|
1618
|
-
switch (
|
|
1588
|
+
var d = n.countryCallingCode(), i = e.v2 ? t.nationalNumber : t.phone, a;
|
|
1589
|
+
switch (r) {
|
|
1619
1590
|
case "NATIONAL":
|
|
1620
|
-
return i ? (a =
|
|
1591
|
+
return i ? (a = tt(i, t.carrierCode, "NATIONAL", n, e), ht(a, t.ext, n, e.formatExtension)) : "";
|
|
1621
1592
|
case "INTERNATIONAL":
|
|
1622
|
-
return i ? (a =
|
|
1593
|
+
return i ? (a = tt(i, null, "INTERNATIONAL", n, e), a = "+".concat(d, " ").concat(a), ht(a, t.ext, n, e.formatExtension)) : "+".concat(d);
|
|
1623
1594
|
case "E.164":
|
|
1624
1595
|
return "+".concat(d).concat(i);
|
|
1625
1596
|
case "RFC3966":
|
|
1626
|
-
return
|
|
1597
|
+
return Dn({
|
|
1627
1598
|
number: "+".concat(d).concat(i),
|
|
1628
1599
|
ext: t.ext
|
|
1629
1600
|
});
|
|
1630
1601
|
case "IDD":
|
|
1631
1602
|
if (!e.fromCountry)
|
|
1632
1603
|
return;
|
|
1633
|
-
var o =
|
|
1634
|
-
return
|
|
1604
|
+
var o = Vn(i, t.carrierCode, d, e.fromCountry, n);
|
|
1605
|
+
return ht(o, t.ext, n, e.formatExtension);
|
|
1635
1606
|
default:
|
|
1636
|
-
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(
|
|
1607
|
+
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(r, '"'));
|
|
1637
1608
|
}
|
|
1638
1609
|
}
|
|
1639
|
-
function
|
|
1640
|
-
var i =
|
|
1641
|
-
return i ?
|
|
1610
|
+
function tt(t, r, e, n, d) {
|
|
1611
|
+
var i = Hn(n.formats(), t);
|
|
1612
|
+
return i ? He(t, i, {
|
|
1642
1613
|
useInternationalFormat: e === "INTERNATIONAL",
|
|
1643
1614
|
withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
|
|
1644
|
-
carrierCode:
|
|
1645
|
-
metadata:
|
|
1615
|
+
carrierCode: r,
|
|
1616
|
+
metadata: n
|
|
1646
1617
|
}) : t;
|
|
1647
1618
|
}
|
|
1648
|
-
function
|
|
1649
|
-
for (var e =
|
|
1650
|
-
var d =
|
|
1619
|
+
function Hn(t, r) {
|
|
1620
|
+
for (var e = Gn(t), n; !(n = e()).done; ) {
|
|
1621
|
+
var d = n.value;
|
|
1651
1622
|
if (d.leadingDigitsPatterns().length > 0) {
|
|
1652
1623
|
var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
|
|
1653
|
-
if (
|
|
1624
|
+
if (r.search(i) !== 0)
|
|
1654
1625
|
continue;
|
|
1655
1626
|
}
|
|
1656
|
-
if (F(
|
|
1627
|
+
if (F(r, d.pattern()))
|
|
1657
1628
|
return d;
|
|
1658
1629
|
}
|
|
1659
1630
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1631
|
+
function ht(t, r, e, n) {
|
|
1632
|
+
return r ? n(t, r, e) : t;
|
|
1662
1633
|
}
|
|
1663
|
-
function
|
|
1664
|
-
var i = wt(
|
|
1634
|
+
function Vn(t, r, e, n, d) {
|
|
1635
|
+
var i = wt(n, d.metadata);
|
|
1665
1636
|
if (i === e) {
|
|
1666
|
-
var a =
|
|
1637
|
+
var a = tt(t, r, "NATIONAL", d);
|
|
1667
1638
|
return e === "1" ? e + " " + a : a;
|
|
1668
1639
|
}
|
|
1669
|
-
var o =
|
|
1640
|
+
var o = jn(n, void 0, d.metadata);
|
|
1670
1641
|
if (o)
|
|
1671
|
-
return "".concat(o, " ").concat(e, " ").concat(
|
|
1642
|
+
return "".concat(o, " ").concat(e, " ").concat(tt(t, null, "INTERNATIONAL", d));
|
|
1672
1643
|
}
|
|
1673
|
-
function ee(t,
|
|
1644
|
+
function ee(t, r) {
|
|
1674
1645
|
var e = Object.keys(t);
|
|
1675
1646
|
if (Object.getOwnPropertySymbols) {
|
|
1676
|
-
var
|
|
1677
|
-
|
|
1647
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
1648
|
+
r && (n = n.filter(function(d) {
|
|
1678
1649
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
1679
|
-
})), e.push.apply(e,
|
|
1650
|
+
})), e.push.apply(e, n);
|
|
1680
1651
|
}
|
|
1681
1652
|
return e;
|
|
1682
1653
|
}
|
|
1683
|
-
function
|
|
1684
|
-
for (var
|
|
1685
|
-
var e = arguments[
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ee(Object(e)).forEach(function(
|
|
1689
|
-
Object.defineProperty(t,
|
|
1654
|
+
function re(t) {
|
|
1655
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1656
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
1657
|
+
r % 2 ? ee(Object(e), !0).forEach(function(n) {
|
|
1658
|
+
Zn(t, n, e[n]);
|
|
1659
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ee(Object(e)).forEach(function(n) {
|
|
1660
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
1690
1661
|
});
|
|
1691
1662
|
}
|
|
1692
1663
|
return t;
|
|
1693
1664
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1665
|
+
function Zn(t, r, e) {
|
|
1666
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
1696
1667
|
}
|
|
1697
|
-
function
|
|
1698
|
-
if (!(t instanceof
|
|
1668
|
+
function Yn(t, r) {
|
|
1669
|
+
if (!(t instanceof r))
|
|
1699
1670
|
throw new TypeError("Cannot call a class as a function");
|
|
1700
1671
|
}
|
|
1701
|
-
function
|
|
1702
|
-
for (var e = 0; e <
|
|
1703
|
-
var
|
|
1704
|
-
|
|
1672
|
+
function ne(t, r) {
|
|
1673
|
+
for (var e = 0; e < r.length; e++) {
|
|
1674
|
+
var n = r[e];
|
|
1675
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
1705
1676
|
}
|
|
1706
1677
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
1678
|
+
function zn(t, r, e) {
|
|
1679
|
+
return r && ne(t.prototype, r), e && ne(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
1709
1680
|
}
|
|
1710
|
-
var
|
|
1711
|
-
function t(
|
|
1712
|
-
if (
|
|
1681
|
+
var Ve = /* @__PURE__ */ function() {
|
|
1682
|
+
function t(r, e, n) {
|
|
1683
|
+
if (Yn(this, t), !r)
|
|
1713
1684
|
throw new TypeError("`country` or `countryCallingCode` not passed");
|
|
1714
1685
|
if (!e)
|
|
1715
1686
|
throw new TypeError("`nationalNumber` not passed");
|
|
1716
|
-
if (!
|
|
1687
|
+
if (!n)
|
|
1717
1688
|
throw new TypeError("`metadata` not passed");
|
|
1718
|
-
var d = new C(
|
|
1719
|
-
|
|
1689
|
+
var d = new C(n);
|
|
1690
|
+
Xn(r) && (this.country = r, d.country(r), r = d.countryCallingCode()), this.countryCallingCode = r, this.nationalNumber = e, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.metadata = n;
|
|
1720
1691
|
}
|
|
1721
|
-
return
|
|
1692
|
+
return zn(t, [{
|
|
1722
1693
|
key: "setExt",
|
|
1723
1694
|
value: function(e) {
|
|
1724
1695
|
this.ext = e;
|
|
@@ -1726,14 +1697,14 @@ var Ye = /* @__PURE__ */ function() {
|
|
|
1726
1697
|
}, {
|
|
1727
1698
|
key: "isPossible",
|
|
1728
1699
|
value: function() {
|
|
1729
|
-
return
|
|
1700
|
+
return xn(this, {
|
|
1730
1701
|
v2: !0
|
|
1731
1702
|
}, this.metadata);
|
|
1732
1703
|
}
|
|
1733
1704
|
}, {
|
|
1734
1705
|
key: "isValid",
|
|
1735
1706
|
value: function() {
|
|
1736
|
-
return
|
|
1707
|
+
return Ln(this, {
|
|
1737
1708
|
v2: !0
|
|
1738
1709
|
}, this.metadata);
|
|
1739
1710
|
}
|
|
@@ -1751,14 +1722,14 @@ var Ye = /* @__PURE__ */ function() {
|
|
|
1751
1722
|
}, {
|
|
1752
1723
|
key: "getType",
|
|
1753
1724
|
value: function() {
|
|
1754
|
-
return
|
|
1725
|
+
return at(this, {
|
|
1755
1726
|
v2: !0
|
|
1756
1727
|
}, this.metadata);
|
|
1757
1728
|
}
|
|
1758
1729
|
}, {
|
|
1759
1730
|
key: "format",
|
|
1760
|
-
value: function(e,
|
|
1761
|
-
return
|
|
1731
|
+
value: function(e, n) {
|
|
1732
|
+
return Wn(this, e, n ? re(re({}, n), {}, {
|
|
1762
1733
|
v2: !0
|
|
1763
1734
|
}) : {
|
|
1764
1735
|
v2: !0
|
|
@@ -1780,39 +1751,39 @@ var Ye = /* @__PURE__ */ function() {
|
|
|
1780
1751
|
return this.format("RFC3966", e);
|
|
1781
1752
|
}
|
|
1782
1753
|
}]), t;
|
|
1783
|
-
}(),
|
|
1784
|
-
return /^[A-Z]{2}$/.test(
|
|
1785
|
-
},
|
|
1786
|
-
function
|
|
1787
|
-
if (!!
|
|
1788
|
-
var d = new C(
|
|
1789
|
-
d.selectNumberingPlan(
|
|
1754
|
+
}(), Xn = function(r) {
|
|
1755
|
+
return /^[A-Z]{2}$/.test(r);
|
|
1756
|
+
}, Kn = new RegExp("([" + P + "])");
|
|
1757
|
+
function Ze(t, r, e, n) {
|
|
1758
|
+
if (!!r) {
|
|
1759
|
+
var d = new C(n);
|
|
1760
|
+
d.selectNumberingPlan(r, e);
|
|
1790
1761
|
var i = new RegExp(d.IDDPrefix());
|
|
1791
1762
|
if (t.search(i) === 0) {
|
|
1792
1763
|
t = t.slice(t.match(i)[0].length);
|
|
1793
|
-
var a = t.match(
|
|
1764
|
+
var a = t.match(Kn);
|
|
1794
1765
|
if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
|
|
1795
1766
|
return t;
|
|
1796
1767
|
}
|
|
1797
1768
|
}
|
|
1798
1769
|
}
|
|
1799
|
-
function Ct(t,
|
|
1800
|
-
if (t &&
|
|
1801
|
-
var e = new RegExp("^(?:" +
|
|
1802
|
-
if (
|
|
1803
|
-
var d, i, a =
|
|
1804
|
-
if (
|
|
1805
|
-
d = t.replace(e,
|
|
1770
|
+
function Ct(t, r) {
|
|
1771
|
+
if (t && r.numberingPlan.nationalPrefixForParsing()) {
|
|
1772
|
+
var e = new RegExp("^(?:" + r.numberingPlan.nationalPrefixForParsing() + ")"), n = e.exec(t);
|
|
1773
|
+
if (n) {
|
|
1774
|
+
var d, i, a = n.length - 1, o = a > 0 && n[a];
|
|
1775
|
+
if (r.nationalPrefixTransformRule() && o)
|
|
1776
|
+
d = t.replace(e, r.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
|
|
1806
1777
|
else {
|
|
1807
|
-
var u =
|
|
1808
|
-
d = t.slice(u.length), o && (i =
|
|
1778
|
+
var u = n[0];
|
|
1779
|
+
d = t.slice(u.length), o && (i = n[1]);
|
|
1809
1780
|
}
|
|
1810
1781
|
var $;
|
|
1811
1782
|
if (o) {
|
|
1812
|
-
var f = t.indexOf(
|
|
1813
|
-
|
|
1783
|
+
var f = t.indexOf(n[1]), s = t.slice(0, f);
|
|
1784
|
+
s === r.numberingPlan.nationalPrefix() && ($ = r.numberingPlan.nationalPrefix());
|
|
1814
1785
|
} else
|
|
1815
|
-
$ =
|
|
1786
|
+
$ = n[0];
|
|
1816
1787
|
return {
|
|
1817
1788
|
nationalNumber: d,
|
|
1818
1789
|
nationalPrefix: $,
|
|
@@ -1824,28 +1795,28 @@ function Ct(t, n) {
|
|
|
1824
1795
|
nationalNumber: t
|
|
1825
1796
|
};
|
|
1826
1797
|
}
|
|
1827
|
-
function Pt(t,
|
|
1828
|
-
var e = Ct(t,
|
|
1798
|
+
function Pt(t, r) {
|
|
1799
|
+
var e = Ct(t, r), n = e.carrierCode, d = e.nationalNumber;
|
|
1829
1800
|
if (d !== t) {
|
|
1830
|
-
if (!
|
|
1801
|
+
if (!Qn(t, d, r))
|
|
1831
1802
|
return {
|
|
1832
1803
|
nationalNumber: t
|
|
1833
1804
|
};
|
|
1834
|
-
if (
|
|
1805
|
+
if (r.possibleLengths() && !Jn(d, r))
|
|
1835
1806
|
return {
|
|
1836
1807
|
nationalNumber: t
|
|
1837
1808
|
};
|
|
1838
1809
|
}
|
|
1839
1810
|
return {
|
|
1840
1811
|
nationalNumber: d,
|
|
1841
|
-
carrierCode:
|
|
1812
|
+
carrierCode: n
|
|
1842
1813
|
};
|
|
1843
1814
|
}
|
|
1844
|
-
function
|
|
1845
|
-
return !(F(t, e.nationalNumberPattern()) && !F(
|
|
1815
|
+
function Qn(t, r, e) {
|
|
1816
|
+
return !(F(t, e.nationalNumberPattern()) && !F(r, e.nationalNumberPattern()));
|
|
1846
1817
|
}
|
|
1847
|
-
function
|
|
1848
|
-
switch (
|
|
1818
|
+
function Jn(t, r) {
|
|
1819
|
+
switch (it(t, r)) {
|
|
1849
1820
|
case "TOO_SHORT":
|
|
1850
1821
|
case "INVALID_LENGTH":
|
|
1851
1822
|
return !1;
|
|
@@ -1853,12 +1824,12 @@ function Jr(t, n) {
|
|
|
1853
1824
|
return !0;
|
|
1854
1825
|
}
|
|
1855
1826
|
}
|
|
1856
|
-
function
|
|
1857
|
-
var d =
|
|
1827
|
+
function Ye(t, r, e, n) {
|
|
1828
|
+
var d = r ? wt(r, n) : e;
|
|
1858
1829
|
if (t.indexOf(d) === 0) {
|
|
1859
|
-
|
|
1860
|
-
var i = t.slice(d.length), a = Pt(i,
|
|
1861
|
-
if (!F($,
|
|
1830
|
+
n = new C(n), n.selectNumberingPlan(r, e);
|
|
1831
|
+
var i = t.slice(d.length), a = Pt(i, n), o = a.nationalNumber, u = Pt(t, n), $ = u.nationalNumber;
|
|
1832
|
+
if (!F($, n.nationalNumberPattern()) && F(o, n.nationalNumberPattern()) || it($, n) === "TOO_LONG")
|
|
1862
1833
|
return {
|
|
1863
1834
|
countryCallingCode: d,
|
|
1864
1835
|
number: i
|
|
@@ -1868,16 +1839,16 @@ function Ke(t, n, e, r) {
|
|
|
1868
1839
|
number: t
|
|
1869
1840
|
};
|
|
1870
1841
|
}
|
|
1871
|
-
function
|
|
1842
|
+
function ze(t, r, e, n) {
|
|
1872
1843
|
if (!t)
|
|
1873
1844
|
return {};
|
|
1874
1845
|
if (t[0] !== "+") {
|
|
1875
|
-
var d =
|
|
1846
|
+
var d = Ze(t, r, e, n);
|
|
1876
1847
|
if (d && d !== t)
|
|
1877
1848
|
t = "+" + d;
|
|
1878
1849
|
else {
|
|
1879
|
-
if (
|
|
1880
|
-
var i =
|
|
1850
|
+
if (r || e) {
|
|
1851
|
+
var i = Ye(t, r, e, n), a = i.countryCallingCode, o = i.number;
|
|
1881
1852
|
if (a)
|
|
1882
1853
|
return {
|
|
1883
1854
|
countryCallingCode: a,
|
|
@@ -1891,11 +1862,11 @@ function Qe(t, n, e, r) {
|
|
|
1891
1862
|
}
|
|
1892
1863
|
if (t[1] === "0")
|
|
1893
1864
|
return {};
|
|
1894
|
-
|
|
1895
|
-
for (var u = 2; u - 1 <=
|
|
1865
|
+
n = new C(n);
|
|
1866
|
+
for (var u = 2; u - 1 <= Zr && u <= t.length; ) {
|
|
1896
1867
|
var $ = t.slice(1, u);
|
|
1897
|
-
if (
|
|
1898
|
-
return
|
|
1868
|
+
if (n.hasCallingCode($))
|
|
1869
|
+
return n.selectNumberingPlan($), {
|
|
1899
1870
|
countryCallingCode: $,
|
|
1900
1871
|
number: t.slice(u)
|
|
1901
1872
|
};
|
|
@@ -1903,246 +1874,246 @@ function Qe(t, n, e, r) {
|
|
|
1903
1874
|
}
|
|
1904
1875
|
return {};
|
|
1905
1876
|
}
|
|
1906
|
-
function
|
|
1877
|
+
function qn(t, r) {
|
|
1907
1878
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1908
1879
|
if (e)
|
|
1909
1880
|
return (e = e.call(t)).next.bind(e);
|
|
1910
|
-
if (Array.isArray(t) || (e = td(t)) ||
|
|
1881
|
+
if (Array.isArray(t) || (e = td(t)) || r && t && typeof t.length == "number") {
|
|
1911
1882
|
e && (t = e);
|
|
1912
|
-
var
|
|
1883
|
+
var n = 0;
|
|
1913
1884
|
return function() {
|
|
1914
|
-
return
|
|
1885
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
1915
1886
|
};
|
|
1916
1887
|
}
|
|
1917
1888
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1918
1889
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1919
1890
|
}
|
|
1920
|
-
function td(t,
|
|
1891
|
+
function td(t, r) {
|
|
1921
1892
|
if (!!t) {
|
|
1922
1893
|
if (typeof t == "string")
|
|
1923
|
-
return de(t,
|
|
1894
|
+
return de(t, r);
|
|
1924
1895
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1925
1896
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1926
1897
|
return Array.from(t);
|
|
1927
1898
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1928
|
-
return de(t,
|
|
1899
|
+
return de(t, r);
|
|
1929
1900
|
}
|
|
1930
1901
|
}
|
|
1931
|
-
function de(t,
|
|
1932
|
-
(
|
|
1933
|
-
for (var e = 0,
|
|
1934
|
-
|
|
1935
|
-
return
|
|
1902
|
+
function de(t, r) {
|
|
1903
|
+
(r == null || r > t.length) && (r = t.length);
|
|
1904
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
1905
|
+
n[e] = t[e];
|
|
1906
|
+
return n;
|
|
1936
1907
|
}
|
|
1937
1908
|
var ed = !1;
|
|
1938
|
-
function
|
|
1909
|
+
function Xe(t, r, e) {
|
|
1939
1910
|
if (ed && e.isNonGeographicCallingCode(t))
|
|
1940
1911
|
return "001";
|
|
1941
|
-
var
|
|
1942
|
-
if (!!
|
|
1943
|
-
return
|
|
1912
|
+
var n = e.getCountryCodesForCallingCode(t);
|
|
1913
|
+
if (!!n)
|
|
1914
|
+
return n.length === 1 ? n[0] : rd(n, r, e.metadata);
|
|
1944
1915
|
}
|
|
1945
|
-
function
|
|
1916
|
+
function rd(t, r, e) {
|
|
1946
1917
|
e = new C(e);
|
|
1947
|
-
for (var
|
|
1918
|
+
for (var n = qn(t), d; !(d = n()).done; ) {
|
|
1948
1919
|
var i = d.value;
|
|
1949
1920
|
if (e.country(i), e.leadingDigits()) {
|
|
1950
|
-
if (
|
|
1921
|
+
if (r && r.search(e.leadingDigits()) === 0)
|
|
1951
1922
|
return i;
|
|
1952
|
-
} else if (
|
|
1953
|
-
phone:
|
|
1923
|
+
} else if (at({
|
|
1924
|
+
phone: r,
|
|
1954
1925
|
country: i
|
|
1955
1926
|
}, void 0, e.metadata))
|
|
1956
1927
|
return i;
|
|
1957
1928
|
}
|
|
1958
1929
|
}
|
|
1959
|
-
var
|
|
1960
|
-
function At(t,
|
|
1961
|
-
if (
|
|
1962
|
-
throw
|
|
1963
|
-
var
|
|
1930
|
+
var nd = 250, dd = new RegExp("[" + rt + P + "]"), id = new RegExp("[^" + P + "#]+$");
|
|
1931
|
+
function At(t, r, e) {
|
|
1932
|
+
if (r = r || {}, e = new C(e), r.defaultCountry && !e.hasCountry(r.defaultCountry))
|
|
1933
|
+
throw r.v2 ? new D("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
|
|
1934
|
+
var n = od(t, r.v2, r.extract), d = n.number, i = n.ext, a = n.error;
|
|
1964
1935
|
if (!d) {
|
|
1965
|
-
if (
|
|
1936
|
+
if (r.v2)
|
|
1966
1937
|
throw a === "TOO_SHORT" ? new D("TOO_SHORT") : new D("NOT_A_NUMBER");
|
|
1967
1938
|
return {};
|
|
1968
1939
|
}
|
|
1969
|
-
var o = $d(d,
|
|
1940
|
+
var o = $d(d, r.defaultCountry, r.defaultCallingCode, e), u = o.country, $ = o.nationalNumber, f = o.countryCallingCode, s = o.carrierCode;
|
|
1970
1941
|
if (!e.hasSelectedNumberingPlan()) {
|
|
1971
|
-
if (
|
|
1942
|
+
if (r.v2)
|
|
1972
1943
|
throw new D("INVALID_COUNTRY");
|
|
1973
1944
|
return {};
|
|
1974
1945
|
}
|
|
1975
1946
|
if (!$ || $.length < Ft) {
|
|
1976
|
-
if (
|
|
1947
|
+
if (r.v2)
|
|
1977
1948
|
throw new D("TOO_SHORT");
|
|
1978
1949
|
return {};
|
|
1979
1950
|
}
|
|
1980
|
-
if ($.length >
|
|
1981
|
-
if (
|
|
1951
|
+
if ($.length > Vr) {
|
|
1952
|
+
if (r.v2)
|
|
1982
1953
|
throw new D("TOO_LONG");
|
|
1983
1954
|
return {};
|
|
1984
1955
|
}
|
|
1985
|
-
if (
|
|
1986
|
-
var
|
|
1987
|
-
return u && (
|
|
1956
|
+
if (r.v2) {
|
|
1957
|
+
var c = new Ve(f, $, e.metadata);
|
|
1958
|
+
return u && (c.country = u), s && (c.carrierCode = s), i && (c.ext = i), c;
|
|
1988
1959
|
}
|
|
1989
|
-
var h = (
|
|
1990
|
-
return
|
|
1960
|
+
var h = (r.extended ? e.hasSelectedNumberingPlan() : u) ? F($, e.nationalNumberPattern()) : !1;
|
|
1961
|
+
return r.extended ? {
|
|
1991
1962
|
country: u,
|
|
1992
1963
|
countryCallingCode: f,
|
|
1993
|
-
carrierCode:
|
|
1964
|
+
carrierCode: s,
|
|
1994
1965
|
valid: h,
|
|
1995
|
-
possible: h ? !0 : !!(
|
|
1966
|
+
possible: h ? !0 : !!(r.extended === !0 && e.possibleLengths() && Ge($, e)),
|
|
1996
1967
|
phone: $,
|
|
1997
1968
|
ext: i
|
|
1998
1969
|
} : h ? ud(u, $, i) : {};
|
|
1999
1970
|
}
|
|
2000
|
-
function ad(t,
|
|
1971
|
+
function ad(t, r, e) {
|
|
2001
1972
|
if (!!t) {
|
|
2002
|
-
if (t.length >
|
|
1973
|
+
if (t.length > nd) {
|
|
2003
1974
|
if (e)
|
|
2004
1975
|
throw new D("TOO_LONG");
|
|
2005
1976
|
return;
|
|
2006
1977
|
}
|
|
2007
|
-
if (
|
|
1978
|
+
if (r === !1)
|
|
2008
1979
|
return t;
|
|
2009
|
-
var
|
|
2010
|
-
if (!(
|
|
2011
|
-
return t.slice(
|
|
1980
|
+
var n = t.search(dd);
|
|
1981
|
+
if (!(n < 0))
|
|
1982
|
+
return t.slice(n).replace(id, "");
|
|
2012
1983
|
}
|
|
2013
1984
|
}
|
|
2014
|
-
function od(t,
|
|
1985
|
+
function od(t, r, e) {
|
|
2015
1986
|
if (t && t.indexOf("tel:") === 0)
|
|
2016
|
-
return
|
|
2017
|
-
var
|
|
2018
|
-
if (!
|
|
1987
|
+
return wn(t);
|
|
1988
|
+
var n = ad(t, e, r);
|
|
1989
|
+
if (!n)
|
|
2019
1990
|
return {};
|
|
2020
|
-
if (!
|
|
2021
|
-
return
|
|
1991
|
+
if (!J(n))
|
|
1992
|
+
return gn(n) ? {
|
|
2022
1993
|
error: "TOO_SHORT"
|
|
2023
1994
|
} : {};
|
|
2024
|
-
var d =
|
|
1995
|
+
var d = yn(n);
|
|
2025
1996
|
return d.ext ? d : {
|
|
2026
|
-
number:
|
|
1997
|
+
number: n
|
|
2027
1998
|
};
|
|
2028
1999
|
}
|
|
2029
|
-
function ud(t,
|
|
2030
|
-
var
|
|
2000
|
+
function ud(t, r, e) {
|
|
2001
|
+
var n = {
|
|
2031
2002
|
country: t,
|
|
2032
|
-
phone:
|
|
2003
|
+
phone: r
|
|
2033
2004
|
};
|
|
2034
|
-
return e && (
|
|
2005
|
+
return e && (n.ext = e), n;
|
|
2035
2006
|
}
|
|
2036
|
-
function $d(t,
|
|
2037
|
-
var d =
|
|
2007
|
+
function $d(t, r, e, n) {
|
|
2008
|
+
var d = ze(Yt(t), r, e, n.metadata), i = d.countryCallingCode, a = d.number, o;
|
|
2038
2009
|
if (i)
|
|
2039
|
-
|
|
2040
|
-
else if (a && (
|
|
2041
|
-
|
|
2010
|
+
n.selectNumberingPlan(i);
|
|
2011
|
+
else if (a && (r || e))
|
|
2012
|
+
n.selectNumberingPlan(r, e), r && (o = r), i = e || wt(r, n.metadata);
|
|
2042
2013
|
else
|
|
2043
2014
|
return {};
|
|
2044
2015
|
if (!a)
|
|
2045
2016
|
return {
|
|
2046
2017
|
countryCallingCode: i
|
|
2047
2018
|
};
|
|
2048
|
-
var u = Pt(
|
|
2049
|
-
return
|
|
2019
|
+
var u = Pt(Yt(a), n), $ = u.nationalNumber, f = u.carrierCode, s = Xe(i, $, n);
|
|
2020
|
+
return s && (o = s, s === "001" || n.country(o)), {
|
|
2050
2021
|
country: o,
|
|
2051
2022
|
countryCallingCode: i,
|
|
2052
2023
|
nationalNumber: $,
|
|
2053
2024
|
carrierCode: f
|
|
2054
2025
|
};
|
|
2055
2026
|
}
|
|
2056
|
-
function ie(t,
|
|
2027
|
+
function ie(t, r) {
|
|
2057
2028
|
var e = Object.keys(t);
|
|
2058
2029
|
if (Object.getOwnPropertySymbols) {
|
|
2059
|
-
var
|
|
2060
|
-
|
|
2030
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
2031
|
+
r && (n = n.filter(function(d) {
|
|
2061
2032
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
2062
|
-
})), e.push.apply(e,
|
|
2033
|
+
})), e.push.apply(e, n);
|
|
2063
2034
|
}
|
|
2064
2035
|
return e;
|
|
2065
2036
|
}
|
|
2066
2037
|
function ae(t) {
|
|
2067
|
-
for (var
|
|
2068
|
-
var e = arguments[
|
|
2069
|
-
|
|
2070
|
-
ld(t,
|
|
2071
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ie(Object(e)).forEach(function(
|
|
2072
|
-
Object.defineProperty(t,
|
|
2038
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2039
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
2040
|
+
r % 2 ? ie(Object(e), !0).forEach(function(n) {
|
|
2041
|
+
ld(t, n, e[n]);
|
|
2042
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ie(Object(e)).forEach(function(n) {
|
|
2043
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
2073
2044
|
});
|
|
2074
2045
|
}
|
|
2075
2046
|
return t;
|
|
2076
2047
|
}
|
|
2077
|
-
function ld(t,
|
|
2078
|
-
return
|
|
2048
|
+
function ld(t, r, e) {
|
|
2049
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
2079
2050
|
}
|
|
2080
|
-
function fd(t,
|
|
2081
|
-
return At(t, ae(ae({},
|
|
2051
|
+
function fd(t, r, e) {
|
|
2052
|
+
return At(t, ae(ae({}, r), {}, {
|
|
2082
2053
|
v2: !0
|
|
2083
2054
|
}), e);
|
|
2084
2055
|
}
|
|
2085
2056
|
function It(t) {
|
|
2086
|
-
return It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
2087
|
-
return typeof
|
|
2088
|
-
} : function(
|
|
2089
|
-
return
|
|
2057
|
+
return It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
2058
|
+
return typeof r;
|
|
2059
|
+
} : function(r) {
|
|
2060
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
2090
2061
|
}, It(t);
|
|
2091
2062
|
}
|
|
2092
|
-
function oe(t,
|
|
2063
|
+
function oe(t, r) {
|
|
2093
2064
|
var e = Object.keys(t);
|
|
2094
2065
|
if (Object.getOwnPropertySymbols) {
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2066
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
2067
|
+
r && (n = n.filter(function(d) {
|
|
2097
2068
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
2098
|
-
})), e.push.apply(e,
|
|
2069
|
+
})), e.push.apply(e, n);
|
|
2099
2070
|
}
|
|
2100
2071
|
return e;
|
|
2101
2072
|
}
|
|
2102
2073
|
function sd(t) {
|
|
2103
|
-
for (var
|
|
2104
|
-
var e = arguments[
|
|
2105
|
-
|
|
2106
|
-
cd(t,
|
|
2107
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : oe(Object(e)).forEach(function(
|
|
2108
|
-
Object.defineProperty(t,
|
|
2074
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2075
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
2076
|
+
r % 2 ? oe(Object(e), !0).forEach(function(n) {
|
|
2077
|
+
cd(t, n, e[n]);
|
|
2078
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : oe(Object(e)).forEach(function(n) {
|
|
2079
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
2109
2080
|
});
|
|
2110
2081
|
}
|
|
2111
2082
|
return t;
|
|
2112
2083
|
}
|
|
2113
|
-
function cd(t,
|
|
2114
|
-
return
|
|
2084
|
+
function cd(t, r, e) {
|
|
2085
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
2115
2086
|
}
|
|
2116
|
-
function hd(t,
|
|
2117
|
-
return pd(t) || md(t,
|
|
2087
|
+
function hd(t, r) {
|
|
2088
|
+
return pd(t) || md(t, r) || yd(t, r) || gd();
|
|
2118
2089
|
}
|
|
2119
2090
|
function gd() {
|
|
2120
2091
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2121
2092
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2122
2093
|
}
|
|
2123
|
-
function yd(t,
|
|
2094
|
+
function yd(t, r) {
|
|
2124
2095
|
if (!!t) {
|
|
2125
2096
|
if (typeof t == "string")
|
|
2126
|
-
return ue(t,
|
|
2097
|
+
return ue(t, r);
|
|
2127
2098
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2128
2099
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2129
2100
|
return Array.from(t);
|
|
2130
2101
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2131
|
-
return ue(t,
|
|
2102
|
+
return ue(t, r);
|
|
2132
2103
|
}
|
|
2133
2104
|
}
|
|
2134
|
-
function ue(t,
|
|
2135
|
-
(
|
|
2136
|
-
for (var e = 0,
|
|
2137
|
-
|
|
2138
|
-
return
|
|
2105
|
+
function ue(t, r) {
|
|
2106
|
+
(r == null || r > t.length) && (r = t.length);
|
|
2107
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
2108
|
+
n[e] = t[e];
|
|
2109
|
+
return n;
|
|
2139
2110
|
}
|
|
2140
|
-
function md(t,
|
|
2111
|
+
function md(t, r) {
|
|
2141
2112
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2142
2113
|
if (e != null) {
|
|
2143
|
-
var
|
|
2114
|
+
var n = [], d = !0, i = !1, a, o;
|
|
2144
2115
|
try {
|
|
2145
|
-
for (e = e.call(t); !(d = (a = e.next()).done) && (
|
|
2116
|
+
for (e = e.call(t); !(d = (a = e.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
|
|
2146
2117
|
;
|
|
2147
2118
|
} catch (u) {
|
|
2148
2119
|
i = !0, o = u;
|
|
@@ -2154,7 +2125,7 @@ function md(t, n) {
|
|
|
2154
2125
|
throw o;
|
|
2155
2126
|
}
|
|
2156
2127
|
}
|
|
2157
|
-
return
|
|
2128
|
+
return n;
|
|
2158
2129
|
}
|
|
2159
2130
|
}
|
|
2160
2131
|
function pd(t) {
|
|
@@ -2162,9 +2133,9 @@ function pd(t) {
|
|
|
2162
2133
|
return t;
|
|
2163
2134
|
}
|
|
2164
2135
|
function vd(t) {
|
|
2165
|
-
var
|
|
2166
|
-
if (typeof
|
|
2167
|
-
o =
|
|
2136
|
+
var r = Array.prototype.slice.call(t), e = hd(r, 4), n = e[0], d = e[1], i = e[2], a = e[3], o, u, $;
|
|
2137
|
+
if (typeof n == "string")
|
|
2138
|
+
o = n;
|
|
2168
2139
|
else
|
|
2169
2140
|
throw new TypeError("A text for parsing must be a string.");
|
|
2170
2141
|
if (!d || typeof d == "string")
|
|
@@ -2181,98 +2152,98 @@ function vd(t) {
|
|
|
2181
2152
|
metadata: $
|
|
2182
2153
|
};
|
|
2183
2154
|
}
|
|
2184
|
-
var bd = function(
|
|
2185
|
-
return It(
|
|
2155
|
+
var bd = function(r) {
|
|
2156
|
+
return It(r) === "object";
|
|
2186
2157
|
};
|
|
2187
|
-
function $e(t,
|
|
2158
|
+
function $e(t, r) {
|
|
2188
2159
|
var e = Object.keys(t);
|
|
2189
2160
|
if (Object.getOwnPropertySymbols) {
|
|
2190
|
-
var
|
|
2191
|
-
|
|
2161
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
2162
|
+
r && (n = n.filter(function(d) {
|
|
2192
2163
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
2193
|
-
})), e.push.apply(e,
|
|
2164
|
+
})), e.push.apply(e, n);
|
|
2194
2165
|
}
|
|
2195
2166
|
return e;
|
|
2196
2167
|
}
|
|
2197
2168
|
function le(t) {
|
|
2198
|
-
for (var
|
|
2199
|
-
var e = arguments[
|
|
2200
|
-
|
|
2201
|
-
Nd(t,
|
|
2202
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : $e(Object(e)).forEach(function(
|
|
2203
|
-
Object.defineProperty(t,
|
|
2169
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2170
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
2171
|
+
r % 2 ? $e(Object(e), !0).forEach(function(n) {
|
|
2172
|
+
Nd(t, n, e[n]);
|
|
2173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : $e(Object(e)).forEach(function(n) {
|
|
2174
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
2204
2175
|
});
|
|
2205
2176
|
}
|
|
2206
2177
|
return t;
|
|
2207
2178
|
}
|
|
2208
|
-
function Nd(t,
|
|
2209
|
-
return
|
|
2179
|
+
function Nd(t, r, e) {
|
|
2180
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
2210
2181
|
}
|
|
2211
|
-
function Cd(t,
|
|
2212
|
-
|
|
2182
|
+
function Cd(t, r, e) {
|
|
2183
|
+
r && r.defaultCountry && !un(r.defaultCountry, e) && (r = le(le({}, r), {}, {
|
|
2213
2184
|
defaultCountry: void 0
|
|
2214
2185
|
}));
|
|
2215
2186
|
try {
|
|
2216
|
-
return fd(t,
|
|
2217
|
-
} catch (
|
|
2218
|
-
if (!(
|
|
2219
|
-
throw
|
|
2187
|
+
return fd(t, r, e);
|
|
2188
|
+
} catch (n) {
|
|
2189
|
+
if (!(n instanceof D))
|
|
2190
|
+
throw n;
|
|
2220
2191
|
}
|
|
2221
2192
|
}
|
|
2222
|
-
function fe(t,
|
|
2193
|
+
function fe(t, r) {
|
|
2223
2194
|
var e = Object.keys(t);
|
|
2224
2195
|
if (Object.getOwnPropertySymbols) {
|
|
2225
|
-
var
|
|
2226
|
-
|
|
2196
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
2197
|
+
r && (n = n.filter(function(d) {
|
|
2227
2198
|
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
2228
|
-
})), e.push.apply(e,
|
|
2199
|
+
})), e.push.apply(e, n);
|
|
2229
2200
|
}
|
|
2230
2201
|
return e;
|
|
2231
2202
|
}
|
|
2232
2203
|
function se(t) {
|
|
2233
|
-
for (var
|
|
2234
|
-
var e = arguments[
|
|
2235
|
-
|
|
2236
|
-
Pd(t,
|
|
2237
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : fe(Object(e)).forEach(function(
|
|
2238
|
-
Object.defineProperty(t,
|
|
2204
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2205
|
+
var e = arguments[r] != null ? arguments[r] : {};
|
|
2206
|
+
r % 2 ? fe(Object(e), !0).forEach(function(n) {
|
|
2207
|
+
Pd(t, n, e[n]);
|
|
2208
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : fe(Object(e)).forEach(function(n) {
|
|
2209
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
2239
2210
|
});
|
|
2240
2211
|
}
|
|
2241
2212
|
return t;
|
|
2242
2213
|
}
|
|
2243
|
-
function Pd(t,
|
|
2244
|
-
return
|
|
2214
|
+
function Pd(t, r, e) {
|
|
2215
|
+
return r in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
2245
2216
|
}
|
|
2246
2217
|
function Ad() {
|
|
2247
|
-
var t = vd(arguments),
|
|
2218
|
+
var t = vd(arguments), r = t.text, e = t.options, n = t.metadata;
|
|
2248
2219
|
e = se(se({}, e), {}, {
|
|
2249
2220
|
extract: !1
|
|
2250
2221
|
});
|
|
2251
|
-
var d = Cd(
|
|
2222
|
+
var d = Cd(r, e, n);
|
|
2252
2223
|
return d && d.isValid() || !1;
|
|
2253
2224
|
}
|
|
2254
|
-
function Id(t,
|
|
2255
|
-
if (!(t instanceof
|
|
2225
|
+
function Id(t, r) {
|
|
2226
|
+
if (!(t instanceof r))
|
|
2256
2227
|
throw new TypeError("Cannot call a class as a function");
|
|
2257
2228
|
}
|
|
2258
|
-
function ce(t,
|
|
2259
|
-
for (var e = 0; e <
|
|
2260
|
-
var
|
|
2261
|
-
|
|
2229
|
+
function ce(t, r) {
|
|
2230
|
+
for (var e = 0; e < r.length; e++) {
|
|
2231
|
+
var n = r[e];
|
|
2232
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2262
2233
|
}
|
|
2263
2234
|
}
|
|
2264
|
-
function xd(t,
|
|
2265
|
-
return
|
|
2235
|
+
function xd(t, r, e) {
|
|
2236
|
+
return r && ce(t.prototype, r), e && ce(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2266
2237
|
}
|
|
2267
2238
|
var Sd = /* @__PURE__ */ function() {
|
|
2268
|
-
function t(
|
|
2269
|
-
var e =
|
|
2270
|
-
Id(this, t), this.onCountryChange = e, this.onCallingCodeChange =
|
|
2239
|
+
function t(r) {
|
|
2240
|
+
var e = r.onCountryChange, n = r.onCallingCodeChange;
|
|
2241
|
+
Id(this, t), this.onCountryChange = e, this.onCallingCodeChange = n;
|
|
2271
2242
|
}
|
|
2272
2243
|
return xd(t, [{
|
|
2273
2244
|
key: "reset",
|
|
2274
|
-
value: function(e,
|
|
2275
|
-
this.international = !1, this.IDDPrefix = void 0, this.missingPlus = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(e,
|
|
2245
|
+
value: function(e, n) {
|
|
2246
|
+
this.international = !1, this.IDDPrefix = void 0, this.missingPlus = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(e, n);
|
|
2276
2247
|
}
|
|
2277
2248
|
}, {
|
|
2278
2249
|
key: "resetNationalSignificantNumber",
|
|
@@ -2282,15 +2253,15 @@ var Sd = /* @__PURE__ */ function() {
|
|
|
2282
2253
|
}, {
|
|
2283
2254
|
key: "update",
|
|
2284
2255
|
value: function(e) {
|
|
2285
|
-
for (var
|
|
2286
|
-
var i = d[
|
|
2256
|
+
for (var n = 0, d = Object.keys(e); n < d.length; n++) {
|
|
2257
|
+
var i = d[n];
|
|
2287
2258
|
this[i] = e[i];
|
|
2288
2259
|
}
|
|
2289
2260
|
}
|
|
2290
2261
|
}, {
|
|
2291
2262
|
key: "initCountryAndCallingCode",
|
|
2292
|
-
value: function(e,
|
|
2293
|
-
this.setCountry(e), this.setCallingCode(
|
|
2263
|
+
value: function(e, n) {
|
|
2264
|
+
this.setCountry(e), this.setCallingCode(n);
|
|
2294
2265
|
}
|
|
2295
2266
|
}, {
|
|
2296
2267
|
key: "setCountry",
|
|
@@ -2304,8 +2275,8 @@ var Sd = /* @__PURE__ */ function() {
|
|
|
2304
2275
|
}
|
|
2305
2276
|
}, {
|
|
2306
2277
|
key: "startInternationalNumber",
|
|
2307
|
-
value: function(e,
|
|
2308
|
-
this.international = !0, this.initCountryAndCallingCode(e,
|
|
2278
|
+
value: function(e, n) {
|
|
2279
|
+
this.international = !0, this.initCountryAndCallingCode(e, n);
|
|
2309
2280
|
}
|
|
2310
2281
|
}, {
|
|
2311
2282
|
key: "appendDigits",
|
|
@@ -2329,122 +2300,122 @@ var Sd = /* @__PURE__ */ function() {
|
|
|
2329
2300
|
}
|
|
2330
2301
|
}]), t;
|
|
2331
2302
|
}();
|
|
2332
|
-
function Od(t,
|
|
2303
|
+
function Od(t, r) {
|
|
2333
2304
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2334
2305
|
if (e)
|
|
2335
2306
|
return (e = e.call(t)).next.bind(e);
|
|
2336
|
-
if (Array.isArray(t) || (e = Td(t)) ||
|
|
2307
|
+
if (Array.isArray(t) || (e = Td(t)) || r && t && typeof t.length == "number") {
|
|
2337
2308
|
e && (t = e);
|
|
2338
|
-
var
|
|
2309
|
+
var n = 0;
|
|
2339
2310
|
return function() {
|
|
2340
|
-
return
|
|
2311
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
2341
2312
|
};
|
|
2342
2313
|
}
|
|
2343
2314
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2344
2315
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2345
2316
|
}
|
|
2346
|
-
function Td(t,
|
|
2317
|
+
function Td(t, r) {
|
|
2347
2318
|
if (!!t) {
|
|
2348
2319
|
if (typeof t == "string")
|
|
2349
|
-
return he(t,
|
|
2320
|
+
return he(t, r);
|
|
2350
2321
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2351
2322
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2352
2323
|
return Array.from(t);
|
|
2353
2324
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2354
|
-
return he(t,
|
|
2325
|
+
return he(t, r);
|
|
2355
2326
|
}
|
|
2356
2327
|
}
|
|
2357
|
-
function he(t,
|
|
2358
|
-
(
|
|
2359
|
-
for (var e = 0,
|
|
2360
|
-
|
|
2361
|
-
return
|
|
2328
|
+
function he(t, r) {
|
|
2329
|
+
(r == null || r > t.length) && (r = t.length);
|
|
2330
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
2331
|
+
n[e] = t[e];
|
|
2332
|
+
return n;
|
|
2362
2333
|
}
|
|
2363
|
-
var A = "x",
|
|
2364
|
-
function X(t,
|
|
2365
|
-
if (
|
|
2334
|
+
var A = "x", gt = new RegExp(A);
|
|
2335
|
+
function X(t, r) {
|
|
2336
|
+
if (r < 1)
|
|
2366
2337
|
return "";
|
|
2367
|
-
for (var e = "";
|
|
2368
|
-
|
|
2338
|
+
for (var e = ""; r > 1; )
|
|
2339
|
+
r & 1 && (e += t), r >>= 1, t += t;
|
|
2369
2340
|
return e + t;
|
|
2370
2341
|
}
|
|
2371
|
-
function ge(t,
|
|
2372
|
-
return t[
|
|
2342
|
+
function ge(t, r) {
|
|
2343
|
+
return t[r] === ")" && r++, Ed(t.slice(0, r));
|
|
2373
2344
|
}
|
|
2374
2345
|
function Ed(t) {
|
|
2375
|
-
for (var
|
|
2376
|
-
t[e] === "(" ?
|
|
2377
|
-
var
|
|
2378
|
-
|
|
2379
|
-
for (var i = 0, a =
|
|
2346
|
+
for (var r = [], e = 0; e < t.length; )
|
|
2347
|
+
t[e] === "(" ? r.push(e) : t[e] === ")" && r.pop(), e++;
|
|
2348
|
+
var n = 0, d = "";
|
|
2349
|
+
r.push(t.length);
|
|
2350
|
+
for (var i = 0, a = r; i < a.length; i++) {
|
|
2380
2351
|
var o = a[i];
|
|
2381
|
-
d += t.slice(
|
|
2352
|
+
d += t.slice(n, o), n = o + 1;
|
|
2382
2353
|
}
|
|
2383
2354
|
return d;
|
|
2384
2355
|
}
|
|
2385
|
-
function Fd(t,
|
|
2386
|
-
for (var
|
|
2356
|
+
function Fd(t, r, e) {
|
|
2357
|
+
for (var n = Od(e.split("")), d; !(d = n()).done; ) {
|
|
2387
2358
|
var i = d.value;
|
|
2388
|
-
if (t.slice(
|
|
2359
|
+
if (t.slice(r + 1).search(gt) < 0)
|
|
2389
2360
|
return;
|
|
2390
|
-
|
|
2361
|
+
r = t.search(gt), t = t.replace(gt, i);
|
|
2391
2362
|
}
|
|
2392
|
-
return [t,
|
|
2363
|
+
return [t, r];
|
|
2393
2364
|
}
|
|
2394
|
-
function wd(t,
|
|
2395
|
-
var
|
|
2365
|
+
function wd(t, r, e) {
|
|
2366
|
+
var n = e.metadata, d = e.shouldTryNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(r.pattern(), ")$"));
|
|
2396
2367
|
if (a.test(t.nationalSignificantNumber))
|
|
2397
|
-
return Md(t,
|
|
2398
|
-
metadata:
|
|
2368
|
+
return Md(t, r, {
|
|
2369
|
+
metadata: n,
|
|
2399
2370
|
shouldTryNationalPrefixFormattingRule: d,
|
|
2400
2371
|
getSeparatorAfterNationalPrefix: i
|
|
2401
2372
|
});
|
|
2402
2373
|
}
|
|
2403
|
-
function Dd(t,
|
|
2404
|
-
return
|
|
2374
|
+
function Dd(t, r) {
|
|
2375
|
+
return it(t, r) === "IS_POSSIBLE";
|
|
2405
2376
|
}
|
|
2406
|
-
function Md(t,
|
|
2407
|
-
var
|
|
2408
|
-
if (t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode, d(
|
|
2409
|
-
var a = ye(t,
|
|
2377
|
+
function Md(t, r, e) {
|
|
2378
|
+
var n = e.metadata, d = e.shouldTryNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix;
|
|
2379
|
+
if (t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode, d(r)) {
|
|
2380
|
+
var a = ye(t, r, {
|
|
2410
2381
|
useNationalPrefixFormattingRule: !0,
|
|
2411
2382
|
getSeparatorAfterNationalPrefix: i,
|
|
2412
|
-
metadata:
|
|
2383
|
+
metadata: n
|
|
2413
2384
|
});
|
|
2414
2385
|
if (a)
|
|
2415
2386
|
return a;
|
|
2416
2387
|
}
|
|
2417
|
-
return ye(t,
|
|
2388
|
+
return ye(t, r, {
|
|
2418
2389
|
useNationalPrefixFormattingRule: !1,
|
|
2419
2390
|
getSeparatorAfterNationalPrefix: i,
|
|
2420
|
-
metadata:
|
|
2391
|
+
metadata: n
|
|
2421
2392
|
});
|
|
2422
2393
|
}
|
|
2423
|
-
function ye(t,
|
|
2424
|
-
var
|
|
2394
|
+
function ye(t, r, e) {
|
|
2395
|
+
var n = e.metadata, d = e.useNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix, a = He(t.nationalSignificantNumber, r, {
|
|
2425
2396
|
carrierCode: t.carrierCode,
|
|
2426
2397
|
useInternationalFormat: t.international,
|
|
2427
2398
|
withNationalPrefix: d,
|
|
2428
|
-
metadata:
|
|
2399
|
+
metadata: n
|
|
2429
2400
|
});
|
|
2430
|
-
if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(
|
|
2401
|
+
if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(r) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)), Rd(a, t))
|
|
2431
2402
|
return a;
|
|
2432
2403
|
}
|
|
2433
|
-
function Rd(t,
|
|
2434
|
-
return
|
|
2404
|
+
function Rd(t, r) {
|
|
2405
|
+
return q(t) === r.getNationalDigits();
|
|
2435
2406
|
}
|
|
2436
|
-
function _d(t,
|
|
2437
|
-
if (!(t instanceof
|
|
2407
|
+
function _d(t, r) {
|
|
2408
|
+
if (!(t instanceof r))
|
|
2438
2409
|
throw new TypeError("Cannot call a class as a function");
|
|
2439
2410
|
}
|
|
2440
|
-
function me(t,
|
|
2441
|
-
for (var e = 0; e <
|
|
2442
|
-
var
|
|
2443
|
-
|
|
2411
|
+
function me(t, r) {
|
|
2412
|
+
for (var e = 0; e < r.length; e++) {
|
|
2413
|
+
var n = r[e];
|
|
2414
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2444
2415
|
}
|
|
2445
2416
|
}
|
|
2446
|
-
function Ld(t,
|
|
2447
|
-
return
|
|
2417
|
+
function Ld(t, r, e) {
|
|
2418
|
+
return r && me(t.prototype, r), e && me(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2448
2419
|
}
|
|
2449
2420
|
var kd = /* @__PURE__ */ function() {
|
|
2450
2421
|
function t() {
|
|
@@ -2458,11 +2429,11 @@ var kd = /* @__PURE__ */ function() {
|
|
|
2458
2429
|
instructions: []
|
|
2459
2430
|
}], this.parsePattern(e), this.context.length !== 1)
|
|
2460
2431
|
throw new Error("Non-finalized contexts left when pattern parse ended");
|
|
2461
|
-
var
|
|
2432
|
+
var n = this.context[0], d = n.branches, i = n.instructions;
|
|
2462
2433
|
if (d)
|
|
2463
2434
|
return {
|
|
2464
2435
|
op: "|",
|
|
2465
|
-
args: d.concat([
|
|
2436
|
+
args: d.concat([yt(i)])
|
|
2466
2437
|
};
|
|
2467
2438
|
if (i.length === 0)
|
|
2468
2439
|
throw new Error("Pattern is required");
|
|
@@ -2488,14 +2459,14 @@ var kd = /* @__PURE__ */ function() {
|
|
|
2488
2459
|
value: function(e) {
|
|
2489
2460
|
if (!e)
|
|
2490
2461
|
throw new Error("Pattern is required");
|
|
2491
|
-
var
|
|
2492
|
-
if (!
|
|
2462
|
+
var n = e.match(Bd);
|
|
2463
|
+
if (!n) {
|
|
2493
2464
|
if (Gd.test(e))
|
|
2494
2465
|
throw new Error("Illegal characters found in a pattern: ".concat(e));
|
|
2495
2466
|
this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
|
|
2496
2467
|
return;
|
|
2497
2468
|
}
|
|
2498
|
-
var d =
|
|
2469
|
+
var d = n[1], i = e.slice(0, n.index), a = e.slice(n.index + d.length);
|
|
2499
2470
|
switch (d) {
|
|
2500
2471
|
case "(?:":
|
|
2501
2472
|
i && this.parsePattern(i), this.startContext({
|
|
@@ -2510,7 +2481,7 @@ var kd = /* @__PURE__ */ function() {
|
|
|
2510
2481
|
if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
|
|
2511
2482
|
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
2512
2483
|
var o = this.getContext(), u = o.branches;
|
|
2513
|
-
u.push(
|
|
2484
|
+
u.push(yt(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
2514
2485
|
op: "|",
|
|
2515
2486
|
args: u
|
|
2516
2487
|
});
|
|
@@ -2523,7 +2494,7 @@ var kd = /* @__PURE__ */ function() {
|
|
|
2523
2494
|
this.getContext().branches = [];
|
|
2524
2495
|
else
|
|
2525
2496
|
throw new Error('"branches" not found in an "or" group context');
|
|
2526
|
-
this.getContext().branches.push(
|
|
2497
|
+
this.getContext().branches.push(yt(this.getContext().instructions)), this.getContext().instructions = [];
|
|
2527
2498
|
break;
|
|
2528
2499
|
case "[":
|
|
2529
2500
|
i && this.parsePattern(i), this.startContext({
|
|
@@ -2546,76 +2517,76 @@ var kd = /* @__PURE__ */ function() {
|
|
|
2546
2517
|
}]), t;
|
|
2547
2518
|
}();
|
|
2548
2519
|
function jd(t) {
|
|
2549
|
-
for (var
|
|
2520
|
+
for (var r = [], e = 0; e < t.length; ) {
|
|
2550
2521
|
if (t[e] === "-") {
|
|
2551
2522
|
if (e === 0 || e === t.length - 1)
|
|
2552
2523
|
throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
|
|
2553
|
-
for (var
|
|
2554
|
-
|
|
2524
|
+
for (var n = t[e - 1].charCodeAt(0) + 1, d = t[e + 1].charCodeAt(0) - 1, i = n; i <= d; )
|
|
2525
|
+
r.push(String.fromCharCode(i)), i++;
|
|
2555
2526
|
} else
|
|
2556
|
-
|
|
2527
|
+
r.push(t[e]);
|
|
2557
2528
|
e++;
|
|
2558
2529
|
}
|
|
2559
|
-
return
|
|
2530
|
+
return r;
|
|
2560
2531
|
}
|
|
2561
2532
|
var Gd = /[\(\)\[\]\?\:\|]/, Bd = new RegExp(
|
|
2562
2533
|
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
2563
2534
|
);
|
|
2564
|
-
function
|
|
2535
|
+
function yt(t) {
|
|
2565
2536
|
return t.length === 1 ? t[0] : t;
|
|
2566
2537
|
}
|
|
2567
|
-
function pe(t,
|
|
2538
|
+
function pe(t, r) {
|
|
2568
2539
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2569
2540
|
if (e)
|
|
2570
2541
|
return (e = e.call(t)).next.bind(e);
|
|
2571
|
-
if (Array.isArray(t) || (e = Ud(t)) ||
|
|
2542
|
+
if (Array.isArray(t) || (e = Ud(t)) || r && t && typeof t.length == "number") {
|
|
2572
2543
|
e && (t = e);
|
|
2573
|
-
var
|
|
2544
|
+
var n = 0;
|
|
2574
2545
|
return function() {
|
|
2575
|
-
return
|
|
2546
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
2576
2547
|
};
|
|
2577
2548
|
}
|
|
2578
2549
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2579
2550
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2580
2551
|
}
|
|
2581
|
-
function Ud(t,
|
|
2552
|
+
function Ud(t, r) {
|
|
2582
2553
|
if (!!t) {
|
|
2583
2554
|
if (typeof t == "string")
|
|
2584
|
-
return ve(t,
|
|
2555
|
+
return ve(t, r);
|
|
2585
2556
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2586
2557
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2587
2558
|
return Array.from(t);
|
|
2588
2559
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2589
|
-
return ve(t,
|
|
2560
|
+
return ve(t, r);
|
|
2590
2561
|
}
|
|
2591
2562
|
}
|
|
2592
|
-
function ve(t,
|
|
2593
|
-
(
|
|
2594
|
-
for (var e = 0,
|
|
2595
|
-
|
|
2596
|
-
return
|
|
2563
|
+
function ve(t, r) {
|
|
2564
|
+
(r == null || r > t.length) && (r = t.length);
|
|
2565
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
2566
|
+
n[e] = t[e];
|
|
2567
|
+
return n;
|
|
2597
2568
|
}
|
|
2598
|
-
function Wd(t,
|
|
2599
|
-
if (!(t instanceof
|
|
2569
|
+
function Wd(t, r) {
|
|
2570
|
+
if (!(t instanceof r))
|
|
2600
2571
|
throw new TypeError("Cannot call a class as a function");
|
|
2601
2572
|
}
|
|
2602
|
-
function be(t,
|
|
2603
|
-
for (var e = 0; e <
|
|
2604
|
-
var
|
|
2605
|
-
|
|
2573
|
+
function be(t, r) {
|
|
2574
|
+
for (var e = 0; e < r.length; e++) {
|
|
2575
|
+
var n = r[e];
|
|
2576
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2606
2577
|
}
|
|
2607
2578
|
}
|
|
2608
|
-
function Hd(t,
|
|
2609
|
-
return
|
|
2579
|
+
function Hd(t, r, e) {
|
|
2580
|
+
return r && be(t.prototype, r), e && be(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2610
2581
|
}
|
|
2611
2582
|
var Vd = /* @__PURE__ */ function() {
|
|
2612
|
-
function t(
|
|
2613
|
-
Wd(this, t), this.matchTree = new kd().parse(
|
|
2583
|
+
function t(r) {
|
|
2584
|
+
Wd(this, t), this.matchTree = new kd().parse(r);
|
|
2614
2585
|
}
|
|
2615
2586
|
return Hd(t, [{
|
|
2616
2587
|
key: "match",
|
|
2617
2588
|
value: function(e) {
|
|
2618
|
-
var
|
|
2589
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
|
|
2619
2590
|
if (!e)
|
|
2620
2591
|
throw new Error("String is required");
|
|
2621
2592
|
var i = xt(e.split(""), this.matchTree, !0);
|
|
@@ -2624,30 +2595,30 @@ var Vd = /* @__PURE__ */ function() {
|
|
|
2624
2595
|
}
|
|
2625
2596
|
}]), t;
|
|
2626
2597
|
}();
|
|
2627
|
-
function xt(t,
|
|
2628
|
-
if (typeof
|
|
2629
|
-
var
|
|
2630
|
-
return
|
|
2598
|
+
function xt(t, r, e) {
|
|
2599
|
+
if (typeof r == "string") {
|
|
2600
|
+
var n = t.join("");
|
|
2601
|
+
return r.indexOf(n) === 0 ? t.length === r.length ? {
|
|
2631
2602
|
match: !0,
|
|
2632
2603
|
matchedChars: t
|
|
2633
2604
|
} : {
|
|
2634
2605
|
partialMatch: !0
|
|
2635
|
-
} :
|
|
2606
|
+
} : n.indexOf(r) === 0 ? e && t.length > r.length ? {
|
|
2636
2607
|
overflow: !0
|
|
2637
2608
|
} : {
|
|
2638
2609
|
match: !0,
|
|
2639
|
-
matchedChars: t.slice(0,
|
|
2610
|
+
matchedChars: t.slice(0, r.length)
|
|
2640
2611
|
} : void 0;
|
|
2641
2612
|
}
|
|
2642
|
-
if (Array.isArray(
|
|
2643
|
-
for (var d = t.slice(), i = 0; i <
|
|
2644
|
-
var a =
|
|
2613
|
+
if (Array.isArray(r)) {
|
|
2614
|
+
for (var d = t.slice(), i = 0; i < r.length; ) {
|
|
2615
|
+
var a = r[i], o = xt(d, a, e && i === r.length - 1);
|
|
2645
2616
|
if (o) {
|
|
2646
2617
|
if (o.overflow)
|
|
2647
2618
|
return o;
|
|
2648
2619
|
if (o.match) {
|
|
2649
2620
|
if (d = d.slice(o.matchedChars.length), d.length === 0)
|
|
2650
|
-
return i ===
|
|
2621
|
+
return i === r.length - 1 ? {
|
|
2651
2622
|
match: !0,
|
|
2652
2623
|
matchedChars: t
|
|
2653
2624
|
} : {
|
|
@@ -2672,32 +2643,32 @@ function xt(t, n, e) {
|
|
|
2672
2643
|
matchedChars: t.slice(0, t.length - d.length)
|
|
2673
2644
|
};
|
|
2674
2645
|
}
|
|
2675
|
-
switch (
|
|
2646
|
+
switch (r.op) {
|
|
2676
2647
|
case "|":
|
|
2677
|
-
for (var u, $ = pe(
|
|
2678
|
-
var
|
|
2679
|
-
if (
|
|
2680
|
-
if (
|
|
2681
|
-
return
|
|
2682
|
-
if (
|
|
2648
|
+
for (var u, $ = pe(r.args), f; !(f = $()).done; ) {
|
|
2649
|
+
var s = f.value, c = xt(t, s, e);
|
|
2650
|
+
if (c) {
|
|
2651
|
+
if (c.overflow)
|
|
2652
|
+
return c;
|
|
2653
|
+
if (c.match)
|
|
2683
2654
|
return {
|
|
2684
2655
|
match: !0,
|
|
2685
|
-
matchedChars:
|
|
2656
|
+
matchedChars: c.matchedChars
|
|
2686
2657
|
};
|
|
2687
|
-
if (
|
|
2658
|
+
if (c.partialMatch)
|
|
2688
2659
|
u = !0;
|
|
2689
2660
|
else
|
|
2690
2661
|
throw new Error(`Unsupported match result:
|
|
2691
|
-
`.concat(JSON.stringify(
|
|
2662
|
+
`.concat(JSON.stringify(c, null, 2)));
|
|
2692
2663
|
}
|
|
2693
2664
|
}
|
|
2694
2665
|
return u ? {
|
|
2695
2666
|
partialMatch: !0
|
|
2696
2667
|
} : void 0;
|
|
2697
2668
|
case "[]":
|
|
2698
|
-
for (var h = pe(
|
|
2699
|
-
var
|
|
2700
|
-
if (t[0] ===
|
|
2669
|
+
for (var h = pe(r.args), g; !(g = h()).done; ) {
|
|
2670
|
+
var N = g.value;
|
|
2671
|
+
if (t[0] === N)
|
|
2701
2672
|
return t.length === 1 ? {
|
|
2702
2673
|
match: !0,
|
|
2703
2674
|
matchedChars: t
|
|
@@ -2705,90 +2676,90 @@ function xt(t, n, e) {
|
|
|
2705
2676
|
overflow: !0
|
|
2706
2677
|
} : {
|
|
2707
2678
|
match: !0,
|
|
2708
|
-
matchedChars: [
|
|
2679
|
+
matchedChars: [N]
|
|
2709
2680
|
};
|
|
2710
2681
|
}
|
|
2711
2682
|
return;
|
|
2712
2683
|
default:
|
|
2713
|
-
throw new Error("Unsupported instruction tree: ".concat(
|
|
2684
|
+
throw new Error("Unsupported instruction tree: ".concat(r));
|
|
2714
2685
|
}
|
|
2715
2686
|
}
|
|
2716
|
-
function Ne(t,
|
|
2687
|
+
function Ne(t, r) {
|
|
2717
2688
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2718
2689
|
if (e)
|
|
2719
2690
|
return (e = e.call(t)).next.bind(e);
|
|
2720
|
-
if (Array.isArray(t) || (e = Zd(t)) ||
|
|
2691
|
+
if (Array.isArray(t) || (e = Zd(t)) || r && t && typeof t.length == "number") {
|
|
2721
2692
|
e && (t = e);
|
|
2722
|
-
var
|
|
2693
|
+
var n = 0;
|
|
2723
2694
|
return function() {
|
|
2724
|
-
return
|
|
2695
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
|
2725
2696
|
};
|
|
2726
2697
|
}
|
|
2727
2698
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2728
2699
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2729
2700
|
}
|
|
2730
|
-
function Zd(t,
|
|
2701
|
+
function Zd(t, r) {
|
|
2731
2702
|
if (!!t) {
|
|
2732
2703
|
if (typeof t == "string")
|
|
2733
|
-
return Ce(t,
|
|
2704
|
+
return Ce(t, r);
|
|
2734
2705
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2735
2706
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2736
2707
|
return Array.from(t);
|
|
2737
2708
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2738
|
-
return Ce(t,
|
|
2709
|
+
return Ce(t, r);
|
|
2739
2710
|
}
|
|
2740
2711
|
}
|
|
2741
|
-
function Ce(t,
|
|
2742
|
-
(
|
|
2743
|
-
for (var e = 0,
|
|
2744
|
-
|
|
2745
|
-
return
|
|
2712
|
+
function Ce(t, r) {
|
|
2713
|
+
(r == null || r > t.length) && (r = t.length);
|
|
2714
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
2715
|
+
n[e] = t[e];
|
|
2716
|
+
return n;
|
|
2746
2717
|
}
|
|
2747
|
-
function
|
|
2748
|
-
if (!(t instanceof
|
|
2718
|
+
function Yd(t, r) {
|
|
2719
|
+
if (!(t instanceof r))
|
|
2749
2720
|
throw new TypeError("Cannot call a class as a function");
|
|
2750
2721
|
}
|
|
2751
|
-
function Pe(t,
|
|
2752
|
-
for (var e = 0; e <
|
|
2753
|
-
var
|
|
2754
|
-
|
|
2722
|
+
function Pe(t, r) {
|
|
2723
|
+
for (var e = 0; e < r.length; e++) {
|
|
2724
|
+
var n = r[e];
|
|
2725
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2755
2726
|
}
|
|
2756
2727
|
}
|
|
2757
|
-
function
|
|
2758
|
-
return
|
|
2728
|
+
function zd(t, r, e) {
|
|
2729
|
+
return r && Pe(t.prototype, r), e && Pe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2759
2730
|
}
|
|
2760
2731
|
var St = "9", Xd = 15, Kd = X(St, Xd), Qd = /[- ]/, Jd = function() {
|
|
2761
2732
|
return /\[([^\[\]])*\]/g;
|
|
2762
2733
|
}, qd = function() {
|
|
2763
2734
|
return /\d(?=[^,}][^,}])/g;
|
|
2764
|
-
},
|
|
2765
|
-
function t(
|
|
2766
|
-
|
|
2767
|
-
var e =
|
|
2768
|
-
|
|
2735
|
+
}, t1 = new RegExp("[" + I + "]*\\$1[" + I + "]*(\\$\\d[" + I + "]*)*$"), Ae = 3, e1 = /* @__PURE__ */ function() {
|
|
2736
|
+
function t(r) {
|
|
2737
|
+
r.state;
|
|
2738
|
+
var e = r.metadata;
|
|
2739
|
+
Yd(this, t), this.metadata = e, this.resetFormat();
|
|
2769
2740
|
}
|
|
2770
|
-
return
|
|
2741
|
+
return zd(t, [{
|
|
2771
2742
|
key: "resetFormat",
|
|
2772
2743
|
value: function() {
|
|
2773
2744
|
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
2774
2745
|
}
|
|
2775
2746
|
}, {
|
|
2776
2747
|
key: "reset",
|
|
2777
|
-
value: function(e,
|
|
2778
|
-
this.resetFormat(), e ? (this.isNANP = e.callingCode() === "1", this.matchingFormats = e.formats(),
|
|
2748
|
+
value: function(e, n) {
|
|
2749
|
+
this.resetFormat(), e ? (this.isNANP = e.callingCode() === "1", this.matchingFormats = e.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
|
|
2779
2750
|
}
|
|
2780
2751
|
}, {
|
|
2781
2752
|
key: "format",
|
|
2782
|
-
value: function(e,
|
|
2753
|
+
value: function(e, n) {
|
|
2783
2754
|
var d = this;
|
|
2784
|
-
if (Dd(
|
|
2755
|
+
if (Dd(n.nationalSignificantNumber, this.metadata))
|
|
2785
2756
|
for (var i = Ne(this.matchingFormats), a; !(a = i()).done; ) {
|
|
2786
|
-
var o = a.value, u = wd(
|
|
2757
|
+
var o = a.value, u = wd(n, o, {
|
|
2787
2758
|
metadata: this.metadata,
|
|
2788
2759
|
shouldTryNationalPrefixFormattingRule: function(f) {
|
|
2789
2760
|
return d.shouldTryNationalPrefixFormattingRule(f, {
|
|
2790
|
-
international:
|
|
2791
|
-
nationalPrefix:
|
|
2761
|
+
international: n.international,
|
|
2762
|
+
nationalPrefix: n.nationalPrefix
|
|
2792
2763
|
});
|
|
2793
2764
|
},
|
|
2794
2765
|
getSeparatorAfterNationalPrefix: function(f) {
|
|
@@ -2796,59 +2767,59 @@ var St = "9", Xd = 15, Kd = X(St, Xd), Qd = /[- ]/, Jd = function() {
|
|
|
2796
2767
|
}
|
|
2797
2768
|
});
|
|
2798
2769
|
if (u)
|
|
2799
|
-
return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, A),
|
|
2770
|
+
return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, A), n), this.populatedNationalNumberTemplate = u, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(A), u;
|
|
2800
2771
|
}
|
|
2801
|
-
return this.formatNationalNumberWithNextDigits(e,
|
|
2772
|
+
return this.formatNationalNumberWithNextDigits(e, n);
|
|
2802
2773
|
}
|
|
2803
2774
|
}, {
|
|
2804
2775
|
key: "formatNationalNumberWithNextDigits",
|
|
2805
|
-
value: function(e,
|
|
2806
|
-
var d = this.chosenFormat, i = this.chooseFormat(
|
|
2776
|
+
value: function(e, n) {
|
|
2777
|
+
var d = this.chosenFormat, i = this.chooseFormat(n);
|
|
2807
2778
|
if (i)
|
|
2808
|
-
return i === d ? this.formatNextNationalNumberDigits(e) : this.formatNextNationalNumberDigits(
|
|
2779
|
+
return i === d ? this.formatNextNationalNumberDigits(e) : this.formatNextNationalNumberDigits(n.getNationalDigits());
|
|
2809
2780
|
}
|
|
2810
2781
|
}, {
|
|
2811
2782
|
key: "narrowDownMatchingFormats",
|
|
2812
2783
|
value: function(e) {
|
|
2813
|
-
var
|
|
2784
|
+
var n = this, d = e.nationalSignificantNumber, i = e.nationalPrefix, a = e.international, o = d, u = o.length - Ae;
|
|
2814
2785
|
u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function($) {
|
|
2815
|
-
return
|
|
2786
|
+
return n.formatSuits($, a, i) && n.formatMatches($, o, u);
|
|
2816
2787
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
2817
2788
|
}
|
|
2818
2789
|
}, {
|
|
2819
2790
|
key: "formatSuits",
|
|
2820
|
-
value: function(e,
|
|
2821
|
-
return !(d && !e.usesNationalPrefix() && !e.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !
|
|
2791
|
+
value: function(e, n, d) {
|
|
2792
|
+
return !(d && !e.usesNationalPrefix() && !e.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
|
|
2822
2793
|
}
|
|
2823
2794
|
}, {
|
|
2824
2795
|
key: "formatMatches",
|
|
2825
|
-
value: function(e,
|
|
2796
|
+
value: function(e, n, d) {
|
|
2826
2797
|
var i = e.leadingDigitsPatterns().length;
|
|
2827
2798
|
if (i === 0)
|
|
2828
2799
|
return !0;
|
|
2829
2800
|
d = Math.min(d, i - 1);
|
|
2830
2801
|
var a = e.leadingDigitsPatterns()[d];
|
|
2831
|
-
if (
|
|
2802
|
+
if (n.length < Ae)
|
|
2832
2803
|
try {
|
|
2833
|
-
return new Vd(a).match(
|
|
2804
|
+
return new Vd(a).match(n, {
|
|
2834
2805
|
allowOverflow: !0
|
|
2835
2806
|
}) !== void 0;
|
|
2836
2807
|
} catch (o) {
|
|
2837
2808
|
return console.error(o), !0;
|
|
2838
2809
|
}
|
|
2839
|
-
return new RegExp("^(".concat(a, ")")).test(
|
|
2810
|
+
return new RegExp("^(".concat(a, ")")).test(n);
|
|
2840
2811
|
}
|
|
2841
2812
|
}, {
|
|
2842
2813
|
key: "getFormatFormat",
|
|
2843
|
-
value: function(e,
|
|
2844
|
-
return
|
|
2814
|
+
value: function(e, n) {
|
|
2815
|
+
return n ? e.internationalFormat() : e.format();
|
|
2845
2816
|
}
|
|
2846
2817
|
}, {
|
|
2847
2818
|
key: "chooseFormat",
|
|
2848
2819
|
value: function(e) {
|
|
2849
|
-
for (var
|
|
2820
|
+
for (var n = this, d = function() {
|
|
2850
2821
|
var $ = a.value;
|
|
2851
|
-
return
|
|
2822
|
+
return n.chosenFormat === $ ? "break" : t1.test(n.getFormatFormat($, e.international)) ? n.createTemplateForFormat($, e) ? (n.chosenFormat = $, "break") : (n.matchingFormats = n.matchingFormats.filter(function(f) {
|
|
2852
2823
|
return f !== $;
|
|
2853
2824
|
}), "continue") : "continue";
|
|
2854
2825
|
}, i = Ne(this.matchingFormats.slice()), a; !(a = i()).done; ) {
|
|
@@ -2860,11 +2831,11 @@ var St = "9", Xd = 15, Kd = X(St, Xd), Qd = /[- ]/, Jd = function() {
|
|
|
2860
2831
|
}
|
|
2861
2832
|
}, {
|
|
2862
2833
|
key: "createTemplateForFormat",
|
|
2863
|
-
value: function(e,
|
|
2834
|
+
value: function(e, n) {
|
|
2864
2835
|
if (!(e.pattern().indexOf("|") >= 0)) {
|
|
2865
|
-
var d = this.getTemplateForFormat(e,
|
|
2836
|
+
var d = this.getTemplateForFormat(e, n);
|
|
2866
2837
|
if (d)
|
|
2867
|
-
return this.setNationalNumberTemplate(d,
|
|
2838
|
+
return this.setNationalNumberTemplate(d, n), !0;
|
|
2868
2839
|
}
|
|
2869
2840
|
}
|
|
2870
2841
|
}, {
|
|
@@ -2874,63 +2845,63 @@ var St = "9", Xd = 15, Kd = X(St, Xd), Qd = /[- ]/, Jd = function() {
|
|
|
2874
2845
|
}
|
|
2875
2846
|
}, {
|
|
2876
2847
|
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
2877
|
-
value: function(e,
|
|
2848
|
+
value: function(e, n) {
|
|
2878
2849
|
var d = e.IDDPrefix, i = e.missingPlus;
|
|
2879
|
-
return d ?
|
|
2850
|
+
return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
|
|
2880
2851
|
}
|
|
2881
2852
|
}, {
|
|
2882
2853
|
key: "getTemplate",
|
|
2883
2854
|
value: function(e) {
|
|
2884
2855
|
if (!!this.template) {
|
|
2885
|
-
for (var
|
|
2856
|
+
for (var n = -1, d = 0, i = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, {
|
|
2886
2857
|
spacing: !1
|
|
2887
2858
|
}) : ""; d < i.length + e.getDigitsWithoutInternationalPrefix().length; )
|
|
2888
|
-
|
|
2889
|
-
return ge(this.template,
|
|
2859
|
+
n = this.template.indexOf(A, n + 1), d++;
|
|
2860
|
+
return ge(this.template, n + 1);
|
|
2890
2861
|
}
|
|
2891
2862
|
}
|
|
2892
2863
|
}, {
|
|
2893
2864
|
key: "setNationalNumberTemplate",
|
|
2894
|
-
value: function(e,
|
|
2895
|
-
this.nationalNumberTemplate = e, this.populatedNationalNumberTemplate = e, this.populatedNationalNumberTemplatePosition = -1,
|
|
2865
|
+
value: function(e, n) {
|
|
2866
|
+
this.nationalNumberTemplate = e, this.populatedNationalNumberTemplate = e, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, A) + X(A, n.callingCode.length) + " " + e : this.template = e;
|
|
2896
2867
|
}
|
|
2897
2868
|
}, {
|
|
2898
2869
|
key: "getTemplateForFormat",
|
|
2899
|
-
value: function(e,
|
|
2900
|
-
var d =
|
|
2870
|
+
value: function(e, n) {
|
|
2871
|
+
var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.complexPrefixBeforeNationalSignificantNumber, u = e.pattern();
|
|
2901
2872
|
u = u.replace(Jd(), "\\d").replace(qd(), "\\d");
|
|
2902
2873
|
var $ = Kd.match(u)[0];
|
|
2903
2874
|
if (!(d.length > $.length)) {
|
|
2904
|
-
var f = new RegExp("^" + u + "$"),
|
|
2905
|
-
f.test(
|
|
2906
|
-
var
|
|
2875
|
+
var f = new RegExp("^" + u + "$"), s = d.replace(/\d/g, St);
|
|
2876
|
+
f.test(s) && ($ = s);
|
|
2877
|
+
var c = this.getFormatFormat(e, i), h;
|
|
2907
2878
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
2908
2879
|
international: i,
|
|
2909
2880
|
nationalPrefix: a
|
|
2910
2881
|
})) {
|
|
2911
|
-
var
|
|
2912
|
-
if (
|
|
2913
|
-
for (var
|
|
2914
|
-
|
|
2882
|
+
var g = c.replace(We, e.nationalPrefixFormattingRule());
|
|
2883
|
+
if (q(e.nationalPrefixFormattingRule()) === (a || "") + q("$1") && (c = g, h = !0, a))
|
|
2884
|
+
for (var N = a.length; N > 0; )
|
|
2885
|
+
c = c.replace(/\d/, A), N--;
|
|
2915
2886
|
}
|
|
2916
|
-
var y = $.replace(new RegExp(u),
|
|
2917
|
-
return h || (o ? y = X(A, o.length) + " " + y : a && (y = X(A, a.length) + this.getSeparatorAfterNationalPrefix(e) + y)), i && (y =
|
|
2887
|
+
var y = $.replace(new RegExp(u), c).replace(new RegExp(St, "g"), A);
|
|
2888
|
+
return h || (o ? y = X(A, o.length) + " " + y : a && (y = X(A, a.length) + this.getSeparatorAfterNationalPrefix(e) + y)), i && (y = Ue(y)), y;
|
|
2918
2889
|
}
|
|
2919
2890
|
}
|
|
2920
2891
|
}, {
|
|
2921
2892
|
key: "formatNextNationalNumberDigits",
|
|
2922
2893
|
value: function(e) {
|
|
2923
|
-
var
|
|
2924
|
-
if (!
|
|
2894
|
+
var n = Fd(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
2895
|
+
if (!n) {
|
|
2925
2896
|
this.resetFormat();
|
|
2926
2897
|
return;
|
|
2927
2898
|
}
|
|
2928
|
-
return this.populatedNationalNumberTemplate =
|
|
2899
|
+
return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], ge(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
2929
2900
|
}
|
|
2930
2901
|
}, {
|
|
2931
2902
|
key: "shouldTryNationalPrefixFormattingRule",
|
|
2932
|
-
value: function(e,
|
|
2933
|
-
var d =
|
|
2903
|
+
value: function(e, n) {
|
|
2904
|
+
var d = n.international, i = n.nationalPrefix;
|
|
2934
2905
|
if (e.nationalPrefixFormattingRule()) {
|
|
2935
2906
|
var a = e.usesNationalPrefix();
|
|
2936
2907
|
if (a && i || !a && !d)
|
|
@@ -2939,36 +2910,36 @@ var St = "9", Xd = 15, Kd = X(St, Xd), Qd = /[- ]/, Jd = function() {
|
|
|
2939
2910
|
}
|
|
2940
2911
|
}]), t;
|
|
2941
2912
|
}();
|
|
2942
|
-
function
|
|
2943
|
-
return
|
|
2913
|
+
function Ke(t, r) {
|
|
2914
|
+
return i1(t) || d1(t, r) || n1(t, r) || r1();
|
|
2944
2915
|
}
|
|
2945
|
-
function
|
|
2916
|
+
function r1() {
|
|
2946
2917
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2947
2918
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2948
2919
|
}
|
|
2949
|
-
function
|
|
2920
|
+
function n1(t, r) {
|
|
2950
2921
|
if (!!t) {
|
|
2951
2922
|
if (typeof t == "string")
|
|
2952
|
-
return Ie(t,
|
|
2923
|
+
return Ie(t, r);
|
|
2953
2924
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2954
2925
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2955
2926
|
return Array.from(t);
|
|
2956
2927
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2957
|
-
return Ie(t,
|
|
2928
|
+
return Ie(t, r);
|
|
2958
2929
|
}
|
|
2959
2930
|
}
|
|
2960
|
-
function Ie(t,
|
|
2961
|
-
(
|
|
2962
|
-
for (var e = 0,
|
|
2963
|
-
|
|
2964
|
-
return
|
|
2931
|
+
function Ie(t, r) {
|
|
2932
|
+
(r == null || r > t.length) && (r = t.length);
|
|
2933
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
2934
|
+
n[e] = t[e];
|
|
2935
|
+
return n;
|
|
2965
2936
|
}
|
|
2966
|
-
function
|
|
2937
|
+
function d1(t, r) {
|
|
2967
2938
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2968
2939
|
if (e != null) {
|
|
2969
|
-
var
|
|
2940
|
+
var n = [], d = !0, i = !1, a, o;
|
|
2970
2941
|
try {
|
|
2971
|
-
for (e = e.call(t); !(d = (a = e.next()).done) && (
|
|
2942
|
+
for (e = e.call(t); !(d = (a = e.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
|
|
2972
2943
|
;
|
|
2973
2944
|
} catch (u) {
|
|
2974
2945
|
i = !0, o = u;
|
|
@@ -2980,63 +2951,63 @@ function di(t, n) {
|
|
|
2980
2951
|
throw o;
|
|
2981
2952
|
}
|
|
2982
2953
|
}
|
|
2983
|
-
return
|
|
2954
|
+
return n;
|
|
2984
2955
|
}
|
|
2985
2956
|
}
|
|
2986
|
-
function
|
|
2957
|
+
function i1(t) {
|
|
2987
2958
|
if (Array.isArray(t))
|
|
2988
2959
|
return t;
|
|
2989
2960
|
}
|
|
2990
|
-
function
|
|
2991
|
-
if (!(t instanceof
|
|
2961
|
+
function a1(t, r) {
|
|
2962
|
+
if (!(t instanceof r))
|
|
2992
2963
|
throw new TypeError("Cannot call a class as a function");
|
|
2993
2964
|
}
|
|
2994
|
-
function xe(t,
|
|
2995
|
-
for (var e = 0; e <
|
|
2996
|
-
var
|
|
2997
|
-
|
|
2965
|
+
function xe(t, r) {
|
|
2966
|
+
for (var e = 0; e < r.length; e++) {
|
|
2967
|
+
var n = r[e];
|
|
2968
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2998
2969
|
}
|
|
2999
2970
|
}
|
|
3000
|
-
function
|
|
3001
|
-
return
|
|
2971
|
+
function o1(t, r, e) {
|
|
2972
|
+
return r && xe(t.prototype, r), e && xe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3002
2973
|
}
|
|
3003
|
-
var
|
|
3004
|
-
function t(
|
|
3005
|
-
var e =
|
|
3006
|
-
|
|
2974
|
+
var u1 = "[" + I + P + "]+", $1 = new RegExp("^" + u1 + "$", "i"), l1 = "(?:[" + rt + "][" + I + P + "]*|[" + I + P + "]+)", f1 = new RegExp("[^" + I + P + "]+.*$"), s1 = /[^\d\[\]]/, c1 = /* @__PURE__ */ function() {
|
|
2975
|
+
function t(r) {
|
|
2976
|
+
var e = r.defaultCountry, n = r.defaultCallingCode, d = r.metadata, i = r.onNationalSignificantNumberChange;
|
|
2977
|
+
a1(this, t), this.defaultCountry = e, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
|
|
3007
2978
|
}
|
|
3008
|
-
return
|
|
2979
|
+
return o1(t, [{
|
|
3009
2980
|
key: "input",
|
|
3010
|
-
value: function(e,
|
|
3011
|
-
var d =
|
|
3012
|
-
return o && (
|
|
2981
|
+
value: function(e, n) {
|
|
2982
|
+
var d = y1(e), i = Ke(d, 2), a = i[0], o = i[1], u = q(a), $;
|
|
2983
|
+
return o && (n.digits || (n.startInternationalNumber(), u || ($ = !0))), u && this.inputDigits(u, n), {
|
|
3013
2984
|
digits: u,
|
|
3014
2985
|
justLeadingPlus: $
|
|
3015
2986
|
};
|
|
3016
2987
|
}
|
|
3017
2988
|
}, {
|
|
3018
2989
|
key: "inputDigits",
|
|
3019
|
-
value: function(e,
|
|
3020
|
-
var d =
|
|
3021
|
-
if (
|
|
3022
|
-
if (!this.extractCountryCallingCode(
|
|
2990
|
+
value: function(e, n) {
|
|
2991
|
+
var d = n.digits, i = d.length < 3 && d.length + e.length >= 3;
|
|
2992
|
+
if (n.appendDigits(e), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
|
|
2993
|
+
if (!this.extractCountryCallingCode(n))
|
|
3023
2994
|
return;
|
|
3024
2995
|
} else
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
return
|
|
2996
|
+
n.appendNationalSignificantNumberDigits(e);
|
|
2997
|
+
n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
|
|
2998
|
+
return n.update(a);
|
|
3028
2999
|
});
|
|
3029
3000
|
}
|
|
3030
3001
|
}, {
|
|
3031
3002
|
key: "isWaitingForCountryCallingCode",
|
|
3032
3003
|
value: function(e) {
|
|
3033
|
-
var
|
|
3034
|
-
return
|
|
3004
|
+
var n = e.international, d = e.callingCode;
|
|
3005
|
+
return n && !d;
|
|
3035
3006
|
}
|
|
3036
3007
|
}, {
|
|
3037
3008
|
key: "extractCountryCallingCode",
|
|
3038
3009
|
value: function(e) {
|
|
3039
|
-
var
|
|
3010
|
+
var n = ze("+" + e.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
|
|
3040
3011
|
if (d)
|
|
3041
3012
|
return e.setCallingCode(d), e.update({
|
|
3042
3013
|
nationalSignificantNumber: i
|
|
@@ -3047,34 +3018,34 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3047
3018
|
value: function(e) {
|
|
3048
3019
|
if (e) {
|
|
3049
3020
|
this.hasSelectedNumberingPlan = !0;
|
|
3050
|
-
var
|
|
3051
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber =
|
|
3021
|
+
var n = e._nationalPrefixForParsing();
|
|
3022
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = n && s1.test(n);
|
|
3052
3023
|
} else
|
|
3053
3024
|
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
3054
3025
|
}
|
|
3055
3026
|
}, {
|
|
3056
3027
|
key: "extractNationalSignificantNumber",
|
|
3057
|
-
value: function(e,
|
|
3028
|
+
value: function(e, n) {
|
|
3058
3029
|
if (!!this.hasSelectedNumberingPlan) {
|
|
3059
3030
|
var d = Ct(e, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
|
|
3060
3031
|
if (a !== e)
|
|
3061
|
-
return this.onExtractedNationalNumber(i, o, a, e,
|
|
3032
|
+
return this.onExtractedNationalNumber(i, o, a, e, n), !0;
|
|
3062
3033
|
}
|
|
3063
3034
|
}
|
|
3064
3035
|
}, {
|
|
3065
3036
|
key: "extractAnotherNationalSignificantNumber",
|
|
3066
|
-
value: function(e,
|
|
3037
|
+
value: function(e, n, d) {
|
|
3067
3038
|
if (!this.hasExtractedNationalSignificantNumber)
|
|
3068
3039
|
return this.extractNationalSignificantNumber(e, d);
|
|
3069
3040
|
if (!!this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
3070
3041
|
var i = Ct(e, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, u = i.carrierCode;
|
|
3071
|
-
if (o !==
|
|
3042
|
+
if (o !== n)
|
|
3072
3043
|
return this.onExtractedNationalNumber(a, u, o, e, d), !0;
|
|
3073
3044
|
}
|
|
3074
3045
|
}
|
|
3075
3046
|
}, {
|
|
3076
3047
|
key: "onExtractedNationalNumber",
|
|
3077
|
-
value: function(e,
|
|
3048
|
+
value: function(e, n, d, i, a) {
|
|
3078
3049
|
var o, u, $ = i.lastIndexOf(d);
|
|
3079
3050
|
if ($ >= 0 && $ === i.length - d.length) {
|
|
3080
3051
|
u = !0;
|
|
@@ -3083,7 +3054,7 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3083
3054
|
}
|
|
3084
3055
|
a({
|
|
3085
3056
|
nationalPrefix: e,
|
|
3086
|
-
carrierCode:
|
|
3057
|
+
carrierCode: n,
|
|
3087
3058
|
nationalSignificantNumber: d,
|
|
3088
3059
|
nationalSignificantNumberMatchesInput: u,
|
|
3089
3060
|
complexPrefixBeforeNationalSignificantNumber: o
|
|
@@ -3092,8 +3063,8 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3092
3063
|
}, {
|
|
3093
3064
|
key: "reExtractNationalSignificantNumber",
|
|
3094
3065
|
value: function(e) {
|
|
3095
|
-
if (this.extractAnotherNationalSignificantNumber(e.getNationalDigits(), e.nationalSignificantNumber, function(
|
|
3096
|
-
return e.update(
|
|
3066
|
+
if (this.extractAnotherNationalSignificantNumber(e.getNationalDigits(), e.nationalSignificantNumber, function(n) {
|
|
3067
|
+
return e.update(n);
|
|
3097
3068
|
}))
|
|
3098
3069
|
return !0;
|
|
3099
3070
|
if (this.extractIddPrefix(e))
|
|
@@ -3104,9 +3075,9 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3104
3075
|
}, {
|
|
3105
3076
|
key: "extractIddPrefix",
|
|
3106
3077
|
value: function(e) {
|
|
3107
|
-
var
|
|
3108
|
-
if (e.nationalSignificantNumber, !(
|
|
3109
|
-
var a =
|
|
3078
|
+
var n = e.international, d = e.IDDPrefix, i = e.digits;
|
|
3079
|
+
if (e.nationalSignificantNumber, !(n || d)) {
|
|
3080
|
+
var a = Ze(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
3110
3081
|
if (a !== void 0 && a !== i)
|
|
3111
3082
|
return e.update({
|
|
3112
3083
|
IDDPrefix: i.slice(0, i.length - a.length)
|
|
@@ -3120,8 +3091,8 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3120
3091
|
key: "fixMissingPlus",
|
|
3121
3092
|
value: function(e) {
|
|
3122
3093
|
if (!e.international) {
|
|
3123
|
-
var
|
|
3124
|
-
if (
|
|
3094
|
+
var n = Ye(e.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
|
|
3095
|
+
if (n.number, d)
|
|
3125
3096
|
return e.update({
|
|
3126
3097
|
missingPlus: !0
|
|
3127
3098
|
}), this.startInternationalNumber(e, {
|
|
@@ -3132,72 +3103,72 @@ var ui = "[" + I + P + "]+", $i = new RegExp("^" + ui + "$", "i"), li = "(?:[" +
|
|
|
3132
3103
|
}
|
|
3133
3104
|
}, {
|
|
3134
3105
|
key: "startInternationalNumber",
|
|
3135
|
-
value: function(e,
|
|
3136
|
-
var d =
|
|
3106
|
+
value: function(e, n) {
|
|
3107
|
+
var d = n.country, i = n.callingCode;
|
|
3137
3108
|
e.startInternationalNumber(d, i), e.nationalSignificantNumber && (e.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
|
|
3138
3109
|
}
|
|
3139
3110
|
}, {
|
|
3140
3111
|
key: "extractCallingCodeAndNationalSignificantNumber",
|
|
3141
3112
|
value: function(e) {
|
|
3142
|
-
this.extractCountryCallingCode(e) && this.extractNationalSignificantNumber(e.getNationalDigits(), function(
|
|
3143
|
-
return e.update(
|
|
3113
|
+
this.extractCountryCallingCode(e) && this.extractNationalSignificantNumber(e.getNationalDigits(), function(n) {
|
|
3114
|
+
return e.update(n);
|
|
3144
3115
|
});
|
|
3145
3116
|
}
|
|
3146
3117
|
}]), t;
|
|
3147
3118
|
}();
|
|
3148
|
-
function
|
|
3149
|
-
var
|
|
3150
|
-
if (!(
|
|
3151
|
-
t = t.slice(
|
|
3119
|
+
function h1(t) {
|
|
3120
|
+
var r = t.search(l1);
|
|
3121
|
+
if (!(r < 0)) {
|
|
3122
|
+
t = t.slice(r);
|
|
3152
3123
|
var e;
|
|
3153
|
-
return t[0] === "+" && (e = !0, t = t.slice(1)), t = t.replace(
|
|
3124
|
+
return t[0] === "+" && (e = !0, t = t.slice(1)), t = t.replace(f1, ""), e && (t = "+" + t), t;
|
|
3154
3125
|
}
|
|
3155
3126
|
}
|
|
3156
|
-
function
|
|
3157
|
-
var
|
|
3158
|
-
return
|
|
3127
|
+
function g1(t) {
|
|
3128
|
+
var r = h1(t) || "";
|
|
3129
|
+
return r[0] === "+" ? [r.slice(1), !0] : [r];
|
|
3159
3130
|
}
|
|
3160
|
-
function
|
|
3161
|
-
var
|
|
3162
|
-
return $
|
|
3131
|
+
function y1(t) {
|
|
3132
|
+
var r = g1(t), e = Ke(r, 2), n = e[0], d = e[1];
|
|
3133
|
+
return $1.test(n) || (n = ""), [n, d];
|
|
3163
3134
|
}
|
|
3164
3135
|
function Ot(t) {
|
|
3165
|
-
return Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
3166
|
-
return typeof
|
|
3167
|
-
} : function(
|
|
3168
|
-
return
|
|
3136
|
+
return Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
3137
|
+
return typeof r;
|
|
3138
|
+
} : function(r) {
|
|
3139
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
3169
3140
|
}, Ot(t);
|
|
3170
3141
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3142
|
+
function m1(t, r) {
|
|
3143
|
+
return N1(t) || b1(t, r) || v1(t, r) || p1();
|
|
3173
3144
|
}
|
|
3174
|
-
function
|
|
3145
|
+
function p1() {
|
|
3175
3146
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3176
3147
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3177
3148
|
}
|
|
3178
|
-
function
|
|
3149
|
+
function v1(t, r) {
|
|
3179
3150
|
if (!!t) {
|
|
3180
3151
|
if (typeof t == "string")
|
|
3181
|
-
return Se(t,
|
|
3152
|
+
return Se(t, r);
|
|
3182
3153
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
3183
3154
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
3184
3155
|
return Array.from(t);
|
|
3185
3156
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
3186
|
-
return Se(t,
|
|
3157
|
+
return Se(t, r);
|
|
3187
3158
|
}
|
|
3188
3159
|
}
|
|
3189
|
-
function Se(t,
|
|
3190
|
-
(
|
|
3191
|
-
for (var e = 0,
|
|
3192
|
-
|
|
3193
|
-
return
|
|
3160
|
+
function Se(t, r) {
|
|
3161
|
+
(r == null || r > t.length) && (r = t.length);
|
|
3162
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
3163
|
+
n[e] = t[e];
|
|
3164
|
+
return n;
|
|
3194
3165
|
}
|
|
3195
|
-
function
|
|
3166
|
+
function b1(t, r) {
|
|
3196
3167
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3197
3168
|
if (e != null) {
|
|
3198
|
-
var
|
|
3169
|
+
var n = [], d = !0, i = !1, a, o;
|
|
3199
3170
|
try {
|
|
3200
|
-
for (e = e.call(t); !(d = (a = e.next()).done) && (
|
|
3171
|
+
for (e = e.call(t); !(d = (a = e.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
|
|
3201
3172
|
;
|
|
3202
3173
|
} catch (u) {
|
|
3203
3174
|
i = !0, o = u;
|
|
@@ -3209,42 +3180,42 @@ function bi(t, n) {
|
|
|
3209
3180
|
throw o;
|
|
3210
3181
|
}
|
|
3211
3182
|
}
|
|
3212
|
-
return
|
|
3183
|
+
return n;
|
|
3213
3184
|
}
|
|
3214
3185
|
}
|
|
3215
|
-
function
|
|
3186
|
+
function N1(t) {
|
|
3216
3187
|
if (Array.isArray(t))
|
|
3217
3188
|
return t;
|
|
3218
3189
|
}
|
|
3219
|
-
function
|
|
3220
|
-
if (!(t instanceof
|
|
3190
|
+
function C1(t, r) {
|
|
3191
|
+
if (!(t instanceof r))
|
|
3221
3192
|
throw new TypeError("Cannot call a class as a function");
|
|
3222
3193
|
}
|
|
3223
|
-
function Oe(t,
|
|
3224
|
-
for (var e = 0; e <
|
|
3225
|
-
var
|
|
3226
|
-
|
|
3194
|
+
function Oe(t, r) {
|
|
3195
|
+
for (var e = 0; e < r.length; e++) {
|
|
3196
|
+
var n = r[e];
|
|
3197
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
3227
3198
|
}
|
|
3228
3199
|
}
|
|
3229
|
-
function
|
|
3230
|
-
return
|
|
3200
|
+
function P1(t, r, e) {
|
|
3201
|
+
return r && Oe(t.prototype, r), e && Oe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3231
3202
|
}
|
|
3232
|
-
var
|
|
3233
|
-
function t(
|
|
3234
|
-
|
|
3235
|
-
var
|
|
3203
|
+
var Qe = /* @__PURE__ */ function() {
|
|
3204
|
+
function t(r, e) {
|
|
3205
|
+
C1(this, t), this.metadata = new C(e);
|
|
3206
|
+
var n = this.getCountryAndCallingCode(r), d = m1(n, 2), i = d[0], a = d[1];
|
|
3236
3207
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
3237
3208
|
}
|
|
3238
|
-
return
|
|
3209
|
+
return P1(t, [{
|
|
3239
3210
|
key: "getCountryAndCallingCode",
|
|
3240
3211
|
value: function(e) {
|
|
3241
|
-
var
|
|
3242
|
-
return e && (Ot(e) === "object" ? (
|
|
3212
|
+
var n, d;
|
|
3213
|
+
return e && (Ot(e) === "object" ? (n = e.defaultCountry, d = e.defaultCallingCode) : n = e), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
|
|
3243
3214
|
}
|
|
3244
3215
|
}, {
|
|
3245
3216
|
key: "input",
|
|
3246
3217
|
value: function(e) {
|
|
3247
|
-
var
|
|
3218
|
+
var n = this.parser.input(e, this.state), d = n.digits, i = n.justLeadingPlus;
|
|
3248
3219
|
if (i)
|
|
3249
3220
|
this.formattedOutput = "+";
|
|
3250
3221
|
else if (d) {
|
|
@@ -3270,10 +3241,10 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3270
3241
|
onCallingCodeChange: function(d, i) {
|
|
3271
3242
|
e.metadata.selectNumberingPlan(i, d), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
3272
3243
|
}
|
|
3273
|
-
}), this.formatter = new
|
|
3244
|
+
}), this.formatter = new e1({
|
|
3274
3245
|
state: this.state,
|
|
3275
3246
|
metadata: this.metadata
|
|
3276
|
-
}), this.parser = new
|
|
3247
|
+
}), this.parser = new c1({
|
|
3277
3248
|
defaultCountry: this.defaultCountry,
|
|
3278
3249
|
defaultCallingCode: this.defaultCallingCode,
|
|
3279
3250
|
metadata: this.metadata,
|
|
@@ -3320,10 +3291,10 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3320
3291
|
}, {
|
|
3321
3292
|
key: "getFullNumber",
|
|
3322
3293
|
value: function(e) {
|
|
3323
|
-
var
|
|
3294
|
+
var n = this;
|
|
3324
3295
|
if (this.isInternational()) {
|
|
3325
3296
|
var d = function(o) {
|
|
3326
|
-
return
|
|
3297
|
+
return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
|
|
3327
3298
|
spacing: !!o
|
|
3328
3299
|
}) + o;
|
|
3329
3300
|
}, i = this.state.callingCode;
|
|
@@ -3334,7 +3305,7 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3334
3305
|
}, {
|
|
3335
3306
|
key: "getNonFormattedNationalNumberWithPrefix",
|
|
3336
3307
|
value: function() {
|
|
3337
|
-
var e = this.state,
|
|
3308
|
+
var e = this.state, n = e.nationalSignificantNumber, d = e.complexPrefixBeforeNationalSignificantNumber, i = e.nationalPrefix, a = n, o = d || i;
|
|
3338
3309
|
return o && (a = o + a), a;
|
|
3339
3310
|
}
|
|
3340
3311
|
}, {
|
|
@@ -3353,21 +3324,21 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3353
3324
|
}, {
|
|
3354
3325
|
key: "isCountryCallingCodeAmbiguous",
|
|
3355
3326
|
value: function() {
|
|
3356
|
-
var e = this.state.callingCode,
|
|
3357
|
-
return
|
|
3327
|
+
var e = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(e);
|
|
3328
|
+
return n && n.length > 1;
|
|
3358
3329
|
}
|
|
3359
3330
|
}, {
|
|
3360
3331
|
key: "determineTheCountry",
|
|
3361
3332
|
value: function() {
|
|
3362
|
-
this.state.setCountry(
|
|
3333
|
+
this.state.setCountry(Xe(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, this.state.nationalSignificantNumber, this.metadata));
|
|
3363
3334
|
}
|
|
3364
3335
|
}, {
|
|
3365
3336
|
key: "getNumberValue",
|
|
3366
3337
|
value: function() {
|
|
3367
|
-
var e = this.state,
|
|
3368
|
-
if (!!
|
|
3338
|
+
var e = this.state, n = e.digits, d = e.callingCode, i = e.country, a = e.nationalSignificantNumber;
|
|
3339
|
+
if (!!n) {
|
|
3369
3340
|
if (this.isInternational())
|
|
3370
|
-
return d ? "+" + d + a : "+" +
|
|
3341
|
+
return d ? "+" + d + a : "+" + n;
|
|
3371
3342
|
if (i || d) {
|
|
3372
3343
|
var o = i ? this.metadata.countryCallingCode() : d;
|
|
3373
3344
|
return "+" + o + a;
|
|
@@ -3377,9 +3348,9 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3377
3348
|
}, {
|
|
3378
3349
|
key: "getNumber",
|
|
3379
3350
|
value: function() {
|
|
3380
|
-
var e = this.state,
|
|
3381
|
-
if (!!
|
|
3382
|
-
var o = new
|
|
3351
|
+
var e = this.state, n = e.nationalSignificantNumber, d = e.carrierCode, i = e.callingCode, a = this._getCountry();
|
|
3352
|
+
if (!!n && !(!a && !i)) {
|
|
3353
|
+
var o = new Ve(a || i, n, this.metadata.metadata);
|
|
3383
3354
|
return d && (o.carrierCode = d), o;
|
|
3384
3355
|
}
|
|
3385
3356
|
}
|
|
@@ -3412,51 +3383,51 @@ var tn = /* @__PURE__ */ function() {
|
|
|
3412
3383
|
}
|
|
3413
3384
|
}]), t;
|
|
3414
3385
|
}();
|
|
3415
|
-
function
|
|
3416
|
-
return
|
|
3386
|
+
function Z1() {
|
|
3387
|
+
return De(Ad, arguments);
|
|
3417
3388
|
}
|
|
3418
3389
|
function G(t) {
|
|
3419
|
-
return
|
|
3390
|
+
return Qe.call(this, t, Et);
|
|
3420
3391
|
}
|
|
3421
|
-
G.prototype = Object.create(
|
|
3392
|
+
G.prototype = Object.create(Qe.prototype, {});
|
|
3422
3393
|
G.prototype.constructor = G;
|
|
3423
|
-
function
|
|
3424
|
-
return
|
|
3425
|
-
return typeof
|
|
3426
|
-
} : function(
|
|
3427
|
-
return
|
|
3428
|
-
},
|
|
3394
|
+
function et(t) {
|
|
3395
|
+
return et = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
3396
|
+
return typeof r;
|
|
3397
|
+
} : function(r) {
|
|
3398
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
3399
|
+
}, et(t);
|
|
3429
3400
|
}
|
|
3430
|
-
function
|
|
3431
|
-
return
|
|
3401
|
+
function A1(t, r) {
|
|
3402
|
+
return O1(t) || S1(t, r) || x1(t, r) || I1();
|
|
3432
3403
|
}
|
|
3433
|
-
function
|
|
3404
|
+
function I1() {
|
|
3434
3405
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3435
3406
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3436
3407
|
}
|
|
3437
|
-
function
|
|
3408
|
+
function x1(t, r) {
|
|
3438
3409
|
if (!!t) {
|
|
3439
3410
|
if (typeof t == "string")
|
|
3440
|
-
return Te(t,
|
|
3411
|
+
return Te(t, r);
|
|
3441
3412
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
3442
3413
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
3443
3414
|
return Array.from(t);
|
|
3444
3415
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
3445
|
-
return Te(t,
|
|
3416
|
+
return Te(t, r);
|
|
3446
3417
|
}
|
|
3447
3418
|
}
|
|
3448
|
-
function Te(t,
|
|
3449
|
-
(
|
|
3450
|
-
for (var e = 0,
|
|
3451
|
-
|
|
3452
|
-
return
|
|
3419
|
+
function Te(t, r) {
|
|
3420
|
+
(r == null || r > t.length) && (r = t.length);
|
|
3421
|
+
for (var e = 0, n = new Array(r); e < r; e++)
|
|
3422
|
+
n[e] = t[e];
|
|
3423
|
+
return n;
|
|
3453
3424
|
}
|
|
3454
|
-
function
|
|
3425
|
+
function S1(t, r) {
|
|
3455
3426
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3456
3427
|
if (e != null) {
|
|
3457
|
-
var
|
|
3428
|
+
var n = [], d = !0, i = !1, a, o;
|
|
3458
3429
|
try {
|
|
3459
|
-
for (e = e.call(t); !(d = (a = e.next()).done) && (
|
|
3430
|
+
for (e = e.call(t); !(d = (a = e.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
|
|
3460
3431
|
;
|
|
3461
3432
|
} catch (u) {
|
|
3462
3433
|
i = !0, o = u;
|
|
@@ -3468,25 +3439,25 @@ function Si(t, n) {
|
|
|
3468
3439
|
throw o;
|
|
3469
3440
|
}
|
|
3470
3441
|
}
|
|
3471
|
-
return
|
|
3442
|
+
return n;
|
|
3472
3443
|
}
|
|
3473
3444
|
}
|
|
3474
|
-
function
|
|
3445
|
+
function O1(t) {
|
|
3475
3446
|
if (Array.isArray(t))
|
|
3476
3447
|
return t;
|
|
3477
3448
|
}
|
|
3478
|
-
function
|
|
3479
|
-
var t =
|
|
3480
|
-
return
|
|
3449
|
+
function T1() {
|
|
3450
|
+
var t = E1(arguments), r = t.input, e = t.options, n = t.metadata;
|
|
3451
|
+
return at(r, e, n);
|
|
3481
3452
|
}
|
|
3482
|
-
function
|
|
3483
|
-
var
|
|
3484
|
-
if (typeof
|
|
3485
|
-
|
|
3453
|
+
function E1(t) {
|
|
3454
|
+
var r = Array.prototype.slice.call(t), e = A1(r, 4), n = e[0], d = e[1], i = e[2], a = e[3], o, u = {}, $;
|
|
3455
|
+
if (typeof n == "string")
|
|
3456
|
+
et(d) !== "object" ? (a ? (u = i, $ = a) : $ = i, J(n) ? o = At(n, {
|
|
3486
3457
|
defaultCountry: d
|
|
3487
|
-
}, $) : o = {}) : (i ? (u = d, $ = i) : $ = d,
|
|
3488
|
-
else if (
|
|
3489
|
-
o =
|
|
3458
|
+
}, $) : o = {}) : (i ? (u = d, $ = i) : $ = d, J(n) ? o = At(n, void 0, $) : o = {});
|
|
3459
|
+
else if (F1(n))
|
|
3460
|
+
o = n, i ? (u = d, $ = i) : $ = d;
|
|
3490
3461
|
else
|
|
3491
3462
|
throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");
|
|
3492
3463
|
return {
|
|
@@ -3495,31 +3466,31 @@ function Ei(t) {
|
|
|
3495
3466
|
metadata: $
|
|
3496
3467
|
};
|
|
3497
3468
|
}
|
|
3498
|
-
var
|
|
3499
|
-
return
|
|
3469
|
+
var F1 = function(r) {
|
|
3470
|
+
return et(r) === "object";
|
|
3500
3471
|
};
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3472
|
+
function Y1() {
|
|
3473
|
+
return De(T1, arguments);
|
|
3503
3474
|
}
|
|
3504
|
-
function
|
|
3505
|
-
const { defaultCountry:
|
|
3475
|
+
function mt(t) {
|
|
3476
|
+
const { defaultCountry: r, initialValue: e, disableFormatting: n, forceCallingCode: d } = t, i = r ? `+${j[r]?.[0]}` : "", a = new G(r);
|
|
3506
3477
|
let o = a.input(e);
|
|
3507
|
-
d && o === "+" &&
|
|
3478
|
+
d && o === "+" && r && (o = `+${j[r]?.[0]}`);
|
|
3508
3479
|
const u = a.getNumberValue();
|
|
3509
|
-
return
|
|
3480
|
+
return n && u && (o = u), {
|
|
3510
3481
|
inputValue: o || i,
|
|
3511
|
-
isoCode: a.getCountry() ||
|
|
3482
|
+
isoCode: a.getCountry() || r || null
|
|
3512
3483
|
};
|
|
3513
3484
|
}
|
|
3514
|
-
function
|
|
3515
|
-
const { excludedCountries: e, onlyCountries:
|
|
3516
|
-
return !(E(e, !0) && e.includes(t) || E(
|
|
3485
|
+
function w1(t, r) {
|
|
3486
|
+
const { excludedCountries: e, onlyCountries: n, continents: d } = r;
|
|
3487
|
+
return !(E(e, !0) && e.includes(t) || E(n) && !n.includes(t) || E(d) && !Tr(d, t));
|
|
3517
3488
|
}
|
|
3518
|
-
function
|
|
3489
|
+
function D1({
|
|
3519
3490
|
value: t,
|
|
3520
|
-
onChange:
|
|
3491
|
+
onChange: r,
|
|
3521
3492
|
defaultCountry: e,
|
|
3522
|
-
onlyCountries:
|
|
3493
|
+
onlyCountries: n,
|
|
3523
3494
|
excludedCountries: d,
|
|
3524
3495
|
continents: i,
|
|
3525
3496
|
disableFormatting: a,
|
|
@@ -3527,213 +3498,210 @@ function Di({
|
|
|
3527
3498
|
}) {
|
|
3528
3499
|
const u = p.useRef(
|
|
3529
3500
|
e || null
|
|
3530
|
-
), $ = p.useRef(new G(e)), f = p.useRef(null), [
|
|
3501
|
+
), $ = p.useRef(new G(e)), f = p.useRef(null), [s, c] = p.useState(e), [h, g] = p.useState(() => mt({
|
|
3531
3502
|
initialValue: t,
|
|
3532
3503
|
defaultCountry: e,
|
|
3533
3504
|
disableFormatting: a,
|
|
3534
3505
|
forceCallingCode: o
|
|
3535
|
-
})), [
|
|
3506
|
+
})), [N, y] = p.useState(t), S = (l) => ({
|
|
3536
3507
|
countryCallingCode: $.current.getCallingCode() || null,
|
|
3537
3508
|
countryCode: $.current.getCountry() || null,
|
|
3538
3509
|
nationalNumber: $.current.getNationalNumber(),
|
|
3539
3510
|
numberType: $.current.getNumber()?.getType() ?? null,
|
|
3540
3511
|
numberValue: $.current.getNumberValue() || null,
|
|
3541
3512
|
reason: l
|
|
3542
|
-
}), B = (l) => l &&
|
|
3543
|
-
onlyCountries:
|
|
3513
|
+
}), B = (l) => l && w1(l, {
|
|
3514
|
+
onlyCountries: n,
|
|
3544
3515
|
excludedCountries: d,
|
|
3545
3516
|
continents: i
|
|
3546
|
-
}), U = (l) => ($.current.reset(), $.current.input(l)),
|
|
3547
|
-
const x = o ?
|
|
3517
|
+
}), U = (l) => ($.current.reset(), $.current.input(l)), ot = (l) => l.startsWith("+") || l === "" ? l : `+${l}`, ut = (l, x) => `+${K(x)}${l}`, $t = (l) => {
|
|
3518
|
+
const x = o ? ut(
|
|
3548
3519
|
l.target.value,
|
|
3549
3520
|
h.isoCode
|
|
3550
|
-
) :
|
|
3551
|
-
u.current = T,
|
|
3521
|
+
) : ot(l.target.value), O = U(x), w = $.current.getCountry(), T = o ? h.isoCode : w || u.current, b = $.current.getNumberValue() || "";
|
|
3522
|
+
u.current = T, b && (!T || !B(T)) ? (r?.(b, {
|
|
3552
3523
|
...S("input"),
|
|
3553
3524
|
countryCode: null,
|
|
3554
3525
|
countryCallingCode: null,
|
|
3555
3526
|
nationalNumber: null
|
|
3556
|
-
}), y(
|
|
3527
|
+
}), y(b), g({
|
|
3557
3528
|
isoCode: null,
|
|
3558
|
-
inputValue:
|
|
3559
|
-
})) : a ? (
|
|
3529
|
+
inputValue: b
|
|
3530
|
+
})) : a ? (r?.(b, S("input")), y(b), g({
|
|
3560
3531
|
isoCode: T,
|
|
3561
|
-
inputValue:
|
|
3562
|
-
})) : (
|
|
3532
|
+
inputValue: b
|
|
3533
|
+
})) : (r?.(O, S("input")), y(O), g({
|
|
3563
3534
|
isoCode: T,
|
|
3564
3535
|
inputValue: O
|
|
3565
3536
|
}));
|
|
3566
3537
|
};
|
|
3567
3538
|
p.useEffect(() => {
|
|
3568
|
-
if (t !==
|
|
3539
|
+
if (t !== N) {
|
|
3569
3540
|
y(t);
|
|
3570
|
-
const l =
|
|
3541
|
+
const l = mt({
|
|
3571
3542
|
initialValue: t,
|
|
3572
3543
|
defaultCountry: e,
|
|
3573
3544
|
forceCallingCode: o
|
|
3574
3545
|
});
|
|
3575
|
-
u.current = l.isoCode,
|
|
3546
|
+
u.current = l.isoCode, g(l);
|
|
3576
3547
|
}
|
|
3577
|
-
}, [t,
|
|
3578
|
-
if (e !==
|
|
3579
|
-
|
|
3580
|
-
const { inputValue: l, isoCode: x } =
|
|
3548
|
+
}, [t, N, e, o]), p.useEffect(() => {
|
|
3549
|
+
if (e !== s) {
|
|
3550
|
+
c(e), $.current = new G(e);
|
|
3551
|
+
const { inputValue: l, isoCode: x } = mt({
|
|
3581
3552
|
initialValue: "",
|
|
3582
3553
|
defaultCountry: e,
|
|
3583
3554
|
forceCallingCode: o
|
|
3584
3555
|
});
|
|
3585
|
-
y(l), $.current.input(l), u.current = $.current.getCountry() || null,
|
|
3556
|
+
y(l), $.current.input(l), u.current = $.current.getCountry() || null, r?.(l, S("country")), g({
|
|
3586
3557
|
inputValue: l,
|
|
3587
3558
|
isoCode: x
|
|
3588
3559
|
});
|
|
3589
3560
|
}
|
|
3590
|
-
}, [e,
|
|
3561
|
+
}, [e, s, r, o]);
|
|
3591
3562
|
const Z = (l) => {
|
|
3592
3563
|
if (l === h.isoCode)
|
|
3593
3564
|
return;
|
|
3594
|
-
const x = j[l]?.[0], { inputValue: O, isoCode: w } = h, T = w ?
|
|
3595
|
-
let
|
|
3596
|
-
a || (
|
|
3565
|
+
const x = j[l]?.[0], { inputValue: O, isoCode: w } = h, T = w ? we(O, `+${K(w)}`) : O;
|
|
3566
|
+
let b = `+${x}${T}`;
|
|
3567
|
+
a || (b = U(b)), r?.(b, {
|
|
3597
3568
|
...S("country"),
|
|
3598
3569
|
countryCode: l
|
|
3599
|
-
}), u.current = l, y(
|
|
3570
|
+
}), u.current = l, y(b), g({
|
|
3600
3571
|
isoCode: l,
|
|
3601
|
-
inputValue:
|
|
3572
|
+
inputValue: b
|
|
3602
3573
|
});
|
|
3603
3574
|
};
|
|
3604
3575
|
return {
|
|
3605
3576
|
inputValue: h.inputValue,
|
|
3606
3577
|
isoCode: h.isoCode,
|
|
3607
|
-
onInputChange:
|
|
3578
|
+
onInputChange: $t,
|
|
3608
3579
|
onCountryChange: Z,
|
|
3609
3580
|
inputRef: f
|
|
3610
3581
|
};
|
|
3611
3582
|
}
|
|
3612
|
-
const
|
|
3583
|
+
const z1 = p.forwardRef((t, r) => {
|
|
3613
3584
|
const {
|
|
3614
3585
|
forceCallingCode: e,
|
|
3615
|
-
onlyCountries:
|
|
3586
|
+
onlyCountries: n,
|
|
3616
3587
|
excludedCountries: d,
|
|
3617
3588
|
defaultCountry: i,
|
|
3618
3589
|
onDoubleClick: a,
|
|
3619
3590
|
onFocus: o,
|
|
3620
3591
|
onCopy: u,
|
|
3621
|
-
value:
|
|
3592
|
+
value: $ = "",
|
|
3622
3593
|
inputProps: f,
|
|
3623
|
-
InputProps:
|
|
3624
|
-
inputRef:
|
|
3594
|
+
InputProps: s,
|
|
3595
|
+
inputRef: c,
|
|
3625
3596
|
disabled: h,
|
|
3626
|
-
onChange:
|
|
3627
|
-
disableDropdown:
|
|
3597
|
+
onChange: g,
|
|
3598
|
+
disableDropdown: N,
|
|
3628
3599
|
disableFormatting: y,
|
|
3629
3600
|
focusOnSelectCountry: S,
|
|
3630
3601
|
langOfCountryName: B,
|
|
3631
3602
|
continents: U,
|
|
3632
|
-
preferredCountries:
|
|
3633
|
-
MenuProps:
|
|
3634
|
-
className:
|
|
3603
|
+
preferredCountries: ot,
|
|
3604
|
+
MenuProps: ut,
|
|
3605
|
+
className: $t,
|
|
3635
3606
|
flagSize: Z = "small",
|
|
3636
3607
|
...l
|
|
3637
|
-
} = t, x = p.useRef(null), [O, w] = p.useState(null), T = e ?
|
|
3638
|
-
|
|
3608
|
+
} = t, x = p.useRef(null), [O, w] = p.useState(null), T = e ? Ar(i) : i;
|
|
3609
|
+
kr(t);
|
|
3639
3610
|
const {
|
|
3640
|
-
onInputChange:
|
|
3641
|
-
onCountryChange:
|
|
3611
|
+
onInputChange: b,
|
|
3612
|
+
onCountryChange: Je,
|
|
3642
3613
|
inputRef: R,
|
|
3643
|
-
isoCode:
|
|
3614
|
+
isoCode: Y,
|
|
3644
3615
|
inputValue: Dt
|
|
3645
|
-
} =
|
|
3616
|
+
} = D1({
|
|
3646
3617
|
forceCallingCode: e,
|
|
3647
3618
|
defaultCountry: T,
|
|
3648
3619
|
value: $ ?? "",
|
|
3649
|
-
onChange:
|
|
3620
|
+
onChange: g,
|
|
3650
3621
|
excludedCountries: d,
|
|
3651
|
-
onlyCountries:
|
|
3622
|
+
onlyCountries: n,
|
|
3652
3623
|
disableFormatting: y,
|
|
3653
3624
|
continents: U
|
|
3654
|
-
}),
|
|
3655
|
-
m.preventDefault(), (!h || !
|
|
3656
|
-
},
|
|
3657
|
-
w(null),
|
|
3658
|
-
},
|
|
3625
|
+
}), qe = (m) => {
|
|
3626
|
+
m.preventDefault(), (!h || !N) && w(x.current);
|
|
3627
|
+
}, tr = (m) => {
|
|
3628
|
+
w(null), Je(m), S && R.current && R.current.focus();
|
|
3629
|
+
}, er = (m) => {
|
|
3659
3630
|
setTimeout(() => {
|
|
3660
|
-
R.current &&
|
|
3631
|
+
R.current && Lr(R.current);
|
|
3661
3632
|
}, 0), o?.(m);
|
|
3662
|
-
},
|
|
3633
|
+
}, rr = (m) => {
|
|
3663
3634
|
const W = R.current;
|
|
3664
3635
|
W.setSelectionRange(0, W.value.length), a?.(m);
|
|
3665
|
-
},
|
|
3636
|
+
}, nr = (m) => {
|
|
3666
3637
|
if (u) {
|
|
3667
3638
|
u(m);
|
|
3668
3639
|
return;
|
|
3669
3640
|
}
|
|
3670
3641
|
const W = window.getSelection();
|
|
3671
3642
|
if (W) {
|
|
3672
|
-
const
|
|
3673
|
-
m.clipboardData.setData("text/plain",
|
|
3674
|
-
}
|
|
3675
|
-
},
|
|
3676
|
-
R.current = m,
|
|
3677
|
-
},
|
|
3678
|
-
x.current = m,
|
|
3679
|
-
},
|
|
3643
|
+
const $r = W.toString().replaceAll(" ", "");
|
|
3644
|
+
m.clipboardData.setData("text/plain", $r), m.preventDefault();
|
|
3645
|
+
}
|
|
3646
|
+
}, dr = (m) => {
|
|
3647
|
+
R.current = m, s?.inputRef && ft(m, s.inputRef), c && ft(m, c);
|
|
3648
|
+
}, ir = (m) => {
|
|
3649
|
+
x.current = m, r && ft(m, r);
|
|
3650
|
+
}, ar = () => {
|
|
3680
3651
|
w(null);
|
|
3681
|
-
},
|
|
3652
|
+
}, or = Y ? `+${K(Y)}` : "", ur = e ? we(Dt, or).trimStart() : Dt;
|
|
3682
3653
|
return /* @__PURE__ */ M(Ee, {
|
|
3683
|
-
children: [/* @__PURE__ */ v(
|
|
3654
|
+
children: [/* @__PURE__ */ v(yr, {
|
|
3684
3655
|
type: "tel",
|
|
3685
3656
|
disabled: h,
|
|
3686
|
-
value:
|
|
3687
|
-
ref:
|
|
3688
|
-
onDoubleClick:
|
|
3689
|
-
inputRef:
|
|
3690
|
-
className: `MuiTelInput-TextField ${
|
|
3691
|
-
onChange:
|
|
3657
|
+
value: ur,
|
|
3658
|
+
ref: ir,
|
|
3659
|
+
onDoubleClick: rr,
|
|
3660
|
+
inputRef: dr,
|
|
3661
|
+
className: `MuiTelInput-TextField ${$t || ""}`,
|
|
3662
|
+
onChange: b,
|
|
3692
3663
|
inputProps: {
|
|
3693
|
-
onCopy:
|
|
3664
|
+
onCopy: nr,
|
|
3694
3665
|
...f
|
|
3695
3666
|
},
|
|
3696
|
-
onFocus:
|
|
3667
|
+
onFocus: er,
|
|
3697
3668
|
InputProps: {
|
|
3698
|
-
...
|
|
3699
|
-
startAdornment: /* @__PURE__ */ v(
|
|
3669
|
+
...s,
|
|
3670
|
+
startAdornment: /* @__PURE__ */ v(gr, {
|
|
3700
3671
|
position: "start",
|
|
3701
3672
|
sx: {
|
|
3702
3673
|
flexShrink: 0
|
|
3703
3674
|
},
|
|
3704
|
-
children: /* @__PURE__ */ v(
|
|
3675
|
+
children: /* @__PURE__ */ v(wr, {
|
|
3705
3676
|
isFlagsMenuOpened: Boolean(O),
|
|
3706
|
-
isoCode:
|
|
3677
|
+
isoCode: Y,
|
|
3707
3678
|
forceCallingCode: e,
|
|
3708
|
-
onClick:
|
|
3679
|
+
onClick: qe,
|
|
3709
3680
|
disabled: h,
|
|
3710
3681
|
flagSize: Z,
|
|
3711
|
-
disableDropdown: Boolean(
|
|
3682
|
+
disableDropdown: Boolean(N)
|
|
3712
3683
|
})
|
|
3713
3684
|
})
|
|
3714
3685
|
},
|
|
3715
3686
|
...l
|
|
3716
|
-
}),
|
|
3717
|
-
onlyCountries:
|
|
3687
|
+
}), N ? null : /* @__PURE__ */ v(_r, {
|
|
3688
|
+
onlyCountries: n,
|
|
3718
3689
|
excludedCountries: d,
|
|
3719
3690
|
continents: U,
|
|
3720
3691
|
anchorEl: O,
|
|
3721
|
-
isoCode:
|
|
3722
|
-
preferredCountries:
|
|
3723
|
-
onClose:
|
|
3692
|
+
isoCode: Y,
|
|
3693
|
+
preferredCountries: ot,
|
|
3694
|
+
onClose: ar,
|
|
3724
3695
|
langOfCountryName: B,
|
|
3725
|
-
onSelectCountry:
|
|
3696
|
+
onSelectCountry: tr,
|
|
3726
3697
|
flagSize: Z,
|
|
3727
|
-
|
|
3698
|
+
...ut
|
|
3728
3699
|
})]
|
|
3729
3700
|
});
|
|
3730
3701
|
});
|
|
3731
|
-
Mi.defaultProps = {
|
|
3732
|
-
value: ""
|
|
3733
|
-
};
|
|
3734
3702
|
export {
|
|
3735
3703
|
G as AsYouType,
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3704
|
+
z1 as MuiTelInput,
|
|
3705
|
+
Y1 as getNumberType,
|
|
3706
|
+
Z1 as matchIsValidTel
|
|
3739
3707
|
};
|