// COUNTRY_PHONECODE 是根据OriginalData.ts中的数据由generatePhoneCodeMap计算的结果
const COUNTRY_PHONECODE = [
    {
        "id": 244,
        "code": "US",
        "name": "United States",
        "phoneCode": "+1"
    },
    {
        "id": 40,
        "code": "CA",
        "name": "Canada",
        "phoneCode": "+1"
    },
    {
        "id": 242,
        "code": "GB",
        "name": "United Kingdom",
        "phoneCode": "+44"
    },
    {
        "id": 81,
        "code": "FR",
        "name": "France",
        "phoneCode": "+33"
    },
    {
        "id": 88,
        "code": "DE",
        "name": "Germany",
        "phoneCode": "+49"
    },
    {
        "id": 15,
        "code": "AU",
        "name": "Australia",
        "phoneCode": "+61"
    },
    {
        "id": 110,
        "code": "IE",
        "name": "Ireland",
        "phoneCode": "+353"
    },
    {
        "id": 202,
        "code": "ZA",
        "name": "South Africa",
        "phoneCode": "+27"
    },
    {
        "id": 2,
        "code": "AX",
        "name": "Åland Islands",
        "phoneCode": "+358-18"
    },
    {
        "id": 3,
        "code": "AL",
        "name": "Albania",
        "phoneCode": "+355"
    },
    {
        "id": 4,
        "code": "DZ",
        "name": "Algeria",
        "phoneCode": "+213"
    },
    {
        "id": 5,
        "code": "AS",
        "name": "American Samoa",
        "phoneCode": "+244"
    },
    {
        "id": 7,
        "code": "AO",
        "name": "Angola",
        "phoneCode": "+244"
    },
    {
        "id": 8,
        "code": "AI",
        "name": "Anguilla",
        "phoneCode": "+1-264"
    },
    {
        "id": 9,
        "code": "AQ",
        "name": "Antarctica",
        "phoneCode": "+6721"
    },
    {
        "id": 10,
        "code": "AG",
        "name": "Antigua & Barbuda",
        "phoneCode": "+1-268"
    },
    {
        "id": 11,
        "code": "AR",
        "name": "Argentina",
        "phoneCode": "+54"
    },
    {
        "id": 12,
        "code": "AM",
        "name": "Armenia",
        "phoneCode": "+374"
    },
    {
        "id": 13,
        "code": "AW",
        "name": "Aruba",
        "phoneCode": "+297"
    },
    
    {
        "id": 16,
        "code": "AT",
        "name": "Austria",
        "phoneCode": "+43"
    },
    {
        "id": 17,
        "code": "AZ",
        "name": "Azerbaijan",
        "phoneCode": "+374-97"
    },
    {
        "id": 18,
        "code": "BS",
        "name": "Bahamas",
        "phoneCode": " +1-242"
    },
    {
        "id": 19,
        "code": "BH",
        "name": "Bahrain",
        "phoneCode": "+973"
    },
    {
        "id": 20,
        "code": "BD",
        "name": "Bangladesh",
        "phoneCode": "+880"
    },
    {
        "id": 21,
        "code": "BB",
        "name": "Barbados",
        "phoneCode": "+1-246"
    },
    {
        "id": 22,
        "code": "BY",
        "name": "Belarus",
        "phoneCode": "+375"
    },
    {
        "id": 23,
        "code": "BE",
        "name": "Belgium",
        "phoneCode": "+32"
    },
    {
        "id": 24,
        "code": "BZ",
        "name": "Belize",
        "phoneCode": "+501"
    },
    {
        "id": 25,
        "code": "BJ",
        "name": "Benin",
        "phoneCode": "+229"
    },
    {
        "id": 26,
        "code": "BM",
        "name": "Bermuda",
        "phoneCode": "+1-441"
    },
    {
        "id": 27,
        "code": "BT",
        "name": "Bhutan",
        "phoneCode": "+975"
    },
    {
        "id": 28,
        "code": "BO",
        "name": "Bolivia",
        "phoneCode": "+591"
    },
    {
        "id": 29,
        "code": "BA",
        "name": "Bosnia & Herzegovina",
        "phoneCode": "+387"
    },
    {
        "id": 30,
        "code": "BW",
        "name": "Botswana",
        "phoneCode": "+267"
    },
    {
        "id": 31,
        "code": "BR",
        "name": "Brazil",
        "phoneCode": "+55"
    },
    {
        "id": 32,
        "code": "IO",
        "name": "British Indian Ocean Territory",
        "phoneCode": "+246"
    },
    {
        "id": 33,
        "code": "VG",
        "name": "British Virgin Islands",
        "phoneCode": "+1-284"
    },
    {
        "id": 34,
        "code": "BN",
        "name": "Brunei",
        "phoneCode": "+673"
    },
    {
        "id": 35,
        "code": "BG",
        "name": "Bulgaria",
        "phoneCode": "+359"
    },
    {
        "id": 36,
        "code": "BF",
        "name": "Burkina Faso",
        "phoneCode": "+226"
    },
    {
        "id": 37,
        "code": "BI",
        "name": "Burundi",
        "phoneCode": "+257"
    },
    {
        "id": 38,
        "code": "KH",
        "name": "Cambodia",
        "phoneCode": "+855"
    },
    {
        "id": 39,
        "code": "CM",
        "name": "Cameroon",
        "phoneCode": "+237"
    },
    
    {
        "id": 42,
        "code": "CV",
        "name": "Cape Verde",
        "phoneCode": "+238"
    },
    {
        "id": 43,
        "code": "BQ",
        "name": "Caribbean Netherlands",
        "phoneCode": "+599"
    },
    {
        "id": 44,
        "code": "KY",
        "name": "Cayman Islands",
        "phoneCode": "+1-345"
    },
    {
        "id": 45,
        "code": "CF",
        "name": "Central African Republic",
        "phoneCode": "+236"
    },
    {
        "id": 47,
        "code": "TD",
        "name": "Chad",
        "phoneCode": "+235"
    },
    {
        "id": 48,
        "code": "CL",
        "name": "Chile",
        "phoneCode": "+56"
    },
    {
        "id": 49,
        "code": "CN",
        "name": "China",
        "phoneCode": "+86"
    },
    {
        "id": 50,
        "code": "CX",
        "name": "Christmas Island",
        "phoneCode": "+61"
    },
    {
        "id": 51,
        "code": "CC",
        "name": "Cocos (Keeling) Islands",
        "phoneCode": "+61"
    },
    {
        "id": 52,
        "code": "CO",
        "name": "Colombia",
        "phoneCode": "+57"
    },
    {
        "id": 53,
        "code": "KM",
        "name": "Comoros",
        "phoneCode": "+269"
    },
    {
        "id": 54,
        "code": "CG",
        "name": "Congo - Brazzaville",
        "phoneCode": "+242"
    },
    {
        "id": 55,
        "code": "CD",
        "name": "Congo - Kinshasa",
        "phoneCode": "+243"
    },
    {
        "id": 56,
        "code": "CK",
        "name": "Cook Islands",
        "phoneCode": "+682"
    },
    {
        "id": 57,
        "code": "CR",
        "name": "Costa Rica",
        "phoneCode": "+506"
    },
    {
        "id": 58,
        "code": "CI",
        "name": "Côte d’Ivoire",
        "phoneCode": "+225"
    },
    {
        "id": 59,
        "code": "HR",
        "name": "Croatia",
        "phoneCode": "+385"
    },
    {
        "id": 60,
        "code": "CU",
        "name": "Cuba",
        "phoneCode": "+53"
    },
    {
        "id": 62,
        "code": "CY",
        "name": "Cyprus",
        "phoneCode": "+90-392"
    },
    {
        "id": 63,
        "code": "CZ",
        "name": "Czechia",
        "phoneCode": "+420"
    },
    {
        "id": 64,
        "code": "DK",
        "name": "Denmark",
        "phoneCode": "+45"
    },
    {
        "id": 66,
        "code": "DJ",
        "name": "Djibouti",
        "phoneCode": "+253"
    },
    {
        "id": 67,
        "code": "DM",
        "name": "Dominica",
        "phoneCode": "+1-767"
    },
    {
        "id": 68,
        "code": "DO",
        "name": "Dominican Republic",
        "phoneCode": "+1-809and1-829"
    },
    {
        "id": 69,
        "code": "EC",
        "name": "Ecuador",
        "phoneCode": "+593"
    },
    {
        "id": 70,
        "code": "EG",
        "name": "Egypt",
        "phoneCode": "+20"
    },
    {
        "id": 71,
        "code": "SV",
        "name": "El Salvador",
        "phoneCode": "+503"
    },
    {
        "id": 72,
        "code": "GQ",
        "name": "Equatorial Guinea",
        "phoneCode": "+240"
    },
    {
        "id": 73,
        "code": "ER",
        "name": "Eritrea",
        "phoneCode": "+291"
    },
    {
        "id": 74,
        "code": "EE",
        "name": "Estonia",
        "phoneCode": "+372"
    },
    {
        "id": 75,
        "code": "ET",
        "name": "Ethiopia",
        "phoneCode": "+251"
    },
    {
        "id": 77,
        "code": "FK",
        "name": "Falkland Islands",
        "phoneCode": "+500"
    },
    {
        "id": 78,
        "code": "FO",
        "name": "Faroe Islands",
        "phoneCode": "+298"
    },
    {
        "id": 79,
        "code": "FJ",
        "name": "Fiji",
        "phoneCode": "+679"
    },
    {
        "id": 80,
        "code": "FI",
        "name": "Finland",
        "phoneCode": "+358"
    },
    
    {
        "id": 82,
        "code": "GF",
        "name": "French Guiana",
        "phoneCode": "+594"
    },
    {
        "id": 83,
        "code": "PF",
        "name": "French Polynesia",
        "phoneCode": "+689"
    },
    {
        "id": 84,
        "code": "TF",
        "name": "French Southern Territories",
        "phoneCode": "+33"
    },
    {
        "id": 85,
        "code": "GA",
        "name": "Gabon",
        "phoneCode": "+241"
    },
    {
        "id": 86,
        "code": "GM",
        "name": "Gambia",
        "phoneCode": "+220"
    },
    {
        "id": 87,
        "code": "GE",
        "name": "Georgia",
        "phoneCode": "+995"
    },
    
    {
        "id": 89,
        "code": "GH",
        "name": "Ghana",
        "phoneCode": "+233"
    },
    {
        "id": 90,
        "code": "GI",
        "name": "Gibraltar",
        "phoneCode": "+350"
    },
    {
        "id": 91,
        "code": "GR",
        "name": "Greece",
        "phoneCode": "+30"
    },
    {
        "id": 92,
        "code": "GL",
        "name": "Greenland",
        "phoneCode": "+299"
    },
    {
        "id": 93,
        "code": "GD",
        "name": "Grenada",
        "phoneCode": "+1-473"
    },
    {
        "id": 94,
        "code": "GP",
        "name": "Guadeloupe",
        "phoneCode": "+590"
    },
    {
        "id": 95,
        "code": "GU",
        "name": "Guam",
        "phoneCode": "+1-671"
    },
    {
        "id": 96,
        "code": "GT",
        "name": "Guatemala",
        "phoneCode": "+502"
    },
    {
        "id": 97,
        "code": "GG",
        "name": "Guernsey",
        "phoneCode": "+44"
    },
    {
        "id": 98,
        "code": "GN",
        "name": "Guinea",
        "phoneCode": "+224"
    },
    {
        "id": 99,
        "code": "GW",
        "name": "Guinea-Bissau",
        "phoneCode": "+245"
    },
    {
        "id": 100,
        "code": "GY",
        "name": "Guyana",
        "phoneCode": "+592"
    },
    {
        "id": 101,
        "code": "HT",
        "name": "Haiti",
        "phoneCode": "+509"
    },
    {
        "id": 102,
        "code": "HN",
        "name": "Honduras",
        "phoneCode": "+504"
    },
    {
        "id": 103,
        "code": "HK",
        "name": "Hong Kong SAR China",
        "phoneCode": "+852"
    },
    {
        "id": 104,
        "code": "HU",
        "name": "Hungary",
        "phoneCode": "+36"
    },
    {
        "id": 105,
        "code": "IS",
        "name": "Iceland",
        "phoneCode": "+354"
    },
    {
        "id": 106,
        "code": "IN",
        "name": "India",
        "phoneCode": "+91"
    },
    {
        "id": 107,
        "code": "ID",
        "name": "Indonesia",
        "phoneCode": "+62"
    },
    {
        "id": 108,
        "code": "IR",
        "name": "Iran",
        "phoneCode": "+98"
    },
    {
        "id": 109,
        "code": "IQ",
        "name": "Iraq",
        "phoneCode": "+964"
    },
    
    {
        "id": 111,
        "code": "IM",
        "name": "Isle of Man",
        "phoneCode": "+44"
    },
    {
        "id": 113,
        "code": "IT",
        "name": "Italy",
        "phoneCode": "+39"
    },
    {
        "id": 114,
        "code": "JM",
        "name": "Jamaica",
        "phoneCode": "+1-876"
    },
    {
        "id": 115,
        "code": "JP",
        "name": "Japan",
        "phoneCode": "+81"
    },
    {
        "id": 116,
        "code": "JE",
        "name": "Jersey",
        "phoneCode": "+44"
    },
    {
        "id": 117,
        "code": "JO",
        "name": "Jordan",
        "phoneCode": "+962"
    },
    {
        "id": 118,
        "code": "KZ",
        "name": "Kazakhstan",
        "phoneCode": "+7"
    },
    {
        "id": 119,
        "code": "KE",
        "name": "Kenya",
        "phoneCode": "+254"
    },
    {
        "id": 120,
        "code": "KI",
        "name": "Kiribati",
        "phoneCode": "+686"
    },
    {
        "id": 122,
        "code": "KW",
        "name": "Kuwait",
        "phoneCode": "+965"
    },
    {
        "id": 123,
        "code": "KG",
        "name": "Kyrgyzstan",
        "phoneCode": "+996"
    },
    {
        "id": 124,
        "code": "LA",
        "name": "Laos",
        "phoneCode": "+856"
    },
    {
        "id": 125,
        "code": "LV",
        "name": "Latvia",
        "phoneCode": "+371"
    },
    {
        "id": 126,
        "code": "LB",
        "name": "Lebanon",
        "phoneCode": "+961"
    },
    {
        "id": 127,
        "code": "LS",
        "name": "Lesotho",
        "phoneCode": "+266"
    },
    {
        "id": 128,
        "code": "LR",
        "name": "Liberia",
        "phoneCode": "+231"
    },
    {
        "id": 129,
        "code": "LY",
        "name": "Libya",
        "phoneCode": "+218"
    },
    {
        "id": 130,
        "code": "LI",
        "name": "Liechtenstein",
        "phoneCode": "+423"
    },
    {
        "id": 131,
        "code": "LT",
        "name": "Lithuania",
        "phoneCode": "+370"
    },
    {
        "id": 132,
        "code": "LU",
        "name": "Luxembourg",
        "phoneCode": "+352"
    },
    {
        "id": 133,
        "code": "MO",
        "name": "Macau SAR China",
        "phoneCode": "+853"
    },
    {
        "id": 134,
        "code": "MK",
        "name": "Macedonia",
        "phoneCode": "+389"
    },
    {
        "id": 135,
        "code": "MG",
        "name": "Madagascar",
        "phoneCode": "+261"
    },
    {
        "id": 136,
        "code": "MW",
        "name": "Malawi",
        "phoneCode": "+265"
    },
    {
        "id": 137,
        "code": "MY",
        "name": "Malaysia",
        "phoneCode": "+60"
    },
    {
        "id": 138,
        "code": "MV",
        "name": "Maldives",
        "phoneCode": "+960"
    },
    {
        "id": 139,
        "code": "ML",
        "name": "Mali",
        "phoneCode": "+223"
    },
    {
        "id": 140,
        "code": "MT",
        "name": "Malta",
        "phoneCode": "+356"
    },
    {
        "id": 141,
        "code": "MH",
        "name": "Marshall Islands",
        "phoneCode": "+692"
    },
    {
        "id": 142,
        "code": "MQ",
        "name": "Martinique",
        "phoneCode": "+596"
    },
    {
        "id": 143,
        "code": "MR",
        "name": "Mauritania",
        "phoneCode": "+222"
    },
    {
        "id": 144,
        "code": "MU",
        "name": "Mauritius",
        "phoneCode": "+230"
    },
    {
        "id": 145,
        "code": "YT",
        "name": "Mayotte",
        "phoneCode": "+262"
    },
    {
        "id": 146,
        "code": "MX",
        "name": "Mexico",
        "phoneCode": "+52"
    },
    {
        "id": 147,
        "code": "FM",
        "name": "Micronesia",
        "phoneCode": "+691"
    },
    {
        "id": 148,
        "code": "MD",
        "name": "Moldova",
        "phoneCode": "+373-533"
    },
    {
        "id": 149,
        "code": "MC",
        "name": "Monaco",
        "phoneCode": "+377"
    },
    {
        "id": 150,
        "code": "MN",
        "name": "Mongolia",
        "phoneCode": "+976"
    },
    {
        "id": 151,
        "code": "ME",
        "name": "Montenegro",
        "phoneCode": "+382"
    },
    {
        "id": 152,
        "code": "MS",
        "name": "Montserrat",
        "phoneCode": "+1-664"
    },
    {
        "id": 153,
        "code": "MA",
        "name": "Morocco",
        "phoneCode": "+212"
    },
    {
        "id": 154,
        "code": "MZ",
        "name": "Mozambique",
        "phoneCode": "+258"
    },
    {
        "id": 155,
        "code": "MM",
        "name": "Myanmar (Burma)",
        "phoneCode": "+95"
    },
    {
        "id": 156,
        "code": "NA",
        "name": "Namibia",
        "phoneCode": "+264"
    },
    {
        "id": 157,
        "code": "NR",
        "name": "Nauru",
        "phoneCode": "+674"
    },
    {
        "id": 158,
        "code": "NP",
        "name": "Nepal",
        "phoneCode": "+977"
    },
    {
        "id": 159,
        "code": "NL",
        "name": "Netherlands",
        "phoneCode": "+31"
    },
    {
        "id": 160,
        "code": "NC",
        "name": "New Caledonia",
        "phoneCode": "+687"
    },
    {
        "id": 161,
        "code": "NZ",
        "name": "New Zealand",
        "phoneCode": "+64"
    },
    {
        "id": 162,
        "code": "NI",
        "name": "Nicaragua",
        "phoneCode": "+505"
    },
    {
        "id": 163,
        "code": "NE",
        "name": "Niger",
        "phoneCode": "+227"
    },
    {
        "id": 164,
        "code": "NG",
        "name": "Nigeria",
        "phoneCode": "+234"
    },
    {
        "id": 165,
        "code": "NU",
        "name": "Niue",
        "phoneCode": "+683"
    },
    {
        "id": 166,
        "code": "NF",
        "name": "Norfolk Island",
        "phoneCode": "+672"
    },
    {
        "id": 167,
        "code": "KP",
        "name": "North Korea",
        "phoneCode": "+850"
    },
    {
        "id": 168,
        "code": "MP",
        "name": "Northern Mariana Islands",
        "phoneCode": "+1-670"
    },
    {
        "id": 169,
        "code": "NO",
        "name": "Norway",
        "phoneCode": "+47"
    },
    {
        "id": 170,
        "code": "OM",
        "name": "Oman",
        "phoneCode": "+968"
    },
    {
        "id": 171,
        "code": "PK",
        "name": "Pakistan",
        "phoneCode": "+92"
    },
    {
        "id": 172,
        "code": "PW",
        "name": "Palau",
        "phoneCode": "+680"
    },
    {
        "id": 174,
        "code": "PA",
        "name": "Panama",
        "phoneCode": "+507"
    },
    {
        "id": 175,
        "code": "PG",
        "name": "Papua New Guinea",
        "phoneCode": "+675"
    },
    {
        "id": 176,
        "code": "PY",
        "name": "Paraguay",
        "phoneCode": "+595"
    },
    {
        "id": 177,
        "code": "PE",
        "name": "Peru",
        "phoneCode": "+51"
    },
    {
        "id": 178,
        "code": "PH",
        "name": "Philippines",
        "phoneCode": "+63"
    },
    {
        "id": 179,
        "code": "PN",
        "name": "Pitcairn Islands",
        "phoneCode": "+649"
    },
    {
        "id": 180,
        "code": "PL",
        "name": "Poland",
        "phoneCode": "+48"
    },
    {
        "id": 181,
        "code": "PT",
        "name": "Portugal",
        "phoneCode": "+351"
    },
    {
        "id": 182,
        "code": "PR",
        "name": "Puerto Rico",
        "phoneCode": "+1-787"
    },
    {
        "id": 183,
        "code": "QA",
        "name": "Qatar",
        "phoneCode": "+974"
    },
    {
        "id": 184,
        "code": "RE",
        "name": "Réunion",
        "phoneCode": "+262"
    },
    {
        "id": 185,
        "code": "RO",
        "name": "Romania",
        "phoneCode": "+40"
    },
    {
        "id": 186,
        "code": "RU",
        "name": "Russia",
        "phoneCode": "+7"
    },
    {
        "id": 187,
        "code": "RW",
        "name": "Rwanda",
        "phoneCode": "+250"
    },
    {
        "id": 188,
        "code": "WS",
        "name": "Samoa",
        "phoneCode": "+685"
    },
    {
        "id": 189,
        "code": "SM",
        "name": "San Marino",
        "phoneCode": "+378"
    },
    {
        "id": 190,
        "code": "ST",
        "name": "São Tomé & Príncipe",
        "phoneCode": "+239"
    },
    {
        "id": 191,
        "code": "SA",
        "name": "Saudi Arabia",
        "phoneCode": "+966"
    },
    {
        "id": 192,
        "code": "SN",
        "name": "Senegal",
        "phoneCode": "+221"
    },
    {
        "id": 193,
        "code": "RS",
        "name": "Serbia",
        "phoneCode": "+381"
    },
    {
        "id": 194,
        "code": "SC",
        "name": "Seychelles",
        "phoneCode": "+248"
    },
    {
        "id": 195,
        "code": "SL",
        "name": "Sierra Leone",
        "phoneCode": "+232"
    },
    {
        "id": 196,
        "code": "SG",
        "name": "Singapore",
        "phoneCode": "+65"
    },
    {
        "id": 198,
        "code": "SK",
        "name": "Slovakia",
        "phoneCode": "+421"
    },
    {
        "id": 199,
        "code": "SI",
        "name": "Slovenia",
        "phoneCode": "+386"
    },
    {
        "id": 200,
        "code": "SB",
        "name": "Solomon Islands",
        "phoneCode": "+677"
    },
    {
        "id": 201,
        "code": "SO",
        "name": "Somalia",
        "phoneCode": "+252"
    },
    
    {
        "id": 203,
        "code": "GS",
        "name": "South Georgia & South Sandwich Islands",
        "phoneCode": "+500"
    },
    {
        "id": 204,
        "code": "KR",
        "name": "South Korea",
        "phoneCode": "+82"
    },
    {
        "id": 205,
        "code": "SS",
        "name": "South Sudan",
        "phoneCode": "+211"
    },
    {
        "id": 206,
        "code": "ES",
        "name": "Spain",
        "phoneCode": "+34"
    },
    {
        "id": 207,
        "code": "LK",
        "name": "Sri Lanka",
        "phoneCode": "+94"
    },
    {
        "id": 208,
        "code": "BL",
        "name": "St. Barthélemy",
        "phoneCode": "+590"
    },
    {
        "id": 209,
        "code": "SH",
        "name": "St. Helena",
        "phoneCode": "+290"
    },
    {
        "id": 210,
        "code": "KN",
        "name": "St. Kitts & Nevis",
        "phoneCode": "+1-869"
    },
    {
        "id": 211,
        "code": "LC",
        "name": "St. Lucia",
        "phoneCode": "+1-758"
    },
    {
        "id": 212,
        "code": "MF",
        "name": "St. Martin",
        "phoneCode": "+590"
    },
    {
        "id": 213,
        "code": "PM",
        "name": "St. Pierre & Miquelon",
        "phoneCode": "+508"
    },
    {
        "id": 214,
        "code": "VC",
        "name": "St. Vincent & Grenadines",
        "phoneCode": "+1-784"
    },
    {
        "id": 215,
        "code": "SD",
        "name": "Sudan",
        "phoneCode": "+249"
    },
    {
        "id": 216,
        "code": "SR",
        "name": "Suriname",
        "phoneCode": "+597"
    },
    {
        "id": 217,
        "code": "SJ",
        "name": "Svalbard & Jan Mayen",
        "phoneCode": "+47"
    },
    {
        "id": 218,
        "code": "SZ",
        "name": "Swaziland",
        "phoneCode": "+268"
    },
    {
        "id": 219,
        "code": "SE",
        "name": "Sweden",
        "phoneCode": "+46"
    },
    {
        "id": 221,
        "code": "SY",
        "name": "Syria",
        "phoneCode": "+963"
    },
    {
        "id": 223,
        "code": "TJ",
        "name": "Tajikistan",
        "phoneCode": "+992"
    },
    {
        "id": 224,
        "code": "TZ",
        "name": "Tanzania",
        "phoneCode": "+255"
    },
    {
        "id": 225,
        "code": "TH",
        "name": "Thailand",
        "phoneCode": "+66"
    },
    {
        "id": 226,
        "code": "TL",
        "name": "Timor-Leste",
        "phoneCode": "+670"
    },
    {
        "id": 227,
        "code": "TG",
        "name": "Togo",
        "phoneCode": "+228"
    },
    {
        "id": 228,
        "code": "TK",
        "name": "Tokelau",
        "phoneCode": "+690"
    },
    {
        "id": 229,
        "code": "TO",
        "name": "Tonga",
        "phoneCode": "+676"
    },
    {
        "id": 230,
        "code": "TT",
        "name": "Trinidad & Tobago",
        "phoneCode": "+1-868"
    },
    {
        "id": 232,
        "code": "TN",
        "name": "Tunisia",
        "phoneCode": "+216"
    },
    {
        "id": 233,
        "code": "TR",
        "name": "Turkey",
        "phoneCode": "+90"
    },
    {
        "id": 234,
        "code": "TM",
        "name": "Turkmenistan",
        "phoneCode": "+993"
    },
    {
        "id": 235,
        "code": "TC",
        "name": "Turks & Caicos Islands",
        "phoneCode": "+1-649"
    },
    {
        "id": 236,
        "code": "TV",
        "name": "Tuvalu",
        "phoneCode": "+688"
    },
    {
        "id": 237,
        "code": "UM",
        "name": "U.S. Outlying Islands",
        "phoneCode": "+268"
    },
    {
        "id": 238,
        "code": "VI",
        "name": "U.S. Virgin Islands",
        "phoneCode": "+1-340"
    },
    {
        "id": 239,
        "code": "UG",
        "name": "Uganda",
        "phoneCode": "+256"
    },
    {
        "id": 240,
        "code": "UA",
        "name": "Ukraine",
        "phoneCode": "+380"
    },
    {
        "id": 241,
        "code": "AE",
        "name": "United Arab Emirates",
        "phoneCode": "+971"
    },
    
    {
        "id": 245,
        "code": "UY",
        "name": "Uruguay",
        "phoneCode": "+598"
    },
    {
        "id": 246,
        "code": "UZ",
        "name": "Uzbekistan",
        "phoneCode": "+998"
    },
    {
        "id": 247,
        "code": "VU",
        "name": "Vanuatu",
        "phoneCode": "+678"
    },
    {
        "id": 248,
        "code": "VA",
        "name": "Vatican City",
        "phoneCode": "+379"
    },
    {
        "id": 249,
        "code": "VE",
        "name": "Venezuela",
        "phoneCode": "+58"
    },
    {
        "id": 250,
        "code": "VN",
        "name": "Vietnam",
        "phoneCode": "+84"
    },
    {
        "id": 251,
        "code": "WF",
        "name": "Wallis & Futuna",
        "phoneCode": "+681"
    },
    {
        "id": 252,
        "code": "EH",
        "name": "Western Sahara",
        "phoneCode": "+212"
    },
    {
        "id": 253,
        "code": "YE",
        "name": "Yemen",
        "phoneCode": "+967"
    },
    {
        "id": 254,
        "code": "ZM",
        "name": "Zambia",
        "phoneCode": "+260"
    },
    {
        "id": 255,
        "code": "ZW",
        "name": "Zimbabwe",
        "phoneCode": "+263"
    }
];

function formatFinalPhoneValue(phoneCode:string, phoneNum:string) {
    return phoneCode + ' ' + phoneNum;
}

function getCountryCodeByPhoneCode(phoneCode: string) {
  const country = COUNTRY_PHONECODE.find((country) => country.phoneCode === phoneCode);
  return country ? country.code : 'US';
}
function getPhoneCodeBycountryCode(countryCode: string) {
  const country = COUNTRY_PHONECODE.find((country) => country.code === countryCode);
  return country ? country.phoneCode : '+1';
}
export {
    COUNTRY_PHONECODE,
    getCountryCodeByPhoneCode,
    formatFinalPhoneValue,
    getPhoneCodeBycountryCode
};
