@rpcbase/ui 0.198.0 → 0.200.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 (469) hide show
  1. package/dist/index100.js +4 -5
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +52 -5
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +3 -7
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +4 -5
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +15 -4
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +5 -4
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +7 -6
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +16 -145
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +4 -39
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +4 -4
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +5 -7
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +5 -13
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +4 -13
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +4 -7
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +6 -31
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +24 -10
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +6 -10
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +4 -8
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +6 -13
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +5 -101
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +5 -20
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +5 -53
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +4 -72
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +8 -9
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +5 -20
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +4 -16
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +4 -23
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +6 -6
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +145 -5
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +39 -23
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +5 -35
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +8 -16
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +13 -6
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +13 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +7 -4
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +31 -4
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +10 -4
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +10 -3
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +8 -6
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +14 -24
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +101 -7
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +20 -7
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +53 -5
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +72 -3
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +9 -3
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +20 -4
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +16 -3
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +23 -4
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +6 -3
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +5 -3
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +23 -3
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +33 -45
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +16 -606
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +6 -5
  108. package/dist/index153.js.map +1 -1
  109. package/dist/index154.js +4 -68
  110. package/dist/index154.js.map +1 -1
  111. package/dist/index155.js +5 -2
  112. package/dist/index155.js.map +1 -1
  113. package/dist/index156.js +4 -363
  114. package/dist/index156.js.map +1 -1
  115. package/dist/index157.js +4 -261
  116. package/dist/index157.js.map +1 -1
  117. package/dist/index158.js +3 -60
  118. package/dist/index158.js.map +1 -1
  119. package/dist/index159.js +6 -46
  120. package/dist/index159.js.map +1 -1
  121. package/dist/index160.js +24 -170
  122. package/dist/index160.js.map +1 -1
  123. package/dist/index161.js +7 -109
  124. package/dist/index161.js.map +1 -1
  125. package/dist/index162.js +6 -24
  126. package/dist/index162.js.map +1 -1
  127. package/dist/index163.js +6 -8
  128. package/dist/index163.js.map +1 -1
  129. package/dist/index164.js +3 -4
  130. package/dist/index164.js.map +1 -1
  131. package/dist/index165.js +3 -5
  132. package/dist/index165.js.map +1 -1
  133. package/dist/index166.js +4 -4
  134. package/dist/index166.js.map +1 -1
  135. package/dist/index167.js +3 -466
  136. package/dist/index167.js.map +1 -1
  137. package/dist/index168.js +4 -185
  138. package/dist/index168.js.map +1 -1
  139. package/dist/index169.js +3 -107
  140. package/dist/index169.js.map +1 -1
  141. package/dist/index170.js +3 -262
  142. package/dist/index170.js.map +1 -1
  143. package/dist/index171.js +3 -9
  144. package/dist/index171.js.map +1 -1
  145. package/dist/index172.js +42 -38
  146. package/dist/index172.js.map +1 -1
  147. package/dist/index173.js +46 -4
  148. package/dist/index173.js.map +1 -1
  149. package/dist/index174.js +200 -41
  150. package/dist/index174.js.map +1 -1
  151. package/dist/index175.js +20 -204
  152. package/dist/index175.js.map +1 -1
  153. package/dist/index176.js +25 -22
  154. package/dist/index176.js.map +1 -1
  155. package/dist/index177.js +398 -23
  156. package/dist/index177.js.map +1 -1
  157. package/dist/index178.js +13 -399
  158. package/dist/index178.js.map +1 -1
  159. package/dist/index179.js +150 -54
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js +30 -8
  162. package/dist/index180.js.map +1 -1
  163. package/dist/index181.js +9 -66
  164. package/dist/index181.js.map +1 -1
  165. package/dist/index182.js +46 -17
  166. package/dist/index182.js.map +1 -1
  167. package/dist/index183.js +11 -16
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +43 -4
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +94 -4
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +86 -6
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +105 -4
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +52 -7
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +11 -17
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index19.js +212 -210
  182. package/dist/index19.js.map +1 -1
  183. package/dist/index190.js +37 -5
  184. package/dist/index190.js.map +1 -1
  185. package/dist/index191.js +8 -5
  186. package/dist/index191.js.map +1 -1
  187. package/dist/index192.js +116 -13
  188. package/dist/index192.js.map +1 -1
  189. package/dist/index193.js +17 -10
  190. package/dist/index193.js.map +1 -1
  191. package/dist/index194.js +15 -14
  192. package/dist/index194.js.map +1 -1
  193. package/dist/index195.js +3 -14
  194. package/dist/index195.js.map +1 -1
  195. package/dist/index196.js +36 -5
  196. package/dist/index196.js.map +1 -1
  197. package/dist/index197.js +20 -6
  198. package/dist/index197.js.map +1 -1
  199. package/dist/index198.js +9 -7
  200. package/dist/index198.js.map +1 -1
  201. package/dist/index199.js +8 -6
  202. package/dist/index199.js.map +1 -1
  203. package/dist/index200.js +19 -9
  204. package/dist/index200.js.map +1 -1
  205. package/dist/index201.js +28 -5
  206. package/dist/index201.js.map +1 -1
  207. package/dist/index202.js +16 -5
  208. package/dist/index202.js.map +1 -1
  209. package/dist/index203.js +605 -9
  210. package/dist/index203.js.map +1 -1
  211. package/dist/index204.js +58 -5
  212. package/dist/index204.js.map +1 -1
  213. package/dist/index205.js +8 -5
  214. package/dist/index205.js.map +1 -1
  215. package/dist/index206.js +66 -4
  216. package/dist/index206.js.map +1 -1
  217. package/dist/index207.js +19 -11
  218. package/dist/index207.js.map +1 -1
  219. package/dist/index208.js +16 -10
  220. package/dist/index208.js.map +1 -1
  221. package/dist/index209.js +5 -10
  222. package/dist/index209.js.map +1 -1
  223. package/dist/index210.js +5 -11
  224. package/dist/index210.js.map +1 -1
  225. package/dist/index211.js +6 -11
  226. package/dist/index211.js.map +1 -1
  227. package/dist/index212.js +4 -10
  228. package/dist/index212.js.map +1 -1
  229. package/dist/index213.js +6 -6
  230. package/dist/index213.js.map +1 -1
  231. package/dist/index214.js +17 -6
  232. package/dist/index214.js.map +1 -1
  233. package/dist/index215.js +5 -5
  234. package/dist/index215.js.map +1 -1
  235. package/dist/index216.js +5 -6
  236. package/dist/index216.js.map +1 -1
  237. package/dist/index217.js +13 -7
  238. package/dist/index217.js.map +1 -1
  239. package/dist/index218.js +9 -5
  240. package/dist/index218.js.map +1 -1
  241. package/dist/index219.js +14 -55
  242. package/dist/index219.js.map +1 -1
  243. package/dist/index220.js +14 -16
  244. package/dist/index220.js.map +1 -1
  245. package/dist/index221.js +5 -7
  246. package/dist/index221.js.map +1 -1
  247. package/dist/index222.js +6 -10
  248. package/dist/index222.js.map +1 -1
  249. package/dist/index223.js +7 -10
  250. package/dist/index223.js.map +1 -1
  251. package/dist/index224.js +6 -21
  252. package/dist/index224.js.map +1 -1
  253. package/dist/index225.js +9 -10
  254. package/dist/index225.js.map +1 -1
  255. package/dist/index226.js +5 -9
  256. package/dist/index226.js.map +1 -1
  257. package/dist/index227.js +5 -9
  258. package/dist/index227.js.map +1 -1
  259. package/dist/index228.js +9 -4
  260. package/dist/index228.js.map +1 -1
  261. package/dist/index229.js +5 -5
  262. package/dist/index229.js.map +1 -1
  263. package/dist/index230.js +5 -16
  264. package/dist/index230.js.map +1 -1
  265. package/dist/index231.js +4 -9
  266. package/dist/index231.js.map +1 -1
  267. package/dist/index232.js +11 -18
  268. package/dist/index232.js.map +1 -1
  269. package/dist/index233.js +10 -15
  270. package/dist/index233.js.map +1 -1
  271. package/dist/index234.js +10 -12
  272. package/dist/index234.js.map +1 -1
  273. package/dist/index235.js +11 -29
  274. package/dist/index235.js.map +1 -1
  275. package/dist/index236.js +11 -12
  276. package/dist/index236.js.map +1 -1
  277. package/dist/index237.js +10 -25
  278. package/dist/index237.js.map +1 -1
  279. package/dist/index238.js +7 -5
  280. package/dist/index238.js.map +1 -1
  281. package/dist/index239.js +6 -67
  282. package/dist/index239.js.map +1 -1
  283. package/dist/index24.js +1 -1
  284. package/dist/index240.js +5 -180
  285. package/dist/index240.js.map +1 -1
  286. package/dist/index241.js +6 -46
  287. package/dist/index241.js.map +1 -1
  288. package/dist/index242.js +7 -13
  289. package/dist/index242.js.map +1 -1
  290. package/dist/index243.js +6 -154
  291. package/dist/index243.js.map +1 -1
  292. package/dist/index244.js +53 -28
  293. package/dist/index244.js.map +1 -1
  294. package/dist/index245.js +16 -9
  295. package/dist/index245.js.map +1 -1
  296. package/dist/index246.js +7 -48
  297. package/dist/index246.js.map +1 -1
  298. package/dist/index247.js +10 -11
  299. package/dist/index247.js.map +1 -1
  300. package/dist/index248.js +9 -43
  301. package/dist/index248.js.map +1 -1
  302. package/dist/index249.js +19 -93
  303. package/dist/index249.js.map +1 -1
  304. package/dist/index250.js +10 -86
  305. package/dist/index250.js.map +1 -1
  306. package/dist/index251.js +9 -105
  307. package/dist/index251.js.map +1 -1
  308. package/dist/index252.js +9 -52
  309. package/dist/index252.js.map +1 -1
  310. package/dist/index253.js +4 -11
  311. package/dist/index253.js.map +1 -1
  312. package/dist/index254.js +5 -37
  313. package/dist/index254.js.map +1 -1
  314. package/dist/index255.js +16 -8
  315. package/dist/index255.js.map +1 -1
  316. package/dist/index256.js +9 -116
  317. package/dist/index256.js.map +1 -1
  318. package/dist/index257.js +18 -17
  319. package/dist/index257.js.map +1 -1
  320. package/dist/index258.js +15 -15
  321. package/dist/index258.js.map +1 -1
  322. package/dist/index259.js +12 -3
  323. package/dist/index259.js.map +1 -1
  324. package/dist/index260.js +28 -35
  325. package/dist/index260.js.map +1 -1
  326. package/dist/index261.js +11 -19
  327. package/dist/index261.js.map +1 -1
  328. package/dist/index262.js +25 -9
  329. package/dist/index262.js.map +1 -1
  330. package/dist/index263.js +5 -8
  331. package/dist/index263.js.map +1 -1
  332. package/dist/index264.js +24 -19
  333. package/dist/index264.js.map +1 -1
  334. package/dist/index265.js +29 -29
  335. package/dist/index265.js.map +1 -1
  336. package/dist/index266.js +5 -17
  337. package/dist/index266.js.map +1 -1
  338. package/dist/index267.js +19 -23
  339. package/dist/index267.js.map +1 -1
  340. package/dist/index268.js +67 -28
  341. package/dist/index268.js.map +1 -1
  342. package/dist/index269.js +181 -5
  343. package/dist/index269.js.map +1 -1
  344. package/dist/index270.js +46 -4
  345. package/dist/index270.js.map +1 -1
  346. package/dist/index271.js +5 -19
  347. package/dist/index271.js.map +1 -1
  348. package/dist/index272.js +19 -13
  349. package/dist/index272.js.map +1 -1
  350. package/dist/index273.js +12 -20
  351. package/dist/index273.js.map +1 -1
  352. package/dist/index277.js +1 -1
  353. package/dist/index278.js +1 -1
  354. package/dist/index289.js +2 -2
  355. package/dist/index292.js +1 -1
  356. package/dist/index293.js +2 -2
  357. package/dist/index295.js +1 -1
  358. package/dist/index296.js +1 -1
  359. package/dist/index297.js +1 -1
  360. package/dist/index298.js +1 -1
  361. package/dist/index299.js +1 -1
  362. package/dist/index31.js +5 -5
  363. package/dist/index32.js +24 -24
  364. package/dist/index33.js +3 -3
  365. package/dist/index36.js +1 -1
  366. package/dist/index37.js +2 -2
  367. package/dist/index40.js +2 -2
  368. package/dist/index41.js +19 -19
  369. package/dist/index45.js +1 -1
  370. package/dist/index46.js +1 -1
  371. package/dist/index49.js +1 -1
  372. package/dist/index50.js +1 -1
  373. package/dist/index51.js +2 -7
  374. package/dist/index51.js.map +1 -1
  375. package/dist/index52.js +2 -34
  376. package/dist/index52.js.map +1 -1
  377. package/dist/index53.js +5 -26
  378. package/dist/index53.js.map +1 -1
  379. package/dist/index54.js +7 -7
  380. package/dist/index54.js.map +1 -1
  381. package/dist/index55.js +5 -11
  382. package/dist/index55.js.map +1 -1
  383. package/dist/index56.js +4 -2
  384. package/dist/index56.js.map +1 -1
  385. package/dist/index57.js +7 -2
  386. package/dist/index57.js.map +1 -1
  387. package/dist/index58.js +44 -201
  388. package/dist/index58.js.map +1 -1
  389. package/dist/index59.js +26 -3
  390. package/dist/index59.js.map +1 -1
  391. package/dist/index60.js +48 -45
  392. package/dist/index60.js.map +1 -1
  393. package/dist/index61.js +7 -50
  394. package/dist/index61.js.map +1 -1
  395. package/dist/index62.js +14 -7
  396. package/dist/index62.js.map +1 -1
  397. package/dist/index63.js +133 -14
  398. package/dist/index63.js.map +1 -1
  399. package/dist/index64.js +10 -133
  400. package/dist/index64.js.map +1 -1
  401. package/dist/index65.js +216 -10
  402. package/dist/index65.js.map +1 -1
  403. package/dist/index66.js +12 -216
  404. package/dist/index66.js.map +1 -1
  405. package/dist/index67.js +34 -13
  406. package/dist/index67.js.map +1 -1
  407. package/dist/index68.js +1 -1
  408. package/dist/index69.js +7 -49
  409. package/dist/index69.js.map +1 -1
  410. package/dist/index70.js +50 -4
  411. package/dist/index70.js.map +1 -1
  412. package/dist/index71.js +4 -6
  413. package/dist/index71.js.map +1 -1
  414. package/dist/index72.js +6 -28
  415. package/dist/index72.js.map +1 -1
  416. package/dist/index73.js +28 -50
  417. package/dist/index73.js.map +1 -1
  418. package/dist/index74.js +50 -9
  419. package/dist/index74.js.map +1 -1
  420. package/dist/index75.js +9 -6
  421. package/dist/index75.js.map +1 -1
  422. package/dist/index76.js +11 -7
  423. package/dist/index76.js.map +1 -1
  424. package/dist/index77.js +2 -6
  425. package/dist/index77.js.map +1 -1
  426. package/dist/index78.js +2 -2
  427. package/dist/index79.js +205 -2
  428. package/dist/index79.js.map +1 -1
  429. package/dist/index80.js +6 -52
  430. package/dist/index80.js.map +1 -1
  431. package/dist/index81.js +68 -4
  432. package/dist/index81.js.map +1 -1
  433. package/dist/index82.js +2 -5
  434. package/dist/index82.js.map +1 -1
  435. package/dist/index83.js +363 -15
  436. package/dist/index83.js.map +1 -1
  437. package/dist/index84.js +261 -5
  438. package/dist/index84.js.map +1 -1
  439. package/dist/index85.js +60 -7
  440. package/dist/index85.js.map +1 -1
  441. package/dist/index86.js +46 -16
  442. package/dist/index86.js.map +1 -1
  443. package/dist/index87.js +169 -4
  444. package/dist/index87.js.map +1 -1
  445. package/dist/index88.js +109 -4
  446. package/dist/index88.js.map +1 -1
  447. package/dist/index89.js +24 -5
  448. package/dist/index89.js.map +1 -1
  449. package/dist/index90.js +8 -6
  450. package/dist/index90.js.map +1 -1
  451. package/dist/index91.js +4 -4
  452. package/dist/index91.js.map +1 -1
  453. package/dist/index92.js +5 -4
  454. package/dist/index92.js.map +1 -1
  455. package/dist/index93.js +4 -6
  456. package/dist/index93.js.map +1 -1
  457. package/dist/index94.js +466 -24
  458. package/dist/index94.js.map +1 -1
  459. package/dist/index95.js +185 -6
  460. package/dist/index95.js.map +1 -1
  461. package/dist/index96.js +107 -4
  462. package/dist/index96.js.map +1 -1
  463. package/dist/index97.js +262 -6
  464. package/dist/index97.js.map +1 -1
  465. package/dist/index98.js +9 -5
  466. package/dist/index98.js.map +1 -1
  467. package/dist/index99.js +42 -4
  468. package/dist/index99.js.map +1 -1
  469. package/package.json +1 -1
package/dist/index200.js CHANGED
@@ -1,13 +1,23 @@
1
- import { millisecondsInWeek as f } from "./index284.js";
2
- import { startOfISOWeek as i } from "./index215.js";
3
- import { startOfISOWeekYear as m } from "./index295.js";
4
- import { toDate as n } from "./index283.js";
5
- function O(e, o) {
6
- const t = n(e, o?.in), r = +i(t) - +m(t);
7
- return Math.round(r / f) + 1;
1
+ import c, { getCountryCallingCode as b } from "./index94.js";
2
+ import g from "./index195.js";
3
+ import C from "./index196.js";
4
+ import h from "./index178.js";
5
+ function P(i, r, l, N, n) {
6
+ var e = r || l ? b(r || l, n) : N;
7
+ if (i.indexOf(e) === 0) {
8
+ n = new c(n), n.selectNumberingPlan(r || l, e);
9
+ var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
10
+ if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
11
+ return {
12
+ countryCallingCode: e,
13
+ number: o
14
+ };
15
+ }
16
+ return {
17
+ number: i
18
+ };
8
19
  }
9
20
  export {
10
- O as default,
11
- O as getISOWeek
21
+ P as default
12
22
  };
13
23
  //# sourceMappingURL=index200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","sources":["../../../node_modules/date-fns/getISOWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n"],"names":["getISOWeek","date","options","_date","toDate","diff","startOfISOWeek","startOfISOWeekYear","millisecondsInWeek"],"mappings":";;;;AA6BO,SAASA,EAAWC,GAAMC,GAAS;AACxC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAO,CAACC,EAAeH,CAAK,IAAI,CAACI,EAAmBJ,CAAK;AAK/D,SAAO,KAAK,MAAME,IAAOG,CAAkB,IAAI;AACjD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index200.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
package/dist/index201.js CHANGED
@@ -1,9 +1,32 @@
1
- import { toDate as e } from "./index283.js";
2
- function r(t, o) {
3
- return e(t, o?.in).getMonth();
1
+ function F(l, i) {
2
+ if (l && i.numberingPlan.nationalPrefixForParsing()) {
3
+ var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
4
+ if (n) {
5
+ var r, P, v = n.length - 1, e = v > 0 && n[v];
6
+ if (i.nationalPrefixTransformRule() && e)
7
+ r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
8
+ else {
9
+ var o = n[0];
10
+ r = l.slice(o.length), e && (P = n[1]);
11
+ }
12
+ var f;
13
+ if (e) {
14
+ var s = l.indexOf(n[1]), a = l.slice(0, s);
15
+ a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
16
+ } else
17
+ f = n[0];
18
+ return {
19
+ nationalNumber: r,
20
+ nationalPrefix: f,
21
+ carrierCode: P
22
+ };
23
+ }
24
+ }
25
+ return {
26
+ nationalNumber: l
27
+ };
4
28
  }
5
29
  export {
6
- r as default,
7
- r as getMonth
30
+ F as default
8
31
  };
9
32
  //# sourceMappingURL=index201.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index201.js","sources":["../../../node_modules/date-fns/getMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getMonth} function options.\n */\n\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The month index (0-11)\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\nexport function getMonth(date, options) {\n return toDate(date, options?.in).getMonth();\n}\n\n// Fallback for modularized imports:\nexport default getMonth;\n"],"names":["getMonth","date","options","toDate"],"mappings":";AAwBO,SAASA,EAASC,GAAMC,GAAS;AACtC,SAAOC,EAAOF,GAAMC,GAAS,EAAE,EAAE,SAAQ;AAC3C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index201.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
package/dist/index202.js CHANGED
@@ -1,9 +1,20 @@
1
- import { toDate as r } from "./index283.js";
2
- function o(t, e) {
3
- return r(t, e?.in).getFullYear();
1
+ import I from "./index94.js";
2
+ import { VALID_DIGITS as l } from "./index90.js";
3
+ var c = new RegExp("([" + l + "])");
4
+ function D(t, r, f, n) {
5
+ if (r) {
6
+ var a = new I(n);
7
+ a.selectNumberingPlan(r, f);
8
+ var i = new RegExp(a.IDDPrefix());
9
+ if (t.search(i) === 0) {
10
+ t = t.slice(t.match(i)[0].length);
11
+ var e = t.match(c);
12
+ if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
13
+ return t;
14
+ }
15
+ }
4
16
  }
5
17
  export {
6
- o as default,
7
- o as getYear
18
+ D as default
8
19
  };
9
20
  //# sourceMappingURL=index202.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index202.js","sources":["../../../node_modules/date-fns/getYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getYear} function options.\n */\n\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The year\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\nexport function getYear(date, options) {\n return toDate(date, options?.in).getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default getYear;\n"],"names":["getYear","date","options","toDate"],"mappings":";AAwBO,SAASA,EAAQC,GAAMC,GAAS;AACrC,SAAOC,EAAOF,GAAMC,GAAS,EAAE,EAAE,YAAW;AAC9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index202.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n }\n // Check if the number is IDD-prefixed.\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadata","countryMetadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAU;AAC7E,MAAKF,GAIL;AAAA,QAAIG,IAAkB,IAAIC,EAASF,CAAQ;AAC3C,IAAAC,EAAgB,oBAAoBH,GAASC,CAAW;AACxD,QAAII,IAAmB,IAAI,OAAOF,EAAgB,UAAS,CAAE;AAC7D,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAIxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAK9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}