@rpcbase/ui 0.244.0 → 0.245.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 (694) hide show
  1. package/dist/index10.js +2 -2
  2. package/dist/index105.js +36 -36
  3. package/dist/index106.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index117.js +6 -6
  6. package/dist/index12.js +3 -3
  7. package/dist/index120.js +10 -10
  8. package/dist/index122.js +2 -2
  9. package/dist/index123.js +3 -3
  10. package/dist/index124.js +1 -1
  11. package/dist/index126.js +2 -2
  12. package/dist/index128.js +2 -2
  13. package/dist/index13.js +2 -2
  14. package/dist/index14.js +2 -2
  15. package/dist/index149.js +14 -5
  16. package/dist/index149.js.map +1 -1
  17. package/dist/index15.js +2 -2
  18. package/dist/index150.js +63 -63
  19. package/dist/index150.js.map +1 -1
  20. package/dist/index151.js +38 -2
  21. package/dist/index151.js.map +1 -1
  22. package/dist/index152.js +13 -385
  23. package/dist/index152.js.map +1 -1
  24. package/dist/index153.js +23 -261
  25. package/dist/index153.js.map +1 -1
  26. package/dist/index154.js +109 -58
  27. package/dist/index154.js.map +1 -1
  28. package/dist/index155.js +13 -47
  29. package/dist/index155.js.map +1 -1
  30. package/dist/index156.js +4 -169
  31. package/dist/index156.js.map +1 -1
  32. package/dist/index157.js +4 -110
  33. package/dist/index157.js.map +1 -1
  34. package/dist/index158.js +5 -25
  35. package/dist/index158.js.map +1 -1
  36. package/dist/index159.js +12 -8
  37. package/dist/index159.js.map +1 -1
  38. package/dist/index16.js +8 -8
  39. package/dist/index160.js +19 -4
  40. package/dist/index160.js.map +1 -1
  41. package/dist/index161.js +11 -6
  42. package/dist/index161.js.map +1 -1
  43. package/dist/index162.js +176 -4
  44. package/dist/index162.js.map +1 -1
  45. package/dist/index163.js +268 -476
  46. package/dist/index163.js.map +1 -1
  47. package/dist/index164.js +4 -189
  48. package/dist/index164.js.map +1 -1
  49. package/dist/index165.js +28 -14
  50. package/dist/index165.js.map +1 -1
  51. package/dist/index166.js +124 -105
  52. package/dist/index166.js.map +1 -1
  53. package/dist/index167.js +63 -262
  54. package/dist/index167.js.map +1 -1
  55. package/dist/index168.js +8 -6
  56. package/dist/index168.js.map +1 -1
  57. package/dist/index169.js +15 -40
  58. package/dist/index169.js.map +1 -1
  59. package/dist/index17.js +1 -1
  60. package/dist/index170.js +30 -4
  61. package/dist/index170.js.map +1 -1
  62. package/dist/index171.js +69 -58
  63. package/dist/index171.js.map +1 -1
  64. package/dist/index172.js +5 -8
  65. package/dist/index172.js.map +1 -1
  66. package/dist/index173.js +61 -80
  67. package/dist/index173.js.map +1 -1
  68. package/dist/index174.js +2 -20
  69. package/dist/index174.js.map +1 -1
  70. package/dist/index175.js +383 -14
  71. package/dist/index175.js.map +1 -1
  72. package/dist/index176.js +260 -4
  73. package/dist/index176.js.map +1 -1
  74. package/dist/index177.js +59 -4
  75. package/dist/index177.js.map +1 -1
  76. package/dist/index178.js +46 -6
  77. package/dist/index178.js.map +1 -1
  78. package/dist/index179.js +169 -4
  79. package/dist/index179.js.map +1 -1
  80. package/dist/index18.js +7 -7
  81. package/dist/index180.js +109 -6
  82. package/dist/index180.js.map +1 -1
  83. package/dist/index181.js +24 -16
  84. package/dist/index181.js.map +1 -1
  85. package/dist/index182.js +8 -5
  86. package/dist/index182.js.map +1 -1
  87. package/dist/index183.js +4 -4
  88. package/dist/index183.js.map +1 -1
  89. package/dist/index184.js +5 -12
  90. package/dist/index184.js.map +1 -1
  91. package/dist/index185.js +4 -9
  92. package/dist/index185.js.map +1 -1
  93. package/dist/index186.js +487 -13
  94. package/dist/index186.js.map +1 -1
  95. package/dist/index187.js +189 -13
  96. package/dist/index187.js.map +1 -1
  97. package/dist/index188.js +13 -4
  98. package/dist/index188.js.map +1 -1
  99. package/dist/index189.js +107 -5
  100. package/dist/index189.js.map +1 -1
  101. package/dist/index19.js +16 -16
  102. package/dist/index190.js +262 -6
  103. package/dist/index190.js.map +1 -1
  104. package/dist/index191.js +6 -5
  105. package/dist/index191.js.map +1 -1
  106. package/dist/index192.js +39 -53
  107. package/dist/index192.js.map +1 -1
  108. package/dist/index193.js +4 -8
  109. package/dist/index193.js.map +1 -1
  110. package/dist/index194.js +58 -4
  111. package/dist/index194.js.map +1 -1
  112. package/dist/index195.js +8 -4
  113. package/dist/index195.js.map +1 -1
  114. package/dist/index196.js +87 -8
  115. package/dist/index196.js.map +1 -1
  116. package/dist/index197.js +19 -4
  117. package/dist/index197.js.map +1 -1
  118. package/dist/index198.js +16 -4
  119. package/dist/index198.js.map +1 -1
  120. package/dist/index199.js +5 -3
  121. package/dist/index199.js.map +1 -1
  122. package/dist/index200.js +5 -10
  123. package/dist/index200.js.map +1 -1
  124. package/dist/index201.js +6 -9
  125. package/dist/index201.js.map +1 -1
  126. package/dist/index202.js +4 -9
  127. package/dist/index202.js.map +1 -1
  128. package/dist/index203.js +6 -10
  129. package/dist/index203.js.map +1 -1
  130. package/dist/index204.js +16 -10
  131. package/dist/index204.js.map +1 -1
  132. package/dist/index205.js +4 -9
  133. package/dist/index205.js.map +1 -1
  134. package/dist/index206.js +4 -6
  135. package/dist/index206.js.map +1 -1
  136. package/dist/index207.js +12 -5
  137. package/dist/index207.js.map +1 -1
  138. package/dist/index208.js +9 -4
  139. package/dist/index208.js.map +1 -1
  140. package/dist/index209.js +13 -5
  141. package/dist/index209.js.map +1 -1
  142. package/dist/index21.js +1 -1
  143. package/dist/index210.js +13 -6
  144. package/dist/index210.js.map +1 -1
  145. package/dist/index211.js +4 -5
  146. package/dist/index211.js.map +1 -1
  147. package/dist/index212.js +5 -16
  148. package/dist/index212.js.map +1 -1
  149. package/dist/index213.js +6 -7
  150. package/dist/index213.js.map +1 -1
  151. package/dist/index214.js +5 -10
  152. package/dist/index214.js.map +1 -1
  153. package/dist/index215.js +54 -10
  154. package/dist/index215.js.map +1 -1
  155. package/dist/index216.js +8 -21
  156. package/dist/index216.js.map +1 -1
  157. package/dist/index217.js +4 -8
  158. package/dist/index217.js.map +1 -1
  159. package/dist/index218.js +4 -9
  160. package/dist/index218.js.map +1 -1
  161. package/dist/index219.js +8 -9
  162. package/dist/index219.js.map +1 -1
  163. package/dist/index22.js +2 -2
  164. package/dist/index220.js +4 -4
  165. package/dist/index220.js.map +1 -1
  166. package/dist/index221.js +4 -5
  167. package/dist/index221.js.map +1 -1
  168. package/dist/index222.js +3 -16
  169. package/dist/index222.js.map +1 -1
  170. package/dist/index223.js +10 -9
  171. package/dist/index223.js.map +1 -1
  172. package/dist/index224.js +9 -18
  173. package/dist/index224.js.map +1 -1
  174. package/dist/index225.js +9 -20
  175. package/dist/index225.js.map +1 -1
  176. package/dist/index226.js +10 -12
  177. package/dist/index226.js.map +1 -1
  178. package/dist/index227.js +10 -29
  179. package/dist/index227.js.map +1 -1
  180. package/dist/index228.js +9 -12
  181. package/dist/index228.js.map +1 -1
  182. package/dist/index229.js +6 -25
  183. package/dist/index229.js.map +1 -1
  184. package/dist/index23.js +1 -1
  185. package/dist/index230.js +5 -5
  186. package/dist/index230.js.map +1 -1
  187. package/dist/index231.js +5 -20
  188. package/dist/index231.js.map +1 -1
  189. package/dist/index232.js +5 -66
  190. package/dist/index232.js.map +1 -1
  191. package/dist/index233.js +6 -6
  192. package/dist/index233.js.map +1 -1
  193. package/dist/index234.js +5 -5
  194. package/dist/index234.js.map +1 -1
  195. package/dist/index235.js +16 -11
  196. package/dist/index235.js.map +1 -1
  197. package/dist/index236.js +7 -3
  198. package/dist/index236.js.map +1 -1
  199. package/dist/index237.js +9 -49
  200. package/dist/index237.js.map +1 -1
  201. package/dist/index238.js +11 -4
  202. package/dist/index238.js.map +1 -1
  203. package/dist/index239.js +20 -28
  204. package/dist/index239.js.map +1 -1
  205. package/dist/index24.js +1 -1
  206. package/dist/index240.js +8 -16
  207. package/dist/index240.js.map +1 -1
  208. package/dist/index241.js +9 -5
  209. package/dist/index241.js.map +1 -1
  210. package/dist/index242.js +9 -21
  211. package/dist/index242.js.map +1 -1
  212. package/dist/index243.js +4 -53
  213. package/dist/index243.js.map +1 -1
  214. package/dist/index244.js +5 -20
  215. package/dist/index244.js.map +1 -1
  216. package/dist/index245.js +16 -41
  217. package/dist/index245.js.map +1 -1
  218. package/dist/index246.js +9 -39
  219. package/dist/index246.js.map +1 -1
  220. package/dist/index247.js +19 -46
  221. package/dist/index247.js.map +1 -1
  222. package/dist/index248.js +17 -20
  223. package/dist/index248.js.map +1 -1
  224. package/dist/index249.js +12 -19
  225. package/dist/index249.js.map +1 -1
  226. package/dist/index25.js +1 -1
  227. package/dist/index250.js +28 -19
  228. package/dist/index250.js.map +1 -1
  229. package/dist/index251.js +10 -68
  230. package/dist/index251.js.map +1 -1
  231. package/dist/index252.js +25 -17
  232. package/dist/index252.js.map +1 -1
  233. package/dist/index253.js +5 -3
  234. package/dist/index253.js.map +1 -1
  235. package/dist/index254.js +66 -11
  236. package/dist/index254.js.map +1 -1
  237. package/dist/index255.js +8 -30
  238. package/dist/index255.js.map +1 -1
  239. package/dist/index256.js +11 -13
  240. package/dist/index256.js.map +1 -1
  241. package/dist/index257.js +8 -18
  242. package/dist/index257.js.map +1 -1
  243. package/dist/index258.js +5 -36
  244. package/dist/index258.js.map +1 -1
  245. package/dist/index259.js +12 -68
  246. package/dist/index259.js.map +1 -1
  247. package/dist/index260.js +3 -239
  248. package/dist/index260.js.map +1 -1
  249. package/dist/index261.js +3 -252
  250. package/dist/index261.js.map +1 -1
  251. package/dist/index262.js +96 -65
  252. package/dist/index262.js.map +1 -1
  253. package/dist/index263.js +16 -98
  254. package/dist/index263.js.map +1 -1
  255. package/dist/index264.js +26 -173
  256. package/dist/index264.js.map +1 -1
  257. package/dist/index265.js +47 -79
  258. package/dist/index265.js.map +1 -1
  259. package/dist/index266.js +6 -13
  260. package/dist/index266.js.map +1 -1
  261. package/dist/index267.js +5 -3
  262. package/dist/index267.js.map +1 -1
  263. package/dist/index268.js +60 -28
  264. package/dist/index268.js.map +1 -1
  265. package/dist/index269.js +66 -16
  266. package/dist/index269.js.map +1 -1
  267. package/dist/index270.js +131 -35
  268. package/dist/index270.js.map +1 -1
  269. package/dist/index271.js +8 -34
  270. package/dist/index271.js.map +1 -1
  271. package/dist/index272.js +5 -69
  272. package/dist/index272.js.map +1 -1
  273. package/dist/index273.js +4 -18
  274. package/dist/index273.js.map +1 -1
  275. package/dist/index274.js +11 -3
  276. package/dist/index274.js.map +1 -1
  277. package/dist/index275.js +17 -107
  278. package/dist/index275.js.map +1 -1
  279. package/dist/index276.js +16 -26
  280. package/dist/index276.js.map +1 -1
  281. package/dist/index277.js +11 -28
  282. package/dist/index277.js.map +1 -1
  283. package/dist/index278.js +8 -4
  284. package/dist/index278.js.map +1 -1
  285. package/dist/index279.js +142 -124
  286. package/dist/index279.js.map +1 -1
  287. package/dist/index28.js +1 -1
  288. package/dist/index280.js +79 -4
  289. package/dist/index280.js.map +1 -1
  290. package/dist/index281.js +61 -78
  291. package/dist/index281.js.map +1 -1
  292. package/dist/index282.js +15 -273
  293. package/dist/index282.js.map +1 -1
  294. package/dist/index283.js +20 -12
  295. package/dist/index283.js.map +1 -1
  296. package/dist/index284.js +7 -28
  297. package/dist/index284.js.map +1 -1
  298. package/dist/index285.js +12 -16
  299. package/dist/index285.js.map +1 -1
  300. package/dist/index286.js +3 -10
  301. package/dist/index286.js.map +1 -1
  302. package/dist/index287.js +49 -24
  303. package/dist/index287.js.map +1 -1
  304. package/dist/index288.js +15 -15
  305. package/dist/index288.js.map +1 -1
  306. package/dist/index289.js +21 -125
  307. package/dist/index289.js.map +1 -1
  308. package/dist/index29.js +3 -56
  309. package/dist/index29.js.map +1 -1
  310. package/dist/index290.js +53 -5
  311. package/dist/index290.js.map +1 -1
  312. package/dist/index291.js +19 -64
  313. package/dist/index291.js.map +1 -1
  314. package/dist/index292.js +42 -14
  315. package/dist/index292.js.map +1 -1
  316. package/dist/index293.js +40 -14
  317. package/dist/index293.js.map +1 -1
  318. package/dist/index294.js +46 -8
  319. package/dist/index294.js.map +1 -1
  320. package/dist/index295.js +21 -11
  321. package/dist/index295.js.map +1 -1
  322. package/dist/index296.js +70 -5
  323. package/dist/index296.js.map +1 -1
  324. package/dist/index297.js +17 -3
  325. package/dist/index297.js.map +1 -1
  326. package/dist/index298.js +3 -10
  327. package/dist/index298.js.map +1 -1
  328. package/dist/index299.js +13 -7
  329. package/dist/index299.js.map +1 -1
  330. package/dist/index3.js +2 -2
  331. package/dist/index30.js +242 -3
  332. package/dist/index30.js.map +1 -1
  333. package/dist/index300.js +15 -130
  334. package/dist/index300.js.map +1 -1
  335. package/dist/index301.js +34 -277
  336. package/dist/index301.js.map +1 -1
  337. package/dist/index302.js +229 -389
  338. package/dist/index302.js.map +1 -1
  339. package/dist/index303.js +253 -5
  340. package/dist/index303.js.map +1 -1
  341. package/dist/index304.js +64 -48
  342. package/dist/index304.js.map +1 -1
  343. package/dist/index305.js +83 -11
  344. package/dist/index305.js.map +1 -1
  345. package/dist/index306.js +3 -27
  346. package/dist/index306.js.map +1 -1
  347. package/dist/index307.js +29 -11
  348. package/dist/index307.js.map +1 -1
  349. package/dist/index308.js +16 -4
  350. package/dist/index308.js.map +1 -1
  351. package/dist/index309.js +35 -15
  352. package/dist/index309.js.map +1 -1
  353. package/dist/index31.js +21 -239
  354. package/dist/index31.js.map +1 -1
  355. package/dist/index310.js +18 -4
  356. package/dist/index310.js.map +1 -1
  357. package/dist/index311.js +4 -5
  358. package/dist/index311.js.map +1 -1
  359. package/dist/index312.js +26 -11
  360. package/dist/index312.js.map +1 -1
  361. package/dist/index313.js +28 -63
  362. package/dist/index313.js.map +1 -1
  363. package/dist/index314.js +4 -9
  364. package/dist/index314.js.map +1 -1
  365. package/dist/index315.js +75 -151
  366. package/dist/index315.js.map +1 -1
  367. package/dist/index316.js +270 -30
  368. package/dist/index316.js.map +1 -1
  369. package/dist/index317.js +11 -11
  370. package/dist/index317.js.map +1 -1
  371. package/dist/index318.js +11 -50
  372. package/dist/index318.js.map +1 -1
  373. package/dist/index319.js +24 -8
  374. package/dist/index319.js.map +1 -1
  375. package/dist/index32.js +4 -23
  376. package/dist/index32.js.map +1 -1
  377. package/dist/index320.js +16 -11
  378. package/dist/index320.js.map +1 -1
  379. package/dist/index321.js +124 -42
  380. package/dist/index321.js.map +1 -1
  381. package/dist/index322.js +5 -97
  382. package/dist/index322.js.map +1 -1
  383. package/dist/index323.js +61 -82
  384. package/dist/index323.js.map +1 -1
  385. package/dist/index324.js +12 -104
  386. package/dist/index324.js.map +1 -1
  387. package/dist/index325.js +7 -52
  388. package/dist/index325.js.map +1 -1
  389. package/dist/index326.js +5 -11
  390. package/dist/index326.js.map +1 -1
  391. package/dist/index327.js +3 -4
  392. package/dist/index327.js.map +1 -1
  393. package/dist/index328.js +10 -37
  394. package/dist/index328.js.map +1 -1
  395. package/dist/index329.js +7 -8
  396. package/dist/index329.js.map +1 -1
  397. package/dist/index33.js +6 -3
  398. package/dist/index33.js.map +1 -1
  399. package/dist/index330.js +385 -121
  400. package/dist/index330.js.map +1 -1
  401. package/dist/index331.js +5 -18
  402. package/dist/index331.js.map +1 -1
  403. package/dist/index332.js +51 -14
  404. package/dist/index332.js.map +1 -1
  405. package/dist/index333.js +11 -3
  406. package/dist/index333.js.map +1 -1
  407. package/dist/index334.js +25 -34
  408. package/dist/index334.js.map +1 -1
  409. package/dist/index335.js +11 -20
  410. package/dist/index335.js.map +1 -1
  411. package/dist/index336.js +154 -9
  412. package/dist/index336.js.map +1 -1
  413. package/dist/index337.js +32 -8
  414. package/dist/index337.js.map +1 -1
  415. package/dist/index338.js +11 -24
  416. package/dist/index338.js.map +1 -1
  417. package/dist/index339.js +46 -25
  418. package/dist/index339.js.map +1 -1
  419. package/dist/index34.js +38 -8
  420. package/dist/index34.js.map +1 -1
  421. package/dist/index340.js +9 -16
  422. package/dist/index340.js.map +1 -1
  423. package/dist/index341.js +11 -4
  424. package/dist/index341.js.map +1 -1
  425. package/dist/index342.js +43 -17
  426. package/dist/index342.js.map +1 -1
  427. package/dist/index343.js +97 -12
  428. package/dist/index343.js.map +1 -1
  429. package/dist/index344.js +86 -8
  430. package/dist/index344.js.map +1 -1
  431. package/dist/index345.js +105 -11
  432. package/dist/index345.js.map +1 -1
  433. package/dist/index346.js +51 -7
  434. package/dist/index346.js.map +1 -1
  435. package/dist/index347.js +10 -12
  436. package/dist/index347.js.map +1 -1
  437. package/dist/index348.js +4 -3
  438. package/dist/index348.js.map +1 -1
  439. package/dist/index349.js +37 -3
  440. package/dist/index349.js.map +1 -1
  441. package/dist/index35.js +74 -35
  442. package/dist/index35.js.map +1 -1
  443. package/dist/index350.js +9 -4
  444. package/dist/index350.js.map +1 -1
  445. package/dist/index351.js +136 -15
  446. package/dist/index351.js.map +1 -1
  447. package/dist/index352.js +17 -11
  448. package/dist/index352.js.map +1 -1
  449. package/dist/index353.js +15 -5
  450. package/dist/index353.js.map +1 -1
  451. package/dist/index354.js +4 -5
  452. package/dist/index354.js.map +1 -1
  453. package/dist/index355.js +37 -3
  454. package/dist/index355.js.map +1 -1
  455. package/dist/index356.js +19 -7
  456. package/dist/index356.js.map +1 -1
  457. package/dist/index357.js +9 -51
  458. package/dist/index357.js.map +1 -1
  459. package/dist/index358.js +8 -16
  460. package/dist/index358.js.map +1 -1
  461. package/dist/index359.js +25 -8
  462. package/dist/index359.js.map +1 -1
  463. package/dist/index36.js +20 -74
  464. package/dist/index36.js.map +1 -1
  465. package/dist/index360.js +28 -5
  466. package/dist/index360.js.map +1 -1
  467. package/dist/index361.js +15 -19
  468. package/dist/index361.js.map +1 -1
  469. package/dist/index362.js +5 -45
  470. package/dist/index362.js.map +1 -1
  471. package/dist/index363.js +16 -16
  472. package/dist/index363.js.map +1 -1
  473. package/dist/index364.js +13 -5
  474. package/dist/index364.js.map +1 -1
  475. package/dist/index365.js +7 -199
  476. package/dist/index365.js.map +1 -1
  477. package/dist/index366.js +27 -74
  478. package/dist/index366.js.map +1 -1
  479. package/dist/index367.js +131 -117
  480. package/dist/index367.js.map +1 -1
  481. package/dist/index368.js +10 -15
  482. package/dist/index368.js.map +1 -1
  483. package/dist/index369.js +44 -59
  484. package/dist/index369.js.map +1 -1
  485. package/dist/index37.js +33 -18
  486. package/dist/index37.js.map +1 -1
  487. package/dist/index370.js +3 -66
  488. package/dist/index370.js.map +1 -1
  489. package/dist/index371.js +21 -11
  490. package/dist/index371.js.map +1 -1
  491. package/dist/index372.js +74 -20
  492. package/dist/index372.js.map +1 -1
  493. package/dist/index373.js +12 -145
  494. package/dist/index373.js.map +1 -1
  495. package/dist/index374.js +3 -79
  496. package/dist/index374.js.map +1 -1
  497. package/dist/index375.js +73 -61
  498. package/dist/index375.js.map +1 -1
  499. package/dist/index376.js +200 -4
  500. package/dist/index376.js.map +1 -1
  501. package/dist/index377.js +71 -20
  502. package/dist/index377.js.map +1 -1
  503. package/dist/index378.js +35 -4
  504. package/dist/index378.js.map +1 -1
  505. package/dist/index379.js +7 -5
  506. package/dist/index379.js.map +1 -1
  507. package/dist/index38.js +26 -36
  508. package/dist/index38.js.map +1 -1
  509. package/dist/index380.js +16 -4
  510. package/dist/index380.js.map +1 -1
  511. package/dist/index381.js +123 -15
  512. package/dist/index381.js.map +1 -1
  513. package/dist/index382.js +4 -9
  514. package/dist/index382.js.map +1 -1
  515. package/dist/index383.js +11 -5
  516. package/dist/index383.js.map +1 -1
  517. package/dist/index384.js +5 -4
  518. package/dist/index384.js.map +1 -1
  519. package/dist/index385.js +3 -546
  520. package/dist/index385.js.map +1 -1
  521. package/dist/index386.js +20 -46
  522. package/dist/index386.js.map +1 -1
  523. package/dist/index387.js +45 -18
  524. package/dist/index387.js.map +1 -1
  525. package/dist/index388.js +18 -6
  526. package/dist/index388.js.map +1 -1
  527. package/dist/index389.js +5 -8
  528. package/dist/index389.js.map +1 -1
  529. package/dist/index39.js +21 -26
  530. package/dist/index39.js.map +1 -1
  531. package/dist/index390.js +4 -6
  532. package/dist/index390.js.map +1 -1
  533. package/dist/index391.js +20 -7
  534. package/dist/index391.js.map +1 -1
  535. package/dist/index392.js +4 -11
  536. package/dist/index392.js.map +1 -1
  537. package/dist/index393.js +4 -8
  538. package/dist/index393.js.map +1 -1
  539. package/dist/index394.js +4 -13
  540. package/dist/index394.js.map +1 -1
  541. package/dist/index395.js +16 -3
  542. package/dist/index395.js.map +1 -1
  543. package/dist/index396.js +9 -3
  544. package/dist/index396.js.map +1 -1
  545. package/dist/index397.js +6 -7
  546. package/dist/index397.js.map +1 -1
  547. package/dist/index398.js +4 -12
  548. package/dist/index398.js.map +1 -1
  549. package/dist/index399.js +543 -44
  550. package/dist/index399.js.map +1 -1
  551. package/dist/index4.js +2 -2
  552. package/dist/index40.js +56 -20
  553. package/dist/index40.js.map +1 -1
  554. package/dist/index400.js +44 -135
  555. package/dist/index400.js.map +1 -1
  556. package/dist/index401.js +17 -8
  557. package/dist/index401.js.map +1 -1
  558. package/dist/index402.js +6 -27
  559. package/dist/index402.js.map +1 -1
  560. package/dist/index403.js +7 -3
  561. package/dist/index403.js.map +1 -1
  562. package/dist/index404.js +6 -21
  563. package/dist/index404.js.map +1 -1
  564. package/dist/index405.js +7 -75
  565. package/dist/index405.js.map +1 -1
  566. package/dist/index406.js +12 -12
  567. package/dist/index406.js.map +1 -1
  568. package/dist/index407.js +8 -3
  569. package/dist/index407.js.map +1 -1
  570. package/dist/index408.js +12 -71
  571. package/dist/index408.js.map +1 -1
  572. package/dist/index409.js +3 -36
  573. package/dist/index409.js.map +1 -1
  574. package/dist/index41.js +51 -59
  575. package/dist/index41.js.map +1 -1
  576. package/dist/index410.js +14 -15
  577. package/dist/index410.js.map +1 -1
  578. package/dist/index411.js +491 -4
  579. package/dist/index411.js.map +1 -1
  580. package/dist/index412.js +3 -56
  581. package/dist/index412.js.map +1 -1
  582. package/dist/index413.js +3 -68
  583. package/dist/index413.js.map +1 -1
  584. package/dist/index414.js +5 -31
  585. package/dist/index414.js.map +1 -1
  586. package/dist/index415.js +56 -9
  587. package/dist/index415.js.map +1 -1
  588. package/dist/index416.js +61 -146
  589. package/dist/index416.js.map +1 -1
  590. package/dist/index417.js +26 -103
  591. package/dist/index417.js.map +1 -1
  592. package/dist/index418.js +9 -8
  593. package/dist/index418.js.map +1 -1
  594. package/dist/index419.js +153 -2
  595. package/dist/index419.js.map +1 -1
  596. package/dist/index42.js +21 -50
  597. package/dist/index42.js.map +1 -1
  598. package/dist/index420.js +107 -43
  599. package/dist/index420.js.map +1 -1
  600. package/dist/index421.js +32 -55
  601. package/dist/index421.js.map +1 -1
  602. package/dist/index422.js +6 -6
  603. package/dist/index422.js.map +1 -1
  604. package/dist/index424.js +38 -49
  605. package/dist/index424.js.map +1 -1
  606. package/dist/index425.js +50 -50
  607. package/dist/index425.js.map +1 -1
  608. package/dist/index426.js +8 -3
  609. package/dist/index426.js.map +1 -1
  610. package/dist/index427.js +2 -15
  611. package/dist/index427.js.map +1 -1
  612. package/dist/index428.js +50 -487
  613. package/dist/index428.js.map +1 -1
  614. package/dist/index429.js +55 -32
  615. package/dist/index429.js.map +1 -1
  616. package/dist/index43.js +127 -18
  617. package/dist/index43.js.map +1 -1
  618. package/dist/index430.js +16 -2
  619. package/dist/index430.js.map +1 -1
  620. package/dist/index431.js +29 -2
  621. package/dist/index431.js.map +1 -1
  622. package/dist/index432.js +13 -2
  623. package/dist/index432.js.map +1 -1
  624. package/dist/index433.js +7 -2
  625. package/dist/index433.js.map +1 -1
  626. package/dist/index434.js +2 -16
  627. package/dist/index434.js.map +1 -1
  628. package/dist/index435.js +2 -29
  629. package/dist/index435.js.map +1 -1
  630. package/dist/index436.js +2 -13
  631. package/dist/index436.js.map +1 -1
  632. package/dist/index437.js +2 -7
  633. package/dist/index437.js.map +1 -1
  634. package/dist/index44.js +39 -122
  635. package/dist/index44.js.map +1 -1
  636. package/dist/index45.js +85 -42
  637. package/dist/index45.js.map +1 -1
  638. package/dist/index46.js +123 -87
  639. package/dist/index46.js.map +1 -1
  640. package/dist/index47.js +5 -126
  641. package/dist/index47.js.map +1 -1
  642. package/dist/index48.js +332 -5
  643. package/dist/index48.js.map +1 -1
  644. package/dist/index49.js +246 -321
  645. package/dist/index49.js.map +1 -1
  646. package/dist/index5.js +2 -2
  647. package/dist/index50.js +23 -254
  648. package/dist/index50.js.map +1 -1
  649. package/dist/index51.js +129 -25
  650. package/dist/index51.js.map +1 -1
  651. package/dist/index52.js +24 -129
  652. package/dist/index52.js.map +1 -1
  653. package/dist/index53.js +19 -22
  654. package/dist/index53.js.map +1 -1
  655. package/dist/index54.js +134 -19
  656. package/dist/index54.js.map +1 -1
  657. package/dist/index55.js +30 -133
  658. package/dist/index55.js.map +1 -1
  659. package/dist/index56.js +24 -30
  660. package/dist/index56.js.map +1 -1
  661. package/dist/index57.js +38 -26
  662. package/dist/index57.js.map +1 -1
  663. package/dist/index58.js +19 -39
  664. package/dist/index58.js.map +1 -1
  665. package/dist/index59.js +133 -18
  666. package/dist/index59.js.map +1 -1
  667. package/dist/index6.js +4 -4
  668. package/dist/index60.js +49 -134
  669. package/dist/index60.js.map +1 -1
  670. package/dist/index61.js +25 -48
  671. package/dist/index61.js.map +1 -1
  672. package/dist/index62.js +57 -28
  673. package/dist/index62.js.map +1 -1
  674. package/dist/index63.js +56 -57
  675. package/dist/index63.js.map +1 -1
  676. package/dist/index64.js +5 -5
  677. package/dist/index64.js.map +1 -1
  678. package/dist/index66.js +22 -10
  679. package/dist/index66.js.map +1 -1
  680. package/dist/index67.js +232 -17
  681. package/dist/index67.js.map +1 -1
  682. package/dist/index68.js +5 -5
  683. package/dist/index68.js.map +1 -1
  684. package/dist/index7.js +11 -11
  685. package/dist/index70.js +10 -22
  686. package/dist/index70.js.map +1 -1
  687. package/dist/index71.js +17 -232
  688. package/dist/index71.js.map +1 -1
  689. package/dist/index76.js +1 -1
  690. package/dist/index77.js +2 -2
  691. package/dist/index78.js +2 -2
  692. package/dist/index8.js +2 -2
  693. package/dist/index9.js +1 -1
  694. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index330.js","sources":["../../../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode,\n // If `country` is returned, its numbering plan will also be selected in `metadata`.\n // Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.\n // Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\n metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata — Metadata instance with no pre-selected numbering plan. If `country` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Attempt to extract a calling code from a phone number.\n // * If the phone number is found to be \"international\":\n // * It will attempt to identify the calling code part of it and whether that part is complete and valid.\n // * If the calling code part is complete and valid, it will return two properties:\n // that calling code part (without `+`) and the rest of the digits.\n // * Otherwise, i.e. if the calling code part is incomplete or invalid,\n // it will return an empty object.\n // * Otherwise, i.e. if the phone number is national, there's no callind code to extract\n // so it will just return the originally-passed `number` string as the only property.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined,\n // `defaultCountry` and `defaultCallingCode` are only used to detect\n // if it's an \"international\" phone number or not. They won't be used\n // to derive the resulting `countryCallingCode` from them, or anything like that.\n defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n if (defaultCountry) {\n country = defaultCountry;\n metadata.selectNumberingPlan(defaultCountry);\n countryCallingCode = metadata.numberingPlan.callingCode();\n } else {\n metadata.selectNumberingPlan(defaultCallingCode);\n countryCallingCode = defaultCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(countryCallingCode)) {\n country = '001';\n }\n }\n }\n } else return {};\n\n // At this point, `country` could be `undefined` but `countryCallingCode` is always defined.\n //\n // Also, if `country` is defined, its numbering plan is selected in `metadata`.\n // Otherwise, the numering plan for the `countryCallingCode` is selected in `metadata`.\n\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), undefined, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadataJson","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","_extractNationalNumbe","extractNationalNumber","exactCountry","getCountryByCallingCode"],"mappings":";;;;;;;;;;;;;AAwBA,IAAIA,IAA0B,KAG1BC,IAA6B,IAAI,OAAO,MAAMC,IAAaC,IAAe,GAAG,GAK7EC,IAAiC,IAAI,OAAO,OAAOD,IAAe,MAAW;AA2BlE,SAASE,EAAMC,GAAMC,GAASC,GAAc;AAGzD,EAAAD,IAAUA,KAAW,CAAA;AACrB,MAAIE,IAAW,IAAIC,EAASF,CAAY;AAGxC,MAAID,EAAQ,kBAAkB,CAACE,EAAS,WAAWF,EAAQ,cAAc;AACvE,UAAIA,EAAQ,KACJ,IAAII,EAAW,iBAAiB,IAElC,IAAI,MAAM,oBAAoB,OAAOJ,EAAQ,cAAc,CAAC;AAIpE,MAAIK,IAAcC,EAAWP,GAAMC,EAAQ,IAAIA,EAAQ,OAAO,GAC5DO,IAAuBF,EAAY,QACnCG,IAAMH,EAAY,KAClBI,IAAQ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AAA,IAItG6B;AAAA,IAAgBC;AAAA,IAAoBnC,EAAS;AAAA,EAAQ,GACrDa,IAA2BuB,EAAsB,0BACjDxB,IAAqBwB,EAAsB,oBAC3CR,IAASQ,EAAsB,QAG7B1B;AAIJ,MAAIE;AACF,IAAAZ,EAAS,oBAAoBY,CAAkB;AAAA,WAIxCgB,MAAWM,KAAkBC;AACpC,IAAID,KACFxB,IAAUwB,GACVlC,EAAS,oBAAoBkC,CAAc,GAC3CtB,IAAqBZ,EAAS,cAAc,YAAW,MAEvDA,EAAS,oBAAoBmC,CAAkB,GAC/CvB,IAAqBuB;AAAA,MAQlB,QAAO,CAAA;AAOd,MAAI,CAACP;AACH,WAAO;AAAA,MACL,0BAA0Bf;AAAA,MAC1B,oBAAoBD;AAAA,IAC1B;AAEE,MAAI2B,IAAwBC,EAAsBF,EAA2BV,CAAM,GAAG,QAAW5B,CAAQ,GACvGW,IAAiB4B,EAAsB,gBACvCzB,IAAcyB,EAAsB,aAYlCE,IAAeC,EAAwB9B,GAAoB;AAAA,IAC7D,gBAAgBD;AAAA,IAChB,UAAUX;AAAA,EACd,CAAG;AACD,SAAIyC,MACF/B,IAAU+B,GAENA,MAAiB,SAKnBzC,EAAS,oBAAoBU,CAAO,IAGjC;AAAA,IACL,SAASA;AAAA,IACT,oBAAoBE;AAAA,IACpB,0BAA0BC;AAAA,IAC1B,gBAAgBF;AAAA,IAChB,aAAaG;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index330.js","sources":["../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);\n let top = firstRect.top;\n let right = firstRect.right;\n let bottom = firstRect.bottom;\n let left = firstRect.left;\n for (let i = 1; i < clippingAncestors.length; i++) {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);\n top = max(rect.top, top);\n right = min(rect.right, right);\n bottom = min(rect.bottom, bottom);\n left = max(rect.left, left);\n }\n return {\n width: right - left,\n height: bottom - top,\n x: left,\n y: top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n if (floating) {\n resizeObserver.observe(floating);\n }\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n"],"names":["getCssDimensions","element","css","getComputedStyle$1","width","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","unwrapElement","isElement","getScale","domElement","createCoords","rect","$","x","y","noOffsets","getVisualOffsets","win","getWindow","isWebKit","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","getFrameElement","iframeScale","iframeRect","left","top","rectToClientRect","getWindowScrollBarX","leftScroll","getNodeScroll","getDocumentElement","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","elements","strategy","topLayer","isTopLayer","offsets","isOffsetParentAnElement","getNodeName","isOverflowElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","html","body","max","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","doc","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","getClippingElementAncestors","cache","cachedResult","result","getOverflowAncestors","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","isContainingBlock","ancestor","getClippingRect","boundary","rootBoundary","clippingAncestors","firstRect","right","bottom","i","min","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","isTableElement","getContainingBlock","getElementRects","data","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","platform","rectsAreEqual","a","b","observeMove","onMove","io","timeoutId","root","cleanup","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","floor","insetRight","insetBottom","insetLeft","options","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","reference","floating","update","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset","offset$1","shift","shift$1","flip","flip$1","size","size$1","hide","hide$1","limitShift","limitShift$1","computePosition","mergedOptions","platformWithCache","computePosition$1"],"mappings":";;;AAKA,SAASA,EAAiBC,GAAS;AACjC,QAAMC,IAAMC,EAAmBF,CAAO;AAGtC,MAAIG,IAAQ,WAAWF,EAAI,KAAK,KAAK,GACjCG,IAAS,WAAWH,EAAI,MAAM,KAAK;AACvC,QAAMI,IAAYC,EAAcN,CAAO,GACjCO,IAAcF,IAAYL,EAAQ,cAAcG,GAChDK,IAAeH,IAAYL,EAAQ,eAAeI,GAClDK,IAAiBC,EAAMP,CAAK,MAAMI,KAAeG,EAAMN,CAAM,MAAMI;AACzE,SAAIC,MACFN,IAAQI,GACRH,IAASI,IAEJ;AAAA,IACL,OAAAL;AAAA,IACA,QAAAC;AAAA,IACA,GAAGK;AAAA,EACP;AACA;AAEA,SAASE,EAAcX,GAAS;AAC9B,SAAQY,EAAUZ,CAAO,IAA6BA,IAAzBA,EAAQ;AACvC;AAEA,SAASa,EAASb,GAAS;AACzB,QAAMc,IAAaH,EAAcX,CAAO;AACxC,MAAI,CAACM,EAAcQ,CAAU;AAC3B,WAAOC,EAAa,CAAC;AAEvB,QAAMC,IAAOF,EAAW,sBAAqB,GACvC;AAAA,IACJ,OAAAX;AAAA,IACA,QAAAC;AAAA,IACA,GAAAa;AAAA,EACJ,IAAMlB,EAAiBe,CAAU;AAC/B,MAAII,KAAKD,IAAIP,EAAMM,EAAK,KAAK,IAAIA,EAAK,SAASb,GAC3CgB,KAAKF,IAAIP,EAAMM,EAAK,MAAM,IAAIA,EAAK,UAAUZ;AAIjD,UAAI,CAACc,KAAK,CAAC,OAAO,S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EAAc;AAAA,IACjB,IAAIjG;AAAA,EACR;AACE,SAAOmG,GAAkBnC,GAAWC,GAAU;AAAA,IAC5C,GAAGgC;AAAA,IACH,UAAUC;AAAA,EACd,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index331.js CHANGED
@@ -1,21 +1,8 @@
1
- import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index159.js";
2
- import r from "./index337.js";
3
- var n = "[" + _ + "]{" + e + "}", I = "[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){3,}[" + E + _ + "]*", P = new RegExp("^[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){1,2}$", "i"), R = I + // Phone number extensions
4
- "(?:" + r() + ")?", T = new RegExp(
5
- // Either a short two-digit-only phone number
6
- "^" + n + "$|^" + R + "$",
7
- "i"
8
- );
9
- function A(N) {
10
- return N.length >= e && T.test(N);
11
- }
12
- function o(N) {
13
- return P.test(N);
14
- }
1
+ import { lowerUserAgent as e } from "./index421.js";
2
+ const o = typeof CSS < "u" && !!CSS.supports?.("-webkit-backdrop-filter:none");
3
+ !o && e.includes("firefox");
4
+ !o && e.includes("chrom");
15
5
  export {
16
- I as VALID_PHONE_NUMBER,
17
- R as VALID_PHONE_NUMBER_WITH_EXTENSION,
18
- A as default,
19
- o as isViablePhoneNumberStart
6
+ o as webkit
20
7
  };
21
8
  //# sourceMappingURL=index331.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index331.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js"],"sourcesContent":["import { MIN_LENGTH_FOR_NSN, VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from '../constants.js';\nimport createExtensionPattern from './extension/createExtensionPattern.js';\n\n// Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\nvar MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}';\n//\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\nexport var VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*';\n\n// This regular expression isn't present in Google's `libphonenumber`\n// and is only used to determine whether the phone number being input\n// is too short for it to even consider it a \"valid\" number.\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nvar VALID_PHONE_NUMBER_START_REG_EXP = new RegExp('^' + '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){1,2}' + '$', 'i');\nexport var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER +\n// Phone number extensions\n'(?:' + createExtensionPattern() + ')?';\n\n// The combined regular expression for valid phone numbers:\n//\nvar VALID_PHONE_NUMBER_PATTERN = new RegExp(\n// Either a short two-digit-only phone number\n'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' +\n// Or a longer fully parsed phone number (min 3 characters)\n'^' + VALID_PHONE_NUMBER_WITH_EXTENSION + '$', 'i');\n\n// Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\nexport default function isViablePhoneNumber(number) {\n return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);\n}\n\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nexport function isViablePhoneNumberStart(number) {\n return VALID_PHONE_NUMBER_START_REG_EXP.test(number);\n}\n//# sourceMappingURL=isViablePhoneNumber.js.map"],"names":["MIN_LENGTH_PHONE_NUMBER_PATTERN","VALID_DIGITS","MIN_LENGTH_FOR_NSN","VALID_PHONE_NUMBER","PLUS_CHARS","VALID_PUNCTUATION","VALID_PHONE_NUMBER_START_REG_EXP","VALID_PHONE_NUMBER_WITH_EXTENSION","createExtensionPattern","VALID_PHONE_NUMBER_PATTERN","isViablePhoneNumber","number","isViablePhoneNumberStart"],"mappings":";;AA2BA,IAAIA,IAAkC,MAAMC,IAAe,OAAOC,IAAqB,KAK5EC,IAAqB,MAAMC,IAAa,eAAyBC,IAAoB,QAAaJ,IAAe,YAAsBI,IAAoBJ,IAAe,MAWjLK,IAAmC,IAAI,OAAO,OAAYF,IAAa,eAAyBC,IAAoB,QAAaJ,IAAe,YAAsB,GAAG,GAClKM,IAAoCJ;AAE/C,QAAQK,EAAsB,IAAK,MAI/BC,IAA6B,IAAI;AAAA;AAAA,EAErC,MAAMT,IAAkC,QAElCO,IAAoC;AAAA,EAAK;AAAG;AASnC,SAASG,EAAoBC,GAAQ;AAClD,SAAOA,EAAO,UAAUT,KAAsBO,EAA2B,KAAKE,CAAM;AACtF;AAQO,SAASC,EAAyBD,GAAQ;AAC/C,SAAOL,EAAiC,KAAKK,CAAM;AACrD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index331.js","sources":["../../../node_modules/@base-ui/utils/platform/engine.mjs"],"sourcesContent":["import { lowerUserAgent } from \"./shared.mjs\";\n\n// WebKit (Safari, all iOS browsers, GNOME Web). Distinguished from Blink by\n// the legacy `-webkit-backdrop-filter` name — Blink forked from WebKit in 2013\n// and only ships the unprefixed `backdrop-filter`.\n/** WebKit: Safari, all iOS browsers, GNOME Web. Excludes Blink. */\nexport const webkit = typeof CSS !== 'undefined' && !!CSS.supports?.('-webkit-backdrop-filter:none');\n\n// Anchored to `!webkit` so engines are mutually exclusive by construction.\n// Firefox-on-iOS uses WebKit (its UA marker is `FxiOS/`, not `Firefox/`); the\n// `!webkit` prefix also defends against future iOS-browser UA changes that\n// might inject `Firefox` into a WebKit-based UA.\n/** Gecko: Firefox. */\nexport const gecko = !webkit && lowerUserAgent.includes('firefox');\n\n// All Chromium-based browsers ship `Chrome/` or `Chromium/` in their UA — both\n// share the `chrom` prefix, so a single substring check covers Chrome, Edge,\n// Opera, Brave, etc. Chrome-on-iOS uses `CriOS/` and stays WebKit. The positive\n// UA check also makes this SSR-safe — an empty UA matches nothing.\n/** Blink: Chrome, Edge, Opera, Brave, and other Chromium-based browsers. */\nexport const blink = !webkit && lowerUserAgent.includes('chrom');"],"names":["webkit","lowerUserAgent"],"mappings":";AAMY,MAACA,IAAS,OAAO,MAAQ,OAAe,CAAC,CAAC,IAAI,WAAW,8BAA8B;AAO9E,CAACA,KAAUC,EAAe,SAAS,SAAS;AAO5C,CAACD,KAAUC,EAAe,SAAS,OAAO;","x_google_ignoreList":[0]}
package/dist/index332.js CHANGED
@@ -1,19 +1,56 @@
1
- import o from "./index337.js";
2
- var n = new RegExp("(?:" + o() + ")$", "i");
3
- function c(e) {
4
- var a = e.search(n);
5
- if (a < 0)
6
- return {};
7
- for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
8
- if (r[t])
9
- return {
10
- number: i,
11
- ext: r[t]
1
+ import * as o from "react";
2
+ import { useIsoLayoutEffect as b } from "./index273.js";
3
+ import { useCompositeListContext as F } from "./index386.js";
4
+ let I = /* @__PURE__ */ (function(t) {
5
+ return t[t.None = 0] = "None", t[t.GuessFromOrder = 1] = "GuessFromOrder", t;
6
+ })({});
7
+ function k(t = {}) {
8
+ const {
9
+ label: c,
10
+ metadata: l,
11
+ textRef: d,
12
+ indexGuessBehavior: g,
13
+ index: n
14
+ } = t, {
15
+ register: m,
16
+ unregister: a,
17
+ subscribeMapChange: x,
18
+ elementsRef: R,
19
+ labelsRef: i,
20
+ nextIndexRef: p
21
+ } = F(), f = o.useRef(-1), [r, C] = o.useState(n ?? (g === I.GuessFromOrder ? () => {
22
+ if (f.current === -1) {
23
+ const e = p.current;
24
+ p.current += 1, f.current = e;
25
+ }
26
+ return f.current;
27
+ } : -1)), u = o.useRef(null), L = o.useCallback((e) => {
28
+ if (u.current = e, r !== -1 && e !== null && (R.current[r] = e, i)) {
29
+ const s = c !== void 0;
30
+ i.current[r] = s ? c : d?.current?.textContent ?? e.textContent;
31
+ }
32
+ }, [r, R, i, c, d]);
33
+ return b(() => {
34
+ if (n != null)
35
+ return;
36
+ const e = u.current;
37
+ if (e)
38
+ return m(e, l), () => {
39
+ a(e);
12
40
  };
13
- t++;
14
- }
41
+ }, [n, m, a, l]), b(() => {
42
+ if (n == null)
43
+ return x((e) => {
44
+ const s = u.current ? e.get(u.current)?.index : null;
45
+ s != null && C(s);
46
+ });
47
+ }, [n, x, C]), {
48
+ ref: L,
49
+ index: r
50
+ };
15
51
  }
16
52
  export {
17
- c as default
53
+ I as IndexGuessBehavior,
54
+ k as useCompositeListItem
18
55
  };
19
56
  //# sourceMappingURL=index332.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index332.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js"],"sourcesContent":["import createExtensionPattern from './createExtensionPattern.js';\n\n// Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\nvar EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i');\n\n// Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\nexport default function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n if (start < 0) {\n return {};\n }\n // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n var numberWithoutExtension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n while (i < matches.length) {\n if (matches[i]) {\n return {\n number: numberWithoutExtension,\n ext: matches[i]\n };\n }\n i++;\n }\n}\n//# sourceMappingURL=extractExtension.js.map"],"names":["EXTN_PATTERN","createExtensionPattern","extractExtension","number","start","numberWithoutExtension","matches","i"],"mappings":";AAIA,IAAIA,IAAe,IAAI,OAAO,QAAQC,EAAsB,IAAK,MAAM,GAAG;AAK3D,SAASC,EAAiBC,GAAQ;AAC/C,MAAIC,IAAQD,EAAO,OAAOH,CAAY;AACtC,MAAII,IAAQ;AACV,WAAO,CAAA;AAOT,WAHIC,IAAyBF,EAAO,MAAM,GAAGC,CAAK,GAC9CE,IAAUH,EAAO,MAAMH,CAAY,GACnCO,IAAI,GACDA,IAAID,EAAQ,UAAQ;AACzB,QAAIA,EAAQC,CAAC;AACX,aAAO;AAAA,QACL,QAAQF;AAAA,QACR,KAAKC,EAAQC,CAAC;AAAA,MACtB;AAEI,IAAAA;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index332.js","sources":["../../../node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useCompositeListContext } from \"./CompositeListContext.mjs\";\nexport let IndexGuessBehavior = /*#__PURE__*/function (IndexGuessBehavior) {\n IndexGuessBehavior[IndexGuessBehavior[\"None\"] = 0] = \"None\";\n IndexGuessBehavior[IndexGuessBehavior[\"GuessFromOrder\"] = 1] = \"GuessFromOrder\";\n return IndexGuessBehavior;\n}({});\n\n/**\n * Used to register a list item and its index (DOM position) in the `CompositeList`.\n */\nexport function useCompositeListItem(params = {}) {\n const {\n label,\n metadata,\n textRef,\n indexGuessBehavior,\n index: externalIndex\n } = params;\n const {\n register,\n unregister,\n subscribeMapChange,\n elementsRef,\n labelsRef,\n nextIndexRef\n } = useCompositeListContext();\n const indexRef = React.useRef(-1);\n const [index, setIndex] = React.useState(externalIndex ?? (indexGuessBehavior === IndexGuessBehavior.GuessFromOrder ? () => {\n if (indexRef.current === -1) {\n const newIndex = nextIndexRef.current;\n nextIndexRef.current += 1;\n indexRef.current = newIndex;\n }\n return indexRef.current;\n } : -1));\n const componentRef = React.useRef(null);\n const ref = React.useCallback(node => {\n componentRef.current = node;\n if (index !== -1 && node !== null) {\n elementsRef.current[index] = node;\n if (labelsRef) {\n const isLabelDefined = label !== undefined;\n labelsRef.current[index] = isLabelDefined ? label : textRef?.current?.textContent ?? node.textContent;\n }\n }\n }, [index, elementsRef, labelsRef, label, textRef]);\n useIsoLayoutEffect(() => {\n if (externalIndex != null) {\n return undefined;\n }\n const node = componentRef.current;\n if (node) {\n register(node, metadata);\n return () => {\n unregister(node);\n };\n }\n return undefined;\n }, [externalIndex, register, unregister, metadata]);\n useIsoLayoutEffect(() => {\n if (externalIndex != null) {\n return undefined;\n }\n return subscribeMapChange(map => {\n const i = componentRef.current ? map.get(componentRef.current)?.index : null;\n if (i != null) {\n setIndex(i);\n }\n });\n }, [externalIndex, subscribeMapChange, setIndex]);\n return {\n ref,\n index\n };\n}"],"names":["IndexGuessBehavior","useCompositeListItem","params","label","metadata","textRef","indexGuessBehavior","externalIndex","register","unregister","subscribeMapChange","elementsRef","labelsRef","nextIndexRef","useCompositeListContext","indexRef","React","index","setIndex","newIndex","componentRef","ref","node","isLabelDefined","useIsoLayoutEffect","map","i"],"mappings":";;;AAKU,IAACA,IAAkC,0BAAUA,GAAoB;AACzE,SAAAA,EAAmBA,EAAmB,OAAU,CAAC,IAAI,QACrDA,EAAmBA,EAAmB,iBAAoB,CAAC,IAAI,kBACxDA;AACT,GAAE,CAAA,CAAE;AAKG,SAASC,EAAqBC,IAAS,IAAI;AAChD,QAAM;AAAA,IACJ,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,OAAOC;AAAA,EACX,IAAML,GACE;AAAA,IACJ,UAAAM;AAAA,IACA,YAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMC,EAAuB,GACrBC,IAAWC,EAAM,OAAO,EAAE,GAC1B,CAACC,GAAOC,CAAQ,IAAIF,EAAM,SAAST,MAAkBD,MAAuBN,EAAmB,iBAAiB,MAAM;AAC1H,QAAIe,EAAS,YAAY,IAAI;AAC3B,YAAMI,IAAWN,EAAa;AAC9B,MAAAA,EAAa,WAAW,GACxBE,EAAS,UAAUI;AAAA,IACrB;AACA,WAAOJ,EAAS;AAAA,EAClB,IAAI,GAAG,GACDK,IAAeJ,EAAM,OAAO,IAAI,GAChCK,IAAML,EAAM,YAAY,CAAAM,MAAQ;AAEpC,QADAF,EAAa,UAAUE,GACnBL,MAAU,MAAMK,MAAS,SAC3BX,EAAY,QAAQM,CAAK,IAAIK,GACzBV,IAAW;AACb,YAAMW,IAAiBpB,MAAU;AACjC,MAAAS,EAAU,QAAQK,CAAK,IAAIM,IAAiBpB,IAAQE,GAAS,SAAS,eAAeiB,EAAK;AAAA,IAC5F;AAAA,EAEJ,GAAG,CAACL,GAAON,GAAaC,GAAWT,GAAOE,CAAO,CAAC;AAClD,SAAAmB,EAAmB,MAAM;AACvB,QAAIjB,KAAiB;AACnB;AAEF,UAAMe,IAAOF,EAAa;AAC1B,QAAIE;AACF,aAAAd,EAASc,GAAMlB,CAAQ,GAChB,MAAM;AACX,QAAAK,EAAWa,CAAI;AAAA,MACjB;AAAA,EAGJ,GAAG,CAACf,GAAeC,GAAUC,GAAYL,CAAQ,CAAC,GAClDoB,EAAmB,MAAM;AACvB,QAAIjB,KAAiB;AAGrB,aAAOG,EAAmB,CAAAe,MAAO;AAC/B,cAAMC,IAAIN,EAAa,UAAUK,EAAI,IAAIL,EAAa,OAAO,GAAG,QAAQ;AACxE,QAAIM,KAAK,QACPR,EAASQ,CAAC;AAAA,MAEd,CAAC;AAAA,EACH,GAAG,CAACnB,GAAeG,GAAoBQ,CAAQ,CAAC,GACzC;AAAA,IACL,KAAAG;AAAA,IACA,OAAAJ;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
package/dist/index333.js CHANGED
@@ -1,7 +1,15 @@
1
- function r(e, n) {
2
- return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
1
+ import n from "./index168.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectItemContext");
5
+ function s() {
6
+ const e = t.useContext(o);
7
+ if (!e)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : n(57));
9
+ return e;
3
10
  }
4
11
  export {
5
- r as default
12
+ o as SelectItemContext,
13
+ s as useSelectItemContext
6
14
  };
7
15
  //# sourceMappingURL=index333.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index333.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n // If the assigning of the `''` default value is moved to the arguments above,\n // the code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regularExpressionText + ')$').test(text);\n}\n//# sourceMappingURL=matchesEntirely.js.map"],"names":["matchesEntirely","text","regularExpressionText"],"mappings":"AAKe,SAASA,EAAgBC,GAAMC,GAAuB;AAGnE,SAAAD,IAAOA,KAAQ,IACR,IAAI,OAAO,SAASC,IAAwB,IAAI,EAAE,KAAKD,CAAI;AACpE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index333.js","sources":["../../../node_modules/@base-ui/react/select/item/SelectItemContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectItemContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectItemContext.displayName = \"SelectItemContext\";\nexport function useSelectItemContext() {\n const context = React.useContext(SelectItemContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.' : _formatErrorMessage(57));\n }\n return context;\n}"],"names":["SelectItemContext","React","useSelectItemContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS;AACvE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AACpE,SAASE,IAAuB;AACrC,QAAMC,IAAUF,EAAM,WAAWD,CAAiB;AAClD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,iGAAiGC,EAAoB,EAAE,CAAC;AAElL,SAAOD;AACT;","x_google_ignoreList":[0]}
package/dist/index334.js CHANGED
@@ -1,40 +1,31 @@
1
- import l from "./index339.js";
2
- import o from "./index333.js";
3
- import u from "./index165.js";
4
- import N from "./index168.js";
5
- function g(e, n, r) {
6
- var i = l(e, r), a = i.carrierCode, t = i.nationalNumber;
7
- if (t !== e) {
8
- if (!m(e, t, r))
9
- return {
10
- nationalNumber: e
11
- };
12
- if (r.numberingPlan.possibleLengths() && (n || (n = N(r.numberingPlan.callingCode(), {
13
- nationalNumber: t,
14
- metadata: r
15
- })), !f(t, n, r)))
16
- return {
17
- nationalNumber: e
18
- };
19
- }
20
- return {
21
- nationalNumber: t,
22
- carrierCode: a
23
- };
1
+ import { android as r } from "./index278.js";
2
+ import { jsdom as o } from "./index385.js";
3
+ function p(i) {
4
+ i.preventDefault(), i.stopPropagation();
24
5
  }
25
- function m(e, n, r) {
26
- return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
6
+ function e(i) {
7
+ return "nativeEvent" in i;
27
8
  }
28
- function f(e, n, r) {
29
- switch (u(e, n, r)) {
30
- case "TOO_SHORT":
31
- case "INVALID_LENGTH":
32
- return !1;
33
- default:
34
- return !0;
35
- }
9
+ function c(i) {
10
+ return i.pointerType === "" && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
11
+ }
12
+ function a(i) {
13
+ return o ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
14
+ i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
15
+ }
16
+ function l(i, t) {
17
+ return ["mouse", "pen"].includes(i);
18
+ }
19
+ function d(i) {
20
+ const t = i.type;
21
+ return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
36
22
  }
37
23
  export {
38
- g as default
24
+ d as isClickLikeEvent,
25
+ l as isMouseLikePointerType,
26
+ e as isReactEvent,
27
+ c as isVirtualClick,
28
+ a as isVirtualPointerEvent,
29
+ p as stopEvent
39
30
  };
40
31
  //# sourceMappingURL=index334.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index334.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js"],"sourcesContent":["import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryByCallingCode from './getCountryByCallingCode.js';\n\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\nexport default function extractNationalNumber(number, country, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature,\n // so this `if` will only be executed with newer metadata.\n if (metadata.numberingPlan.possibleLengths()) {\n // If an exact `country` is not specified, attempt to detect it from the assumed national number.\n if (!country) {\n country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n }\n\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n }\n // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n return true;\n}\n\n/**\r\n * Tells if a given incomplete national number is possible or not.\r\n * @param {string} nationalNumber\r\n * @param {string?} country — Specific country rather than the one that is pre-selected in the metadata instance.\r\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\r\n * @returns {boolean}\r\n */\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n default:\n return true;\n }\n}\n//# sourceMappingURL=extractNationalNumber.js.map"],"names":["extractNationalNumber","number","country","metadata","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","carrierCode","nationalNumber","shouldHaveExtractedNationalPrefix","getCountryByCallingCode","isPossibleIncompleteNationalNumber","nationalNumberBefore","nationalNumberAfter","matchesEntirely","checkNumberLength"],"mappings":";;;;AAee,SAASA,EAAsBC,GAAQC,GAASC,GAAU;AAUvE,MAAIC,IAAwBC,EAAkDJ,GAAQE,CAAQ,GAC5FG,IAAcF,EAAsB,aACpCG,IAAiBH,EAAsB;AACzC,MAAIG,MAAmBN,GAAQ;AAC7B,QAAI,CAACO,EAAkCP,GAAQM,GAAgBJ,CAAQ;AAErE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MACxB;AAKI,QAAIE,EAAS,cAAc,sBAEpBD,MACHA,IAAUO,EAAwBN,EAAS,cAAc,YAAW,GAAI;AAAA,MACtE,gBAAgBI;AAAA,MAChB,UAAUJ;AAAA,IACpB,CAAS,IAWC,CAACO,EAAmCH,GAAgBL,GAASC,CAAQ;AAEvE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MAC1B;AAAA,EAGE;AACA,SAAO;AAAA,IACL,gBAAgBM;AAAA,IAChB,aAAaD;AAAA,EACjB;AACA;AAgBA,SAASE,EAAkCG,GAAsBC,GAAqBT,GAAU;AAG9F,SAAI,EAAAU,EAAgBF,GAAsBR,EAAS,sBAAqB,CAAE,KAAK,CAACU,EAAgBD,GAAqBT,EAAS,sBAAqB,CAAE;AAiBvJ;AASA,SAASO,EAAmCH,GAAgBL,GAASC,GAAU;AAC7E,UAAQW,EAAkBP,GAAgBL,GAASC,CAAQ,GAAC;AAAA,IAC1D,KAAK;AAAA,IACL,KAAK;AAIH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACb;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index334.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/event.mjs"],"sourcesContent":["import { platform } from '@base-ui/utils/platform';\nexport function stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nexport function isReactEvent(event) {\n return 'nativeEvent' in event;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/main/packages/@react-aria/utils/src/isVirtualEvent.ts\nexport function isVirtualClick(event) {\n if (event.pointerType === '' && event.isTrusted) {\n return true;\n }\n if (platform.os.android && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nexport function isVirtualPointerEvent(event) {\n if (platform.env.jsdom) {\n return false;\n }\n return !platform.os.android && event.width === 0 && event.height === 0 || platform.os.android && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nexport function isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nexport function isClickLikeEvent(event) {\n const type = event.type;\n return type === 'click' || type === 'mousedown' || type === 'keydown' || type === 'keyup';\n}"],"names":["stopEvent","event","isReactEvent","isVirtualClick","platform.os.android","isVirtualPointerEvent","platform.env.jsdom","isMouseLikePointerType","pointerType","strict","isClickLikeEvent","type"],"mappings":";;AACO,SAASA,EAAUC,GAAO;AAC/B,EAAAA,EAAM,eAAc,GACpBA,EAAM,gBAAe;AACvB;AACO,SAASC,EAAaD,GAAO;AAClC,SAAO,iBAAiBA;AAC1B;AAGO,SAASE,EAAeF,GAAO;AACpC,SAAIA,EAAM,gBAAgB,MAAMA,EAAM,YAC7B,KAELG,KAAuBH,EAAM,cACxBA,EAAM,SAAS,WAAWA,EAAM,YAAY,IAE9CA,EAAM,WAAW,KAAK,CAACA,EAAM;AACtC;AACO,SAASI,EAAsBJ,GAAO;AAC3C,SAAIK,IACK,KAEF,CAACF,KAAuBH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKG,KAAuBH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAAA,EAEhNA,EAAM,QAAQ,KAAKA,EAAM,SAAS,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAC7G;AACO,SAASM,EAAuBC,GAAaC,GAAQ;AAO1D,SAJe,CAAC,SAAS,KAAK,EAIhB,SAASD,CAAW;AACpC;AACO,SAASE,EAAiBT,GAAO;AACtC,QAAMU,IAAOV,EAAM;AACnB,SAAOU,MAAS,WAAWA,MAAS,eAAeA,MAAS,aAAaA,MAAS;AACpF;","x_google_ignoreList":[0]}
package/dist/index335.js CHANGED
@@ -1,24 +1,15 @@
1
- import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./index377.js";
2
- import v from "./index323.js";
3
- function S(r, _) {
4
- var f = _.extractFormattedPhoneNumber, e = s(r);
5
- if (!x(e))
6
- throw new v("NOT_A_NUMBER");
7
- var t;
8
- if (e === null)
9
- t = f(r) || "";
10
- else {
11
- t = "", e.charAt(0) === F && (t += e);
12
- var n = r.indexOf(a), o;
13
- n >= 0 ? o = n + a.length : o = 0;
14
- var h = r.indexOf(d);
15
- t += r.substring(o, h);
16
- }
17
- var i = t.indexOf(m);
18
- if (i > 0 && (t = t.substring(0, i)), t !== "")
19
- return t;
1
+ import r from "./index168.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectGroupContext");
5
+ function s() {
6
+ const e = t.useContext(o);
7
+ if (e === void 0)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
9
+ return e;
20
10
  }
21
11
  export {
22
- S as default
12
+ o as SelectGroupContext,
13
+ s as useSelectGroupContext
23
14
  };
24
15
  //# sourceMappingURL=index335.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index335.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js"],"sourcesContent":["import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n var phoneNumberString;\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = '';\n\n // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n }\n\n // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber;\n // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n /* istanbul ignore else */\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n }\n\n // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n }\n // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n//# sourceMappingURL=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map"],"names":["extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","_ref","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","isPhoneContextValid","ParseError","phoneNumberString","PLUS_SIGN","indexOfRfc3966Prefix","RFC3966_PREFIX_","indexOfNationalNumber","indexOfPhoneContext","RFC3966_PHONE_CONTEXT_","indexOfIsdn","RFC3966_ISDN_SUBADDRESS_"],"mappings":";;AAQe,SAASA,EAAwDC,GAAeC,GAAM;AACnG,MAAIC,IAA8BD,EAAK,6BACnCE,IAAeC,EAAoBJ,CAAa;AACpD,MAAI,CAACK,EAAoBF,CAAY;AACnC,UAAM,IAAIG,EAAW,cAAc;AAErC,MAAIC;AACJ,MAAIJ,MAAiB;AAGnB,IAAAI,IAAoBL,EAA4BF,CAAa,KAAK;AAAA,OAC7D;AACL,IAAAO,IAAoB,IAIhBJ,EAAa,OAAO,CAAC,MAAMK,MAC7BD,KAAqBJ;AAQvB,QAAIM,IAAuBT,EAAc,QAAQU,CAAe,GAC5DC;AAIJ,IAAIF,KAAwB,IAC1BE,IAAwBF,IAAuBC,EAAgB,SAE/DC,IAAwB;AAE1B,QAAIC,IAAsBZ,EAAc,QAAQa,CAAsB;AACtE,IAAAN,KAAqBP,EAAc,UAAUW,GAAuBC,CAAmB;AAAA,EACzF;AAKA,MAAIE,IAAcP,EAAkB,QAAQQ,CAAwB;AAUpE,MATID,IAAc,MAChBP,IAAoBA,EAAkB,UAAU,GAAGO,CAAW,IAQ5DP,MAAsB;AACxB,WAAOA;AAEX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index335.js","sources":["../../../node_modules/@base-ui/react/select/group/SelectGroupContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectGroupContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectGroupContext.displayName = \"SelectGroupContext\";\nexport function useSelectGroupContext() {\n const context = React.useContext(SelectGroupContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.' : _formatErrorMessage(56));\n }\n return context;\n}"],"names":["SelectGroupContext","React","useSelectGroupContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,IAAwB;AACtC,QAAMC,IAAUF,EAAM,WAAWD,CAAkB;AACnD,MAAIG,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,oGAAoGC,EAAoB,EAAE,CAAC;AAErL,SAAOD;AACT;","x_google_ignoreList":[0]}