@rpcbase/ui 0.287.0 → 0.289.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.
Files changed (738) hide show
  1. package/dist/assets/sha256.worker-DNtOSCbM.js.map +1 -0
  2. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  3. package/dist/index.js +12 -12
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js.map +1 -1
  10. package/dist/index105.js.map +1 -1
  11. package/dist/index106.js.map +1 -1
  12. package/dist/index107.js.map +1 -1
  13. package/dist/index108.js.map +1 -1
  14. package/dist/index109.js.map +1 -1
  15. package/dist/index11.js +96 -17
  16. package/dist/index11.js.map +1 -1
  17. package/dist/index110.js.map +1 -1
  18. package/dist/index111.js.map +1 -1
  19. package/dist/index112.js.map +1 -1
  20. package/dist/index113.js.map +1 -1
  21. package/dist/index114.js.map +1 -1
  22. package/dist/index115.js.map +1 -1
  23. package/dist/index116.js.map +1 -1
  24. package/dist/index117.js.map +1 -1
  25. package/dist/index118.js.map +1 -1
  26. package/dist/index119.js.map +1 -1
  27. package/dist/index12.js.map +1 -1
  28. package/dist/index120.js.map +1 -1
  29. package/dist/index121.js.map +1 -1
  30. package/dist/index122.js.map +1 -1
  31. package/dist/index123.js +1 -1
  32. package/dist/index123.js.map +1 -1
  33. package/dist/index124.js.map +1 -1
  34. package/dist/index125.js.map +1 -1
  35. package/dist/index126.js.map +1 -1
  36. package/dist/index127.js.map +1 -1
  37. package/dist/index128.js.map +1 -1
  38. package/dist/index129.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index130.js.map +1 -1
  41. package/dist/index131.js.map +1 -1
  42. package/dist/index132.js.map +1 -1
  43. package/dist/index133.js.map +1 -1
  44. package/dist/index134.js.map +1 -1
  45. package/dist/index135.js.map +1 -1
  46. package/dist/index136.js.map +1 -1
  47. package/dist/index137.js.map +1 -1
  48. package/dist/index138.js.map +1 -1
  49. package/dist/index139.js.map +1 -1
  50. package/dist/index14.js.map +1 -1
  51. package/dist/index140.js.map +1 -1
  52. package/dist/index141.js.map +1 -1
  53. package/dist/index142.js.map +1 -1
  54. package/dist/index143.js.map +1 -1
  55. package/dist/index144.js.map +1 -1
  56. package/dist/index145.js.map +1 -1
  57. package/dist/index146.js.map +1 -1
  58. package/dist/index147.js.map +1 -1
  59. package/dist/index148.js.map +1 -1
  60. package/dist/index149.js.map +1 -1
  61. package/dist/index15.js.map +1 -1
  62. package/dist/index150.js.map +1 -1
  63. package/dist/index151.js.map +1 -1
  64. package/dist/index152.js.map +1 -1
  65. package/dist/index153.js.map +1 -1
  66. package/dist/index154.js +4 -4
  67. package/dist/index154.js.map +1 -1
  68. package/dist/index155.js.map +1 -1
  69. package/dist/index156.js.map +1 -1
  70. package/dist/index157.js.map +1 -1
  71. package/dist/index158.js.map +1 -1
  72. package/dist/index159.js.map +1 -1
  73. package/dist/index16.js.map +1 -1
  74. package/dist/index160.js.map +1 -1
  75. package/dist/index161.js.map +1 -1
  76. package/dist/index162.js.map +1 -1
  77. package/dist/index163.js.map +1 -1
  78. package/dist/index164.js.map +1 -1
  79. package/dist/index165.js.map +1 -1
  80. package/dist/index166.js.map +1 -1
  81. package/dist/index167.js.map +1 -1
  82. package/dist/index168.js.map +1 -1
  83. package/dist/index169.js.map +1 -1
  84. package/dist/index17.js.map +1 -1
  85. package/dist/index170.js +18 -12
  86. package/dist/index170.js.map +1 -1
  87. package/dist/index171.js.map +1 -1
  88. package/dist/index172.js.map +1 -1
  89. package/dist/index173.js.map +1 -1
  90. package/dist/index174.js.map +1 -1
  91. package/dist/index175.js.map +1 -1
  92. package/dist/index176.js.map +1 -1
  93. package/dist/index177.js.map +1 -1
  94. package/dist/index178.js.map +1 -1
  95. package/dist/index179.js.map +1 -1
  96. package/dist/index18.js.map +1 -1
  97. package/dist/index180.js.map +1 -1
  98. package/dist/index181.js +1 -1
  99. package/dist/index181.js.map +1 -1
  100. package/dist/index182.js +3 -3
  101. package/dist/index182.js.map +1 -1
  102. package/dist/index183.js.map +1 -1
  103. package/dist/index184.js.map +1 -1
  104. package/dist/index185.js.map +1 -1
  105. package/dist/index186.js.map +1 -1
  106. package/dist/index187.js.map +1 -1
  107. package/dist/index188.js.map +1 -1
  108. package/dist/index189.js.map +1 -1
  109. package/dist/index19.js.map +1 -1
  110. package/dist/index190.js +9 -7
  111. package/dist/index190.js.map +1 -1
  112. package/dist/index191.js +4 -4
  113. package/dist/index191.js.map +1 -1
  114. package/dist/index192.js +4 -15
  115. package/dist/index192.js.map +1 -1
  116. package/dist/index193.js +13 -3
  117. package/dist/index193.js.map +1 -1
  118. package/dist/index194.js +2 -2
  119. package/dist/index194.js.map +1 -1
  120. package/dist/index195.js +4 -85
  121. package/dist/index195.js.map +1 -1
  122. package/dist/index196.js +79 -54
  123. package/dist/index196.js.map +1 -1
  124. package/dist/index197.js +68 -7
  125. package/dist/index197.js.map +1 -1
  126. package/dist/index198.js +3 -23
  127. package/dist/index198.js.map +1 -1
  128. package/dist/index199.js +6 -28
  129. package/dist/index199.js.map +1 -1
  130. package/dist/index20.js.map +1 -1
  131. package/dist/index200.js +4 -97
  132. package/dist/index200.js.map +1 -1
  133. package/dist/index201.js +3 -4
  134. package/dist/index201.js.map +1 -1
  135. package/dist/index202.js +23 -24
  136. package/dist/index202.js.map +1 -1
  137. package/dist/index203.js +28 -10
  138. package/dist/index203.js.map +1 -1
  139. package/dist/index204.js +97 -4
  140. package/dist/index204.js.map +1 -1
  141. package/dist/index205.js +4 -12
  142. package/dist/index205.js.map +1 -1
  143. package/dist/index206.js +22 -19
  144. package/dist/index206.js.map +1 -1
  145. package/dist/index207.js +4 -6
  146. package/dist/index207.js.map +1 -1
  147. package/dist/index208.js +4 -15
  148. package/dist/index208.js.map +1 -1
  149. package/dist/index209.js +10 -102
  150. package/dist/index209.js.map +1 -1
  151. package/dist/index210.js +21 -3
  152. package/dist/index210.js.map +1 -1
  153. package/dist/index211.js +5 -23
  154. package/dist/index211.js.map +1 -1
  155. package/dist/index212.js +15 -28
  156. package/dist/index212.js.map +1 -1
  157. package/dist/index213.js +101 -17
  158. package/dist/index213.js.map +1 -1
  159. package/dist/index214.js +3 -7
  160. package/dist/index214.js.map +1 -1
  161. package/dist/index215.js +24 -15
  162. package/dist/index215.js.map +1 -1
  163. package/dist/index216.js +27 -7
  164. package/dist/index216.js.map +1 -1
  165. package/dist/index217.js +17 -24
  166. package/dist/index217.js.map +1 -1
  167. package/dist/index218.js +6 -22
  168. package/dist/index218.js.map +1 -1
  169. package/dist/index219.js +15 -6
  170. package/dist/index219.js.map +1 -1
  171. package/dist/index220.js +8 -5
  172. package/dist/index220.js.map +1 -1
  173. package/dist/index221.js +27 -4
  174. package/dist/index221.js.map +1 -1
  175. package/dist/index222.js +23 -4
  176. package/dist/index222.js.map +1 -1
  177. package/dist/index223.js +6 -24
  178. package/dist/index223.js.map +1 -1
  179. package/dist/index224.js +5 -3
  180. package/dist/index224.js.map +1 -1
  181. package/dist/index225.js +4 -24
  182. package/dist/index225.js.map +1 -1
  183. package/dist/index226.js +4 -23
  184. package/dist/index226.js.map +1 -1
  185. package/dist/index227.js +23 -6
  186. package/dist/index227.js.map +1 -1
  187. package/dist/index228.js +22 -8
  188. package/dist/index228.js.map +1 -1
  189. package/dist/index229.js +3 -19
  190. package/dist/index229.js.map +1 -1
  191. package/dist/index23.js.map +1 -1
  192. package/dist/index230.js +22 -50
  193. package/dist/index230.js.map +1 -1
  194. package/dist/index231.js +7 -20
  195. package/dist/index231.js.map +1 -1
  196. package/dist/index232.js +9 -27
  197. package/dist/index232.js.map +1 -1
  198. package/dist/index233.js +17 -97
  199. package/dist/index233.js.map +1 -1
  200. package/dist/index234.js +50 -33
  201. package/dist/index234.js.map +1 -1
  202. package/dist/index235.js +20 -119
  203. package/dist/index235.js.map +1 -1
  204. package/dist/index236.js +28 -13
  205. package/dist/index236.js.map +1 -1
  206. package/dist/index237.js +98 -4
  207. package/dist/index237.js.map +1 -1
  208. package/dist/index238.js +33 -15
  209. package/dist/index238.js.map +1 -1
  210. package/dist/index239.js +116 -62
  211. package/dist/index239.js.map +1 -1
  212. package/dist/index24.js.map +1 -1
  213. package/dist/index240.js +13 -10
  214. package/dist/index240.js.map +1 -1
  215. package/dist/index241.js +4 -109
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +14 -14
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +64 -12
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +10 -5
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +104 -318
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +14 -66
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +12 -232
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +4 -270
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +313 -309
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index25.js.map +1 -1
  234. package/dist/index250.js +60 -171
  235. package/dist/index250.js.map +1 -1
  236. package/dist/index251.js +252 -8
  237. package/dist/index251.js.map +1 -1
  238. package/dist/index252.js +268 -41
  239. package/dist/index252.js.map +1 -1
  240. package/dist/index253.js +316 -47
  241. package/dist/index253.js.map +1 -1
  242. package/dist/index254.js +179 -9
  243. package/dist/index254.js.map +1 -1
  244. package/dist/index255.js +6 -50
  245. package/dist/index255.js.map +1 -1
  246. package/dist/index256.js +41 -51
  247. package/dist/index256.js.map +1 -1
  248. package/dist/index257.js +50 -7
  249. package/dist/index257.js.map +1 -1
  250. package/dist/index258.js +9 -10
  251. package/dist/index258.js.map +1 -1
  252. package/dist/index259.js +51 -61
  253. package/dist/index259.js.map +1 -1
  254. package/dist/index26.js.map +1 -1
  255. package/dist/index260.js +53 -42
  256. package/dist/index260.js.map +1 -1
  257. package/dist/index261.js +9 -97
  258. package/dist/index261.js.map +1 -1
  259. package/dist/index262.js +31 -47
  260. package/dist/index262.js.map +1 -1
  261. package/dist/index263.js +61 -36
  262. package/dist/index263.js.map +1 -1
  263. package/dist/index264.js +43 -47
  264. package/dist/index264.js.map +1 -1
  265. package/dist/index265.js +92 -46
  266. package/dist/index265.js.map +1 -1
  267. package/dist/index266.js +48 -20
  268. package/dist/index266.js.map +1 -1
  269. package/dist/index267.js +33 -176
  270. package/dist/index267.js.map +1 -1
  271. package/dist/index268.js +49 -48
  272. package/dist/index268.js.map +1 -1
  273. package/dist/index269.js +68 -15
  274. package/dist/index269.js.map +1 -1
  275. package/dist/index27.js.map +1 -1
  276. package/dist/index270.js +20 -65
  277. package/dist/index270.js.map +1 -1
  278. package/dist/index271.js +202 -9
  279. package/dist/index271.js.map +1 -1
  280. package/dist/index272.js +48 -40
  281. package/dist/index272.js.map +1 -1
  282. package/dist/index273.js +60 -91
  283. package/dist/index273.js.map +1 -1
  284. package/dist/index274.js +9 -278
  285. package/dist/index274.js.map +1 -1
  286. package/dist/index275.js +38 -55
  287. package/dist/index275.js.map +1 -1
  288. package/dist/index276.js +91 -10
  289. package/dist/index276.js.map +1 -1
  290. package/dist/index277.js +278 -12
  291. package/dist/index277.js.map +1 -1
  292. package/dist/index278.js +58 -11
  293. package/dist/index278.js.map +1 -1
  294. package/dist/index279.js +11 -64
  295. package/dist/index279.js.map +1 -1
  296. package/dist/index28.js +5 -5
  297. package/dist/index28.js.map +1 -1
  298. package/dist/index280.js +12 -6
  299. package/dist/index280.js.map +1 -1
  300. package/dist/index281.js +3 -25
  301. package/dist/index281.js.map +1 -1
  302. package/dist/index282.js +3 -25
  303. package/dist/index282.js.map +1 -1
  304. package/dist/index283.js +12 -126
  305. package/dist/index283.js.map +1 -1
  306. package/dist/index284.js +63 -51
  307. package/dist/index284.js.map +1 -1
  308. package/dist/index285.js +5 -60
  309. package/dist/index285.js.map +1 -1
  310. package/dist/index286.js +24 -48
  311. package/dist/index286.js.map +1 -1
  312. package/dist/index287.js +24 -6
  313. package/dist/index287.js.map +1 -1
  314. package/dist/index288.js +125 -14
  315. package/dist/index288.js.map +1 -1
  316. package/dist/index289.js +51 -16
  317. package/dist/index289.js.map +1 -1
  318. package/dist/index29.js +5 -7
  319. package/dist/index29.js.map +1 -1
  320. package/dist/index290.js +56 -11
  321. package/dist/index290.js.map +1 -1
  322. package/dist/index291.js +47 -24
  323. package/dist/index291.js.map +1 -1
  324. package/dist/index292.js +7 -51
  325. package/dist/index292.js.map +1 -1
  326. package/dist/index293.js +15 -6
  327. package/dist/index293.js.map +1 -1
  328. package/dist/index294.js +18 -148
  329. package/dist/index294.js.map +1 -1
  330. package/dist/index295.js +12 -59
  331. package/dist/index295.js.map +1 -1
  332. package/dist/index296.js +25 -120
  333. package/dist/index296.js.map +1 -1
  334. package/dist/index297.js +54 -15
  335. package/dist/index297.js.map +1 -1
  336. package/dist/index298.js +5 -866
  337. package/dist/index298.js.map +1 -1
  338. package/dist/index299.js +148 -28
  339. package/dist/index299.js.map +1 -1
  340. package/dist/index3.js.map +1 -1
  341. package/dist/index30.js +6 -8
  342. package/dist/index30.js.map +1 -1
  343. package/dist/index300.js +55 -512
  344. package/dist/index300.js.map +1 -1
  345. package/dist/index301.js +111 -794
  346. package/dist/index301.js.map +1 -1
  347. package/dist/index302.js +14 -7436
  348. package/dist/index302.js.map +1 -1
  349. package/dist/index303.js +862 -6
  350. package/dist/index303.js.map +1 -1
  351. package/dist/index304.js +28 -12
  352. package/dist/index304.js.map +1 -1
  353. package/dist/index305.js +515 -5
  354. package/dist/index305.js.map +1 -1
  355. package/dist/index306.js +803 -5
  356. package/dist/index306.js.map +1 -1
  357. package/dist/index307.js +7426 -468
  358. package/dist/index307.js.map +1 -1
  359. package/dist/index308.js +6 -37
  360. package/dist/index308.js.map +1 -1
  361. package/dist/index309.js +12 -19
  362. package/dist/index309.js.map +1 -1
  363. package/dist/index31.js +5 -11
  364. package/dist/index31.js.map +1 -1
  365. package/dist/index310.js +5 -30
  366. package/dist/index310.js.map +1 -1
  367. package/dist/index311.js +5 -4
  368. package/dist/index311.js.map +1 -1
  369. package/dist/index312.js +461 -51
  370. package/dist/index312.js.map +1 -1
  371. package/dist/index313.js +36 -10
  372. package/dist/index313.js.map +1 -1
  373. package/dist/index314.js +19 -5
  374. package/dist/index314.js.map +1 -1
  375. package/dist/index315.js +29 -8
  376. package/dist/index315.js.map +1 -1
  377. package/dist/index316.js +4 -12
  378. package/dist/index316.js.map +1 -1
  379. package/dist/index317.js +60 -3
  380. package/dist/index317.js.map +1 -1
  381. package/dist/index318.js +10 -15
  382. package/dist/index318.js.map +1 -1
  383. package/dist/index319.js +5 -25
  384. package/dist/index319.js.map +1 -1
  385. package/dist/index32.js +5 -5
  386. package/dist/index32.js.map +1 -1
  387. package/dist/index320.js +9 -41
  388. package/dist/index320.js.map +1 -1
  389. package/dist/index321.js +11 -4
  390. package/dist/index321.js.map +1 -1
  391. package/dist/index322.js +3 -26
  392. package/dist/index322.js.map +1 -1
  393. package/dist/index323.js +15 -18
  394. package/dist/index323.js.map +1 -1
  395. package/dist/index324.js +22 -31
  396. package/dist/index324.js.map +1 -1
  397. package/dist/index325.js +41 -5
  398. package/dist/index325.js.map +1 -1
  399. package/dist/index326.js +4 -8
  400. package/dist/index326.js.map +1 -1
  401. package/dist/index327.js +25 -8
  402. package/dist/index327.js.map +1 -1
  403. package/dist/index328.js +19 -9
  404. package/dist/index328.js.map +1 -1
  405. package/dist/index329.js +34 -10
  406. package/dist/index329.js.map +1 -1
  407. package/dist/index33.js +9 -6
  408. package/dist/index33.js.map +1 -1
  409. package/dist/index330.js +5 -7
  410. package/dist/index330.js.map +1 -1
  411. package/dist/index331.js +9 -75
  412. package/dist/index331.js.map +1 -1
  413. package/dist/index332.js +8 -162
  414. package/dist/index332.js.map +1 -1
  415. package/dist/index333.js +9 -114
  416. package/dist/index333.js.map +1 -1
  417. package/dist/index334.js +10 -14
  418. package/dist/index334.js.map +1 -1
  419. package/dist/index335.js +7 -80
  420. package/dist/index335.js.map +1 -1
  421. package/dist/index336.js +68 -39
  422. package/dist/index336.js.map +1 -1
  423. package/dist/index337.js +160 -11
  424. package/dist/index337.js.map +1 -1
  425. package/dist/index338.js +113 -15
  426. package/dist/index338.js.map +1 -1
  427. package/dist/index339.js +13 -100
  428. package/dist/index339.js.map +1 -1
  429. package/dist/index34.js +6 -6
  430. package/dist/index34.js.map +1 -1
  431. package/dist/index340.js +73 -49
  432. package/dist/index340.js.map +1 -1
  433. package/dist/index341.js +34 -96
  434. package/dist/index341.js.map +1 -1
  435. package/dist/index342.js +12 -70
  436. package/dist/index342.js.map +1 -1
  437. package/dist/index343.js +14 -111
  438. package/dist/index343.js.map +1 -1
  439. package/dist/index344.js +94 -48
  440. package/dist/index344.js.map +1 -1
  441. package/dist/index345.js +50 -37
  442. package/dist/index345.js.map +1 -1
  443. package/dist/index346.js +89 -125
  444. package/dist/index346.js.map +1 -1
  445. package/dist/index347.js +52 -123
  446. package/dist/index347.js.map +1 -1
  447. package/dist/index348.js +54 -197
  448. package/dist/index348.js.map +1 -1
  449. package/dist/index349.js +44 -229
  450. package/dist/index349.js.map +1 -1
  451. package/dist/index35.js +9 -9
  452. package/dist/index35.js.map +1 -1
  453. package/dist/index350.js +42 -308
  454. package/dist/index350.js.map +1 -1
  455. package/dist/index351.js +144 -5
  456. package/dist/index351.js.map +1 -1
  457. package/dist/index352.js +142 -6
  458. package/dist/index352.js.map +1 -1
  459. package/dist/index353.js +257 -7
  460. package/dist/index353.js.map +1 -1
  461. package/dist/index354.js +241 -6
  462. package/dist/index354.js.map +1 -1
  463. package/dist/index355.js +309 -6
  464. package/dist/index355.js.map +1 -1
  465. package/dist/index356.js +5 -21
  466. package/dist/index356.js.map +1 -1
  467. package/dist/index357.js +6 -10
  468. package/dist/index357.js.map +1 -1
  469. package/dist/index358.js +7 -128
  470. package/dist/index358.js.map +1 -1
  471. package/dist/index359.js +6 -42
  472. package/dist/index359.js.map +1 -1
  473. package/dist/index36.js +12 -7
  474. package/dist/index36.js.map +1 -1
  475. package/dist/index360.js +6 -68
  476. package/dist/index360.js.map +1 -1
  477. package/dist/index361.js +20 -116
  478. package/dist/index361.js.map +1 -1
  479. package/dist/index362.js +10 -490
  480. package/dist/index362.js.map +1 -1
  481. package/dist/index363.js +128 -7
  482. package/dist/index363.js.map +1 -1
  483. package/dist/index364.js +42 -13
  484. package/dist/index364.js.map +1 -1
  485. package/dist/index365.js +67 -3
  486. package/dist/index365.js.map +1 -1
  487. package/dist/index366.js +115 -45
  488. package/dist/index366.js.map +1 -1
  489. package/dist/index367.js +490 -11
  490. package/dist/index367.js.map +1 -1
  491. package/dist/index368.js +8 -26
  492. package/dist/index368.js.map +1 -1
  493. package/dist/index369.js +12 -41
  494. package/dist/index369.js.map +1 -1
  495. package/dist/index37.js +13 -5
  496. package/dist/index37.js.map +1 -1
  497. package/dist/index370.js +4 -36
  498. package/dist/index370.js.map +1 -1
  499. package/dist/index371.js +45 -15
  500. package/dist/index371.js.map +1 -1
  501. package/dist/index372.js +24 -41
  502. package/dist/index372.js.map +1 -1
  503. package/dist/index373.js +3 -12
  504. package/dist/index373.js.map +1 -1
  505. package/dist/index374.js +27 -11
  506. package/dist/index374.js.map +1 -1
  507. package/dist/index375.js +40 -50
  508. package/dist/index375.js.map +1 -1
  509. package/dist/index376.js +37 -40
  510. package/dist/index376.js.map +1 -1
  511. package/dist/index377.js +12 -10
  512. package/dist/index377.js.map +1 -1
  513. package/dist/index378.js +40 -4
  514. package/dist/index378.js.map +1 -1
  515. package/dist/index379.js +7 -4
  516. package/dist/index379.js.map +1 -1
  517. package/dist/index38.js +5 -5
  518. package/dist/index38.js.map +1 -1
  519. package/dist/index380.js +29 -8
  520. package/dist/index380.js.map +1 -1
  521. package/dist/index381.js +9 -303
  522. package/dist/index381.js.map +1 -1
  523. package/dist/index382.js +57 -4
  524. package/dist/index382.js.map +1 -1
  525. package/dist/index383.js +40 -22
  526. package/dist/index383.js.map +1 -1
  527. package/dist/index384.js +15 -105
  528. package/dist/index384.js.map +1 -1
  529. package/dist/index385.js +5 -22
  530. package/dist/index385.js.map +1 -1
  531. package/dist/index386.js +10 -22
  532. package/dist/index386.js.map +1 -1
  533. package/dist/index387.js +289 -16
  534. package/dist/index387.js.map +1 -1
  535. package/dist/index388.js +4 -12
  536. package/dist/index388.js.map +1 -1
  537. package/dist/index389.js +20 -112
  538. package/dist/index389.js.map +1 -1
  539. package/dist/index39.js +6 -10
  540. package/dist/index39.js.map +1 -1
  541. package/dist/index390.js +3 -9
  542. package/dist/index390.js.map +1 -1
  543. package/dist/index391.js +104 -27
  544. package/dist/index391.js.map +1 -1
  545. package/dist/index392.js +20 -9
  546. package/dist/index392.js.map +1 -1
  547. package/dist/index393.js +20 -6
  548. package/dist/index393.js.map +1 -1
  549. package/dist/index394.js +14 -253
  550. package/dist/index394.js.map +1 -1
  551. package/dist/index395.js +12 -10
  552. package/dist/index395.js.map +1 -1
  553. package/dist/index396.js +117 -11
  554. package/dist/index396.js.map +1 -1
  555. package/dist/index397.js +8 -6
  556. package/dist/index397.js.map +1 -1
  557. package/dist/index398.js +32 -22
  558. package/dist/index398.js.map +1 -1
  559. package/dist/index399.js +9 -23
  560. package/dist/index399.js.map +1 -1
  561. package/dist/index4.js.map +1 -1
  562. package/dist/index40.js +8 -11
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index400.js +6 -105
  565. package/dist/index400.js.map +1 -1
  566. package/dist/index401.js +3 -15
  567. package/dist/index401.js.map +1 -1
  568. package/dist/index402.js +251 -10
  569. package/dist/index402.js.map +1 -1
  570. package/dist/index403.js +9 -7
  571. package/dist/index403.js.map +1 -1
  572. package/dist/index404.js +11 -239
  573. package/dist/index404.js.map +1 -1
  574. package/dist/index405.js +7 -28
  575. package/dist/index405.js.map +1 -1
  576. package/dist/index406.js +21 -37
  577. package/dist/index406.js.map +1 -1
  578. package/dist/index407.js +21 -10
  579. package/dist/index407.js.map +1 -1
  580. package/dist/index408.js +97 -117
  581. package/dist/index408.js.map +1 -1
  582. package/dist/index409.js +15 -40
  583. package/dist/index409.js.map +1 -1
  584. package/dist/index41.js +6 -7
  585. package/dist/index41.js.map +1 -1
  586. package/dist/index410.js +11 -25
  587. package/dist/index410.js.map +1 -1
  588. package/dist/index411.js +7 -9
  589. package/dist/index411.js.map +1 -1
  590. package/dist/index412.js +3 -24
  591. package/dist/index412.js.map +1 -1
  592. package/dist/index413.js +226 -15
  593. package/dist/index413.js.map +1 -1
  594. package/dist/index414.js +24 -11
  595. package/dist/index414.js.map +1 -1
  596. package/dist/index415.js +38 -4
  597. package/dist/index415.js.map +1 -1
  598. package/dist/index416.js +11 -324
  599. package/dist/index416.js.map +1 -1
  600. package/dist/index417.js +119 -62
  601. package/dist/index417.js.map +1 -1
  602. package/dist/index418.js +42 -4
  603. package/dist/index418.js.map +1 -1
  604. package/dist/index419.js +25 -28
  605. package/dist/index419.js.map +1 -1
  606. package/dist/index42.js +6 -4
  607. package/dist/index42.js.map +1 -1
  608. package/dist/index420.js +11 -470
  609. package/dist/index420.js.map +1 -1
  610. package/dist/index421.js +23 -268
  611. package/dist/index421.js.map +1 -1
  612. package/dist/index422.js +24 -0
  613. package/dist/index422.js.map +1 -0
  614. package/dist/index423.js +17 -0
  615. package/dist/index423.js.map +1 -0
  616. package/dist/index424.js +8 -0
  617. package/dist/index424.js.map +1 -0
  618. package/dist/index425.js +328 -0
  619. package/dist/index425.js.map +1 -0
  620. package/dist/index426.js +66 -0
  621. package/dist/index426.js.map +1 -0
  622. package/dist/index427.js +7 -0
  623. package/dist/index427.js.map +1 -0
  624. package/dist/index428.js +31 -0
  625. package/dist/index428.js.map +1 -0
  626. package/dist/index429.js +474 -0
  627. package/dist/index429.js.map +1 -0
  628. package/dist/index43.js +68 -7
  629. package/dist/index43.js.map +1 -1
  630. package/dist/index430.js +272 -0
  631. package/dist/index430.js.map +1 -0
  632. package/dist/index44.js +7 -6
  633. package/dist/index44.js.map +1 -1
  634. package/dist/index45.js +31 -7
  635. package/dist/index45.js.map +1 -1
  636. package/dist/index46.js +10 -10
  637. package/dist/index46.js.map +1 -1
  638. package/dist/index47.js +15 -13
  639. package/dist/index47.js.map +1 -1
  640. package/dist/index48.js +201 -7
  641. package/dist/index48.js.map +1 -1
  642. package/dist/index49.js +20 -6
  643. package/dist/index49.js.map +1 -1
  644. package/dist/index5.js.map +1 -1
  645. package/dist/index50.js +16 -6
  646. package/dist/index50.js.map +1 -1
  647. package/dist/index51.js +123 -14
  648. package/dist/index51.js.map +1 -1
  649. package/dist/index52.js +19 -8
  650. package/dist/index52.js.map +1 -1
  651. package/dist/index53.js +5 -7
  652. package/dist/index53.js.map +1 -1
  653. package/dist/index54.js +9 -68
  654. package/dist/index54.js.map +1 -1
  655. package/dist/index55.js +7 -7
  656. package/dist/index55.js.map +1 -1
  657. package/dist/index56.js +9 -31
  658. package/dist/index56.js.map +1 -1
  659. package/dist/index57.js +13 -10
  660. package/dist/index57.js.map +1 -1
  661. package/dist/index58.js +8 -15
  662. package/dist/index58.js.map +1 -1
  663. package/dist/index59.js +10 -201
  664. package/dist/index59.js.map +1 -1
  665. package/dist/index6.js.map +1 -1
  666. package/dist/index60.js +13 -20
  667. package/dist/index60.js.map +1 -1
  668. package/dist/index61.js +9 -16
  669. package/dist/index61.js.map +1 -1
  670. package/dist/index62.js +10 -123
  671. package/dist/index62.js.map +1 -1
  672. package/dist/index63.js +5 -19
  673. package/dist/index63.js.map +1 -1
  674. package/dist/index64.js +42 -9
  675. package/dist/index64.js.map +1 -1
  676. package/dist/index65.js +387 -9
  677. package/dist/index65.js.map +1 -1
  678. package/dist/index66.js +37 -14
  679. package/dist/index66.js.map +1 -1
  680. package/dist/index67.js +21 -9
  681. package/dist/index67.js.map +1 -1
  682. package/dist/index68.js +4 -9
  683. package/dist/index68.js.map +1 -1
  684. package/dist/index69.js +6 -4
  685. package/dist/index69.js.map +1 -1
  686. package/dist/index7.js +3 -3
  687. package/dist/index7.js.map +1 -1
  688. package/dist/index70.js +57 -41
  689. package/dist/index70.js.map +1 -1
  690. package/dist/index71.js +5 -387
  691. package/dist/index71.js.map +1 -1
  692. package/dist/index72.js +6 -37
  693. package/dist/index72.js.map +1 -1
  694. package/dist/index73.js +5 -21
  695. package/dist/index73.js.map +1 -1
  696. package/dist/index74.js +4 -56
  697. package/dist/index74.js.map +1 -1
  698. package/dist/index75.js +7 -7
  699. package/dist/index75.js.map +1 -1
  700. package/dist/index76.js +6 -5
  701. package/dist/index76.js.map +1 -1
  702. package/dist/index77.js +6 -5
  703. package/dist/index77.js.map +1 -1
  704. package/dist/index78.js +11 -5
  705. package/dist/index78.js.map +1 -1
  706. package/dist/index79.js +11 -5
  707. package/dist/index79.js.map +1 -1
  708. package/dist/index8.js.map +1 -1
  709. package/dist/index80.js +7 -6
  710. package/dist/index80.js.map +1 -1
  711. package/dist/index81.js +10 -6
  712. package/dist/index81.js.map +1 -1
  713. package/dist/index82.js +5 -8
  714. package/dist/index82.js.map +1 -1
  715. package/dist/index83.js +6 -7
  716. package/dist/index83.js.map +1 -1
  717. package/dist/index84.js.map +1 -1
  718. package/dist/index85.js.map +1 -1
  719. package/dist/index86.js.map +1 -1
  720. package/dist/index87.js +2 -2
  721. package/dist/index87.js.map +1 -1
  722. package/dist/index88.js +31 -31
  723. package/dist/index88.js.map +1 -1
  724. package/dist/index89.js +1 -1
  725. package/dist/index89.js.map +1 -1
  726. package/dist/index9.js.map +1 -1
  727. package/dist/index90.js.map +1 -1
  728. package/dist/index91.js.map +1 -1
  729. package/dist/index92.js.map +1 -1
  730. package/dist/index93.js.map +1 -1
  731. package/dist/index94.js.map +1 -1
  732. package/dist/index95.js.map +1 -1
  733. package/dist/index96.js.map +1 -1
  734. package/dist/index97.js.map +1 -1
  735. package/dist/index98.js.map +1 -1
  736. package/dist/index99.js.map +1 -1
  737. package/package.json +13 -13
  738. package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index329.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;;AA2BA,IAAI,IAAkC,MAAM,IAAe,QAKhD,IAAqB,MAAM,IAAa,eAAyB,IAAoB,QAAa,IAAe,YAAsB,IAAoB,IAAe,MAWjL,IAAuC,OAAO,OAAY,IAAa,eAAyB,IAAoB,QAAa,IAAe,YAAsB,GAAG,GAClK,IAAoC,IAE/C,QAAQ,EAAuB,IAAI,MAI/B,IAAiC,OAErC,MAAM,IAAkC,QAElC,IAAoC,KAAK,GAAG;AASlD,SAAwB,EAAoB,GAAQ;CAClD,OAAO,EAAO,UAAA,KAAgC,EAA2B,KAAK,CAAM;AACtF;AAQA,SAAgB,EAAyB,GAAQ;CAC/C,OAAO,EAAiC,KAAK,CAAM;AACrD"}
1
+ {"version":3,"file":"index329.js","names":["Metadata","stripIddPrefix","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","extractCountryCallingCode","number","isNumberWithIddPrefix","numberWithoutIDD","country","defaultCountry","defaultCallingCode","metadataJson","_extractCountryCallin","countryCallingCode","shorterNumber","metadata","i","_countryCallingCode"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js"],"sourcesContent":["import stripIddPrefix from './stripIddPrefix.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport Metadata from '../metadata.js';\nimport { MAX_LENGTH_COUNTRY_CODE } from '../constants.js';\n\n/**\n * Attempts to extract a calling code from a phone number.\n * * If the phone number is found to be \"international\":\n * * It will attempt to identify the calling code part of it and whether that part is complete and valid.\n * * If the calling code part is complete and valid, it will return two properties:\n * that calling code part (without `+`) and the rest of the digits.\n * * Otherwise, i.e. if the calling code part is incomplete or invalid,\n * it will return an empty object.\n * * Otherwise, i.e. if the phone number is national, there's no callind code to extract\n * so it will just return the originally-passed `number` string as the only property.\n * @param {string} number — Phone number digits (possibly with a `+`).\n * @param {string} [country] — Country.\n * @param {string} [defaultCountry] — Default country.\n * @param {string} [defaultCallingCode] — Default calling code (some phone numbering plans are non-geographic).\n * @param {object} metadataJson\n * @return {object} `{ countryCallingCodeSource: string?, countryCallingCode: string?, number: string }`, where `countryCallingCodeSource` tells how the returned calling code was extracted (if it was extracted), `countryCallingCode` is the calling code that was extracted from the input `number` string, and `number` is the originally passed `number` without the extracted calling code (and without a `+`). If the calling code is present but incomplete or invalid, it will return an empty object.\n * @example\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\n * extractCountryCallingCode('2133734253', 'US', null, null, metadata)\n * extractCountryCallingCode('2133734253', null, 'US', null, metadata)\n * extractCountryCallingCode('2133734253', null, null, '1', metadata)\n * extractCountryCallingCode('+12133734253', null, null, null, metadata)\n * extractCountryCallingCode('+12133734253', null, 'RU', null, metadata)\n */\nexport default function extractCountryCallingCode(number, country, defaultCountry, defaultCallingCode, metadataJson) {\n if (!number) {\n return {};\n }\n var isNumberWithIddPrefix;\n\n // If this is not an international phone number,\n // then either extract an \"IDD\" prefix, or extract a\n // country calling code from a number by autocorrecting it\n // by prepending a leading `+` in cases when it starts\n // with the country calling code.\n // https://wikitravel.org/en/International_dialling_prefix\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (number[0] !== '+') {\n // Convert an \"out-of-country\" dialing phone number\n // to a proper international phone number.\n var numberWithoutIDD = stripIddPrefix(number, country || defaultCountry, defaultCallingCode, metadataJson);\n // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n if (numberWithoutIDD && numberWithoutIDD !== number) {\n isNumberWithIddPrefix = true;\n number = '+' + numberWithoutIDD;\n } else {\n // Check to see if the number starts with the country calling code\n // for the default country. If so, we remove the country calling code,\n // and do some checks on the validity of the number before and after.\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (country || defaultCountry || defaultCallingCode) {\n var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadataJson),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n shorterNumber = _extractCountryCallin.number;\n if (countryCallingCode) {\n return {\n countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',\n countryCallingCode: countryCallingCode,\n number: shorterNumber\n };\n }\n }\n return {\n // No need to set it to `UNSPECIFIED`. It can be just `undefined`.\n // countryCallingCodeSource: 'UNSPECIFIED',\n number: number\n };\n }\n }\n\n // `number` can only be international at this point.\n\n // Fast abortion: country codes do not begin with a '0'\n if (number[1] === '0') {\n return {};\n }\n var metadata = new Metadata(metadataJson);\n\n // The thing with country phone codes\n // is that they are orthogonal to each other\n // i.e. there's no such country phone code A\n // for which country phone code B exists\n // where B starts with A.\n // Therefore, while scanning digits,\n // if a valid country code is found,\n // that means that it is the country code.\n //\n var i = 2;\n while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n var _countryCallingCode = number.slice(1, i);\n if (metadata.hasCallingCode(_countryCallingCode)) {\n metadata.selectNumberingPlan(_countryCallingCode);\n return {\n countryCallingCodeSource: isNumberWithIddPrefix ? 'FROM_NUMBER_WITH_IDD' : 'FROM_NUMBER_WITH_PLUS_SIGN',\n countryCallingCode: _countryCallingCode,\n number: number.slice(i)\n };\n }\n i++;\n }\n return {};\n}\n\n// The possible values for the returned `countryCallingCodeSource` are:\n//\n// Copy-pasted from:\n// https://github.com/google/libphonenumber/blob/master/resources/phonenumber.proto\n//\n// // The source from which the country_code is derived. This is not set in the\n// // general parsing method, but in the method that parses and keeps raw_input.\n// // New fields could be added upon request.\n// enum CountryCodeSource {\n// // Default value returned if this is not set, because the phone number was\n// // created using parse, not parseAndKeepRawInput. hasCountryCodeSource will\n// // return false if this is the case.\n// UNSPECIFIED = 0;\n//\n// // The country_code is derived based on a phone number with a leading \"+\",\n// // e.g. the French number \"+33 1 42 68 53 00\".\n// FROM_NUMBER_WITH_PLUS_SIGN = 1;\n//\n// // The country_code is derived based on a phone number with a leading IDD,\n// // e.g. the French number \"011 33 1 42 68 53 00\", as it is dialled from US.\n// FROM_NUMBER_WITH_IDD = 5;\n//\n// // The country_code is derived based on a phone number without a leading\n// // \"+\", e.g. the French number \"33 1 42 68 53 00\" when defaultCountry is\n// // supplied as France.\n// FROM_NUMBER_WITHOUT_PLUS_SIGN = 10;\n//\n// // The country_code is derived NOT based on the phone number itself, but\n// // from the defaultCountry parameter provided in the parsing function by the\n// // clients. This happens mostly for numbers written in the national format\n// // (without country code). For example, this would be set when parsing the\n// // French number \"01 42 68 53 00\", when defaultCountry is supplied as\n// // France.\n// FROM_DEFAULT_COUNTRY = 20;\n// }\n//# sourceMappingURL=extractCountryCallingCode.js.map"],"ignoreList":[0],"mappings":";;;;AA6BA,SAAwBG,EAA0B,GAAQ,GAAS,GAAgB,GAAoB,GAAc;CACnH,IAAI,CAACC,GACH,OAAO,CAAC;CAEV,IAAIC;CASJ,IAAID,EAAO,OAAO,KAAK;EAGrB,IAAIE,IAAmBL,EAAeG,GAAQG,KAAWC,GAAgBC,GAAoBC,CAAY;EAIzG,IAAIJ,KAAoBA,MAAqBF,GAE3C,AADA,IAAwB,IACxB,IAAS,MAAME;OACV;GAKL,IAAIC,KAAWC,KAAkBC,GAAoB;IACnD,IAAIE,IAAwBT,EAAgEE,GAAQG,GAASC,GAAgBC,GAAoBC,CAAY,GAC3JE,IAAqBD,EAAsB,oBAC3CE,IAAgBF,EAAsB;IACxC,IAAIC,GACF,OAAO;KACL,0BAA0B;KACN;KACpB,QAAQC;IACV;GAEJ;GACA,OAAO,EAGG,UACV;EACF;CACF;CAKA,IAAIT,EAAO,OAAO,KAChB,OAAO,CAAC;CAcV,KAZA,IAAIU,IAAW,IAAId,EAASU,CAAY,GAWpCK,IAAI,GACDA,IAAI,KAAA,KAAgCA,KAAKX,EAAO,SAAQ;EAC7D,IAAIY,IAAsBZ,EAAO,MAAM,GAAGW,CAAC;EAC3C,IAAID,EAAS,eAAeE,CAAmB,GAE7C,OADAF,EAAS,oBAAoBE,CAAmB,GACzC;GACL,0BAA0BX,IAAwB,yBAAyB;GAC3E,oBAAoBW;GACpB,QAAQZ,EAAO,MAAMW,CAAC;EACxB;EAEF;CACF;CACA,OAAO,CAAC;AACV"}
package/dist/index33.js CHANGED
@@ -1,10 +1,13 @@
1
- import { constructFrom as e } from "./index24.js";
2
- //#region ../../node_modules/date-fns/_lib/normalizeDates.js
3
- function t(t, ...n) {
4
- let r = e.bind(null, t || n.find((e) => typeof e == "object"));
5
- return n.map(r);
1
+ import { millisecondsInDay as e } from "./index23.js";
2
+ import { getTimezoneOffsetInMilliseconds as t } from "./index30.js";
3
+ import { normalizeDates as n } from "./index31.js";
4
+ import r from "./index32.js";
5
+ //#region ../../node_modules/date-fns/differenceInCalendarDays.js
6
+ function i(i, a, o) {
7
+ let [s, c] = n(o?.in, i, a), l = r(s), u = r(c), d = +l - t(l), f = +u - t(u);
8
+ return Math.round((d - f) / e);
6
9
  }
7
10
  //#endregion
8
- export { t as normalizeDates };
11
+ export { i as default, i as differenceInCalendarDays };
9
12
 
10
13
  //# sourceMappingURL=index33.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index33.js","names":[],"sources":["../../../node_modules/date-fns/_lib/normalizeDates.js"],"sourcesContent":["import { constructFrom } from \"../constructFrom.js\";\n\nexport function normalizeDates(context, ...dates) {\n const normalize = constructFrom.bind(\n null,\n context || dates.find((date) => typeof date === \"object\"),\n );\n return dates.map(normalize);\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAgB,EAAe,GAAS,GAAG,GAAO;CAChD,IAAM,IAAY,EAAc,KAC9B,MACA,KAAW,EAAM,MAAM,MAAS,OAAO,KAAS,QAAQ,CAC1D;CACA,OAAO,EAAM,IAAI,CAAS;AAC5B"}
1
+ {"version":3,"file":"index33.js","names":["startOfDay","differenceInCalendarDays","laterDate_","earlierDate_","normalizeDates","options","laterDate","earlierDate","laterStartOfDay","earlierStartOfDay","laterTimestamp","getTimezoneOffsetInMilliseconds","earlierTimestamp","millisecondsInDay"],"sources":["../../../node_modules/date-fns/differenceInCalendarDays.js"],"sourcesContent":["import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n"],"ignoreList":[0],"mappings":";;;;;AAwCA,SAAgBC,EAAyB,GAAW,GAAa,GAAS;CACxE,IAAM,CAACC,GAAYC,KAAgBC,EACjCC,GAAS,IACTC,GACAC,CACF,GAEMC,IAAkBR,EAAWE,CAAU,GACvCO,IAAoBT,EAAWG,CAAY,GAE3CO,IACJ,CAACF,IAAkBG,EAAgCH,CAAe,GAC9DI,IACJ,CAACH,IAAoBE,EAAgCF,CAAiB;CAKxE,OAAO,KAAK,OAAOC,IAAiBE,KAAoBC,CAAiB;AAC3E"}
package/dist/index330.js CHANGED
@@ -1,11 +1,9 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js
2
- function e(e) {
3
- var t = e.number, n = e.ext;
4
- if (!t) return "";
5
- if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
6
- return `tel:${t}${n ? ";ext=" + n : ""}`;
1
+ import { VALID_PUNCTUATION as e } from "./index322.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
3
+ function t(t) {
4
+ return t.replace(RegExp(`[${e}]+`, "g"), " ").trim();
7
5
  }
8
6
  //#endregion
9
- export { e as formatRFC3966 };
7
+ export { t as default };
10
8
 
11
9
  //# sourceMappingURL=index330.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index330.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js"],"sourcesContent":["function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport isViablePhoneNumber from './isViablePhoneNumber.js';\n\n// https://www.ietf.org/rfc/rfc3966.txt\n\n/**\n * @param {string} text - Phone URI (RFC 3966).\n * @return {object} `{ ?number, ?ext }`.\n */\nexport function parseRFC3966(text) {\n var number;\n var ext;\n\n // Replace \"tel:\" with \"tel=\" for parsing convenience.\n text = text.replace(/^tel:/, 'tel=');\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n switch (name) {\n case 'tel':\n number = value;\n break;\n case 'ext':\n ext = value;\n break;\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n break;\n }\n }\n\n // If the phone number is not viable, then abort.\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n var result = {\n number: number\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\n * @param {object} - `{ ?number, ?extension }`.\n * @return {string} Phone URI (RFC 3966).\n */\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n if (!number) {\n return '';\n }\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n//# sourceMappingURL=RFC3966.js.map"],"x_google_ignoreList":[0],"mappings":";AA6DA,SAAgB,EAAc,GAAM;CAClC,IAAI,IAAS,EAAK,QAChB,IAAM,EAAK;CACb,IAAI,CAAC,GACH,OAAO;CAET,IAAI,EAAO,OAAO,KAChB,MAAU,MAAM,+DAA+D;CAEjF,OAAO,OAAc,IAAe,IAAM,UAAU,IAAM;AAC5D"}
1
+ {"version":3,"file":"index330.js","names":["applyInternationalSeparatorStyle","formattedNumber","VALID_PUNCTUATION"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js"],"sourcesContent":["import { VALID_PUNCTUATION } from '../constants.js';\n\n// Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\nexport default function applyInternationalSeparatorStyle(formattedNumber) {\n return formattedNumber.replace(new RegExp(\"[\".concat(VALID_PUNCTUATION, \"]+\"), 'g'), ' ').trim();\n}\n//# sourceMappingURL=applyInternationalSeparatorStyle.js.map"],"ignoreList":[0],"mappings":";;AAgCA,SAAwBA,EAAiC,GAAiB;CACxE,OAAOC,EAAgB,QAAY,OAAO,IAAWC,OAA0B,GAAG,GAAG,GAAG,CAAC,CAAC,KAAK;AACjG"}
package/dist/index331.js CHANGED
@@ -1,79 +1,13 @@
1
- import e, { getCountryCallingCode as t } from "./index307.js";
2
- import n from "./index311.js";
3
- import r from "./index326.js";
4
- import i from "./index327.js";
5
- import { formatRFC3966 as a } from "./index330.js";
6
- //#region ../../node_modules/libphonenumber-js/es6/format.js
7
- var o = { formatExtension: function(e, t, n) {
8
- return `${e}${n.ext()}${t}`;
9
- } };
10
- function s(t, n, r, i) {
11
- r = r ? f({}, o, r) : o;
12
- var s = new e(i);
13
- if (t.country && t.country !== "001") {
14
- if (!s.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
15
- s.selectNumberingPlan(t.country);
16
- } else if (t.countryCallingCode) s.selectNumberingPlan(t.countryCallingCode);
17
- else return t.phone || "";
18
- var l = s.countryCallingCode(), p = r.v2 ? t.nationalNumber : t.phone, m;
19
- switch (n) {
20
- case "NATIONAL": return p ? (m = c(p, t.carrierCode, "NATIONAL", s, r), u(m, t.ext, s, r.formatExtension)) : "";
21
- case "INTERNATIONAL": return p ? (m = c(p, null, "INTERNATIONAL", s, r), m = `+${l} ${m}`, u(m, t.ext, s, r.formatExtension)) : `+${l}`;
22
- case "E.164": return `+${l}${p}`;
23
- case "RFC3966": return a({
24
- number: `+${l}${p}`,
25
- ext: t.ext
26
- });
27
- case "IDD":
28
- if (!r.fromCountry) return;
29
- var h = d(p, t.carrierCode, l, r.fromCountry, s);
30
- return h ? u(h, t.ext, s, r.formatExtension) : void 0;
31
- default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${n}"`);
32
- }
33
- }
34
- function c(e, t, n, i, a) {
35
- var o = l(i.formats(), e);
36
- return o ? r(e, o, {
37
- useInternationalFormat: n === "INTERNATIONAL",
38
- withNationalPrefix: !(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && a && a.nationalPrefix === !1),
39
- carrierCode: t,
40
- metadata: i
41
- }) : e;
42
- }
43
- function l(e, t) {
44
- return p(e, function(e) {
45
- if (e.leadingDigitsPatterns().length > 0) {
46
- var r = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
47
- if (t.search(r) !== 0) return !1;
48
- }
49
- return n(t, e.pattern());
50
- });
51
- }
52
- function u(e, t, n, r) {
53
- return t ? r(e, t, n) : e;
54
- }
55
- function d(e, n, r, a, o) {
56
- if (t(a, o.metadata) === r) {
57
- var s = c(e, n, "NATIONAL", o);
58
- return r === "1" ? r + " " + s : s;
59
- }
60
- var l = i(a, void 0, o.metadata);
61
- if (l) return `${l} ${r} ${c(e, null, "INTERNATIONAL", o)}`;
62
- }
63
- function f() {
64
- for (var e = 1, t = [...arguments]; e < t.length;) {
65
- if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
66
- e++;
67
- }
68
- return t[0];
69
- }
70
- function p(e, t) {
71
- for (var n = 0; n < e.length;) {
72
- if (t(e[n])) return e[n];
73
- n++;
74
- }
1
+ import e from "./index330.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
3
+ var t = /(\$\d)/;
4
+ function n(n, r, i) {
5
+ var a = i.useInternationalFormat, o = i.withNationalPrefix;
6
+ i.carrierCode, i.metadata;
7
+ var s = n.replace(new RegExp(r.pattern()), a ? r.internationalFormat() : o && r.nationalPrefixFormattingRule() ? r.format().replace(t, r.nationalPrefixFormattingRule()) : r.format());
8
+ return a ? e(s) : s;
75
9
  }
76
10
  //#endregion
77
- export { l as chooseFormatForNumber, s as default };
11
+ export { t as FIRST_GROUP_PATTERN, n as default };
78
12
 
79
13
  //# sourceMappingURL=index331.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index331.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/format.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 matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n\n/**\n * Formats a phone number.\n *\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\n *\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\n *\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\n * @param {string} format\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {string}\n */\nexport default function formatNumber(input, format, options, metadataJson) {\n // Apply default options.\n if (options) {\n // Using ES6 \"rest spread\" syntax here didn't work with `babel`/`istanbul`\n // for some weird reason: this line of code would cause the code coverage\n // to show as not 100%. That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // options = { ...DEFAULT_OPTIONS, ...options }\n //\n options = merge({}, DEFAULT_OPTIONS, options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n var metadata = new Metadata(metadataJson);\n\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance.\n // Also, according to the `PhoneNumber` class source code, `country` can't be \"001\".\n // It means that normally `input.country` or `input.countryCallingCode` is supposed\n // to be present because either of the two is always required to exist in a `PhoneNumber` instance.\n // This means that realistically, it's gonna step into either the first `if`\n // or the following `else if`, and normally it won't even reach the legacy-compatibility\n // `else return input.phone || ''` part.\n // So normally, it won't ever return an empty string here.\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n var number;\n switch (format) {\n case 'NATIONAL':\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance,\n // and a `PhoneNumber` class instance is always required to have a `nationalNumber`.\n // This means that the `if (!nationalNumber)` below is just for legacy-compatibility\n // and it normally can't really happen, so normally it won't ever return an empty string here.\n if (!nationalNumber) {\n return '';\n }\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n case 'IDD':\n // If the required `fromCountry` parameter is not passed, it will return `undefined`.\n if (!options.fromCountry) {\n return;\n // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n // If the country of the phone number doesn't support IDD calling, it will return `undefined`.\n if (!formattedNumber) {\n return;\n }\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n if (!format) {\n return number;\n }\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\nexport function chooseFormatForNumber(availableFormats, nationalNumber) {\n // Using a `for ... of` loop here didn't work with `babel`/`istanbul`:\n // for some weird reason, it showed code coverage less than 100%.\n // That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // for (const format of availableFormats) { ... }\n //\n return pickFirstMatchingElement(availableFormats, function (format) {\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];\n // If leading digits don't match then move on to the next phone number format\n if (nationalNumber.search(lastLeadingDigitsPattern) !== 0) {\n return false;\n }\n }\n // Check that the national number matches the phone number format regular expression\n return matchesEntirely(nationalNumber, format.pattern());\n });\n}\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata);\n // When calling within the same country calling code.\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata);\n // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n }\n // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n return formattedNumber;\n }\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\nfunction merge() {\n var i = 1;\n for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {\n objects[_key] = arguments[_key];\n }\n while (i < objects.length) {\n if (objects[i]) {\n for (var key in objects[i]) {\n objects[0][key] = objects[i][key];\n }\n }\n i++;\n }\n return objects[0];\n}\nfunction pickFirstMatchingElement(elements, testFunction) {\n var i = 0;\n while (i < elements.length) {\n if (testFunction(elements[i])) {\n return elements[i];\n }\n i++;\n }\n}\n//# sourceMappingURL=format.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
1
+ {"version":3,"file":"index331.js","names":["applyInternationalSeparatorStyle","FIRST_GROUP_PATTERN","formatNationalNumberUsingFormat","useInternationalFormat","_ref","withNationalPrefix","formattedNumber","number","format"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js"],"sourcesContent":["import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js';\n\n// This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport default function formatNationalNumberUsingFormat(number, format, _ref) {\n var useInternationalFormat = _ref.useInternationalFormat,\n withNationalPrefix = _ref.withNationalPrefix,\n carrierCode = _ref.carrierCode,\n metadata = _ref.metadata;\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalFormat ? format.internationalFormat() :\n // This library doesn't use `domestic_carrier_code_formatting_rule`,\n // because that one is only used when formatting phone numbers\n // for dialing from a mobile phone, and this is not a dialing library.\n // carrierCode && format.domesticCarrierCodeFormattingRule()\n // \t// First, replace the $CC in the formatting rule with the desired carrier code.\n // \t// Then, replace the $FG in the formatting rule with the first group\n // \t// and the carrier code combined in the appropriate way.\n // \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n // \t: (\n // \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n // \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n // \t\t\t: format.format()\n // \t)\n withNationalPrefix && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n if (useInternationalFormat) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n return formattedNumber;\n}\n//# sourceMappingURL=formatNationalNumberUsingFormat.js.map"],"ignoreList":[0],"mappings":";;AAMA,IAAWC,IAAsB;AACjC,SAAwBC,EAAgC,GAAQ,GAAQ,GAAM;CAC5E,IAAIC,IAAyBC,EAAK,wBAChCC,IAAqBD,EAAK;CAEf,AADGA,EAAK,aACRA,EAAK;CAClB,IAAIE,IAAkBC,EAAO,QAAQ,IAAI,OAAOC,EAAO,QAAQ,CAAC,GAAGL,IAAyBK,EAAO,oBAAoB,IAcvHH,KAAsBG,EAAO,6BAA6B,IAAIA,EAAO,OAAO,CAAC,CAAC,QAAQP,GAAqBO,EAAO,6BAA6B,CAAC,IAAIA,EAAO,OAAO,CAAC;CAInK,OAHIL,IACKH,EAAiCM,CAAe,IAElDA;AACT"}
package/dist/index332.js CHANGED
@@ -1,166 +1,12 @@
1
- import e from "./index305.js";
2
- import t, { validateMetadata as n } from "./index307.js";
3
- import r from "./index310.js";
4
- import i from "./index312.js";
5
- import a from "./index313.js";
6
- import o from "./index315.js";
7
- import s from "./index316.js";
8
- import c from "./index324.js";
9
- import l from "./index331.js";
10
- //#region ../../node_modules/libphonenumber-js/es6/PhoneNumber.js
11
- function u(e) {
12
- "@babel/helpers - typeof";
13
- return u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
14
- return typeof e;
15
- } : function(e) {
16
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
17
- }, u(e);
1
+ import e from "./index312.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
3
+ var t = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
4
+ function n(n, r, i) {
5
+ var a = new e(i);
6
+ if (a.selectNumberingPlan(n || r), a.defaultIDDPrefix()) return a.defaultIDDPrefix();
7
+ if (t.test(a.IDDPrefix())) return a.IDDPrefix();
18
8
  }
19
- function d(e, t) {
20
- var n = Object.keys(e);
21
- if (Object.getOwnPropertySymbols) {
22
- var r = Object.getOwnPropertySymbols(e);
23
- t && (r = r.filter(function(t) {
24
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
25
- })), n.push.apply(n, r);
26
- }
27
- return n;
28
- }
29
- function f(e) {
30
- for (var t = 1; t < arguments.length; t++) {
31
- var n = arguments[t] == null ? {} : arguments[t];
32
- t % 2 ? d(Object(n), !0).forEach(function(t) {
33
- p(e, t, n[t]);
34
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d(Object(n)).forEach(function(t) {
35
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
36
- });
37
- }
38
- return e;
39
- }
40
- function p(e, t, n) {
41
- return (t = _(t)) in e ? Object.defineProperty(e, t, {
42
- value: n,
43
- enumerable: !0,
44
- configurable: !0,
45
- writable: !0
46
- }) : e[t] = n, e;
47
- }
48
- function m(e, t) {
49
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
50
- }
51
- function h(e, t) {
52
- for (var n = 0; n < t.length; n++) {
53
- var r = t[n];
54
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, _(r.key), r);
55
- }
56
- }
57
- function g(e, t, n) {
58
- return t && h(e.prototype, t), n && h(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
59
- }
60
- function _(e) {
61
- var t = v(e, "string");
62
- return u(t) == "symbol" ? t : t + "";
63
- }
64
- function v(e, t) {
65
- if (u(e) != "object" || !e) return e;
66
- var n = e[Symbol.toPrimitive];
67
- if (n !== void 0) {
68
- var r = n.call(e, t || "default");
69
- if (u(r) != "object") return r;
70
- throw TypeError("@@toPrimitive must return a primitive value.");
71
- }
72
- return (t === "string" ? String : Number)(e);
73
- }
74
- var y = /*#__PURE__*/ function() {
75
- function u(t, r, i) {
76
- if (m(this, u), !t) throw TypeError("First argument is required");
77
- if (typeof t != "string") throw TypeError("First argument must be a string");
78
- if (t[0] === "+" && !r) throw TypeError("`metadata` argument not passed");
79
- if (e(r) && e(r.countries)) {
80
- i = r;
81
- var a = t;
82
- if (!b.test(a)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
83
- var s = c(a, void 0, void 0, void 0, i), l = s.countryCallingCode;
84
- if (r = s.number, t = l, !r) throw Error("Invalid `number` argument passed: too short");
85
- }
86
- if (!r) throw TypeError("`nationalNumber` argument is required");
87
- if (typeof r != "string") throw TypeError("`nationalNumber` argument must be a string");
88
- n(i);
89
- var d = o(t, i), f = d.country, p = d.callingCode;
90
- this.country = f, this.countryCallingCode = p, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
91
- return i;
92
- };
93
- }
94
- return g(u, [
95
- {
96
- key: "setExt",
97
- value: function(e) {
98
- this.ext = e;
99
- }
100
- },
101
- {
102
- key: "getPossibleCountries",
103
- value: function() {
104
- return this.country ? [this.country] : s(this.countryCallingCode, this.nationalNumber, this.getMetadata());
105
- }
106
- },
107
- {
108
- key: "isPossible",
109
- value: function() {
110
- return r(this, { v2: !0 }, this.getMetadata());
111
- }
112
- },
113
- {
114
- key: "isValid",
115
- value: function() {
116
- return a(this, { v2: !0 }, this.getMetadata());
117
- }
118
- },
119
- {
120
- key: "isNonGeographic",
121
- value: function() {
122
- return new t(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
123
- }
124
- },
125
- {
126
- key: "isEqual",
127
- value: function(e) {
128
- return this.number === e.number && this.ext === e.ext;
129
- }
130
- },
131
- {
132
- key: "getType",
133
- value: function() {
134
- return i(this, { v2: !0 }, this.getMetadata());
135
- }
136
- },
137
- {
138
- key: "format",
139
- value: function(e, t) {
140
- return l(this, e, t ? f(f({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
141
- }
142
- },
143
- {
144
- key: "formatNational",
145
- value: function(e) {
146
- return this.format("NATIONAL", e);
147
- }
148
- },
149
- {
150
- key: "formatInternational",
151
- value: function(e) {
152
- return this.format("INTERNATIONAL", e);
153
- }
154
- },
155
- {
156
- key: "getURI",
157
- value: function(e) {
158
- return this.format("RFC3966", e);
159
- }
160
- }
161
- ]);
162
- }(), b = /^\+\d+$/;
163
9
  //#endregion
164
- export { y as default };
10
+ export { n as default };
165
11
 
166
12
  //# sourceMappingURL=index332.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index332.js","names":["isPossibleNumber"],"sources":["../../../node_modules/libphonenumber-js/es6/PhoneNumber.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport Metadata, { validateMetadata } from './metadata.js';\nimport isPossibleNumber from './isPossible.js';\nimport isValidNumber from './isValid.js';\nimport getNumberType from './helpers/getNumberType.js';\nimport getCountryAndCallingCodeFromOneOfThem from './helpers/getCountryAndCallingCodeFromOneOfThem.js';\nimport getPossibleCountriesForNumber from './helpers/getPossibleCountriesForNumber.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport isObject from './helpers/isObject.js';\nimport formatNumber from './format.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nvar PhoneNumber = /*#__PURE__*/function () {\n /**\n * @param {string} countryOrCountryCallingCode\n * @param {string} nationalNumber\n * @param {object} metadata — Metadata JSON\n * @return {PhoneNumber}\n */\n function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {\n _classCallCheck(this, PhoneNumber);\n // Validate `countryOrCountryCallingCode` argument.\n if (!countryOrCountryCallingCode) {\n throw new TypeError('First argument is required');\n }\n if (typeof countryOrCountryCallingCode !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n // In case of public API use: `constructor(number, metadata)`.\n // Transform the arguments from `constructor(number, metadata)` to\n // `constructor(countryOrCountryCallingCode, nationalNumber, metadata)`.\n if (countryOrCountryCallingCode[0] === '+' && !nationalNumber) {\n throw new TypeError('`metadata` argument not passed');\n }\n if (isObject(nationalNumber) && isObject(nationalNumber.countries)) {\n metadata = nationalNumber;\n var e164Number = countryOrCountryCallingCode;\n if (!E164_NUMBER_REGEXP.test(e164Number)) {\n throw new Error('Invalid `number` argument passed: must consist of a \"+\" followed by digits');\n }\n var _extractCountryCallin = extractCountryCallingCode(e164Number, undefined, undefined, undefined, metadata),\n _countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n nationalNumber = number;\n countryOrCountryCallingCode = _countryCallingCode;\n if (!nationalNumber) {\n throw new Error('Invalid `number` argument passed: too short');\n }\n }\n\n // Validate `nationalNumber` argument.\n if (!nationalNumber) {\n throw new TypeError('`nationalNumber` argument is required');\n }\n if (typeof nationalNumber !== 'string') {\n throw new TypeError('`nationalNumber` argument must be a string');\n }\n\n // Validate `metadata` argument.\n validateMetadata(metadata);\n\n // Initialize properties.\n var _getCountryAndCalling = getCountryAndCallingCodeFromOneOfThem(countryOrCountryCallingCode, metadata),\n country = _getCountryAndCalling.country,\n countryCallingCode = _getCountryAndCalling.callingCode;\n this.country = country;\n this.countryCallingCode = countryCallingCode;\n this.nationalNumber = nationalNumber;\n this.number = '+' + this.countryCallingCode + this.nationalNumber;\n // Exclude `metadata` property output from `PhoneNumber.toString()`\n // so that it doesn't clutter the console output of Node.js.\n // Previously, when Node.js did `console.log(new PhoneNumber(...))`,\n // it would output the whole internal structure of the `metadata` object.\n this.getMetadata = function () {\n return metadata;\n };\n }\n return _createClass(PhoneNumber, [{\n key: \"setExt\",\n value: function setExt(ext) {\n this.ext = ext;\n }\n }, {\n key: \"getPossibleCountries\",\n value: function getPossibleCountries() {\n if (this.country) {\n return [this.country];\n }\n return getPossibleCountriesForNumber(this.countryCallingCode, this.nationalNumber, this.getMetadata());\n }\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n return isPossibleNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return isValidNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isNonGeographic\",\n value: function isNonGeographic() {\n var metadata = new Metadata(this.getMetadata());\n return metadata.isNonGeographicCallingCode(this.countryCallingCode);\n }\n }, {\n key: \"isEqual\",\n value: function isEqual(phoneNumber) {\n return this.number === phoneNumber.number && this.ext === phoneNumber.ext;\n }\n\n // `validateLength()` method was originally meant to be an equivalent for `validatePhoneNumberLength()`.\n //\n // Later, it became apparent that it's not really a true equivalent.\n // The reason is that a `PhoneNumber` instance is not created\n // when the phone number string is too short for it to be considered a valid phone number:\n // * When there must be at least 2 national (significant) number digits: `\"1\"`.\n // * When the country calling code part of an international number is incomplete: `\"+12\"`.\n //\n // So leaving this `validateLength()` method here would suggest a hidden anti-pattern\n // of using it instead of `validatePhoneNumberLength()` while ignoring\n // the \"too short to be even possible\" case from phone number length validation.\n // And ignoring that case wouldn't make any sense in a real-world application\n // because it would still be a valid case that should be handled.\n //\n // Because of that, this method was eventually commented out in order to not introduce\n // that kind of an anti-pattern.\n //\n // validateLength() {\n // \tconst result = checkNumberLength(\n // \t\tthis.nationalNumber,\n // \t\tundefined,\n // \t\tthis.getMetadata()\n // \t)\n // \tif (result !== 'IS_POSSIBLE') {\n // \t\treturn result\n // \t}\n // }\n }, {\n key: \"getType\",\n value: function getType() {\n return getNumberType(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"format\",\n value: function format(_format, options) {\n return formatNumber(this, _format, options ? _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }) : {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"formatNational\",\n value: function formatNational(options) {\n return this.format('NATIONAL', options);\n }\n }, {\n key: \"formatInternational\",\n value: function formatInternational(options) {\n return this.format('INTERNATIONAL', options);\n }\n }, {\n key: \"getURI\",\n value: function getURI(options) {\n return this.format('RFC3966', options);\n }\n }]);\n}();\nexport { PhoneNumber as default };\nvar E164_NUMBER_REGEXP = /^\\+\\d+$/;\n//# sourceMappingURL=PhoneNumber.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
1
+ {"version":3,"file":"index332.js","names":["Metadata","SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","countryMetadata","metadata","country","callingCode"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\n * Pattern that makes it easy to distinguish whether a region has a single\n * international dialing prefix or not. If a region has a single international\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\n * the tone. If there are multiple available international prefixes in a\n * region, they will be represented as a regex string that always contains one\n * or more characters that are not ASCII digits or a tilde.\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// If the `country` supports IDD calling, it returns a preferred IDD prefix.\n// If the `country` doesn't support IDD calling, it returns `undefined`.\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"],"ignoreList":[0],"mappings":";;AAWA,IAAIC,IAA4B;AAIhC,SAAwBC,EAAa,GAAS,GAAa,GAAU;CACnE,IAAIC,IAAkB,IAAIH,EAASI,CAAQ;CAE3C,IADAD,EAAgB,oBAAoBE,KAAWC,CAAW,GACtDH,EAAgB,iBAAiB,GACnC,OAAOA,EAAgB,iBAAiB;CAE1C,IAAIF,EAA0B,KAAKE,EAAgB,UAAU,CAAC,GAC5D,OAAOA,EAAgB,UAAU;AAErC"}
package/dist/index333.js CHANGED
@@ -1,118 +1,13 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/ParseError.js
2
- function e(t) {
3
- "@babel/helpers - typeof";
4
- return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, e(t);
1
+ import { VALID_DIGITS as e } from "./index322.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
3
+ var t = ";ext=", n = function(t) {
4
+ return `([${e}]{1,${t}})`;
5
+ };
6
+ function r(e) {
7
+ var r = "20", i = "15", a = "9", o = "6", s = "[ \xA0\\t,]*", c = "[:\\..]?[ \xA0\\t,-]*", l = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", f = "[- ]+", p = "[ \xA0\\t]*", m = "(?:,{2}|;)", h = t + n(r), g = s + u + c + n(r) + l, _ = s + d + c + n(a) + l, v = f + n(o) + "#", y = p + m + c + n(i) + l, b = p + "(?:,)+" + c + n(a) + l;
8
+ return h + "|" + g + "|" + _ + "|" + v + "|" + y + "|" + b;
9
9
  }
10
- function t(e, t) {
11
- for (var n = 0; n < t.length; n++) {
12
- var i = t[n];
13
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, r(i.key), i);
14
- }
15
- }
16
- function n(e, n, r) {
17
- return n && t(e.prototype, n), r && t(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
18
- }
19
- function r(t) {
20
- var n = i(t, "string");
21
- return e(n) == "symbol" ? n : n + "";
22
- }
23
- function i(t, n) {
24
- if (e(t) != "object" || !t) return t;
25
- var r = t[Symbol.toPrimitive];
26
- if (r !== void 0) {
27
- var i = r.call(t, n || "default");
28
- if (e(i) != "object") return i;
29
- throw TypeError("@@toPrimitive must return a primitive value.");
30
- }
31
- return (n === "string" ? String : Number)(t);
32
- }
33
- function a(e, t) {
34
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
35
- }
36
- function o(e, t, n) {
37
- return t = h(t), s(e, f() ? Reflect.construct(t, n || [], h(e).constructor) : t.apply(e, n));
38
- }
39
- function s(t, n) {
40
- if (n && (e(n) == "object" || typeof n == "function")) return n;
41
- if (n !== void 0) throw TypeError("Derived constructors may only return object or undefined");
42
- return c(t);
43
- }
44
- function c(e) {
45
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
46
- return e;
47
- }
48
- function l(e, t) {
49
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
50
- e.prototype = Object.create(t && t.prototype, { constructor: {
51
- value: e,
52
- writable: !0,
53
- configurable: !0
54
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && m(e, t);
55
- }
56
- function u(e) {
57
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
58
- return u = function(e) {
59
- if (e === null || !p(e)) return e;
60
- if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
61
- if (t !== void 0) {
62
- if (t.has(e)) return t.get(e);
63
- t.set(e, n);
64
- }
65
- function n() {
66
- return d(e, arguments, h(this).constructor);
67
- }
68
- return n.prototype = Object.create(e.prototype, { constructor: {
69
- value: n,
70
- enumerable: !1,
71
- writable: !0,
72
- configurable: !0
73
- } }), m(n, e);
74
- }, u(e);
75
- }
76
- function d(e, t, n) {
77
- if (f()) return Reflect.construct.apply(null, arguments);
78
- var r = [null];
79
- r.push.apply(r, t);
80
- var i = new (e.bind.apply(e, r))();
81
- return n && m(i, n.prototype), i;
82
- }
83
- function f() {
84
- try {
85
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
86
- } catch {}
87
- return (f = function() {
88
- return !!e;
89
- })();
90
- }
91
- function p(e) {
92
- try {
93
- return Function.toString.call(e).indexOf("[native code]") !== -1;
94
- } catch {
95
- return typeof e == "function";
96
- }
97
- }
98
- function m(e, t) {
99
- return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
100
- return e.__proto__ = t, e;
101
- }, m(e, t);
102
- }
103
- function h(e) {
104
- return h = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
105
- return e.__proto__ || Object.getPrototypeOf(e);
106
- }, h(e);
107
- }
108
- var g = /*#__PURE__*/ function(e) {
109
- function t(e) {
110
- var n;
111
- return a(this, t), n = o(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
112
- }
113
- return l(t, e), n(t);
114
- }(/*#__PURE__*/ u(Error));
115
10
  //#endregion
116
- export { g as default };
11
+ export { r as default };
117
12
 
118
13
  //# sourceMappingURL=index333.js.map