@a-ui/react 7.13.0-beta.0 → 7.13.0-beta.1

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 (475) hide show
  1. package/constants/settings.d.ts +1 -1
  2. package/constants/stories.settings.d.ts +11 -0
  3. package/index.js +1 -62
  4. package/index.mjs +98 -9098
  5. package/index10.js +1 -0
  6. package/index10.mjs +60 -0
  7. package/index100.js +1 -0
  8. package/index100.mjs +4 -0
  9. package/index101.js +1 -0
  10. package/index101.mjs +400 -0
  11. package/index102.js +5 -0
  12. package/index102.mjs +42 -0
  13. package/index103.js +1 -0
  14. package/index103.mjs +4 -0
  15. package/index104.js +1 -0
  16. package/index104.mjs +10 -0
  17. package/index105.js +2 -0
  18. package/index105.mjs +329 -0
  19. package/index106.js +1 -0
  20. package/index106.mjs +52 -0
  21. package/index107.js +1 -0
  22. package/index107.mjs +4 -0
  23. package/index108.js +1 -0
  24. package/index108.mjs +67 -0
  25. package/index109.js +1 -0
  26. package/index109.mjs +45 -0
  27. package/index11.js +1 -0
  28. package/index11.mjs +12 -0
  29. package/index110.js +10 -0
  30. package/index110.mjs +62 -0
  31. package/index111.js +1 -0
  32. package/index111.mjs +46 -0
  33. package/index112.js +1 -0
  34. package/index112.mjs +42 -0
  35. package/index113.js +1 -0
  36. package/index113.mjs +4 -0
  37. package/index114.js +1 -0
  38. package/index114.mjs +4 -0
  39. package/index115.js +1 -0
  40. package/index115.mjs +4 -0
  41. package/index116.js +1 -0
  42. package/index116.mjs +33 -0
  43. package/index117.js +5 -0
  44. package/index117.mjs +21 -0
  45. package/index118.js +9 -0
  46. package/index118.mjs +63 -0
  47. package/index119.js +1 -0
  48. package/index119.mjs +65 -0
  49. package/index12.js +1 -0
  50. package/index12.mjs +215 -0
  51. package/index120.js +1 -0
  52. package/index120.mjs +16 -0
  53. package/index121.js +1 -0
  54. package/index121.mjs +9 -0
  55. package/index122.js +1 -0
  56. package/index122.mjs +9 -0
  57. package/index123.js +1 -0
  58. package/index123.mjs +8 -0
  59. package/index124.js +1 -0
  60. package/index124.mjs +8 -0
  61. package/index125.js +1 -0
  62. package/index125.mjs +7 -0
  63. package/index126.js +1 -0
  64. package/index126.mjs +7 -0
  65. package/index127.js +1 -0
  66. package/index127.mjs +9 -0
  67. package/index128.js +1 -0
  68. package/index128.mjs +7 -0
  69. package/index129.js +1 -0
  70. package/index129.mjs +69 -0
  71. package/index13.js +1 -0
  72. package/index13.mjs +29 -0
  73. package/index130.js +1 -0
  74. package/index130.mjs +5 -0
  75. package/index131.js +1 -0
  76. package/index131.mjs +7 -0
  77. package/index132.js +1 -0
  78. package/index132.mjs +13 -0
  79. package/index133.js +1 -0
  80. package/index133.mjs +4 -0
  81. package/index134.js +1 -0
  82. package/index134.mjs +393 -0
  83. package/index135.js +1 -0
  84. package/index135.mjs +127 -0
  85. package/index136.js +1 -0
  86. package/index136.mjs +136 -0
  87. package/index137.js +1 -0
  88. package/index137.mjs +4 -0
  89. package/index138.js +1 -0
  90. package/index138.mjs +4 -0
  91. package/index139.js +8 -0
  92. package/index139.mjs +78 -0
  93. package/index14.js +1 -0
  94. package/index14.mjs +44 -0
  95. package/index140.js +8 -0
  96. package/index140.mjs +95 -0
  97. package/index141.js +5 -0
  98. package/index141.mjs +54 -0
  99. package/index142.js +1 -0
  100. package/index142.mjs +10 -0
  101. package/index143.js +1 -0
  102. package/index143.mjs +7 -0
  103. package/index144.js +1 -0
  104. package/index144.mjs +54 -0
  105. package/index145.js +11 -0
  106. package/index145.mjs +60 -0
  107. package/index146.js +1 -0
  108. package/index146.mjs +4 -0
  109. package/index147.js +1 -0
  110. package/index147.mjs +4 -0
  111. package/index148.js +1 -0
  112. package/index148.mjs +7 -0
  113. package/index149.js +1 -0
  114. package/index149.mjs +7 -0
  115. package/index15.js +1 -0
  116. package/index15.mjs +8 -0
  117. package/index150.js +1 -0
  118. package/index150.mjs +9 -0
  119. package/index151.js +1 -0
  120. package/index151.mjs +15 -0
  121. package/index152.js +1 -0
  122. package/index152.mjs +18 -0
  123. package/index153.js +1 -0
  124. package/index153.mjs +11 -0
  125. package/index154.js +1 -0
  126. package/index154.mjs +8 -0
  127. package/index155.js +1 -0
  128. package/index155.mjs +8 -0
  129. package/index156.js +1 -0
  130. package/index156.mjs +7 -0
  131. package/index157.js +1 -0
  132. package/index157.mjs +515 -0
  133. package/index158.js +1 -0
  134. package/index158.mjs +52 -0
  135. package/index159.js +1 -0
  136. package/index159.mjs +20 -0
  137. package/index16.js +1 -0
  138. package/index16.mjs +15 -0
  139. package/index160.js +1 -0
  140. package/index160.mjs +20 -0
  141. package/index161.js +1 -0
  142. package/index161.mjs +7 -0
  143. package/index162.js +1 -0
  144. package/index162.mjs +10 -0
  145. package/index163.js +1 -0
  146. package/index163.mjs +8 -0
  147. package/index164.js +1 -0
  148. package/index164.mjs +7 -0
  149. package/index165.js +1 -0
  150. package/index165.mjs +8 -0
  151. package/index166.js +1 -0
  152. package/index166.mjs +11 -0
  153. package/index167.js +1 -0
  154. package/index167.mjs +7 -0
  155. package/index168.js +1 -0
  156. package/index168.mjs +10 -0
  157. package/index169.js +1 -0
  158. package/index169.mjs +14 -0
  159. package/index17.js +1 -0
  160. package/index17.mjs +108 -0
  161. package/index170.js +1 -0
  162. package/index170.mjs +11 -0
  163. package/index171.js +1 -0
  164. package/index171.mjs +11 -0
  165. package/index172.js +1 -0
  166. package/index172.mjs +15 -0
  167. package/index173.js +1 -0
  168. package/index173.mjs +6 -0
  169. package/index174.js +1 -0
  170. package/index174.mjs +35 -0
  171. package/index175.js +1 -0
  172. package/index175.mjs +67 -0
  173. package/index176.js +1 -0
  174. package/index176.mjs +10 -0
  175. package/index177.js +1 -0
  176. package/index177.mjs +10 -0
  177. package/index178.js +1 -0
  178. package/index178.mjs +9 -0
  179. package/index179.js +1 -0
  180. package/index179.mjs +9 -0
  181. package/index18.js +1 -0
  182. package/index18.mjs +136 -0
  183. package/index180.js +1 -0
  184. package/index180.mjs +16 -0
  185. package/index181.js +1 -0
  186. package/index181.mjs +4 -0
  187. package/index182.js +1 -0
  188. package/index182.mjs +4 -0
  189. package/index183.js +1 -0
  190. package/index183.mjs +4 -0
  191. package/index184.js +1 -0
  192. package/index184.mjs +59 -0
  193. package/index185.js +1 -0
  194. package/index185.mjs +24 -0
  195. package/index186.js +1 -0
  196. package/index186.mjs +43 -0
  197. package/index187.js +1 -0
  198. package/index187.mjs +63 -0
  199. package/index188.js +1 -0
  200. package/index188.mjs +34 -0
  201. package/index189.js +1 -0
  202. package/index189.mjs +15 -0
  203. package/index19.js +1 -0
  204. package/index19.mjs +11 -0
  205. package/index190.js +1 -0
  206. package/index190.mjs +64 -0
  207. package/index191.js +1 -0
  208. package/index191.mjs +64 -0
  209. package/index192.js +1 -0
  210. package/index192.mjs +65 -0
  211. package/index193.js +1 -0
  212. package/index193.mjs +65 -0
  213. package/index194.js +1 -0
  214. package/index194.mjs +42 -0
  215. package/index195.js +1 -0
  216. package/index195.mjs +43 -0
  217. package/index196.js +1 -0
  218. package/index196.mjs +55 -0
  219. package/index197.js +1 -0
  220. package/index197.mjs +45 -0
  221. package/index198.js +1 -0
  222. package/index198.mjs +39 -0
  223. package/index199.js +1 -0
  224. package/index199.mjs +68 -0
  225. package/index2.js +1 -0
  226. package/index2.mjs +12 -0
  227. package/index20.js +1 -0
  228. package/index20.mjs +54 -0
  229. package/index200.js +1 -0
  230. package/index200.mjs +68 -0
  231. package/index201.js +1 -0
  232. package/index201.mjs +93 -0
  233. package/index202.js +1 -0
  234. package/index202.mjs +43 -0
  235. package/index203.js +1 -0
  236. package/index203.mjs +43 -0
  237. package/index204.js +1 -0
  238. package/index204.mjs +43 -0
  239. package/index205.js +1 -0
  240. package/index205.mjs +27 -0
  241. package/index206.js +1 -0
  242. package/index206.mjs +26 -0
  243. package/index207.js +1 -0
  244. package/index207.mjs +26 -0
  245. package/index208.js +1 -0
  246. package/index208.mjs +27 -0
  247. package/index209.js +1 -0
  248. package/index209.mjs +26 -0
  249. package/index21.js +1 -0
  250. package/index21.mjs +33 -0
  251. package/index210.js +1 -0
  252. package/index210.mjs +26 -0
  253. package/index211.js +1 -0
  254. package/index211.mjs +16 -0
  255. package/index212.js +1 -0
  256. package/index212.mjs +42 -0
  257. package/index213.js +1 -0
  258. package/index213.mjs +42 -0
  259. package/index214.js +1 -0
  260. package/index214.mjs +16 -0
  261. package/index215.js +1 -0
  262. package/index215.mjs +16 -0
  263. package/index216.js +1 -0
  264. package/index216.mjs +70 -0
  265. package/index217.js +1 -0
  266. package/index217.mjs +33 -0
  267. package/index218.js +1 -0
  268. package/index218.mjs +11 -0
  269. package/index219.js +1 -0
  270. package/index219.mjs +155 -0
  271. package/index22.js +1 -0
  272. package/index22.mjs +22 -0
  273. package/index220.js +1 -0
  274. package/index220.mjs +110 -0
  275. package/index221.js +1 -0
  276. package/index221.mjs +22 -0
  277. package/index222.js +1 -0
  278. package/index222.mjs +103 -0
  279. package/index223.js +1 -0
  280. package/index223.mjs +49 -0
  281. package/index224.js +1 -0
  282. package/index224.mjs +70 -0
  283. package/index225.js +1 -0
  284. package/index225.mjs +33 -0
  285. package/index226.js +1 -0
  286. package/index226.mjs +11 -0
  287. package/index227.js +1 -0
  288. package/index227.mjs +110 -0
  289. package/index228.js +1 -0
  290. package/index228.mjs +109 -0
  291. package/index229.js +1 -0
  292. package/index229.mjs +9 -0
  293. package/index23.js +1 -0
  294. package/index23.mjs +32 -0
  295. package/index230.js +1 -0
  296. package/index230.mjs +18 -0
  297. package/index231.js +1 -0
  298. package/index231.mjs +31 -0
  299. package/index232.js +1 -0
  300. package/index232.mjs +15 -0
  301. package/index233.js +1 -0
  302. package/index233.mjs +61 -0
  303. package/index234.js +1 -0
  304. package/index234.mjs +11 -0
  305. package/index235.js +1 -0
  306. package/index235.mjs +22 -0
  307. package/index24.js +2 -0
  308. package/index24.mjs +62 -0
  309. package/index25.js +1 -0
  310. package/index25.mjs +15 -0
  311. package/index26.js +1 -0
  312. package/index26.mjs +12 -0
  313. package/index27.js +1 -0
  314. package/index27.mjs +43 -0
  315. package/index28.js +1 -0
  316. package/index28.mjs +34 -0
  317. package/index29.js +1 -0
  318. package/index29.mjs +10 -0
  319. package/index3.js +1 -0
  320. package/index3.mjs +15 -0
  321. package/index30.js +1 -0
  322. package/index30.mjs +72 -0
  323. package/index31.js +1 -0
  324. package/index31.mjs +40 -0
  325. package/index32.js +1 -0
  326. package/index32.mjs +48 -0
  327. package/index33.js +1 -0
  328. package/index33.mjs +90 -0
  329. package/index34.js +1 -0
  330. package/index34.mjs +36 -0
  331. package/index35.js +1 -0
  332. package/index35.mjs +25 -0
  333. package/index36.js +1 -0
  334. package/index36.mjs +27 -0
  335. package/index37.js +1 -0
  336. package/index37.mjs +110 -0
  337. package/index38.js +1 -0
  338. package/index38.mjs +57 -0
  339. package/index39.js +1 -0
  340. package/index39.mjs +21 -0
  341. package/index4.js +1 -0
  342. package/index4.mjs +58 -0
  343. package/index40.js +1 -0
  344. package/index40.mjs +40 -0
  345. package/index41.js +1 -0
  346. package/index41.mjs +54 -0
  347. package/index42.js +1 -0
  348. package/index42.mjs +73 -0
  349. package/index43.js +1 -0
  350. package/index43.mjs +49 -0
  351. package/index44.js +1 -0
  352. package/index44.mjs +13 -0
  353. package/index45.js +1 -0
  354. package/index45.mjs +73 -0
  355. package/index46.js +1 -0
  356. package/index46.mjs +99 -0
  357. package/index47.js +1 -0
  358. package/index47.mjs +45 -0
  359. package/index48.js +1 -0
  360. package/index48.mjs +26 -0
  361. package/index49.js +1 -0
  362. package/index49.mjs +83 -0
  363. package/index5.js +1 -0
  364. package/index5.mjs +136 -0
  365. package/index50.js +1 -0
  366. package/index50.mjs +35 -0
  367. package/index51.js +1 -0
  368. package/index51.mjs +10 -0
  369. package/index52.js +1 -0
  370. package/index52.mjs +13 -0
  371. package/index53.js +1 -0
  372. package/index53.mjs +30 -0
  373. package/index54.js +1 -0
  374. package/index54.mjs +51 -0
  375. package/index55.js +1 -0
  376. package/index55.mjs +10 -0
  377. package/index56.js +1 -0
  378. package/index56.mjs +49 -0
  379. package/index58.js +1 -0
  380. package/index58.mjs +64 -0
  381. package/index59.js +1 -0
  382. package/index59.mjs +62 -0
  383. package/index6.js +1 -0
  384. package/index6.mjs +29 -0
  385. package/index60.js +1 -0
  386. package/index60.mjs +31 -0
  387. package/index61.js +1 -0
  388. package/index61.mjs +23 -0
  389. package/index62.js +1 -0
  390. package/index62.mjs +32 -0
  391. package/index63.js +1 -0
  392. package/index63.mjs +16 -0
  393. package/index64.js +1 -0
  394. package/index64.mjs +61 -0
  395. package/index65.js +1 -0
  396. package/index65.mjs +19 -0
  397. package/index66.js +7 -0
  398. package/index66.mjs +411 -0
  399. package/index7.js +1 -0
  400. package/index7.mjs +8 -0
  401. package/index70.js +1 -0
  402. package/index70.mjs +4 -0
  403. package/index71.js +1 -0
  404. package/index71.mjs +76 -0
  405. package/index72.js +1 -0
  406. package/index72.mjs +31 -0
  407. package/index73.js +1 -0
  408. package/index73.mjs +38 -0
  409. package/index74.js +1 -0
  410. package/index74.mjs +6 -0
  411. package/index75.js +1 -0
  412. package/index75.mjs +37 -0
  413. package/index76.js +1 -0
  414. package/index76.mjs +7 -0
  415. package/index77.js +1 -0
  416. package/index77.mjs +7 -0
  417. package/index78.js +1 -0
  418. package/index78.mjs +7 -0
  419. package/index79.js +1 -0
  420. package/index79.mjs +7 -0
  421. package/index8.js +1 -0
  422. package/index8.mjs +18 -0
  423. package/index80.js +1 -0
  424. package/index80.mjs +7 -0
  425. package/index81.js +1 -0
  426. package/index81.mjs +19 -0
  427. package/index82.js +1 -0
  428. package/index82.mjs +87 -0
  429. package/index83.js +1 -0
  430. package/index83.mjs +8 -0
  431. package/index84.js +1 -0
  432. package/index84.mjs +27 -0
  433. package/index85.js +1 -0
  434. package/index85.mjs +57 -0
  435. package/index87.js +1 -0
  436. package/index87.mjs +7 -0
  437. package/index88.js +1 -0
  438. package/index88.mjs +121 -0
  439. package/index89.js +1 -0
  440. package/index89.mjs +20 -0
  441. package/index9.js +1 -0
  442. package/index9.mjs +18 -0
  443. package/index90.js +1 -0
  444. package/index90.mjs +26 -0
  445. package/index91.js +1 -0
  446. package/index91.mjs +4 -0
  447. package/index92.js +1 -0
  448. package/index92.mjs +237 -0
  449. package/index93.js +1 -0
  450. package/index93.mjs +4 -0
  451. package/index94.js +1 -0
  452. package/index94.mjs +13 -0
  453. package/index95.js +1 -0
  454. package/index95.mjs +249 -0
  455. package/index96.js +1 -0
  456. package/index96.mjs +91 -0
  457. package/index97.js +1 -0
  458. package/index97.mjs +15 -0
  459. package/index98.js +1 -0
  460. package/index98.mjs +6 -0
  461. package/index99.js +1 -0
  462. package/index99.mjs +4 -0
  463. package/lib/atoms/input/text-field/TextField.d.ts +1 -1
  464. package/lib/atoms/select/Select.types.d.ts +1 -1
  465. package/lib/base/icon/Icon.d.ts +1 -1
  466. package/lib/molecules/datepicker/Calendar.d.ts +1 -1
  467. package/lib/molecules/flyout/Flyout.d.ts +1 -1
  468. package/lib/molecules/tag/Tag.d.ts +1 -1
  469. package/package.json +4 -1
  470. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
  471. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
  472. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
  473. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
  474. package/utils/math.utils.d.ts +1 -1
  475. package/index.css +0 -1
package/index184.mjs ADDED
@@ -0,0 +1,59 @@
1
+ import { addLeadingZeros as n } from "./index161.mjs";
2
+ const g = {
3
+ // Year
4
+ y(e, t) {
5
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
6
+ return n(t === "yy" ? a % 100 : a, t.length);
7
+ },
8
+ // Month
9
+ M(e, t) {
10
+ const r = e.getMonth();
11
+ return t === "M" ? String(r + 1) : n(r + 1, 2);
12
+ },
13
+ // Day of the month
14
+ d(e, t) {
15
+ return n(e.getDate(), t.length);
16
+ },
17
+ // AM or PM
18
+ a(e, t) {
19
+ const r = e.getHours() / 12 >= 1 ? "pm" : "am";
20
+ switch (t) {
21
+ case "a":
22
+ case "aa":
23
+ return r.toUpperCase();
24
+ case "aaa":
25
+ return r;
26
+ case "aaaaa":
27
+ return r[0];
28
+ case "aaaa":
29
+ default:
30
+ return r === "am" ? "a.m." : "p.m.";
31
+ }
32
+ },
33
+ // Hour [1-12]
34
+ h(e, t) {
35
+ return n(e.getHours() % 12 || 12, t.length);
36
+ },
37
+ // Hour [0-23]
38
+ H(e, t) {
39
+ return n(e.getHours(), t.length);
40
+ },
41
+ // Minute
42
+ m(e, t) {
43
+ return n(e.getMinutes(), t.length);
44
+ },
45
+ // Second
46
+ s(e, t) {
47
+ return n(e.getSeconds(), t.length);
48
+ },
49
+ // Fraction of second
50
+ S(e, t) {
51
+ const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
52
+ a * Math.pow(10, r - 3)
53
+ );
54
+ return n(s, t.length);
55
+ }
56
+ };
57
+ export {
58
+ g as lightFormatters
59
+ };
package/index185.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index221.js");class G extends a.Parser{priority=140;parse(r,s,e){switch(s){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})||e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"})}}set(r,s,e){return s.era=e,r.setFullYear(e,0,1),r.setHours(0,0,0,0),r}incompatibleTokens=["R","u","t","T"]}exports.EraParser=G;
package/index185.mjs ADDED
@@ -0,0 +1,24 @@
1
+ import { Parser as G } from "./index221.mjs";
2
+ class i extends G {
3
+ priority = 140;
4
+ parse(r, s, e) {
5
+ switch (s) {
6
+ case "G":
7
+ case "GG":
8
+ case "GGG":
9
+ return e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
10
+ case "GGGGG":
11
+ return e.era(r, { width: "narrow" });
12
+ case "GGGG":
13
+ default:
14
+ return e.era(r, { width: "wide" }) || e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
15
+ }
16
+ }
17
+ set(r, s, e) {
18
+ return s.era = e, r.setFullYear(e, 0, 1), r.setHours(0, 0, 0, 0), r;
19
+ }
20
+ incompatibleTokens = ["R", "u", "t", "T"];
21
+ }
22
+ export {
23
+ i as EraParser
24
+ };
package/index186.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index221.js"),i=require("./index222.js");class n extends u.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(r,e,a){const s=t=>({year:t,isTwoDigitYear:e==="yy"});switch(e){case"y":return i.mapValue(i.parseNDigits(4,r),s);case"yo":return i.mapValue(a.ordinalNumber(r,{unit:"year"}),s);default:return i.mapValue(i.parseNDigits(e.length,r),s)}}validate(r,e){return e.isTwoDigitYear||e.year>0}set(r,e,a){const s=r.getFullYear();if(a.isTwoDigitYear){const o=i.normalizeTwoDigitYear(a.year,s);return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}const t=!("era"in e)||e.era===1?a.year:1-a.year;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}}exports.YearParser=n;
package/index186.mjs ADDED
@@ -0,0 +1,43 @@
1
+ import { Parser as u } from "./index221.mjs";
2
+ import { mapValue as t, parseNDigits as o, normalizeTwoDigitYear as l } from "./index222.mjs";
3
+ class m extends u {
4
+ priority = 130;
5
+ incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
6
+ parse(r, e, i) {
7
+ const a = (s) => ({
8
+ year: s,
9
+ isTwoDigitYear: e === "yy"
10
+ });
11
+ switch (e) {
12
+ case "y":
13
+ return t(o(4, r), a);
14
+ case "yo":
15
+ return t(
16
+ i.ordinalNumber(r, {
17
+ unit: "year"
18
+ }),
19
+ a
20
+ );
21
+ default:
22
+ return t(o(e.length, r), a);
23
+ }
24
+ }
25
+ validate(r, e) {
26
+ return e.isTwoDigitYear || e.year > 0;
27
+ }
28
+ set(r, e, i) {
29
+ const a = r.getFullYear();
30
+ if (i.isTwoDigitYear) {
31
+ const n = l(
32
+ i.year,
33
+ a
34
+ );
35
+ return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
36
+ }
37
+ const s = !("era" in e) || e.era === 1 ? i.year : 1 - i.year;
38
+ return r.setFullYear(s, 0, 1), r.setHours(0, 0, 0, 0), r;
39
+ }
40
+ }
41
+ export {
42
+ m as YearParser
43
+ };
package/index187.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index172.js"),u=require("./index122.js"),l=require("./index221.js"),s=require("./index222.js");class Y extends l.Parser{priority=130;parse(e,r,t){const a=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return s.mapValue(s.parseNDigits(4,e),a);case"Yo":return s.mapValue(t.ordinalNumber(e,{unit:"year"}),a);default:return s.mapValue(s.parseNDigits(r.length,e),a)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,t,a){const i=c.getWeekYear(e,a);if(t.isTwoDigitYear){const o=s.normalizeTwoDigitYear(t.year,i);return e.setFullYear(o,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),u.startOfWeek(e,a)}const n=!("era"in r)||r.era===1?t.year:1-t.year;return e.setFullYear(n,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),u.startOfWeek(e,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}exports.LocalWeekYearParser=Y;
package/index187.mjs ADDED
@@ -0,0 +1,63 @@
1
+ import { getWeekYear as u } from "./index172.mjs";
2
+ import { startOfWeek as o } from "./index122.mjs";
3
+ import { Parser as c } from "./index221.mjs";
4
+ import { mapValue as s, parseNDigits as n, normalizeTwoDigitYear as l } from "./index222.mjs";
5
+ class w extends c {
6
+ priority = 130;
7
+ parse(r, e, i) {
8
+ const a = (t) => ({
9
+ year: t,
10
+ isTwoDigitYear: e === "YY"
11
+ });
12
+ switch (e) {
13
+ case "Y":
14
+ return s(n(4, r), a);
15
+ case "Yo":
16
+ return s(
17
+ i.ordinalNumber(r, {
18
+ unit: "year"
19
+ }),
20
+ a
21
+ );
22
+ default:
23
+ return s(n(e.length, r), a);
24
+ }
25
+ }
26
+ validate(r, e) {
27
+ return e.isTwoDigitYear || e.year > 0;
28
+ }
29
+ set(r, e, i, a) {
30
+ const t = u(r, a);
31
+ if (i.isTwoDigitYear) {
32
+ const m = l(
33
+ i.year,
34
+ t
35
+ );
36
+ return r.setFullYear(
37
+ m,
38
+ 0,
39
+ a.firstWeekContainsDate
40
+ ), r.setHours(0, 0, 0, 0), o(r, a);
41
+ }
42
+ const Y = !("era" in e) || e.era === 1 ? i.year : 1 - i.year;
43
+ return r.setFullYear(Y, 0, a.firstWeekContainsDate), r.setHours(0, 0, 0, 0), o(r, a);
44
+ }
45
+ incompatibleTokens = [
46
+ "y",
47
+ "R",
48
+ "u",
49
+ "Q",
50
+ "q",
51
+ "M",
52
+ "L",
53
+ "I",
54
+ "d",
55
+ "D",
56
+ "i",
57
+ "t",
58
+ "T"
59
+ ];
60
+ }
61
+ export {
62
+ w as LocalWeekYearParser
63
+ };
package/index188.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index167.js"),n=require("./index148.js"),o=require("./index221.js"),t=require("./index222.js");class u extends o.Parser{priority=130;parse(e,r){return r==="R"?t.parseNDigitsSigned(4,e):t.parseNDigitsSigned(r.length,e)}set(e,r,i){const s=n.constructFrom(e,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),a.startOfISOWeek(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}exports.ISOWeekYearParser=u;
package/index188.mjs ADDED
@@ -0,0 +1,34 @@
1
+ import { startOfISOWeek as i } from "./index167.mjs";
2
+ import { constructFrom as a } from "./index148.mjs";
3
+ import { Parser as m } from "./index221.mjs";
4
+ import { parseNDigitsSigned as s } from "./index222.mjs";
5
+ class l extends m {
6
+ priority = 130;
7
+ parse(r, e) {
8
+ return e === "R" ? s(4, r) : s(e.length, r);
9
+ }
10
+ set(r, e, o) {
11
+ const t = a(r, 0);
12
+ return t.setFullYear(o, 0, 4), t.setHours(0, 0, 0, 0), i(t);
13
+ }
14
+ incompatibleTokens = [
15
+ "G",
16
+ "y",
17
+ "Y",
18
+ "u",
19
+ "Q",
20
+ "q",
21
+ "M",
22
+ "L",
23
+ "w",
24
+ "d",
25
+ "D",
26
+ "e",
27
+ "c",
28
+ "t",
29
+ "T"
30
+ ];
31
+ }
32
+ export {
33
+ l as ISOWeekYearParser
34
+ };
package/index189.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index221.js"),s=require("./index222.js");class n extends i.Parser{priority=130;parse(e,r){return r==="u"?s.parseNDigitsSigned(4,e):s.parseNDigitsSigned(r.length,e)}set(e,r,t){return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}exports.ExtendedYearParser=n;
package/index189.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import { Parser as i } from "./index221.mjs";
2
+ import { parseNDigitsSigned as s } from "./index222.mjs";
3
+ class a extends i {
4
+ priority = 130;
5
+ parse(r, e) {
6
+ return e === "u" ? s(4, r) : s(e.length, r);
7
+ }
8
+ set(r, e, t) {
9
+ return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
10
+ }
11
+ incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
12
+ }
13
+ export {
14
+ a as ExtendedYearParser
15
+ };
package/index19.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react");function r({items:i=[],qa:n}){return t.jsx("dl",{className:"a-definition-list","data-qa":n,children:i.map(e=>t.jsxs(a.Fragment,{children:[t.jsx("dt",{"data-qa":e.qaTerm,children:e.term}),t.jsx("dd",{"data-qa":e.qaDescription,children:e.description})]},e.id))})}exports.DefinitionList=r;
package/index19.mjs ADDED
@@ -0,0 +1,11 @@
1
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
+ import { Fragment as e } from "react";
3
+ function m({ items: i = [], qa: r }) {
4
+ return /* @__PURE__ */ a("dl", { className: "a-definition-list", "data-qa": r, children: i.map((t) => /* @__PURE__ */ d(e, { children: [
5
+ /* @__PURE__ */ a("dt", { "data-qa": t.qaTerm, children: t.term }),
6
+ /* @__PURE__ */ a("dd", { "data-qa": t.qaDescription, children: t.description })
7
+ ] }, t.id)) });
8
+ }
9
+ export {
10
+ m as DefinitionList
11
+ };
package/index190.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index221.js"),s=require("./index222.js");class o extends a.Parser{priority=120;parse(r,t,e){switch(t){case"Q":case"QQ":return s.parseNDigits(t.length,r);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})||e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"})}}validate(r,t){return t>=1&&t<=4}set(r,t,e){return r.setMonth((e-1)*3,1),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}exports.QuarterParser=o;
package/index190.mjs ADDED
@@ -0,0 +1,64 @@
1
+ import { Parser as o } from "./index221.mjs";
2
+ import { parseNDigits as a } from "./index222.mjs";
3
+ class u extends o {
4
+ priority = 120;
5
+ parse(r, e, t) {
6
+ switch (e) {
7
+ case "Q":
8
+ case "QQ":
9
+ return a(e.length, r);
10
+ case "Qo":
11
+ return t.ordinalNumber(r, { unit: "quarter" });
12
+ case "QQQ":
13
+ return t.quarter(r, {
14
+ width: "abbreviated",
15
+ context: "formatting"
16
+ }) || t.quarter(r, {
17
+ width: "narrow",
18
+ context: "formatting"
19
+ });
20
+ case "QQQQQ":
21
+ return t.quarter(r, {
22
+ width: "narrow",
23
+ context: "formatting"
24
+ });
25
+ case "QQQQ":
26
+ default:
27
+ return t.quarter(r, {
28
+ width: "wide",
29
+ context: "formatting"
30
+ }) || t.quarter(r, {
31
+ width: "abbreviated",
32
+ context: "formatting"
33
+ }) || t.quarter(r, {
34
+ width: "narrow",
35
+ context: "formatting"
36
+ });
37
+ }
38
+ }
39
+ validate(r, e) {
40
+ return e >= 1 && e <= 4;
41
+ }
42
+ set(r, e, t) {
43
+ return r.setMonth((t - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
44
+ }
45
+ incompatibleTokens = [
46
+ "Y",
47
+ "R",
48
+ "q",
49
+ "M",
50
+ "L",
51
+ "w",
52
+ "I",
53
+ "d",
54
+ "D",
55
+ "i",
56
+ "e",
57
+ "c",
58
+ "t",
59
+ "T"
60
+ ];
61
+ }
62
+ export {
63
+ u as QuarterParser
64
+ };
package/index191.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index221.js"),n=require("./index222.js");class s extends a.Parser{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return n.parseNDigits(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}exports.StandAloneQuarterParser=s;
package/index191.mjs ADDED
@@ -0,0 +1,64 @@
1
+ import { Parser as a } from "./index221.mjs";
2
+ import { parseNDigits as n } from "./index222.mjs";
3
+ class u extends a {
4
+ priority = 120;
5
+ parse(r, t, e) {
6
+ switch (t) {
7
+ case "q":
8
+ case "qq":
9
+ return n(t.length, r);
10
+ case "qo":
11
+ return e.ordinalNumber(r, { unit: "quarter" });
12
+ case "qqq":
13
+ return e.quarter(r, {
14
+ width: "abbreviated",
15
+ context: "standalone"
16
+ }) || e.quarter(r, {
17
+ width: "narrow",
18
+ context: "standalone"
19
+ });
20
+ case "qqqqq":
21
+ return e.quarter(r, {
22
+ width: "narrow",
23
+ context: "standalone"
24
+ });
25
+ case "qqqq":
26
+ default:
27
+ return e.quarter(r, {
28
+ width: "wide",
29
+ context: "standalone"
30
+ }) || e.quarter(r, {
31
+ width: "abbreviated",
32
+ context: "standalone"
33
+ }) || e.quarter(r, {
34
+ width: "narrow",
35
+ context: "standalone"
36
+ });
37
+ }
38
+ }
39
+ validate(r, t) {
40
+ return t >= 1 && t <= 4;
41
+ }
42
+ set(r, t, e) {
43
+ return r.setMonth((e - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
44
+ }
45
+ incompatibleTokens = [
46
+ "Y",
47
+ "R",
48
+ "Q",
49
+ "M",
50
+ "L",
51
+ "w",
52
+ "I",
53
+ "d",
54
+ "D",
55
+ "i",
56
+ "e",
57
+ "c",
58
+ "t",
59
+ "T"
60
+ ];
61
+ }
62
+ export {
63
+ u as StandAloneQuarterParser
64
+ };
package/index192.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index223.js"),i=require("./index221.js"),n=require("./index222.js");class u extends i.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,e){const o=s=>s-1;switch(r){case"M":return n.mapValue(n.parseNumericPattern(a.numericPatterns.month,t),o);case"MM":return n.mapValue(n.parseNDigits(2,t),o);case"Mo":return n.mapValue(e.ordinalNumber(t,{unit:"month"}),o);case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"})||e.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})||e.month(t,{width:"abbreviated",context:"formatting"})||e.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,e){return t.setMonth(e,1),t.setHours(0,0,0,0),t}}exports.MonthParser=u;
package/index192.mjs ADDED
@@ -0,0 +1,65 @@
1
+ import { numericPatterns as i } from "./index223.mjs";
2
+ import { Parser as a } from "./index221.mjs";
3
+ import { mapValue as n, parseNDigits as m, parseNumericPattern as M } from "./index222.mjs";
4
+ class h extends a {
5
+ incompatibleTokens = [
6
+ "Y",
7
+ "R",
8
+ "q",
9
+ "Q",
10
+ "L",
11
+ "w",
12
+ "I",
13
+ "D",
14
+ "i",
15
+ "e",
16
+ "c",
17
+ "t",
18
+ "T"
19
+ ];
20
+ priority = 110;
21
+ parse(t, o, r) {
22
+ const e = (s) => s - 1;
23
+ switch (o) {
24
+ case "M":
25
+ return n(
26
+ M(i.month, t),
27
+ e
28
+ );
29
+ case "MM":
30
+ return n(m(2, t), e);
31
+ case "Mo":
32
+ return n(
33
+ r.ordinalNumber(t, {
34
+ unit: "month"
35
+ }),
36
+ e
37
+ );
38
+ case "MMM":
39
+ return r.month(t, {
40
+ width: "abbreviated",
41
+ context: "formatting"
42
+ }) || r.month(t, { width: "narrow", context: "formatting" });
43
+ case "MMMMM":
44
+ return r.month(t, {
45
+ width: "narrow",
46
+ context: "formatting"
47
+ });
48
+ case "MMMM":
49
+ default:
50
+ return r.month(t, { width: "wide", context: "formatting" }) || r.month(t, {
51
+ width: "abbreviated",
52
+ context: "formatting"
53
+ }) || r.month(t, { width: "narrow", context: "formatting" });
54
+ }
55
+ }
56
+ validate(t, o) {
57
+ return o >= 0 && o <= 11;
58
+ }
59
+ set(t, o, r) {
60
+ return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
61
+ }
62
+ }
63
+ export {
64
+ h as MonthParser
65
+ };
package/index193.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index223.js"),u=require("./index221.js"),r=require("./index222.js");class l extends u.Parser{priority=110;parse(e,n,t){const o=s=>s-1;switch(n){case"L":return r.mapValue(r.parseNumericPattern(a.numericPatterns.month,e),o);case"LL":return r.mapValue(r.parseNDigits(2,e),o);case"Lo":return r.mapValue(t.ordinalNumber(e,{unit:"month"}),o);case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,t){return e.setMonth(t,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}exports.StandAloneMonthParser=l;
package/index193.mjs ADDED
@@ -0,0 +1,65 @@
1
+ import { numericPatterns as a } from "./index223.mjs";
2
+ import { Parser as i } from "./index221.mjs";
3
+ import { mapValue as r, parseNDigits as l, parseNumericPattern as L } from "./index222.mjs";
4
+ class d extends i {
5
+ priority = 110;
6
+ parse(e, n, t) {
7
+ const o = (s) => s - 1;
8
+ switch (n) {
9
+ case "L":
10
+ return r(
11
+ L(a.month, e),
12
+ o
13
+ );
14
+ case "LL":
15
+ return r(l(2, e), o);
16
+ case "Lo":
17
+ return r(
18
+ t.ordinalNumber(e, {
19
+ unit: "month"
20
+ }),
21
+ o
22
+ );
23
+ case "LLL":
24
+ return t.month(e, {
25
+ width: "abbreviated",
26
+ context: "standalone"
27
+ }) || t.month(e, { width: "narrow", context: "standalone" });
28
+ case "LLLLL":
29
+ return t.month(e, {
30
+ width: "narrow",
31
+ context: "standalone"
32
+ });
33
+ case "LLLL":
34
+ default:
35
+ return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
36
+ width: "abbreviated",
37
+ context: "standalone"
38
+ }) || t.month(e, { width: "narrow", context: "standalone" });
39
+ }
40
+ }
41
+ validate(e, n) {
42
+ return n >= 0 && n <= 11;
43
+ }
44
+ set(e, n, t) {
45
+ return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
46
+ }
47
+ incompatibleTokens = [
48
+ "Y",
49
+ "R",
50
+ "q",
51
+ "Q",
52
+ "M",
53
+ "w",
54
+ "I",
55
+ "D",
56
+ "i",
57
+ "e",
58
+ "c",
59
+ "t",
60
+ "T"
61
+ ];
62
+ }
63
+ export {
64
+ d as StandAloneMonthParser
65
+ };
package/index194.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index179.js"),n=require("./index122.js"),u=require("./index223.js"),c=require("./index221.js"),a=require("./index222.js");class o extends c.Parser{priority=100;parse(e,r,t){switch(r){case"w":return a.parseNumericPattern(u.numericPatterns.week,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return a.parseNDigits(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,t,s){return n.startOfWeek(i.setWeek(e,t,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}exports.LocalWeekParser=o;
package/index194.mjs ADDED
@@ -0,0 +1,42 @@
1
+ import { setWeek as a } from "./index179.mjs";
2
+ import { startOfWeek as i } from "./index122.mjs";
3
+ import { numericPatterns as m } from "./index223.mjs";
4
+ import { Parser as o } from "./index221.mjs";
5
+ import { parseNDigits as n, parseNumericPattern as p } from "./index222.mjs";
6
+ class d extends o {
7
+ priority = 100;
8
+ parse(r, e, t) {
9
+ switch (e) {
10
+ case "w":
11
+ return p(m.week, r);
12
+ case "wo":
13
+ return t.ordinalNumber(r, { unit: "week" });
14
+ default:
15
+ return n(e.length, r);
16
+ }
17
+ }
18
+ validate(r, e) {
19
+ return e >= 1 && e <= 53;
20
+ }
21
+ set(r, e, t, s) {
22
+ return i(a(r, t, s), s);
23
+ }
24
+ incompatibleTokens = [
25
+ "y",
26
+ "R",
27
+ "u",
28
+ "q",
29
+ "Q",
30
+ "M",
31
+ "L",
32
+ "I",
33
+ "d",
34
+ "D",
35
+ "i",
36
+ "t",
37
+ "T"
38
+ ];
39
+ }
40
+ export {
41
+ d as LocalWeekParser
42
+ };
package/index195.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index178.js"),n=require("./index167.js"),i=require("./index223.js"),u=require("./index221.js"),s=require("./index222.js");class c extends u.Parser{priority=100;parse(e,r,t){switch(r){case"I":return s.parseNumericPattern(i.numericPatterns.week,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return s.parseNDigits(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,t){return n.startOfISOWeek(a.setISOWeek(e,t))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}exports.ISOWeekParser=c;
package/index195.mjs ADDED
@@ -0,0 +1,43 @@
1
+ import { setISOWeek as s } from "./index178.mjs";
2
+ import { startOfISOWeek as a } from "./index167.mjs";
3
+ import { numericPatterns as i } from "./index223.mjs";
4
+ import { Parser as o } from "./index221.mjs";
5
+ import { parseNDigits as m, parseNumericPattern as n } from "./index222.mjs";
6
+ class I extends o {
7
+ priority = 100;
8
+ parse(e, r, t) {
9
+ switch (r) {
10
+ case "I":
11
+ return n(i.week, e);
12
+ case "Io":
13
+ return t.ordinalNumber(e, { unit: "week" });
14
+ default:
15
+ return m(r.length, e);
16
+ }
17
+ }
18
+ validate(e, r) {
19
+ return r >= 1 && r <= 53;
20
+ }
21
+ set(e, r, t) {
22
+ return a(s(e, t));
23
+ }
24
+ incompatibleTokens = [
25
+ "y",
26
+ "Y",
27
+ "u",
28
+ "q",
29
+ "Q",
30
+ "M",
31
+ "L",
32
+ "w",
33
+ "d",
34
+ "D",
35
+ "e",
36
+ "c",
37
+ "t",
38
+ "T"
39
+ ];
40
+ }
41
+ export {
42
+ I as ISOWeekParser
43
+ };
package/index196.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index223.js"),o=require("./index221.js"),s=require("./index222.js"),c=[31,28,31,30,31,30,31,31,30,31,30,31],u=[31,29,31,30,31,30,31,31,30,31,30,31];class l extends o.Parser{priority=90;subPriority=1;parse(e,r,t){switch(r){case"d":return s.parseNumericPattern(i.numericPatterns.date,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return s.parseNDigits(r.length,e)}}validate(e,r){const t=e.getFullYear(),a=s.isLeapYearIndex(t),n=e.getMonth();return a?r>=1&&r<=u[n]:r>=1&&r<=c[n]}set(e,r,t){return e.setDate(t),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}exports.DateParser=l;