@rpcbase/ui 0.202.0 → 0.204.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 (641) hide show
  1. package/dist/index.js +25 -73
  2. package/dist/index10.js +18 -28
  3. package/dist/index10.js.map +1 -1
  4. package/dist/index100.js +8 -8
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js +8 -7
  7. package/dist/index101.js.map +1 -1
  8. package/dist/index102.js +14 -7
  9. package/dist/index102.js.map +1 -1
  10. package/dist/index103.js +9 -9
  11. package/dist/index103.js.map +1 -1
  12. package/dist/index104.js +14 -148
  13. package/dist/index104.js.map +1 -1
  14. package/dist/index105.js +21 -43
  15. package/dist/index105.js.map +1 -1
  16. package/dist/index106.js +27 -7
  17. package/dist/index106.js.map +1 -1
  18. package/dist/index107.js +8 -10
  19. package/dist/index107.js.map +1 -1
  20. package/dist/index108.js +8 -16
  21. package/dist/index108.js.map +1 -1
  22. package/dist/index109.js +9 -16
  23. package/dist/index109.js.map +1 -1
  24. package/dist/index11.js +1674 -41
  25. package/dist/index11.js.map +1 -1
  26. package/dist/index110.js +9 -10
  27. package/dist/index110.js.map +1 -1
  28. package/dist/index111.js +8 -34
  29. package/dist/index111.js.map +1 -1
  30. package/dist/index112.js +8 -13
  31. package/dist/index112.js.map +1 -1
  32. package/dist/index113.js +11 -13
  33. package/dist/index113.js.map +1 -1
  34. package/dist/index114.js +10 -11
  35. package/dist/index114.js.map +1 -1
  36. package/dist/index115.js +37 -16
  37. package/dist/index115.js.map +1 -1
  38. package/dist/index116.js +10 -104
  39. package/dist/index116.js.map +1 -1
  40. package/dist/index117.js +9 -23
  41. package/dist/index117.js.map +1 -1
  42. package/dist/index118.js +10 -56
  43. package/dist/index118.js.map +1 -1
  44. package/dist/index119.js +12 -75
  45. package/dist/index119.js.map +1 -1
  46. package/dist/index12.js +10 -470
  47. package/dist/index12.js.map +1 -1
  48. package/dist/index120.js +8 -12
  49. package/dist/index120.js.map +1 -1
  50. package/dist/index121.js +9 -23
  51. package/dist/index121.js.map +1 -1
  52. package/dist/index122.js +8 -19
  53. package/dist/index122.js.map +1 -1
  54. package/dist/index123.js +8 -26
  55. package/dist/index123.js.map +1 -1
  56. package/dist/index124.js +9 -9
  57. package/dist/index124.js.map +1 -1
  58. package/dist/index125.js +8 -8
  59. package/dist/index125.js.map +1 -1
  60. package/dist/index126.js +9 -27
  61. package/dist/index126.js.map +1 -1
  62. package/dist/index127.js +11 -38
  63. package/dist/index127.js.map +1 -1
  64. package/dist/index128.js +60 -19
  65. package/dist/index128.js.map +1 -1
  66. package/dist/index129.js +9 -9
  67. package/dist/index129.js.map +1 -1
  68. package/dist/index13.js +22 -140
  69. package/dist/index13.js.map +1 -1
  70. package/dist/index130.js +23 -8
  71. package/dist/index130.js.map +1 -1
  72. package/dist/index131.js +22 -7
  73. package/dist/index131.js.map +1 -1
  74. package/dist/index132.js +37 -7
  75. package/dist/index132.js.map +1 -1
  76. package/dist/index133.js +8 -7
  77. package/dist/index133.js.map +1 -1
  78. package/dist/index134.js +11 -6
  79. package/dist/index134.js.map +1 -1
  80. package/dist/index135.js +17 -9
  81. package/dist/index135.js.map +1 -1
  82. package/dist/index136.js +14 -27
  83. package/dist/index136.js.map +1 -1
  84. package/dist/index137.js +9 -10
  85. package/dist/index137.js.map +1 -1
  86. package/dist/index138.js +8 -9
  87. package/dist/index138.js.map +1 -1
  88. package/dist/index139.js +8 -8
  89. package/dist/index139.js.map +1 -1
  90. package/dist/index14.js +194 -78
  91. package/dist/index14.js.map +1 -1
  92. package/dist/index140.js +8 -6
  93. package/dist/index140.js.map +1 -1
  94. package/dist/index141.js +8 -6
  95. package/dist/index141.js.map +1 -1
  96. package/dist/index142.js +7 -7
  97. package/dist/index142.js.map +1 -1
  98. package/dist/index143.js +9 -6
  99. package/dist/index143.js.map +1 -1
  100. package/dist/index144.js +24 -8
  101. package/dist/index144.js.map +1 -1
  102. package/dist/index145.js +11 -6
  103. package/dist/index145.js.map +1 -1
  104. package/dist/index146.js +10 -6
  105. package/dist/index146.js.map +1 -1
  106. package/dist/index147.js +9 -6
  107. package/dist/index147.js.map +1 -1
  108. package/dist/index148.js +9 -8
  109. package/dist/index148.js.map +1 -1
  110. package/dist/index149.js +7 -10
  111. package/dist/index149.js.map +1 -1
  112. package/dist/index15.js +33 -874
  113. package/dist/index15.js.map +1 -1
  114. package/dist/index150.js +7 -8
  115. package/dist/index150.js.map +1 -1
  116. package/dist/index151.js +9 -50
  117. package/dist/index151.js.map +1 -1
  118. package/dist/index152.js +8 -50
  119. package/dist/index152.js.map +1 -1
  120. package/dist/index153.js +9 -209
  121. package/dist/index153.js.map +1 -1
  122. package/dist/index154.js +8 -25
  123. package/dist/index154.js.map +1 -1
  124. package/dist/index155.js +7 -27
  125. package/dist/index155.js.map +1 -1
  126. package/dist/index156.js +8 -403
  127. package/dist/index156.js.map +1 -1
  128. package/dist/index157.js +32 -609
  129. package/dist/index157.js.map +1 -1
  130. package/dist/index158.js +35 -19
  131. package/dist/index158.js.map +1 -1
  132. package/dist/index159.js +18 -8
  133. package/dist/index159.js.map +1 -1
  134. package/dist/index16.js +57 -23
  135. package/dist/index16.js.map +1 -1
  136. package/dist/index160.js +14 -8
  137. package/dist/index160.js.map +1 -1
  138. package/dist/index161.js +12 -61
  139. package/dist/index161.js.map +1 -1
  140. package/dist/index162.js +19 -69
  141. package/dist/index162.js.map +1 -1
  142. package/dist/index163.js +89 -9
  143. package/dist/index163.js.map +1 -1
  144. package/dist/index164.js +50 -7
  145. package/dist/index164.js.map +1 -1
  146. package/dist/index165.js +20 -10
  147. package/dist/index165.js.map +1 -1
  148. package/dist/index166.js +11 -20
  149. package/dist/index166.js.map +1 -1
  150. package/dist/index167.js +13 -8
  151. package/dist/index167.js.map +1 -1
  152. package/dist/index168.js +8 -8
  153. package/dist/index168.js.map +1 -1
  154. package/dist/index169.js +25 -16
  155. package/dist/index169.js.map +1 -1
  156. package/dist/index17.js +9 -20
  157. package/dist/index17.js.map +1 -1
  158. package/dist/index170.js +10 -13
  159. package/dist/index170.js.map +1 -1
  160. package/dist/index171.js +9 -17
  161. package/dist/index171.js.map +1 -1
  162. package/dist/index172.js +9 -17
  163. package/dist/index172.js.map +1 -1
  164. package/dist/index173.js +7 -8
  165. package/dist/index173.js.map +1 -1
  166. package/dist/index174.js +9 -9
  167. package/dist/index174.js.map +1 -1
  168. package/dist/index175.js +70 -10
  169. package/dist/index175.js.map +1 -1
  170. package/dist/index176.js +20 -9
  171. package/dist/index176.js.map +1 -1
  172. package/dist/index177.js +15 -12
  173. package/dist/index177.js.map +1 -1
  174. package/dist/index178.js +12 -8
  175. package/dist/index178.js.map +1 -1
  176. package/dist/index179.js +23 -8
  177. package/dist/index179.js.map +1 -1
  178. package/dist/index18.js +27 -460
  179. package/dist/index18.js.map +1 -1
  180. package/dist/index180.js +20 -12
  181. package/dist/index180.js.map +1 -1
  182. package/dist/index181.js +58 -8
  183. package/dist/index181.js.map +1 -1
  184. package/dist/index182.js +13 -8
  185. package/dist/index182.js.map +1 -1
  186. package/dist/index183.js +9 -7
  187. package/dist/index183.js.map +1 -1
  188. package/dist/index184.js +29 -14
  189. package/dist/index184.js.map +1 -1
  190. package/dist/index185.js +29 -13
  191. package/dist/index185.js.map +1 -1
  192. package/dist/index186.js +16 -13
  193. package/dist/index186.js.map +1 -1
  194. package/dist/index187.js +16 -14
  195. package/dist/index187.js.map +1 -1
  196. package/dist/index188.js +9 -14
  197. package/dist/index188.js.map +1 -1
  198. package/dist/index189.js +26 -13
  199. package/dist/index189.js.map +1 -1
  200. package/dist/index19.js +65 -666
  201. package/dist/index19.js.map +1 -1
  202. package/dist/index190.js +388 -10
  203. package/dist/index190.js.map +1 -1
  204. package/dist/index191.js +499 -10
  205. package/dist/index191.js.map +1 -1
  206. package/dist/index192.js +134 -9
  207. package/dist/index192.js.map +1 -1
  208. package/dist/index193.js +55 -9
  209. package/dist/index193.js.map +1 -1
  210. package/dist/index194.js +80 -10
  211. package/dist/index194.js.map +1 -1
  212. package/dist/index195.js +902 -9
  213. package/dist/index195.js.map +1 -1
  214. package/dist/index196.js +22 -58
  215. package/dist/index196.js.map +1 -1
  216. package/dist/index197.js +452 -12
  217. package/dist/index197.js.map +1 -1
  218. package/dist/index198.js +7 -22
  219. package/dist/index198.js.map +1 -1
  220. package/dist/index199.js +60 -32
  221. package/dist/index199.js.map +1 -1
  222. package/dist/index2.js +10 -8
  223. package/dist/index20.js +43 -469
  224. package/dist/index20.js.map +1 -1
  225. package/dist/index200.js +63 -15
  226. package/dist/index200.js.map +1 -1
  227. package/dist/index201.js +11 -28
  228. package/dist/index201.js.map +1 -1
  229. package/dist/index202.js +19 -8
  230. package/dist/index202.js.map +1 -1
  231. package/dist/index203.js +148 -20
  232. package/dist/index203.js.map +1 -1
  233. package/dist/index204.js +7 -11
  234. package/dist/index204.js.map +1 -1
  235. package/dist/index205.js +13 -13
  236. package/dist/index205.js.map +1 -1
  237. package/dist/index206.js +107 -13
  238. package/dist/index206.js.map +1 -1
  239. package/dist/index207.js +359 -23
  240. package/dist/index207.js.map +1 -1
  241. package/dist/index208.js +99 -14
  242. package/dist/index208.js.map +1 -1
  243. package/dist/index209.js +329 -12
  244. package/dist/index209.js.map +1 -1
  245. package/dist/index21.js +12 -266
  246. package/dist/index21.js.map +1 -1
  247. package/dist/index210.js +213 -12
  248. package/dist/index210.js.map +1 -1
  249. package/dist/index211.js +22 -8
  250. package/dist/index211.js.map +1 -1
  251. package/dist/index212.js +30 -8
  252. package/dist/index212.js.map +1 -1
  253. package/dist/index213.js +189 -18
  254. package/dist/index213.js.map +1 -1
  255. package/dist/index214.js +21 -13
  256. package/dist/index214.js.map +1 -1
  257. package/dist/index215.js +46 -21
  258. package/dist/index215.js.map +1 -1
  259. package/dist/index216.js +12 -18
  260. package/dist/index216.js.map +1 -1
  261. package/dist/index217.js +28 -16
  262. package/dist/index217.js.map +1 -1
  263. package/dist/index218.js +47 -8
  264. package/dist/index218.js.map +1 -1
  265. package/dist/index219.js +19 -70
  266. package/dist/index219.js.map +1 -1
  267. package/dist/index22.js +16 -8
  268. package/dist/index22.js.map +1 -1
  269. package/dist/index220.js +6 -5
  270. package/dist/index220.js.map +1 -1
  271. package/dist/index221.js +8 -367
  272. package/dist/index221.js.map +1 -1
  273. package/dist/index222.js +24 -265
  274. package/dist/index222.js.map +1 -1
  275. package/dist/index223.js +27 -63
  276. package/dist/index223.js.map +1 -1
  277. package/dist/index224.js +68 -47
  278. package/dist/index224.js.map +1 -1
  279. package/dist/index225.js +17 -172
  280. package/dist/index225.js.map +1 -1
  281. package/dist/index226.js +7 -113
  282. package/dist/index226.js.map +1 -1
  283. package/dist/index227.js +53 -27
  284. package/dist/index227.js.map +1 -1
  285. package/dist/index228.js +8 -10
  286. package/dist/index228.js.map +1 -1
  287. package/dist/index229.js +28 -6
  288. package/dist/index229.js.map +1 -1
  289. package/dist/index23.js +109 -30
  290. package/dist/index23.js.map +1 -1
  291. package/dist/index230.js +16 -8
  292. package/dist/index230.js.map +1 -1
  293. package/dist/index231.js +12 -7
  294. package/dist/index231.js.map +1 -1
  295. package/dist/index232.js +3 -470
  296. package/dist/index233.js +28 -188
  297. package/dist/index233.js.map +1 -1
  298. package/dist/index234.js +68 -107
  299. package/dist/index234.js.map +1 -1
  300. package/dist/index235.js +3 -266
  301. package/dist/index236.js +14 -12
  302. package/dist/index236.js.map +1 -1
  303. package/dist/index237.js +53 -45
  304. package/dist/index237.js.map +1 -1
  305. package/dist/index238.js +117 -7
  306. package/dist/index238.js.map +1 -1
  307. package/dist/index239.js +9 -28
  308. package/dist/index239.js.map +1 -1
  309. package/dist/index24.js +3 -269
  310. package/dist/index24.js.map +1 -1
  311. package/dist/index240.js +15 -31
  312. package/dist/index240.js.map +1 -1
  313. package/dist/index241.js +689 -7
  314. package/dist/index241.js.map +1 -1
  315. package/dist/index242.js +256 -71
  316. package/dist/index242.js.map +1 -1
  317. package/dist/index243.js +704 -184
  318. package/dist/index243.js.map +1 -1
  319. package/dist/index244.js +7433 -49
  320. package/dist/index244.js.map +1 -1
  321. package/dist/index245.js +9 -7
  322. package/dist/index245.js.map +1 -1
  323. package/dist/index246.js +16 -22
  324. package/dist/index246.js.map +1 -1
  325. package/dist/index247.js +8 -15
  326. package/dist/index247.js.map +1 -1
  327. package/dist/index248.js +462 -16
  328. package/dist/index248.js.map +1 -1
  329. package/dist/index249.js +41 -158
  330. package/dist/index249.js.map +1 -1
  331. package/dist/index25.js +11 -179
  332. package/dist/index25.js.map +1 -1
  333. package/dist/index250.js +21 -32
  334. package/dist/index250.js.map +1 -1
  335. package/dist/index251.js +30 -12
  336. package/dist/index251.js.map +1 -1
  337. package/dist/index252.js +8 -52
  338. package/dist/index252.js.map +1 -1
  339. package/dist/index253.js +62 -15
  340. package/dist/index253.js.map +1 -1
  341. package/dist/index254.js +10 -47
  342. package/dist/index254.js.map +1 -1
  343. package/dist/index255.js +14 -97
  344. package/dist/index255.js.map +1 -1
  345. package/dist/index256.js +6 -90
  346. package/dist/index256.js.map +1 -1
  347. package/dist/index257.js +20 -109
  348. package/dist/index257.js.map +1 -1
  349. package/dist/index258.js +28 -55
  350. package/dist/index258.js.map +1 -1
  351. package/dist/index259.js +47 -15
  352. package/dist/index259.js.map +1 -1
  353. package/dist/index26.js +22 -16
  354. package/dist/index26.js.map +1 -1
  355. package/dist/index260.js +16 -40
  356. package/dist/index260.js.map +1 -1
  357. package/dist/index261.js +28 -11
  358. package/dist/index261.js.map +1 -1
  359. package/dist/index262.js +20 -119
  360. package/dist/index262.js.map +1 -1
  361. package/dist/index263.js +38 -20
  362. package/dist/index263.js.map +1 -1
  363. package/dist/index264.js +8 -18
  364. package/dist/index264.js.map +1 -1
  365. package/dist/index265.js +12 -6
  366. package/dist/index265.js.map +1 -1
  367. package/dist/index266.js +11 -39
  368. package/dist/index266.js.map +1 -1
  369. package/dist/index267.js +12 -23
  370. package/dist/index267.js.map +1 -1
  371. package/dist/index268.js +13 -12
  372. package/dist/index268.js.map +1 -1
  373. package/dist/index269.js +10 -11
  374. package/dist/index269.js.map +1 -1
  375. package/dist/index27.js +61 -2924
  376. package/dist/index27.js.map +1 -1
  377. package/dist/index270.js +76 -22
  378. package/dist/index270.js.map +1 -1
  379. package/dist/index271.js +174 -31
  380. package/dist/index271.js.map +1 -1
  381. package/dist/index272.js +118 -20
  382. package/dist/index272.js.map +1 -1
  383. package/dist/index273.js +18 -8
  384. package/dist/index273.js.map +1 -1
  385. package/dist/index274.js +83 -5
  386. package/dist/index274.js.map +1 -1
  387. package/dist/index275.js +49 -26
  388. package/dist/index275.js.map +1 -1
  389. package/dist/index276.js +15 -114
  390. package/dist/index276.js.map +1 -1
  391. package/dist/index277.js +19 -18
  392. package/dist/index277.js.map +1 -1
  393. package/dist/index278.js +98 -523
  394. package/dist/index278.js.map +1 -1
  395. package/dist/index279.js +60 -131
  396. package/dist/index279.js.map +1 -1
  397. package/dist/index28.js +58 -5
  398. package/dist/index28.js.map +1 -1
  399. package/dist/index280.js +109 -134
  400. package/dist/index280.js.map +1 -1
  401. package/dist/index281.js +75 -9
  402. package/dist/index281.js.map +1 -1
  403. package/dist/index282.js +117 -9
  404. package/dist/index282.js.map +1 -1
  405. package/dist/index283.js +59 -7
  406. package/dist/index283.js.map +1 -1
  407. package/dist/index284.js +46 -18
  408. package/dist/index284.js.map +1 -1
  409. package/dist/index285.js +146 -12
  410. package/dist/index285.js.map +1 -1
  411. package/dist/index286.js +143 -9
  412. package/dist/index286.js.map +1 -1
  413. package/dist/index287.js +258 -8
  414. package/dist/index287.js.map +1 -1
  415. package/dist/index288.js +241 -546
  416. package/dist/index288.js.map +1 -1
  417. package/dist/index289.js +302 -50
  418. package/dist/index289.js.map +1 -1
  419. package/dist/index29.js +1 -40
  420. package/dist/index290.js +9 -21
  421. package/dist/index290.js.map +1 -1
  422. package/dist/index291.js +9 -9
  423. package/dist/index291.js.map +1 -1
  424. package/dist/index292.js +10 -11
  425. package/dist/index292.js.map +1 -1
  426. package/dist/index293.js +9 -10
  427. package/dist/index293.js.map +1 -1
  428. package/dist/index294.js +9 -11
  429. package/dist/index294.js.map +1 -1
  430. package/dist/index295.js +24 -15
  431. package/dist/index295.js.map +1 -1
  432. package/dist/index296.js +13 -12
  433. package/dist/index296.js.map +1 -1
  434. package/dist/index297.js +130 -17
  435. package/dist/index297.js.map +1 -1
  436. package/dist/index298.js +167 -23
  437. package/dist/index298.js.map +1 -1
  438. package/dist/index299.js +69 -65
  439. package/dist/index299.js.map +1 -1
  440. package/dist/index3.js +6 -5
  441. package/dist/index3.js.map +1 -1
  442. package/dist/index30.js +6 -6
  443. package/dist/index300.js +113 -72
  444. package/dist/index300.js.map +1 -1
  445. package/dist/index301.js +495 -12
  446. package/dist/index301.js.map +1 -1
  447. package/dist/index302.js +65 -16
  448. package/dist/index302.js.map +1 -1
  449. package/dist/index303.js +7 -69
  450. package/dist/index303.js.map +1 -1
  451. package/dist/index304.js +30 -7
  452. package/dist/index304.js.map +1 -1
  453. package/dist/index305.js +68 -58
  454. package/dist/index305.js.map +1 -1
  455. package/dist/index306.js +155 -70
  456. package/dist/index306.js.map +1 -1
  457. package/dist/index307.js +563 -32
  458. package/dist/index307.js.map +1 -1
  459. package/dist/index308.js +213 -11
  460. package/dist/index308.js.map +1 -1
  461. package/dist/index309.js +335 -156
  462. package/dist/index309.js.map +1 -1
  463. package/dist/index31.js +8 -128
  464. package/dist/index31.js.map +1 -1
  465. package/dist/index310.js +271 -110
  466. package/dist/index310.js.map +1 -1
  467. package/dist/index32.js +8 -234
  468. package/dist/index32.js.map +1 -1
  469. package/dist/index33.js +8 -26
  470. package/dist/index33.js.map +1 -1
  471. package/dist/index34.js +11 -54
  472. package/dist/index34.js.map +1 -1
  473. package/dist/index35.js +13 -24
  474. package/dist/index35.js.map +1 -1
  475. package/dist/index36.js +9 -133
  476. package/dist/index36.js.map +1 -1
  477. package/dist/index37.js +11 -225
  478. package/dist/index37.js.map +1 -1
  479. package/dist/index38.js +12 -94
  480. package/dist/index38.js.map +1 -1
  481. package/dist/index39.js +15 -121
  482. package/dist/index39.js.map +1 -1
  483. package/dist/index4.js +24 -28
  484. package/dist/index4.js.map +1 -1
  485. package/dist/index40.js +9 -8
  486. package/dist/index40.js.map +1 -1
  487. package/dist/index41.js +10 -847
  488. package/dist/index41.js.map +1 -1
  489. package/dist/index42.js +10 -60
  490. package/dist/index42.js.map +1 -1
  491. package/dist/index43.js +12 -10
  492. package/dist/index43.js.map +1 -1
  493. package/dist/index44.js +12 -5
  494. package/dist/index44.js.map +1 -1
  495. package/dist/index45.js +8 -14
  496. package/dist/index45.js.map +1 -1
  497. package/dist/index46.js +8 -21
  498. package/dist/index46.js.map +1 -1
  499. package/dist/index47.js +14 -10
  500. package/dist/index47.js.map +1 -1
  501. package/dist/index48.js +15 -5
  502. package/dist/index48.js.map +1 -1
  503. package/dist/index49.js +10 -26
  504. package/dist/index49.js.map +1 -1
  505. package/dist/index5.js +34 -48
  506. package/dist/index5.js.map +1 -1
  507. package/dist/index50.js +7 -236
  508. package/dist/index50.js.map +1 -1
  509. package/dist/index51.js +9 -9
  510. package/dist/index51.js.map +1 -1
  511. package/dist/index52.js +9 -36
  512. package/dist/index52.js.map +1 -1
  513. package/dist/index53.js +9 -29
  514. package/dist/index53.js.map +1 -1
  515. package/dist/index54.js +12 -10
  516. package/dist/index54.js.map +1 -1
  517. package/dist/index55.js +16 -14
  518. package/dist/index55.js.map +1 -1
  519. package/dist/index56.js +10 -5
  520. package/dist/index56.js.map +1 -1
  521. package/dist/index57.js +10 -5
  522. package/dist/index57.js.map +1 -1
  523. package/dist/index58.js +10 -5
  524. package/dist/index58.js.map +1 -1
  525. package/dist/index59.js +17 -5
  526. package/dist/index59.js.map +1 -1
  527. package/dist/index6.js +42 -227
  528. package/dist/index6.js.map +1 -1
  529. package/dist/index60.js +11 -208
  530. package/dist/index60.js.map +1 -1
  531. package/dist/index61.js +11 -6
  532. package/dist/index61.js.map +1 -1
  533. package/dist/index62.js +70 -50
  534. package/dist/index62.js.map +1 -1
  535. package/dist/index63.js +10 -53
  536. package/dist/index63.js.map +1 -1
  537. package/dist/index64.js +33 -10
  538. package/dist/index64.js.map +1 -1
  539. package/dist/index65.js +13 -18
  540. package/dist/index65.js.map +1 -1
  541. package/dist/index66.js +19 -137
  542. package/dist/index66.js.map +1 -1
  543. package/dist/index67.js +203 -13
  544. package/dist/index67.js.map +1 -1
  545. package/dist/index68.js +22 -218
  546. package/dist/index68.js.map +1 -1
  547. package/dist/index69.js +20 -16
  548. package/dist/index69.js.map +1 -1
  549. package/dist/index7.js +225 -37
  550. package/dist/index7.js.map +1 -1
  551. package/dist/index70.js +125 -49
  552. package/dist/index70.js.map +1 -1
  553. package/dist/index71.js +21 -52
  554. package/dist/index71.js.map +1 -1
  555. package/dist/index72.js +12 -7
  556. package/dist/index72.js.map +1 -1
  557. package/dist/index73.js +12 -8
  558. package/dist/index73.js.map +1 -1
  559. package/dist/index74.js +17 -31
  560. package/dist/index74.js.map +1 -1
  561. package/dist/index75.js +13 -53
  562. package/dist/index75.js.map +1 -1
  563. package/dist/index76.js +13 -12
  564. package/dist/index76.js.map +1 -1
  565. package/dist/index77.js +8 -55
  566. package/dist/index77.js.map +1 -1
  567. package/dist/index78.js +44 -7
  568. package/dist/index78.js.map +1 -1
  569. package/dist/index79.js +383 -7
  570. package/dist/index79.js.map +1 -1
  571. package/dist/index8.js +36 -32
  572. package/dist/index8.js.map +1 -1
  573. package/dist/index80.js +41 -18
  574. package/dist/index80.js.map +1 -1
  575. package/dist/index81.js +25 -9
  576. package/dist/index81.js.map +1 -1
  577. package/dist/index82.js +60 -10
  578. package/dist/index82.js.map +1 -1
  579. package/dist/index83.js +10 -19
  580. package/dist/index83.js.map +1 -1
  581. package/dist/index84.js +8 -7
  582. package/dist/index84.js.map +1 -1
  583. package/dist/index85.js +8 -7
  584. package/dist/index85.js.map +1 -1
  585. package/dist/index86.js +8 -8
  586. package/dist/index86.js.map +1 -1
  587. package/dist/index87.js +8 -8
  588. package/dist/index87.js.map +1 -1
  589. package/dist/index88.js +9 -7
  590. package/dist/index88.js.map +1 -1
  591. package/dist/index89.js +9 -7
  592. package/dist/index89.js.map +1 -1
  593. package/dist/index9.js +33 -181
  594. package/dist/index9.js.map +1 -1
  595. package/dist/index90.js +13 -9
  596. package/dist/index90.js.map +1 -1
  597. package/dist/index91.js +10 -27
  598. package/dist/index91.js.map +1 -1
  599. package/dist/index92.js +9 -9
  600. package/dist/index92.js.map +1 -1
  601. package/dist/index93.js +8 -7
  602. package/dist/index93.js.map +1 -1
  603. package/dist/index94.js +10 -9
  604. package/dist/index94.js.map +1 -1
  605. package/dist/index95.js +50 -8
  606. package/dist/index95.js.map +1 -1
  607. package/dist/index96.js +108 -7
  608. package/dist/index96.js.map +1 -1
  609. package/dist/index97.js +13 -8
  610. package/dist/index97.js.map +1 -1
  611. package/dist/index98.js +9 -7
  612. package/dist/index98.js.map +1 -1
  613. package/dist/index99.js +9 -11
  614. package/dist/index99.js.map +1 -1
  615. package/package.json +6 -6
  616. package/dist/index.js.map +0 -1
  617. package/dist/index2.js.map +0 -1
  618. package/dist/index232.js.map +0 -1
  619. package/dist/index235.js.map +0 -1
  620. package/dist/index29.js.map +0 -1
  621. package/dist/index30.js.map +0 -1
  622. package/dist/index311.js +0 -7
  623. package/dist/index311.js.map +0 -1
  624. package/dist/index312.js +0 -26
  625. package/dist/index312.js.map +0 -1
  626. package/dist/index313.js +0 -19
  627. package/dist/index313.js.map +0 -1
  628. package/dist/index314.js +0 -32
  629. package/dist/index314.js.map +0 -1
  630. package/dist/index315.js +0 -16
  631. package/dist/index315.js.map +0 -1
  632. package/dist/index316.js +0 -10
  633. package/dist/index316.js.map +0 -1
  634. package/dist/index317.js +0 -26
  635. package/dist/index317.js.map +0 -1
  636. package/dist/index318.js +0 -16
  637. package/dist/index318.js.map +0 -1
  638. package/dist/index319.js +0 -31
  639. package/dist/index319.js.map +0 -1
  640. package/dist/index320.js +0 -8
  641. package/dist/index320.js.map +0 -1
package/dist/index29.js CHANGED
@@ -1,40 +1 @@
1
- function w(o, e) {
2
- o.src = e;
3
- }
4
- const v = (o) => {
5
- var e, r, a, m = "The Google Maps JavaScript API", n = "google", p = "importLibrary", _ = "__ib__", l = document, E = window, u = E[n] || (E[n] = {}), i = u.maps || (u.maps = {}), f = /* @__PURE__ */ new Set(), t = new URLSearchParams(), S = () => e || (e = new Promise(async (s, c) => {
6
- await (r = l.createElement("script")), t.set("libraries", [...f] + "");
7
- for (a in o)
8
- t.set(a.replace(/[A-Z]/g, (b) => "_" + b[0].toLowerCase()), o[a]);
9
- t.set("callback", n + ".maps." + _), w(r, "https://maps.googleapis.com/maps/api/js?" + t), i[_] = s, r.onerror = () => e = c(Error(m + " could not load.")), r.nonce = l.querySelector("script[nonce]")?.nonce || "", l.head.append(r);
10
- }));
11
- i[p] ? console.warn(m + " only loads once. Ignoring:", o) : i[p] = (s, ...c) => f.add(s) && S().then(() => i[p](s, ...c));
12
- }, y = (o) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(o)}) will be ignored.`, O = (o) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(o)}) will be ignored.`, T = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", L = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", h = process.env.NODE_ENV !== "production", d = h ? (o) => {
13
- console.warn(`[@googlemaps/js-api-loader] ${o}`);
14
- } : () => {
15
- }, P = h ? (o) => {
16
- console.info(`[@googlemaps/js-api-loader] ${o}`);
17
- } : () => {
18
- }, I = process.env.NODE_ENV !== "production";
19
- let g = !1;
20
- function A(o) {
21
- if (g) {
22
- d(y(o));
23
- return;
24
- }
25
- N(o), g = !0;
26
- }
27
- async function M(o) {
28
- if (g || d(T), !window?.google?.maps?.importLibrary)
29
- throw new Error("google.maps.importLibrary is not installed.");
30
- return await google.maps.importLibrary(o);
31
- }
32
- function N(o) {
33
- const e = !!window.google?.maps?.importLibrary;
34
- e ? P(O(o)) : I && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && d(L), e || v(o);
35
- }
36
- export {
37
- M as importLibrary,
38
- A as setOptions
39
- };
40
- //# sourceMappingURL=index29.js.map
1
+ import "./index28.js";
package/dist/index290.js CHANGED
@@ -1,21 +1,9 @@
1
- const r = /^D+$/, s = /^Y+$/, a = ["D", "DD", "YY", "YYYY"];
2
- function i(e) {
3
- return r.test(e);
4
- }
5
- function f(e) {
6
- return s.test(e);
7
- }
8
- function d(e, o, n) {
9
- const t = c(e, o, n);
10
- if (console.warn(t), a.includes(e)) throw new RangeError(t);
11
- }
12
- function c(e, o, n) {
13
- const t = e[0] === "Y" ? "years" : "days of the month";
14
- return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${o}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
15
- }
16
- export {
17
- i as isProtectedDayOfYearToken,
18
- f as isProtectedWeekYearToken,
19
- d as warnOrThrowProtectedError
20
- };
21
- //# sourceMappingURL=index290.js.map
1
+ import { Metadata as e } from "./index248.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/getCountries.js
3
+ function t(t) {
4
+ return new e(t).getCountries();
5
+ }
6
+ //#endregion
7
+ export { t as default };
8
+
9
+ //# sourceMappingURL=index290.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index290.js","sources":["../../../node_modules/date-fns/_lib/protectedTokens.js"],"sourcesContent":["const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n"],"names":["dayOfYearTokenRE","weekYearTokenRE","throwTokens","isProtectedDayOfYearToken","token","isProtectedWeekYearToken","warnOrThrowProtectedError","format","input","_message","message","subject"],"mappings":"AAAA,MAAMA,IAAmB,QACnBC,IAAkB,QAElBC,IAAc,CAAC,KAAK,MAAM,MAAM,MAAM;AAErC,SAASC,EAA0BC,GAAO;AAC/C,SAAOJ,EAAiB,KAAKI,CAAK;AACpC;AAEO,SAASC,EAAyBD,GAAO;AAC9C,SAAOH,EAAgB,KAAKG,CAAK;AACnC;AAEO,SAASE,EAA0BF,GAAOG,GAAQC,GAAO;AAC9D,QAAMC,IAAWC,EAAQN,GAAOG,GAAQC,CAAK;AAE7C,MADA,QAAQ,KAAKC,CAAQ,GACjBP,EAAY,SAASE,CAAK,EAAG,OAAM,IAAI,WAAWK,CAAQ;AAChE;AAEA,SAASC,EAAQN,GAAOG,GAAQC,GAAO;AACrC,QAAMG,IAAUP,EAAM,CAAC,MAAM,MAAM,UAAU;AAC7C,SAAO,SAASA,EAAM,YAAW,CAAE,mBAAmBA,CAAK,YAAYG,CAAM,sBAAsBI,CAAO,mBAAmBH,CAAK;AACpI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index290.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/getCountries.js"],"sourcesContent":["import Metadata from './metadata.js';\nexport default function getCountries(metadata) {\n return new Metadata(metadata).getCountries();\n}\n//# sourceMappingURL=getCountries.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,EAAa,GAAU;AAC7C,QAAO,IAAI,EAAS,EAAS,CAAC,cAAc"}
package/dist/index291.js CHANGED
@@ -1,10 +1,10 @@
1
- import { isDate as r } from "./index183.js";
2
- import { toDate as t } from "./index282.js";
3
- function f(o) {
4
- return !(!r(o) && typeof o != "number" || isNaN(+t(o)));
1
+ import e from "./index245.js";
2
+ import t from "./index281.js";
3
+ //#region ../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js
4
+ function n() {
5
+ return e(t, arguments);
5
6
  }
6
- export {
7
- f as default,
8
- f as isValid
9
- };
10
- //# sourceMappingURL=index291.js.map
7
+ //#endregion
8
+ export { n as validatePhoneNumberLength };
9
+
10
+ //# sourceMappingURL=index291.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index291.js","sources":["../../../node_modules/date-fns/isValid.js"],"sourcesContent":["import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n"],"names":["isValid","date","isDate","toDate"],"mappings":";;AAkCO,SAASA,EAAQC,GAAM;AAC5B,SAAO,EAAG,CAACC,EAAOD,CAAI,KAAK,OAAOA,KAAS,YAAa,MAAM,CAACE,EAAOF,CAAI,CAAC;AAC7E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index291.js","names":["_validatePhoneNumberLength"],"sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAgB,IAA4B;AAC3C,QAAO,EAAqBA,GAA4B,UAAU"}
package/dist/index292.js CHANGED
@@ -1,12 +1,11 @@
1
- import { differenceInCalendarDays as f } from "./index169.js";
2
- import { startOfYear as e } from "./index195.js";
3
- import { toDate as o } from "./index282.js";
4
- function c(t, a) {
5
- const r = o(t, a?.in);
6
- return f(r, e(r)) + 1;
1
+ import e from "./index244.js";
2
+ import { AsYouType as t } from "./index289.js";
3
+ //#region ../../node_modules/libphonenumber-js/min/exports/AsYouType.js
4
+ function n(n) {
5
+ return t.call(this, n, e);
7
6
  }
8
- export {
9
- c as default,
10
- c as getDayOfYear
11
- };
12
- //# sourceMappingURL=index292.js.map
7
+ n.prototype = Object.create(t.prototype, {}), n.prototype.constructor = n;
8
+ //#endregion
9
+ export { n as AsYouType };
10
+
11
+ //# sourceMappingURL=index292.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index292.js","sources":["../../../node_modules/date-fns/getDayOfYear.js"],"sourcesContent":["import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n"],"names":["getDayOfYear","date","options","_date","toDate","differenceInCalendarDays","startOfYear"],"mappings":";;;AA0BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AAGtC,SAFaG,EAAyBF,GAAOG,EAAYH,CAAK,CAAC,IACtC;AAE3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index292.js","names":["_AsYouType","metadata"],"sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"x_google_ignoreList":[0],"mappings":";;;AAMA,SAAgB,EAAU,GAAS;AAClC,QAAOA,EAAW,KAAK,MAAM,GAASC,EAAS;;AAGhD,EAAU,YAAY,OAAO,OAAOD,EAAW,WAAW,EAAE,CAAC,EAC7D,EAAU,UAAU,cAAc"}
package/dist/index293.js CHANGED
@@ -1,11 +1,10 @@
1
- import { constructFrom as s } from "./index281.js";
2
- import { toDate as c } from "./index282.js";
3
- function m(e, n) {
4
- const t = c(e, n?.in), r = t.getFullYear(), a = t.getMonth(), o = s(t, 0);
5
- return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1
+ import e from "./index245.js";
2
+ import t from "./index290.js";
3
+ //#region ../../node_modules/libphonenumber-js/min/exports/getCountries.js
4
+ function n() {
5
+ return e(t, arguments);
6
6
  }
7
- export {
8
- m as default,
9
- m as getDaysInMonth
10
- };
11
- //# sourceMappingURL=index293.js.map
7
+ //#endregion
8
+ export { n as getCountries };
9
+
10
+ //# sourceMappingURL=index293.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index293.js","sources":["../../../node_modules/date-fns/getDaysInMonth.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n"],"names":["getDaysInMonth","date","options","_date","toDate","year","monthIndex","lastDayOfMonth","constructFrom"],"mappings":";;AAyBO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GACxBG,IAAaH,EAAM,SAAQ,GAC3BI,IAAiBC,EAAcL,GAAO,CAAC;AAC7C,SAAAI,EAAe,YAAYF,GAAMC,IAAa,GAAG,CAAC,GAClDC,EAAe,SAAS,GAAG,GAAG,GAAG,CAAC,GAC3BA,EAAe,QAAO;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index293.js","names":["_getCountries"],"sources":["../../../node_modules/libphonenumber-js/min/exports/getCountries.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountries as _getCountries } from '../../core/index.js'\r\n\r\nexport function getCountries() {\r\n\treturn withMetadataArgument(_getCountries, arguments)\r\n}"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAgB,IAAe;AAC9B,QAAO,EAAqBA,GAAe,UAAU"}
package/dist/index294.js CHANGED
@@ -1,12 +1,10 @@
1
- import { constructFrom as a } from "./index281.js";
2
- import { getISOWeekYear as f } from "./index295.js";
3
- import { startOfISOWeek as s } from "./index192.js";
4
- function O(t, e) {
5
- const o = f(t, e), r = a(t, 0);
6
- return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
1
+ import e from "./index245.js";
2
+ import { getCountryCallingCode as t } from "./index248.js";
3
+ //#region ../../node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js
4
+ function n() {
5
+ return e(t, arguments);
7
6
  }
8
- export {
9
- O as default,
10
- O as startOfISOWeekYear
11
- };
12
- //# sourceMappingURL=index294.js.map
7
+ //#endregion
8
+ export { n as getCountryCallingCode };
9
+
10
+ //# sourceMappingURL=index294.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index294.js","sources":["../../../node_modules/date-fns/startOfISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n"],"names":["startOfISOWeekYear","date","options","year","getISOWeekYear","fourthOfJanuary","constructFrom","startOfISOWeek"],"mappings":";;;AAiCO,SAASA,EAAmBC,GAAMC,GAAS;AAChD,QAAMC,IAAOC,EAAeH,GAAMC,CAAO,GACnCG,IAAkBC,EAA6BL,GAAM,CAAC;AAC5D,SAAAI,EAAgB,YAAYF,GAAM,GAAG,CAAC,GACtCE,EAAgB,SAAS,GAAG,GAAG,GAAG,CAAC,GAC5BE,EAAeF,CAAe;AACvC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index294.js","names":["_getCountryCallingCode"],"sources":["../../../node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountryCallingCode as _getCountryCallingCode } from '../../core/index.js'\r\n\r\nexport function getCountryCallingCode() {\r\n\treturn withMetadataArgument(_getCountryCallingCode, arguments)\r\n}"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAgB,IAAwB;AACvC,QAAO,EAAqBA,GAAwB,UAAU"}
package/dist/index295.js CHANGED
@@ -1,16 +1,25 @@
1
- import { constructFrom as s } from "./index281.js";
2
- import { startOfISOWeek as a } from "./index192.js";
3
- import { toDate as m } from "./index282.js";
4
- function Y(f, n) {
5
- const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
6
- r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
7
- const u = a(r), o = s(e, 0);
8
- o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0);
9
- const i = a(o);
10
- return e.getTime() >= u.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
11
- }
12
- export {
13
- Y as default,
14
- Y as getISOWeekYear
1
+ //#region src/components/PhoneNumberInput/messages.ts
2
+ var e = {
3
+ en: {
4
+ lengthTooLong: (e) => e ? `This number looks too long for ${e}.` : "This number looks too long.",
5
+ noMatches: "No matching countries",
6
+ selectCountryLabel: "Select a country",
7
+ selectedCountryLabel: (e) => e ? `${e} flag` : "Selected country"
8
+ },
9
+ fr: {
10
+ lengthTooLong: (e) => e ? `This number looks too long for ${e}.` : "This number looks too long.",
11
+ noMatches: "Aucun pays correspondant",
12
+ selectCountryLabel: "Select a country",
13
+ selectedCountryLabel: (e) => e ? `${e} flag` : "Selected country"
14
+ }
15
15
  };
16
- //# sourceMappingURL=index295.js.map
16
+ function t(t, n) {
17
+ return {
18
+ ...e[(Array.isArray(t) ? t : t ? [t] : []).map((e) => e.split("-")[0]?.toLowerCase()).find((t) => t && e[t]) ?? "en"] ?? e.en,
19
+ ...n ?? {}
20
+ };
21
+ }
22
+ //#endregion
23
+ export { t as resolveMessages };
24
+
25
+ //# sourceMappingURL=index295.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index295.js","sources":["../../../node_modules/date-fns/getISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n"],"names":["getISOWeekYear","date","options","_date","toDate","year","fourthOfJanuaryOfNextYear","constructFrom","startOfNextYear","startOfISOWeek","fourthOfJanuaryOfThisYear","startOfThisYear"],"mappings":";;;AA4BO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAA4BC,EAAcJ,GAAO,CAAC;AACxD,EAAAG,EAA0B,YAAYD,IAAO,GAAG,GAAG,CAAC,GACpDC,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAME,IAAkBC,EAAeH,CAAyB,GAE1DI,IAA4BH,EAAcJ,GAAO,CAAC;AACxD,EAAAO,EAA0B,YAAYL,GAAM,GAAG,CAAC,GAChDK,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;AAC7C,QAAMC,IAAkBF,EAAeC,CAAyB;AAEhE,SAAIP,EAAM,QAAO,KAAMK,EAAgB,QAAO,IACrCH,IAAO,IACLF,EAAM,QAAO,KAAMQ,EAAgB,QAAO,IAC5CN,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index295.js","names":["PhoneNumberInputMessages","MESSAGE_DICTIONARY","Record","en","lengthTooLong","country","noMatches","selectCountryLabel","selectedCountryLabel","fr","resolveMessages","locale","overrides","Partial","locales","Array","isArray","preferred","map","entry","split","toLowerCase","find","code","base"],"sources":["../src/components/PhoneNumberInput/messages.ts"],"sourcesContent":["import type { PhoneNumberInputMessages } from \"./types\"\n\n\nconst MESSAGE_DICTIONARY: Record<string, PhoneNumberInputMessages> = {\n en: {\n lengthTooLong: (country) =>\n country ? `This number looks too long for ${country}.` : \"This number looks too long.\",\n noMatches: \"No matching countries\",\n selectCountryLabel: \"Select a country\",\n selectedCountryLabel: (country) => (country ? `${country} flag` : \"Selected country\"),\n },\n fr: {\n lengthTooLong: (country) =>\n country\n ? `This number looks too long for ${country}.`\n : \"This number looks too long.\",\n noMatches: \"Aucun pays correspondant\",\n selectCountryLabel: \"Select a country\",\n selectedCountryLabel: (country) => (country ? `${country} flag` : \"Selected country\"),\n },\n}\n\nexport function resolveMessages(\n locale: string | string[] | undefined,\n overrides?: Partial<PhoneNumberInputMessages>\n): PhoneNumberInputMessages {\n const locales = Array.isArray(locale) ? locale : locale ? [locale] : []\n const preferred = locales\n .map((entry) => entry.split(\"-\")[0]?.toLowerCase())\n .find((code) => code && MESSAGE_DICTIONARY[code])\n const base = MESSAGE_DICTIONARY[preferred ?? \"en\"] ?? MESSAGE_DICTIONARY.en\n return {\n ...base,\n ...(overrides ?? {}),\n }\n}\n\n"],"mappings":";AAGA,IAAMC,IAA+D;CACnEE,IAAI;EACFC,gBAAgBC,MACdA,IAAU,kCAAkCA,EAAO,KAAM;EAC3DC,WAAW;EACXC,oBAAoB;EACpBC,uBAAuBH,MAAaA,IAAU,GAAGA,EAAO,SAAU;EACnE;CACDI,IAAI;EACFL,gBAAgBC,MACdA,IACI,kCAAkCA,EAAO,KACzC;EACNC,WAAW;EACXC,oBAAoB;EACpBC,uBAAuBH,MAAaA,IAAU,GAAGA,EAAO,SAAU;EACpE;CACD;AAED,SAAgBK,EACdC,GACAC,GAC0B;AAM1B,QAAO;EACL,GAFWX,GAJGc,MAAMC,QAAQL,EAAO,GAAGA,IAASA,IAAS,CAACA,EAAO,GAAG,EAAE,EAEpEO,KAAKC,MAAUA,EAAMC,MAAM,IAAI,CAAC,IAAIC,aAAa,CAAC,CAClDC,MAAMC,MAASA,KAAQtB,EAAmBsB,GAAM,IACN,SAAStB,EAAmBE;EAGvE,GAAIS,KAAa,EAAE;EACpB"}
package/dist/index296.js CHANGED
@@ -1,13 +1,14 @@
1
- import { getDefaultOptions as n } from "./index287.js";
2
- import { constructFrom as i } from "./index281.js";
3
- import { getWeekYear as f } from "./index297.js";
4
- import { startOfWeek as c } from "./index194.js";
5
- function D(r, t) {
6
- const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
7
- return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
1
+ import { getCountries as e } from "./index293.js";
2
+ //#region src/components/PhoneNumberInput/countries.ts
3
+ var t = new Set([
4
+ "IM",
5
+ "GG",
6
+ "JE"
7
+ ]), n = e().filter((e) => !t.has(e));
8
+ function r() {
9
+ return n;
8
10
  }
9
- export {
10
- D as default,
11
- D as startOfWeekYear
12
- };
13
- //# sourceMappingURL=index296.js.map
11
+ //#endregion
12
+ export { r as getCountryList };
13
+
14
+ //# sourceMappingURL=index296.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index296.js","sources":["../../../node_modules/date-fns/startOfWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n"],"names":["startOfWeekYear","date","options","defaultOptions","getDefaultOptions","firstWeekContainsDate","year","getWeekYear","firstWeek","constructFrom","startOfWeek"],"mappings":";;;;AA8CO,SAASA,EAAgBC,GAAMC,GAAS;AAC7C,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BC,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAOC,EAAYN,GAAMC,CAAO,GAChCM,IAAYC,EAAcP,GAAS,MAAMD,GAAM,CAAC;AACtD,SAAAO,EAAU,YAAYF,GAAM,GAAGD,CAAqB,GACpDG,EAAU,SAAS,GAAG,GAAG,GAAG,CAAC,GACfE,EAAYF,GAAWN,CAAO;AAE9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index296.js","names":["getCountries","CountryCode","EXCLUDED_COUNTRIES","EXCLUDED_SET","Set","FILTERED_COUNTRIES","filter","code","has","getCountryList"],"sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"mappings":";;AAKA,IAAMG,IAAe,IAAIC,IADiB;CAAC;CAAM;CAAM;CAAK,CACZ,EAE1CC,IAAqBL,GAAc,CAACM,QAAQC,MAAS,CAACJ,EAAaK,IAAID,EAAK,CAAC;AAEnF,SAAgBE,IAAgC;AAC9C,QAAOJ"}
package/dist/index297.js CHANGED
@@ -1,17 +1,130 @@
1
- import { getDefaultOptions as k } from "./index287.js";
2
- import { constructFrom as i } from "./index281.js";
3
- import { startOfWeek as l } from "./index194.js";
4
- import { toDate as m } from "./index282.js";
5
- function C(r, e) {
6
- const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
7
- a.setFullYear(t + 1, 0, f), a.setHours(0, 0, 0, 0);
8
- const c = l(a, e), n = i(e?.in || r, 0);
9
- n.setFullYear(t, 0, f), n.setHours(0, 0, 0, 0);
10
- const u = l(n, e);
11
- return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
12
- }
13
- export {
14
- C as default,
15
- C as getWeekYear
16
- };
17
- //# sourceMappingURL=index297.js.map
1
+ import { getCountryCallingCode as e } from "./index294.js";
2
+ import { getCountryList as t } from "./index296.js";
3
+ var n = t(), r = /* @__PURE__ */ new Map(), i = "__default_locale__", a = Array.from(new Set(n.map((t) => e(t)))).sort((e, t) => t.length - e.length), o = a.reduce((e, t) => Math.max(e, t.length), 0), s = [
4
+ "0011",
5
+ "001",
6
+ "011",
7
+ "00",
8
+ "810"
9
+ ];
10
+ function c(e) {
11
+ return e && n.includes(e) ? e : "US";
12
+ }
13
+ function l(e) {
14
+ if (typeof Intl > "u" || Intl.DisplayNames === void 0) return null;
15
+ try {
16
+ let t = Array.isArray(e) ? e : e ? [e] : void 0;
17
+ return new Intl.DisplayNames(t, { type: "region" });
18
+ } catch {
19
+ return null;
20
+ }
21
+ }
22
+ function u(t) {
23
+ let r = l(t), i = l("en");
24
+ return n.map((t) => {
25
+ let n = e(t), a = r?.of(t) ?? i?.of(t) ?? t, o = i?.of(t) ?? a, s = S(t), c = Array.from(new Set([
26
+ a,
27
+ o,
28
+ t.toUpperCase(),
29
+ t.toLowerCase(),
30
+ ...s
31
+ ].filter(Boolean)));
32
+ return {
33
+ value: t,
34
+ name: a,
35
+ dialCode: n,
36
+ label: `${a} (+${n})`,
37
+ flag: _(t),
38
+ searchableTokens: c,
39
+ normalizedSearchableTokens: c.map((e) => b(e))
40
+ };
41
+ }).sort((e, t) => {
42
+ let n = d(e.value), r = d(t.value);
43
+ return n === r ? e.name.localeCompare(t.name) : n - r;
44
+ });
45
+ }
46
+ function d(t) {
47
+ return t === "US" ? 0 : t === "CA" ? 1 : e(t) === "1" ? 2 : 3;
48
+ }
49
+ function f(e) {
50
+ return e ? Array.isArray(e) ? e.join("\0") : e : i;
51
+ }
52
+ function p(e) {
53
+ if (e !== i) {
54
+ if (e.includes("\0")) {
55
+ let t = e.split("\0").filter(Boolean);
56
+ return t.length === 0 ? void 0 : t.length === 1 ? t[0] ?? void 0 : t;
57
+ }
58
+ return e;
59
+ }
60
+ }
61
+ function m(e, t) {
62
+ let n = r.get(t);
63
+ if (n) return n;
64
+ let i = u(e);
65
+ return r.set(t, i), i;
66
+ }
67
+ function h(e) {
68
+ return {
69
+ code: e.value,
70
+ name: e.name,
71
+ dialCode: e.dialCode,
72
+ flag: e.flag
73
+ };
74
+ }
75
+ function g(t) {
76
+ return {
77
+ code: t,
78
+ name: t,
79
+ dialCode: e(t),
80
+ flag: _(t)
81
+ };
82
+ }
83
+ function _(e) {
84
+ let t = e?.toUpperCase();
85
+ if (!t || t.length !== 2 || /[^A-Z]/.test(t)) return "";
86
+ let n = 127397;
87
+ return String.fromCodePoint(t.charCodeAt(0) + n, t.charCodeAt(1) + n);
88
+ }
89
+ var v = /[\u0300-\u036f]/g;
90
+ function y(e) {
91
+ return e.normalize("NFD").replace(v, "");
92
+ }
93
+ function b(e) {
94
+ return y(e).toLowerCase();
95
+ }
96
+ function x(e, t) {
97
+ let n = 2 ** 53 - 1;
98
+ for (let r of e) {
99
+ let e = r.indexOf(t);
100
+ e >= 0 && e < n && (n = e);
101
+ }
102
+ return n === 2 ** 53 - 1 ? 2 ** 53 - 1 : n;
103
+ }
104
+ function S(e) {
105
+ switch (e) {
106
+ case "US": return [
107
+ "USA",
108
+ "United States",
109
+ "America",
110
+ "United States of America"
111
+ ];
112
+ case "GB": return [
113
+ "UK",
114
+ "United Kingdom",
115
+ "Great Britain",
116
+ "England"
117
+ ];
118
+ case "AE": return ["UAE", "United Arab Emirates"];
119
+ case "KR": return ["South Korea", "Korea"];
120
+ case "CN": return ["China", "PRC"];
121
+ case "CD": return ["DRC", "Congo-Kinshasa"];
122
+ case "CG": return ["Congo-Brazzaville"];
123
+ case "BR": return ["Brazil"];
124
+ default: return [];
125
+ }
126
+ }
127
+ //#endregion
128
+ export { s as COMMON_IDD_PREFIXES, a as COUNTRY_DIAL_CODES, o as MAX_DIAL_CODE_LENGTH, g as buildFallbackSelectedCountry, m as getCachedCountryOptions, f as getLocaleCacheKey, c as getValidCountry, b as normalizeSearchValue, x as optionMatchIndex, p as parseLocaleCacheKey, h as toSelectedCountry };
129
+
130
+ //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":["getWeekYear","date","options","_date","toDate","year","defaultOptions","getDefaultOptions","firstWeekContainsDate","firstWeekOfNextYear","constructFrom","startOfNextYear","startOfWeek","firstWeekOfThisYear","startOfThisYear"],"mappings":";;;;AA2CO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAAiBC,EAAiB,GAClCC,IACJN,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BI,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAsBC,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAQ,EAAoB,YAAYJ,IAAO,GAAG,GAAGG,CAAqB,GAClEC,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAME,IAAkBC,EAAYH,GAAqBP,CAAO,GAE1DW,IAAsBH,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAY,EAAoB,YAAYR,GAAM,GAAGG,CAAqB,GAC9DK,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAMC,IAAkBF,EAAYC,GAAqBX,CAAO;AAEhE,SAAI,CAACC,KAAS,CAACQ,IACNN,IAAO,IACL,CAACF,KAAS,CAACW,IACbT,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","names":["CountryCode","getCountryCallingCode","CountryOption","PhoneNumberSelectedCountry","getCountryList","DEFAULT_COUNTRY","COUNTRY_OPTIONS","COUNTRY_OPTIONS_CACHE","Map","DEFAULT_LOCALE_CACHE_KEY","COUNTRY_DIAL_CODES","Array","from","Set","map","code","sort","a","b","length","MAX_DIAL_CODE_LENGTH","reduce","max","dial","Math","COMMON_IDD_PREFIXES","getValidCountry","input","includes","createDisplayNames","locale","Intl","DisplayNames","locales","isArray","undefined","type","buildCountryOptions","displayNames","englishDisplayNames","country","dialCode","localizedName","of","englishName","aliasTokens","getCountryAliases","searchableTokens","toUpperCase","toLowerCase","filter","Boolean","value","name","label","flag","countryCodeToFlagEmoji","normalizedSearchableTokens","token","normalizeSearchValue","priorityA","getCountryPriority","priorityB","localeCompare","getLocaleCacheKey","join","parseLocaleCacheKey","cacheKey","parts","split","getCachedCountryOptions","cached","get","built","set","toSelectedCountry","option","buildFallbackSelectedCountry","upper","test","base","String","fromCodePoint","charCodeAt","DIACRITICS_REGEX","stripDiacritics","normalize","replace","optionMatchIndex","tokens","query","best","Number","MAX_SAFE_INTEGER","index","indexOf"],"sources":["../src/components/PhoneNumberInput/country-options.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { getCountryCallingCode } from \"libphonenumber-js\"\n\nimport type { CountryOption, PhoneNumberSelectedCountry } from \"./types\"\nimport { getCountryList } from \"./countries\"\n\n\nexport const DEFAULT_COUNTRY: CountryCode = \"US\"\nconst COUNTRY_OPTIONS = getCountryList()\n\nconst COUNTRY_OPTIONS_CACHE = new Map<string, CountryOption[]>()\nconst DEFAULT_LOCALE_CACHE_KEY = \"__default_locale__\"\nexport const COUNTRY_DIAL_CODES = Array.from(\n new Set(COUNTRY_OPTIONS.map((code) => getCountryCallingCode(code)))\n).sort((a, b) => b.length - a.length)\nexport const MAX_DIAL_CODE_LENGTH = COUNTRY_DIAL_CODES.reduce(\n (max, dial) => Math.max(max, dial.length),\n 0\n)\nexport const COMMON_IDD_PREFIXES = [\"0011\", \"001\", \"011\", \"00\", \"810\"]\n\nexport function getValidCountry(input: CountryCode | undefined) {\n if (!input) {\n return DEFAULT_COUNTRY\n }\n\n return COUNTRY_OPTIONS.includes(input) ? input : DEFAULT_COUNTRY\n}\n\nfunction createDisplayNames(locale?: string | string[]) {\n if (typeof Intl === \"undefined\" || typeof Intl.DisplayNames === \"undefined\") {\n return null\n }\n\n try {\n const locales = Array.isArray(locale) ? locale : locale ? [locale] : undefined\n return new Intl.DisplayNames(locales, { type: \"region\" })\n } catch {\n return null\n }\n}\n\nfunction buildCountryOptions(locale?: string | string[]) {\n const displayNames = createDisplayNames(locale)\n const englishDisplayNames = createDisplayNames(\"en\")\n\n return COUNTRY_OPTIONS\n .map((country) => {\n const dialCode = getCountryCallingCode(country)\n const localizedName = displayNames?.of(country) ?? englishDisplayNames?.of(country) ?? country\n const englishName = englishDisplayNames?.of(country) ?? localizedName\n const aliasTokens = getCountryAliases(country)\n const searchableTokens = Array.from(\n new Set(\n [localizedName, englishName, country.toUpperCase(), country.toLowerCase(), ...aliasTokens].filter(\n Boolean\n )\n )\n ) as string[]\n return {\n value: country,\n name: localizedName,\n dialCode,\n label: `${localizedName} (+${dialCode})`,\n flag: countryCodeToFlagEmoji(country),\n searchableTokens,\n normalizedSearchableTokens: searchableTokens.map((token) => normalizeSearchValue(token)),\n }\n })\n .sort((a, b) => {\n const priorityA = getCountryPriority(a.value)\n const priorityB = getCountryPriority(b.value)\n if (priorityA !== priorityB) {\n return priorityA - priorityB\n }\n return a.name.localeCompare(b.name)\n })\n}\n\nfunction getCountryPriority(code: CountryCode) {\n if (code === \"US\") return 0\n if (code === \"CA\") return 1\n if (getCountryCallingCode(code) === \"1\") return 2\n return 3\n}\n\nexport function getLocaleCacheKey(locale?: string | string[]) {\n if (!locale) {\n return DEFAULT_LOCALE_CACHE_KEY\n }\n if (Array.isArray(locale)) {\n return locale.join(\"\\u0000\")\n }\n return locale\n}\n\nexport function parseLocaleCacheKey(cacheKey: string): string | string[] | undefined {\n if (cacheKey === DEFAULT_LOCALE_CACHE_KEY) {\n return undefined\n }\n\n if (cacheKey.includes(\"\\u0000\")) {\n const parts = cacheKey.split(\"\\u0000\").filter(Boolean)\n if (parts.length === 0) {\n return undefined\n }\n if (parts.length === 1) {\n return parts[0] ?? undefined\n }\n return parts\n }\n\n return cacheKey\n}\n\nexport function getCachedCountryOptions(locale: string | string[] | undefined, cacheKey: string) {\n const cached = COUNTRY_OPTIONS_CACHE.get(cacheKey)\n if (cached) {\n return cached\n }\n const built = buildCountryOptions(locale)\n COUNTRY_OPTIONS_CACHE.set(cacheKey, built)\n return built\n}\n\nexport function toSelectedCountry(option: CountryOption): PhoneNumberSelectedCountry {\n return {\n code: option.value,\n name: option.name,\n dialCode: option.dialCode,\n flag: option.flag,\n }\n}\n\nexport function buildFallbackSelectedCountry(country: CountryCode): PhoneNumberSelectedCountry {\n return {\n code: country,\n name: country,\n dialCode: getCountryCallingCode(country),\n flag: countryCodeToFlagEmoji(country),\n }\n}\n\nfunction countryCodeToFlagEmoji(country: CountryCode) {\n const upper = country?.toUpperCase()\n\n if (!upper || upper.length !== 2 || /[^A-Z]/.test(upper)) {\n return \"\"\n }\n\n const base = 127397\n return String.fromCodePoint(\n upper.charCodeAt(0) + base,\n upper.charCodeAt(1) + base\n )\n}\n\nconst DIACRITICS_REGEX = /[\\u0300-\\u036f]/g\n\nfunction stripDiacritics(value: string) {\n return value.normalize(\"NFD\").replace(DIACRITICS_REGEX, \"\")\n}\n\nexport function normalizeSearchValue(value: string) {\n return stripDiacritics(value).toLowerCase()\n}\n\nexport function optionMatchIndex(tokens: string[], query: string) {\n let best = Number.MAX_SAFE_INTEGER\n for (const token of tokens) {\n const index = token.indexOf(query)\n if (index >= 0 && index < best) {\n best = index\n }\n }\n return best === Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : best\n}\n\nfunction getCountryAliases(code: CountryCode): string[] {\n switch (code) {\n case \"US\":\n return [\"USA\", \"United States\", \"America\", \"United States of America\"]\n case \"GB\":\n return [\"UK\", \"United Kingdom\", \"Great Britain\", \"England\"]\n case \"AE\":\n return [\"UAE\", \"United Arab Emirates\"]\n case \"KR\":\n return [\"South Korea\", \"Korea\"]\n case \"CN\":\n return [\"China\", \"PRC\"]\n case \"CD\":\n return [\"DRC\", \"Congo-Kinshasa\"]\n case \"CG\":\n return [\"Congo-Brazzaville\"]\n case \"BR\":\n return [\"Brazil\"]\n default:\n return []\n }\n}\n\n"],"mappings":"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"}