mainstack-design-system 0.7.45 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +702 -15
- package/dist/FormCountryOptionsList-BTIDLbxV.cjs +8 -0
- package/dist/FormCountryOptionsList-BWbi-SZ_.js +1790 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Accordion/AccordionContent.js +1 -0
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionItem.js +1 -0
- package/dist/components/Accordion/AccordionRoot.js +1 -0
- package/dist/components/Accordion/AccordionSubtitle.js +1 -0
- package/dist/components/Accordion/AccordionTitle.js +1 -0
- package/dist/components/Accordion/AccordionTrigger.js +1 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Avatar/Avatar.js +2 -0
- package/dist/components/Avatar/avatarVariants.js +1 -0
- package/dist/components/Avatar/getAvatarSize.js +1 -0
- package/dist/components/Avatar/index.js +1 -0
- package/dist/components/Banner/BannerAction.js +1 -0
- package/dist/components/Banner/BannerContent.js +1 -0
- package/dist/components/Banner/BannerHeader.js +1 -0
- package/dist/components/Banner/BannerIcon.js +1 -0
- package/dist/components/Banner/BannerRoot.js +1 -0
- package/dist/components/Banner/BannerText.js +1 -0
- package/dist/components/Banner/bannerVariants.js +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/Button/Button.js +1 -0
- package/dist/components/Button/ButtonIcon.js +1 -0
- package/dist/components/Button/ButtonLabel.js +1 -0
- package/dist/components/Button/ButtonRoot.js +1 -0
- package/dist/components/Button/buttonVariants.js +87 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Checkbox/CheckboxIndicator.js +2 -0
- package/dist/components/Checkbox/CheckboxLabel.js +1 -0
- package/dist/components/Checkbox/CheckboxRoot.js +1 -0
- package/dist/components/Checkbox/CheckboxSubtext.js +1 -0
- package/dist/components/Checkbox/CheckboxTitle.js +1 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Chip/Chip.js +1 -0
- package/dist/components/Chip/ChipLabel.js +1 -0
- package/dist/components/Chip/ChipRoot.js +1 -0
- package/dist/components/Chip/ChipSlot.js +1 -0
- package/dist/components/Chip/chipVariants.js +1 -0
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/Form/FormCharacterCounter.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptions.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsList.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsSearchField.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountrySelect.js +1 -0
- package/dist/components/Form/FormCountrySelect/constant.js +1 -0
- package/dist/components/Form/FormCountrySelect/getCountryFlagComp.js +1 -0
- package/dist/components/Form/FormItem.js +1 -0
- package/dist/components/Form/FormLabel.js +1 -0
- package/dist/components/Form/FormStatus/FormErrorStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormHintStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusRoot.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusText.js +1 -0
- package/dist/components/Form/FormStatus/FormSuccessStatus.js +1 -0
- package/dist/components/Form/index.js +1 -0
- package/dist/components/Icons/AccountBalanceIcon.js +1 -0
- package/dist/components/Icons/AccountBalanceWalletIcon.js +1 -0
- package/dist/components/Icons/AccountCircleIcon.js +1 -0
- package/dist/components/Icons/AdGroupIcon.js +1 -0
- package/dist/components/Icons/AdaptiveAudioMicIcon.js +1 -0
- package/dist/components/Icons/AddAPhotoIcon.js +1 -0
- package/dist/components/Icons/AddBusinessIcon.js +1 -0
- package/dist/components/Icons/AddCircleIcon.js +1 -0
- package/dist/components/Icons/AddIcon.js +1 -0
- package/dist/components/Icons/AddLinkIcon.js +1 -0
- package/dist/components/Icons/AddPhotoAlternateIcon.js +1 -0
- package/dist/components/Icons/AddShoppingCartIcon.js +1 -0
- package/dist/components/Icons/AdminPanelSettingsIcon.js +1 -0
- package/dist/components/Icons/AdsClickIcon.js +1 -0
- package/dist/components/Icons/AlarmIcon.js +1 -0
- package/dist/components/Icons/AllInboxIcon.js +1 -0
- package/dist/components/Icons/AnimationIcon.js +1 -0
- package/dist/components/Icons/ApartmentIcon.js +1 -0
- package/dist/components/Icons/AppsIcon.js +1 -0
- package/dist/components/Icons/ArchiveIcon.js +1 -0
- package/dist/components/Icons/ArrowBackIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleDownIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleUpIcon.js +1 -0
- package/dist/components/Icons/ArrowDownwardIcon.js +1 -0
- package/dist/components/Icons/ArrowDropDownIcon.js +1 -0
- package/dist/components/Icons/ArrowDropUpIcon.js +1 -0
- package/dist/components/Icons/ArrowForwardIcon.js +1 -0
- package/dist/components/Icons/ArrowUpwardIcon.js +1 -0
- package/dist/components/Icons/ArtTrackIcon.js +1 -0
- package/dist/components/Icons/ArticleIcon.js +1 -0
- package/dist/components/Icons/AttachMoneyIcon.js +1 -0
- package/dist/components/Icons/AttachmentIcon.js +1 -0
- package/dist/components/Icons/AudioFileIcon.js +1 -0
- package/dist/components/Icons/AutoAwesomeMosaic.js +1 -0
- package/dist/components/Icons/AvatarIcon.js +1 -0
- package/dist/components/Icons/AwardStarIcon.js +1 -0
- package/dist/components/Icons/BarChartIcon.js +1 -0
- package/dist/components/Icons/BarcodeScannerIcon.js +1 -0
- package/dist/components/Icons/BlockIcon.js +1 -0
- package/dist/components/Icons/BoltIcon.js +1 -0
- package/dist/components/Icons/Book5Icon.js +1 -0
- package/dist/components/Icons/BookOnlineIcon.js +1 -0
- package/dist/components/Icons/BugReportIcon.js +1 -0
- package/dist/components/Icons/BusinessCenterIcon.js +1 -0
- package/dist/components/Icons/CalendarAddOnIcon.js +1 -0
- package/dist/components/Icons/CalendarClockIcon.js +1 -0
- package/dist/components/Icons/CalendarMonthIcon.js +1 -0
- package/dist/components/Icons/CalendarTodayIcon.js +1 -0
- package/dist/components/Icons/CallIcon.js +1 -0
- package/dist/components/Icons/CallMadeIcon.js +1 -0
- package/dist/components/Icons/CallMissedIcon.js +1 -0
- package/dist/components/Icons/CallMissedOutgoingIcon.js +1 -0
- package/dist/components/Icons/CallReceivedIcon.js +1 -0
- package/dist/components/Icons/CampaignIcon.js +1 -0
- package/dist/components/Icons/CancelIcon.js +1 -0
- package/dist/components/Icons/CancelScheduleSendIcon.js +1 -0
- package/dist/components/Icons/CaptivePortalIcon.js +1 -0
- package/dist/components/Icons/CardLayoutIcon.js +1 -0
- package/dist/components/Icons/CasesIcon.js +1 -0
- package/dist/components/Icons/CategoryIcon.js +1 -0
- package/dist/components/Icons/ChairIcon.js +1 -0
- package/dist/components/Icons/ChangeCircleIcon.js +1 -0
- package/dist/components/Icons/ChatBubbleIcon.js +1 -0
- package/dist/components/Icons/ChatIcon.js +1 -0
- package/dist/components/Icons/CheckBoxIcon.js +1 -0
- package/dist/components/Icons/CheckBoxOutlineBlankIcon.js +1 -0
- package/dist/components/Icons/CheckCircleIcon.js +1 -0
- package/dist/components/Icons/CheckIcon.js +1 -0
- package/dist/components/Icons/ChevronLeftIcon.js +1 -0
- package/dist/components/Icons/ChevronRightIcon.js +1 -0
- package/dist/components/Icons/ClinicalNoteIcon.js +1 -0
- package/dist/components/Icons/CloseIcon.js +1 -0
- package/dist/components/Icons/CloudUploadIcon.js +1 -0
- package/dist/components/Icons/CodeIcon.js +1 -0
- package/dist/components/Icons/CoffeeIcon.js +1 -0
- package/dist/components/Icons/CollectionsBookmarkIcon.js +1 -0
- package/dist/components/Icons/ColorPickerIcon.js +1 -0
- package/dist/components/Icons/CompareArrowsIcon.js +1 -0
- package/dist/components/Icons/ConfirmationNumberIcon.js +1 -0
- package/dist/components/Icons/ContactMailIcon.js +1 -0
- package/dist/components/Icons/ContactPageIcon.js +1 -0
- package/dist/components/Icons/ContactPhoneIcon.js +1 -0
- package/dist/components/Icons/ContactSupportIcon.js +1 -0
- package/dist/components/Icons/ContactsIcon.js +1 -0
- package/dist/components/Icons/ContentCopyIcon.js +1 -0
- package/dist/components/Icons/CreditCardGearIcon.js +1 -0
- package/dist/components/Icons/CreditCardIcon.js +1 -0
- package/dist/components/Icons/CsvIcon.js +1 -0
- package/dist/components/Icons/CurrencyExchangeIcon.js +1 -0
- package/dist/components/Icons/DNSIcon.js +1 -0
- package/dist/components/Icons/DangerousIcon.js +1 -0
- package/dist/components/Icons/DarkModeIcon.js +1 -0
- package/dist/components/Icons/DashboardIcon.js +1 -0
- package/dist/components/Icons/DataCheckIcon.js +1 -0
- package/dist/components/Icons/DataObjectIcon.js +1 -0
- package/dist/components/Icons/DatabaseIcon.js +1 -0
- package/dist/components/Icons/DehazeIcon.js +1 -0
- package/dist/components/Icons/DeployedCodeAccountIcon.js +1 -0
- package/dist/components/Icons/DescriptionIcon.js +1 -0
- package/dist/components/Icons/DesktopMacIcon.js +1 -0
- package/dist/components/Icons/DevicesIcon.js +1 -0
- package/dist/components/Icons/DiamondIcon.js +1 -0
- package/dist/components/Icons/DirectionsWalkIcon.js +1 -0
- package/dist/components/Icons/Diversity1Icon.js +1 -0
- package/dist/components/Icons/Diversity2Icon.js +1 -0
- package/dist/components/Icons/Diversity3Icon.js +1 -0
- package/dist/components/Icons/DoNotDisturbOnIcon.js +1 -0
- package/dist/components/Icons/DomainAddIcon.js +1 -0
- package/dist/components/Icons/DomainIcon.js +1 -0
- package/dist/components/Icons/DomainVerificationIcon.js +1 -0
- package/dist/components/Icons/DownloadIcon.js +1 -0
- package/dist/components/Icons/DraftsIcon.js +1 -0
- package/dist/components/Icons/DragHandleIcon.js +1 -0
- package/dist/components/Icons/DragIndicatorIcon.js +1 -0
- package/dist/components/Icons/DuoIcon.js +1 -0
- package/dist/components/Icons/EarlyOnIcon.js +1 -0
- package/dist/components/Icons/EditIcon.js +1 -0
- package/dist/components/Icons/EmojiFoodBeverageIcon.js +1 -0
- package/dist/components/Icons/EmojiIcon.js +1 -0
- package/dist/components/Icons/EncryptedIcon.js +1 -0
- package/dist/components/Icons/EnterpriseIcon.js +1 -0
- package/dist/components/Icons/EqualIcon.js +1 -0
- package/dist/components/Icons/ErrorIcon.js +1 -0
- package/dist/components/Icons/EventBusyIcon.js +1 -0
- package/dist/components/Icons/EventIcon.js +1 -0
- package/dist/components/Icons/ExpandAllIcon.js +1 -0
- package/dist/components/Icons/FastForwardIcon.js +1 -0
- package/dist/components/Icons/FastRewindIcon.js +1 -0
- package/dist/components/Icons/FavoriteIcon.js +1 -0
- package/dist/components/Icons/FeaturedSeasonalAndGiftsIcon.js +1 -0
- package/dist/components/Icons/FeedIcon.js +1 -0
- package/dist/components/Icons/FilePresentIcon.js +1 -0
- package/dist/components/Icons/FilterListIcon.js +1 -0
- package/dist/components/Icons/FingerPrintIcon.js +1 -0
- package/dist/components/Icons/FlagIcon.js +1 -0
- package/dist/components/Icons/FolderCopyIcon.js +1 -0
- package/dist/components/Icons/FolderIcon.js +1 -0
- package/dist/components/Icons/FolderZipIcon.js +1 -0
- package/dist/components/Icons/FootPrintIcon.js +1 -0
- package/dist/components/Icons/FormatAlignCenterIcon.js +1 -0
- package/dist/components/Icons/FormatAlignJustifyIcon.js +1 -0
- package/dist/components/Icons/FormatAlignLeftIcon.js +1 -0
- package/dist/components/Icons/FormatAlignRightIcon.js +1 -0
- package/dist/components/Icons/FormatBoldIcon.js +1 -0
- package/dist/components/Icons/FormatItalicIcon.js +1 -0
- package/dist/components/Icons/FormatListBulletedIcon.js +1 -0
- package/dist/components/Icons/FormatListNumberedIcon.js +1 -0
- package/dist/components/Icons/FormatSizeIcon.js +1 -0
- package/dist/components/Icons/FormatUnderlinedIcon.js +1 -0
- package/dist/components/Icons/ForumIcon.js +1 -0
- package/dist/components/Icons/ForwardToInboxIcon.js +1 -0
- package/dist/components/Icons/FullScreenIcon.js +1 -0
- package/dist/components/Icons/GalleryThumbnailIcon.js +1 -0
- package/dist/components/Icons/GppBadIcon.js +1 -0
- package/dist/components/Icons/GppMaybeIcon.js +1 -0
- package/dist/components/Icons/GridViewIcon.js +1 -0
- package/dist/components/Icons/GroupIcon.js +1 -0
- package/dist/components/Icons/GroupsTwoIcon.js +1 -0
- package/dist/components/Icons/HandShakeIcon.js +1 -0
- package/dist/components/Icons/HeadphonesIcon.js +1 -0
- package/dist/components/Icons/HelpIcon.js +1 -0
- package/dist/components/Icons/HomeIcon.js +1 -0
- package/dist/components/Icons/HomePinIcon.js +1 -0
- package/dist/components/Icons/HomeRepairServiceIcon.js +1 -0
- package/dist/components/Icons/HourGlassTopIcon.js +1 -0
- package/dist/components/Icons/HourglassEmptyIcon.js +1 -0
- package/dist/components/Icons/HubIcon.js +1 -0
- package/dist/components/Icons/IFrameIcon.js +1 -0
- package/dist/components/Icons/IconWrapper.js +1 -0
- package/dist/components/Icons/IdCardIcon.js +1 -0
- package/dist/components/Icons/IndeterminateCheckBoxIcon.js +1 -0
- package/dist/components/Icons/InfoIcon.js +1 -0
- package/dist/components/Icons/InsertChartIcon.js +1 -0
- package/dist/components/Icons/IntegrationInstructionsIcon.js +1 -0
- package/dist/components/Icons/Inventory2Icon.js +1 -0
- package/dist/components/Icons/IosShareIcon.js +1 -0
- package/dist/components/Icons/KeepIcon.js +1 -0
- package/dist/components/Icons/KeyIcon.js +1 -0
- package/dist/components/Icons/KeyOffIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowDownIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowUpIcon.js +1 -0
- package/dist/components/Icons/KeyboardBackSpaceIcon.js +1 -0
- package/dist/components/Icons/KeyboardDoubleArrowDownIcon.js +1 -0
- package/dist/components/Icons/LabProfileIcon.js +1 -0
- package/dist/components/Icons/LabelIcon.js +1 -0
- package/dist/components/Icons/LabelOffIcon.js +1 -0
- package/dist/components/Icons/LanguageIcon.js +1 -0
- package/dist/components/Icons/LeftPanelCloseIcon.js +1 -0
- package/dist/components/Icons/LeftPanelOpenIcon.js +1 -0
- package/dist/components/Icons/LibraryMusicIcon.js +1 -0
- package/dist/components/Icons/LinkIcon.js +1 -0
- package/dist/components/Icons/LinkOffIcon.js +1 -0
- package/dist/components/Icons/LocalActivityIcon.js +1 -0
- package/dist/components/Icons/LocalFloristIcon.js +1 -0
- package/dist/components/Icons/LocalLibraryIcon.js +1 -0
- package/dist/components/Icons/LocationOnIcon.js +1 -0
- package/dist/components/Icons/LockIcon.js +1 -0
- package/dist/components/Icons/LockOpenIcon.js +1 -0
- package/dist/components/Icons/LoginIcon.js +1 -0
- package/dist/components/Icons/LogoutIcon.js +1 -0
- package/dist/components/Icons/MailIcon.js +1 -0
- package/dist/components/Icons/ManageAccountsIcon.js +1 -0
- package/dist/components/Icons/MarkUnreadChatAltIcon.js +1 -0
- package/dist/components/Icons/MediaLinkIcon.js +1 -0
- package/dist/components/Icons/MenuOpenIcon.js +1 -0
- package/dist/components/Icons/MetabolismIcon.js +1 -0
- package/dist/components/Icons/MilitaryTechIcon.js +1 -0
- package/dist/components/Icons/MoneyBagIcon.js +1 -0
- package/dist/components/Icons/MonitorIcon.js +1 -0
- package/dist/components/Icons/MonitoringIcon.js +1 -0
- package/dist/components/Icons/MoreHorizIcon.js +1 -0
- package/dist/components/Icons/MoreVertIcon.js +1 -0
- package/dist/components/Icons/MotionPhotosPausedIcon.js +1 -0
- package/dist/components/Icons/NotificationsIcon.js +1 -0
- package/dist/components/Icons/OpenInNewIcon.js +1 -0
- package/dist/components/Icons/Package2Icon.js +1 -0
- package/dist/components/Icons/PageviewIcon.js +1 -0
- package/dist/components/Icons/PaidIcon.js +1 -0
- package/dist/components/Icons/PaletteIcon.js +1 -0
- package/dist/components/Icons/PatientListIcon.js +1 -0
- package/dist/components/Icons/PauseIcon.js +1 -0
- package/dist/components/Icons/PaymentsIcon.js +1 -0
- package/dist/components/Icons/PendingActionsIcon.js +1 -0
- package/dist/components/Icons/PercentIcon.js +1 -0
- package/dist/components/Icons/PermMediaIcon.js +1 -0
- package/dist/components/Icons/PersonAddIcon.js +1 -0
- package/dist/components/Icons/PersonBookIcon.js +1 -0
- package/dist/components/Icons/PersonIcon.js +1 -0
- package/dist/components/Icons/PhotoCameraIcon.js +1 -0
- package/dist/components/Icons/PhotoIcon.js +1 -0
- package/dist/components/Icons/PhotoLibraryIcon.js +1 -0
- package/dist/components/Icons/PictureAsPdfIcon.js +1 -0
- package/dist/components/Icons/PlayArrowIcon.js +1 -0
- package/dist/components/Icons/PlayCircleIcon.js +1 -0
- package/dist/components/Icons/PolicyIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsCircleIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsNewIcon.js +1 -0
- package/dist/components/Icons/PreviewIcon.js +1 -0
- package/dist/components/Icons/PriorityHighIcon.js +1 -0
- package/dist/components/Icons/PsychologyAltIcon.js +1 -0
- package/dist/components/Icons/PublicIcon.js +1 -0
- package/dist/components/Icons/PublishIcon.js +1 -0
- package/dist/components/Icons/QRCode2Icon.js +1 -0
- package/dist/components/Icons/QuestionMarkIcon.js +1 -0
- package/dist/components/Icons/QuizIcon.js +1 -0
- package/dist/components/Icons/RadioButtonCheckedIcon.js +1 -0
- package/dist/components/Icons/RadioButtonUncheckedIcon.js +1 -0
- package/dist/components/Icons/RateReviewIcon.js +1 -0
- package/dist/components/Icons/ReceiptLongIcon.js +1 -0
- package/dist/components/Icons/RecordVoiceOverIcon.js +1 -0
- package/dist/components/Icons/RedeemIcon.js +1 -0
- package/dist/components/Icons/RedoIcon.js +1 -0
- package/dist/components/Icons/RemoveIcon.js +1 -0
- package/dist/components/Icons/RemoveRoadIcon.js +1 -0
- package/dist/components/Icons/RequestQuoteIcon.js +1 -0
- package/dist/components/Icons/ReviewIcon.js +1 -0
- package/dist/components/Icons/SavingsIcon.js +1 -0
- package/dist/components/Icons/ScheduleIcon.js +1 -0
- package/dist/components/Icons/ScheduleSendIcon.js +1 -0
- package/dist/components/Icons/SearchIcon.js +1 -0
- package/dist/components/Icons/SellIcon.js +1 -0
- package/dist/components/Icons/SendIcon.js +1 -0
- package/dist/components/Icons/SettingsIcon.js +1 -0
- package/dist/components/Icons/ShareIcon.js +1 -0
- package/dist/components/Icons/ShoppingCartIcon.js +1 -0
- package/dist/components/Icons/ShoppingModeIcon.js +1 -0
- package/dist/components/Icons/ShuffleIcon.js +1 -0
- package/dist/components/Icons/SocialLeaderBoardIcon.js +1 -0
- package/dist/components/Icons/Speed15xIcon.js +1 -0
- package/dist/components/Icons/Speed1xIcon.js +1 -0
- package/dist/components/Icons/Speed2xIcon.js +1 -0
- package/dist/components/Icons/StarHalfIcon.js +1 -0
- package/dist/components/Icons/StarIcon.js +1 -0
- package/dist/components/Icons/StorefrontIcon.js +1 -0
- package/dist/components/Icons/StrikethroughSIcon.js +1 -0
- package/dist/components/Icons/SubscriptionsIcon.js +1 -0
- package/dist/components/Icons/SupervisorAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchesIcon.js +1 -0
- package/dist/components/Icons/SyncSavedLocallyIcon.js +1 -0
- package/dist/components/Icons/TabletIcon.js +1 -0
- package/dist/components/Icons/ThumbDownIcon.js +1 -0
- package/dist/components/Icons/ThumbUpIcon.js +1 -0
- package/dist/components/Icons/TocIcon.js +1 -0
- package/dist/components/Icons/TrashDeleteBinIcon.js +1 -0
- package/dist/components/Icons/TrendingUpIcon.js +1 -0
- package/dist/components/Icons/TrophyIcon.js +1 -0
- package/dist/components/Icons/UndoIcon.js +1 -0
- package/dist/components/Icons/UnfoldMoreIcon.js +1 -0
- package/dist/components/Icons/UnsubscribeIcon.js +1 -0
- package/dist/components/Icons/UploadIcon.js +1 -0
- package/dist/components/Icons/VerifiedIcon.js +1 -0
- package/dist/components/Icons/VideoCamIcon.js +1 -0
- package/dist/components/Icons/VideoFileIcon.js +1 -0
- package/dist/components/Icons/ViewAgendaIcon.js +1 -0
- package/dist/components/Icons/ViewArrayIcon.js +1 -0
- package/dist/components/Icons/ViewCarouselIcon.js +1 -0
- package/dist/components/Icons/ViewCozyIcon.js +1 -0
- package/dist/components/Icons/ViewModuleIcon.js +1 -0
- package/dist/components/Icons/VisibilityIcon.js +1 -0
- package/dist/components/Icons/VisibilityOffIcon.js +1 -0
- package/dist/components/Icons/VolumeUpIcon.js +1 -0
- package/dist/components/Icons/VolunteerActivismIcon.js +1 -0
- package/dist/components/Icons/WandStarsGradientIcon.js +1 -0
- package/dist/components/Icons/WandStarsIcon.js +1 -0
- package/dist/components/Icons/WarningIcon.js +1 -0
- package/dist/components/Icons/WbSunnyIcon.js +1 -0
- package/dist/components/Icons/WebAssetIcon.js +1 -0
- package/dist/components/Icons/WebTrafficIcon.js +1 -0
- package/dist/components/Icons/WebhookIcon.js +1 -0
- package/dist/components/Icons/WidgetsIcon.js +1 -0
- package/dist/components/Icons/WorkHistoryIcon.js +1 -0
- package/dist/components/Icons/WorkIcon.js +1 -0
- package/dist/components/Icons/enums.js +1 -0
- package/dist/components/Icons/icons.js +1 -0
- package/dist/components/Icons/index.js +1 -0
- package/dist/components/Icons/types.js +1 -0
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/InputField.js +1 -0
- package/dist/components/Input/InputRoot.js +1 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/PasswordField/PasswordField.js +2 -0
- package/dist/components/PasswordField/index.js +1 -0
- package/dist/components/PhoneNumber/PhoneNumberDigitField.js +3 -0
- package/dist/components/PhoneNumber/PhoneNumberFields.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberFlagField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberInput.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptions.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsList.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsSearchField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberPortal.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberRoot.js +2 -0
- package/dist/components/PhoneNumber/index.js +1 -0
- package/dist/components/PhoneNumber/phoneNumberContext.js +1 -0
- package/dist/components/PriceField/PriceFieldDigitField.js +2 -0
- package/dist/components/PriceField/PriceFieldFields.js +2 -0
- package/dist/components/PriceField/PriceFieldFlagField.js +2 -0
- package/dist/components/PriceField/PriceFieldInput.js +2 -0
- package/dist/components/PriceField/PriceFieldOptions.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsList.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsSearchField.js +2 -0
- package/dist/components/PriceField/PriceFieldPortal.js +2 -0
- package/dist/components/PriceField/PriceFieldRoot.js +2 -0
- package/dist/components/PriceField/index.js +1 -0
- package/dist/components/PriceField/priceFieldContext.js +1 -0
- package/dist/components/Provider/MainstackDesignSystemProvider.js +1 -0
- package/dist/components/Provider/index.js +1 -0
- package/dist/components/Provider/providerContext.js +1 -0
- package/dist/components/Provider/useMainstackDesignSystemTheme.js +1 -0
- package/dist/components/Radio/RadioItem.js +1 -0
- package/dist/components/Radio/RadioItemIndicator.js +1 -0
- package/dist/components/Radio/RadioItemLabel.js +1 -0
- package/dist/components/Radio/RadioItemSubtext.js +1 -0
- package/dist/components/Radio/RadioItemTitle.js +1 -0
- package/dist/components/Radio/RadioRoot.js +1 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/SearchField/SearchField.js +2 -0
- package/dist/components/SearchField/index.js +1 -0
- package/dist/components/Select/MultiSelect.js +2 -0
- package/dist/components/Select/Select.js +2 -0
- package/dist/components/Select/SelectInputField.js +2 -0
- package/dist/components/Select/SelectOptionInputPreview.js +2 -0
- package/dist/components/Select/SelectOptionItem.js +2 -0
- package/dist/components/Select/SelectOptionItemWithCheckbox.js +2 -0
- package/dist/components/Select/SelectOptions.js +2 -0
- package/dist/components/Select/SelectPortal.js +2 -0
- package/dist/components/Select/SelectRoot.js +2 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/Select/selectContext.js +1 -0
- package/dist/components/Select/utils.js +1 -0
- package/dist/components/Tab/TabsContent.js +1 -0
- package/dist/components/Tab/TabsContext.js +1 -0
- package/dist/components/Tab/TabsList.js +1 -0
- package/dist/components/Tab/TabsRoot.js +1 -0
- package/dist/components/Tab/TabsTrigger.js +1 -0
- package/dist/components/Tab/index.js +1 -0
- package/dist/components/Tab/tabsVariants.js +1 -0
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/Tag/TagIcon.js +1 -0
- package/dist/components/Tag/TagLabel.js +1 -0
- package/dist/components/Tag/TagRoot.js +1 -0
- package/dist/components/Tag/index.js +1 -0
- package/dist/components/Tag/tagVariants.js +1 -0
- package/dist/components/TextEditor/TextEditorField.js +4 -0
- package/dist/components/TextEditor/TextEditorInput.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/BoldMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/CodeMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ColorPickerMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/GenerateWithAiMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ImageUploadMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ItalicMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/LinkMenu.js +6 -0
- package/dist/components/TextEditor/TextEditorMenuBar/OrderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/StrikethroughMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextAlignMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuAction.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuBar.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextSizesMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnderlineMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnorderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorRoot.js +42 -0
- package/dist/components/TextEditor/index.js +1 -0
- package/dist/components/TextEditor/textEditorContext.js +1 -0
- package/dist/components/Textarea/Textarea.js +1 -0
- package/dist/components/Textarea/TextareaField.js +1 -0
- package/dist/components/Textarea/TextareaRoot.js +1 -0
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/Tile/TileCheckbox.js +1 -0
- package/dist/components/Tile/TileContent.js +1 -0
- package/dist/components/Tile/TileDescription.js +1 -0
- package/dist/components/Tile/TileHeader.js +1 -0
- package/dist/components/Tile/TileMedia.js +3 -0
- package/dist/components/Tile/TileRoot.js +2 -0
- package/dist/components/Tile/TileTitle.js +1 -0
- package/dist/components/Tile/index.js +1 -0
- package/dist/components/Tile/tileVariants.js +1 -0
- package/dist/components/Toggle/Toggle.js +1 -0
- package/dist/components/Toggle/ToggleLabel.js +1 -0
- package/dist/components/Toggle/ToggleRoot.js +1 -0
- package/dist/components/Toggle/ToggleSubtext.js +1 -0
- package/dist/components/Toggle/ToggleSwitch.js +2 -0
- package/dist/components/Toggle/ToggleTitle.js +1 -0
- package/dist/components/Toggle/index.js +1 -0
- package/dist/components/Toggle/toggleVariants.js +1 -0
- package/dist/components/Tooltip/TooltipArrow.js +1 -0
- package/dist/components/Tooltip/TooltipBody.js +1 -0
- package/dist/components/Tooltip/TooltipContent.js +1 -0
- package/dist/components/Tooltip/TooltipContext.js +1 -0
- package/dist/components/Tooltip/TooltipFooter.js +1 -0
- package/dist/components/Tooltip/TooltipHeader.js +1 -0
- package/dist/components/Tooltip/TooltipRoot.js +2 -0
- package/dist/components/Tooltip/TooltipTitle.js +1 -0
- package/dist/components/Tooltip/TooltipTrigger.js +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/Tooltip/useTooltipContext.js +1 -0
- package/dist/components/Typography/BodyText/BodyText.js +1 -0
- package/dist/components/Typography/BodyText/bodyTextVariants.js +1 -0
- package/dist/components/Typography/BodyText/index.js +1 -0
- package/dist/components/Typography/DisplayText/DisplayText.js +1 -0
- package/dist/components/Typography/DisplayText/displayTextVariants.js +1 -0
- package/dist/components/Typography/DisplayText/index.js +1 -0
- package/dist/components/Typography/HeadlineText/HeadlineText.js +1 -0
- package/dist/components/Typography/HeadlineText/headlineTextVariants.js +1 -0
- package/dist/components/Typography/HeadlineText/index.js +1 -0
- package/dist/en.json-BPy-6DYI.cjs +1 -0
- package/dist/en.json-VbJG9vrN.js +263 -0
- package/dist/floating-ui.dom-C224prEy.cjs +1 -0
- package/dist/floating-ui.dom-CauyjNxS.js +1131 -0
- package/dist/fonts/degular/Degular-Black.woff2 +0 -0
- package/dist/fonts/degular/Degular-Black_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Regular.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin_Italic.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Black.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BlackIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Bold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BoldIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Book.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BookIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Medium.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-MediumIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Regular.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-RegularIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Semibold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-SemiboldIt.woff2 +0 -0
- package/dist/getInternationalPhoneNumberPrefix-C4Qc97tE.cjs +34 -0
- package/dist/getInternationalPhoneNumberPrefix-C8O8VTpp.js +4368 -0
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-437EL2iq.js +52 -0
- package/dist/index-5Bhkapwi.js +82 -0
- package/dist/index-B0dI0L76.cjs +2 -0
- package/dist/index-BGQepRFJ.js +27 -0
- package/dist/index-BGfrl8IX.js +71 -0
- package/dist/index-BI11g55_.cjs +42 -0
- package/dist/index-BRRTyZ1e.js +75 -0
- package/dist/index-BZCybroW.cjs +2 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-B_Bwy8wX.cjs +1 -0
- package/dist/index-BbQbyYHN.cjs +2 -0
- package/dist/index-BfKbXbc8.cjs +1 -0
- package/dist/index-BvWMjxZ5.js +675 -0
- package/dist/index-Bx2vBAJ5.cjs +2 -0
- package/dist/index-ByaXH_ih.js +10 -0
- package/dist/index-C2mPf2xD.cjs +1 -0
- package/dist/index-C8aODXfJ.cjs +1 -0
- package/dist/index-CAgJYdlN.cjs +1 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/index-CRDKsB5y.cjs +2 -0
- package/dist/index-CRdNenpR.js +422 -0
- package/dist/index-CajSSBH7.cjs +1 -0
- package/dist/index-Cje7xxa1.cjs +1 -0
- package/dist/index-CpDnqHCm.js +36 -0
- package/dist/index-CsK1LjrZ.cjs +2 -0
- package/dist/index-CvknVH0W.js +754 -0
- package/dist/index-CwR-dC8j.cjs +2 -0
- package/dist/index-CyFz8fal.cjs +131 -0
- package/dist/index-CzY-WZXL.cjs +1 -0
- package/dist/index-D-KHlZ2P.js +20 -0
- package/dist/index-D29mdTf5.js +34 -0
- package/dist/index-D9S-9HH_.js +332 -0
- package/dist/index-DCXkdCW2.js +227 -0
- package/dist/index-DLcgu_3m.js +159 -0
- package/dist/index-DVuTCIJE.cjs +2 -0
- package/dist/index-DWQmix6e.js +234 -0
- package/dist/index-DYxWvftI.cjs +1 -0
- package/dist/index-DgIcguCG.cjs +2 -0
- package/dist/index-DmeJCEwx.js +181 -0
- package/dist/index-Dt3HnaYe.js +48 -0
- package/dist/index-Dz5LHXX9.js +145 -0
- package/dist/index-MQ0c3ZX_.cjs +1 -0
- package/dist/index-ZhUVW4CS.cjs +2 -0
- package/dist/index-bSPhqlcX.cjs +1 -0
- package/dist/index-fw7dUmQl.js +352 -0
- package/dist/index-ojFnBVkh.cjs +2 -0
- package/dist/index-q-4o5Ie4.cjs +2 -0
- package/dist/index-twi8FX77.js +13814 -0
- package/dist/index-xqkGMOJ8.js +13 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +1 -0
- package/dist/lib/useElementWidth.js +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +89 -66
- package/build/index.css +0 -6
- package/build/index.d.ts +0 -1419
- package/build/mainstack-design-system.js +0 -25463
|
@@ -0,0 +1,4368 @@
|
|
|
1
|
+
import Q, { useRef as Or, useCallback as z } from "react";
|
|
2
|
+
import { g as xr } from "./_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
const Ha = { 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, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "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, "([267]\\d{6})$|1", "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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|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, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|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])|[34]\\d\\d)|91(?:(?:[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}|(?: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])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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, "([2-9]\\d{6})$|1", "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(?:[15]|28|4[14])|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]|2[23]"], "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|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\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[02-4679]"]]]], 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", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\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, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], 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-9]"]], ["(\\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-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [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(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[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, "([59]\\d{7})$|0", "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(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\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{2})(\\d{4})", "$1 $2 $3", ["2"], "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"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "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, 12], [["(\\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{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\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(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "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, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], 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", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [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", ["[56]"], "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, "([59]\\d{7})$|0", "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(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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, 10, 11, 12], [["(\\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{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "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, "([2-7]\\d{6})$|1", "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", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "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{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "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|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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|1(?:[0-7]\\d|8[0-3]))|(?: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, "([2-9]\\d{6})$|1", "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\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "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|60)\\d{6}", [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\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "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[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], 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", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-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", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{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", ["6|7[245]"], "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-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], 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]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\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, "([25-8]\\d{5})$|0|180020", "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,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\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]|43"]], ["(\\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", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [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]], ["3[2-8]\\d{9,10}", [11, 12]], 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-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\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|427|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", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\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)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\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[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "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", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], 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-9]\\d{8}", [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, "([2-7]\\d{6})$|1", "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", ["[36]0|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, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|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", ["3"], "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-6]|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, "([2-8]\\d{6})$|1", "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, "(1001)|0"], 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", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "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]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 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|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|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{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"], "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, [["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|[67]\\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", ["[67]"], "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\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "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", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "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, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "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, "([34]\\d{6})$|1", "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", ["[34679]"]], ["(\\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]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 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[0467]"]]]], 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", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "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", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 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", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "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)|[589]"], "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"], "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]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\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-7])"], "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", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\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", ["[236-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, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "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", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [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{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\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, 12], [["(\\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-9]|[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|79)\\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", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\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-9]"]]]], 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\\d|500)\\d{5}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\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, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "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, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 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", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 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|71)\\d{6}", [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", ["[67]"], "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]|61[06])", "5(?:[0-59]|61[06]1)"], "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, "([2-46-8]\\d{6})$|1", "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, [["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|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-3589]|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-9]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "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{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], 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, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "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, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "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|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\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", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\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", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "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-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], 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|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "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}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 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, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\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, ["348[57]\\d{7}", [11]], 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})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\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\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 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}"]]] } };
|
|
4
|
+
var me = { exports: {} }, ve = { exports: {} }, A = {};
|
|
5
|
+
/** @license React v16.13.1
|
|
6
|
+
* react-is.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var st;
|
|
14
|
+
function Ar() {
|
|
15
|
+
if (st) return A;
|
|
16
|
+
st = 1;
|
|
17
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, d = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, $ = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
18
|
+
function F(c) {
|
|
19
|
+
if (typeof c == "object" && c !== null) {
|
|
20
|
+
var V = c.$$typeof;
|
|
21
|
+
switch (V) {
|
|
22
|
+
case t:
|
|
23
|
+
switch (c = c.type, c) {
|
|
24
|
+
case u:
|
|
25
|
+
case $:
|
|
26
|
+
case n:
|
|
27
|
+
case d:
|
|
28
|
+
case i:
|
|
29
|
+
case y:
|
|
30
|
+
return c;
|
|
31
|
+
default:
|
|
32
|
+
switch (c = c && c.$$typeof, c) {
|
|
33
|
+
case o:
|
|
34
|
+
case l:
|
|
35
|
+
case C:
|
|
36
|
+
case v:
|
|
37
|
+
case a:
|
|
38
|
+
return c;
|
|
39
|
+
default:
|
|
40
|
+
return V;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
case r:
|
|
44
|
+
return V;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function R(c) {
|
|
49
|
+
return F(c) === $;
|
|
50
|
+
}
|
|
51
|
+
return A.AsyncMode = u, A.ConcurrentMode = $, A.ContextConsumer = o, A.ContextProvider = a, A.Element = t, A.ForwardRef = l, A.Fragment = n, A.Lazy = C, A.Memo = v, A.Portal = r, A.Profiler = d, A.StrictMode = i, A.Suspense = y, A.isAsyncMode = function(c) {
|
|
52
|
+
return R(c) || F(c) === u;
|
|
53
|
+
}, A.isConcurrentMode = R, A.isContextConsumer = function(c) {
|
|
54
|
+
return F(c) === o;
|
|
55
|
+
}, A.isContextProvider = function(c) {
|
|
56
|
+
return F(c) === a;
|
|
57
|
+
}, A.isElement = function(c) {
|
|
58
|
+
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
59
|
+
}, A.isForwardRef = function(c) {
|
|
60
|
+
return F(c) === l;
|
|
61
|
+
}, A.isFragment = function(c) {
|
|
62
|
+
return F(c) === n;
|
|
63
|
+
}, A.isLazy = function(c) {
|
|
64
|
+
return F(c) === C;
|
|
65
|
+
}, A.isMemo = function(c) {
|
|
66
|
+
return F(c) === v;
|
|
67
|
+
}, A.isPortal = function(c) {
|
|
68
|
+
return F(c) === r;
|
|
69
|
+
}, A.isProfiler = function(c) {
|
|
70
|
+
return F(c) === d;
|
|
71
|
+
}, A.isStrictMode = function(c) {
|
|
72
|
+
return F(c) === i;
|
|
73
|
+
}, A.isSuspense = function(c) {
|
|
74
|
+
return F(c) === y;
|
|
75
|
+
}, A.isValidElementType = function(c) {
|
|
76
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === $ || c === d || c === i || c === y || c === g || typeof c == "object" && c !== null && (c.$$typeof === C || c.$$typeof === v || c.$$typeof === a || c.$$typeof === o || c.$$typeof === l || c.$$typeof === m || c.$$typeof === L || c.$$typeof === k || c.$$typeof === b);
|
|
77
|
+
}, A.typeOf = F, A;
|
|
78
|
+
}
|
|
79
|
+
var w = {};
|
|
80
|
+
/** @license React v16.13.1
|
|
81
|
+
* react-is.development.js
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/
|
|
88
|
+
var ct;
|
|
89
|
+
function wr() {
|
|
90
|
+
return ct || (ct = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
91
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, d = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, $ = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
92
|
+
function F(s) {
|
|
93
|
+
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
94
|
+
s === n || s === $ || s === d || s === i || s === y || s === g || typeof s == "object" && s !== null && (s.$$typeof === C || s.$$typeof === v || s.$$typeof === a || s.$$typeof === o || s.$$typeof === l || s.$$typeof === m || s.$$typeof === L || s.$$typeof === k || s.$$typeof === b);
|
|
95
|
+
}
|
|
96
|
+
function R(s) {
|
|
97
|
+
if (typeof s == "object" && s !== null) {
|
|
98
|
+
var W = s.$$typeof;
|
|
99
|
+
switch (W) {
|
|
100
|
+
case t:
|
|
101
|
+
var ge = s.type;
|
|
102
|
+
switch (ge) {
|
|
103
|
+
case u:
|
|
104
|
+
case $:
|
|
105
|
+
case n:
|
|
106
|
+
case d:
|
|
107
|
+
case i:
|
|
108
|
+
case y:
|
|
109
|
+
return ge;
|
|
110
|
+
default:
|
|
111
|
+
var ft = ge && ge.$$typeof;
|
|
112
|
+
switch (ft) {
|
|
113
|
+
case o:
|
|
114
|
+
case l:
|
|
115
|
+
case C:
|
|
116
|
+
case v:
|
|
117
|
+
case a:
|
|
118
|
+
return ft;
|
|
119
|
+
default:
|
|
120
|
+
return W;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
case r:
|
|
124
|
+
return W;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
var c = u, V = $, Oe = o, xe = a, Ae = t, we = l, ye = n, Ie = C, _e = v, X = r, Fe = d, U = i, Y = y, he = !1;
|
|
129
|
+
function Re(s) {
|
|
130
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(s) || R(s) === u;
|
|
131
|
+
}
|
|
132
|
+
function f(s) {
|
|
133
|
+
return R(s) === $;
|
|
134
|
+
}
|
|
135
|
+
function h(s) {
|
|
136
|
+
return R(s) === o;
|
|
137
|
+
}
|
|
138
|
+
function S(s) {
|
|
139
|
+
return R(s) === a;
|
|
140
|
+
}
|
|
141
|
+
function N(s) {
|
|
142
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
143
|
+
}
|
|
144
|
+
function p(s) {
|
|
145
|
+
return R(s) === l;
|
|
146
|
+
}
|
|
147
|
+
function T(s) {
|
|
148
|
+
return R(s) === n;
|
|
149
|
+
}
|
|
150
|
+
function P(s) {
|
|
151
|
+
return R(s) === C;
|
|
152
|
+
}
|
|
153
|
+
function E(s) {
|
|
154
|
+
return R(s) === v;
|
|
155
|
+
}
|
|
156
|
+
function O(s) {
|
|
157
|
+
return R(s) === r;
|
|
158
|
+
}
|
|
159
|
+
function I(s) {
|
|
160
|
+
return R(s) === d;
|
|
161
|
+
}
|
|
162
|
+
function x(s) {
|
|
163
|
+
return R(s) === i;
|
|
164
|
+
}
|
|
165
|
+
function j(s) {
|
|
166
|
+
return R(s) === y;
|
|
167
|
+
}
|
|
168
|
+
w.AsyncMode = c, w.ConcurrentMode = V, w.ContextConsumer = Oe, w.ContextProvider = xe, w.Element = Ae, w.ForwardRef = we, w.Fragment = ye, w.Lazy = Ie, w.Memo = _e, w.Portal = X, w.Profiler = Fe, w.StrictMode = U, w.Suspense = Y, w.isAsyncMode = Re, w.isConcurrentMode = f, w.isContextConsumer = h, w.isContextProvider = S, w.isElement = N, w.isForwardRef = p, w.isFragment = T, w.isLazy = P, w.isMemo = E, w.isPortal = O, w.isProfiler = I, w.isStrictMode = x, w.isSuspense = j, w.isValidElementType = F, w.typeOf = R;
|
|
169
|
+
})()), w;
|
|
170
|
+
}
|
|
171
|
+
var yt;
|
|
172
|
+
function dr() {
|
|
173
|
+
return yt || (yt = 1, process.env.NODE_ENV === "production" ? ve.exports = Ar() : ve.exports = wr()), ve.exports;
|
|
174
|
+
}
|
|
175
|
+
/*
|
|
176
|
+
object-assign
|
|
177
|
+
(c) Sindre Sorhus
|
|
178
|
+
@license MIT
|
|
179
|
+
*/
|
|
180
|
+
var De, ht;
|
|
181
|
+
function Ir() {
|
|
182
|
+
if (ht) return De;
|
|
183
|
+
ht = 1;
|
|
184
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
185
|
+
function n(d) {
|
|
186
|
+
if (d == null)
|
|
187
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
188
|
+
return Object(d);
|
|
189
|
+
}
|
|
190
|
+
function i() {
|
|
191
|
+
try {
|
|
192
|
+
if (!Object.assign)
|
|
193
|
+
return !1;
|
|
194
|
+
var d = new String("abc");
|
|
195
|
+
if (d[5] = "de", Object.getOwnPropertyNames(d)[0] === "5")
|
|
196
|
+
return !1;
|
|
197
|
+
for (var a = {}, o = 0; o < 10; o++)
|
|
198
|
+
a["_" + String.fromCharCode(o)] = o;
|
|
199
|
+
var u = Object.getOwnPropertyNames(a).map(function(l) {
|
|
200
|
+
return a[l];
|
|
201
|
+
});
|
|
202
|
+
if (u.join("") !== "0123456789")
|
|
203
|
+
return !1;
|
|
204
|
+
var $ = {};
|
|
205
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(l) {
|
|
206
|
+
$[l] = l;
|
|
207
|
+
}), Object.keys(Object.assign({}, $)).join("") === "abcdefghijklmnopqrst";
|
|
208
|
+
} catch {
|
|
209
|
+
return !1;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return De = i() ? Object.assign : function(d, a) {
|
|
213
|
+
for (var o, u = n(d), $, l = 1; l < arguments.length; l++) {
|
|
214
|
+
o = Object(arguments[l]);
|
|
215
|
+
for (var y in o)
|
|
216
|
+
t.call(o, y) && (u[y] = o[y]);
|
|
217
|
+
if (e) {
|
|
218
|
+
$ = e(o);
|
|
219
|
+
for (var g = 0; g < $.length; g++)
|
|
220
|
+
r.call(o, $[g]) && (u[$[g]] = o[$[g]]);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return u;
|
|
224
|
+
}, De;
|
|
225
|
+
}
|
|
226
|
+
var Le, gt;
|
|
227
|
+
function dt() {
|
|
228
|
+
if (gt) return Le;
|
|
229
|
+
gt = 1;
|
|
230
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
231
|
+
return Le = e, Le;
|
|
232
|
+
}
|
|
233
|
+
var Me, mt;
|
|
234
|
+
function ar() {
|
|
235
|
+
return mt || (mt = 1, Me = Function.call.bind(Object.prototype.hasOwnProperty)), Me;
|
|
236
|
+
}
|
|
237
|
+
var je, vt;
|
|
238
|
+
function _r() {
|
|
239
|
+
if (vt) return je;
|
|
240
|
+
vt = 1;
|
|
241
|
+
var e = function() {
|
|
242
|
+
};
|
|
243
|
+
if (process.env.NODE_ENV !== "production") {
|
|
244
|
+
var t = /* @__PURE__ */ dt(), r = {}, n = /* @__PURE__ */ ar();
|
|
245
|
+
e = function(d) {
|
|
246
|
+
var a = "Warning: " + d;
|
|
247
|
+
typeof console < "u" && console.error(a);
|
|
248
|
+
try {
|
|
249
|
+
throw new Error(a);
|
|
250
|
+
} catch {
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function i(d, a, o, u, $) {
|
|
255
|
+
if (process.env.NODE_ENV !== "production") {
|
|
256
|
+
for (var l in d)
|
|
257
|
+
if (n(d, l)) {
|
|
258
|
+
var y;
|
|
259
|
+
try {
|
|
260
|
+
if (typeof d[l] != "function") {
|
|
261
|
+
var g = Error(
|
|
262
|
+
(u || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
263
|
+
);
|
|
264
|
+
throw g.name = "Invariant Violation", g;
|
|
265
|
+
}
|
|
266
|
+
y = d[l](a, l, u, o, null, t);
|
|
267
|
+
} catch (C) {
|
|
268
|
+
y = C;
|
|
269
|
+
}
|
|
270
|
+
if (y && !(y instanceof Error) && e(
|
|
271
|
+
(u || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
272
|
+
), y instanceof Error && !(y.message in r)) {
|
|
273
|
+
r[y.message] = !0;
|
|
274
|
+
var v = $ ? $() : "";
|
|
275
|
+
e(
|
|
276
|
+
"Failed " + o + " type: " + y.message + (v ?? "")
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return i.resetWarningCache = function() {
|
|
283
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
284
|
+
}, je = i, je;
|
|
285
|
+
}
|
|
286
|
+
var ke, pt;
|
|
287
|
+
function Fr() {
|
|
288
|
+
if (pt) return ke;
|
|
289
|
+
pt = 1;
|
|
290
|
+
var e = dr(), t = Ir(), r = /* @__PURE__ */ dt(), n = /* @__PURE__ */ ar(), i = /* @__PURE__ */ _r(), d = function() {
|
|
291
|
+
};
|
|
292
|
+
process.env.NODE_ENV !== "production" && (d = function(o) {
|
|
293
|
+
var u = "Warning: " + o;
|
|
294
|
+
typeof console < "u" && console.error(u);
|
|
295
|
+
try {
|
|
296
|
+
throw new Error(u);
|
|
297
|
+
} catch {
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
function a() {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
return ke = function(o, u) {
|
|
304
|
+
var $ = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
305
|
+
function y(f) {
|
|
306
|
+
var h = f && ($ && f[$] || f[l]);
|
|
307
|
+
if (typeof h == "function")
|
|
308
|
+
return h;
|
|
309
|
+
}
|
|
310
|
+
var g = "<<anonymous>>", v = {
|
|
311
|
+
array: L("array"),
|
|
312
|
+
bigint: L("bigint"),
|
|
313
|
+
bool: L("boolean"),
|
|
314
|
+
func: L("function"),
|
|
315
|
+
number: L("number"),
|
|
316
|
+
object: L("object"),
|
|
317
|
+
string: L("string"),
|
|
318
|
+
symbol: L("symbol"),
|
|
319
|
+
any: k(),
|
|
320
|
+
arrayOf: F,
|
|
321
|
+
element: R(),
|
|
322
|
+
elementType: c(),
|
|
323
|
+
instanceOf: V,
|
|
324
|
+
node: we(),
|
|
325
|
+
objectOf: xe,
|
|
326
|
+
oneOf: Oe,
|
|
327
|
+
oneOfType: Ae,
|
|
328
|
+
shape: Ie,
|
|
329
|
+
exact: _e
|
|
330
|
+
};
|
|
331
|
+
function C(f, h) {
|
|
332
|
+
return f === h ? f !== 0 || 1 / f === 1 / h : f !== f && h !== h;
|
|
333
|
+
}
|
|
334
|
+
function b(f, h) {
|
|
335
|
+
this.message = f, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
|
|
336
|
+
}
|
|
337
|
+
b.prototype = Error.prototype;
|
|
338
|
+
function m(f) {
|
|
339
|
+
if (process.env.NODE_ENV !== "production")
|
|
340
|
+
var h = {}, S = 0;
|
|
341
|
+
function N(T, P, E, O, I, x, j) {
|
|
342
|
+
if (O = O || g, x = x || E, j !== r) {
|
|
343
|
+
if (u) {
|
|
344
|
+
var s = new Error(
|
|
345
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
346
|
+
);
|
|
347
|
+
throw s.name = "Invariant Violation", s;
|
|
348
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
349
|
+
var W = O + ":" + E;
|
|
350
|
+
!h[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
351
|
+
S < 3 && (d(
|
|
352
|
+
"You are manually calling a React.PropTypes validation function for the `" + x + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
353
|
+
), h[W] = !0, S++);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return P[E] == null ? T ? P[E] === null ? new b("The " + I + " `" + x + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new b("The " + I + " `" + x + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : f(P, E, O, I, x);
|
|
357
|
+
}
|
|
358
|
+
var p = N.bind(null, !1);
|
|
359
|
+
return p.isRequired = N.bind(null, !0), p;
|
|
360
|
+
}
|
|
361
|
+
function L(f) {
|
|
362
|
+
function h(S, N, p, T, P, E) {
|
|
363
|
+
var O = S[N], I = U(O);
|
|
364
|
+
if (I !== f) {
|
|
365
|
+
var x = Y(O);
|
|
366
|
+
return new b(
|
|
367
|
+
"Invalid " + T + " `" + P + "` of type " + ("`" + x + "` supplied to `" + p + "`, expected ") + ("`" + f + "`."),
|
|
368
|
+
{ expectedType: f }
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
return null;
|
|
372
|
+
}
|
|
373
|
+
return m(h);
|
|
374
|
+
}
|
|
375
|
+
function k() {
|
|
376
|
+
return m(a);
|
|
377
|
+
}
|
|
378
|
+
function F(f) {
|
|
379
|
+
function h(S, N, p, T, P) {
|
|
380
|
+
if (typeof f != "function")
|
|
381
|
+
return new b("Property `" + P + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
|
|
382
|
+
var E = S[N];
|
|
383
|
+
if (!Array.isArray(E)) {
|
|
384
|
+
var O = U(E);
|
|
385
|
+
return new b("Invalid " + T + " `" + P + "` of type " + ("`" + O + "` supplied to `" + p + "`, expected an array."));
|
|
386
|
+
}
|
|
387
|
+
for (var I = 0; I < E.length; I++) {
|
|
388
|
+
var x = f(E, I, p, T, P + "[" + I + "]", r);
|
|
389
|
+
if (x instanceof Error)
|
|
390
|
+
return x;
|
|
391
|
+
}
|
|
392
|
+
return null;
|
|
393
|
+
}
|
|
394
|
+
return m(h);
|
|
395
|
+
}
|
|
396
|
+
function R() {
|
|
397
|
+
function f(h, S, N, p, T) {
|
|
398
|
+
var P = h[S];
|
|
399
|
+
if (!o(P)) {
|
|
400
|
+
var E = U(P);
|
|
401
|
+
return new b("Invalid " + p + " `" + T + "` of type " + ("`" + E + "` supplied to `" + N + "`, expected a single ReactElement."));
|
|
402
|
+
}
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
405
|
+
return m(f);
|
|
406
|
+
}
|
|
407
|
+
function c() {
|
|
408
|
+
function f(h, S, N, p, T) {
|
|
409
|
+
var P = h[S];
|
|
410
|
+
if (!e.isValidElementType(P)) {
|
|
411
|
+
var E = U(P);
|
|
412
|
+
return new b("Invalid " + p + " `" + T + "` of type " + ("`" + E + "` supplied to `" + N + "`, expected a single ReactElement type."));
|
|
413
|
+
}
|
|
414
|
+
return null;
|
|
415
|
+
}
|
|
416
|
+
return m(f);
|
|
417
|
+
}
|
|
418
|
+
function V(f) {
|
|
419
|
+
function h(S, N, p, T, P) {
|
|
420
|
+
if (!(S[N] instanceof f)) {
|
|
421
|
+
var E = f.name || g, O = Re(S[N]);
|
|
422
|
+
return new b("Invalid " + T + " `" + P + "` of type " + ("`" + O + "` supplied to `" + p + "`, expected ") + ("instance of `" + E + "`."));
|
|
423
|
+
}
|
|
424
|
+
return null;
|
|
425
|
+
}
|
|
426
|
+
return m(h);
|
|
427
|
+
}
|
|
428
|
+
function Oe(f) {
|
|
429
|
+
if (!Array.isArray(f))
|
|
430
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? d(
|
|
431
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
432
|
+
) : d("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
433
|
+
function h(S, N, p, T, P) {
|
|
434
|
+
for (var E = S[N], O = 0; O < f.length; O++)
|
|
435
|
+
if (C(E, f[O]))
|
|
436
|
+
return null;
|
|
437
|
+
var I = JSON.stringify(f, function(j, s) {
|
|
438
|
+
var W = Y(s);
|
|
439
|
+
return W === "symbol" ? String(s) : s;
|
|
440
|
+
});
|
|
441
|
+
return new b("Invalid " + T + " `" + P + "` of value `" + String(E) + "` " + ("supplied to `" + p + "`, expected one of " + I + "."));
|
|
442
|
+
}
|
|
443
|
+
return m(h);
|
|
444
|
+
}
|
|
445
|
+
function xe(f) {
|
|
446
|
+
function h(S, N, p, T, P) {
|
|
447
|
+
if (typeof f != "function")
|
|
448
|
+
return new b("Property `" + P + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
|
|
449
|
+
var E = S[N], O = U(E);
|
|
450
|
+
if (O !== "object")
|
|
451
|
+
return new b("Invalid " + T + " `" + P + "` of type " + ("`" + O + "` supplied to `" + p + "`, expected an object."));
|
|
452
|
+
for (var I in E)
|
|
453
|
+
if (n(E, I)) {
|
|
454
|
+
var x = f(E, I, p, T, P + "." + I, r);
|
|
455
|
+
if (x instanceof Error)
|
|
456
|
+
return x;
|
|
457
|
+
}
|
|
458
|
+
return null;
|
|
459
|
+
}
|
|
460
|
+
return m(h);
|
|
461
|
+
}
|
|
462
|
+
function Ae(f) {
|
|
463
|
+
if (!Array.isArray(f))
|
|
464
|
+
return process.env.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
465
|
+
for (var h = 0; h < f.length; h++) {
|
|
466
|
+
var S = f[h];
|
|
467
|
+
if (typeof S != "function")
|
|
468
|
+
return d(
|
|
469
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(S) + " at index " + h + "."
|
|
470
|
+
), a;
|
|
471
|
+
}
|
|
472
|
+
function N(p, T, P, E, O) {
|
|
473
|
+
for (var I = [], x = 0; x < f.length; x++) {
|
|
474
|
+
var j = f[x], s = j(p, T, P, E, O, r);
|
|
475
|
+
if (s == null)
|
|
476
|
+
return null;
|
|
477
|
+
s.data && n(s.data, "expectedType") && I.push(s.data.expectedType);
|
|
478
|
+
}
|
|
479
|
+
var W = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
|
|
480
|
+
return new b("Invalid " + E + " `" + O + "` supplied to " + ("`" + P + "`" + W + "."));
|
|
481
|
+
}
|
|
482
|
+
return m(N);
|
|
483
|
+
}
|
|
484
|
+
function we() {
|
|
485
|
+
function f(h, S, N, p, T) {
|
|
486
|
+
return X(h[S]) ? null : new b("Invalid " + p + " `" + T + "` supplied to " + ("`" + N + "`, expected a ReactNode."));
|
|
487
|
+
}
|
|
488
|
+
return m(f);
|
|
489
|
+
}
|
|
490
|
+
function ye(f, h, S, N, p) {
|
|
491
|
+
return new b(
|
|
492
|
+
(f || "React class") + ": " + h + " type `" + S + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
function Ie(f) {
|
|
496
|
+
function h(S, N, p, T, P) {
|
|
497
|
+
var E = S[N], O = U(E);
|
|
498
|
+
if (O !== "object")
|
|
499
|
+
return new b("Invalid " + T + " `" + P + "` of type `" + O + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
500
|
+
for (var I in f) {
|
|
501
|
+
var x = f[I];
|
|
502
|
+
if (typeof x != "function")
|
|
503
|
+
return ye(p, T, P, I, Y(x));
|
|
504
|
+
var j = x(E, I, p, T, P + "." + I, r);
|
|
505
|
+
if (j)
|
|
506
|
+
return j;
|
|
507
|
+
}
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
return m(h);
|
|
511
|
+
}
|
|
512
|
+
function _e(f) {
|
|
513
|
+
function h(S, N, p, T, P) {
|
|
514
|
+
var E = S[N], O = U(E);
|
|
515
|
+
if (O !== "object")
|
|
516
|
+
return new b("Invalid " + T + " `" + P + "` of type `" + O + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
517
|
+
var I = t({}, S[N], f);
|
|
518
|
+
for (var x in I) {
|
|
519
|
+
var j = f[x];
|
|
520
|
+
if (n(f, x) && typeof j != "function")
|
|
521
|
+
return ye(p, T, P, x, Y(j));
|
|
522
|
+
if (!j)
|
|
523
|
+
return new b(
|
|
524
|
+
"Invalid " + T + " `" + P + "` key `" + x + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(S[N], null, " ") + `
|
|
525
|
+
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
526
|
+
);
|
|
527
|
+
var s = j(E, x, p, T, P + "." + x, r);
|
|
528
|
+
if (s)
|
|
529
|
+
return s;
|
|
530
|
+
}
|
|
531
|
+
return null;
|
|
532
|
+
}
|
|
533
|
+
return m(h);
|
|
534
|
+
}
|
|
535
|
+
function X(f) {
|
|
536
|
+
switch (typeof f) {
|
|
537
|
+
case "number":
|
|
538
|
+
case "string":
|
|
539
|
+
case "undefined":
|
|
540
|
+
return !0;
|
|
541
|
+
case "boolean":
|
|
542
|
+
return !f;
|
|
543
|
+
case "object":
|
|
544
|
+
if (Array.isArray(f))
|
|
545
|
+
return f.every(X);
|
|
546
|
+
if (f === null || o(f))
|
|
547
|
+
return !0;
|
|
548
|
+
var h = y(f);
|
|
549
|
+
if (h) {
|
|
550
|
+
var S = h.call(f), N;
|
|
551
|
+
if (h !== f.entries) {
|
|
552
|
+
for (; !(N = S.next()).done; )
|
|
553
|
+
if (!X(N.value))
|
|
554
|
+
return !1;
|
|
555
|
+
} else
|
|
556
|
+
for (; !(N = S.next()).done; ) {
|
|
557
|
+
var p = N.value;
|
|
558
|
+
if (p && !X(p[1]))
|
|
559
|
+
return !1;
|
|
560
|
+
}
|
|
561
|
+
} else
|
|
562
|
+
return !1;
|
|
563
|
+
return !0;
|
|
564
|
+
default:
|
|
565
|
+
return !1;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
function Fe(f, h) {
|
|
569
|
+
return f === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
|
|
570
|
+
}
|
|
571
|
+
function U(f) {
|
|
572
|
+
var h = typeof f;
|
|
573
|
+
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Fe(h, f) ? "symbol" : h;
|
|
574
|
+
}
|
|
575
|
+
function Y(f) {
|
|
576
|
+
if (typeof f > "u" || f === null)
|
|
577
|
+
return "" + f;
|
|
578
|
+
var h = U(f);
|
|
579
|
+
if (h === "object") {
|
|
580
|
+
if (f instanceof Date)
|
|
581
|
+
return "date";
|
|
582
|
+
if (f instanceof RegExp)
|
|
583
|
+
return "regexp";
|
|
584
|
+
}
|
|
585
|
+
return h;
|
|
586
|
+
}
|
|
587
|
+
function he(f) {
|
|
588
|
+
var h = Y(f);
|
|
589
|
+
switch (h) {
|
|
590
|
+
case "array":
|
|
591
|
+
case "object":
|
|
592
|
+
return "an " + h;
|
|
593
|
+
case "boolean":
|
|
594
|
+
case "date":
|
|
595
|
+
case "regexp":
|
|
596
|
+
return "a " + h;
|
|
597
|
+
default:
|
|
598
|
+
return h;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function Re(f) {
|
|
602
|
+
return !f.constructor || !f.constructor.name ? g : f.constructor.name;
|
|
603
|
+
}
|
|
604
|
+
return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
|
|
605
|
+
}, ke;
|
|
606
|
+
}
|
|
607
|
+
var Ge, bt;
|
|
608
|
+
function Rr() {
|
|
609
|
+
if (bt) return Ge;
|
|
610
|
+
bt = 1;
|
|
611
|
+
var e = /* @__PURE__ */ dt();
|
|
612
|
+
function t() {
|
|
613
|
+
}
|
|
614
|
+
function r() {
|
|
615
|
+
}
|
|
616
|
+
return r.resetWarningCache = t, Ge = function() {
|
|
617
|
+
function n(a, o, u, $, l, y) {
|
|
618
|
+
if (y !== e) {
|
|
619
|
+
var g = new Error(
|
|
620
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
621
|
+
);
|
|
622
|
+
throw g.name = "Invariant Violation", g;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
n.isRequired = n;
|
|
626
|
+
function i() {
|
|
627
|
+
return n;
|
|
628
|
+
}
|
|
629
|
+
var d = {
|
|
630
|
+
array: n,
|
|
631
|
+
bigint: n,
|
|
632
|
+
bool: n,
|
|
633
|
+
func: n,
|
|
634
|
+
number: n,
|
|
635
|
+
object: n,
|
|
636
|
+
string: n,
|
|
637
|
+
symbol: n,
|
|
638
|
+
any: n,
|
|
639
|
+
arrayOf: i,
|
|
640
|
+
element: n,
|
|
641
|
+
elementType: n,
|
|
642
|
+
instanceOf: i,
|
|
643
|
+
node: n,
|
|
644
|
+
objectOf: i,
|
|
645
|
+
oneOf: i,
|
|
646
|
+
oneOfType: i,
|
|
647
|
+
shape: i,
|
|
648
|
+
exact: i,
|
|
649
|
+
checkPropTypes: r,
|
|
650
|
+
resetWarningCache: t
|
|
651
|
+
};
|
|
652
|
+
return d.PropTypes = d, d;
|
|
653
|
+
}, Ge;
|
|
654
|
+
}
|
|
655
|
+
var Ct;
|
|
656
|
+
function Dr() {
|
|
657
|
+
if (Ct) return me.exports;
|
|
658
|
+
if (Ct = 1, process.env.NODE_ENV !== "production") {
|
|
659
|
+
var e = dr(), t = !0;
|
|
660
|
+
me.exports = /* @__PURE__ */ Fr()(e.isElement, t);
|
|
661
|
+
} else
|
|
662
|
+
me.exports = /* @__PURE__ */ Rr()();
|
|
663
|
+
return me.exports;
|
|
664
|
+
}
|
|
665
|
+
var Lr = /* @__PURE__ */ Dr();
|
|
666
|
+
const _ = /* @__PURE__ */ xr(Lr);
|
|
667
|
+
function Mr(e, t, r) {
|
|
668
|
+
switch (r) {
|
|
669
|
+
case "Backspace":
|
|
670
|
+
t > 0 && (e = e.slice(0, t - 1) + e.slice(t), t--);
|
|
671
|
+
break;
|
|
672
|
+
case "Delete":
|
|
673
|
+
e = e.slice(0, t) + e.slice(t + 1);
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
return {
|
|
677
|
+
value: e,
|
|
678
|
+
caret: t
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function jr(e, t, r) {
|
|
682
|
+
for (var n = {}, i = "", d = 0, a = 0; a < e.length; ) {
|
|
683
|
+
var o = r(e[a], i, n);
|
|
684
|
+
o !== void 0 && (i += o, t !== void 0 && (t === a ? d = i.length - 1 : t > a && (d = i.length))), a++;
|
|
685
|
+
}
|
|
686
|
+
t === void 0 && (d = i.length);
|
|
687
|
+
var u = {
|
|
688
|
+
value: i,
|
|
689
|
+
caret: d
|
|
690
|
+
};
|
|
691
|
+
return u;
|
|
692
|
+
}
|
|
693
|
+
function kr(e, t) {
|
|
694
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
695
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
696
|
+
if (Array.isArray(e) || (r = Gr(e)) || t) {
|
|
697
|
+
r && (e = r);
|
|
698
|
+
var n = 0;
|
|
699
|
+
return function() {
|
|
700
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
704
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
705
|
+
}
|
|
706
|
+
function Gr(e, t) {
|
|
707
|
+
if (e) {
|
|
708
|
+
if (typeof e == "string") return Pt(e, t);
|
|
709
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
710
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
711
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Pt(e, t);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function Pt(e, t) {
|
|
715
|
+
(t == null || t > e.length) && (t = e.length);
|
|
716
|
+
for (var r = 0, n = new Array(t); r < t; r++)
|
|
717
|
+
n[r] = e[r];
|
|
718
|
+
return n;
|
|
719
|
+
}
|
|
720
|
+
function Ke(e, t) {
|
|
721
|
+
for (var r = 0, n = kr(t.split("")), i; !(i = n()).done; ) {
|
|
722
|
+
var d = i.value;
|
|
723
|
+
d === e && r++;
|
|
724
|
+
}
|
|
725
|
+
return r;
|
|
726
|
+
}
|
|
727
|
+
function Br(e, t) {
|
|
728
|
+
for (var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "x", n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : " ", i = e.length, d = Ke("(", e), a = Ke(")", e), o = d - a; o > 0 && i < t.length; )
|
|
729
|
+
e += t[i].replace(r, n), t[i] === ")" && o--, i++;
|
|
730
|
+
return e;
|
|
731
|
+
}
|
|
732
|
+
function Ur(e, t) {
|
|
733
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
734
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
735
|
+
if (Array.isArray(e) || (r = Wr(e)) || t) {
|
|
736
|
+
r && (e = r);
|
|
737
|
+
var n = 0;
|
|
738
|
+
return function() {
|
|
739
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
743
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
744
|
+
}
|
|
745
|
+
function Wr(e, t) {
|
|
746
|
+
if (e) {
|
|
747
|
+
if (typeof e == "string") return Nt(e, t);
|
|
748
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
749
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
750
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Nt(e, t);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
function Nt(e, t) {
|
|
754
|
+
(t == null || t > e.length) && (t = e.length);
|
|
755
|
+
for (var r = 0, n = new Array(t); r < t; r++)
|
|
756
|
+
n[r] = e[r];
|
|
757
|
+
return n;
|
|
758
|
+
}
|
|
759
|
+
function Hr(e) {
|
|
760
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "x", r = arguments.length > 2 ? arguments[2] : void 0;
|
|
761
|
+
if (!e)
|
|
762
|
+
return function(i) {
|
|
763
|
+
return {
|
|
764
|
+
text: i
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
var n = Ke(t, e);
|
|
768
|
+
return function(i) {
|
|
769
|
+
if (!i)
|
|
770
|
+
return {
|
|
771
|
+
text: "",
|
|
772
|
+
template: e
|
|
773
|
+
};
|
|
774
|
+
for (var d = 0, a = "", o = Ur(e.split("")), u; !(u = o()).done; ) {
|
|
775
|
+
var $ = u.value;
|
|
776
|
+
if ($ !== t) {
|
|
777
|
+
a += $;
|
|
778
|
+
continue;
|
|
779
|
+
}
|
|
780
|
+
if (a += i[d], d++, d === i.length && i.length < n)
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
return r && (a = Br(a, e)), {
|
|
784
|
+
text: a,
|
|
785
|
+
template: e
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
function Kr(e, t, r) {
|
|
790
|
+
typeof r == "string" && (r = Hr(r));
|
|
791
|
+
var n = r(e) || {}, i = n.text, d = n.template;
|
|
792
|
+
if (i === void 0 && (i = e), d)
|
|
793
|
+
if (t === void 0)
|
|
794
|
+
t = i.length;
|
|
795
|
+
else {
|
|
796
|
+
for (var a = 0, o = !1, u = -1; a < i.length && a < d.length; ) {
|
|
797
|
+
if (i[a] !== d[a]) {
|
|
798
|
+
if (t === 0) {
|
|
799
|
+
o = !0, t = a;
|
|
800
|
+
break;
|
|
801
|
+
}
|
|
802
|
+
u = a, t--;
|
|
803
|
+
}
|
|
804
|
+
a++;
|
|
805
|
+
}
|
|
806
|
+
o || (t = u + 1);
|
|
807
|
+
}
|
|
808
|
+
return {
|
|
809
|
+
text: i,
|
|
810
|
+
caret: t
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
function Vr(e) {
|
|
814
|
+
return e.hasAttribute("readonly");
|
|
815
|
+
}
|
|
816
|
+
function Yr(e) {
|
|
817
|
+
if (e.selectionStart !== e.selectionEnd)
|
|
818
|
+
return {
|
|
819
|
+
start: e.selectionStart,
|
|
820
|
+
end: e.selectionEnd
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
var Et = {
|
|
824
|
+
Backspace: 8,
|
|
825
|
+
Delete: 46
|
|
826
|
+
};
|
|
827
|
+
function qr(e) {
|
|
828
|
+
switch (e.keyCode) {
|
|
829
|
+
case Et.Backspace:
|
|
830
|
+
return "Backspace";
|
|
831
|
+
case Et.Delete:
|
|
832
|
+
return "Delete";
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
function Xr(e) {
|
|
836
|
+
return e.selectionStart;
|
|
837
|
+
}
|
|
838
|
+
function or(e, t) {
|
|
839
|
+
t !== void 0 && (Zr() ? setTimeout(function() {
|
|
840
|
+
return e.setSelectionRange(t, t);
|
|
841
|
+
}, 0) : e.setSelectionRange(t, t));
|
|
842
|
+
}
|
|
843
|
+
function Zr() {
|
|
844
|
+
if (typeof navigator < "u")
|
|
845
|
+
return Jr.test(navigator.userAgent);
|
|
846
|
+
}
|
|
847
|
+
var Jr = /Android/i;
|
|
848
|
+
function zr(e, t, r, n, i) {
|
|
849
|
+
Ve(t, r, n, void 0, i);
|
|
850
|
+
}
|
|
851
|
+
function Qr(e, t, r, n, i) {
|
|
852
|
+
if (!Vr(t)) {
|
|
853
|
+
var d = qr(e);
|
|
854
|
+
switch (d) {
|
|
855
|
+
case "Delete":
|
|
856
|
+
case "Backspace":
|
|
857
|
+
e.preventDefault();
|
|
858
|
+
var a = Yr(t);
|
|
859
|
+
return a ? (en(t, a), Ve(t, r, n, void 0, i)) : Ve(t, r, n, d, i);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
function en(e, t) {
|
|
864
|
+
var r = e.value;
|
|
865
|
+
r = r.slice(0, t.start) + r.slice(t.end), e.value = r, or(e, t.start);
|
|
866
|
+
}
|
|
867
|
+
function Ve(e, t, r, n, i) {
|
|
868
|
+
var d = jr(e.value, Xr(e), t), a = d.value, o = d.caret;
|
|
869
|
+
if (n) {
|
|
870
|
+
var u = Mr(a, o, n);
|
|
871
|
+
a = u.value, o = u.caret;
|
|
872
|
+
}
|
|
873
|
+
var $ = Kr(a, o, r), l = $.text;
|
|
874
|
+
o = $.caret, e.value = l, or(e, o), i && i(a);
|
|
875
|
+
}
|
|
876
|
+
var tn = ["ref", "parse", "format", "value", "defaultValue", "controlled", "onChange", "onKeyDown"];
|
|
877
|
+
function St(e, t) {
|
|
878
|
+
var r = Object.keys(e);
|
|
879
|
+
if (Object.getOwnPropertySymbols) {
|
|
880
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
881
|
+
t && (n = n.filter(function(i) {
|
|
882
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
883
|
+
})), r.push.apply(r, n);
|
|
884
|
+
}
|
|
885
|
+
return r;
|
|
886
|
+
}
|
|
887
|
+
function Z(e) {
|
|
888
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
889
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
890
|
+
t % 2 ? St(Object(r), !0).forEach(function(n) {
|
|
891
|
+
rn(e, n, r[n]);
|
|
892
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : St(Object(r)).forEach(function(n) {
|
|
893
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
return e;
|
|
897
|
+
}
|
|
898
|
+
function rn(e, t, r) {
|
|
899
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
900
|
+
}
|
|
901
|
+
function nn(e, t) {
|
|
902
|
+
if (e == null) return {};
|
|
903
|
+
var r = dn(e, t), n, i;
|
|
904
|
+
if (Object.getOwnPropertySymbols) {
|
|
905
|
+
var d = Object.getOwnPropertySymbols(e);
|
|
906
|
+
for (i = 0; i < d.length; i++)
|
|
907
|
+
n = d[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
908
|
+
}
|
|
909
|
+
return r;
|
|
910
|
+
}
|
|
911
|
+
function dn(e, t) {
|
|
912
|
+
if (e == null) return {};
|
|
913
|
+
var r = {}, n = Object.keys(e), i, d;
|
|
914
|
+
for (d = 0; d < n.length; d++)
|
|
915
|
+
i = n[d], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
916
|
+
return r;
|
|
917
|
+
}
|
|
918
|
+
function an(e) {
|
|
919
|
+
var t = e.ref, r = e.parse, n = e.format, i = e.value, d = e.defaultValue, a = e.controlled, o = a === void 0 ? !0 : a, u = e.onChange, $ = e.onKeyDown, l = nn(e, tn), y = Or(), g = z(function(m) {
|
|
920
|
+
y.current = m, t && (typeof t == "function" ? t(m) : t.current = m);
|
|
921
|
+
}, [t]), v = z(function(m) {
|
|
922
|
+
return zr(m, y.current, r, n, u);
|
|
923
|
+
}, [y, r, n, u]), C = z(function(m) {
|
|
924
|
+
if ($ && $(m), !m.defaultPrevented)
|
|
925
|
+
return Qr(m, y.current, r, n, u);
|
|
926
|
+
}, [y, r, n, u, $]), b = Z(Z({}, l), {}, {
|
|
927
|
+
ref: g,
|
|
928
|
+
onChange: v,
|
|
929
|
+
onKeyDown: C
|
|
930
|
+
});
|
|
931
|
+
return o ? Z(Z({}, b), {}, {
|
|
932
|
+
value: n(Tt(i) ? "" : i).text
|
|
933
|
+
}) : Z(Z({}, b), {}, {
|
|
934
|
+
defaultValue: n(Tt(d) ? "" : d).text
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
function Tt(e) {
|
|
938
|
+
return e == null;
|
|
939
|
+
}
|
|
940
|
+
var on = ["inputComponent", "parse", "format", "value", "defaultValue", "onChange", "controlled", "onKeyDown", "type"];
|
|
941
|
+
function Ot(e, t) {
|
|
942
|
+
var r = Object.keys(e);
|
|
943
|
+
if (Object.getOwnPropertySymbols) {
|
|
944
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
945
|
+
t && (n = n.filter(function(i) {
|
|
946
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
947
|
+
})), r.push.apply(r, n);
|
|
948
|
+
}
|
|
949
|
+
return r;
|
|
950
|
+
}
|
|
951
|
+
function un(e) {
|
|
952
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
953
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
954
|
+
t % 2 ? Ot(Object(r), !0).forEach(function(n) {
|
|
955
|
+
$n(e, n, r[n]);
|
|
956
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ot(Object(r)).forEach(function(n) {
|
|
957
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
return e;
|
|
961
|
+
}
|
|
962
|
+
function $n(e, t, r) {
|
|
963
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
964
|
+
}
|
|
965
|
+
function ln(e, t) {
|
|
966
|
+
if (e == null) return {};
|
|
967
|
+
var r = fn(e, t), n, i;
|
|
968
|
+
if (Object.getOwnPropertySymbols) {
|
|
969
|
+
var d = Object.getOwnPropertySymbols(e);
|
|
970
|
+
for (i = 0; i < d.length; i++)
|
|
971
|
+
n = d[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
972
|
+
}
|
|
973
|
+
return r;
|
|
974
|
+
}
|
|
975
|
+
function fn(e, t) {
|
|
976
|
+
if (e == null) return {};
|
|
977
|
+
var r = {}, n = Object.keys(e), i, d;
|
|
978
|
+
for (d = 0; d < n.length; d++)
|
|
979
|
+
i = n[d], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
980
|
+
return r;
|
|
981
|
+
}
|
|
982
|
+
function be(e, t) {
|
|
983
|
+
var r = e.inputComponent, n = r === void 0 ? "input" : r, i = e.parse, d = e.format, a = e.value, o = e.defaultValue, u = e.onChange, $ = e.controlled, l = e.onKeyDown, y = e.type, g = y === void 0 ? "text" : y, v = ln(e, on), C = an(un({
|
|
984
|
+
ref: t,
|
|
985
|
+
parse: i,
|
|
986
|
+
format: d,
|
|
987
|
+
value: a,
|
|
988
|
+
defaultValue: o,
|
|
989
|
+
onChange: u,
|
|
990
|
+
controlled: $,
|
|
991
|
+
onKeyDown: l,
|
|
992
|
+
type: g
|
|
993
|
+
}, v));
|
|
994
|
+
return /* @__PURE__ */ Q.createElement(n, C);
|
|
995
|
+
}
|
|
996
|
+
be = /* @__PURE__ */ Q.forwardRef(be);
|
|
997
|
+
be.propTypes = {
|
|
998
|
+
// Parses a single characher of `<input/>` text.
|
|
999
|
+
parse: _.func.isRequired,
|
|
1000
|
+
// Formats `value` into `<input/>` text.
|
|
1001
|
+
format: _.func.isRequired,
|
|
1002
|
+
// Renders `<input/>` by default.
|
|
1003
|
+
inputComponent: _.elementType,
|
|
1004
|
+
// `<input/>` `type` attribute.
|
|
1005
|
+
type: _.string,
|
|
1006
|
+
// Is parsed from <input/> text.
|
|
1007
|
+
value: _.string,
|
|
1008
|
+
// An initial value for an "uncontrolled" <input/>.
|
|
1009
|
+
defaultValue: _.string,
|
|
1010
|
+
// This handler is called each time `<input/>` text is changed.
|
|
1011
|
+
onChange: _.func,
|
|
1012
|
+
// Whether this input should be "controlled" or "uncontrolled".
|
|
1013
|
+
// The default value is `true` meaning "uncontrolled".
|
|
1014
|
+
controlled: _.bool,
|
|
1015
|
+
// Passthrough
|
|
1016
|
+
onKeyDown: _.func,
|
|
1017
|
+
onCut: _.func,
|
|
1018
|
+
onPaste: _.func
|
|
1019
|
+
};
|
|
1020
|
+
function xt(e, t) {
|
|
1021
|
+
e = e.split("-"), t = t.split("-");
|
|
1022
|
+
for (var r = e[0].split("."), n = t[0].split("."), i = 0; i < 3; i++) {
|
|
1023
|
+
var d = Number(r[i]), a = Number(n[i]);
|
|
1024
|
+
if (d > a) return 1;
|
|
1025
|
+
if (a > d) return -1;
|
|
1026
|
+
if (!isNaN(d) && isNaN(a)) return 1;
|
|
1027
|
+
if (isNaN(d) && !isNaN(a)) return -1;
|
|
1028
|
+
}
|
|
1029
|
+
return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
|
|
1030
|
+
}
|
|
1031
|
+
var sn = {}.constructor;
|
|
1032
|
+
function q(e) {
|
|
1033
|
+
return e != null && e.constructor === sn;
|
|
1034
|
+
}
|
|
1035
|
+
function ee(e) {
|
|
1036
|
+
"@babel/helpers - typeof";
|
|
1037
|
+
return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1038
|
+
return typeof t;
|
|
1039
|
+
} : function(t) {
|
|
1040
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1041
|
+
}, ee(e);
|
|
1042
|
+
}
|
|
1043
|
+
function Ne(e, t) {
|
|
1044
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1045
|
+
}
|
|
1046
|
+
function cn(e, t) {
|
|
1047
|
+
for (var r = 0; r < t.length; r++) {
|
|
1048
|
+
var n = t[r];
|
|
1049
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, yn(n.key), n);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
function Ee(e, t, r) {
|
|
1053
|
+
return t && cn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1054
|
+
}
|
|
1055
|
+
function yn(e) {
|
|
1056
|
+
var t = hn(e, "string");
|
|
1057
|
+
return ee(t) == "symbol" ? t : t + "";
|
|
1058
|
+
}
|
|
1059
|
+
function hn(e, t) {
|
|
1060
|
+
if (ee(e) != "object" || !e) return e;
|
|
1061
|
+
var r = e[Symbol.toPrimitive];
|
|
1062
|
+
if (r !== void 0) {
|
|
1063
|
+
var n = r.call(e, t);
|
|
1064
|
+
if (ee(n) != "object") return n;
|
|
1065
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1066
|
+
}
|
|
1067
|
+
return String(e);
|
|
1068
|
+
}
|
|
1069
|
+
var gn = "1.2.0", mn = "1.7.35", At = " ext. ", vn = /^\d+$/, D = /* @__PURE__ */ (function() {
|
|
1070
|
+
function e(t) {
|
|
1071
|
+
Ne(this, e), ur(t), this.metadata = t, $r.call(this, t);
|
|
1072
|
+
}
|
|
1073
|
+
return Ee(e, [{
|
|
1074
|
+
key: "getCountries",
|
|
1075
|
+
value: function() {
|
|
1076
|
+
return Object.keys(this.metadata.countries).filter(function(r) {
|
|
1077
|
+
return r !== "001";
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
}, {
|
|
1081
|
+
key: "getCountryMetadata",
|
|
1082
|
+
value: function(r) {
|
|
1083
|
+
return this.metadata.countries[r];
|
|
1084
|
+
}
|
|
1085
|
+
}, {
|
|
1086
|
+
key: "nonGeographic",
|
|
1087
|
+
value: function() {
|
|
1088
|
+
if (!(this.v1 || this.v2 || this.v3))
|
|
1089
|
+
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
|
1090
|
+
}
|
|
1091
|
+
}, {
|
|
1092
|
+
key: "hasCountry",
|
|
1093
|
+
value: function(r) {
|
|
1094
|
+
return this.getCountryMetadata(r) !== void 0;
|
|
1095
|
+
}
|
|
1096
|
+
}, {
|
|
1097
|
+
key: "hasCallingCode",
|
|
1098
|
+
value: function(r) {
|
|
1099
|
+
if (this.getCountryCodesForCallingCode(r))
|
|
1100
|
+
return !0;
|
|
1101
|
+
if (this.nonGeographic()) {
|
|
1102
|
+
if (this.nonGeographic()[r])
|
|
1103
|
+
return !0;
|
|
1104
|
+
} else {
|
|
1105
|
+
var n = this.countryCallingCodes()[r];
|
|
1106
|
+
if (n && n.length === 1 && n[0] === "001")
|
|
1107
|
+
return !0;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}, {
|
|
1111
|
+
key: "isNonGeographicCallingCode",
|
|
1112
|
+
value: function(r) {
|
|
1113
|
+
return this.nonGeographic() ? !!this.nonGeographic()[r] : !this.getCountryCodesForCallingCode(r);
|
|
1114
|
+
}
|
|
1115
|
+
// Deprecated.
|
|
1116
|
+
}, {
|
|
1117
|
+
key: "country",
|
|
1118
|
+
value: function(r) {
|
|
1119
|
+
return this.selectNumberingPlan(r);
|
|
1120
|
+
}
|
|
1121
|
+
}, {
|
|
1122
|
+
key: "selectNumberingPlan",
|
|
1123
|
+
value: function(r, n) {
|
|
1124
|
+
if (r && vn.test(r) && (n = r, r = null), r && r !== "001") {
|
|
1125
|
+
if (!this.hasCountry(r))
|
|
1126
|
+
throw new Error("Unknown country: ".concat(r));
|
|
1127
|
+
this.numberingPlan = new wt(this.getCountryMetadata(r), this);
|
|
1128
|
+
} else if (n) {
|
|
1129
|
+
if (!this.hasCallingCode(n))
|
|
1130
|
+
throw new Error("Unknown calling code: ".concat(n));
|
|
1131
|
+
this.numberingPlan = new wt(this.getNumberingPlanMetadata(n), this);
|
|
1132
|
+
} else
|
|
1133
|
+
this.numberingPlan = void 0;
|
|
1134
|
+
return this;
|
|
1135
|
+
}
|
|
1136
|
+
}, {
|
|
1137
|
+
key: "getCountryCodesForCallingCode",
|
|
1138
|
+
value: function(r) {
|
|
1139
|
+
var n = this.countryCallingCodes()[r];
|
|
1140
|
+
if (n)
|
|
1141
|
+
return n.length === 1 && n[0].length === 3 ? void 0 : n;
|
|
1142
|
+
}
|
|
1143
|
+
}, {
|
|
1144
|
+
key: "getCountryCodeForCallingCode",
|
|
1145
|
+
value: function(r) {
|
|
1146
|
+
var n = this.getCountryCodesForCallingCode(r);
|
|
1147
|
+
if (n)
|
|
1148
|
+
return n[0];
|
|
1149
|
+
}
|
|
1150
|
+
}, {
|
|
1151
|
+
key: "getNumberingPlanMetadata",
|
|
1152
|
+
value: function(r) {
|
|
1153
|
+
var n = this.getCountryCodeForCallingCode(r);
|
|
1154
|
+
if (n)
|
|
1155
|
+
return this.getCountryMetadata(n);
|
|
1156
|
+
if (this.nonGeographic()) {
|
|
1157
|
+
var i = this.nonGeographic()[r];
|
|
1158
|
+
if (i)
|
|
1159
|
+
return i;
|
|
1160
|
+
} else {
|
|
1161
|
+
var d = this.countryCallingCodes()[r];
|
|
1162
|
+
if (d && d.length === 1 && d[0] === "001")
|
|
1163
|
+
return this.metadata.countries["001"];
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
// Deprecated.
|
|
1167
|
+
}, {
|
|
1168
|
+
key: "countryCallingCode",
|
|
1169
|
+
value: function() {
|
|
1170
|
+
return this.numberingPlan.callingCode();
|
|
1171
|
+
}
|
|
1172
|
+
// Deprecated.
|
|
1173
|
+
}, {
|
|
1174
|
+
key: "IDDPrefix",
|
|
1175
|
+
value: function() {
|
|
1176
|
+
return this.numberingPlan.IDDPrefix();
|
|
1177
|
+
}
|
|
1178
|
+
// Deprecated.
|
|
1179
|
+
}, {
|
|
1180
|
+
key: "defaultIDDPrefix",
|
|
1181
|
+
value: function() {
|
|
1182
|
+
return this.numberingPlan.defaultIDDPrefix();
|
|
1183
|
+
}
|
|
1184
|
+
// Deprecated.
|
|
1185
|
+
}, {
|
|
1186
|
+
key: "nationalNumberPattern",
|
|
1187
|
+
value: function() {
|
|
1188
|
+
return this.numberingPlan.nationalNumberPattern();
|
|
1189
|
+
}
|
|
1190
|
+
// Deprecated.
|
|
1191
|
+
}, {
|
|
1192
|
+
key: "possibleLengths",
|
|
1193
|
+
value: function() {
|
|
1194
|
+
return this.numberingPlan.possibleLengths();
|
|
1195
|
+
}
|
|
1196
|
+
// Deprecated.
|
|
1197
|
+
}, {
|
|
1198
|
+
key: "formats",
|
|
1199
|
+
value: function() {
|
|
1200
|
+
return this.numberingPlan.formats();
|
|
1201
|
+
}
|
|
1202
|
+
// Deprecated.
|
|
1203
|
+
}, {
|
|
1204
|
+
key: "nationalPrefixForParsing",
|
|
1205
|
+
value: function() {
|
|
1206
|
+
return this.numberingPlan.nationalPrefixForParsing();
|
|
1207
|
+
}
|
|
1208
|
+
// Deprecated.
|
|
1209
|
+
}, {
|
|
1210
|
+
key: "nationalPrefixTransformRule",
|
|
1211
|
+
value: function() {
|
|
1212
|
+
return this.numberingPlan.nationalPrefixTransformRule();
|
|
1213
|
+
}
|
|
1214
|
+
// Deprecated.
|
|
1215
|
+
}, {
|
|
1216
|
+
key: "leadingDigits",
|
|
1217
|
+
value: function() {
|
|
1218
|
+
return this.numberingPlan.leadingDigits();
|
|
1219
|
+
}
|
|
1220
|
+
// Deprecated.
|
|
1221
|
+
}, {
|
|
1222
|
+
key: "hasTypes",
|
|
1223
|
+
value: function() {
|
|
1224
|
+
return this.numberingPlan.hasTypes();
|
|
1225
|
+
}
|
|
1226
|
+
// Deprecated.
|
|
1227
|
+
}, {
|
|
1228
|
+
key: "type",
|
|
1229
|
+
value: function(r) {
|
|
1230
|
+
return this.numberingPlan.type(r);
|
|
1231
|
+
}
|
|
1232
|
+
// Deprecated.
|
|
1233
|
+
}, {
|
|
1234
|
+
key: "ext",
|
|
1235
|
+
value: function() {
|
|
1236
|
+
return this.numberingPlan.ext();
|
|
1237
|
+
}
|
|
1238
|
+
}, {
|
|
1239
|
+
key: "countryCallingCodes",
|
|
1240
|
+
value: function() {
|
|
1241
|
+
return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
|
|
1242
|
+
}
|
|
1243
|
+
// Deprecated.
|
|
1244
|
+
}, {
|
|
1245
|
+
key: "chooseCountryByCountryCallingCode",
|
|
1246
|
+
value: function(r) {
|
|
1247
|
+
return this.selectNumberingPlan(r);
|
|
1248
|
+
}
|
|
1249
|
+
}, {
|
|
1250
|
+
key: "hasSelectedNumberingPlan",
|
|
1251
|
+
value: function() {
|
|
1252
|
+
return this.numberingPlan !== void 0;
|
|
1253
|
+
}
|
|
1254
|
+
}]);
|
|
1255
|
+
})(), wt = /* @__PURE__ */ (function() {
|
|
1256
|
+
function e(t, r) {
|
|
1257
|
+
Ne(this, e), this.globalMetadataObject = r, this.metadata = t, $r.call(this, r.metadata);
|
|
1258
|
+
}
|
|
1259
|
+
return Ee(e, [{
|
|
1260
|
+
key: "callingCode",
|
|
1261
|
+
value: function() {
|
|
1262
|
+
return this.metadata[0];
|
|
1263
|
+
}
|
|
1264
|
+
// Formatting information for regions which share
|
|
1265
|
+
// a country calling code is contained by only one region
|
|
1266
|
+
// for performance reasons. For example, for NANPA region
|
|
1267
|
+
// ("North American Numbering Plan Administration",
|
|
1268
|
+
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
|
1269
|
+
// it will be contained in the metadata for `US`.
|
|
1270
|
+
}, {
|
|
1271
|
+
key: "getDefaultCountryMetadataForRegion",
|
|
1272
|
+
value: function() {
|
|
1273
|
+
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
1274
|
+
}
|
|
1275
|
+
// Is always present.
|
|
1276
|
+
}, {
|
|
1277
|
+
key: "IDDPrefix",
|
|
1278
|
+
value: function() {
|
|
1279
|
+
if (!(this.v1 || this.v2))
|
|
1280
|
+
return this.metadata[1];
|
|
1281
|
+
}
|
|
1282
|
+
// Is only present when a country supports multiple IDD prefixes.
|
|
1283
|
+
}, {
|
|
1284
|
+
key: "defaultIDDPrefix",
|
|
1285
|
+
value: function() {
|
|
1286
|
+
if (!(this.v1 || this.v2))
|
|
1287
|
+
return this.metadata[12];
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
key: "nationalNumberPattern",
|
|
1291
|
+
value: function() {
|
|
1292
|
+
return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
|
|
1293
|
+
}
|
|
1294
|
+
// "possible length" data is always present in Google's metadata.
|
|
1295
|
+
}, {
|
|
1296
|
+
key: "possibleLengths",
|
|
1297
|
+
value: function() {
|
|
1298
|
+
if (!this.v1)
|
|
1299
|
+
return this.metadata[this.v2 ? 2 : 3];
|
|
1300
|
+
}
|
|
1301
|
+
}, {
|
|
1302
|
+
key: "_getFormats",
|
|
1303
|
+
value: function(r) {
|
|
1304
|
+
return r[this.v1 ? 2 : this.v2 ? 3 : 4];
|
|
1305
|
+
}
|
|
1306
|
+
// For countries of the same region (e.g. NANPA)
|
|
1307
|
+
// formats are all stored in the "main" country for that region.
|
|
1308
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1309
|
+
}, {
|
|
1310
|
+
key: "formats",
|
|
1311
|
+
value: function() {
|
|
1312
|
+
var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
1313
|
+
return n.map(function(i) {
|
|
1314
|
+
return new pn(i, r);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
}, {
|
|
1318
|
+
key: "nationalPrefix",
|
|
1319
|
+
value: function() {
|
|
1320
|
+
return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
|
|
1321
|
+
}
|
|
1322
|
+
}, {
|
|
1323
|
+
key: "_getNationalPrefixFormattingRule",
|
|
1324
|
+
value: function(r) {
|
|
1325
|
+
return r[this.v1 ? 4 : this.v2 ? 5 : 6];
|
|
1326
|
+
}
|
|
1327
|
+
// For countries of the same region (e.g. NANPA)
|
|
1328
|
+
// national prefix formatting rule is stored in the "main" country for that region.
|
|
1329
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1330
|
+
}, {
|
|
1331
|
+
key: "nationalPrefixFormattingRule",
|
|
1332
|
+
value: function() {
|
|
1333
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
|
1334
|
+
}
|
|
1335
|
+
}, {
|
|
1336
|
+
key: "_nationalPrefixForParsing",
|
|
1337
|
+
value: function() {
|
|
1338
|
+
return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
|
|
1339
|
+
}
|
|
1340
|
+
}, {
|
|
1341
|
+
key: "nationalPrefixForParsing",
|
|
1342
|
+
value: function() {
|
|
1343
|
+
return this._nationalPrefixForParsing() || this.nationalPrefix();
|
|
1344
|
+
}
|
|
1345
|
+
}, {
|
|
1346
|
+
key: "nationalPrefixTransformRule",
|
|
1347
|
+
value: function() {
|
|
1348
|
+
return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
|
|
1349
|
+
}
|
|
1350
|
+
}, {
|
|
1351
|
+
key: "_getNationalPrefixIsOptionalWhenFormatting",
|
|
1352
|
+
value: function() {
|
|
1353
|
+
return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
|
|
1354
|
+
}
|
|
1355
|
+
// For countries of the same region (e.g. NANPA)
|
|
1356
|
+
// "national prefix is optional when formatting" flag is
|
|
1357
|
+
// stored in the "main" country for that region.
|
|
1358
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1359
|
+
}, {
|
|
1360
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
1361
|
+
value: function() {
|
|
1362
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
|
1363
|
+
}
|
|
1364
|
+
}, {
|
|
1365
|
+
key: "leadingDigits",
|
|
1366
|
+
value: function() {
|
|
1367
|
+
return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
|
|
1368
|
+
}
|
|
1369
|
+
}, {
|
|
1370
|
+
key: "types",
|
|
1371
|
+
value: function() {
|
|
1372
|
+
return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
|
|
1373
|
+
}
|
|
1374
|
+
}, {
|
|
1375
|
+
key: "hasTypes",
|
|
1376
|
+
value: function() {
|
|
1377
|
+
return this.types() && this.types().length === 0 ? !1 : !!this.types();
|
|
1378
|
+
}
|
|
1379
|
+
}, {
|
|
1380
|
+
key: "type",
|
|
1381
|
+
value: function(r) {
|
|
1382
|
+
if (this.hasTypes() && It(this.types(), r))
|
|
1383
|
+
return new Cn(It(this.types(), r), this);
|
|
1384
|
+
}
|
|
1385
|
+
}, {
|
|
1386
|
+
key: "ext",
|
|
1387
|
+
value: function() {
|
|
1388
|
+
return this.v1 || this.v2 ? At : this.metadata[13] || At;
|
|
1389
|
+
}
|
|
1390
|
+
}]);
|
|
1391
|
+
})(), pn = /* @__PURE__ */ (function() {
|
|
1392
|
+
function e(t, r) {
|
|
1393
|
+
Ne(this, e), this._format = t, this.metadata = r;
|
|
1394
|
+
}
|
|
1395
|
+
return Ee(e, [{
|
|
1396
|
+
key: "pattern",
|
|
1397
|
+
value: function() {
|
|
1398
|
+
return this._format[0];
|
|
1399
|
+
}
|
|
1400
|
+
}, {
|
|
1401
|
+
key: "format",
|
|
1402
|
+
value: function() {
|
|
1403
|
+
return this._format[1];
|
|
1404
|
+
}
|
|
1405
|
+
}, {
|
|
1406
|
+
key: "leadingDigitsPatterns",
|
|
1407
|
+
value: function() {
|
|
1408
|
+
return this._format[2] || [];
|
|
1409
|
+
}
|
|
1410
|
+
}, {
|
|
1411
|
+
key: "nationalPrefixFormattingRule",
|
|
1412
|
+
value: function() {
|
|
1413
|
+
return this._format[3] || this.metadata.nationalPrefixFormattingRule();
|
|
1414
|
+
}
|
|
1415
|
+
}, {
|
|
1416
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
1417
|
+
value: function() {
|
|
1418
|
+
return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
1419
|
+
}
|
|
1420
|
+
}, {
|
|
1421
|
+
key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
|
|
1422
|
+
value: function() {
|
|
1423
|
+
return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
1424
|
+
}
|
|
1425
|
+
// Checks whether national prefix formatting rule contains national prefix.
|
|
1426
|
+
}, {
|
|
1427
|
+
key: "usesNationalPrefix",
|
|
1428
|
+
value: function() {
|
|
1429
|
+
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
1430
|
+
!bn.test(this.nationalPrefixFormattingRule()));
|
|
1431
|
+
}
|
|
1432
|
+
}, {
|
|
1433
|
+
key: "internationalFormat",
|
|
1434
|
+
value: function() {
|
|
1435
|
+
return this._format[5] || this.format();
|
|
1436
|
+
}
|
|
1437
|
+
}]);
|
|
1438
|
+
})(), bn = /^\(?\$1\)?$/, Cn = /* @__PURE__ */ (function() {
|
|
1439
|
+
function e(t, r) {
|
|
1440
|
+
Ne(this, e), this.type = t, this.metadata = r;
|
|
1441
|
+
}
|
|
1442
|
+
return Ee(e, [{
|
|
1443
|
+
key: "pattern",
|
|
1444
|
+
value: function() {
|
|
1445
|
+
return this.metadata.v1 ? this.type : this.type[0];
|
|
1446
|
+
}
|
|
1447
|
+
}, {
|
|
1448
|
+
key: "possibleLengths",
|
|
1449
|
+
value: function() {
|
|
1450
|
+
if (!this.metadata.v1)
|
|
1451
|
+
return this.type[1] || this.metadata.possibleLengths();
|
|
1452
|
+
}
|
|
1453
|
+
}]);
|
|
1454
|
+
})();
|
|
1455
|
+
function It(e, t) {
|
|
1456
|
+
switch (t) {
|
|
1457
|
+
case "FIXED_LINE":
|
|
1458
|
+
return e[0];
|
|
1459
|
+
case "MOBILE":
|
|
1460
|
+
return e[1];
|
|
1461
|
+
case "TOLL_FREE":
|
|
1462
|
+
return e[2];
|
|
1463
|
+
case "PREMIUM_RATE":
|
|
1464
|
+
return e[3];
|
|
1465
|
+
case "PERSONAL_NUMBER":
|
|
1466
|
+
return e[4];
|
|
1467
|
+
case "VOICEMAIL":
|
|
1468
|
+
return e[5];
|
|
1469
|
+
case "UAN":
|
|
1470
|
+
return e[6];
|
|
1471
|
+
case "PAGER":
|
|
1472
|
+
return e[7];
|
|
1473
|
+
case "VOIP":
|
|
1474
|
+
return e[8];
|
|
1475
|
+
case "SHARED_COST":
|
|
1476
|
+
return e[9];
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
function ur(e) {
|
|
1480
|
+
if (!e)
|
|
1481
|
+
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1482
|
+
if (!q(e) || !q(e.countries))
|
|
1483
|
+
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(q(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + Pn(e) + ": " + e, "."));
|
|
1484
|
+
}
|
|
1485
|
+
var Pn = function(t) {
|
|
1486
|
+
return ee(t);
|
|
1487
|
+
};
|
|
1488
|
+
function ce(e, t) {
|
|
1489
|
+
if (t = new D(t), t.hasCountry(e))
|
|
1490
|
+
return t.selectNumberingPlan(e).countryCallingCode();
|
|
1491
|
+
throw new Error("Unknown country: ".concat(e));
|
|
1492
|
+
}
|
|
1493
|
+
function Nn(e, t) {
|
|
1494
|
+
return t.countries.hasOwnProperty(e);
|
|
1495
|
+
}
|
|
1496
|
+
function $r(e) {
|
|
1497
|
+
var t = e.version;
|
|
1498
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? xt(t, gn) === -1 ? this.v2 = !0 : xt(t, mn) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
1499
|
+
}
|
|
1500
|
+
function Se(e, t, r) {
|
|
1501
|
+
return En(e, t, void 0, r);
|
|
1502
|
+
}
|
|
1503
|
+
function En(e, t, r, n) {
|
|
1504
|
+
t && (n = new D(n.metadata), n.selectNumberingPlan(t));
|
|
1505
|
+
var i = n.type(r), d = i && i.possibleLengths() || n.possibleLengths();
|
|
1506
|
+
if (!d)
|
|
1507
|
+
return "IS_POSSIBLE";
|
|
1508
|
+
var a = e.length, o = d[0];
|
|
1509
|
+
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";
|
|
1510
|
+
}
|
|
1511
|
+
function Sn(e, t, r) {
|
|
1512
|
+
if (t === void 0 && (t = {}), r = new D(r), t.v2) {
|
|
1513
|
+
if (!e.countryCallingCode)
|
|
1514
|
+
throw new Error("Invalid phone number object passed");
|
|
1515
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
1516
|
+
} else {
|
|
1517
|
+
if (!e.phone)
|
|
1518
|
+
return !1;
|
|
1519
|
+
if (e.country) {
|
|
1520
|
+
if (!r.hasCountry(e.country))
|
|
1521
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
1522
|
+
r.selectNumberingPlan(e.country);
|
|
1523
|
+
} else {
|
|
1524
|
+
if (!e.countryCallingCode)
|
|
1525
|
+
throw new Error("Invalid phone number object passed");
|
|
1526
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
if (r.possibleLengths())
|
|
1530
|
+
return lr(e.phone || e.nationalNumber, e.country, r);
|
|
1531
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
|
|
1532
|
+
return !0;
|
|
1533
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
1534
|
+
}
|
|
1535
|
+
function lr(e, t, r) {
|
|
1536
|
+
switch (Se(e, t, r)) {
|
|
1537
|
+
case "IS_POSSIBLE":
|
|
1538
|
+
return !0;
|
|
1539
|
+
// This library ignores "local-only" phone numbers (for simplicity).
|
|
1540
|
+
// See the readme for more info on what are "local-only" phone numbers.
|
|
1541
|
+
// case 'IS_POSSIBLE_LOCAL_ONLY':
|
|
1542
|
+
// return !isInternational
|
|
1543
|
+
default:
|
|
1544
|
+
return !1;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
function K(e, t) {
|
|
1548
|
+
return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
|
|
1549
|
+
}
|
|
1550
|
+
function Tn(e, t) {
|
|
1551
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1552
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
1553
|
+
if (Array.isArray(e) || (r = On(e)) || t) {
|
|
1554
|
+
r && (e = r);
|
|
1555
|
+
var n = 0;
|
|
1556
|
+
return function() {
|
|
1557
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1561
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1562
|
+
}
|
|
1563
|
+
function On(e, t) {
|
|
1564
|
+
if (e) {
|
|
1565
|
+
if (typeof e == "string") return _t(e, t);
|
|
1566
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
1567
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? _t(e, t) : void 0;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
function _t(e, t) {
|
|
1571
|
+
(t == null || t > e.length) && (t = e.length);
|
|
1572
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1573
|
+
return n;
|
|
1574
|
+
}
|
|
1575
|
+
var xn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1576
|
+
function at(e, t, r) {
|
|
1577
|
+
if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
|
|
1578
|
+
r = new D(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
1579
|
+
var n = t.v2 ? e.nationalNumber : e.phone;
|
|
1580
|
+
if (K(n, r.nationalNumberPattern())) {
|
|
1581
|
+
if (Be(n, "FIXED_LINE", r))
|
|
1582
|
+
return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Be(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1583
|
+
for (var i = Tn(xn), d; !(d = i()).done; ) {
|
|
1584
|
+
var a = d.value;
|
|
1585
|
+
if (Be(n, a, r))
|
|
1586
|
+
return a;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
function Be(e, t, r) {
|
|
1592
|
+
return t = r.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : K(e, t.pattern());
|
|
1593
|
+
}
|
|
1594
|
+
function An(e, t, r) {
|
|
1595
|
+
if (t = t || {}, r = new D(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
|
1596
|
+
return at(e, t, r.metadata) !== void 0;
|
|
1597
|
+
var n = t.v2 ? e.nationalNumber : e.phone;
|
|
1598
|
+
return K(n, r.nationalNumberPattern());
|
|
1599
|
+
}
|
|
1600
|
+
function wn(e, t, r) {
|
|
1601
|
+
var n = new D(r), i = n.getCountryCodesForCallingCode(e);
|
|
1602
|
+
return i ? i.filter(function(d) {
|
|
1603
|
+
return In(t, d, r);
|
|
1604
|
+
}) : [];
|
|
1605
|
+
}
|
|
1606
|
+
function In(e, t, r) {
|
|
1607
|
+
var n = new D(r);
|
|
1608
|
+
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
1609
|
+
}
|
|
1610
|
+
var ot = 2, _n = 17, Fn = 3, M = "0-90-9٠-٩۰-۹", Rn = "-‐-―−ー-", Dn = "//", Ln = "..", Mn = " ", jn = "()()[]\\[\\]", kn = "~⁓∼~", B = "".concat(Rn).concat(Dn).concat(Ln).concat(Mn).concat(jn).concat(kn), Te = "++", Gn = new RegExp("([" + M + "])");
|
|
1611
|
+
function fr(e, t, r, n) {
|
|
1612
|
+
if (t) {
|
|
1613
|
+
var i = new D(n);
|
|
1614
|
+
i.selectNumberingPlan(t, r);
|
|
1615
|
+
var d = new RegExp(i.IDDPrefix());
|
|
1616
|
+
if (e.search(d) === 0) {
|
|
1617
|
+
e = e.slice(e.match(d)[0].length);
|
|
1618
|
+
var a = e.match(Gn);
|
|
1619
|
+
if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
|
|
1620
|
+
return e;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
function Ye(e, t) {
|
|
1625
|
+
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
1626
|
+
var r = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(e);
|
|
1627
|
+
if (n) {
|
|
1628
|
+
var i, d, a = n.length - 1, o = a > 0 && n[a];
|
|
1629
|
+
if (t.nationalPrefixTransformRule() && o)
|
|
1630
|
+
i = e.replace(r, t.nationalPrefixTransformRule()), a > 1 && (d = n[1]);
|
|
1631
|
+
else {
|
|
1632
|
+
var u = n[0];
|
|
1633
|
+
i = e.slice(u.length), o && (d = n[1]);
|
|
1634
|
+
}
|
|
1635
|
+
var $;
|
|
1636
|
+
if (o) {
|
|
1637
|
+
var l = e.indexOf(n[1]), y = e.slice(0, l);
|
|
1638
|
+
y === t.numberingPlan.nationalPrefix() && ($ = t.numberingPlan.nationalPrefix());
|
|
1639
|
+
} else
|
|
1640
|
+
$ = n[0];
|
|
1641
|
+
return {
|
|
1642
|
+
nationalNumber: i,
|
|
1643
|
+
nationalPrefix: $,
|
|
1644
|
+
carrierCode: d
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
return {
|
|
1649
|
+
nationalNumber: e
|
|
1650
|
+
};
|
|
1651
|
+
}
|
|
1652
|
+
function Bn(e, t) {
|
|
1653
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1654
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
1655
|
+
if (Array.isArray(e) || (r = Un(e)) || t) {
|
|
1656
|
+
r && (e = r);
|
|
1657
|
+
var n = 0;
|
|
1658
|
+
return function() {
|
|
1659
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1663
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1664
|
+
}
|
|
1665
|
+
function Un(e, t) {
|
|
1666
|
+
if (e) {
|
|
1667
|
+
if (typeof e == "string") return Ft(e, t);
|
|
1668
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
1669
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ft(e, t) : void 0;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
function Ft(e, t) {
|
|
1673
|
+
(t == null || t > e.length) && (t = e.length);
|
|
1674
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1675
|
+
return n;
|
|
1676
|
+
}
|
|
1677
|
+
function sr(e, t) {
|
|
1678
|
+
var r = t.countries, n = t.metadata;
|
|
1679
|
+
n = new D(n);
|
|
1680
|
+
for (var i = Bn(r), d; !(d = i()).done; ) {
|
|
1681
|
+
var a = d.value;
|
|
1682
|
+
if (n.selectNumberingPlan(a), n.leadingDigits()) {
|
|
1683
|
+
if (e && e.search(n.leadingDigits()) === 0)
|
|
1684
|
+
return a;
|
|
1685
|
+
} else if (at({
|
|
1686
|
+
phone: e,
|
|
1687
|
+
country: a
|
|
1688
|
+
}, void 0, n.metadata))
|
|
1689
|
+
return a;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
function ut(e, t) {
|
|
1693
|
+
var r = t.nationalNumber, n = t.metadata, i = n.getCountryCodesForCallingCode(e);
|
|
1694
|
+
if (i)
|
|
1695
|
+
return i.length === 1 ? i[0] : sr(r, {
|
|
1696
|
+
countries: i,
|
|
1697
|
+
metadata: n.metadata
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
function qe(e, t, r) {
|
|
1701
|
+
var n = Ye(e, r), i = n.carrierCode, d = n.nationalNumber;
|
|
1702
|
+
if (d !== e) {
|
|
1703
|
+
if (!Wn(e, d, r))
|
|
1704
|
+
return {
|
|
1705
|
+
nationalNumber: e
|
|
1706
|
+
};
|
|
1707
|
+
if (r.numberingPlan.possibleLengths() && (t || (t = ut(r.numberingPlan.callingCode(), {
|
|
1708
|
+
nationalNumber: d,
|
|
1709
|
+
metadata: r
|
|
1710
|
+
})), !Hn(d, t, r)))
|
|
1711
|
+
return {
|
|
1712
|
+
nationalNumber: e
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
return {
|
|
1716
|
+
nationalNumber: d,
|
|
1717
|
+
carrierCode: i
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
function Wn(e, t, r) {
|
|
1721
|
+
return !(K(e, r.nationalNumberPattern()) && !K(t, r.nationalNumberPattern()));
|
|
1722
|
+
}
|
|
1723
|
+
function Hn(e, t, r) {
|
|
1724
|
+
switch (Se(e, t, r)) {
|
|
1725
|
+
case "TOO_SHORT":
|
|
1726
|
+
case "INVALID_LENGTH":
|
|
1727
|
+
return !1;
|
|
1728
|
+
default:
|
|
1729
|
+
return !0;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
function cr(e, t, r, n, i) {
|
|
1733
|
+
var d = t || r ? ce(t || r, i) : n;
|
|
1734
|
+
if (e.indexOf(d) === 0) {
|
|
1735
|
+
i = new D(i), i.selectNumberingPlan(t || r, d);
|
|
1736
|
+
var a = e.slice(d.length), o = qe(a, t, i), u = o.nationalNumber, $ = qe(e, t, i), l = $.nationalNumber;
|
|
1737
|
+
if (!K(l, i.nationalNumberPattern()) && K(u, i.nationalNumberPattern()) || Se(l, t, i) === "TOO_LONG")
|
|
1738
|
+
return {
|
|
1739
|
+
countryCallingCode: d,
|
|
1740
|
+
number: a
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
return {
|
|
1744
|
+
number: e
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
function $t(e, t, r, n, i) {
|
|
1748
|
+
if (!e)
|
|
1749
|
+
return {};
|
|
1750
|
+
var d;
|
|
1751
|
+
if (e[0] !== "+") {
|
|
1752
|
+
var a = fr(e, t || r, n, i);
|
|
1753
|
+
if (a && a !== e)
|
|
1754
|
+
d = !0, e = "+" + a;
|
|
1755
|
+
else {
|
|
1756
|
+
if (t || r || n) {
|
|
1757
|
+
var o = cr(e, t, r, n, i), u = o.countryCallingCode, $ = o.number;
|
|
1758
|
+
if (u)
|
|
1759
|
+
return {
|
|
1760
|
+
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
1761
|
+
countryCallingCode: u,
|
|
1762
|
+
number: $
|
|
1763
|
+
};
|
|
1764
|
+
}
|
|
1765
|
+
return {
|
|
1766
|
+
// No need to set it to `UNSPECIFIED`. It can be just `undefined`.
|
|
1767
|
+
// countryCallingCodeSource: 'UNSPECIFIED',
|
|
1768
|
+
number: e
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
if (e[1] === "0")
|
|
1773
|
+
return {};
|
|
1774
|
+
i = new D(i);
|
|
1775
|
+
for (var l = 2; l - 1 <= Fn && l <= e.length; ) {
|
|
1776
|
+
var y = e.slice(1, l);
|
|
1777
|
+
if (i.hasCallingCode(y))
|
|
1778
|
+
return i.selectNumberingPlan(y), {
|
|
1779
|
+
countryCallingCodeSource: d ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
1780
|
+
countryCallingCode: y,
|
|
1781
|
+
number: e.slice(l)
|
|
1782
|
+
};
|
|
1783
|
+
l++;
|
|
1784
|
+
}
|
|
1785
|
+
return {};
|
|
1786
|
+
}
|
|
1787
|
+
function yr(e) {
|
|
1788
|
+
return e.replace(new RegExp("[".concat(B, "]+"), "g"), " ").trim();
|
|
1789
|
+
}
|
|
1790
|
+
var hr = /(\$\d)/;
|
|
1791
|
+
function gr(e, t, r) {
|
|
1792
|
+
var n = r.useInternationalFormat, i = r.withNationalPrefix;
|
|
1793
|
+
r.carrierCode, r.metadata;
|
|
1794
|
+
var d = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : (
|
|
1795
|
+
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
1796
|
+
// because that one is only used when formatting phone numbers
|
|
1797
|
+
// for dialing from a mobile phone, and this is not a dialing library.
|
|
1798
|
+
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
|
1799
|
+
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
|
1800
|
+
// // Then, replace the $FG in the formatting rule with the first group
|
|
1801
|
+
// // and the carrier code combined in the appropriate way.
|
|
1802
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
|
1803
|
+
// : (
|
|
1804
|
+
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
|
1805
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
1806
|
+
// : format.format()
|
|
1807
|
+
// )
|
|
1808
|
+
i && t.nationalPrefixFormattingRule() ? t.format().replace(hr, t.nationalPrefixFormattingRule()) : t.format()
|
|
1809
|
+
));
|
|
1810
|
+
return n ? yr(d) : d;
|
|
1811
|
+
}
|
|
1812
|
+
var Kn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
1813
|
+
function Vn(e, t, r) {
|
|
1814
|
+
var n = new D(r);
|
|
1815
|
+
if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix())
|
|
1816
|
+
return n.defaultIDDPrefix();
|
|
1817
|
+
if (Kn.test(n.IDDPrefix()))
|
|
1818
|
+
return n.IDDPrefix();
|
|
1819
|
+
}
|
|
1820
|
+
var Yn = ";ext=", J = function(t) {
|
|
1821
|
+
return "([".concat(M, "]{1,").concat(t, "})");
|
|
1822
|
+
};
|
|
1823
|
+
function mr(e) {
|
|
1824
|
+
var t = "20", r = "15", n = "9", i = "6", d = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", y = "[ \\t]*", g = "(?:,{2}|;)", v = Yn + J(t), C = d + u + a + J(t) + o, b = d + $ + a + J(n) + o, m = l + J(i) + "#", L = y + g + a + J(r) + o, k = y + "(?:,)+" + a + J(n) + o;
|
|
1825
|
+
return v + "|" + C + "|" + b + "|" + m + "|" + L + "|" + k;
|
|
1826
|
+
}
|
|
1827
|
+
var qn = "[" + M + "]{" + ot + "}", Xn = "[" + Te + "]{0,1}(?:[" + B + "]*[" + M + "]){3,}[" + B + M + "]*", Zn = new RegExp("^[" + Te + "]{0,1}(?:[" + B + "]*[" + M + "]){1,2}$", "i"), Jn = Xn + // Phone number extensions
|
|
1828
|
+
"(?:" + mr() + ")?", zn = new RegExp(
|
|
1829
|
+
// Either a short two-digit-only phone number
|
|
1830
|
+
"^" + qn + "$|^" + Jn + "$",
|
|
1831
|
+
"i"
|
|
1832
|
+
);
|
|
1833
|
+
function Qn(e) {
|
|
1834
|
+
return e.length >= ot && zn.test(e);
|
|
1835
|
+
}
|
|
1836
|
+
function ei(e) {
|
|
1837
|
+
return Zn.test(e);
|
|
1838
|
+
}
|
|
1839
|
+
function ti(e) {
|
|
1840
|
+
var t = e.number, r = e.ext;
|
|
1841
|
+
if (!t)
|
|
1842
|
+
return "";
|
|
1843
|
+
if (t[0] !== "+")
|
|
1844
|
+
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
1845
|
+
return "tel:".concat(t).concat(r ? ";ext=" + r : "");
|
|
1846
|
+
}
|
|
1847
|
+
var Rt = {
|
|
1848
|
+
formatExtension: function(t, r, n) {
|
|
1849
|
+
return "".concat(t).concat(n.ext()).concat(r);
|
|
1850
|
+
}
|
|
1851
|
+
};
|
|
1852
|
+
function ri(e, t, r, n) {
|
|
1853
|
+
if (r ? r = di({}, Rt, r) : r = Rt, n = new D(n), e.country && e.country !== "001") {
|
|
1854
|
+
if (!n.hasCountry(e.country))
|
|
1855
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
1856
|
+
n.selectNumberingPlan(e.country);
|
|
1857
|
+
} else if (e.countryCallingCode)
|
|
1858
|
+
n.selectNumberingPlan(e.countryCallingCode);
|
|
1859
|
+
else return e.phone || "";
|
|
1860
|
+
var i = n.countryCallingCode(), d = r.v2 ? e.nationalNumber : e.phone, a;
|
|
1861
|
+
switch (t) {
|
|
1862
|
+
case "NATIONAL":
|
|
1863
|
+
return d ? (a = Ce(d, e.carrierCode, "NATIONAL", n, r), Ue(a, e.ext, n, r.formatExtension)) : "";
|
|
1864
|
+
case "INTERNATIONAL":
|
|
1865
|
+
return d ? (a = Ce(d, null, "INTERNATIONAL", n, r), a = "+".concat(i, " ").concat(a), Ue(a, e.ext, n, r.formatExtension)) : "+".concat(i);
|
|
1866
|
+
case "E.164":
|
|
1867
|
+
return "+".concat(i).concat(d);
|
|
1868
|
+
case "RFC3966":
|
|
1869
|
+
return ti({
|
|
1870
|
+
number: "+".concat(i).concat(d),
|
|
1871
|
+
ext: e.ext
|
|
1872
|
+
});
|
|
1873
|
+
// For reference, here's Google's IDD formatter:
|
|
1874
|
+
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
1875
|
+
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
1876
|
+
// Who would even need to format phone numbers in IDD format anyway?
|
|
1877
|
+
case "IDD":
|
|
1878
|
+
if (!r.fromCountry)
|
|
1879
|
+
return;
|
|
1880
|
+
var o = ii(d, e.carrierCode, i, r.fromCountry, n);
|
|
1881
|
+
return Ue(o, e.ext, n, r.formatExtension);
|
|
1882
|
+
default:
|
|
1883
|
+
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
function Ce(e, t, r, n, i) {
|
|
1887
|
+
var d = ni(n.formats(), e);
|
|
1888
|
+
return d ? gr(e, d, {
|
|
1889
|
+
useInternationalFormat: r === "INTERNATIONAL",
|
|
1890
|
+
withNationalPrefix: !(d.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
1891
|
+
carrierCode: t,
|
|
1892
|
+
metadata: n
|
|
1893
|
+
}) : e;
|
|
1894
|
+
}
|
|
1895
|
+
function ni(e, t) {
|
|
1896
|
+
return ai(e, function(r) {
|
|
1897
|
+
if (r.leadingDigitsPatterns().length > 0) {
|
|
1898
|
+
var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
|
1899
|
+
if (t.search(n) !== 0)
|
|
1900
|
+
return !1;
|
|
1901
|
+
}
|
|
1902
|
+
return K(t, r.pattern());
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
function Ue(e, t, r, n) {
|
|
1906
|
+
return t ? n(e, t, r) : e;
|
|
1907
|
+
}
|
|
1908
|
+
function ii(e, t, r, n, i) {
|
|
1909
|
+
var d = ce(n, i.metadata);
|
|
1910
|
+
if (d === r) {
|
|
1911
|
+
var a = Ce(e, t, "NATIONAL", i);
|
|
1912
|
+
return r === "1" ? r + " " + a : a;
|
|
1913
|
+
}
|
|
1914
|
+
var o = Vn(n, void 0, i.metadata);
|
|
1915
|
+
if (o)
|
|
1916
|
+
return "".concat(o, " ").concat(r, " ").concat(Ce(e, null, "INTERNATIONAL", i));
|
|
1917
|
+
}
|
|
1918
|
+
function di() {
|
|
1919
|
+
for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1920
|
+
r[n] = arguments[n];
|
|
1921
|
+
for (; e < r.length; ) {
|
|
1922
|
+
if (r[e])
|
|
1923
|
+
for (var i in r[e])
|
|
1924
|
+
r[0][i] = r[e][i];
|
|
1925
|
+
e++;
|
|
1926
|
+
}
|
|
1927
|
+
return r[0];
|
|
1928
|
+
}
|
|
1929
|
+
function ai(e, t) {
|
|
1930
|
+
for (var r = 0; r < e.length; ) {
|
|
1931
|
+
if (t(e[r]))
|
|
1932
|
+
return e[r];
|
|
1933
|
+
r++;
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
function te(e) {
|
|
1937
|
+
"@babel/helpers - typeof";
|
|
1938
|
+
return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1939
|
+
return typeof t;
|
|
1940
|
+
} : function(t) {
|
|
1941
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1942
|
+
}, te(e);
|
|
1943
|
+
}
|
|
1944
|
+
function Dt(e, t) {
|
|
1945
|
+
var r = Object.keys(e);
|
|
1946
|
+
if (Object.getOwnPropertySymbols) {
|
|
1947
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1948
|
+
t && (n = n.filter(function(i) {
|
|
1949
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
1950
|
+
})), r.push.apply(r, n);
|
|
1951
|
+
}
|
|
1952
|
+
return r;
|
|
1953
|
+
}
|
|
1954
|
+
function Lt(e) {
|
|
1955
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1956
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
1957
|
+
t % 2 ? Dt(Object(r), !0).forEach(function(n) {
|
|
1958
|
+
oi(e, n, r[n]);
|
|
1959
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Dt(Object(r)).forEach(function(n) {
|
|
1960
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
return e;
|
|
1964
|
+
}
|
|
1965
|
+
function oi(e, t, r) {
|
|
1966
|
+
return (t = vr(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1967
|
+
}
|
|
1968
|
+
function ui(e, t) {
|
|
1969
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1970
|
+
}
|
|
1971
|
+
function $i(e, t) {
|
|
1972
|
+
for (var r = 0; r < t.length; r++) {
|
|
1973
|
+
var n = t[r];
|
|
1974
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, vr(n.key), n);
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
function li(e, t, r) {
|
|
1978
|
+
return t && $i(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1979
|
+
}
|
|
1980
|
+
function vr(e) {
|
|
1981
|
+
var t = fi(e, "string");
|
|
1982
|
+
return te(t) == "symbol" ? t : t + "";
|
|
1983
|
+
}
|
|
1984
|
+
function fi(e, t) {
|
|
1985
|
+
if (te(e) != "object" || !e) return e;
|
|
1986
|
+
var r = e[Symbol.toPrimitive];
|
|
1987
|
+
if (r !== void 0) {
|
|
1988
|
+
var n = r.call(e, t);
|
|
1989
|
+
if (te(n) != "object") return n;
|
|
1990
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1991
|
+
}
|
|
1992
|
+
return String(e);
|
|
1993
|
+
}
|
|
1994
|
+
var pr = /* @__PURE__ */ (function() {
|
|
1995
|
+
function e(t, r, n) {
|
|
1996
|
+
if (ui(this, e), !t)
|
|
1997
|
+
throw new TypeError("First argument is required");
|
|
1998
|
+
if (typeof t != "string")
|
|
1999
|
+
throw new TypeError("First argument must be a string");
|
|
2000
|
+
if (t[0] === "+" && !r)
|
|
2001
|
+
throw new TypeError("`metadata` argument not passed");
|
|
2002
|
+
if (q(r) && q(r.countries)) {
|
|
2003
|
+
n = r;
|
|
2004
|
+
var i = t;
|
|
2005
|
+
if (!yi.test(i))
|
|
2006
|
+
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
|
2007
|
+
var d = $t(i, void 0, void 0, void 0, n), a = d.countryCallingCode, o = d.number;
|
|
2008
|
+
if (r = o, t = a, !r)
|
|
2009
|
+
throw new Error("Invalid `number` argument passed: too short");
|
|
2010
|
+
}
|
|
2011
|
+
if (!r)
|
|
2012
|
+
throw new TypeError("`nationalNumber` argument is required");
|
|
2013
|
+
if (typeof r != "string")
|
|
2014
|
+
throw new TypeError("`nationalNumber` argument must be a string");
|
|
2015
|
+
ur(n);
|
|
2016
|
+
var u = ci(t, n), $ = u.country, l = u.countryCallingCode;
|
|
2017
|
+
this.country = $, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
2018
|
+
return n;
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
return li(e, [{
|
|
2022
|
+
key: "setExt",
|
|
2023
|
+
value: function(r) {
|
|
2024
|
+
this.ext = r;
|
|
2025
|
+
}
|
|
2026
|
+
}, {
|
|
2027
|
+
key: "getPossibleCountries",
|
|
2028
|
+
value: function() {
|
|
2029
|
+
return this.country ? [this.country] : wn(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
2030
|
+
}
|
|
2031
|
+
}, {
|
|
2032
|
+
key: "isPossible",
|
|
2033
|
+
value: function() {
|
|
2034
|
+
return Sn(this, {
|
|
2035
|
+
v2: !0
|
|
2036
|
+
}, this.getMetadata());
|
|
2037
|
+
}
|
|
2038
|
+
}, {
|
|
2039
|
+
key: "isValid",
|
|
2040
|
+
value: function() {
|
|
2041
|
+
return An(this, {
|
|
2042
|
+
v2: !0
|
|
2043
|
+
}, this.getMetadata());
|
|
2044
|
+
}
|
|
2045
|
+
}, {
|
|
2046
|
+
key: "isNonGeographic",
|
|
2047
|
+
value: function() {
|
|
2048
|
+
var r = new D(this.getMetadata());
|
|
2049
|
+
return r.isNonGeographicCallingCode(this.countryCallingCode);
|
|
2050
|
+
}
|
|
2051
|
+
}, {
|
|
2052
|
+
key: "isEqual",
|
|
2053
|
+
value: function(r) {
|
|
2054
|
+
return this.number === r.number && this.ext === r.ext;
|
|
2055
|
+
}
|
|
2056
|
+
// This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
|
|
2057
|
+
// but later it was found out that it doesn't include the possible `TOO_SHORT` result
|
|
2058
|
+
// returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
|
|
2059
|
+
// so eventually I simply commented out this method from the `PhoneNumber` class
|
|
2060
|
+
// and just left the `validatePhoneNumberLength()` function, even though that one would require
|
|
2061
|
+
// and additional step to also validate the actual country / calling code of the phone number.
|
|
2062
|
+
// validateLength() {
|
|
2063
|
+
// const metadata = new Metadata(this.getMetadata())
|
|
2064
|
+
// metadata.selectNumberingPlan(this.countryCallingCode)
|
|
2065
|
+
// const result = checkNumberLength(this.nationalNumber, metadata)
|
|
2066
|
+
// if (result !== 'IS_POSSIBLE') {
|
|
2067
|
+
// return result
|
|
2068
|
+
// }
|
|
2069
|
+
// }
|
|
2070
|
+
}, {
|
|
2071
|
+
key: "getType",
|
|
2072
|
+
value: function() {
|
|
2073
|
+
return at(this, {
|
|
2074
|
+
v2: !0
|
|
2075
|
+
}, this.getMetadata());
|
|
2076
|
+
}
|
|
2077
|
+
}, {
|
|
2078
|
+
key: "format",
|
|
2079
|
+
value: function(r, n) {
|
|
2080
|
+
return ri(this, r, n ? Lt(Lt({}, n), {}, {
|
|
2081
|
+
v2: !0
|
|
2082
|
+
}) : {
|
|
2083
|
+
v2: !0
|
|
2084
|
+
}, this.getMetadata());
|
|
2085
|
+
}
|
|
2086
|
+
}, {
|
|
2087
|
+
key: "formatNational",
|
|
2088
|
+
value: function(r) {
|
|
2089
|
+
return this.format("NATIONAL", r);
|
|
2090
|
+
}
|
|
2091
|
+
}, {
|
|
2092
|
+
key: "formatInternational",
|
|
2093
|
+
value: function(r) {
|
|
2094
|
+
return this.format("INTERNATIONAL", r);
|
|
2095
|
+
}
|
|
2096
|
+
}, {
|
|
2097
|
+
key: "getURI",
|
|
2098
|
+
value: function(r) {
|
|
2099
|
+
return this.format("RFC3966", r);
|
|
2100
|
+
}
|
|
2101
|
+
}]);
|
|
2102
|
+
})(), si = function(t) {
|
|
2103
|
+
return /^[A-Z]{2}$/.test(t);
|
|
2104
|
+
};
|
|
2105
|
+
function ci(e, t) {
|
|
2106
|
+
var r, n, i = new D(t);
|
|
2107
|
+
return si(e) ? (r = e, i.selectNumberingPlan(r), n = i.countryCallingCode()) : n = e, {
|
|
2108
|
+
country: r,
|
|
2109
|
+
countryCallingCode: n
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
var yi = /^\+\d+$/;
|
|
2113
|
+
function Xe(e) {
|
|
2114
|
+
"@babel/helpers - typeof";
|
|
2115
|
+
return Xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2116
|
+
return typeof t;
|
|
2117
|
+
} : function(t) {
|
|
2118
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2119
|
+
}, Xe(e);
|
|
2120
|
+
}
|
|
2121
|
+
function hi(e, t, r) {
|
|
2122
|
+
return Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2123
|
+
}
|
|
2124
|
+
function gi(e, t) {
|
|
2125
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2126
|
+
}
|
|
2127
|
+
function mi(e, t, r) {
|
|
2128
|
+
return t = ne(t), vi(e, lt() ? Reflect.construct(t, r || [], ne(e).constructor) : t.apply(e, r));
|
|
2129
|
+
}
|
|
2130
|
+
function vi(e, t) {
|
|
2131
|
+
if (t && (Xe(t) == "object" || typeof t == "function")) return t;
|
|
2132
|
+
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2133
|
+
return pi(e);
|
|
2134
|
+
}
|
|
2135
|
+
function pi(e) {
|
|
2136
|
+
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2137
|
+
return e;
|
|
2138
|
+
}
|
|
2139
|
+
function bi(e, t) {
|
|
2140
|
+
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2141
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && re(e, t);
|
|
2142
|
+
}
|
|
2143
|
+
function Ze(e) {
|
|
2144
|
+
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2145
|
+
return Ze = function(n) {
|
|
2146
|
+
if (n === null || !Pi(n)) return n;
|
|
2147
|
+
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
2148
|
+
if (t !== void 0) {
|
|
2149
|
+
if (t.has(n)) return t.get(n);
|
|
2150
|
+
t.set(n, i);
|
|
2151
|
+
}
|
|
2152
|
+
function i() {
|
|
2153
|
+
return Ci(n, arguments, ne(this).constructor);
|
|
2154
|
+
}
|
|
2155
|
+
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), re(i, n);
|
|
2156
|
+
}, Ze(e);
|
|
2157
|
+
}
|
|
2158
|
+
function Ci(e, t, r) {
|
|
2159
|
+
if (lt()) return Reflect.construct.apply(null, arguments);
|
|
2160
|
+
var n = [null];
|
|
2161
|
+
n.push.apply(n, t);
|
|
2162
|
+
var i = new (e.bind.apply(e, n))();
|
|
2163
|
+
return r && re(i, r.prototype), i;
|
|
2164
|
+
}
|
|
2165
|
+
function lt() {
|
|
2166
|
+
try {
|
|
2167
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2168
|
+
}));
|
|
2169
|
+
} catch {
|
|
2170
|
+
}
|
|
2171
|
+
return (lt = function() {
|
|
2172
|
+
return !!e;
|
|
2173
|
+
})();
|
|
2174
|
+
}
|
|
2175
|
+
function Pi(e) {
|
|
2176
|
+
try {
|
|
2177
|
+
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
2178
|
+
} catch {
|
|
2179
|
+
return typeof e == "function";
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
function re(e, t) {
|
|
2183
|
+
return re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
2184
|
+
return r.__proto__ = n, r;
|
|
2185
|
+
}, re(e, t);
|
|
2186
|
+
}
|
|
2187
|
+
function ne(e) {
|
|
2188
|
+
return ne = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
2189
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2190
|
+
}, ne(e);
|
|
2191
|
+
}
|
|
2192
|
+
var H = /* @__PURE__ */ (function(e) {
|
|
2193
|
+
function t(r) {
|
|
2194
|
+
var n;
|
|
2195
|
+
return gi(this, t), n = mi(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
2196
|
+
}
|
|
2197
|
+
return bi(t, e), hi(t);
|
|
2198
|
+
})(/* @__PURE__ */ Ze(Error)), Mt = new RegExp("(?:" + mr() + ")$", "i");
|
|
2199
|
+
function Ni(e) {
|
|
2200
|
+
var t = e.search(Mt);
|
|
2201
|
+
if (t < 0)
|
|
2202
|
+
return {};
|
|
2203
|
+
for (var r = e.slice(0, t), n = e.match(Mt), i = 1; i < n.length; ) {
|
|
2204
|
+
if (n[i])
|
|
2205
|
+
return {
|
|
2206
|
+
number: r,
|
|
2207
|
+
ext: n[i]
|
|
2208
|
+
};
|
|
2209
|
+
i++;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
function Ei(e, t) {
|
|
2213
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2214
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
2215
|
+
if (Array.isArray(e) || (r = Si(e)) || t) {
|
|
2216
|
+
r && (e = r);
|
|
2217
|
+
var n = 0;
|
|
2218
|
+
return function() {
|
|
2219
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2223
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2224
|
+
}
|
|
2225
|
+
function Si(e, t) {
|
|
2226
|
+
if (e) {
|
|
2227
|
+
if (typeof e == "string") return jt(e, t);
|
|
2228
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
2229
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? jt(e, t) : void 0;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
function jt(e, t) {
|
|
2233
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2234
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2235
|
+
return n;
|
|
2236
|
+
}
|
|
2237
|
+
var Ti = {
|
|
2238
|
+
0: "0",
|
|
2239
|
+
1: "1",
|
|
2240
|
+
2: "2",
|
|
2241
|
+
3: "3",
|
|
2242
|
+
4: "4",
|
|
2243
|
+
5: "5",
|
|
2244
|
+
6: "6",
|
|
2245
|
+
7: "7",
|
|
2246
|
+
8: "8",
|
|
2247
|
+
9: "9",
|
|
2248
|
+
"0": "0",
|
|
2249
|
+
// Fullwidth digit 0
|
|
2250
|
+
"1": "1",
|
|
2251
|
+
// Fullwidth digit 1
|
|
2252
|
+
"2": "2",
|
|
2253
|
+
// Fullwidth digit 2
|
|
2254
|
+
"3": "3",
|
|
2255
|
+
// Fullwidth digit 3
|
|
2256
|
+
"4": "4",
|
|
2257
|
+
// Fullwidth digit 4
|
|
2258
|
+
"5": "5",
|
|
2259
|
+
// Fullwidth digit 5
|
|
2260
|
+
"6": "6",
|
|
2261
|
+
// Fullwidth digit 6
|
|
2262
|
+
"7": "7",
|
|
2263
|
+
// Fullwidth digit 7
|
|
2264
|
+
"8": "8",
|
|
2265
|
+
// Fullwidth digit 8
|
|
2266
|
+
"9": "9",
|
|
2267
|
+
// Fullwidth digit 9
|
|
2268
|
+
"٠": "0",
|
|
2269
|
+
// Arabic-indic digit 0
|
|
2270
|
+
"١": "1",
|
|
2271
|
+
// Arabic-indic digit 1
|
|
2272
|
+
"٢": "2",
|
|
2273
|
+
// Arabic-indic digit 2
|
|
2274
|
+
"٣": "3",
|
|
2275
|
+
// Arabic-indic digit 3
|
|
2276
|
+
"٤": "4",
|
|
2277
|
+
// Arabic-indic digit 4
|
|
2278
|
+
"٥": "5",
|
|
2279
|
+
// Arabic-indic digit 5
|
|
2280
|
+
"٦": "6",
|
|
2281
|
+
// Arabic-indic digit 6
|
|
2282
|
+
"٧": "7",
|
|
2283
|
+
// Arabic-indic digit 7
|
|
2284
|
+
"٨": "8",
|
|
2285
|
+
// Arabic-indic digit 8
|
|
2286
|
+
"٩": "9",
|
|
2287
|
+
// Arabic-indic digit 9
|
|
2288
|
+
"۰": "0",
|
|
2289
|
+
// Eastern-Arabic digit 0
|
|
2290
|
+
"۱": "1",
|
|
2291
|
+
// Eastern-Arabic digit 1
|
|
2292
|
+
"۲": "2",
|
|
2293
|
+
// Eastern-Arabic digit 2
|
|
2294
|
+
"۳": "3",
|
|
2295
|
+
// Eastern-Arabic digit 3
|
|
2296
|
+
"۴": "4",
|
|
2297
|
+
// Eastern-Arabic digit 4
|
|
2298
|
+
"۵": "5",
|
|
2299
|
+
// Eastern-Arabic digit 5
|
|
2300
|
+
"۶": "6",
|
|
2301
|
+
// Eastern-Arabic digit 6
|
|
2302
|
+
"۷": "7",
|
|
2303
|
+
// Eastern-Arabic digit 7
|
|
2304
|
+
"۸": "8",
|
|
2305
|
+
// Eastern-Arabic digit 8
|
|
2306
|
+
"۹": "9"
|
|
2307
|
+
// Eastern-Arabic digit 9
|
|
2308
|
+
};
|
|
2309
|
+
function br(e) {
|
|
2310
|
+
return Ti[e];
|
|
2311
|
+
}
|
|
2312
|
+
function Pe(e) {
|
|
2313
|
+
for (var t = "", r = Ei(e.split("")), n; !(n = r()).done; ) {
|
|
2314
|
+
var i = n.value, d = br(i);
|
|
2315
|
+
d && (t += d);
|
|
2316
|
+
}
|
|
2317
|
+
return t;
|
|
2318
|
+
}
|
|
2319
|
+
function Oi(e, t) {
|
|
2320
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2321
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
2322
|
+
if (Array.isArray(e) || (r = xi(e)) || t) {
|
|
2323
|
+
r && (e = r);
|
|
2324
|
+
var n = 0;
|
|
2325
|
+
return function() {
|
|
2326
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2330
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2331
|
+
}
|
|
2332
|
+
function xi(e, t) {
|
|
2333
|
+
if (e) {
|
|
2334
|
+
if (typeof e == "string") return kt(e, t);
|
|
2335
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
2336
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? kt(e, t) : void 0;
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
function kt(e, t) {
|
|
2340
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2341
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2342
|
+
return n;
|
|
2343
|
+
}
|
|
2344
|
+
function Je(e) {
|
|
2345
|
+
for (var t = "", r = Oi(e.split("")), n; !(n = r()).done; ) {
|
|
2346
|
+
var i = n.value;
|
|
2347
|
+
t += Cr(i, t) || "";
|
|
2348
|
+
}
|
|
2349
|
+
return t;
|
|
2350
|
+
}
|
|
2351
|
+
function Cr(e, t, r) {
|
|
2352
|
+
if (e === "+") {
|
|
2353
|
+
if (t) {
|
|
2354
|
+
typeof r == "function" && r("end");
|
|
2355
|
+
return;
|
|
2356
|
+
}
|
|
2357
|
+
return "+";
|
|
2358
|
+
}
|
|
2359
|
+
return br(e);
|
|
2360
|
+
}
|
|
2361
|
+
var Pr = "+", Ai = "[\\-\\.\\(\\)]?", Gt = "([" + M + "]|" + Ai + ")", wi = "^\\" + Pr + Gt + "*[" + M + "]" + Gt + "*$", Ii = new RegExp(wi, "g"), ze = M, _i = "[" + ze + "]+((\\-)*[" + ze + "])*", Fi = "a-zA-Z", Ri = "[" + Fi + "]+((\\-)*[" + ze + "])*", Di = "^(" + _i + "\\.)*" + Ri + "\\.?$", Li = new RegExp(Di, "g"), Bt = "tel:", Qe = ";phone-context=", Mi = ";isub=";
|
|
2362
|
+
function ji(e) {
|
|
2363
|
+
var t = e.indexOf(Qe);
|
|
2364
|
+
if (t < 0)
|
|
2365
|
+
return null;
|
|
2366
|
+
var r = t + Qe.length;
|
|
2367
|
+
if (r >= e.length)
|
|
2368
|
+
return "";
|
|
2369
|
+
var n = e.indexOf(";", r);
|
|
2370
|
+
return n >= 0 ? e.substring(r, n) : e.substring(r);
|
|
2371
|
+
}
|
|
2372
|
+
function ki(e) {
|
|
2373
|
+
return e === null ? !0 : e.length === 0 ? !1 : Ii.test(e) || Li.test(e);
|
|
2374
|
+
}
|
|
2375
|
+
function Gi(e, t) {
|
|
2376
|
+
var r = t.extractFormattedPhoneNumber, n = ji(e);
|
|
2377
|
+
if (!ki(n))
|
|
2378
|
+
throw new H("NOT_A_NUMBER");
|
|
2379
|
+
var i;
|
|
2380
|
+
if (n === null)
|
|
2381
|
+
i = r(e) || "";
|
|
2382
|
+
else {
|
|
2383
|
+
i = "", n.charAt(0) === Pr && (i += n);
|
|
2384
|
+
var d = e.indexOf(Bt), a;
|
|
2385
|
+
d >= 0 ? a = d + Bt.length : a = 0;
|
|
2386
|
+
var o = e.indexOf(Qe);
|
|
2387
|
+
i += e.substring(a, o);
|
|
2388
|
+
}
|
|
2389
|
+
var u = i.indexOf(Mi);
|
|
2390
|
+
if (u > 0 && (i = i.substring(0, u)), i !== "")
|
|
2391
|
+
return i;
|
|
2392
|
+
}
|
|
2393
|
+
var Bi = 250, Ui = new RegExp("[" + Te + M + "]"), Wi = new RegExp("[^" + M + "#]+$");
|
|
2394
|
+
function Hi(e, t, r) {
|
|
2395
|
+
if (t = t || {}, r = new D(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
|
|
2396
|
+
throw t.v2 ? new H("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
|
|
2397
|
+
var n = Vi(e, t.v2, t.extract), i = n.number, d = n.ext, a = n.error;
|
|
2398
|
+
if (!i) {
|
|
2399
|
+
if (t.v2)
|
|
2400
|
+
throw a === "TOO_SHORT" ? new H("TOO_SHORT") : new H("NOT_A_NUMBER");
|
|
2401
|
+
return {};
|
|
2402
|
+
}
|
|
2403
|
+
var o = qi(i, t.defaultCountry, t.defaultCallingCode, r), u = o.country, $ = o.nationalNumber, l = o.countryCallingCode, y = o.countryCallingCodeSource, g = o.carrierCode;
|
|
2404
|
+
if (!r.hasSelectedNumberingPlan()) {
|
|
2405
|
+
if (t.v2)
|
|
2406
|
+
throw new H("INVALID_COUNTRY");
|
|
2407
|
+
return {};
|
|
2408
|
+
}
|
|
2409
|
+
if (!$ || $.length < ot) {
|
|
2410
|
+
if (t.v2)
|
|
2411
|
+
throw new H("TOO_SHORT");
|
|
2412
|
+
return {};
|
|
2413
|
+
}
|
|
2414
|
+
if ($.length > _n) {
|
|
2415
|
+
if (t.v2)
|
|
2416
|
+
throw new H("TOO_LONG");
|
|
2417
|
+
return {};
|
|
2418
|
+
}
|
|
2419
|
+
if (t.v2) {
|
|
2420
|
+
var v = new pr(l, $, r.metadata);
|
|
2421
|
+
return u && (v.country = u), g && (v.carrierCode = g), d && (v.ext = d), v.__countryCallingCodeSource = y, v;
|
|
2422
|
+
}
|
|
2423
|
+
var C = (t.extended ? r.hasSelectedNumberingPlan() : u) ? K($, r.nationalNumberPattern()) : !1;
|
|
2424
|
+
return t.extended ? {
|
|
2425
|
+
country: u,
|
|
2426
|
+
countryCallingCode: l,
|
|
2427
|
+
carrierCode: g,
|
|
2428
|
+
valid: C,
|
|
2429
|
+
possible: C ? !0 : !!(t.extended === !0 && r.possibleLengths() && lr($, u, r)),
|
|
2430
|
+
phone: $,
|
|
2431
|
+
ext: d
|
|
2432
|
+
} : C ? Yi(u, $, d) : {};
|
|
2433
|
+
}
|
|
2434
|
+
function Ki(e, t, r) {
|
|
2435
|
+
if (e) {
|
|
2436
|
+
if (e.length > Bi) {
|
|
2437
|
+
if (r)
|
|
2438
|
+
throw new H("TOO_LONG");
|
|
2439
|
+
return;
|
|
2440
|
+
}
|
|
2441
|
+
if (t === !1)
|
|
2442
|
+
return e;
|
|
2443
|
+
var n = e.search(Ui);
|
|
2444
|
+
if (!(n < 0))
|
|
2445
|
+
return e.slice(n).replace(Wi, "");
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
function Vi(e, t, r) {
|
|
2449
|
+
var n = Gi(e, {
|
|
2450
|
+
extractFormattedPhoneNumber: function(a) {
|
|
2451
|
+
return Ki(a, r, t);
|
|
2452
|
+
}
|
|
2453
|
+
});
|
|
2454
|
+
if (!n)
|
|
2455
|
+
return {};
|
|
2456
|
+
if (!Qn(n))
|
|
2457
|
+
return ei(n) ? {
|
|
2458
|
+
error: "TOO_SHORT"
|
|
2459
|
+
} : {};
|
|
2460
|
+
var i = Ni(n);
|
|
2461
|
+
return i.ext ? i : {
|
|
2462
|
+
number: n
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
function Yi(e, t, r) {
|
|
2466
|
+
var n = {
|
|
2467
|
+
country: e,
|
|
2468
|
+
phone: t
|
|
2469
|
+
};
|
|
2470
|
+
return r && (n.ext = r), n;
|
|
2471
|
+
}
|
|
2472
|
+
function qi(e, t, r, n) {
|
|
2473
|
+
var i = $t(Je(e), void 0, t, r, n.metadata), d = i.countryCallingCodeSource, a = i.countryCallingCode, o = i.number, u;
|
|
2474
|
+
if (a)
|
|
2475
|
+
n.selectNumberingPlan(a);
|
|
2476
|
+
else if (o && (t || r))
|
|
2477
|
+
n.selectNumberingPlan(t, r), t && (u = t), a = r || ce(t, n.metadata);
|
|
2478
|
+
else return {};
|
|
2479
|
+
if (!o)
|
|
2480
|
+
return {
|
|
2481
|
+
countryCallingCodeSource: d,
|
|
2482
|
+
countryCallingCode: a
|
|
2483
|
+
};
|
|
2484
|
+
var $ = qe(Je(o), u, n), l = $.nationalNumber, y = $.carrierCode, g = ut(a, {
|
|
2485
|
+
nationalNumber: l,
|
|
2486
|
+
metadata: n
|
|
2487
|
+
});
|
|
2488
|
+
return g && (u = g, g === "001" || n.selectNumberingPlan(u)), {
|
|
2489
|
+
country: u,
|
|
2490
|
+
countryCallingCode: a,
|
|
2491
|
+
countryCallingCodeSource: d,
|
|
2492
|
+
nationalNumber: l,
|
|
2493
|
+
carrierCode: y
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
function ie(e) {
|
|
2497
|
+
"@babel/helpers - typeof";
|
|
2498
|
+
return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2499
|
+
return typeof t;
|
|
2500
|
+
} : function(t) {
|
|
2501
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2502
|
+
}, ie(e);
|
|
2503
|
+
}
|
|
2504
|
+
function Ut(e, t) {
|
|
2505
|
+
var r = Object.keys(e);
|
|
2506
|
+
if (Object.getOwnPropertySymbols) {
|
|
2507
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2508
|
+
t && (n = n.filter(function(i) {
|
|
2509
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
2510
|
+
})), r.push.apply(r, n);
|
|
2511
|
+
}
|
|
2512
|
+
return r;
|
|
2513
|
+
}
|
|
2514
|
+
function Wt(e) {
|
|
2515
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2516
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
2517
|
+
t % 2 ? Ut(Object(r), !0).forEach(function(n) {
|
|
2518
|
+
Xi(e, n, r[n]);
|
|
2519
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
|
|
2520
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
return e;
|
|
2524
|
+
}
|
|
2525
|
+
function Xi(e, t, r) {
|
|
2526
|
+
return (t = Zi(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
2527
|
+
}
|
|
2528
|
+
function Zi(e) {
|
|
2529
|
+
var t = Ji(e, "string");
|
|
2530
|
+
return ie(t) == "symbol" ? t : t + "";
|
|
2531
|
+
}
|
|
2532
|
+
function Ji(e, t) {
|
|
2533
|
+
if (ie(e) != "object" || !e) return e;
|
|
2534
|
+
var r = e[Symbol.toPrimitive];
|
|
2535
|
+
if (r !== void 0) {
|
|
2536
|
+
var n = r.call(e, t);
|
|
2537
|
+
if (ie(n) != "object") return n;
|
|
2538
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2539
|
+
}
|
|
2540
|
+
return (t === "string" ? String : Number)(e);
|
|
2541
|
+
}
|
|
2542
|
+
function zi(e, t, r) {
|
|
2543
|
+
return Hi(e, Wt(Wt({}, t), {}, {
|
|
2544
|
+
v2: !0
|
|
2545
|
+
}), r);
|
|
2546
|
+
}
|
|
2547
|
+
function de(e) {
|
|
2548
|
+
"@babel/helpers - typeof";
|
|
2549
|
+
return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2550
|
+
return typeof t;
|
|
2551
|
+
} : function(t) {
|
|
2552
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2553
|
+
}, de(e);
|
|
2554
|
+
}
|
|
2555
|
+
function Ht(e, t) {
|
|
2556
|
+
var r = Object.keys(e);
|
|
2557
|
+
if (Object.getOwnPropertySymbols) {
|
|
2558
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2559
|
+
t && (n = n.filter(function(i) {
|
|
2560
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
2561
|
+
})), r.push.apply(r, n);
|
|
2562
|
+
}
|
|
2563
|
+
return r;
|
|
2564
|
+
}
|
|
2565
|
+
function Qi(e) {
|
|
2566
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2567
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
2568
|
+
t % 2 ? Ht(Object(r), !0).forEach(function(n) {
|
|
2569
|
+
ed(e, n, r[n]);
|
|
2570
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ht(Object(r)).forEach(function(n) {
|
|
2571
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2572
|
+
});
|
|
2573
|
+
}
|
|
2574
|
+
return e;
|
|
2575
|
+
}
|
|
2576
|
+
function ed(e, t, r) {
|
|
2577
|
+
return (t = td(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
2578
|
+
}
|
|
2579
|
+
function td(e) {
|
|
2580
|
+
var t = rd(e, "string");
|
|
2581
|
+
return de(t) == "symbol" ? t : t + "";
|
|
2582
|
+
}
|
|
2583
|
+
function rd(e, t) {
|
|
2584
|
+
if (de(e) != "object" || !e) return e;
|
|
2585
|
+
var r = e[Symbol.toPrimitive];
|
|
2586
|
+
if (r !== void 0) {
|
|
2587
|
+
var n = r.call(e, t);
|
|
2588
|
+
if (de(n) != "object") return n;
|
|
2589
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2590
|
+
}
|
|
2591
|
+
return (t === "string" ? String : Number)(e);
|
|
2592
|
+
}
|
|
2593
|
+
function nd(e, t) {
|
|
2594
|
+
return od(e) || ad(e, t) || dd(e, t) || id();
|
|
2595
|
+
}
|
|
2596
|
+
function id() {
|
|
2597
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2598
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2599
|
+
}
|
|
2600
|
+
function dd(e, t) {
|
|
2601
|
+
if (e) {
|
|
2602
|
+
if (typeof e == "string") return Kt(e, t);
|
|
2603
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
2604
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Kt(e, t) : void 0;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
function Kt(e, t) {
|
|
2608
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2609
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2610
|
+
return n;
|
|
2611
|
+
}
|
|
2612
|
+
function ad(e, t) {
|
|
2613
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2614
|
+
if (r != null) {
|
|
2615
|
+
var n, i, d, a, o = [], u = !0, $ = !1;
|
|
2616
|
+
try {
|
|
2617
|
+
if (d = (r = r.call(e)).next, t !== 0) for (; !(u = (n = d.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
2618
|
+
} catch (l) {
|
|
2619
|
+
$ = !0, i = l;
|
|
2620
|
+
} finally {
|
|
2621
|
+
try {
|
|
2622
|
+
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
2623
|
+
} finally {
|
|
2624
|
+
if ($) throw i;
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
return o;
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
function od(e) {
|
|
2631
|
+
if (Array.isArray(e)) return e;
|
|
2632
|
+
}
|
|
2633
|
+
function Ka(e) {
|
|
2634
|
+
var t = Array.prototype.slice.call(e), r = nd(t, 4), n = r[0], i = r[1], d = r[2], a = r[3], o, u, $;
|
|
2635
|
+
if (typeof n == "string")
|
|
2636
|
+
o = n;
|
|
2637
|
+
else throw new TypeError("A text for parsing must be a string.");
|
|
2638
|
+
if (!i || typeof i == "string")
|
|
2639
|
+
a ? (u = d, $ = a) : (u = void 0, $ = d), i && (u = Qi({
|
|
2640
|
+
defaultCountry: i
|
|
2641
|
+
}, u));
|
|
2642
|
+
else if (q(i))
|
|
2643
|
+
d ? (u = i, $ = d) : $ = i;
|
|
2644
|
+
else throw new Error("Invalid second argument: ".concat(i));
|
|
2645
|
+
return {
|
|
2646
|
+
text: o,
|
|
2647
|
+
options: u,
|
|
2648
|
+
metadata: $
|
|
2649
|
+
};
|
|
2650
|
+
}
|
|
2651
|
+
function ae(e) {
|
|
2652
|
+
"@babel/helpers - typeof";
|
|
2653
|
+
return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2654
|
+
return typeof t;
|
|
2655
|
+
} : function(t) {
|
|
2656
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2657
|
+
}, ae(e);
|
|
2658
|
+
}
|
|
2659
|
+
function Vt(e, t) {
|
|
2660
|
+
var r = Object.keys(e);
|
|
2661
|
+
if (Object.getOwnPropertySymbols) {
|
|
2662
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2663
|
+
t && (n = n.filter(function(i) {
|
|
2664
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
2665
|
+
})), r.push.apply(r, n);
|
|
2666
|
+
}
|
|
2667
|
+
return r;
|
|
2668
|
+
}
|
|
2669
|
+
function Yt(e) {
|
|
2670
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2671
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
2672
|
+
t % 2 ? Vt(Object(r), !0).forEach(function(n) {
|
|
2673
|
+
ud(e, n, r[n]);
|
|
2674
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Vt(Object(r)).forEach(function(n) {
|
|
2675
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2676
|
+
});
|
|
2677
|
+
}
|
|
2678
|
+
return e;
|
|
2679
|
+
}
|
|
2680
|
+
function ud(e, t, r) {
|
|
2681
|
+
return (t = $d(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
2682
|
+
}
|
|
2683
|
+
function $d(e) {
|
|
2684
|
+
var t = ld(e, "string");
|
|
2685
|
+
return ae(t) == "symbol" ? t : t + "";
|
|
2686
|
+
}
|
|
2687
|
+
function ld(e, t) {
|
|
2688
|
+
if (ae(e) != "object" || !e) return e;
|
|
2689
|
+
var r = e[Symbol.toPrimitive];
|
|
2690
|
+
if (r !== void 0) {
|
|
2691
|
+
var n = r.call(e, t);
|
|
2692
|
+
if (ae(n) != "object") return n;
|
|
2693
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2694
|
+
}
|
|
2695
|
+
return (t === "string" ? String : Number)(e);
|
|
2696
|
+
}
|
|
2697
|
+
function Va(e, t, r) {
|
|
2698
|
+
t && t.defaultCountry && !Nn(t.defaultCountry, r) && (t = Yt(Yt({}, t), {}, {
|
|
2699
|
+
defaultCountry: void 0
|
|
2700
|
+
}));
|
|
2701
|
+
try {
|
|
2702
|
+
return zi(e, t, r);
|
|
2703
|
+
} catch (n) {
|
|
2704
|
+
if (!(n instanceof H)) throw n;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
function oe(e) {
|
|
2708
|
+
"@babel/helpers - typeof";
|
|
2709
|
+
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2710
|
+
return typeof t;
|
|
2711
|
+
} : function(t) {
|
|
2712
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2713
|
+
}, oe(e);
|
|
2714
|
+
}
|
|
2715
|
+
function fd(e, t) {
|
|
2716
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2717
|
+
}
|
|
2718
|
+
function sd(e, t) {
|
|
2719
|
+
for (var r = 0; r < t.length; r++) {
|
|
2720
|
+
var n = t[r];
|
|
2721
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, yd(n.key), n);
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
function cd(e, t, r) {
|
|
2725
|
+
return t && sd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2726
|
+
}
|
|
2727
|
+
function yd(e) {
|
|
2728
|
+
var t = hd(e, "string");
|
|
2729
|
+
return oe(t) == "symbol" ? t : t + "";
|
|
2730
|
+
}
|
|
2731
|
+
function hd(e, t) {
|
|
2732
|
+
if (oe(e) != "object" || !e) return e;
|
|
2733
|
+
var r = e[Symbol.toPrimitive];
|
|
2734
|
+
if (r !== void 0) {
|
|
2735
|
+
var n = r.call(e, t);
|
|
2736
|
+
if (oe(n) != "object") return n;
|
|
2737
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2738
|
+
}
|
|
2739
|
+
return String(e);
|
|
2740
|
+
}
|
|
2741
|
+
var gd = /* @__PURE__ */ (function() {
|
|
2742
|
+
function e(t) {
|
|
2743
|
+
var r = t.onCountryChange, n = t.onCallingCodeChange;
|
|
2744
|
+
fd(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
|
|
2745
|
+
}
|
|
2746
|
+
return cd(e, [{
|
|
2747
|
+
key: "reset",
|
|
2748
|
+
value: function(r) {
|
|
2749
|
+
var n = r.country, i = r.callingCode;
|
|
2750
|
+
this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, i);
|
|
2751
|
+
}
|
|
2752
|
+
}, {
|
|
2753
|
+
key: "resetNationalSignificantNumber",
|
|
2754
|
+
value: function() {
|
|
2755
|
+
this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
|
|
2756
|
+
}
|
|
2757
|
+
}, {
|
|
2758
|
+
key: "update",
|
|
2759
|
+
value: function(r) {
|
|
2760
|
+
for (var n = 0, i = Object.keys(r); n < i.length; n++) {
|
|
2761
|
+
var d = i[n];
|
|
2762
|
+
this[d] = r[d];
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}, {
|
|
2766
|
+
key: "initCountryAndCallingCode",
|
|
2767
|
+
value: function(r, n) {
|
|
2768
|
+
this.setCountry(r), this.setCallingCode(n);
|
|
2769
|
+
}
|
|
2770
|
+
}, {
|
|
2771
|
+
key: "setCountry",
|
|
2772
|
+
value: function(r) {
|
|
2773
|
+
this.country = r, this.onCountryChange(r);
|
|
2774
|
+
}
|
|
2775
|
+
}, {
|
|
2776
|
+
key: "setCallingCode",
|
|
2777
|
+
value: function(r) {
|
|
2778
|
+
this.callingCode = r, this.onCallingCodeChange(r, this.country);
|
|
2779
|
+
}
|
|
2780
|
+
}, {
|
|
2781
|
+
key: "startInternationalNumber",
|
|
2782
|
+
value: function(r, n) {
|
|
2783
|
+
this.international = !0, this.initCountryAndCallingCode(r, n);
|
|
2784
|
+
}
|
|
2785
|
+
}, {
|
|
2786
|
+
key: "appendDigits",
|
|
2787
|
+
value: function(r) {
|
|
2788
|
+
this.digits += r;
|
|
2789
|
+
}
|
|
2790
|
+
}, {
|
|
2791
|
+
key: "appendNationalSignificantNumberDigits",
|
|
2792
|
+
value: function(r) {
|
|
2793
|
+
this.nationalSignificantNumber += r;
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* Returns the part of `this.digits` that corresponds to the national number.
|
|
2797
|
+
* Basically, all digits that have been input by the user, except for the
|
|
2798
|
+
* international prefix and the country calling code part
|
|
2799
|
+
* (if the number is an international one).
|
|
2800
|
+
* @return {string}
|
|
2801
|
+
*/
|
|
2802
|
+
}, {
|
|
2803
|
+
key: "getNationalDigits",
|
|
2804
|
+
value: function() {
|
|
2805
|
+
return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
|
|
2806
|
+
}
|
|
2807
|
+
}, {
|
|
2808
|
+
key: "getDigitsWithoutInternationalPrefix",
|
|
2809
|
+
value: function() {
|
|
2810
|
+
return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
|
|
2811
|
+
}
|
|
2812
|
+
}]);
|
|
2813
|
+
})();
|
|
2814
|
+
function md(e, t) {
|
|
2815
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2816
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
2817
|
+
if (Array.isArray(e) || (r = vd(e)) || t) {
|
|
2818
|
+
r && (e = r);
|
|
2819
|
+
var n = 0;
|
|
2820
|
+
return function() {
|
|
2821
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2822
|
+
};
|
|
2823
|
+
}
|
|
2824
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2825
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2826
|
+
}
|
|
2827
|
+
function vd(e, t) {
|
|
2828
|
+
if (e) {
|
|
2829
|
+
if (typeof e == "string") return qt(e, t);
|
|
2830
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
2831
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? qt(e, t) : void 0;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
function qt(e, t) {
|
|
2835
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2836
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2837
|
+
return n;
|
|
2838
|
+
}
|
|
2839
|
+
var G = "x", We = new RegExp(G);
|
|
2840
|
+
function pe(e, t) {
|
|
2841
|
+
if (t < 1)
|
|
2842
|
+
return "";
|
|
2843
|
+
for (var r = ""; t > 1; )
|
|
2844
|
+
t & 1 && (r += e), t >>= 1, e += e;
|
|
2845
|
+
return r + e;
|
|
2846
|
+
}
|
|
2847
|
+
function Xt(e, t) {
|
|
2848
|
+
return e[t] === ")" && t++, pd(e.slice(0, t));
|
|
2849
|
+
}
|
|
2850
|
+
function pd(e) {
|
|
2851
|
+
for (var t = [], r = 0; r < e.length; )
|
|
2852
|
+
e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
|
|
2853
|
+
var n = 0, i = "";
|
|
2854
|
+
t.push(e.length);
|
|
2855
|
+
for (var d = 0, a = t; d < a.length; d++) {
|
|
2856
|
+
var o = a[d];
|
|
2857
|
+
i += e.slice(n, o), n = o + 1;
|
|
2858
|
+
}
|
|
2859
|
+
return i;
|
|
2860
|
+
}
|
|
2861
|
+
function bd(e, t, r) {
|
|
2862
|
+
for (var n = md(r.split("")), i; !(i = n()).done; ) {
|
|
2863
|
+
var d = i.value;
|
|
2864
|
+
if (e.slice(t + 1).search(We) < 0)
|
|
2865
|
+
return;
|
|
2866
|
+
t = e.search(We), e = e.replace(We, d);
|
|
2867
|
+
}
|
|
2868
|
+
return [e, t];
|
|
2869
|
+
}
|
|
2870
|
+
function Cd(e, t, r) {
|
|
2871
|
+
var n = r.metadata, i = r.shouldTryNationalPrefixFormattingRule, d = r.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
|
|
2872
|
+
if (a.test(e.nationalSignificantNumber))
|
|
2873
|
+
return Nd(e, t, {
|
|
2874
|
+
metadata: n,
|
|
2875
|
+
shouldTryNationalPrefixFormattingRule: i,
|
|
2876
|
+
getSeparatorAfterNationalPrefix: d
|
|
2877
|
+
});
|
|
2878
|
+
}
|
|
2879
|
+
function Pd(e, t, r) {
|
|
2880
|
+
return Se(e, t, r) === "IS_POSSIBLE";
|
|
2881
|
+
}
|
|
2882
|
+
function Nd(e, t, r) {
|
|
2883
|
+
var n = r.metadata, i = r.shouldTryNationalPrefixFormattingRule, d = r.getSeparatorAfterNationalPrefix;
|
|
2884
|
+
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
2885
|
+
var a = Zt(e, t, {
|
|
2886
|
+
useNationalPrefixFormattingRule: !0,
|
|
2887
|
+
getSeparatorAfterNationalPrefix: d,
|
|
2888
|
+
metadata: n
|
|
2889
|
+
});
|
|
2890
|
+
if (a)
|
|
2891
|
+
return a;
|
|
2892
|
+
}
|
|
2893
|
+
return Zt(e, t, {
|
|
2894
|
+
useNationalPrefixFormattingRule: !1,
|
|
2895
|
+
getSeparatorAfterNationalPrefix: d,
|
|
2896
|
+
metadata: n
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
function Zt(e, t, r) {
|
|
2900
|
+
var n = r.metadata, i = r.useNationalPrefixFormattingRule, d = r.getSeparatorAfterNationalPrefix, a = gr(e.nationalSignificantNumber, t, {
|
|
2901
|
+
carrierCode: e.carrierCode,
|
|
2902
|
+
useInternationalFormat: e.international,
|
|
2903
|
+
withNationalPrefix: i,
|
|
2904
|
+
metadata: n
|
|
2905
|
+
});
|
|
2906
|
+
if (i || (e.nationalPrefix ? a = e.nationalPrefix + d(t) + a : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (a = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + a)), Ed(a, e))
|
|
2907
|
+
return a;
|
|
2908
|
+
}
|
|
2909
|
+
function Ed(e, t) {
|
|
2910
|
+
return Pe(e) === t.getNationalDigits();
|
|
2911
|
+
}
|
|
2912
|
+
function ue(e) {
|
|
2913
|
+
"@babel/helpers - typeof";
|
|
2914
|
+
return ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2915
|
+
return typeof t;
|
|
2916
|
+
} : function(t) {
|
|
2917
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2918
|
+
}, ue(e);
|
|
2919
|
+
}
|
|
2920
|
+
function Sd(e, t) {
|
|
2921
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2922
|
+
}
|
|
2923
|
+
function Td(e, t) {
|
|
2924
|
+
for (var r = 0; r < t.length; r++) {
|
|
2925
|
+
var n = t[r];
|
|
2926
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, xd(n.key), n);
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
function Od(e, t, r) {
|
|
2930
|
+
return t && Td(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2931
|
+
}
|
|
2932
|
+
function xd(e) {
|
|
2933
|
+
var t = Ad(e, "string");
|
|
2934
|
+
return ue(t) == "symbol" ? t : t + "";
|
|
2935
|
+
}
|
|
2936
|
+
function Ad(e, t) {
|
|
2937
|
+
if (ue(e) != "object" || !e) return e;
|
|
2938
|
+
var r = e[Symbol.toPrimitive];
|
|
2939
|
+
if (r !== void 0) {
|
|
2940
|
+
var n = r.call(e, t);
|
|
2941
|
+
if (ue(n) != "object") return n;
|
|
2942
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2943
|
+
}
|
|
2944
|
+
return String(e);
|
|
2945
|
+
}
|
|
2946
|
+
var wd = /* @__PURE__ */ (function() {
|
|
2947
|
+
function e() {
|
|
2948
|
+
Sd(this, e);
|
|
2949
|
+
}
|
|
2950
|
+
return Od(e, [{
|
|
2951
|
+
key: "parse",
|
|
2952
|
+
value: function(r) {
|
|
2953
|
+
if (this.context = [{
|
|
2954
|
+
or: !0,
|
|
2955
|
+
instructions: []
|
|
2956
|
+
}], this.parsePattern(r), this.context.length !== 1)
|
|
2957
|
+
throw new Error("Non-finalized contexts left when pattern parse ended");
|
|
2958
|
+
var n = this.context[0], i = n.branches, d = n.instructions;
|
|
2959
|
+
if (i)
|
|
2960
|
+
return {
|
|
2961
|
+
op: "|",
|
|
2962
|
+
args: i.concat([He(d)])
|
|
2963
|
+
};
|
|
2964
|
+
if (d.length === 0)
|
|
2965
|
+
throw new Error("Pattern is required");
|
|
2966
|
+
return d.length === 1 ? d[0] : d;
|
|
2967
|
+
}
|
|
2968
|
+
}, {
|
|
2969
|
+
key: "startContext",
|
|
2970
|
+
value: function(r) {
|
|
2971
|
+
this.context.push(r);
|
|
2972
|
+
}
|
|
2973
|
+
}, {
|
|
2974
|
+
key: "endContext",
|
|
2975
|
+
value: function() {
|
|
2976
|
+
this.context.pop();
|
|
2977
|
+
}
|
|
2978
|
+
}, {
|
|
2979
|
+
key: "getContext",
|
|
2980
|
+
value: function() {
|
|
2981
|
+
return this.context[this.context.length - 1];
|
|
2982
|
+
}
|
|
2983
|
+
}, {
|
|
2984
|
+
key: "parsePattern",
|
|
2985
|
+
value: function(r) {
|
|
2986
|
+
if (!r)
|
|
2987
|
+
throw new Error("Pattern is required");
|
|
2988
|
+
var n = r.match(Fd);
|
|
2989
|
+
if (!n) {
|
|
2990
|
+
if (_d.test(r))
|
|
2991
|
+
throw new Error("Illegal characters found in a pattern: ".concat(r));
|
|
2992
|
+
this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
|
|
2993
|
+
return;
|
|
2994
|
+
}
|
|
2995
|
+
var i = n[1], d = r.slice(0, n.index), a = r.slice(n.index + i.length);
|
|
2996
|
+
switch (i) {
|
|
2997
|
+
case "(?:":
|
|
2998
|
+
d && this.parsePattern(d), this.startContext({
|
|
2999
|
+
or: !0,
|
|
3000
|
+
instructions: [],
|
|
3001
|
+
branches: []
|
|
3002
|
+
});
|
|
3003
|
+
break;
|
|
3004
|
+
case ")":
|
|
3005
|
+
if (!this.getContext().or)
|
|
3006
|
+
throw new Error('")" operator must be preceded by "(?:" operator');
|
|
3007
|
+
if (d && this.parsePattern(d), this.getContext().instructions.length === 0)
|
|
3008
|
+
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
3009
|
+
var o = this.getContext(), u = o.branches;
|
|
3010
|
+
u.push(He(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
3011
|
+
op: "|",
|
|
3012
|
+
args: u
|
|
3013
|
+
});
|
|
3014
|
+
break;
|
|
3015
|
+
case "|":
|
|
3016
|
+
if (!this.getContext().or)
|
|
3017
|
+
throw new Error('"|" operator can only be used inside "or" groups');
|
|
3018
|
+
if (d && this.parsePattern(d), !this.getContext().branches)
|
|
3019
|
+
if (this.context.length === 1)
|
|
3020
|
+
this.getContext().branches = [];
|
|
3021
|
+
else
|
|
3022
|
+
throw new Error('"branches" not found in an "or" group context');
|
|
3023
|
+
this.getContext().branches.push(He(this.getContext().instructions)), this.getContext().instructions = [];
|
|
3024
|
+
break;
|
|
3025
|
+
case "[":
|
|
3026
|
+
d && this.parsePattern(d), this.startContext({
|
|
3027
|
+
oneOfSet: !0
|
|
3028
|
+
});
|
|
3029
|
+
break;
|
|
3030
|
+
case "]":
|
|
3031
|
+
if (!this.getContext().oneOfSet)
|
|
3032
|
+
throw new Error('"]" operator must be preceded by "[" operator');
|
|
3033
|
+
this.endContext(), this.getContext().instructions.push({
|
|
3034
|
+
op: "[]",
|
|
3035
|
+
args: Id(d)
|
|
3036
|
+
});
|
|
3037
|
+
break;
|
|
3038
|
+
/* istanbul ignore next */
|
|
3039
|
+
default:
|
|
3040
|
+
throw new Error("Unknown operator: ".concat(i));
|
|
3041
|
+
}
|
|
3042
|
+
a && this.parsePattern(a);
|
|
3043
|
+
}
|
|
3044
|
+
}]);
|
|
3045
|
+
})();
|
|
3046
|
+
function Id(e) {
|
|
3047
|
+
for (var t = [], r = 0; r < e.length; ) {
|
|
3048
|
+
if (e[r] === "-") {
|
|
3049
|
+
if (r === 0 || r === e.length - 1)
|
|
3050
|
+
throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
|
|
3051
|
+
for (var n = e[r - 1].charCodeAt(0) + 1, i = e[r + 1].charCodeAt(0) - 1, d = n; d <= i; )
|
|
3052
|
+
t.push(String.fromCharCode(d)), d++;
|
|
3053
|
+
} else
|
|
3054
|
+
t.push(e[r]);
|
|
3055
|
+
r++;
|
|
3056
|
+
}
|
|
3057
|
+
return t;
|
|
3058
|
+
}
|
|
3059
|
+
var _d = /[\(\)\[\]\?\:\|]/, Fd = new RegExp(
|
|
3060
|
+
// any of:
|
|
3061
|
+
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
3062
|
+
);
|
|
3063
|
+
function He(e) {
|
|
3064
|
+
return e.length === 1 ? e[0] : e;
|
|
3065
|
+
}
|
|
3066
|
+
function Jt(e, t) {
|
|
3067
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3068
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
3069
|
+
if (Array.isArray(e) || (r = Rd(e)) || t) {
|
|
3070
|
+
r && (e = r);
|
|
3071
|
+
var n = 0;
|
|
3072
|
+
return function() {
|
|
3073
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3077
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3078
|
+
}
|
|
3079
|
+
function Rd(e, t) {
|
|
3080
|
+
if (e) {
|
|
3081
|
+
if (typeof e == "string") return zt(e, t);
|
|
3082
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
3083
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? zt(e, t) : void 0;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
function zt(e, t) {
|
|
3087
|
+
(t == null || t > e.length) && (t = e.length);
|
|
3088
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
3089
|
+
return n;
|
|
3090
|
+
}
|
|
3091
|
+
function $e(e) {
|
|
3092
|
+
"@babel/helpers - typeof";
|
|
3093
|
+
return $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3094
|
+
return typeof t;
|
|
3095
|
+
} : function(t) {
|
|
3096
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3097
|
+
}, $e(e);
|
|
3098
|
+
}
|
|
3099
|
+
function Dd(e, t) {
|
|
3100
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3101
|
+
}
|
|
3102
|
+
function Ld(e, t) {
|
|
3103
|
+
for (var r = 0; r < t.length; r++) {
|
|
3104
|
+
var n = t[r];
|
|
3105
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, jd(n.key), n);
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
function Md(e, t, r) {
|
|
3109
|
+
return t && Ld(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3110
|
+
}
|
|
3111
|
+
function jd(e) {
|
|
3112
|
+
var t = kd(e, "string");
|
|
3113
|
+
return $e(t) == "symbol" ? t : t + "";
|
|
3114
|
+
}
|
|
3115
|
+
function kd(e, t) {
|
|
3116
|
+
if ($e(e) != "object" || !e) return e;
|
|
3117
|
+
var r = e[Symbol.toPrimitive];
|
|
3118
|
+
if (r !== void 0) {
|
|
3119
|
+
var n = r.call(e, t);
|
|
3120
|
+
if ($e(n) != "object") return n;
|
|
3121
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3122
|
+
}
|
|
3123
|
+
return String(e);
|
|
3124
|
+
}
|
|
3125
|
+
var Gd = /* @__PURE__ */ (function() {
|
|
3126
|
+
function e(t) {
|
|
3127
|
+
Dd(this, e), this.matchTree = new wd().parse(t);
|
|
3128
|
+
}
|
|
3129
|
+
return Md(e, [{
|
|
3130
|
+
key: "match",
|
|
3131
|
+
value: function(r) {
|
|
3132
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.allowOverflow;
|
|
3133
|
+
if (!r)
|
|
3134
|
+
throw new Error("String is required");
|
|
3135
|
+
var d = et(r.split(""), this.matchTree, !0);
|
|
3136
|
+
if (d && d.match && delete d.matchedChars, !(d && d.overflow && !i))
|
|
3137
|
+
return d;
|
|
3138
|
+
}
|
|
3139
|
+
}]);
|
|
3140
|
+
})();
|
|
3141
|
+
function et(e, t, r) {
|
|
3142
|
+
if (typeof t == "string") {
|
|
3143
|
+
var n = e.join("");
|
|
3144
|
+
return t.indexOf(n) === 0 ? e.length === t.length ? {
|
|
3145
|
+
match: !0,
|
|
3146
|
+
matchedChars: e
|
|
3147
|
+
} : {
|
|
3148
|
+
partialMatch: !0
|
|
3149
|
+
// matchedChars: characters
|
|
3150
|
+
} : n.indexOf(t) === 0 ? r && e.length > t.length ? {
|
|
3151
|
+
overflow: !0
|
|
3152
|
+
} : {
|
|
3153
|
+
match: !0,
|
|
3154
|
+
matchedChars: e.slice(0, t.length)
|
|
3155
|
+
} : void 0;
|
|
3156
|
+
}
|
|
3157
|
+
if (Array.isArray(t)) {
|
|
3158
|
+
for (var i = e.slice(), d = 0; d < t.length; ) {
|
|
3159
|
+
var a = t[d], o = et(i, a, r && d === t.length - 1);
|
|
3160
|
+
if (o) {
|
|
3161
|
+
if (o.overflow)
|
|
3162
|
+
return o;
|
|
3163
|
+
if (o.match) {
|
|
3164
|
+
if (i = i.slice(o.matchedChars.length), i.length === 0)
|
|
3165
|
+
return d === t.length - 1 ? {
|
|
3166
|
+
match: !0,
|
|
3167
|
+
matchedChars: e
|
|
3168
|
+
} : {
|
|
3169
|
+
partialMatch: !0
|
|
3170
|
+
// matchedChars: characters
|
|
3171
|
+
};
|
|
3172
|
+
} else {
|
|
3173
|
+
if (o.partialMatch)
|
|
3174
|
+
return {
|
|
3175
|
+
partialMatch: !0
|
|
3176
|
+
// matchedChars: characters
|
|
3177
|
+
};
|
|
3178
|
+
throw new Error(`Unsupported match result:
|
|
3179
|
+
`.concat(JSON.stringify(o, null, 2)));
|
|
3180
|
+
}
|
|
3181
|
+
} else return;
|
|
3182
|
+
d++;
|
|
3183
|
+
}
|
|
3184
|
+
return r ? {
|
|
3185
|
+
overflow: !0
|
|
3186
|
+
} : {
|
|
3187
|
+
match: !0,
|
|
3188
|
+
matchedChars: e.slice(0, e.length - i.length)
|
|
3189
|
+
};
|
|
3190
|
+
}
|
|
3191
|
+
switch (t.op) {
|
|
3192
|
+
case "|":
|
|
3193
|
+
for (var u, $ = Jt(t.args), l; !(l = $()).done; ) {
|
|
3194
|
+
var y = l.value, g = et(e, y, r);
|
|
3195
|
+
if (g) {
|
|
3196
|
+
if (g.overflow)
|
|
3197
|
+
return g;
|
|
3198
|
+
if (g.match)
|
|
3199
|
+
return {
|
|
3200
|
+
match: !0,
|
|
3201
|
+
matchedChars: g.matchedChars
|
|
3202
|
+
};
|
|
3203
|
+
if (g.partialMatch)
|
|
3204
|
+
u = !0;
|
|
3205
|
+
else
|
|
3206
|
+
throw new Error(`Unsupported match result:
|
|
3207
|
+
`.concat(JSON.stringify(g, null, 2)));
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
return u ? {
|
|
3211
|
+
partialMatch: !0
|
|
3212
|
+
// matchedChars: ...
|
|
3213
|
+
} : void 0;
|
|
3214
|
+
case "[]":
|
|
3215
|
+
for (var v = Jt(t.args), C; !(C = v()).done; ) {
|
|
3216
|
+
var b = C.value;
|
|
3217
|
+
if (e[0] === b)
|
|
3218
|
+
return e.length === 1 ? {
|
|
3219
|
+
match: !0,
|
|
3220
|
+
matchedChars: e
|
|
3221
|
+
} : r ? {
|
|
3222
|
+
overflow: !0
|
|
3223
|
+
} : {
|
|
3224
|
+
match: !0,
|
|
3225
|
+
matchedChars: [b]
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
return;
|
|
3229
|
+
/* istanbul ignore next */
|
|
3230
|
+
default:
|
|
3231
|
+
throw new Error("Unsupported instruction tree: ".concat(t));
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
function le(e) {
|
|
3235
|
+
"@babel/helpers - typeof";
|
|
3236
|
+
return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3237
|
+
return typeof t;
|
|
3238
|
+
} : function(t) {
|
|
3239
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3240
|
+
}, le(e);
|
|
3241
|
+
}
|
|
3242
|
+
function Qt(e, t) {
|
|
3243
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3244
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
3245
|
+
if (Array.isArray(e) || (r = Bd(e)) || t) {
|
|
3246
|
+
r && (e = r);
|
|
3247
|
+
var n = 0;
|
|
3248
|
+
return function() {
|
|
3249
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
3250
|
+
};
|
|
3251
|
+
}
|
|
3252
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3253
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3254
|
+
}
|
|
3255
|
+
function Bd(e, t) {
|
|
3256
|
+
if (e) {
|
|
3257
|
+
if (typeof e == "string") return er(e, t);
|
|
3258
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
3259
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? er(e, t) : void 0;
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
function er(e, t) {
|
|
3263
|
+
(t == null || t > e.length) && (t = e.length);
|
|
3264
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
3265
|
+
return n;
|
|
3266
|
+
}
|
|
3267
|
+
function Ud(e, t) {
|
|
3268
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3269
|
+
}
|
|
3270
|
+
function Wd(e, t) {
|
|
3271
|
+
for (var r = 0; r < t.length; r++) {
|
|
3272
|
+
var n = t[r];
|
|
3273
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Kd(n.key), n);
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
function Hd(e, t, r) {
|
|
3277
|
+
return t && Wd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3278
|
+
}
|
|
3279
|
+
function Kd(e) {
|
|
3280
|
+
var t = Vd(e, "string");
|
|
3281
|
+
return le(t) == "symbol" ? t : t + "";
|
|
3282
|
+
}
|
|
3283
|
+
function Vd(e, t) {
|
|
3284
|
+
if (le(e) != "object" || !e) return e;
|
|
3285
|
+
var r = e[Symbol.toPrimitive];
|
|
3286
|
+
if (r !== void 0) {
|
|
3287
|
+
var n = r.call(e, t);
|
|
3288
|
+
if (le(n) != "object") return n;
|
|
3289
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3290
|
+
}
|
|
3291
|
+
return String(e);
|
|
3292
|
+
}
|
|
3293
|
+
var tt = "9", Yd = 15, qd = pe(tt, Yd), Xd = /[- ]/, Zd = function() {
|
|
3294
|
+
return /\[([^\[\]])*\]/g;
|
|
3295
|
+
}, Jd = function() {
|
|
3296
|
+
return /\d(?=[^,}][^,}])/g;
|
|
3297
|
+
}, zd = new RegExp("[" + B + "]*\\$1[" + B + "]*(\\$\\d[" + B + "]*)*$"), tr = 3, Qd = /* @__PURE__ */ (function() {
|
|
3298
|
+
function e(t) {
|
|
3299
|
+
t.state;
|
|
3300
|
+
var r = t.metadata;
|
|
3301
|
+
Ud(this, e), this.metadata = r, this.resetFormat();
|
|
3302
|
+
}
|
|
3303
|
+
return Hd(e, [{
|
|
3304
|
+
key: "resetFormat",
|
|
3305
|
+
value: function() {
|
|
3306
|
+
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
3307
|
+
}
|
|
3308
|
+
}, {
|
|
3309
|
+
key: "reset",
|
|
3310
|
+
value: function(r, n) {
|
|
3311
|
+
this.resetFormat(), r ? (this.isNANP = r.callingCode() === "1", this.matchingFormats = r.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* Formats an updated phone number.
|
|
3315
|
+
* @param {string} nextDigits — Additional phone number digits.
|
|
3316
|
+
* @param {object} state — `AsYouType` state.
|
|
3317
|
+
* @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
|
|
3318
|
+
*/
|
|
3319
|
+
}, {
|
|
3320
|
+
key: "format",
|
|
3321
|
+
value: function(r, n) {
|
|
3322
|
+
var i = this;
|
|
3323
|
+
if (Pd(n.nationalSignificantNumber, n.country, this.metadata))
|
|
3324
|
+
for (var d = Qt(this.matchingFormats), a; !(a = d()).done; ) {
|
|
3325
|
+
var o = a.value, u = Cd(n, o, {
|
|
3326
|
+
metadata: this.metadata,
|
|
3327
|
+
shouldTryNationalPrefixFormattingRule: function(l) {
|
|
3328
|
+
return i.shouldTryNationalPrefixFormattingRule(l, {
|
|
3329
|
+
international: n.international,
|
|
3330
|
+
nationalPrefix: n.nationalPrefix
|
|
3331
|
+
});
|
|
3332
|
+
},
|
|
3333
|
+
getSeparatorAfterNationalPrefix: function(l) {
|
|
3334
|
+
return i.getSeparatorAfterNationalPrefix(l);
|
|
3335
|
+
}
|
|
3336
|
+
});
|
|
3337
|
+
if (u)
|
|
3338
|
+
return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, G), n), this.populatedNationalNumberTemplate = u, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(G), u;
|
|
3339
|
+
}
|
|
3340
|
+
return this.formatNationalNumberWithNextDigits(r, n);
|
|
3341
|
+
}
|
|
3342
|
+
// Formats the next phone number digits.
|
|
3343
|
+
}, {
|
|
3344
|
+
key: "formatNationalNumberWithNextDigits",
|
|
3345
|
+
value: function(r, n) {
|
|
3346
|
+
var i = this.chosenFormat, d = this.chooseFormat(n);
|
|
3347
|
+
if (d)
|
|
3348
|
+
return d === i ? this.formatNextNationalNumberDigits(r) : this.formatNextNationalNumberDigits(n.getNationalDigits());
|
|
3349
|
+
}
|
|
3350
|
+
}, {
|
|
3351
|
+
key: "narrowDownMatchingFormats",
|
|
3352
|
+
value: function(r) {
|
|
3353
|
+
var n = this, i = r.nationalSignificantNumber, d = r.nationalPrefix, a = r.international, o = i, u = o.length - tr;
|
|
3354
|
+
u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function($) {
|
|
3355
|
+
return n.formatSuits($, a, d) && n.formatMatches($, o, u);
|
|
3356
|
+
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
3357
|
+
}
|
|
3358
|
+
}, {
|
|
3359
|
+
key: "formatSuits",
|
|
3360
|
+
value: function(r, n, i) {
|
|
3361
|
+
return !(i && !r.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
|
|
3362
|
+
!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !i && r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
|
|
3363
|
+
}
|
|
3364
|
+
}, {
|
|
3365
|
+
key: "formatMatches",
|
|
3366
|
+
value: function(r, n, i) {
|
|
3367
|
+
var d = r.leadingDigitsPatterns().length;
|
|
3368
|
+
if (d === 0)
|
|
3369
|
+
return !0;
|
|
3370
|
+
i = Math.min(i, d - 1);
|
|
3371
|
+
var a = r.leadingDigitsPatterns()[i];
|
|
3372
|
+
if (n.length < tr)
|
|
3373
|
+
try {
|
|
3374
|
+
return new Gd(a).match(n, {
|
|
3375
|
+
allowOverflow: !0
|
|
3376
|
+
}) !== void 0;
|
|
3377
|
+
} catch (o) {
|
|
3378
|
+
return console.error(o), !0;
|
|
3379
|
+
}
|
|
3380
|
+
return new RegExp("^(".concat(a, ")")).test(n);
|
|
3381
|
+
}
|
|
3382
|
+
}, {
|
|
3383
|
+
key: "getFormatFormat",
|
|
3384
|
+
value: function(r, n) {
|
|
3385
|
+
return n ? r.internationalFormat() : r.format();
|
|
3386
|
+
}
|
|
3387
|
+
}, {
|
|
3388
|
+
key: "chooseFormat",
|
|
3389
|
+
value: function(r) {
|
|
3390
|
+
for (var n = this, i = function() {
|
|
3391
|
+
var $ = o.value;
|
|
3392
|
+
return n.chosenFormat === $ ? 0 : zd.test(n.getFormatFormat($, r.international)) ? n.createTemplateForFormat($, r) ? (n.chosenFormat = $, 0) : (n.matchingFormats = n.matchingFormats.filter(function(l) {
|
|
3393
|
+
return l !== $;
|
|
3394
|
+
}), 1) : 1;
|
|
3395
|
+
}, d, a = Qt(this.matchingFormats.slice()), o; !(o = a()).done && (d = i(), d !== 0); )
|
|
3396
|
+
;
|
|
3397
|
+
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
3398
|
+
}
|
|
3399
|
+
}, {
|
|
3400
|
+
key: "createTemplateForFormat",
|
|
3401
|
+
value: function(r, n) {
|
|
3402
|
+
if (!(r.pattern().indexOf("|") >= 0)) {
|
|
3403
|
+
var i = this.getTemplateForFormat(r, n);
|
|
3404
|
+
if (i)
|
|
3405
|
+
return this.setNationalNumberTemplate(i, n), !0;
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
}, {
|
|
3409
|
+
key: "getSeparatorAfterNationalPrefix",
|
|
3410
|
+
value: function(r) {
|
|
3411
|
+
return this.isNANP || r && r.nationalPrefixFormattingRule() && Xd.test(r.nationalPrefixFormattingRule()) ? " " : "";
|
|
3412
|
+
}
|
|
3413
|
+
}, {
|
|
3414
|
+
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
3415
|
+
value: function(r, n) {
|
|
3416
|
+
var i = r.IDDPrefix, d = r.missingPlus;
|
|
3417
|
+
return i ? n && n.spacing === !1 ? i : i + " " : d ? "" : "+";
|
|
3418
|
+
}
|
|
3419
|
+
}, {
|
|
3420
|
+
key: "getTemplate",
|
|
3421
|
+
value: function(r) {
|
|
3422
|
+
if (this.template) {
|
|
3423
|
+
for (var n = -1, i = 0, d = r.international ? this.getInternationalPrefixBeforeCountryCallingCode(r, {
|
|
3424
|
+
spacing: !1
|
|
3425
|
+
}) : ""; i < d.length + r.getDigitsWithoutInternationalPrefix().length; )
|
|
3426
|
+
n = this.template.indexOf(G, n + 1), i++;
|
|
3427
|
+
return Xt(this.template, n + 1);
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
}, {
|
|
3431
|
+
key: "setNationalNumberTemplate",
|
|
3432
|
+
value: function(r, n) {
|
|
3433
|
+
this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, G) + pe(G, n.callingCode.length) + " " + r : this.template = r;
|
|
3434
|
+
}
|
|
3435
|
+
/**
|
|
3436
|
+
* Generates formatting template for a national phone number,
|
|
3437
|
+
* optionally containing a national prefix, for a format.
|
|
3438
|
+
* @param {Format} format
|
|
3439
|
+
* @param {string} nationalPrefix
|
|
3440
|
+
* @return {string}
|
|
3441
|
+
*/
|
|
3442
|
+
}, {
|
|
3443
|
+
key: "getTemplateForFormat",
|
|
3444
|
+
value: function(r, n) {
|
|
3445
|
+
var i = n.nationalSignificantNumber, d = n.international, a = n.nationalPrefix, o = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, u = r.pattern();
|
|
3446
|
+
u = u.replace(Zd(), "\\d").replace(Jd(), "\\d");
|
|
3447
|
+
var $ = qd.match(u)[0];
|
|
3448
|
+
if (!(i.length > $.length)) {
|
|
3449
|
+
var l = new RegExp("^" + u + "$"), y = i.replace(/\d/g, tt);
|
|
3450
|
+
l.test(y) && ($ = y);
|
|
3451
|
+
var g = this.getFormatFormat(r, d), v;
|
|
3452
|
+
if (this.shouldTryNationalPrefixFormattingRule(r, {
|
|
3453
|
+
international: d,
|
|
3454
|
+
nationalPrefix: a
|
|
3455
|
+
})) {
|
|
3456
|
+
var C = g.replace(hr, r.nationalPrefixFormattingRule());
|
|
3457
|
+
if (Pe(r.nationalPrefixFormattingRule()) === (a || "") + Pe("$1") && (g = C, v = !0, a))
|
|
3458
|
+
for (var b = a.length; b > 0; )
|
|
3459
|
+
g = g.replace(/\d/, G), b--;
|
|
3460
|
+
}
|
|
3461
|
+
var m = $.replace(new RegExp(u), g).replace(new RegExp(tt, "g"), G);
|
|
3462
|
+
return v || (o ? m = pe(G, o.length) + " " + m : a && (m = pe(G, a.length) + this.getSeparatorAfterNationalPrefix(r) + m)), d && (m = yr(m)), m;
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
}, {
|
|
3466
|
+
key: "formatNextNationalNumberDigits",
|
|
3467
|
+
value: function(r) {
|
|
3468
|
+
var n = bd(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
|
|
3469
|
+
if (!n) {
|
|
3470
|
+
this.resetFormat();
|
|
3471
|
+
return;
|
|
3472
|
+
}
|
|
3473
|
+
return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], Xt(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
3474
|
+
}
|
|
3475
|
+
}, {
|
|
3476
|
+
key: "shouldTryNationalPrefixFormattingRule",
|
|
3477
|
+
value: function(r, n) {
|
|
3478
|
+
var i = n.international, d = n.nationalPrefix;
|
|
3479
|
+
if (r.nationalPrefixFormattingRule()) {
|
|
3480
|
+
var a = r.usesNationalPrefix();
|
|
3481
|
+
if (a && d || !a && !i)
|
|
3482
|
+
return !0;
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
}]);
|
|
3486
|
+
})();
|
|
3487
|
+
function fe(e) {
|
|
3488
|
+
"@babel/helpers - typeof";
|
|
3489
|
+
return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3490
|
+
return typeof t;
|
|
3491
|
+
} : function(t) {
|
|
3492
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3493
|
+
}, fe(e);
|
|
3494
|
+
}
|
|
3495
|
+
function Nr(e, t) {
|
|
3496
|
+
return na(e) || ra(e, t) || ta(e, t) || ea();
|
|
3497
|
+
}
|
|
3498
|
+
function ea() {
|
|
3499
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3500
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3501
|
+
}
|
|
3502
|
+
function ta(e, t) {
|
|
3503
|
+
if (e) {
|
|
3504
|
+
if (typeof e == "string") return rr(e, t);
|
|
3505
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
3506
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? rr(e, t) : void 0;
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
function rr(e, t) {
|
|
3510
|
+
(t == null || t > e.length) && (t = e.length);
|
|
3511
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
3512
|
+
return n;
|
|
3513
|
+
}
|
|
3514
|
+
function ra(e, t) {
|
|
3515
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3516
|
+
if (r != null) {
|
|
3517
|
+
var n, i, d, a, o = [], u = !0, $ = !1;
|
|
3518
|
+
try {
|
|
3519
|
+
if (d = (r = r.call(e)).next, t !== 0) for (; !(u = (n = d.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
3520
|
+
} catch (l) {
|
|
3521
|
+
$ = !0, i = l;
|
|
3522
|
+
} finally {
|
|
3523
|
+
try {
|
|
3524
|
+
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
3525
|
+
} finally {
|
|
3526
|
+
if ($) throw i;
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
return o;
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
function na(e) {
|
|
3533
|
+
if (Array.isArray(e)) return e;
|
|
3534
|
+
}
|
|
3535
|
+
function ia(e, t) {
|
|
3536
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3537
|
+
}
|
|
3538
|
+
function da(e, t) {
|
|
3539
|
+
for (var r = 0; r < t.length; r++) {
|
|
3540
|
+
var n = t[r];
|
|
3541
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, oa(n.key), n);
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
function aa(e, t, r) {
|
|
3545
|
+
return t && da(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3546
|
+
}
|
|
3547
|
+
function oa(e) {
|
|
3548
|
+
var t = ua(e, "string");
|
|
3549
|
+
return fe(t) == "symbol" ? t : t + "";
|
|
3550
|
+
}
|
|
3551
|
+
function ua(e, t) {
|
|
3552
|
+
if (fe(e) != "object" || !e) return e;
|
|
3553
|
+
var r = e[Symbol.toPrimitive];
|
|
3554
|
+
if (r !== void 0) {
|
|
3555
|
+
var n = r.call(e, t);
|
|
3556
|
+
if (fe(n) != "object") return n;
|
|
3557
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3558
|
+
}
|
|
3559
|
+
return String(e);
|
|
3560
|
+
}
|
|
3561
|
+
var $a = "[" + B + M + "]+", la = new RegExp("^" + $a + "$", "i"), fa = "(?:[" + Te + "][" + B + M + "]*|[" + B + M + "]+)", sa = new RegExp("[^" + B + M + "]+.*$"), ca = /[^\d\[\]]/, ya = /* @__PURE__ */ (function() {
|
|
3562
|
+
function e(t) {
|
|
3563
|
+
var r = t.defaultCountry, n = t.defaultCallingCode, i = t.metadata, d = t.onNationalSignificantNumberChange;
|
|
3564
|
+
ia(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = i, this.onNationalSignificantNumberChange = d;
|
|
3565
|
+
}
|
|
3566
|
+
return aa(e, [{
|
|
3567
|
+
key: "input",
|
|
3568
|
+
value: function(r, n) {
|
|
3569
|
+
var i = ma(r), d = Nr(i, 2), a = d[0], o = d[1], u = Pe(a), $;
|
|
3570
|
+
return o && (n.digits || (n.startInternationalNumber(void 0, void 0), u || ($ = !0))), u && this.inputDigits(u, n), {
|
|
3571
|
+
digits: u,
|
|
3572
|
+
justLeadingPlus: $
|
|
3573
|
+
};
|
|
3574
|
+
}
|
|
3575
|
+
/**
|
|
3576
|
+
* Inputs "next" phone number digits.
|
|
3577
|
+
* @param {string} digits
|
|
3578
|
+
* @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
|
|
3579
|
+
*/
|
|
3580
|
+
}, {
|
|
3581
|
+
key: "inputDigits",
|
|
3582
|
+
value: function(r, n) {
|
|
3583
|
+
var i = n.digits, d = i.length < 3 && i.length + r.length >= 3;
|
|
3584
|
+
if (n.appendDigits(r), d && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
|
|
3585
|
+
if (!this.extractCountryCallingCode(n))
|
|
3586
|
+
return;
|
|
3587
|
+
} else
|
|
3588
|
+
n.appendNationalSignificantNumberDigits(r);
|
|
3589
|
+
n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
|
|
3590
|
+
return n.update(a);
|
|
3591
|
+
});
|
|
3592
|
+
}
|
|
3593
|
+
}, {
|
|
3594
|
+
key: "isWaitingForCountryCallingCode",
|
|
3595
|
+
value: function(r) {
|
|
3596
|
+
var n = r.international, i = r.callingCode;
|
|
3597
|
+
return n && !i;
|
|
3598
|
+
}
|
|
3599
|
+
// Extracts a country calling code from a number
|
|
3600
|
+
// being entered in internatonal format.
|
|
3601
|
+
}, {
|
|
3602
|
+
key: "extractCountryCallingCode",
|
|
3603
|
+
value: function(r) {
|
|
3604
|
+
var n = $t("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), i = n.countryCallingCode, d = n.number;
|
|
3605
|
+
if (i)
|
|
3606
|
+
return r.setCallingCode(i), r.update({
|
|
3607
|
+
nationalSignificantNumber: d
|
|
3608
|
+
}), !0;
|
|
3609
|
+
}
|
|
3610
|
+
}, {
|
|
3611
|
+
key: "reset",
|
|
3612
|
+
value: function(r) {
|
|
3613
|
+
if (r) {
|
|
3614
|
+
this.hasSelectedNumberingPlan = !0;
|
|
3615
|
+
var n = r._nationalPrefixForParsing();
|
|
3616
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = n && ca.test(n);
|
|
3617
|
+
} else
|
|
3618
|
+
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
3619
|
+
}
|
|
3620
|
+
/**
|
|
3621
|
+
* Extracts a national (significant) number from user input.
|
|
3622
|
+
* Google's library is different in that it only applies `national_prefix_for_parsing`
|
|
3623
|
+
* and doesn't apply `national_prefix_transform_rule` after that.
|
|
3624
|
+
* https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
|
|
3625
|
+
* @return {boolean} [extracted]
|
|
3626
|
+
*/
|
|
3627
|
+
}, {
|
|
3628
|
+
key: "extractNationalSignificantNumber",
|
|
3629
|
+
value: function(r, n) {
|
|
3630
|
+
if (this.hasSelectedNumberingPlan) {
|
|
3631
|
+
var i = Ye(r, this.metadata), d = i.nationalPrefix, a = i.nationalNumber, o = i.carrierCode;
|
|
3632
|
+
if (a !== r)
|
|
3633
|
+
return this.onExtractedNationalNumber(d, o, a, r, n), !0;
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
/**
|
|
3637
|
+
* In Google's code this function is called "attempt to extract longer NDD".
|
|
3638
|
+
* "Some national prefixes are a substring of others", they say.
|
|
3639
|
+
* @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
|
|
3640
|
+
*/
|
|
3641
|
+
}, {
|
|
3642
|
+
key: "extractAnotherNationalSignificantNumber",
|
|
3643
|
+
value: function(r, n, i) {
|
|
3644
|
+
if (!this.hasExtractedNationalSignificantNumber)
|
|
3645
|
+
return this.extractNationalSignificantNumber(r, i);
|
|
3646
|
+
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
3647
|
+
var d = Ye(r, this.metadata), a = d.nationalPrefix, o = d.nationalNumber, u = d.carrierCode;
|
|
3648
|
+
if (o !== n)
|
|
3649
|
+
return this.onExtractedNationalNumber(a, u, o, r, i), !0;
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
}, {
|
|
3653
|
+
key: "onExtractedNationalNumber",
|
|
3654
|
+
value: function(r, n, i, d, a) {
|
|
3655
|
+
var o = !1, u, $ = d.lastIndexOf(i);
|
|
3656
|
+
if ($ < 0 || $ !== d.length - i.length)
|
|
3657
|
+
o = !0;
|
|
3658
|
+
else {
|
|
3659
|
+
var l = d.slice(0, $);
|
|
3660
|
+
l && l !== r && (u = l);
|
|
3661
|
+
}
|
|
3662
|
+
a({
|
|
3663
|
+
nationalPrefix: r,
|
|
3664
|
+
carrierCode: n,
|
|
3665
|
+
nationalSignificantNumber: i,
|
|
3666
|
+
nationalSignificantNumberIsModified: o,
|
|
3667
|
+
prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: u
|
|
3668
|
+
}), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
|
|
3669
|
+
}
|
|
3670
|
+
}, {
|
|
3671
|
+
key: "reExtractNationalSignificantNumber",
|
|
3672
|
+
value: function(r) {
|
|
3673
|
+
if (this.extractAnotherNationalSignificantNumber(r.getNationalDigits(), r.nationalSignificantNumber, function(n) {
|
|
3674
|
+
return r.update(n);
|
|
3675
|
+
}))
|
|
3676
|
+
return !0;
|
|
3677
|
+
if (this.extractIddPrefix(r))
|
|
3678
|
+
return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
|
|
3679
|
+
if (this.fixMissingPlus(r))
|
|
3680
|
+
return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
|
|
3681
|
+
}
|
|
3682
|
+
}, {
|
|
3683
|
+
key: "extractIddPrefix",
|
|
3684
|
+
value: function(r) {
|
|
3685
|
+
var n = r.international, i = r.IDDPrefix, d = r.digits;
|
|
3686
|
+
if (r.nationalSignificantNumber, !(n || i)) {
|
|
3687
|
+
var a = fr(d, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
3688
|
+
if (a !== void 0 && a !== d)
|
|
3689
|
+
return r.update({
|
|
3690
|
+
IDDPrefix: d.slice(0, d.length - a.length)
|
|
3691
|
+
}), this.startInternationalNumber(r, {
|
|
3692
|
+
country: void 0,
|
|
3693
|
+
callingCode: void 0
|
|
3694
|
+
}), !0;
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
}, {
|
|
3698
|
+
key: "fixMissingPlus",
|
|
3699
|
+
value: function(r) {
|
|
3700
|
+
if (!r.international) {
|
|
3701
|
+
var n = cr(r.digits, r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), i = n.countryCallingCode;
|
|
3702
|
+
if (i)
|
|
3703
|
+
return r.update({
|
|
3704
|
+
missingPlus: !0
|
|
3705
|
+
}), this.startInternationalNumber(r, {
|
|
3706
|
+
country: r.country,
|
|
3707
|
+
callingCode: i
|
|
3708
|
+
}), !0;
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
}, {
|
|
3712
|
+
key: "startInternationalNumber",
|
|
3713
|
+
value: function(r, n) {
|
|
3714
|
+
var i = n.country, d = n.callingCode;
|
|
3715
|
+
r.startInternationalNumber(i, d), r.nationalSignificantNumber && (r.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
|
|
3716
|
+
}
|
|
3717
|
+
}, {
|
|
3718
|
+
key: "extractCallingCodeAndNationalSignificantNumber",
|
|
3719
|
+
value: function(r) {
|
|
3720
|
+
this.extractCountryCallingCode(r) && this.extractNationalSignificantNumber(r.getNationalDigits(), function(n) {
|
|
3721
|
+
return r.update(n);
|
|
3722
|
+
});
|
|
3723
|
+
}
|
|
3724
|
+
}]);
|
|
3725
|
+
})();
|
|
3726
|
+
function ha(e) {
|
|
3727
|
+
var t = e.search(fa);
|
|
3728
|
+
if (!(t < 0)) {
|
|
3729
|
+
e = e.slice(t);
|
|
3730
|
+
var r;
|
|
3731
|
+
return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(sa, ""), r && (e = "+" + e), e;
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
function ga(e) {
|
|
3735
|
+
var t = ha(e) || "";
|
|
3736
|
+
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
3737
|
+
}
|
|
3738
|
+
function ma(e) {
|
|
3739
|
+
var t = ga(e), r = Nr(t, 2), n = r[0], i = r[1];
|
|
3740
|
+
return la.test(n) || (n = ""), [n, i];
|
|
3741
|
+
}
|
|
3742
|
+
function se(e) {
|
|
3743
|
+
"@babel/helpers - typeof";
|
|
3744
|
+
return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3745
|
+
return typeof t;
|
|
3746
|
+
} : function(t) {
|
|
3747
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3748
|
+
}, se(e);
|
|
3749
|
+
}
|
|
3750
|
+
function va(e, t) {
|
|
3751
|
+
return Pa(e) || Ca(e, t) || ba(e, t) || pa();
|
|
3752
|
+
}
|
|
3753
|
+
function pa() {
|
|
3754
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3755
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3756
|
+
}
|
|
3757
|
+
function ba(e, t) {
|
|
3758
|
+
if (e) {
|
|
3759
|
+
if (typeof e == "string") return nr(e, t);
|
|
3760
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
3761
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? nr(e, t) : void 0;
|
|
3762
|
+
}
|
|
3763
|
+
}
|
|
3764
|
+
function nr(e, t) {
|
|
3765
|
+
(t == null || t > e.length) && (t = e.length);
|
|
3766
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
3767
|
+
return n;
|
|
3768
|
+
}
|
|
3769
|
+
function Ca(e, t) {
|
|
3770
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3771
|
+
if (r != null) {
|
|
3772
|
+
var n, i, d, a, o = [], u = !0, $ = !1;
|
|
3773
|
+
try {
|
|
3774
|
+
if (d = (r = r.call(e)).next, t !== 0) for (; !(u = (n = d.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
3775
|
+
} catch (l) {
|
|
3776
|
+
$ = !0, i = l;
|
|
3777
|
+
} finally {
|
|
3778
|
+
try {
|
|
3779
|
+
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
3780
|
+
} finally {
|
|
3781
|
+
if ($) throw i;
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
return o;
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
function Pa(e) {
|
|
3788
|
+
if (Array.isArray(e)) return e;
|
|
3789
|
+
}
|
|
3790
|
+
function Na(e, t) {
|
|
3791
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3792
|
+
}
|
|
3793
|
+
function Ea(e, t) {
|
|
3794
|
+
for (var r = 0; r < t.length; r++) {
|
|
3795
|
+
var n = t[r];
|
|
3796
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ta(n.key), n);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
function Sa(e, t, r) {
|
|
3800
|
+
return t && Ea(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3801
|
+
}
|
|
3802
|
+
function Ta(e) {
|
|
3803
|
+
var t = Oa(e, "string");
|
|
3804
|
+
return se(t) == "symbol" ? t : t + "";
|
|
3805
|
+
}
|
|
3806
|
+
function Oa(e, t) {
|
|
3807
|
+
if (se(e) != "object" || !e) return e;
|
|
3808
|
+
var r = e[Symbol.toPrimitive];
|
|
3809
|
+
if (r !== void 0) {
|
|
3810
|
+
var n = r.call(e, t);
|
|
3811
|
+
if (se(n) != "object") return n;
|
|
3812
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3813
|
+
}
|
|
3814
|
+
return String(e);
|
|
3815
|
+
}
|
|
3816
|
+
var Er = /* @__PURE__ */ (function() {
|
|
3817
|
+
function e(t, r) {
|
|
3818
|
+
Na(this, e), this.metadata = new D(r);
|
|
3819
|
+
var n = this.getCountryAndCallingCode(t), i = va(n, 2), d = i[0], a = i[1];
|
|
3820
|
+
this.defaultCountry = d, this.defaultCallingCode = a, this.reset();
|
|
3821
|
+
}
|
|
3822
|
+
return Sa(e, [{
|
|
3823
|
+
key: "getCountryAndCallingCode",
|
|
3824
|
+
value: function(r) {
|
|
3825
|
+
var n, i;
|
|
3826
|
+
return r && (q(r) ? (n = r.defaultCountry, i = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), [n, i];
|
|
3827
|
+
}
|
|
3828
|
+
/**
|
|
3829
|
+
* Inputs "next" phone number characters.
|
|
3830
|
+
* @param {string} text
|
|
3831
|
+
* @return {string} Formatted phone number characters that have been input so far.
|
|
3832
|
+
*/
|
|
3833
|
+
}, {
|
|
3834
|
+
key: "input",
|
|
3835
|
+
value: function(r) {
|
|
3836
|
+
var n = this.parser.input(r, this.state), i = n.digits, d = n.justLeadingPlus;
|
|
3837
|
+
if (d)
|
|
3838
|
+
this.formattedOutput = "+";
|
|
3839
|
+
else if (i) {
|
|
3840
|
+
this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
|
|
3841
|
+
var a;
|
|
3842
|
+
if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(i, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
|
|
3843
|
+
this.determineTheCountryIfNeeded();
|
|
3844
|
+
var o = this.state.getNationalDigits();
|
|
3845
|
+
o && (a = this.formatter.format(o, this.state));
|
|
3846
|
+
}
|
|
3847
|
+
this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
|
|
3848
|
+
}
|
|
3849
|
+
return this.formattedOutput;
|
|
3850
|
+
}
|
|
3851
|
+
}, {
|
|
3852
|
+
key: "reset",
|
|
3853
|
+
value: function() {
|
|
3854
|
+
var r = this;
|
|
3855
|
+
return this.state = new gd({
|
|
3856
|
+
onCountryChange: function(i) {
|
|
3857
|
+
r.country = i;
|
|
3858
|
+
},
|
|
3859
|
+
onCallingCodeChange: function(i, d) {
|
|
3860
|
+
r.metadata.selectNumberingPlan(d, i), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
|
|
3861
|
+
}
|
|
3862
|
+
}), this.formatter = new Qd({
|
|
3863
|
+
state: this.state,
|
|
3864
|
+
metadata: this.metadata
|
|
3865
|
+
}), this.parser = new ya({
|
|
3866
|
+
defaultCountry: this.defaultCountry,
|
|
3867
|
+
defaultCallingCode: this.defaultCallingCode,
|
|
3868
|
+
metadata: this.metadata,
|
|
3869
|
+
state: this.state,
|
|
3870
|
+
onNationalSignificantNumberChange: function() {
|
|
3871
|
+
r.determineTheCountryIfNeeded(), r.formatter.reset(r.metadata.numberingPlan, r.state);
|
|
3872
|
+
}
|
|
3873
|
+
}), this.state.reset({
|
|
3874
|
+
country: this.defaultCountry,
|
|
3875
|
+
callingCode: this.defaultCallingCode
|
|
3876
|
+
}), this.formattedOutput = "", this;
|
|
3877
|
+
}
|
|
3878
|
+
/**
|
|
3879
|
+
* Returns `true` if the phone number is being input in international format.
|
|
3880
|
+
* In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
|
|
3881
|
+
* @return {boolean}
|
|
3882
|
+
*/
|
|
3883
|
+
}, {
|
|
3884
|
+
key: "isInternational",
|
|
3885
|
+
value: function() {
|
|
3886
|
+
return this.state.international;
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
* Returns the "calling code" part of the phone number when it's being input
|
|
3890
|
+
* in an international format.
|
|
3891
|
+
* If no valid calling code has been entered so far, returns `undefined`.
|
|
3892
|
+
* @return {string} [callingCode]
|
|
3893
|
+
*/
|
|
3894
|
+
}, {
|
|
3895
|
+
key: "getCallingCode",
|
|
3896
|
+
value: function() {
|
|
3897
|
+
if (this.isInternational())
|
|
3898
|
+
return this.state.callingCode;
|
|
3899
|
+
}
|
|
3900
|
+
// A legacy alias.
|
|
3901
|
+
}, {
|
|
3902
|
+
key: "getCountryCallingCode",
|
|
3903
|
+
value: function() {
|
|
3904
|
+
return this.getCallingCode();
|
|
3905
|
+
}
|
|
3906
|
+
/**
|
|
3907
|
+
* Returns a two-letter country code of the phone number.
|
|
3908
|
+
* Returns `undefined` for "non-geographic" phone numbering plans.
|
|
3909
|
+
* Returns `undefined` if no phone number has been input yet.
|
|
3910
|
+
* @return {string} [country]
|
|
3911
|
+
*/
|
|
3912
|
+
}, {
|
|
3913
|
+
key: "getCountry",
|
|
3914
|
+
value: function() {
|
|
3915
|
+
var r = this.state.digits;
|
|
3916
|
+
if (r)
|
|
3917
|
+
return this._getCountry();
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
* Returns a two-letter country code of the phone number.
|
|
3921
|
+
* Returns `undefined` for "non-geographic" phone numbering plans.
|
|
3922
|
+
* @return {string} [country]
|
|
3923
|
+
*/
|
|
3924
|
+
}, {
|
|
3925
|
+
key: "_getCountry",
|
|
3926
|
+
value: function() {
|
|
3927
|
+
var r = this.state.country;
|
|
3928
|
+
return r;
|
|
3929
|
+
}
|
|
3930
|
+
}, {
|
|
3931
|
+
key: "determineTheCountryIfNeeded",
|
|
3932
|
+
value: function() {
|
|
3933
|
+
(!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
|
|
3934
|
+
}
|
|
3935
|
+
// Prepends `+CountryCode ` in case of an international phone number
|
|
3936
|
+
}, {
|
|
3937
|
+
key: "getFullNumber",
|
|
3938
|
+
value: function(r) {
|
|
3939
|
+
var n = this;
|
|
3940
|
+
if (this.isInternational()) {
|
|
3941
|
+
var i = function(o) {
|
|
3942
|
+
return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
|
|
3943
|
+
spacing: !!o
|
|
3944
|
+
}) + o;
|
|
3945
|
+
}, d = this.state.callingCode;
|
|
3946
|
+
return i(d ? r ? "".concat(d, " ").concat(r) : d : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
|
|
3947
|
+
}
|
|
3948
|
+
return r;
|
|
3949
|
+
}
|
|
3950
|
+
}, {
|
|
3951
|
+
key: "getNonFormattedNationalNumberWithPrefix",
|
|
3952
|
+
value: function() {
|
|
3953
|
+
var r = this.state, n = r.nationalSignificantNumber, i = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, d = r.nationalPrefix, a = n, o = i || d;
|
|
3954
|
+
return o && (a = o + a), a;
|
|
3955
|
+
}
|
|
3956
|
+
}, {
|
|
3957
|
+
key: "getNonFormattedNumber",
|
|
3958
|
+
value: function() {
|
|
3959
|
+
var r = this.state.nationalSignificantNumberIsModified;
|
|
3960
|
+
return this.getFullNumber(r ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
|
|
3961
|
+
}
|
|
3962
|
+
}, {
|
|
3963
|
+
key: "getNonFormattedTemplate",
|
|
3964
|
+
value: function() {
|
|
3965
|
+
var r = this.getNonFormattedNumber();
|
|
3966
|
+
if (r)
|
|
3967
|
+
return r.replace(/[\+\d]/g, G);
|
|
3968
|
+
}
|
|
3969
|
+
}, {
|
|
3970
|
+
key: "isCountryCallingCodeAmbiguous",
|
|
3971
|
+
value: function() {
|
|
3972
|
+
var r = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(r);
|
|
3973
|
+
return n && n.length > 1;
|
|
3974
|
+
}
|
|
3975
|
+
// Determines the exact country of the phone number
|
|
3976
|
+
// entered so far based on the country phone code
|
|
3977
|
+
// and the national phone number.
|
|
3978
|
+
}, {
|
|
3979
|
+
key: "determineTheCountry",
|
|
3980
|
+
value: function() {
|
|
3981
|
+
this.state.setCountry(ut(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
3982
|
+
nationalNumber: this.state.nationalSignificantNumber,
|
|
3983
|
+
metadata: this.metadata
|
|
3984
|
+
}));
|
|
3985
|
+
}
|
|
3986
|
+
/**
|
|
3987
|
+
* Returns a E.164 phone number value for the user's input.
|
|
3988
|
+
*
|
|
3989
|
+
* For example, for country `"US"` and input `"(222) 333-4444"`
|
|
3990
|
+
* it will return `"+12223334444"`.
|
|
3991
|
+
*
|
|
3992
|
+
* For international phone number input, it will also auto-correct
|
|
3993
|
+
* some minor errors such as using a national prefix when writing
|
|
3994
|
+
* an international phone number. For example, if the user inputs
|
|
3995
|
+
* `"+44 0 7400 000000"` then it will return an auto-corrected
|
|
3996
|
+
* `"+447400000000"` phone number value.
|
|
3997
|
+
*
|
|
3998
|
+
* Will return `undefined` if no digits have been input,
|
|
3999
|
+
* or when inputting a phone number in national format and no
|
|
4000
|
+
* default country or default "country calling code" have been set.
|
|
4001
|
+
*
|
|
4002
|
+
* @return {string} [value]
|
|
4003
|
+
*/
|
|
4004
|
+
}, {
|
|
4005
|
+
key: "getNumberValue",
|
|
4006
|
+
value: function() {
|
|
4007
|
+
var r = this.state, n = r.digits, i = r.callingCode, d = r.country, a = r.nationalSignificantNumber;
|
|
4008
|
+
if (n) {
|
|
4009
|
+
if (this.isInternational())
|
|
4010
|
+
return i ? "+" + i + a : "+" + n;
|
|
4011
|
+
if (d || i) {
|
|
4012
|
+
var o = d ? this.metadata.countryCallingCode() : i;
|
|
4013
|
+
return "+" + o + a;
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
/**
|
|
4018
|
+
* Returns an instance of `PhoneNumber` class.
|
|
4019
|
+
* Will return `undefined` if no national (significant) number
|
|
4020
|
+
* digits have been entered so far, or if no `defaultCountry` has been
|
|
4021
|
+
* set and the user enters a phone number not in international format.
|
|
4022
|
+
*/
|
|
4023
|
+
}, {
|
|
4024
|
+
key: "getNumber",
|
|
4025
|
+
value: function() {
|
|
4026
|
+
var r = this.state, n = r.nationalSignificantNumber, i = r.carrierCode, d = r.callingCode, a = this._getCountry();
|
|
4027
|
+
if (n && !(!a && !d)) {
|
|
4028
|
+
if (a && a === this.defaultCountry) {
|
|
4029
|
+
var o = new D(this.metadata.metadata);
|
|
4030
|
+
o.selectNumberingPlan(a);
|
|
4031
|
+
var u = o.numberingPlan.callingCode(), $ = this.metadata.getCountryCodesForCallingCode(u);
|
|
4032
|
+
if ($.length > 1) {
|
|
4033
|
+
var l = sr(n, {
|
|
4034
|
+
countries: $,
|
|
4035
|
+
metadata: this.metadata.metadata
|
|
4036
|
+
});
|
|
4037
|
+
l && (a = l);
|
|
4038
|
+
}
|
|
4039
|
+
}
|
|
4040
|
+
var y = new pr(a || d, n, this.metadata.metadata);
|
|
4041
|
+
return i && (y.carrierCode = i), y;
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
/**
|
|
4045
|
+
* Returns `true` if the phone number is "possible".
|
|
4046
|
+
* Is just a shortcut for `PhoneNumber.isPossible()`.
|
|
4047
|
+
* @return {boolean}
|
|
4048
|
+
*/
|
|
4049
|
+
}, {
|
|
4050
|
+
key: "isPossible",
|
|
4051
|
+
value: function() {
|
|
4052
|
+
var r = this.getNumber();
|
|
4053
|
+
return r ? r.isPossible() : !1;
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
* Returns `true` if the phone number is "valid".
|
|
4057
|
+
* Is just a shortcut for `PhoneNumber.isValid()`.
|
|
4058
|
+
* @return {boolean}
|
|
4059
|
+
*/
|
|
4060
|
+
}, {
|
|
4061
|
+
key: "isValid",
|
|
4062
|
+
value: function() {
|
|
4063
|
+
var r = this.getNumber();
|
|
4064
|
+
return r ? r.isValid() : !1;
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4067
|
+
* @deprecated
|
|
4068
|
+
* This method is used in `react-phone-number-input/source/input-control.js`
|
|
4069
|
+
* in versions before `3.0.16`.
|
|
4070
|
+
*/
|
|
4071
|
+
}, {
|
|
4072
|
+
key: "getNationalNumber",
|
|
4073
|
+
value: function() {
|
|
4074
|
+
return this.state.nationalSignificantNumber;
|
|
4075
|
+
}
|
|
4076
|
+
/**
|
|
4077
|
+
* Returns the phone number characters entered by the user.
|
|
4078
|
+
* @return {string}
|
|
4079
|
+
*/
|
|
4080
|
+
}, {
|
|
4081
|
+
key: "getChars",
|
|
4082
|
+
value: function() {
|
|
4083
|
+
return (this.state.international ? "+" : "") + this.state.digits;
|
|
4084
|
+
}
|
|
4085
|
+
/**
|
|
4086
|
+
* Returns the template for the formatted phone number.
|
|
4087
|
+
* @return {string}
|
|
4088
|
+
*/
|
|
4089
|
+
}, {
|
|
4090
|
+
key: "getTemplate",
|
|
4091
|
+
value: function() {
|
|
4092
|
+
return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
|
|
4093
|
+
}
|
|
4094
|
+
}]);
|
|
4095
|
+
})();
|
|
4096
|
+
function xa(e, t, r) {
|
|
4097
|
+
return r || (r = t, t = void 0), new Er(t, r).input(e);
|
|
4098
|
+
}
|
|
4099
|
+
function Sr(e) {
|
|
4100
|
+
var t = e.inputFormat, r = e.country, n = e.metadata;
|
|
4101
|
+
return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(ce(r, n)) : "";
|
|
4102
|
+
}
|
|
4103
|
+
function rt(e, t) {
|
|
4104
|
+
return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
|
|
4105
|
+
}
|
|
4106
|
+
function Aa(e, t, r) {
|
|
4107
|
+
if (!(r && r.ignoreRest)) {
|
|
4108
|
+
var n = function(d) {
|
|
4109
|
+
if (r)
|
|
4110
|
+
switch (d) {
|
|
4111
|
+
case "end":
|
|
4112
|
+
r.ignoreRest = !0;
|
|
4113
|
+
break;
|
|
4114
|
+
}
|
|
4115
|
+
};
|
|
4116
|
+
return Cr(e, t, n);
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
function Tr(e) {
|
|
4120
|
+
var t = e.onKeyDown, r = e.inputFormat;
|
|
4121
|
+
return z(function(n) {
|
|
4122
|
+
if (n.keyCode === Ia && r === "INTERNATIONAL" && n.target instanceof HTMLInputElement && wa(n.target) === _a.length) {
|
|
4123
|
+
n.preventDefault();
|
|
4124
|
+
return;
|
|
4125
|
+
}
|
|
4126
|
+
t && t(n);
|
|
4127
|
+
}, [t, r]);
|
|
4128
|
+
}
|
|
4129
|
+
function wa(e) {
|
|
4130
|
+
return e.selectionStart;
|
|
4131
|
+
}
|
|
4132
|
+
var Ia = 8, _a = "+", Fa = ["onKeyDown", "country", "inputFormat", "metadata", "international", "withCountryCallingCode"];
|
|
4133
|
+
function nt() {
|
|
4134
|
+
return nt = Object.assign ? Object.assign.bind() : function(e) {
|
|
4135
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
4136
|
+
var r = arguments[t];
|
|
4137
|
+
for (var n in r)
|
|
4138
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4139
|
+
}
|
|
4140
|
+
return e;
|
|
4141
|
+
}, nt.apply(this, arguments);
|
|
4142
|
+
}
|
|
4143
|
+
function Ra(e, t) {
|
|
4144
|
+
if (e == null) return {};
|
|
4145
|
+
var r = Da(e, t), n, i;
|
|
4146
|
+
if (Object.getOwnPropertySymbols) {
|
|
4147
|
+
var d = Object.getOwnPropertySymbols(e);
|
|
4148
|
+
for (i = 0; i < d.length; i++)
|
|
4149
|
+
n = d[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
4150
|
+
}
|
|
4151
|
+
return r;
|
|
4152
|
+
}
|
|
4153
|
+
function Da(e, t) {
|
|
4154
|
+
if (e == null) return {};
|
|
4155
|
+
var r = {}, n = Object.keys(e), i, d;
|
|
4156
|
+
for (d = 0; d < n.length; d++)
|
|
4157
|
+
i = n[d], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
4158
|
+
return r;
|
|
4159
|
+
}
|
|
4160
|
+
function La(e) {
|
|
4161
|
+
function t(r, n) {
|
|
4162
|
+
var i = r.onKeyDown, d = r.country, a = r.inputFormat, o = r.metadata, u = o === void 0 ? e : o;
|
|
4163
|
+
r.international, r.withCountryCallingCode;
|
|
4164
|
+
var $ = Ra(r, Fa), l = z(function(g) {
|
|
4165
|
+
var v = new Er(d, u), C = Sr({
|
|
4166
|
+
inputFormat: a,
|
|
4167
|
+
country: d,
|
|
4168
|
+
metadata: u
|
|
4169
|
+
}), b = v.input(C + g), m = v.getTemplate();
|
|
4170
|
+
return C && (b = rt(b, C), m && (m = rt(m, C))), {
|
|
4171
|
+
text: b,
|
|
4172
|
+
template: m
|
|
4173
|
+
};
|
|
4174
|
+
}, [d, u]), y = Tr({
|
|
4175
|
+
onKeyDown: i,
|
|
4176
|
+
inputFormat: a
|
|
4177
|
+
});
|
|
4178
|
+
return /* @__PURE__ */ Q.createElement(be, nt({}, $, {
|
|
4179
|
+
ref: n,
|
|
4180
|
+
parse: Aa,
|
|
4181
|
+
format: l,
|
|
4182
|
+
onKeyDown: y
|
|
4183
|
+
}));
|
|
4184
|
+
}
|
|
4185
|
+
return t = /* @__PURE__ */ Q.forwardRef(t), t.propTypes = {
|
|
4186
|
+
/**
|
|
4187
|
+
* The parsed phone number.
|
|
4188
|
+
* "Parsed" not in a sense of "E.164"
|
|
4189
|
+
* but rather in a sense of "having only
|
|
4190
|
+
* digits and possibly a leading plus character".
|
|
4191
|
+
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
4192
|
+
*/
|
|
4193
|
+
value: _.string.isRequired,
|
|
4194
|
+
/**
|
|
4195
|
+
* A function of `value: string`.
|
|
4196
|
+
* Updates the `value` property.
|
|
4197
|
+
*/
|
|
4198
|
+
onChange: _.func.isRequired,
|
|
4199
|
+
/**
|
|
4200
|
+
* A function of `event: Event`.
|
|
4201
|
+
* Handles `keydown` events.
|
|
4202
|
+
*/
|
|
4203
|
+
onKeyDown: _.func,
|
|
4204
|
+
/**
|
|
4205
|
+
* A two-letter country code for formatting `value`
|
|
4206
|
+
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
4207
|
+
* E.g. "US", "RU", etc.
|
|
4208
|
+
* If no `country` is passed then `value`
|
|
4209
|
+
* is formatted as an international phone number.
|
|
4210
|
+
* (e.g. `+7 800 555 35 35`)
|
|
4211
|
+
* This property should've been called `defaultCountry`
|
|
4212
|
+
* because it only applies when the user inputs a phone number in a national format
|
|
4213
|
+
* and is completely ignored when the user inputs a phone number in an international format.
|
|
4214
|
+
*/
|
|
4215
|
+
country: _.string,
|
|
4216
|
+
/**
|
|
4217
|
+
* The format that the input field value is being input/output in.
|
|
4218
|
+
*/
|
|
4219
|
+
inputFormat: _.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
4220
|
+
/**
|
|
4221
|
+
* `libphonenumber-js` metadata.
|
|
4222
|
+
*/
|
|
4223
|
+
metadata: _.object
|
|
4224
|
+
}, t;
|
|
4225
|
+
}
|
|
4226
|
+
const Ya = La();
|
|
4227
|
+
var Ma = ["value", "onChange", "onKeyDown", "country", "inputFormat", "metadata", "inputComponent", "international", "withCountryCallingCode"];
|
|
4228
|
+
function it() {
|
|
4229
|
+
return it = Object.assign ? Object.assign.bind() : function(e) {
|
|
4230
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
4231
|
+
var r = arguments[t];
|
|
4232
|
+
for (var n in r)
|
|
4233
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4234
|
+
}
|
|
4235
|
+
return e;
|
|
4236
|
+
}, it.apply(this, arguments);
|
|
4237
|
+
}
|
|
4238
|
+
function ja(e, t) {
|
|
4239
|
+
if (e == null) return {};
|
|
4240
|
+
var r = ka(e, t), n, i;
|
|
4241
|
+
if (Object.getOwnPropertySymbols) {
|
|
4242
|
+
var d = Object.getOwnPropertySymbols(e);
|
|
4243
|
+
for (i = 0; i < d.length; i++)
|
|
4244
|
+
n = d[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
4245
|
+
}
|
|
4246
|
+
return r;
|
|
4247
|
+
}
|
|
4248
|
+
function ka(e, t) {
|
|
4249
|
+
if (e == null) return {};
|
|
4250
|
+
var r = {}, n = Object.keys(e), i, d;
|
|
4251
|
+
for (d = 0; d < n.length; d++)
|
|
4252
|
+
i = n[d], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
4253
|
+
return r;
|
|
4254
|
+
}
|
|
4255
|
+
function Ga(e) {
|
|
4256
|
+
function t(r, n) {
|
|
4257
|
+
var i = r.value, d = r.onChange, a = r.onKeyDown, o = r.country, u = r.inputFormat, $ = r.metadata, l = $ === void 0 ? e : $, y = r.inputComponent, g = y === void 0 ? "input" : y;
|
|
4258
|
+
r.international, r.withCountryCallingCode;
|
|
4259
|
+
var v = ja(r, Ma), C = Sr({
|
|
4260
|
+
inputFormat: u,
|
|
4261
|
+
country: o,
|
|
4262
|
+
metadata: l
|
|
4263
|
+
}), b = z(function(L) {
|
|
4264
|
+
var k = Je(L.target.value);
|
|
4265
|
+
if (k === i) {
|
|
4266
|
+
var F = ir(C, k, o, l);
|
|
4267
|
+
F.indexOf(L.target.value) === 0 && (k = k.slice(0, -1));
|
|
4268
|
+
}
|
|
4269
|
+
d(k);
|
|
4270
|
+
}, [C, i, d, o, l]), m = Tr({
|
|
4271
|
+
onKeyDown: a,
|
|
4272
|
+
inputFormat: u
|
|
4273
|
+
});
|
|
4274
|
+
return /* @__PURE__ */ Q.createElement(g, it({}, v, {
|
|
4275
|
+
ref: n,
|
|
4276
|
+
value: ir(C, i, o, l),
|
|
4277
|
+
onChange: b,
|
|
4278
|
+
onKeyDown: m
|
|
4279
|
+
}));
|
|
4280
|
+
}
|
|
4281
|
+
return t = /* @__PURE__ */ Q.forwardRef(t), t.propTypes = {
|
|
4282
|
+
/**
|
|
4283
|
+
* The parsed phone number.
|
|
4284
|
+
* "Parsed" not in a sense of "E.164"
|
|
4285
|
+
* but rather in a sense of "having only
|
|
4286
|
+
* digits and possibly a leading plus character".
|
|
4287
|
+
* Examples: `""`, `"+"`, `"+123"`, `"123"`.
|
|
4288
|
+
*/
|
|
4289
|
+
value: _.string.isRequired,
|
|
4290
|
+
/**
|
|
4291
|
+
* A function of `value: string`.
|
|
4292
|
+
* Updates the `value` property.
|
|
4293
|
+
*/
|
|
4294
|
+
onChange: _.func.isRequired,
|
|
4295
|
+
/**
|
|
4296
|
+
* A function of `event: Event`.
|
|
4297
|
+
* Handles `keydown` events.
|
|
4298
|
+
*/
|
|
4299
|
+
onKeyDown: _.func,
|
|
4300
|
+
/**
|
|
4301
|
+
* A two-letter country code for formatting `value`
|
|
4302
|
+
* as a national phone number (e.g. `(800) 555 35 35`).
|
|
4303
|
+
* E.g. "US", "RU", etc.
|
|
4304
|
+
* If no `country` is passed then `value`
|
|
4305
|
+
* is formatted as an international phone number.
|
|
4306
|
+
* (e.g. `+7 800 555 35 35`)
|
|
4307
|
+
* This property should've been called `defaultCountry`
|
|
4308
|
+
* because it only applies when the user inputs a phone number in a national format
|
|
4309
|
+
* and is completely ignored when the user inputs a phone number in an international format.
|
|
4310
|
+
*/
|
|
4311
|
+
country: _.string,
|
|
4312
|
+
/**
|
|
4313
|
+
* The format that the input field value is being input/output in.
|
|
4314
|
+
*/
|
|
4315
|
+
inputFormat: _.oneOf(["INTERNATIONAL", "NATIONAL_PART_OF_INTERNATIONAL", "NATIONAL", "INTERNATIONAL_OR_NATIONAL"]).isRequired,
|
|
4316
|
+
/**
|
|
4317
|
+
* `libphonenumber-js` metadata.
|
|
4318
|
+
*/
|
|
4319
|
+
metadata: _.object,
|
|
4320
|
+
/**
|
|
4321
|
+
* The `<input/>` component.
|
|
4322
|
+
*/
|
|
4323
|
+
inputComponent: _.elementType
|
|
4324
|
+
}, t;
|
|
4325
|
+
}
|
|
4326
|
+
const qa = Ga();
|
|
4327
|
+
function ir(e, t, r, n) {
|
|
4328
|
+
return rt(xa(e + t, r, n), e);
|
|
4329
|
+
}
|
|
4330
|
+
function Ba(e) {
|
|
4331
|
+
if (e.length < 2 || e[0] !== "+")
|
|
4332
|
+
return !1;
|
|
4333
|
+
for (var t = 1; t < e.length; ) {
|
|
4334
|
+
var r = e.charCodeAt(t);
|
|
4335
|
+
if (!(r >= 48 && r <= 57)) return !1;
|
|
4336
|
+
t++;
|
|
4337
|
+
}
|
|
4338
|
+
return !0;
|
|
4339
|
+
}
|
|
4340
|
+
function Xa(e) {
|
|
4341
|
+
Ba(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
|
|
4342
|
+
}
|
|
4343
|
+
var Za = _.shape({
|
|
4344
|
+
country_calling_codes: _.object.isRequired,
|
|
4345
|
+
countries: _.object.isRequired
|
|
4346
|
+
}), Ja = _.objectOf(_.string);
|
|
4347
|
+
function za(e, t) {
|
|
4348
|
+
var r = "+" + ce(e, t);
|
|
4349
|
+
return r;
|
|
4350
|
+
}
|
|
4351
|
+
export {
|
|
4352
|
+
Er as A,
|
|
4353
|
+
Ya as I,
|
|
4354
|
+
D as M,
|
|
4355
|
+
_ as P,
|
|
4356
|
+
ce as a,
|
|
4357
|
+
Pe as b,
|
|
4358
|
+
qa as c,
|
|
4359
|
+
Ha as d,
|
|
4360
|
+
za as g,
|
|
4361
|
+
Nn as i,
|
|
4362
|
+
Ja as l,
|
|
4363
|
+
Za as m,
|
|
4364
|
+
Ka as n,
|
|
4365
|
+
Va as p,
|
|
4366
|
+
rt as r,
|
|
4367
|
+
Xa as v
|
|
4368
|
+
};
|