@okam/stack-ui 1.40.0 → 1.40.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 (446) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/components/fields/ComboBox/components/ComboBoxButton.d.ts +3 -0
  3. package/components/fields/ComboBox/interface.d.ts +5 -1
  4. package/index108.js +6 -1
  5. package/index108.mjs +29 -12
  6. package/index123.js +1 -1
  7. package/index123.mjs +1 -1
  8. package/index125.js +1 -1
  9. package/index125.mjs +2 -2
  10. package/index126.js +1 -1
  11. package/index126.mjs +1 -1
  12. package/index131.js +1 -1
  13. package/index131.mjs +1 -1
  14. package/index133.js +1 -1
  15. package/index133.mjs +4 -4
  16. package/index134.js +1 -1
  17. package/index134.mjs +3 -3
  18. package/index135.js +1 -1
  19. package/index135.mjs +1 -1
  20. package/index136.js +1 -1
  21. package/index136.mjs +1 -1
  22. package/index137.js +1 -1
  23. package/index137.mjs +3 -3
  24. package/index141.js +1 -1
  25. package/index141.mjs +13 -38
  26. package/index142.js +1 -2
  27. package/index142.mjs +38 -24
  28. package/index143.js +2 -1
  29. package/index143.mjs +23 -21
  30. package/index144.js +1 -1
  31. package/index144.mjs +21 -41
  32. package/index145.js +1 -1
  33. package/index145.mjs +42 -25
  34. package/index146.js +1 -1
  35. package/index146.mjs +25 -40
  36. package/index147.js +1 -2
  37. package/index147.mjs +39 -56
  38. package/index148.js +2 -1
  39. package/index148.mjs +57 -38
  40. package/index149.js +1 -1
  41. package/index149.mjs +34 -26
  42. package/index150.js +1 -2
  43. package/index150.mjs +30 -8
  44. package/index151.js +1 -1
  45. package/index151.mjs +7 -8
  46. package/index152.js +2 -1
  47. package/index152.mjs +10 -30
  48. package/index153.js +1 -1
  49. package/index153.mjs +30 -15
  50. package/index154.js +1 -1
  51. package/index154.mjs +13 -15
  52. package/index155.js +1 -2
  53. package/index155.mjs +16 -47
  54. package/index156.js +2 -1
  55. package/index156.mjs +46 -36
  56. package/index157.js +1 -1
  57. package/index157.mjs +36 -27
  58. package/index158.js +1 -1
  59. package/index158.mjs +27 -20
  60. package/index159.js +1 -1
  61. package/index159.mjs +18 -32
  62. package/index160.js +1 -1
  63. package/index160.mjs +35 -21
  64. package/index161.js +1 -1
  65. package/index161.mjs +21 -56
  66. package/index162.js +1 -1
  67. package/index162.mjs +57 -12
  68. package/index163.js +1 -1
  69. package/index163.mjs +12 -46
  70. package/index164.js +1 -2
  71. package/index164.mjs +46 -13
  72. package/index165.js +1 -1
  73. package/index165.mjs +11 -29
  74. package/index166.js +2 -1
  75. package/index166.mjs +31 -12
  76. package/index167.js +1 -1
  77. package/index167.mjs +11 -5
  78. package/index168.js +1 -2
  79. package/index168.mjs +5 -49
  80. package/index169.js +2 -1
  81. package/index169.mjs +48 -124
  82. package/index170.js +1 -1
  83. package/index170.mjs +122 -24
  84. package/index171.js +1 -1
  85. package/index171.mjs +22 -68
  86. package/index172.js +1 -1
  87. package/index172.mjs +62 -370
  88. package/index173.js +1 -1
  89. package/index173.mjs +379 -44
  90. package/index174.js +1 -1
  91. package/index174.mjs +47 -4
  92. package/index175.js +1 -1
  93. package/index175.mjs +4 -25
  94. package/index176.js +1 -1
  95. package/index176.mjs +23 -46
  96. package/index177.js +1 -1
  97. package/index177.mjs +46 -4
  98. package/index178.js +1 -1
  99. package/index178.mjs +5 -24
  100. package/index179.js +1 -1
  101. package/index179.mjs +23 -11
  102. package/index180.js +1 -1
  103. package/index180.mjs +12 -4
  104. package/index181.js +1 -1
  105. package/index181.mjs +4 -14
  106. package/index182.js +1 -1
  107. package/index182.mjs +13 -41
  108. package/index183.js +1 -1
  109. package/index183.mjs +37 -52
  110. package/index184.js +1 -1
  111. package/index184.mjs +55 -39
  112. package/index185.js +1 -1
  113. package/index185.mjs +40 -27
  114. package/index186.js +1 -1
  115. package/index186.mjs +27 -30
  116. package/index187.js +1 -1
  117. package/index187.mjs +30 -13
  118. package/index188.js +1 -1
  119. package/index188.mjs +14 -10
  120. package/index189.js +1 -1
  121. package/index189.mjs +10 -28
  122. package/index19.js +1 -1
  123. package/index19.mjs +3 -2
  124. package/index190.js +1 -1
  125. package/index190.mjs +28 -9
  126. package/index191.js +1 -1
  127. package/index191.mjs +9 -6
  128. package/index192.js +1 -1
  129. package/index192.mjs +6 -5
  130. package/index193.js +1 -1
  131. package/index193.mjs +5 -7
  132. package/index194.js +1 -1
  133. package/index194.mjs +7 -29
  134. package/index195.js +1 -1
  135. package/index195.mjs +27 -16
  136. package/index196.js +1 -1
  137. package/index196.mjs +17 -12
  138. package/index197.js +1 -1
  139. package/index197.mjs +13 -43
  140. package/index198.js +1 -1
  141. package/index198.mjs +42 -7
  142. package/index199.js +1 -1
  143. package/index199.mjs +8 -17
  144. package/index20.js +1 -1
  145. package/index20.mjs +1 -1
  146. package/index200.js +1 -1
  147. package/index200.mjs +18 -3
  148. package/index201.js +1 -1
  149. package/index201.mjs +3 -5
  150. package/index202.js +1 -1
  151. package/index202.mjs +4 -19
  152. package/index203.js +1 -1
  153. package/index203.mjs +19 -54
  154. package/index204.js +1 -1
  155. package/index204.mjs +52 -122
  156. package/index205.js +1 -1
  157. package/index205.mjs +122 -132
  158. package/index206.js +1 -1
  159. package/index206.mjs +125 -35
  160. package/index207.js +1 -1
  161. package/index207.mjs +42 -12
  162. package/index208.js +1 -1
  163. package/index208.mjs +12 -93
  164. package/index209.js +1 -1
  165. package/index209.mjs +87 -98
  166. package/index210.js +1 -1
  167. package/index210.mjs +106 -4
  168. package/index211.js +1 -1
  169. package/index211.mjs +4 -3
  170. package/index212.js +1 -1
  171. package/index212.mjs +3 -125
  172. package/index213.js +1 -1
  173. package/index213.mjs +117 -21
  174. package/index214.js +1 -1
  175. package/index214.mjs +15 -37
  176. package/index215.js +1 -1
  177. package/index215.mjs +41 -34
  178. package/index216.js +1 -1
  179. package/index216.mjs +32 -25
  180. package/index217.js +1 -1
  181. package/index217.mjs +22 -98
  182. package/index218.js +1 -1
  183. package/index218.mjs +99 -63
  184. package/index219.js +1 -1
  185. package/index219.mjs +55 -79
  186. package/index220.js +1 -1
  187. package/index220.mjs +102 -98
  188. package/index221.js +1 -1
  189. package/index221.mjs +98 -141
  190. package/index222.js +1 -1
  191. package/index222.mjs +136 -193
  192. package/index223.js +1 -1
  193. package/index223.mjs +196 -21
  194. package/index224.js +1 -1
  195. package/index224.mjs +20 -47
  196. package/index225.js +1 -1
  197. package/index225.mjs +45 -44
  198. package/index226.js +1 -1
  199. package/index226.mjs +43 -92
  200. package/index227.js +1 -1
  201. package/index227.mjs +98 -72
  202. package/index228.js +1 -1
  203. package/index228.mjs +72 -69
  204. package/index229.js +1 -1
  205. package/index229.mjs +68 -7
  206. package/index230.js +1 -1
  207. package/index230.mjs +7 -11
  208. package/index231.js +1 -1
  209. package/index231.mjs +11 -203
  210. package/index232.js +1 -1
  211. package/index232.mjs +190 -51
  212. package/index233.js +1 -1
  213. package/index233.mjs +51 -130
  214. package/index234.js +1 -1
  215. package/index234.mjs +130 -111
  216. package/index235.js +1 -1
  217. package/index235.mjs +105 -205
  218. package/index236.js +1 -1
  219. package/index236.mjs +203 -169
  220. package/index237.js +1 -1
  221. package/index237.mjs +182 -61
  222. package/index238.js +1 -1
  223. package/index238.mjs +60 -270
  224. package/index239.js +1 -1
  225. package/index239.mjs +270 -89
  226. package/index24.js +1 -1
  227. package/index24.mjs +1 -1
  228. package/index240.js +1 -1
  229. package/index240.mjs +92 -182
  230. package/index241.js +1 -1
  231. package/index241.mjs +182 -78
  232. package/index242.js +1 -1
  233. package/index242.mjs +75 -49
  234. package/index243.js +1 -1
  235. package/index243.mjs +49 -117
  236. package/index244.js +1 -1
  237. package/index244.mjs +118 -108
  238. package/index245.js +1 -1
  239. package/index245.mjs +106 -112
  240. package/index246.js +1 -1
  241. package/index246.mjs +113 -63
  242. package/index247.js +1 -1
  243. package/index247.mjs +70 -108
  244. package/index248.js +1 -1
  245. package/index248.mjs +108 -50
  246. package/index249.js +1 -1
  247. package/index249.mjs +34 -75
  248. package/index25.js +1 -1
  249. package/index25.mjs +3 -3
  250. package/index250.js +1 -1
  251. package/index250.mjs +71 -48
  252. package/index251.js +1 -1
  253. package/index251.mjs +57 -43
  254. package/index252.js +1 -1
  255. package/index252.mjs +43 -86
  256. package/index253.js +1 -5
  257. package/index253.mjs +81 -62
  258. package/index254.js +5 -1
  259. package/index254.mjs +72 -2017
  260. package/index255.js +1 -1
  261. package/index255.mjs +2020 -54
  262. package/index256.js +1 -1
  263. package/index256.mjs +57 -186
  264. package/index257.js +1 -1
  265. package/index257.mjs +188 -5
  266. package/index258.js +1 -1
  267. package/index258.mjs +5 -121
  268. package/index259.js +1 -1
  269. package/index259.mjs +121 -43
  270. package/index26.js +1 -1
  271. package/index26.mjs +1 -1
  272. package/index260.js +1 -1
  273. package/index260.mjs +43 -230
  274. package/index261.js +1 -1
  275. package/index261.mjs +226 -27
  276. package/index262.js +1 -1
  277. package/index262.mjs +31 -3
  278. package/index263.js +1 -1
  279. package/index263.mjs +3 -4
  280. package/index264.js +1 -1
  281. package/index264.mjs +5 -5
  282. package/index265.js +1 -1
  283. package/index265.mjs +1 -1
  284. package/index266.js +1 -1
  285. package/index266.mjs +4 -4
  286. package/index267.js +1 -1
  287. package/index267.mjs +1 -1
  288. package/index268.js +1 -1
  289. package/index268.mjs +1 -1
  290. package/index269.js +1 -1
  291. package/index269.mjs +4 -4
  292. package/index27.js +1 -1
  293. package/index27.mjs +1 -1
  294. package/index270.js +1 -1
  295. package/index270.mjs +4 -4
  296. package/index271.js +1 -1
  297. package/index271.mjs +1 -1
  298. package/index272.js +1 -1
  299. package/index272.mjs +4 -4
  300. package/index273.js +1 -1
  301. package/index273.mjs +4 -4
  302. package/index274.js +1 -1
  303. package/index274.mjs +1 -1
  304. package/index275.js +1 -1
  305. package/index275.mjs +4 -4
  306. package/index276.js +1 -1
  307. package/index276.mjs +4 -4
  308. package/index277.js +1 -1
  309. package/index277.mjs +1 -1
  310. package/index278.js +1 -1
  311. package/index278.mjs +1 -1
  312. package/index279.js +1 -1
  313. package/index279.mjs +4 -4
  314. package/index280.js +1 -1
  315. package/index280.mjs +4 -4
  316. package/index281.js +1 -1
  317. package/index281.mjs +1 -1
  318. package/index282.js +1 -1
  319. package/index282.mjs +4 -4
  320. package/index283.js +1 -1
  321. package/index283.mjs +4 -4
  322. package/index284.js +1 -1
  323. package/index284.mjs +4 -4
  324. package/index285.js +1 -1
  325. package/index285.mjs +1 -1
  326. package/index286.js +1 -1
  327. package/index286.mjs +4 -4
  328. package/index287.js +1 -1
  329. package/index287.mjs +4 -4
  330. package/index288.js +1 -1
  331. package/index288.mjs +4 -4
  332. package/index289.js +1 -1
  333. package/index289.mjs +4 -4
  334. package/index29.js +1 -1
  335. package/index29.mjs +3 -3
  336. package/index290.js +1 -1
  337. package/index290.mjs +4 -4
  338. package/index291.js +1 -1
  339. package/index291.mjs +1 -1
  340. package/index292.js +1 -1
  341. package/index292.mjs +1 -1
  342. package/index293.js +1 -1
  343. package/index293.mjs +1 -1
  344. package/index294.js +1 -1
  345. package/index294.mjs +4 -4
  346. package/index295.js +1 -1
  347. package/index295.mjs +4 -4
  348. package/index296.js +1 -1
  349. package/index296.mjs +4 -4
  350. package/index297.js +1 -1
  351. package/index297.mjs +4 -4
  352. package/index298.js +1 -1
  353. package/index298.mjs +4 -130
  354. package/index299.js +1 -1
  355. package/index299.mjs +123 -183
  356. package/index30.js +1 -1
  357. package/index30.mjs +3 -3
  358. package/index300.js +1 -1
  359. package/index300.mjs +189 -8
  360. package/index301.js +1 -1
  361. package/index301.mjs +9 -3
  362. package/index302.js +1 -1
  363. package/index302.mjs +3 -36
  364. package/index303.js +1 -1
  365. package/index303.mjs +36 -5
  366. package/index304.js +1 -1
  367. package/index304.mjs +5 -29
  368. package/index305.js +1 -1
  369. package/index305.mjs +29 -6
  370. package/index306.js +1 -1
  371. package/index306.mjs +6 -62
  372. package/index307.js +1 -1
  373. package/index307.mjs +63 -7
  374. package/index308.js +1 -1
  375. package/index308.mjs +25 -23
  376. package/index309.js +1 -1
  377. package/index309.mjs +7 -93
  378. package/index31.js +1 -1
  379. package/index31.mjs +3 -3
  380. package/index310.js +1 -1
  381. package/index310.mjs +24 -6
  382. package/index311.js +1 -1
  383. package/index311.mjs +90 -23
  384. package/index312.js +1 -1
  385. package/index312.mjs +8 -32
  386. package/index313.js +1 -1
  387. package/index313.mjs +25 -6
  388. package/index314.js +1 -1
  389. package/index314.mjs +33 -6
  390. package/index315.js +1 -1
  391. package/index315.mjs +6 -50
  392. package/index316.js +1 -1
  393. package/index316.mjs +6 -29
  394. package/index317.js +1 -1
  395. package/index317.mjs +50 -14
  396. package/index318.js +1 -1
  397. package/index318.mjs +14 -21
  398. package/index319.js +1 -1
  399. package/index319.mjs +20 -28
  400. package/index320.js +1 -1
  401. package/index320.mjs +27 -64
  402. package/index321.js +1 -1
  403. package/index321.mjs +66 -53
  404. package/index322.js +1 -1
  405. package/index322.mjs +53 -54
  406. package/index323.js +1 -1
  407. package/index323.mjs +54 -281
  408. package/index324.js +1 -1
  409. package/index324.mjs +281 -20
  410. package/index325.js +1 -1
  411. package/index325.mjs +20 -3
  412. package/index326.js +1 -1
  413. package/index326.mjs +3 -4
  414. package/index327.js +1 -1
  415. package/index327.mjs +4 -8
  416. package/index328.js +1 -1
  417. package/index328.mjs +7 -4
  418. package/index329.js +1 -1
  419. package/index329.mjs +164 -27
  420. package/index33.js +1 -1
  421. package/index33.mjs +1 -1
  422. package/index330.js +1 -1
  423. package/index330.mjs +27 -164
  424. package/index331.js +1 -0
  425. package/index331.mjs +8 -0
  426. package/index35.js +1 -1
  427. package/index35.mjs +2 -2
  428. package/index36.js +1 -1
  429. package/index36.mjs +1 -1
  430. package/index39.js +1 -1
  431. package/index39.mjs +1 -1
  432. package/index43.js +1 -1
  433. package/index43.mjs +1 -1
  434. package/index45.js +1 -1
  435. package/index45.mjs +3 -3
  436. package/index47.js +1 -1
  437. package/index47.mjs +2 -2
  438. package/index48.js +1 -1
  439. package/index48.mjs +1 -1
  440. package/index49.js +1 -1
  441. package/index49.mjs +81 -82
  442. package/index51.js +1 -1
  443. package/index51.mjs +1 -1
  444. package/index95.js +1 -1
  445. package/index95.mjs +1 -1
  446. package/package.json +1 -1
package/index213.mjs CHANGED
@@ -1,32 +1,128 @@
1
- import { CalendarDate as n } from "./index204.mjs";
2
- import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index208.mjs";
3
- const o = -543;
4
- class u extends s {
5
- fromJulianDay(e) {
6
- let r = super.fromJulianDay(e), d = $(r.era, r.year);
7
- return new n(this, d - o, r.month, r.day);
1
+ import { CalendarDate as $ } from "./index205.mjs";
2
+ import { GregorianCalendar as c } from "./index209.mjs";
3
+ const f = [
4
+ [
5
+ 1868,
6
+ 9,
7
+ 8
8
+ ],
9
+ [
10
+ 1912,
11
+ 7,
12
+ 30
13
+ ],
14
+ [
15
+ 1926,
16
+ 12,
17
+ 25
18
+ ],
19
+ [
20
+ 1989,
21
+ 1,
22
+ 8
23
+ ],
24
+ [
25
+ 2019,
26
+ 5,
27
+ 1
28
+ ]
29
+ ], D = [
30
+ [
31
+ 1912,
32
+ 7,
33
+ 29
34
+ ],
35
+ [
36
+ 1926,
37
+ 12,
38
+ 24
39
+ ],
40
+ [
41
+ 1989,
42
+ 1,
43
+ 7
44
+ ],
45
+ [
46
+ 2019,
47
+ 4,
48
+ 30
49
+ ]
50
+ ], u = [
51
+ 1867,
52
+ 1911,
53
+ 1925,
54
+ 1988,
55
+ 2018
56
+ ], i = [
57
+ "meiji",
58
+ "taisho",
59
+ "showa",
60
+ "heisei",
61
+ "reiwa"
62
+ ];
63
+ function h(e) {
64
+ const r = f.findIndex(([n, a, t]) => e.year < n || e.year === n && e.month < a || e.year === n && e.month === a && e.day < t);
65
+ return r === -1 ? f.length - 1 : r === 0 ? 0 : r - 1;
66
+ }
67
+ function s(e) {
68
+ let r = u[i.indexOf(e.era)];
69
+ if (!r) throw new Error("Unknown era: " + e.era);
70
+ return new $(e.year + r, e.month, e.day);
71
+ }
72
+ class g extends c {
73
+ fromJulianDay(r) {
74
+ let n = super.fromJulianDay(r), a = h(n);
75
+ return new $(this, i[a], n.year - u[a], n.month, n.day);
76
+ }
77
+ toJulianDay(r) {
78
+ return super.toJulianDay(s(r));
79
+ }
80
+ balanceDate(r) {
81
+ let n = s(r), a = h(n);
82
+ i[a] !== r.era && (r.era = i[a], r.year = n.year - u[a]), this.constrainDate(r);
8
83
  }
9
- toJulianDay(e) {
10
- return super.toJulianDay(t(e));
84
+ constrainDate(r) {
85
+ let n = i.indexOf(r.era), a = D[n];
86
+ if (a != null) {
87
+ let [t, o, y] = a, m = t - u[n];
88
+ r.year = Math.max(1, Math.min(m, r.year)), r.year === m && (r.month = Math.min(o, r.month), r.month === o && (r.day = Math.min(y, r.day)));
89
+ }
90
+ if (r.year === 1 && n >= 0) {
91
+ let [, t, o] = f[n];
92
+ r.month = Math.max(t, r.month), r.month === t && (r.day = Math.max(o, r.day));
93
+ }
11
94
  }
12
95
  getEras() {
13
- return [
14
- "BE"
15
- ];
96
+ return i;
16
97
  }
17
- getDaysInMonth(e) {
18
- return super.getDaysInMonth(t(e));
98
+ getYearsInEra(r) {
99
+ let n = i.indexOf(r.era), a = f[n], t = f[n + 1];
100
+ if (t == null)
101
+ return 9999 - a[0] + 1;
102
+ let o = t[0] - a[0];
103
+ return (r.month < t[1] || r.month === t[1] && r.day < t[2]) && o++, o;
19
104
  }
20
- balanceDate() {
105
+ getDaysInMonth(r) {
106
+ return super.getDaysInMonth(s(r));
21
107
  }
22
- constructor(...e) {
23
- super(...e), this.identifier = "buddhist";
108
+ getMinimumMonthInYear(r) {
109
+ let n = l(r);
110
+ return n ? n[1] : 1;
111
+ }
112
+ getMinimumDayInMonth(r) {
113
+ let n = l(r);
114
+ return n && r.month === n[1] ? n[2] : 1;
115
+ }
116
+ constructor(...r) {
117
+ super(...r), this.identifier = "japanese";
24
118
  }
25
119
  }
26
- function t(a) {
27
- let [e, r] = c(a.year + o);
28
- return new n(e, r, a.month, a.day);
120
+ function l(e) {
121
+ if (e.year === 1) {
122
+ let r = i.indexOf(e.era);
123
+ return f[r];
124
+ }
29
125
  }
30
126
  export {
31
- u as BuddhistCalendar
127
+ g as JapaneseCalendar
32
128
  };
package/index214.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index204.js"),o=require("./index208.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index205.js"),t=require("./index209.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
package/index214.mjs CHANGED
@@ -1,54 +1,32 @@
1
- import { CalendarDate as f } from "./index204.mjs";
2
- import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index208.mjs";
3
- const n = 1911;
4
- function i(r) {
5
- return r.era === "minguo" ? r.year + n : 1 - r.year + n;
6
- }
7
- function o(r) {
8
- let e = r - n;
9
- return e > 0 ? [
10
- "minguo",
11
- e
12
- ] : [
13
- "before_minguo",
14
- 1 - e
15
- ];
16
- }
17
- class m extends c {
1
+ import { CalendarDate as n } from "./index205.mjs";
2
+ import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index209.mjs";
3
+ const o = -543;
4
+ class u extends s {
18
5
  fromJulianDay(e) {
19
- let a = super.fromJulianDay(e), t = s(a.era, a.year), [u, $] = o(t);
20
- return new f(this, u, $, a.month, a.day);
6
+ let r = super.fromJulianDay(e), d = $(r.era, r.year);
7
+ return new n(this, d - o, r.month, r.day);
21
8
  }
22
9
  toJulianDay(e) {
23
- return super.toJulianDay(b(e));
10
+ return super.toJulianDay(t(e));
24
11
  }
25
12
  getEras() {
26
13
  return [
27
- "before_minguo",
28
- "minguo"
14
+ "BE"
29
15
  ];
30
16
  }
31
- balanceDate(e) {
32
- let [a, t] = o(i(e));
33
- e.era = a, e.year = t;
34
- }
35
- isInverseEra(e) {
36
- return e.era === "before_minguo";
37
- }
38
17
  getDaysInMonth(e) {
39
- return super.getDaysInMonth(b(e));
18
+ return super.getDaysInMonth(t(e));
40
19
  }
41
- getYearsInEra(e) {
42
- return e.era === "before_minguo" ? 9999 : 9999 - n;
20
+ balanceDate() {
43
21
  }
44
22
  constructor(...e) {
45
- super(...e), this.identifier = "roc";
23
+ super(...e), this.identifier = "buddhist";
46
24
  }
47
25
  }
48
- function b(r) {
49
- let [e, a] = g(i(r));
50
- return new f(e, a, r.month, r.day);
26
+ function t(a) {
27
+ let [e, r] = c(a.year + o);
28
+ return new n(e, r, a.month, a.day);
51
29
  }
52
30
  export {
53
- m as TaiwanCalendar
31
+ u as BuddhistCalendar
54
32
  };
package/index215.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index204.js"),u=require("./index211.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index205.js"),o=require("./index209.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
package/index215.mjs CHANGED
@@ -1,47 +1,54 @@
1
- import { CalendarDate as i } from "./index204.mjs";
2
- import { mod as c } from "./index211.mjs";
3
- const n = 1948320, f = [
4
- 0,
5
- 31,
6
- 62,
7
- 93,
8
- 124,
9
- 155,
10
- 186,
11
- 216,
12
- 246,
13
- 276,
14
- 306,
15
- 336
16
- // Esfand
17
- ];
18
- class u {
1
+ import { CalendarDate as f } from "./index205.mjs";
2
+ import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index209.mjs";
3
+ const n = 1911;
4
+ function i(r) {
5
+ return r.era === "minguo" ? r.year + n : 1 - r.year + n;
6
+ }
7
+ function o(r) {
8
+ let e = r - n;
9
+ return e > 0 ? [
10
+ "minguo",
11
+ e
12
+ ] : [
13
+ "before_minguo",
14
+ 1 - e
15
+ ];
16
+ }
17
+ class m extends c {
19
18
  fromJulianDay(e) {
20
- let r = e - n, t = 1 + Math.floor((33 * r + 3) / 12053), s = 365 * (t - 1) + Math.floor((8 * t + 21) / 33), a = r - s, o = a < 216 ? Math.floor(a / 31) : Math.floor((a - 6) / 30), l = a - f[o] + 1;
21
- return new i(this, t, o + 1, l);
19
+ let a = super.fromJulianDay(e), t = s(a.era, a.year), [u, $] = o(t);
20
+ return new f(this, u, $, a.month, a.day);
22
21
  }
23
22
  toJulianDay(e) {
24
- let r = n - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
25
- return r += f[e.month - 1], r += e.day, r;
26
- }
27
- getMonthsInYear() {
28
- return 12;
29
- }
30
- getDaysInMonth(e) {
31
- return e.month <= 6 ? 31 : e.month <= 11 || c(25 * e.year + 11, 33) < 8 ? 30 : 29;
23
+ return super.toJulianDay(b(e));
32
24
  }
33
25
  getEras() {
34
26
  return [
35
- "AP"
27
+ "before_minguo",
28
+ "minguo"
36
29
  ];
37
30
  }
38
- getYearsInEra() {
39
- return 9377;
31
+ balanceDate(e) {
32
+ let [a, t] = o(i(e));
33
+ e.era = a, e.year = t;
40
34
  }
41
- constructor() {
42
- this.identifier = "persian";
35
+ isInverseEra(e) {
36
+ return e.era === "before_minguo";
43
37
  }
38
+ getDaysInMonth(e) {
39
+ return super.getDaysInMonth(b(e));
40
+ }
41
+ getYearsInEra(e) {
42
+ return e.era === "before_minguo" ? 9999 : 9999 - n;
43
+ }
44
+ constructor(...e) {
45
+ super(...e), this.identifier = "roc";
46
+ }
47
+ }
48
+ function b(r) {
49
+ let [e, a] = g(i(r));
50
+ return new f(e, a, r.month, r.day);
44
51
  }
45
52
  export {
46
- u as PersianCalendar
53
+ m as TaiwanCalendar
47
54
  };
package/index216.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index204.js"),t=require("./index208.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index205.js"),u=require("./index212.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
package/index216.mjs CHANGED
@@ -1,40 +1,47 @@
1
- import { CalendarDate as c } from "./index204.mjs";
2
- import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index208.mjs";
3
- const $ = 78, b = 80;
4
- class p extends y {
1
+ import { CalendarDate as i } from "./index205.mjs";
2
+ import { mod as c } from "./index212.mjs";
3
+ const n = 1948320, f = [
4
+ 0,
5
+ 31,
6
+ 62,
7
+ 93,
8
+ 124,
9
+ 155,
10
+ 186,
11
+ 216,
12
+ 246,
13
+ 276,
14
+ 306,
15
+ 336
16
+ // Esfand
17
+ ];
18
+ class u {
5
19
  fromJulianDay(e) {
6
- let t = super.fromJulianDay(e), i = t.year - $, r = e - f(t.era, t.year, 1, 1), n;
7
- r < b ? (i--, n = s(t.year - 1) ? 31 : 30, r += n + 155 + 90 + 10) : (n = s(t.year) ? 31 : 30, r -= b);
8
- let a, l;
9
- if (r < n)
10
- a = 1, l = r + 1;
11
- else {
12
- let o = r - n;
13
- o < 155 ? (a = Math.floor(o / 31) + 2, l = o % 31 + 1) : (o -= 155, a = Math.floor(o / 30) + 7, l = o % 30 + 1);
14
- }
15
- return new c(this, i, a, l);
20
+ let r = e - n, t = 1 + Math.floor((33 * r + 3) / 12053), s = 365 * (t - 1) + Math.floor((8 * t + 21) / 33), a = r - s, o = a < 216 ? Math.floor(a / 31) : Math.floor((a - 6) / 30), l = a - f[o] + 1;
21
+ return new i(this, t, o + 1, l);
16
22
  }
17
23
  toJulianDay(e) {
18
- let t = e.year + $, [i, r] = d(t), n, a;
19
- return s(r) ? (n = 31, a = f(i, r, 3, 21)) : (n = 30, a = f(i, r, 3, 22)), e.month === 1 ? a + e.day - 1 : (a += n + Math.min(e.month - 2, 5) * 31, e.month >= 8 && (a += (e.month - 7) * 30), a += e.day - 1, a);
24
+ let r = n - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
25
+ return r += f[e.month - 1], r += e.day, r;
20
26
  }
21
- getDaysInMonth(e) {
22
- return e.month === 1 && s(e.year + $) || e.month >= 2 && e.month <= 6 ? 31 : 30;
27
+ getMonthsInYear() {
28
+ return 12;
23
29
  }
24
- getYearsInEra() {
25
- return 9919;
30
+ getDaysInMonth(e) {
31
+ return e.month <= 6 ? 31 : e.month <= 11 || c(25 * e.year + 11, 33) < 8 ? 30 : 29;
26
32
  }
27
33
  getEras() {
28
34
  return [
29
- "saka"
35
+ "AP"
30
36
  ];
31
37
  }
32
- balanceDate() {
38
+ getYearsInEra() {
39
+ return 9377;
33
40
  }
34
- constructor(...e) {
35
- super(...e), this.identifier = "indian";
41
+ constructor() {
42
+ this.identifier = "persian";
36
43
  }
37
44
  }
38
45
  export {
39
- p as IndianCalendar
46
+ u as PersianCalendar
40
47
  };
package/index217.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index204.js"),d=1948440,U=1948439,n=1300,u=1600,h=460322;function $(a,e,r,t){return t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+a-1}function p(a,e,r){let t=Math.floor((30*(r-e)+10646)/10631),C=Math.min(12,Math.ceil((r-(29+$(e,t,1,1)))/29.5)+1),l=r-$(e,t,C,1)+1;return new B.CalendarDate(a,t,C,l)}function b(a){return(14+11*a)%30<11}class Q{fromJulianDay(e){return p(this,d,e)}toJulianDay(e){return $(d,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&b(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return b(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w extends Q{fromJulianDay(e){return p(this,U,e)}toJulianDay(e){return $(U,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const J="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let y,s;function g(a){return h+s[a-n]}function f(a,e){let r=a-n,t=1<<11-(e-1);return y[r]&t?30:29}function m(a,e){let r=g(a);for(let t=1;t<e;t++)r+=f(a,t);return r}function D(a){return s[a+1-n]-s[a-n]}class q extends Q{fromJulianDay(e){let r=e-d,t=g(n),C=g(u);if(r<t||r>C)return super.fromJulianDay(e);{let l=n-1,i=1,o=1;for(;o>0;){l++,o=r-g(l)+1;let c=D(l);if(o===c){i=12;break}else if(o<c){let A=f(l,i);for(i=1;o>A;)o-=A,i++,A=f(l,i);break}}return new B.CalendarDate(this,l,i,r-m(l,i)+1)}}toJulianDay(e){return e.year<n||e.year>u?super.toJulianDay(e):d+m(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<n||e.year>u?super.getDaysInMonth(e):f(e.year,e.month)}getDaysInYear(e){return e.year<n||e.year>u?super.getDaysInYear(e):D(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",y||(y=new Uint16Array(Uint8Array.from(atob(J),e=>e.charCodeAt(0)).buffer)),!s){s=new Uint32Array(u-n+1);let e=0;for(let r=n;r<=u;r++){s[r-n]=e;for(let t=1;t<=12;t++)e+=f(r,t)}}}}exports.IslamicCivilCalendar=Q;exports.IslamicTabularCalendar=w;exports.IslamicUmalquraCalendar=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index205.js"),t=require("./index209.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
package/index217.mjs CHANGED
@@ -1,116 +1,40 @@
1
- import { CalendarDate as D } from "./index204.mjs";
2
- const g = 1948440, y = 1948439, n = 1300, f = 1600, h = 460322;
3
- function d(a, e, r, t) {
4
- return t + Math.ceil(29.5 * (r - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + a - 1;
5
- }
6
- function p(a, e, r) {
7
- let t = Math.floor((30 * (r - e) + 10646) / 10631), C = Math.min(12, Math.ceil((r - (29 + d(e, t, 1, 1))) / 29.5) + 1), l = r - d(e, t, C, 1) + 1;
8
- return new D(a, t, C, l);
9
- }
10
- function U(a) {
11
- return (14 + 11 * a) % 30 < 11;
12
- }
13
- class B {
1
+ import { CalendarDate as c } from "./index205.mjs";
2
+ import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index209.mjs";
3
+ const $ = 78, b = 80;
4
+ class p extends y {
14
5
  fromJulianDay(e) {
15
- return p(this, g, e);
6
+ let t = super.fromJulianDay(e), i = t.year - $, r = e - f(t.era, t.year, 1, 1), n;
7
+ r < b ? (i--, n = s(t.year - 1) ? 31 : 30, r += n + 155 + 90 + 10) : (n = s(t.year) ? 31 : 30, r -= b);
8
+ let a, l;
9
+ if (r < n)
10
+ a = 1, l = r + 1;
11
+ else {
12
+ let o = r - n;
13
+ o < 155 ? (a = Math.floor(o / 31) + 2, l = o % 31 + 1) : (o -= 155, a = Math.floor(o / 30) + 7, l = o % 30 + 1);
14
+ }
15
+ return new c(this, i, a, l);
16
16
  }
17
17
  toJulianDay(e) {
18
- return d(g, e.year, e.month, e.day);
18
+ let t = e.year + $, [i, r] = d(t), n, a;
19
+ return s(r) ? (n = 31, a = f(i, r, 3, 21)) : (n = 30, a = f(i, r, 3, 22)), e.month === 1 ? a + e.day - 1 : (a += n + Math.min(e.month - 2, 5) * 31, e.month >= 8 && (a += (e.month - 7) * 30), a += e.day - 1, a);
19
20
  }
20
21
  getDaysInMonth(e) {
21
- let r = 29 + e.month % 2;
22
- return e.month === 12 && U(e.year) && r++, r;
23
- }
24
- getMonthsInYear() {
25
- return 12;
26
- }
27
- getDaysInYear(e) {
28
- return U(e.year) ? 355 : 354;
22
+ return e.month === 1 && s(e.year + $) || e.month >= 2 && e.month <= 6 ? 31 : 30;
29
23
  }
30
24
  getYearsInEra() {
31
- return 9665;
25
+ return 9919;
32
26
  }
33
27
  getEras() {
34
28
  return [
35
- "AH"
29
+ "saka"
36
30
  ];
37
31
  }
38
- constructor() {
39
- this.identifier = "islamic-civil";
40
- }
41
- }
42
- class L extends B {
43
- fromJulianDay(e) {
44
- return p(this, y, e);
45
- }
46
- toJulianDay(e) {
47
- return d(y, e.year, e.month, e.day);
32
+ balanceDate() {
48
33
  }
49
34
  constructor(...e) {
50
- super(...e), this.identifier = "islamic-tbla";
51
- }
52
- }
53
- const w = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
54
- let c, s;
55
- function $(a) {
56
- return h + s[a - n];
57
- }
58
- function u(a, e) {
59
- let r = a - n, t = 1 << 11 - (e - 1);
60
- return c[r] & t ? 30 : 29;
61
- }
62
- function b(a, e) {
63
- let r = $(a);
64
- for (let t = 1; t < e; t++) r += u(a, t);
65
- return r;
66
- }
67
- function m(a) {
68
- return s[a + 1 - n] - s[a - n];
69
- }
70
- class q extends B {
71
- fromJulianDay(e) {
72
- let r = e - g, t = $(n), C = $(f);
73
- if (r < t || r > C) return super.fromJulianDay(e);
74
- {
75
- let l = n - 1, i = 1, o = 1;
76
- for (; o > 0; ) {
77
- l++, o = r - $(l) + 1;
78
- let Q = m(l);
79
- if (o === Q) {
80
- i = 12;
81
- break;
82
- } else if (o < Q) {
83
- let A = u(l, i);
84
- for (i = 1; o > A; )
85
- o -= A, i++, A = u(l, i);
86
- break;
87
- }
88
- }
89
- return new D(this, l, i, r - b(l, i) + 1);
90
- }
91
- }
92
- toJulianDay(e) {
93
- return e.year < n || e.year > f ? super.toJulianDay(e) : g + b(e.year, e.month) + (e.day - 1);
94
- }
95
- getDaysInMonth(e) {
96
- return e.year < n || e.year > f ? super.getDaysInMonth(e) : u(e.year, e.month);
97
- }
98
- getDaysInYear(e) {
99
- return e.year < n || e.year > f ? super.getDaysInYear(e) : m(e.year);
100
- }
101
- constructor() {
102
- if (super(), this.identifier = "islamic-umalqura", c || (c = new Uint16Array(Uint8Array.from(atob(w), (e) => e.charCodeAt(0)).buffer)), !s) {
103
- s = new Uint32Array(f - n + 1);
104
- let e = 0;
105
- for (let r = n; r <= f; r++) {
106
- s[r - n] = e;
107
- for (let t = 1; t <= 12; t++) e += u(r, t);
108
- }
109
- }
35
+ super(...e), this.identifier = "indian";
110
36
  }
111
37
  }
112
38
  export {
113
- B as IslamicCivilCalendar,
114
- L as IslamicTabularCalendar,
115
- q as IslamicUmalquraCalendar
39
+ p as IndianCalendar
116
40
  };
package/index218.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index204.js"),b=require("./index211.js"),y=347997,h=1080,M=24*h,T=29,w=12*h+793,D=T*M+w;function n(e){return b.mod(e*7+1,19)<7}function i(e){let r=Math.floor((235*e-234)/19),t=12084+13753*r,f=r*29+Math.floor(t/25920);return b.mod(3*(f+1),7)<3&&(f+=1),f}function O(e){let r=i(e-1),t=i(e);return i(e+1)-t===356?2:t-r===382?1:0}function c(e){return i(e)+O(e)}function g(e){return c(e+1)-c(e)}function A(e){let r=g(e);switch(r>380&&(r-=30),r){case 353:return 0;case 354:return 1;case 355:return 2}}function u(e,r){if(r>=6&&!n(e)&&r++,r===4||r===7||r===9||r===11||r===13)return 29;let t=A(e);return r===2?t===2?30:29:r===3?t===0?29:30:r===6?n(e)?30:0:30}class H{fromJulianDay(r){let t=r-y,f=t*M/D,a=Math.floor((19*f+234)/235)+1,s=c(a),l=Math.floor(t-s);for(;l<1;)a--,s=c(a),l=Math.floor(t-s);let $=1,o=0;for(;o<l;)o+=u(a,$),$++;$--,o-=u(a,$);let Y=l-o;return new v.CalendarDate(this,a,$,Y)}toJulianDay(r){let t=c(r.year);for(let f=1;f<r.month;f++)t+=u(r.year,f);return t+r.day+y}getDaysInMonth(r){return u(r.year,r.month)}getMonthsInYear(r){return n(r.year)?13:12}getDaysInYear(r){return g(r.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(r,t){t.year!==r.year&&(n(t.year)&&!n(r.year)&&t.month>6?r.month--:!n(t.year)&&n(r.year)&&t.month>6&&r.month++)}constructor(){this.identifier="hebrew"}}exports.HebrewCalendar=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index205.js"),d=1948440,U=1948439,n=1300,u=1600,h=460322;function $(a,e,r,t){return t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+a-1}function p(a,e,r){let t=Math.floor((30*(r-e)+10646)/10631),C=Math.min(12,Math.ceil((r-(29+$(e,t,1,1)))/29.5)+1),l=r-$(e,t,C,1)+1;return new B.CalendarDate(a,t,C,l)}function b(a){return(14+11*a)%30<11}class Q{fromJulianDay(e){return p(this,d,e)}toJulianDay(e){return $(d,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&b(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return b(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w extends Q{fromJulianDay(e){return p(this,U,e)}toJulianDay(e){return $(U,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const J="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let y,s;function g(a){return h+s[a-n]}function f(a,e){let r=a-n,t=1<<11-(e-1);return y[r]&t?30:29}function m(a,e){let r=g(a);for(let t=1;t<e;t++)r+=f(a,t);return r}function D(a){return s[a+1-n]-s[a-n]}class q extends Q{fromJulianDay(e){let r=e-d,t=g(n),C=g(u);if(r<t||r>C)return super.fromJulianDay(e);{let l=n-1,i=1,o=1;for(;o>0;){l++,o=r-g(l)+1;let c=D(l);if(o===c){i=12;break}else if(o<c){let A=f(l,i);for(i=1;o>A;)o-=A,i++,A=f(l,i);break}}return new B.CalendarDate(this,l,i,r-m(l,i)+1)}}toJulianDay(e){return e.year<n||e.year>u?super.toJulianDay(e):d+m(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<n||e.year>u?super.getDaysInMonth(e):f(e.year,e.month)}getDaysInYear(e){return e.year<n||e.year>u?super.getDaysInYear(e):D(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",y||(y=new Uint16Array(Uint8Array.from(atob(J),e=>e.charCodeAt(0)).buffer)),!s){s=new Uint32Array(u-n+1);let e=0;for(let r=n;r<=u;r++){s[r-n]=e;for(let t=1;t<=12;t++)e+=f(r,t)}}}}exports.IslamicCivilCalendar=Q;exports.IslamicTabularCalendar=w;exports.IslamicUmalquraCalendar=q;