@rpcbase/ui 0.166.0 → 0.167.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/dist/index100.js +318 -8
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +126 -38
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +20 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +76 -52
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +18 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +101 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +5 -16
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +14 -5
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -8
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +7 -16
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +13 -4
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +326 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +49 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +52 -6
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +4 -5
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -4
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +14 -3
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -6
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -24
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +16 -6
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -4
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -6
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -5
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +5 -4
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -5
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +5 -7
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +24 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -4
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -4
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -6
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +5 -145
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -39
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -7
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +8 -13
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +5 -13
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -31
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -10
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +145 -10
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +3 -3
- package/dist/index140.js +38 -7
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -13
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -99
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +14 -20
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +13 -53
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +6 -71
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +31 -9
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +10 -20
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +10 -16
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +8 -23
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +13 -6
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +101 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +20 -24
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +53 -34
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +73 -16
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +9 -6
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +20 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +16 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +23 -4
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +6 -4
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +5 -3
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +23 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +35 -24
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +16 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +5 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +4 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -3
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -4
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +7 -3
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -3
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -24
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -29
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +4 -5
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -67
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +3 -180
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -46
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +10 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +3 -13
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +3 -154
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -30
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +3 -9
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +2 -48
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +67 -11
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +83 -43
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +41 -90
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +7 -86
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +4 -105
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +6 -6
- package/dist/index190.js +49 -50
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +24 -11
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +29 -38
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +5 -9
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -116
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +67 -16
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -16
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +363 -3
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +259 -34
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +59 -19
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +1 -1
- package/dist/index200.js +46 -9
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +169 -8
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +108 -18
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +24 -28
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -17
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -58
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -8
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -66
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +464 -17
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +183 -14
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +106 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +261 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +9 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +42 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +64 -17
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +47 -4
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +67 -5
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +180 -13
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +46 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +39 -14
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +100 -14
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +97 -5
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +99 -6
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +58 -7
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +8 -6
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +66 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +19 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +16 -5
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -9
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -4
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +7 -11
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +16 -9
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +5 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +5 -11
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +13 -6
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +14 -6
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -4
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +6 -6
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +6 -6
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -55
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +5 -23
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -16
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -7
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +5 -10
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -10
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +4 -21
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -10
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +10 -9
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +10 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +11 -4
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -5
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +10 -16
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +7 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +6 -18
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +5 -15
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -12
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +7 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +6 -12
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +54 -24
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +23 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +17 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +8 -3
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +10 -23
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -112
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +21 -15
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +10 -524
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +9 -127
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +9 -133
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +4 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -4
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -18
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +9 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +19 -69
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +15 -8
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +13 -14
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +30 -66
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +12 -64
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +25 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +2 -4
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +2 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +5 -9
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +3 -6
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +23 -4
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -5
- package/dist/index290.js +111 -544
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +15 -46
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +521 -14
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +127 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +133 -8
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +13 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +154 -8
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +30 -12
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +9 -9
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +47 -13
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +47 -231
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +11 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +43 -21
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +95 -4
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +85 -54
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +105 -67
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +53 -31
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +12 -9
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +36 -151
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +9 -108
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +4 -23
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +218 -49
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +10 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +113 -24
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +18 -5
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -15
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +33 -25
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +20 -12
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +8 -6
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +23 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +32 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +20 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +36 -2633
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +8 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +22 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +16 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +72 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +12 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +17 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +69 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +68 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +24 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +35 -388
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +9 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +7 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +19 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +12 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +9 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +8 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +549 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +50 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +21 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +10 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +26 -230
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +12 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +11 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +12 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +16 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +13 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +17 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +7 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +26 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +8 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +59 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +44 -20
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +71 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +34 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +12 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +156 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +111 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +26 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +16 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +31 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +8 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +19 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +27 -137
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +32 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +16 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +10 -0
- package/dist/index362.js.map +1 -0
- package/dist/index37.js +22 -181
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +23 -77
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +127 -89
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +231 -5
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +51 -844
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +2636 -61
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +393 -7
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +233 -2
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +20 -22
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +140 -232
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +180 -198
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +76 -3
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +89 -5
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +5 -47
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +840 -23
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +65 -50
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +2 -15
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +22 -132
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +233 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +191 -203
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +4 -13
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +6 -33
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -43
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +26 -7
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +48 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +7 -3
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +14 -5
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +133 -27
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +11 -50
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +216 -8
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +13 -2
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +34 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +46 -11
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +7 -53
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +49 -5
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +4 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +27 -46
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +48 -204
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -21
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -24
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +2 -400
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +2 -47
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +52 -604
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +46 -5
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +199 -62
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +22 -2
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +24 -363
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +381 -243
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +41 -55
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -46
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +7 -169
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +5 -109
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +605 -24
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -8
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +33 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +249 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +114 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +214 -461
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +60 -179
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +18 -105
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +197 -250
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index310.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, [e && n]);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
1
|
+
import f from "./index208.js";
|
|
2
|
+
var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
3
|
+
function D(t, r, a) {
|
|
4
|
+
var e = new f(a);
|
|
5
|
+
if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
|
|
6
|
+
return e.defaultIDDPrefix();
|
|
7
|
+
if (u.test(e.IDDPrefix()))
|
|
8
|
+
return e.IDDPrefix();
|
|
9
|
+
}
|
|
13
10
|
export {
|
|
14
|
-
|
|
11
|
+
D as default
|
|
15
12
|
};
|
|
16
13
|
//# sourceMappingURL=index310.js.map
|
package/dist/index310.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index310.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index310.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// For regions that have multiple IDD prefixes\n// a preferred IDD prefix is returned.\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n//# sourceMappingURL=getIddPrefix.js.map"],"names":["SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","country","callingCode","metadata","countryMetadata","Metadata"],"mappings":";AAWA,IAAIA,IAA4B;AAIjB,SAASC,EAAaC,GAASC,GAAaC,GAAU;AACnE,MAAIC,IAAkB,IAAIC,EAASF,CAAQ;AAE3C,MADAC,EAAgB,oBAAoBH,GAASC,CAAW,GACpDE,EAAgB;AAClB,WAAOA,EAAgB,iBAAgB;AAEzC,MAAIL,EAA0B,KAAKK,EAAgB,UAAS,CAAE;AAC5D,WAAOA,EAAgB,UAAS;AAEpC;","x_google_ignoreList":[0]}
|
package/dist/index311.js
CHANGED
|
@@ -1,31 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as g, MAX_LENGTH_FOR_NSN as h, PLUS_CHARS as P, VALID_DIGITS as d } from "./index204.js";
|
|
2
|
+
import m from "./index303.js";
|
|
3
|
+
import T, { getCountryCallingCode as O } from "./index208.js";
|
|
4
|
+
import s, { isViablePhoneNumberStart as v } from "./index312.js";
|
|
5
|
+
import w from "./index313.js";
|
|
6
|
+
import y from "./index307.js";
|
|
7
|
+
import { isPossibleNumber as S } from "./index297.js";
|
|
8
|
+
import x from "./index209.js";
|
|
9
|
+
import R from "./index309.js";
|
|
10
|
+
import E from "./index301.js";
|
|
11
|
+
import I from "./index314.js";
|
|
12
|
+
import A from "./index212.js";
|
|
13
|
+
import p from "./index315.js";
|
|
14
|
+
var H = 250, L = new RegExp("[" + P + d + "]"), U = new RegExp("[^" + d + "#]+$");
|
|
15
|
+
function Z(t, r, n) {
|
|
16
|
+
if (r = r || {}, n = new T(n), r.defaultCountry && !n.hasCountry(r.defaultCountry))
|
|
17
|
+
throw r.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
|
|
18
|
+
var e = G(t, r.v2, r.extract), l = e.number, c = e.ext, i = e.error;
|
|
19
|
+
if (!l) {
|
|
20
|
+
if (r.v2)
|
|
21
|
+
throw i === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
var a = D(l, r.defaultCountry, r.defaultCallingCode, n), o = a.country, u = a.nationalNumber, N = a.countryCallingCode, _ = a.countryCallingCodeSource, f = a.carrierCode;
|
|
25
|
+
if (!n.hasSelectedNumberingPlan()) {
|
|
26
|
+
if (r.v2)
|
|
27
|
+
throw new m("INVALID_COUNTRY");
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
if (!u || u.length < g) {
|
|
31
|
+
if (r.v2)
|
|
32
|
+
throw new m("TOO_SHORT");
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
if (u.length > h) {
|
|
36
|
+
if (r.v2)
|
|
37
|
+
throw new m("TOO_LONG");
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
if (r.v2) {
|
|
41
|
+
var C = new x(N, u, n.metadata);
|
|
42
|
+
return o && (C.country = o), f && (C.carrierCode = f), c && (C.ext = c), C.__countryCallingCodeSource = _, C;
|
|
43
|
+
}
|
|
44
|
+
var b = (r.extended ? n.hasSelectedNumberingPlan() : o) ? R(u, n.nationalNumberPattern()) : !1;
|
|
45
|
+
return r.extended ? {
|
|
46
|
+
country: o,
|
|
47
|
+
countryCallingCode: N,
|
|
48
|
+
carrierCode: f,
|
|
49
|
+
valid: b,
|
|
50
|
+
possible: b ? !0 : !!(r.extended === !0 && n.possibleLengths() && S(u, o, n)),
|
|
51
|
+
phone: u,
|
|
52
|
+
ext: c
|
|
53
|
+
} : b ? M(o, u, c) : {};
|
|
9
54
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
55
|
+
function F(t, r, n) {
|
|
56
|
+
if (t) {
|
|
57
|
+
if (t.length > H) {
|
|
58
|
+
if (n)
|
|
59
|
+
throw new m("TOO_LONG");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (r === !1)
|
|
63
|
+
return t;
|
|
64
|
+
var e = t.search(L);
|
|
65
|
+
if (!(e < 0))
|
|
66
|
+
return t.slice(e).replace(U, "");
|
|
67
|
+
}
|
|
16
68
|
}
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
69
|
+
function G(t, r, n) {
|
|
70
|
+
var e = p(t, {
|
|
71
|
+
extractFormattedPhoneNumber: function(i) {
|
|
72
|
+
return F(i, n, r);
|
|
25
73
|
}
|
|
74
|
+
});
|
|
75
|
+
if (!e)
|
|
76
|
+
return {};
|
|
77
|
+
if (!s(e))
|
|
78
|
+
return v(e) ? {
|
|
79
|
+
error: "TOO_SHORT"
|
|
80
|
+
} : {};
|
|
81
|
+
var l = w(e);
|
|
82
|
+
return l.ext ? l : {
|
|
83
|
+
number: e
|
|
26
84
|
};
|
|
27
|
-
}
|
|
85
|
+
}
|
|
86
|
+
function M(t, r, n) {
|
|
87
|
+
var e = {
|
|
88
|
+
country: t,
|
|
89
|
+
phone: r
|
|
90
|
+
};
|
|
91
|
+
return n && (e.ext = n), e;
|
|
92
|
+
}
|
|
93
|
+
function D(t, r, n, e) {
|
|
94
|
+
var l = E(y(t), void 0, r, n, e.metadata), c = l.countryCallingCodeSource, i = l.countryCallingCode, a = l.number, o;
|
|
95
|
+
if (i)
|
|
96
|
+
e.selectNumberingPlan(i);
|
|
97
|
+
else if (a && (r || n))
|
|
98
|
+
e.selectNumberingPlan(r, n), r && (o = r), i = n || O(r, e.metadata);
|
|
99
|
+
else return {};
|
|
100
|
+
if (!a)
|
|
101
|
+
return {
|
|
102
|
+
countryCallingCodeSource: c,
|
|
103
|
+
countryCallingCode: i
|
|
104
|
+
};
|
|
105
|
+
var u = I(y(a), o, e), N = u.nationalNumber, _ = u.carrierCode, f = A(i, {
|
|
106
|
+
nationalNumber: N,
|
|
107
|
+
metadata: e
|
|
108
|
+
});
|
|
109
|
+
return f && (o = f, f === "001" || e.selectNumberingPlan(o)), {
|
|
110
|
+
country: o,
|
|
111
|
+
countryCallingCode: i,
|
|
112
|
+
countryCallingCodeSource: c,
|
|
113
|
+
nationalNumber: N,
|
|
114
|
+
carrierCode: _
|
|
115
|
+
};
|
|
116
|
+
}
|
|
28
117
|
export {
|
|
29
|
-
|
|
118
|
+
Z as default
|
|
30
119
|
};
|
|
31
120
|
//# sourceMappingURL=index311.js.map
|
package/dist/index311.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index311.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index311.js","sources":["../../../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined, defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","getCountryCallingCode","_extractNationalNumbe","extractNationalNumber","exactCountry","getCountryByCallingCode"],"mappings":";;;;;;;;;;;;;AAwBA,IAAIA,IAA0B,KAG1BC,IAA6B,IAAI,OAAO,MAAMC,IAAaC,IAAe,GAAG,GAK7EC,IAAiC,IAAI,OAAO,OAAOD,IAAe,MAAW;AA2BlE,SAASE,EAAMC,GAAMC,GAASC,GAAU;AAOrD,MAJAD,IAAUA,KAAW,CAAA,GACrBC,IAAW,IAAIC,EAASD,CAAQ,GAG5BD,EAAQ,kBAAkB,CAACC,EAAS,WAAWD,EAAQ,cAAc;AACvE,UAAIA,EAAQ,KACJ,IAAIG,EAAW,iBAAiB,IAElC,IAAI,MAAM,oBAAoB,OAAOH,EAAQ,cAAc,CAAC;AAIpE,MAAII,IAAcC,EAAWN,GAAMC,EAAQ,IAAIA,EAAQ,OAAO,GAC5DM,IAAuBF,EAAY,QACnCG,IAAMH,EAAY,KAClBI,IAAQJ,EAAY;AAGtB,MAAI,CAACE,GAAsB;AACzB,QAAIN,EAAQ;AACV,YAAIQ,MAAU,cACN,IAAIL,EAAW,WAAW,IAE5B,IAAIA,EAAW,cAAc;AAErC,WAAO,CAAA;AAAA,EACT;AACA,MAAIM,IAAoBC,EAAiBJ,GAAsBN,EAAQ,gBAAgBA,EAAQ,oBAAoBC,CAAQ,GACzHU,IAAUF,EAAkB,SAC5BG,IAAiBH,EAAkB,gBACnCI,IAAqBJ,EAAkB,oBACvCK,IAA2BL,EAAkB,0BAC7CM,IAAcN,EAAkB;AAClC,MAAI,CAACR,EAAS,4BAA4B;AACxC,QAAID,EAAQ;AACV,YAAM,IAAIG,EAAW,iBAAiB;AAExC,WAAO,CAAA;AAAA,EACT;AAGA,MAAI,CAACS,KAAkBA,EAAe,SAASI,GAAoB;AAGjE,QAAIhB,EAAQ;AACV,YAAM,IAAIG,EAAW,WAAW;AAGlC,WAAO,CAAA;AAAA,EACT;AAWA,MAAIS,EAAe,SAASK,GAAoB;AAC9C,QAAIjB,EAAQ;AACV,YAAM,IAAIG,EAAW,UAAU;AAGjC,WAAO,CAAA;AAAA,EACT;AACA,MAAIH,EAAQ,IAAI;AACd,QAAIkB,IAAc,IAAIC,EAAYN,GAAoBD,GAAgBX,EAAS,QAAQ;AACvF,WAAIU,MACFO,EAAY,UAAUP,IAEpBI,MACFG,EAAY,cAAcH,IAExBR,MACFW,EAAY,MAAMX,IAEpBW,EAAY,6BAA6BJ,GAClCI;AAAA,EACT;AAKA,MAAIE,KAASpB,EAAQ,WAAWC,EAAS,yBAAwB,IAAKU,KAAWU,EAAgBT,GAAgBX,EAAS,sBAAqB,CAAE,IAAI;AACrJ,SAAKD,EAAQ,WAMN;AAAA,IACL,SAASW;AAAA,IACT,oBAAoBE;AAAA,IACpB,aAAaE;AAAA,IACb,OAAOK;AAAA,IACP,UAAUA,IAAQ,KAAO,GAAApB,EAAQ,aAAa,MAAQC,EAAS,gBAAe,KAAMqB,EAAiBV,GAAgBD,GAASV,CAAQ;AAAA,IACtI,OAAOW;AAAA,IACP,KAAKL;AAAA,EACT,IAbWa,IAAQG,EAAOZ,GAASC,GAAgBL,CAAG,IAAI,CAAA;AAc1D;AAcA,SAASiB,EAA6BzB,GAAM0B,GAASC,GAAc;AACjE,MAAK3B,GAGL;AAAA,QAAIA,EAAK,SAASN,GAAyB;AACzC,UAAIiC;AACF,cAAM,IAAIvB,EAAW,UAAU;AAEjC;AAAA,IACF;AACA,QAAIsB,MAAY;AACd,aAAO1B;AAGT,QAAI4B,IAAW5B,EAAK,OAAOL,CAA0B;AACrD,QAAI,EAAAiC,IAAW;AAGf,aAAO5B,EAEN,MAAM4B,CAAQ,EAEd,QAAQ9B,GAAgC,EAAE;AAAA;AAC7C;AAQA,SAASQ,EAAWN,GAAM6B,GAAIH,GAAS;AAMrC,MAAII,IAASC,EAAwD/B,GAAM;AAAA,IACzE,6BAA6B,SAAqCA,GAAM;AACtE,aAAOyB,EAA6BzB,GAAM0B,GAASG,CAAE;AAAA,IACvD;AAAA,EACJ,CAAG;AAED,MAAI,CAACC;AACH,WAAO,CAAA;AAET,MAAI,CAACE,EAAoBF,CAAM;AAC7B,WAAIG,EAAyBH,CAAM,IAC1B;AAAA,MACL,OAAO;AAAA,IACf,IAEW,CAAA;AAIT,MAAII,IAAwBC,EAAiBL,CAAM;AACnD,SAAII,EAAsB,MACjBA,IAEF;AAAA,IACL,QAAQJ;AAAA,EACZ;AACA;AAKA,SAASN,EAAOZ,GAASC,GAAgBL,GAAK;AAC5C,MAAIgB,IAAS;AAAA,IACX,SAASZ;AAAA,IACT,OAAOC;AAAA,EACX;AACE,SAAIL,MACFgB,EAAO,MAAMhB,IAERgB;AACT;AAUA,SAASb,EAAiBJ,GAAsB6B,GAAgBC,GAAoBnC,GAAU;AAE5F,MAAIoC,IAAwBC,EAA0BC,EAA2BjC,CAAoB,GAAG,QAAW6B,GAAgBC,GAAoBnC,EAAS,QAAQ,GACtKa,IAA2BuB,EAAsB,0BACjDxB,IAAqBwB,EAAsB,oBAC3CR,IAASQ,EAAsB,QAG7B1B;AAIJ,MAAIE;AACF,IAAAZ,EAAS,oBAAoBY,CAAkB;AAAA,WAIxCgB,MAAWM,KAAkBC;AACpC,IAAAnC,EAAS,oBAAoBkC,GAAgBC,CAAkB,GAC3DD,MACFxB,IAAUwB,IASZtB,IAAqBuB,KAAsBI,EAAsBL,GAAgBlC,EAAS,QAAQ;AAAA,MAC7F,QAAO,CAAA;AACd,MAAI,CAAC4B;AACH,WAAO;AAAA,MACL,0BAA0Bf;AAAA,MAC1B,oBAAoBD;AAAA,IAC1B;AAEE,MAAI4B,IAAwBC,EAAsBH,EAA2BV,CAAM,GAAGlB,GAASV,CAAQ,GACrGW,IAAiB6B,EAAsB,gBACvC1B,IAAc0B,EAAsB,aAYlCE,IAAeC,EAAwB/B,GAAoB;AAAA,IAC7D,gBAAgBD;AAAA,IAChB,UAAUX;AAAA,EACd,CAAG;AACD,SAAI0C,MACFhC,IAAUgC,GAENA,MAAiB,SAKnB1C,EAAS,oBAAoBU,CAAO,IAGjC;AAAA,IACL,SAASA;AAAA,IACT,oBAAoBE;AAAA,IACpB,0BAA0BC;AAAA,IAC1B,gBAAgBF;AAAA,IAChB,aAAaG;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}
|
package/dist/index312.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index204.js";
|
|
2
|
+
import r from "./index316.js";
|
|
3
|
+
var n = "[" + _ + "]{" + e + "}", I = "[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){3,}[" + E + _ + "]*", P = new RegExp("^[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){1,2}$", "i"), R = I + // Phone number extensions
|
|
4
|
+
"(?:" + r() + ")?", T = new RegExp(
|
|
5
|
+
// Either a short two-digit-only phone number
|
|
6
|
+
"^" + n + "$|^" + R + "$",
|
|
7
|
+
"i"
|
|
8
|
+
);
|
|
9
|
+
function A(N) {
|
|
10
|
+
return N.length >= e && T.test(N);
|
|
11
|
+
}
|
|
12
|
+
function o(N) {
|
|
13
|
+
return P.test(N);
|
|
14
|
+
}
|
|
5
15
|
export {
|
|
6
|
-
|
|
16
|
+
I as VALID_PHONE_NUMBER,
|
|
17
|
+
R as VALID_PHONE_NUMBER_WITH_EXTENSION,
|
|
18
|
+
A as default,
|
|
19
|
+
o as isViablePhoneNumberStart
|
|
7
20
|
};
|
|
8
21
|
//# sourceMappingURL=index312.js.map
|
package/dist/index312.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index312.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index312.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js"],"sourcesContent":["import { MIN_LENGTH_FOR_NSN, VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from '../constants.js';\nimport createExtensionPattern from './extension/createExtensionPattern.js';\n\n// Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\nvar MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}';\n//\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\nexport var VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*';\n\n// This regular expression isn't present in Google's `libphonenumber`\n// and is only used to determine whether the phone number being input\n// is too short for it to even consider it a \"valid\" number.\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nvar VALID_PHONE_NUMBER_START_REG_EXP = new RegExp('^' + '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){1,2}' + '$', 'i');\nexport var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER +\n// Phone number extensions\n'(?:' + createExtensionPattern() + ')?';\n\n// The combined regular expression for valid phone numbers:\n//\nvar VALID_PHONE_NUMBER_PATTERN = new RegExp(\n// Either a short two-digit-only phone number\n'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' +\n// Or a longer fully parsed phone number (min 3 characters)\n'^' + VALID_PHONE_NUMBER_WITH_EXTENSION + '$', 'i');\n\n// Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\nexport default function isViablePhoneNumber(number) {\n return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);\n}\n\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nexport function isViablePhoneNumberStart(number) {\n return VALID_PHONE_NUMBER_START_REG_EXP.test(number);\n}\n//# sourceMappingURL=isViablePhoneNumber.js.map"],"names":["MIN_LENGTH_PHONE_NUMBER_PATTERN","VALID_DIGITS","MIN_LENGTH_FOR_NSN","VALID_PHONE_NUMBER","PLUS_CHARS","VALID_PUNCTUATION","VALID_PHONE_NUMBER_START_REG_EXP","VALID_PHONE_NUMBER_WITH_EXTENSION","createExtensionPattern","VALID_PHONE_NUMBER_PATTERN","isViablePhoneNumber","number","isViablePhoneNumberStart"],"mappings":";;AA2BA,IAAIA,IAAkC,MAAMC,IAAe,OAAOC,IAAqB,KAK5EC,IAAqB,MAAMC,IAAa,eAAyBC,IAAoB,QAAaJ,IAAe,YAAsBI,IAAoBJ,IAAe,MAWjLK,IAAmC,IAAI,OAAO,OAAYF,IAAa,eAAyBC,IAAoB,QAAaJ,IAAe,YAAsB,GAAG,GAClKM,IAAoCJ;AAE/C,QAAQK,EAAsB,IAAK,MAI/BC,IAA6B,IAAI;AAAA;AAAA,EAErC,MAAMT,IAAkC,QAElCO,IAAoC;AAAA,EAAK;AAAG;AASnC,SAASG,EAAoBC,GAAQ;AAClD,SAAOA,EAAO,UAAUT,KAAsBO,EAA2B,KAAKE,CAAM;AACtF;AAQO,SAASC,EAAyBD,GAAQ;AAC/C,SAAOL,EAAiC,KAAKK,CAAM;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index313.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import o from "./index316.js";
|
|
2
|
+
var n = new RegExp("(?:" + o() + ")$", "i");
|
|
3
|
+
function c(e) {
|
|
4
|
+
var a = e.search(n);
|
|
5
|
+
if (a < 0)
|
|
6
|
+
return {};
|
|
7
|
+
for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
|
|
8
|
+
if (r[t])
|
|
9
|
+
return {
|
|
10
|
+
number: i,
|
|
11
|
+
ext: r[t]
|
|
12
|
+
};
|
|
13
|
+
t++;
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
c as
|
|
17
|
+
c as default
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index313.js.map
|
package/dist/index313.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index313.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index313.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js"],"sourcesContent":["import createExtensionPattern from './createExtensionPattern.js';\n\n// Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\nvar EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i');\n\n// Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\nexport default function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n if (start < 0) {\n return {};\n }\n // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n var numberWithoutExtension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n while (i < matches.length) {\n if (matches[i]) {\n return {\n number: numberWithoutExtension,\n ext: matches[i]\n };\n }\n i++;\n }\n}\n//# sourceMappingURL=extractExtension.js.map"],"names":["EXTN_PATTERN","createExtensionPattern","extractExtension","number","start","numberWithoutExtension","matches","i"],"mappings":";AAIA,IAAIA,IAAe,IAAI,OAAO,QAAQC,EAAsB,IAAK,MAAM,GAAG;AAK3D,SAASC,EAAiBC,GAAQ;AAC/C,MAAIC,IAAQD,EAAO,OAAOH,CAAY;AACtC,MAAII,IAAQ;AACV,WAAO,CAAA;AAOT,WAHIC,IAAyBF,EAAO,MAAM,GAAGC,CAAK,GAC9CE,IAAUH,EAAO,MAAMH,CAAY,GACnCO,IAAI,GACDA,IAAID,EAAQ,UAAQ;AACzB,QAAIA,EAAQC,CAAC;AACX,aAAO;AAAA,QACL,QAAQF;AAAA,QACR,KAAKC,EAAQC,CAAC;AAAA,MACtB;AAEI,IAAAA;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
|
package/dist/index314.js
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import l from "./index318.js";
|
|
2
|
+
import o from "./index309.js";
|
|
3
|
+
import u from "./index295.js";
|
|
4
|
+
import N from "./index212.js";
|
|
5
|
+
function g(e, n, r) {
|
|
6
|
+
var i = l(e, r), a = i.carrierCode, t = i.nationalNumber;
|
|
7
|
+
if (t !== e) {
|
|
8
|
+
if (!m(e, t, r))
|
|
9
|
+
return {
|
|
10
|
+
nationalNumber: e
|
|
11
|
+
};
|
|
12
|
+
if (r.numberingPlan.possibleLengths() && (n || (n = N(r.numberingPlan.callingCode(), {
|
|
13
|
+
nationalNumber: t,
|
|
14
|
+
metadata: r
|
|
15
|
+
})), !f(t, n, r)))
|
|
16
|
+
return {
|
|
17
|
+
nationalNumber: e
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
nationalNumber: t,
|
|
22
|
+
carrierCode: a
|
|
17
23
|
};
|
|
18
24
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
-
return e;
|
|
25
|
+
function m(e, n, r) {
|
|
26
|
+
return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
|
|
23
27
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
function f(e, n, r) {
|
|
29
|
+
switch (u(e, n, r)) {
|
|
30
|
+
case "TOO_SHORT":
|
|
31
|
+
case "INVALID_LENGTH":
|
|
32
|
+
return !1;
|
|
33
|
+
default:
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
28
36
|
}
|
|
29
37
|
export {
|
|
30
|
-
|
|
38
|
+
g as default
|
|
31
39
|
};
|
|
32
40
|
//# sourceMappingURL=index314.js.map
|
package/dist/index314.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index314.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index314.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js"],"sourcesContent":["import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryByCallingCode from './getCountryByCallingCode.js';\n\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {string?} country — Country, if known.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\nexport default function extractNationalNumber(number, country, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n if (metadata.numberingPlan.possibleLengths()) {\n // If an exact `country` is not specified, attempt to detect it from the assumed national number.\n if (!country) {\n country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n }\n\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n }\n // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n return true;\n}\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n default:\n return true;\n }\n}\n//# sourceMappingURL=extractNationalNumber.js.map"],"names":["extractNationalNumber","number","country","metadata","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","carrierCode","nationalNumber","shouldHaveExtractedNationalPrefix","getCountryByCallingCode","isPossibleIncompleteNationalNumber","nationalNumberBefore","nationalNumberAfter","matchesEntirely","checkNumberLength"],"mappings":";;;;AAee,SAASA,EAAsBC,GAAQC,GAASC,GAAU;AAUvE,MAAIC,IAAwBC,EAAkDJ,GAAQE,CAAQ,GAC5FG,IAAcF,EAAsB,aACpCG,IAAiBH,EAAsB;AACzC,MAAIG,MAAmBN,GAAQ;AAC7B,QAAI,CAACO,EAAkCP,GAAQM,GAAgBJ,CAAQ;AAErE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MACxB;AAII,QAAIE,EAAS,cAAc,sBAEpBD,MACHA,IAAUO,EAAwBN,EAAS,cAAc,YAAW,GAAI;AAAA,MACtE,gBAAgBI;AAAA,MAChB,UAAUJ;AAAA,IACpB,CAAS,IAWC,CAACO,EAAmCH,GAAgBL,GAASC,CAAQ;AAEvE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MAC1B;AAAA,EAGE;AACA,SAAO;AAAA,IACL,gBAAgBM;AAAA,IAChB,aAAaD;AAAA,EACjB;AACA;AAgBA,SAASE,EAAkCG,GAAsBC,GAAqBT,GAAU;AAG9F,SAAI,EAAAU,EAAgBF,GAAsBR,EAAS,sBAAqB,CAAE,KAAK,CAACU,EAAgBD,GAAqBT,EAAS,sBAAqB,CAAE;AAiBvJ;AACA,SAASO,EAAmCH,GAAgBL,GAASC,GAAU;AAC7E,UAAQW,EAAkBP,GAAgBL,GAASC,CAAQ,GAAC;AAAA,IAC1D,KAAK;AAAA,IACL,KAAK;AAIH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACb;AACA;","x_google_ignoreList":[0]}
|
package/dist/index315.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./index328.js";
|
|
2
|
+
import v from "./index303.js";
|
|
3
|
+
function S(r, _) {
|
|
4
|
+
var f = _.extractFormattedPhoneNumber, e = s(r);
|
|
5
|
+
if (!x(e))
|
|
6
|
+
throw new v("NOT_A_NUMBER");
|
|
7
|
+
var t;
|
|
8
|
+
if (e === null)
|
|
9
|
+
t = f(r) || "";
|
|
10
|
+
else {
|
|
11
|
+
t = "", e.charAt(0) === F && (t += e);
|
|
12
|
+
var n = r.indexOf(a), o;
|
|
13
|
+
n >= 0 ? o = n + a.length : o = 0;
|
|
14
|
+
var h = r.indexOf(d);
|
|
15
|
+
t += r.substring(o, h);
|
|
16
|
+
}
|
|
17
|
+
var i = t.indexOf(m);
|
|
18
|
+
if (i > 0 && (t = t.substring(0, i)), t !== "")
|
|
19
|
+
return t;
|
|
12
20
|
}
|
|
13
21
|
export {
|
|
14
|
-
|
|
22
|
+
S as default
|
|
15
23
|
};
|
|
16
24
|
//# sourceMappingURL=index315.js.map
|
package/dist/index315.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index315.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index315.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js"],"sourcesContent":["import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n var phoneNumberString;\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = '';\n\n // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n }\n\n // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber;\n // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n /* istanbul ignore else */\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n }\n\n // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n }\n // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n//# sourceMappingURL=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map"],"names":["extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","_ref","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","isPhoneContextValid","ParseError","phoneNumberString","PLUS_SIGN","indexOfRfc3966Prefix","RFC3966_PREFIX_","indexOfNationalNumber","indexOfPhoneContext","RFC3966_PHONE_CONTEXT_","indexOfIsdn","RFC3966_ISDN_SUBADDRESS_"],"mappings":";;AAQe,SAASA,EAAwDC,GAAeC,GAAM;AACnG,MAAIC,IAA8BD,EAAK,6BACnCE,IAAeC,EAAoBJ,CAAa;AACpD,MAAI,CAACK,EAAoBF,CAAY;AACnC,UAAM,IAAIG,EAAW,cAAc;AAErC,MAAIC;AACJ,MAAIJ,MAAiB;AAGnB,IAAAI,IAAoBL,EAA4BF,CAAa,KAAK;AAAA,OAC7D;AACL,IAAAO,IAAoB,IAIhBJ,EAAa,OAAO,CAAC,MAAMK,MAC7BD,KAAqBJ;AAQvB,QAAIM,IAAuBT,EAAc,QAAQU,CAAe,GAC5DC;AAIJ,IAAIF,KAAwB,IAC1BE,IAAwBF,IAAuBC,EAAgB,SAE/DC,IAAwB;AAE1B,QAAIC,IAAsBZ,EAAc,QAAQa,CAAsB;AACtE,IAAAN,KAAqBP,EAAc,UAAUW,GAAuBC,CAAmB;AAAA,EACzF;AAKA,MAAIE,IAAcP,EAAkB,QAAQQ,CAAwB;AAUpE,MATID,IAAc,MAChBP,IAAoBA,EAAkB,UAAU,GAAGO,CAAW,IAQ5DP,MAAsB;AACxB,WAAOA;AAEX;","x_google_ignoreList":[0]}
|
package/dist/index316.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { VALID_DIGITS as A } from "./index204.js";
|
|
2
|
+
var g = ";ext=", t = function(a) {
|
|
3
|
+
return "([".concat(A, "]{1,").concat(a, "})");
|
|
4
|
+
};
|
|
5
|
+
function D(x) {
|
|
6
|
+
var a = "20", o = "15", i = "9", F = "6", n = "[ \\t,]*", e = "[:\\..]?[ \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
|
|
7
|
+
return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
|
|
6
8
|
}
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
D as default
|
|
9
11
|
};
|
|
10
12
|
//# sourceMappingURL=index316.js.map
|
package/dist/index316.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index316.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index316.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js"],"sourcesContent":["import { VALID_DIGITS } from '../../constants.js';\n\n// The RFC 3966 format for extensions.\nvar RFC3966_EXTN_PREFIX = ';ext=';\n\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n var extLimitWhenNotSure = '6';\n\n /** @type {string} */\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\";\n // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n /** @type {string} */\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n var optionalExtnSuffix = \"#?\";\n\n // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n /** @type {string} */\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n /** @type {string} */\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n // When extension is not separated clearly.\n /** @type {string} */\n var ambiguousSeparator = \"[- ]+\";\n // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n /** @type {string} */\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\";\n // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n /** @type {string} */\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n /** @type {string} */\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n /** @type {string} */\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n\n // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n//# sourceMappingURL=createExtensionPattern.js.map"],"names":["RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","maxLength","VALID_DIGITS","createExtensionPattern","purpose","extLimitAfterExplicitLabel","extLimitAfterLikelyLabel","extLimitAfterAmbiguousChar","extLimitWhenNotSure","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","explicitExtLabels","ambiguousExtLabels","ambiguousSeparator","possibleSeparatorsNumberExtLabelNoComma","autoDiallingAndExtLabelsFound","rfcExtn","explicitExtn","ambiguousExtn","americanStyleExtnWithSuffix","autoDiallingExtn","onlyCommasExtn"],"mappings":";AAGA,IAAIA,IAAsB,SAOtBC,IAA4B,SAAmCC,GAAW;AAC5E,SAAO,KAAK,OAAOC,GAAc,MAAM,EAAE,OAAOD,GAAW,IAAI;AACjE;AASe,SAASE,EAAuBC,GAAS;AAOtD,MAAIC,IAA6B,MAE7BC,IAA2B,MAE3BC,IAA6B,KAE7BC,IAAsB,KAGtBC,IAA6C,aAG7CC,IAA6B,sBAE7BC,IAAqB,MAKrBC,IAAoB,iDAIpBC,IAAqB,wBAGrBC,IAAqB,SAIrBC,IAA0C,YAM1CC,IAAgC,cAGhCC,IAAUlB,IAAsBC,EAA0BK,CAA0B,GAEpFa,IAAeT,IAA6CG,IAAoBF,IAA6BV,EAA0BK,CAA0B,IAAIM,GAErKQ,IAAgBV,IAA6CI,IAAqBH,IAA6BV,EAA0BO,CAA0B,IAAII,GAEvKS,IAA8BN,IAAqBd,EAA0BQ,CAAmB,IAAI,KAGpGa,IAAmBN,IAA0CC,IAAgCN,IAA6BV,EAA0BM,CAAwB,IAAIK,GAEhLW,IAAiBP,IAA0C,WAAWL,IAA6BV,EAA0BO,CAA0B,IAAII;AAc/J,SAAOM,IAAU,MAAMC,IAAe,MAAMC,IAAgB,MAAMC,IAA8B,MAAMC,IAAmB,MAAMC;AACjI;","x_google_ignoreList":[0]}
|
package/dist/index317.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import c, { getCountryCallingCode as b } from "./index208.js";
|
|
2
|
+
import g from "./index309.js";
|
|
3
|
+
import C from "./index314.js";
|
|
4
|
+
import h from "./index295.js";
|
|
5
|
+
function P(i, r, l, N, n) {
|
|
6
|
+
var e = r || l ? b(r || l, n) : N;
|
|
7
|
+
if (i.indexOf(e) === 0) {
|
|
8
|
+
n = new c(n), n.selectNumberingPlan(r || l, e);
|
|
9
|
+
var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
|
|
10
|
+
if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
|
|
11
|
+
return {
|
|
12
|
+
countryCallingCode: e,
|
|
13
|
+
number: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
number: i
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
P as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index317.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index317.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
|