{"version":3,"sources":["shortnumberinfo.js"],"names":["goog","provide","require","i18n","phonenumbers","ShortNumberInfo","this","regionToMetadataMap","addSingletonGetter","REGIONS_WHERE_EMERGENCY_NUMBERS_MUST_BE_EXACT_","ShortNumberCost","TOLL_FREE","STANDARD_RATE","PREMIUM_RATE","UNKNOWN_COST","prototype","getRegionCodesForCountryCode_","countryCallingCode","regionCodes","metadata","countryCodeToRegionCodeMap","regionDialingFromMatchesNumber_","number","regionDialingFrom","getCountryCodeOrDefault","array","contains","isPossibleShortNumberForRegion","phoneMetadata","getMetadataForRegion_","numberLength","getNationalSignificantNumber_","length","getGeneralDesc","possibleLengthArray","isPossibleShortNumber","shortNumberLength","i","region","possibleLengths","isValidShortNumberForRegion","shortNumber","generalDesc","matchesPossibleNumberAndNationalNumber_","shortNumberDesc","getShortCode","isValidShortNumber","regionCode","getRegionCodeForShortNumberFromRegionList_","getExpectedCostForRegion","getPremiumRate","getStandardRate","getTollFree","isEmergencyNumber","getExpectedCost","cost","costForRegion","Error","nationalNumber","getSupportedRegions","filter","Object","keys","shortnumbermetadata","countryToMetadata","isNaN","getExampleShortNumber","desc","hasExampleNumber","getExampleNumber","getExampleShortNumberForCost","connectsToEmergencyNumber","matchesEmergencyNumberHelper_","toUpperCase","serializer","proto2","PbLiteSerializer","metadataSerialized","deserialize","PhoneMetadata","getDescriptor","allowPrefixMatch","possibleNumber","PhoneNumberUtil","extractPossibleNumber","LEADING_PLUS_CHARS_PATTERN","test","hasEmergency","normalizedNumber","normalizeDigitsOnly","allowPrefixMatchForRegion","emergencyNumberPattern","getEmergency","getNationalNumberPatternOrDefault","matchesEntirely","matchesPrefix","isCarrierSpecific","getCarrierSpecific","isCarrierSpecificForRegion","isSmsServiceForRegion","getSmsServices","hasNationalNumber","getNationalNumber","hasItalianLeadingZero","getItalianLeadingZero","getNumberOfLeadingZerosOrDefault","Array","join","numberDesc","toString"],"mappings":"AA8BAA,KAAKC,QAAQ,qCAEbD,KAAKE,QAAQ,cACbF,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