mada-design-system 0.0.9 → 0.0.11

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 (786) hide show
  1. package/dga.config.js +560 -0
  2. package/index.cjs.js +1 -1
  3. package/index.cjs10.js +1 -1
  4. package/index.cjs100.js +1 -2
  5. package/index.cjs101.js +1 -2
  6. package/index.cjs102.js +1 -1
  7. package/index.cjs103.js +5 -1
  8. package/index.cjs104.js +1 -1
  9. package/index.cjs105.js +1 -4
  10. package/index.cjs106.js +1 -1
  11. package/index.cjs107.js +1 -2
  12. package/index.cjs108.js +1 -1
  13. package/index.cjs109.js +1 -2
  14. package/index.cjs11.js +1 -1
  15. package/index.cjs110.js +1 -1
  16. package/index.cjs111.js +1 -1
  17. package/index.cjs112.js +1 -1
  18. package/index.cjs113.js +1 -1
  19. package/index.cjs114.js +1 -1
  20. package/index.cjs115.js +1 -1
  21. package/index.cjs116.js +1 -1
  22. package/index.cjs117.js +2 -20
  23. package/index.cjs118.js +1 -1
  24. package/index.cjs119.js +2 -1
  25. package/index.cjs12.js +1 -1
  26. package/index.cjs120.js +1 -1
  27. package/index.cjs121.js +1 -1
  28. package/index.cjs122.js +1 -1
  29. package/index.cjs123.js +1 -1
  30. package/index.cjs124.js +1 -1
  31. package/index.cjs125.js +1 -1
  32. package/index.cjs126.js +1 -1
  33. package/index.cjs127.js +20 -1
  34. package/index.cjs128.js +1 -1
  35. package/index.cjs129.js +1 -1
  36. package/index.cjs13.js +1 -1
  37. package/index.cjs130.js +1 -1
  38. package/index.cjs131.js +1 -1
  39. package/index.cjs132.js +1 -1
  40. package/index.cjs133.js +1 -1
  41. package/index.cjs134.js +1 -1
  42. package/index.cjs135.js +1 -1
  43. package/index.cjs136.js +1 -1
  44. package/index.cjs137.js +1 -1
  45. package/index.cjs138.js +1 -1
  46. package/index.cjs139.js +1 -1
  47. package/index.cjs140.js +1 -1
  48. package/index.cjs141.js +1 -1
  49. package/index.cjs142.js +1 -1
  50. package/index.cjs143.js +1 -1
  51. package/index.cjs144.js +1 -1
  52. package/index.cjs145.js +1 -1
  53. package/index.cjs146.js +1 -1
  54. package/index.cjs147.js +1 -4
  55. package/index.cjs148.js +1 -1
  56. package/index.cjs149.js +1 -1
  57. package/index.cjs15.js +1 -1
  58. package/index.cjs150.js +1 -1
  59. package/index.cjs151.js +1 -1
  60. package/index.cjs152.js +1 -1
  61. package/index.cjs153.js +1 -1
  62. package/index.cjs154.js +1 -1
  63. package/index.cjs155.js +1 -3
  64. package/index.cjs156.js +1 -1
  65. package/index.cjs157.js +1 -1
  66. package/index.cjs158.js +1 -1
  67. package/index.cjs159.js +1 -1
  68. package/index.cjs16.js +1 -1
  69. package/index.cjs160.js +1 -1
  70. package/index.cjs161.js +1 -1
  71. package/index.cjs162.js +1 -1
  72. package/index.cjs163.js +1 -1
  73. package/index.cjs164.js +1 -1
  74. package/index.cjs165.js +1 -1
  75. package/index.cjs166.js +4 -1
  76. package/index.cjs167.js +1 -1
  77. package/index.cjs168.js +1 -1
  78. package/index.cjs169.js +1 -1
  79. package/index.cjs17.js +1 -1
  80. package/index.cjs170.js +1 -1
  81. package/index.cjs171.js +1 -1
  82. package/index.cjs172.js +1 -1
  83. package/index.cjs173.js +1 -1
  84. package/index.cjs174.js +1 -1
  85. package/index.cjs175.js +1 -1
  86. package/index.cjs176.js +1 -1
  87. package/index.cjs177.js +1 -1
  88. package/index.cjs178.js +1 -1
  89. package/index.cjs179.js +1 -1
  90. package/index.cjs18.js +1 -1
  91. package/index.cjs180.js +1 -1
  92. package/index.cjs181.js +1 -1
  93. package/index.cjs182.js +1 -1
  94. package/index.cjs183.js +1 -1
  95. package/index.cjs184.js +1 -1
  96. package/index.cjs185.js +1 -1
  97. package/index.cjs186.js +1 -1
  98. package/index.cjs187.js +1 -1
  99. package/index.cjs188.js +1 -1
  100. package/index.cjs189.js +1 -1
  101. package/index.cjs19.js +1 -1
  102. package/index.cjs190.js +1 -1
  103. package/index.cjs191.js +1 -1
  104. package/index.cjs192.js +1 -1
  105. package/index.cjs193.js +1 -1
  106. package/index.cjs194.js +1 -1
  107. package/index.cjs195.js +3 -2
  108. package/index.cjs196.js +1 -1
  109. package/index.cjs197.js +1 -1
  110. package/index.cjs198.js +1 -1
  111. package/index.cjs199.js +1 -1
  112. package/index.cjs2.js +1 -1
  113. package/index.cjs20.js +1 -1
  114. package/index.cjs200.js +1 -1
  115. package/index.cjs201.js +1 -1
  116. package/index.cjs202.js +1 -1
  117. package/index.cjs203.js +1 -1
  118. package/index.cjs204.js +1 -1
  119. package/index.cjs205.js +1 -1
  120. package/index.cjs206.js +1 -1
  121. package/index.cjs207.js +1 -1
  122. package/index.cjs208.js +1 -1
  123. package/index.cjs209.js +1 -1
  124. package/index.cjs21.js +1 -1
  125. package/index.cjs210.js +1 -1
  126. package/index.cjs211.js +1 -2
  127. package/index.cjs212.js +1 -1
  128. package/index.cjs213.js +1 -1
  129. package/index.cjs214.js +1 -1
  130. package/index.cjs215.js +1 -1
  131. package/index.cjs216.js +1 -1
  132. package/index.cjs217.js +1 -1
  133. package/index.cjs218.js +1 -1
  134. package/index.cjs219.js +1 -1
  135. package/index.cjs22.js +1 -1
  136. package/index.cjs220.js +1 -1
  137. package/index.cjs221.js +1 -1
  138. package/index.cjs222.js +1 -1
  139. package/index.cjs223.js +1 -1
  140. package/index.cjs224.js +1 -1
  141. package/index.cjs225.js +2 -1
  142. package/index.cjs226.js +1 -1
  143. package/index.cjs227.js +1 -1
  144. package/index.cjs228.js +1 -1
  145. package/index.cjs229.js +1 -15
  146. package/index.cjs23.js +1 -1
  147. package/index.cjs230.js +1 -1
  148. package/index.cjs231.js +1 -1
  149. package/index.cjs232.js +1 -1
  150. package/index.cjs233.js +1 -1
  151. package/index.cjs234.js +1 -1
  152. package/index.cjs235.js +1 -1
  153. package/index.cjs236.js +1 -1
  154. package/index.cjs237.js +1 -1
  155. package/index.cjs238.js +1 -1
  156. package/index.cjs239.js +1 -1
  157. package/index.cjs24.js +1 -1
  158. package/index.cjs240.js +1 -1
  159. package/index.cjs241.js +2 -1
  160. package/index.cjs242.js +1 -1
  161. package/index.cjs243.js +1 -1
  162. package/index.cjs244.js +1 -1
  163. package/index.cjs245.js +1 -1
  164. package/index.cjs246.js +1 -1
  165. package/index.cjs247.js +1 -1
  166. package/index.cjs248.js +1 -1
  167. package/index.cjs249.js +1 -1
  168. package/index.cjs25.js +9 -1
  169. package/index.cjs250.js +1 -1
  170. package/index.cjs251.js +1 -3
  171. package/index.cjs252.js +1 -1
  172. package/index.cjs253.js +1 -1
  173. package/index.cjs254.js +1 -1
  174. package/index.cjs255.js +1 -1
  175. package/index.cjs256.js +15 -1
  176. package/index.cjs257.js +1 -1
  177. package/index.cjs258.js +1 -1
  178. package/index.cjs259.js +1 -1
  179. package/index.cjs26.js +1 -2
  180. package/index.cjs260.js +1 -1
  181. package/index.cjs261.js +1 -1
  182. package/index.cjs262.js +1 -1
  183. package/index.cjs263.js +1 -1
  184. package/index.cjs264.js +1 -1
  185. package/index.cjs265.js +1 -1
  186. package/index.cjs266.js +1 -1
  187. package/index.cjs267.js +1 -1
  188. package/index.cjs268.js +1 -1
  189. package/index.cjs269.js +1 -1
  190. package/index.cjs27.js +1 -1
  191. package/index.cjs270.js +1 -1
  192. package/index.cjs271.js +1 -1
  193. package/index.cjs272.js +1 -1
  194. package/index.cjs273.js +1 -1
  195. package/index.cjs274.js +1 -1
  196. package/index.cjs275.js +1 -1
  197. package/index.cjs276.js +1 -1
  198. package/index.cjs277.js +1 -1
  199. package/index.cjs278.js +1 -1
  200. package/index.cjs279.js +1 -1
  201. package/index.cjs28.js +1 -1
  202. package/index.cjs280.js +1 -1
  203. package/index.cjs281.js +1 -1
  204. package/index.cjs282.js +3 -1
  205. package/index.cjs283.js +1 -1
  206. package/index.cjs284.js +1 -1
  207. package/index.cjs285.js +1 -1
  208. package/index.cjs286.js +1 -1
  209. package/index.cjs287.js +1 -1
  210. package/index.cjs288.js +1 -1
  211. package/index.cjs289.js +1 -1
  212. package/index.cjs29.js +1 -1
  213. package/index.cjs290.js +1 -1
  214. package/index.cjs291.js +1 -1
  215. package/index.cjs292.js +1 -1
  216. package/index.cjs293.js +1 -1
  217. package/index.cjs294.js +1 -1
  218. package/index.cjs295.js +1 -1
  219. package/index.cjs296.js +1 -1
  220. package/index.cjs297.js +1 -1
  221. package/index.cjs298.js +1 -1
  222. package/index.cjs299.js +1 -1
  223. package/index.cjs3.js +1 -1
  224. package/index.cjs30.js +1 -1
  225. package/index.cjs300.js +1 -1
  226. package/index.cjs301.js +1 -1
  227. package/index.cjs302.js +1 -1
  228. package/index.cjs303.js +1 -1
  229. package/index.cjs304.js +1 -1
  230. package/index.cjs305.js +1 -1
  231. package/index.cjs306.js +1 -1
  232. package/index.cjs307.js +1 -1
  233. package/index.cjs308.js +1 -1
  234. package/index.cjs309.js +1 -1
  235. package/index.cjs31.js +1 -1
  236. package/index.cjs310.js +1 -1
  237. package/index.cjs311.js +1 -1
  238. package/index.cjs312.js +1 -1
  239. package/index.cjs313.js +1 -1
  240. package/index.cjs314.js +1 -1
  241. package/index.cjs315.js +1 -1
  242. package/index.cjs316.js +1 -1
  243. package/index.cjs317.js +1 -1
  244. package/index.cjs318.js +1 -1
  245. package/index.cjs319.js +1 -1
  246. package/index.cjs32.js +1 -1
  247. package/index.cjs320.js +1 -1
  248. package/index.cjs321.js +1 -1
  249. package/index.cjs322.js +1 -1
  250. package/index.cjs323.js +1 -1
  251. package/index.cjs324.js +1 -2
  252. package/index.cjs325.js +1 -1
  253. package/index.cjs326.js +1 -1
  254. package/index.cjs327.js +1 -1
  255. package/index.cjs328.js +1 -1
  256. package/index.cjs329.js +1 -1
  257. package/index.cjs33.js +1 -1
  258. package/index.cjs330.js +1 -1
  259. package/index.cjs331.js +1 -1
  260. package/index.cjs332.js +1 -1
  261. package/index.cjs333.js +1 -1
  262. package/index.cjs334.js +1 -1
  263. package/index.cjs335.js +1 -1
  264. package/index.cjs336.js +1 -1
  265. package/index.cjs337.js +1 -1
  266. package/index.cjs338.js +1 -1
  267. package/index.cjs339.js +1 -1
  268. package/index.cjs34.js +1 -1
  269. package/index.cjs340.js +1 -74
  270. package/index.cjs341.js +1 -1
  271. package/index.cjs342.js +1 -1
  272. package/index.cjs343.js +1 -1
  273. package/index.cjs344.js +1 -1
  274. package/index.cjs345.js +1 -1
  275. package/index.cjs346.js +1 -1
  276. package/index.cjs347.js +1 -1
  277. package/index.cjs348.js +1 -1
  278. package/index.cjs349.js +1 -1
  279. package/index.cjs35.js +5 -1
  280. package/index.cjs350.js +1 -1
  281. package/index.cjs351.js +1 -1
  282. package/index.cjs352.js +1 -1
  283. package/index.cjs353.js +1 -1
  284. package/index.cjs354.js +1 -1
  285. package/index.cjs355.js +1 -1
  286. package/index.cjs356.js +1 -1
  287. package/index.cjs357.js +2 -1
  288. package/index.cjs358.js +1 -1
  289. package/index.cjs359.js +1 -1
  290. package/index.cjs36.js +1 -1
  291. package/index.cjs360.js +1 -1
  292. package/index.cjs361.js +1 -1
  293. package/index.cjs362.js +1 -1
  294. package/index.cjs363.js +1 -1
  295. package/index.cjs364.js +1 -1
  296. package/index.cjs365.js +1 -1
  297. package/index.cjs366.js +1 -0
  298. package/index.cjs367.js +1 -0
  299. package/index.cjs368.js +74 -0
  300. package/index.cjs369.js +1 -0
  301. package/index.cjs37.js +1 -1
  302. package/index.cjs370.js +1 -0
  303. package/index.cjs371.js +1 -0
  304. package/index.cjs372.js +1 -0
  305. package/index.cjs373.js +1 -0
  306. package/index.cjs374.js +1 -0
  307. package/index.cjs375.js +1 -0
  308. package/index.cjs376.js +1 -0
  309. package/index.cjs377.js +1 -0
  310. package/index.cjs378.js +1 -0
  311. package/index.cjs379.js +1 -0
  312. package/index.cjs38.js +1 -1
  313. package/index.cjs380.js +1 -0
  314. package/index.cjs381.js +1 -0
  315. package/index.cjs382.js +1 -0
  316. package/index.cjs383.js +1 -0
  317. package/index.cjs384.js +1 -0
  318. package/index.cjs385.js +1 -0
  319. package/index.cjs386.js +1 -0
  320. package/index.cjs387.js +1 -0
  321. package/index.cjs388.js +1 -0
  322. package/index.cjs389.js +1 -0
  323. package/index.cjs39.js +1 -1
  324. package/index.cjs390.js +1 -0
  325. package/index.cjs391.js +1 -0
  326. package/index.cjs392.js +1 -0
  327. package/index.cjs4.js +1 -1
  328. package/index.cjs40.js +1 -1
  329. package/index.cjs41.js +6 -1
  330. package/index.cjs42.js +1 -1
  331. package/index.cjs43.js +1 -1
  332. package/index.cjs44.js +1 -1
  333. package/index.cjs45.js +1 -4
  334. package/index.cjs46.js +9 -1
  335. package/index.cjs47.js +1 -1
  336. package/index.cjs48.js +7 -1
  337. package/index.cjs49.js +1 -1
  338. package/index.cjs5.js +1 -1
  339. package/index.cjs50.js +1 -1
  340. package/index.cjs51.js +1 -1
  341. package/index.cjs52.js +7 -1
  342. package/index.cjs53.js +1 -1
  343. package/index.cjs54.js +1 -1
  344. package/index.cjs55.js +6 -1
  345. package/index.cjs56.js +1 -4
  346. package/index.cjs57.js +1 -1
  347. package/index.cjs58.js +1 -1
  348. package/index.cjs59.js +1 -1
  349. package/index.cjs6.js +1 -1
  350. package/index.cjs60.js +1 -4
  351. package/index.cjs61.js +11 -1
  352. package/index.cjs62.js +1 -1
  353. package/index.cjs63.js +1 -1
  354. package/index.cjs64.js +5 -1
  355. package/index.cjs65.js +11 -1
  356. package/index.cjs66.js +1 -1
  357. package/index.cjs67.js +33 -1
  358. package/index.cjs68.js +1 -1
  359. package/index.cjs69.js +1 -1
  360. package/index.cjs7.js +1 -1
  361. package/index.cjs70.js +1 -1
  362. package/index.cjs71.js +1 -1
  363. package/index.cjs72.js +1 -1
  364. package/index.cjs73.js +1 -1
  365. package/index.cjs74.js +1 -1
  366. package/index.cjs75.js +1 -1
  367. package/index.cjs76.js +1 -1
  368. package/index.cjs77.js +1 -1
  369. package/index.cjs78.js +1 -1
  370. package/index.cjs79.js +1 -1
  371. package/index.cjs8.js +1 -1
  372. package/index.cjs80.js +1 -1
  373. package/index.cjs81.js +1 -1
  374. package/index.cjs82.js +1 -1
  375. package/index.cjs83.js +1 -1
  376. package/index.cjs84.js +1 -1
  377. package/index.cjs85.js +1 -1
  378. package/index.cjs86.js +1 -1
  379. package/index.cjs87.js +1 -1
  380. package/index.cjs88.js +1 -1
  381. package/index.cjs89.js +1 -1
  382. package/index.cjs9.js +2 -2
  383. package/index.cjs90.js +1 -5
  384. package/index.cjs91.js +1 -1
  385. package/index.cjs92.js +1 -1
  386. package/index.cjs93.js +4 -1
  387. package/index.cjs94.js +1 -1
  388. package/index.cjs95.js +1 -1
  389. package/index.cjs96.js +1 -1
  390. package/index.cjs97.js +1 -1
  391. package/index.cjs98.js +1 -1
  392. package/index.cjs99.js +1 -1
  393. package/index.es.d.ts +466 -103
  394. package/index.es.js +360 -321
  395. package/index.es10.js +91 -75
  396. package/index.es100.js +24 -5299
  397. package/index.es101.js +1694 -100
  398. package/index.es102.js +35 -11
  399. package/index.es103.js +2596 -11
  400. package/index.es104.js +321 -10
  401. package/index.es105.js +9 -2567
  402. package/index.es106.js +12 -142
  403. package/index.es107.js +11 -117
  404. package/index.es108.js +8 -137
  405. package/index.es109.js +32 -222
  406. package/index.es11.js +6 -6
  407. package/index.es110.js +38 -516
  408. package/index.es111.js +5 -5
  409. package/index.es112.js +11 -310
  410. package/index.es113.js +5 -5
  411. package/index.es114.js +4 -4
  412. package/index.es115.js +5 -5
  413. package/index.es116.js +142 -12
  414. package/index.es117.js +115 -203
  415. package/index.es118.js +137 -11
  416. package/index.es119.js +223 -11
  417. package/index.es12.js +69 -87
  418. package/index.es120.js +516 -11
  419. package/index.es121.js +309 -21
  420. package/index.es122.js +4 -4
  421. package/index.es123.js +5 -5
  422. package/index.es124.js +11 -12
  423. package/index.es125.js +5 -5
  424. package/index.es126.js +11 -2323
  425. package/index.es127.js +199 -2146
  426. package/index.es128.js +11 -2
  427. package/index.es129.js +5 -11
  428. package/index.es13.js +5 -5
  429. package/index.es130.js +10 -470
  430. package/index.es131.js +10 -138
  431. package/index.es132.js +11 -6
  432. package/index.es133.js +11 -233
  433. package/index.es134.js +11 -54
  434. package/index.es135.js +11 -6
  435. package/index.es136.js +11 -2
  436. package/index.es137.js +4 -3
  437. package/index.es138.js +2 -31
  438. package/index.es139.js +2 -12
  439. package/index.es140.js +2 -2
  440. package/index.es141.js +2 -2
  441. package/index.es142.js +2 -18
  442. package/index.es143.js +10 -13
  443. package/index.es144.js +11 -8
  444. package/index.es145.js +11 -50
  445. package/index.es146.js +11 -2
  446. package/index.es147.js +11 -2261
  447. package/index.es148.js +11 -4
  448. package/index.es149.js +11 -8
  449. package/index.es15.js +182 -74
  450. package/index.es150.js +11 -7
  451. package/index.es151.js +9 -9
  452. package/index.es152.js +10 -12
  453. package/index.es153.js +22 -13
  454. package/index.es154.js +10 -105
  455. package/index.es155.js +11 -25
  456. package/index.es156.js +11 -50
  457. package/index.es157.js +10 -370
  458. package/index.es158.js +11 -62
  459. package/index.es159.js +10 -47
  460. package/index.es16.js +49 -185
  461. package/index.es160.js +11 -6
  462. package/index.es161.js +11 -5
  463. package/index.es162.js +137 -45
  464. package/index.es163.js +6 -22
  465. package/index.es164.js +6 -6
  466. package/index.es165.js +2 -10
  467. package/index.es166.js +2261 -11
  468. package/index.es167.js +47 -14
  469. package/index.es168.js +229 -226
  470. package/index.es169.js +53 -24
  471. package/index.es17.js +68 -41
  472. package/index.es170.js +3 -14
  473. package/index.es171.js +447 -276
  474. package/index.es172.js +3 -261
  475. package/index.es173.js +2 -17
  476. package/index.es174.js +12 -14
  477. package/index.es175.js +24 -20
  478. package/index.es176.js +10 -7
  479. package/index.es177.js +39 -5
  480. package/index.es178.js +2000 -5
  481. package/index.es179.js +7 -5
  482. package/index.es18.js +52 -68
  483. package/index.es180.js +72 -2
  484. package/index.es181.js +23 -56
  485. package/index.es182.js +31 -57
  486. package/index.es183.js +12 -4
  487. package/index.es184.js +36 -2
  488. package/index.es185.js +97 -12
  489. package/index.es186.js +23 -22
  490. package/index.es187.js +37 -9
  491. package/index.es188.js +17 -38
  492. package/index.es189.js +13 -1999
  493. package/index.es19.js +21 -51
  494. package/index.es190.js +8 -7
  495. package/index.es191.js +10 -71
  496. package/index.es192.js +11 -23
  497. package/index.es193.js +13 -2
  498. package/index.es194.js +106 -8
  499. package/index.es195.js +25 -327
  500. package/index.es196.js +50 -50
  501. package/index.es197.js +370 -29
  502. package/index.es198.js +62 -34
  503. package/index.es199.js +48 -53
  504. package/index.es20.js +128 -22
  505. package/index.es200.js +6 -119
  506. package/index.es201.js +5 -9
  507. package/index.es202.js +47 -163
  508. package/index.es203.js +21 -309
  509. package/index.es204.js +6 -127
  510. package/index.es205.js +10 -180
  511. package/index.es206.js +11 -26
  512. package/index.es207.js +15 -60
  513. package/index.es208.js +230 -5
  514. package/index.es209.js +25 -36
  515. package/index.es21.js +78 -138
  516. package/index.es210.js +11 -25
  517. package/index.es211.js +243 -150
  518. package/index.es212.js +257 -133
  519. package/index.es213.js +17 -2
  520. package/index.es214.js +14 -7
  521. package/index.es215.js +21 -2
  522. package/index.es216.js +7 -97
  523. package/index.es217.js +5 -26
  524. package/index.es218.js +5 -39
  525. package/index.es219.js +5 -2
  526. package/index.es22.js +251 -35
  527. package/index.es220.js +2 -69
  528. package/index.es221.js +55 -82
  529. package/index.es222.js +55 -46
  530. package/index.es223.js +2 -9
  531. package/index.es224.js +7 -4
  532. package/index.es225.js +320 -45
  533. package/index.es226.js +51 -2
  534. package/index.es227.js +30 -60
  535. package/index.es228.js +34 -17
  536. package/index.es229.js +53 -244
  537. package/index.es23.js +12 -171
  538. package/index.es230.js +118 -73
  539. package/index.es231.js +8 -4
  540. package/index.es232.js +162 -57
  541. package/index.es233.js +310 -11
  542. package/index.es234.js +126 -6
  543. package/index.es235.js +179 -35
  544. package/index.es236.js +24 -25
  545. package/index.es237.js +62 -291
  546. package/index.es238.js +5 -91
  547. package/index.es239.js +36 -3
  548. package/index.es24.js +34 -12
  549. package/index.es240.js +25 -7
  550. package/index.es241.js +185 -15
  551. package/index.es242.js +136 -145
  552. package/index.es243.js +2 -38
  553. package/index.es244.js +8 -3
  554. package/index.es245.js +2 -11
  555. package/index.es246.js +2 -120
  556. package/index.es247.js +68 -6
  557. package/index.es248.js +84 -7
  558. package/index.es249.js +47 -7
  559. package/index.es25.js +50 -33
  560. package/index.es250.js +9 -351
  561. package/index.es251.js +4 -94
  562. package/index.es252.js +51 -9
  563. package/index.es253.js +2 -3
  564. package/index.es254.js +58 -204
  565. package/index.es255.js +16 -115
  566. package/index.es256.js +243 -6
  567. package/index.es257.js +73 -7
  568. package/index.es258.js +4 -15
  569. package/index.es259.js +58 -2
  570. package/index.es26.js +10 -22
  571. package/index.es260.js +11 -45
  572. package/index.es261.js +6 -51
  573. package/index.es262.js +36 -2
  574. package/index.es263.js +27 -2
  575. package/index.es264.js +291 -6
  576. package/index.es265.js +89 -22
  577. package/index.es266.js +2 -20
  578. package/index.es267.js +7 -31
  579. package/index.es268.js +16 -6
  580. package/index.es269.js +147 -3
  581. package/index.es27.js +106 -9
  582. package/index.es270.js +38 -7
  583. package/index.es271.js +3 -4
  584. package/index.es272.js +10 -18
  585. package/index.es273.js +114 -65
  586. package/index.es274.js +6 -15
  587. package/index.es275.js +10 -15
  588. package/index.es276.js +7 -3
  589. package/index.es277.js +120 -13
  590. package/index.es278.js +7 -143
  591. package/index.es279.js +7 -42
  592. package/index.es28.js +35 -107
  593. package/index.es280.js +8 -3
  594. package/index.es281.js +350 -40
  595. package/index.es282.js +94 -7
  596. package/index.es283.js +3 -76
  597. package/index.es284.js +205 -54
  598. package/index.es285.js +15 -7
  599. package/index.es286.js +2 -76
  600. package/index.es287.js +44 -23
  601. package/index.es288.js +51 -61
  602. package/index.es289.js +4 -3
  603. package/index.es29.js +69 -43
  604. package/index.es290.js +22 -57
  605. package/index.es291.js +20 -12
  606. package/index.es292.js +32 -4
  607. package/index.es293.js +6 -10
  608. package/index.es294.js +3 -55
  609. package/index.es295.js +7 -5
  610. package/index.es296.js +4 -17
  611. package/index.es297.js +19 -17
  612. package/index.es298.js +67 -17
  613. package/index.es299.js +16 -17
  614. package/index.es3.js +29 -13
  615. package/index.es30.js +118 -64
  616. package/index.es300.js +15 -17
  617. package/index.es301.js +3 -16
  618. package/index.es302.js +2 -17
  619. package/index.es303.js +2 -16
  620. package/index.es304.js +11 -334
  621. package/index.es305.js +143 -5
  622. package/index.es306.js +42 -4
  623. package/index.es307.js +3 -7
  624. package/index.es308.js +41 -19
  625. package/index.es309.js +8 -4
  626. package/index.es31.js +65 -117
  627. package/index.es310.js +75 -5
  628. package/index.es311.js +55 -3
  629. package/index.es312.js +7 -71
  630. package/index.es313.js +75 -3
  631. package/index.es314.js +23 -6
  632. package/index.es315.js +61 -29
  633. package/index.es316.js +4 -9
  634. package/index.es317.js +58 -7
  635. package/index.es318.js +12 -6
  636. package/index.es319.js +4 -2
  637. package/index.es32.js +53 -69
  638. package/index.es320.js +10 -2
  639. package/index.es321.js +55 -2
  640. package/index.es322.js +5 -66
  641. package/index.es323.js +17 -65
  642. package/index.es324.js +17 -78
  643. package/index.es325.js +17 -259
  644. package/index.es326.js +17 -32
  645. package/index.es327.js +17 -6
  646. package/index.es328.js +17 -132
  647. package/index.es329.js +19 -17
  648. package/index.es33.js +70 -53
  649. package/index.es330.js +4 -6
  650. package/index.es331.js +4 -10
  651. package/index.es332.js +6 -3
  652. package/index.es333.js +335 -8
  653. package/index.es334.js +19 -6
  654. package/index.es335.js +4 -4
  655. package/index.es336.js +5 -3
  656. package/index.es337.js +3 -46
  657. package/index.es338.js +70 -8
  658. package/index.es339.js +4 -2
  659. package/index.es34.js +1208 -69
  660. package/index.es340.js +16 -251
  661. package/index.es341.js +6 -7
  662. package/index.es342.js +30 -3
  663. package/index.es343.js +10 -2
  664. package/index.es344.js +8 -2
  665. package/index.es345.js +7 -174
  666. package/index.es346.js +2 -2
  667. package/index.es347.js +2 -2
  668. package/index.es348.js +2 -8
  669. package/index.es349.js +65 -6
  670. package/index.es35.js +55 -1203
  671. package/index.es350.js +64 -19
  672. package/index.es351.js +11 -51
  673. package/index.es352.js +3 -248
  674. package/index.es353.js +8 -42
  675. package/index.es354.js +3 -15
  676. package/index.es355.js +46 -10
  677. package/index.es356.js +9 -47
  678. package/index.es357.js +77 -25
  679. package/index.es358.js +254 -124
  680. package/index.es359.js +31 -111
  681. package/index.es36.js +33 -43
  682. package/index.es360.js +6 -2
  683. package/index.es361.js +132 -2
  684. package/index.es362.js +17 -75
  685. package/index.es363.js +6 -8
  686. package/index.es364.js +4 -2
  687. package/index.es365.js +3 -6
  688. package/index.es366.js +4 -0
  689. package/index.es367.js +4 -0
  690. package/index.es368.js +253 -0
  691. package/index.es369.js +10 -0
  692. package/index.es37.js +8 -35
  693. package/index.es370.js +5 -0
  694. package/index.es371.js +4 -0
  695. package/index.es372.js +176 -0
  696. package/index.es373.js +4 -0
  697. package/index.es374.js +4 -0
  698. package/index.es375.js +4 -0
  699. package/index.es376.js +4 -0
  700. package/index.es377.js +10 -0
  701. package/index.es378.js +9 -0
  702. package/index.es379.js +22 -0
  703. package/index.es38.js +245 -8
  704. package/index.es380.js +53 -0
  705. package/index.es381.js +251 -0
  706. package/index.es382.js +45 -0
  707. package/index.es383.js +18 -0
  708. package/index.es384.js +12 -0
  709. package/index.es385.js +50 -0
  710. package/index.es386.js +28 -0
  711. package/index.es387.js +131 -0
  712. package/index.es388.js +114 -0
  713. package/index.es389.js +75 -0
  714. package/index.es39.js +18 -245
  715. package/index.es390.js +6 -0
  716. package/index.es391.js +11 -0
  717. package/index.es392.js +9 -0
  718. package/index.es4.js +68 -68
  719. package/index.es40.js +116 -18
  720. package/index.es41.js +235 -111
  721. package/index.es42.js +14 -80
  722. package/index.es43.js +278 -22
  723. package/index.es44.js +169 -33
  724. package/index.es45.js +148 -23
  725. package/index.es46.js +75 -27
  726. package/index.es47.js +159 -76
  727. package/index.es48.js +201 -83
  728. package/index.es49.js +48 -16
  729. package/index.es50.js +21 -141
  730. package/index.es51.js +29 -418
  731. package/index.es52.js +39 -6
  732. package/index.es53.js +28 -12
  733. package/index.es54.js +67 -25
  734. package/index.es55.js +134 -42
  735. package/index.es56.js +13 -49
  736. package/index.es57.js +130 -51
  737. package/index.es58.js +409 -66
  738. package/index.es59.js +5 -23
  739. package/index.es60.js +12 -37
  740. package/index.es61.js +35 -29
  741. package/index.es62.js +46 -17
  742. package/index.es63.js +129 -90
  743. package/index.es64.js +74 -21
  744. package/index.es65.js +88 -8
  745. package/index.es66.js +34 -69
  746. package/index.es67.js +70 -7
  747. package/index.es68.js +35 -4
  748. package/index.es69.js +20 -68
  749. package/index.es7.js +95 -112
  750. package/index.es70.js +93 -32
  751. package/index.es71.js +22 -48
  752. package/index.es72.js +8 -8
  753. package/index.es73.js +70 -16
  754. package/index.es74.js +6 -44
  755. package/index.es75.js +3 -3
  756. package/index.es76.js +77 -113
  757. package/index.es77.js +32 -5
  758. package/index.es78.js +48 -7
  759. package/index.es79.js +8 -28
  760. package/index.es8.js +2 -2
  761. package/index.es80.js +16 -11
  762. package/index.es81.js +43 -72
  763. package/index.es82.js +4 -74
  764. package/index.es83.js +113 -33
  765. package/index.es84.js +5 -11
  766. package/index.es85.js +7 -88
  767. package/index.es86.js +28 -21
  768. package/index.es87.js +28 -24
  769. package/index.es88.js +11 -1709
  770. package/index.es89.js +103 -34
  771. package/index.es9.js +11 -11
  772. package/index.es90.js +97 -2589
  773. package/index.es91.js +2314 -313
  774. package/index.es92.js +21 -11
  775. package/index.es93.js +2567 -9
  776. package/index.es94.js +2152 -11
  777. package/index.es95.js +3 -8
  778. package/index.es96.js +11 -38
  779. package/index.es97.js +470 -16
  780. package/index.es98.js +5 -5
  781. package/index.es99.js +87 -10
  782. package/package.json +8 -5
  783. package/style.css +1 -1
  784. package/tailwind.config.cjs +192 -81
  785. package/tailwind.config.js +192 -81
  786. package/tsconfig.json +3 -9
package/index.cjs110.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const He=require("./index.cjs152.js"),b=require("./index.cjs151.js"),Ye=require("react"),e=require("./index.cjs153.js"),Ee=require("./index.cjs86.js"),ze=require("./index.cjs154.js"),K=require("./index.cjs155.js"),$e=require("./index.cjs156.js"),Le=require("./index.cjs157.js"),Ie=require("./index.cjs158.js"),M=require("./index.cjs159.js"),Ue=require("./index.cjs160.js"),Ge=require("./index.cjs161.js"),Be=require("./index.cjs162.js"),Ke=require("./index.cjs163.js"),Je=require("./index.cjs164.js"),h=require("react/jsx-runtime"),le=require("./index.cjs165.js"),Qe=require("./index.cjs166.js"),Xe=require("./index.cjs167.js"),Ze=require("./index.cjs168.js"),en=require("./index.cjs169.js"),B=require("./index.cjs170.js"),nn=require("./index.cjs171.js"),an=require("./index.cjs172.js"),on=require("./index.cjs173.js"),tn=require("./index.cjs174.js");function sn(s){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const l in s)if(l!=="default"){const u=Object.getOwnPropertyDescriptor(s,l);Object.defineProperty(o,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}return o.default=s,Object.freeze(o)}const V=sn(Ye),rn=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],ln=s=>{const{classes:o}=s;return on({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Ge.getDateCalendarUtilityClass,o)};function dn(s,o){var l,u,p,C,a,O,f;const x=K.useUtils(),T=K.useDefaultDates(),N=Ue.useDefaultReduceAnimations(),r=tn({props:s,name:o});return b({},r,{loading:(l=r.loading)!=null?l:!1,disablePast:(u=r.disablePast)!=null?u:!1,disableFuture:(p=r.disableFuture)!=null?p:!1,openTo:(C=r.openTo)!=null?C:"day",views:(a=r.views)!=null?a:["year","day"],reduceAnimations:(O=r.reduceAnimations)!=null?O:N,renderLoading:(f=r.renderLoading)!=null?f:()=>h.jsx("span",{children:"..."}),minDate:M.applyDefaultDate(x,r.minDate,T.minDate),maxDate:M.applyDefaultDate(x,r.maxDate,T.maxDate)})}const un=le.default(Qe.PickerViewRoot,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(s,o)=>o.root})({display:"flex",flexDirection:"column",height:Je.VIEW_HEIGHT}),cn=le.default($e.PickersFadeTransitionGroup,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(s,o)=>o.viewTransitionContainer})({}),de=V.forwardRef(function(o,l){var u,p,C;const a=K.useUtils(),O=Xe(),f=dn(o,"MuiDateCalendar"),{autoFocus:x,onViewChange:T,value:N,defaultValue:r,referenceDate:ue,disableFuture:g,disablePast:y,defaultCalendarMonth:ce,onChange:he,onYearChange:J,onMonthChange:W,reduceAnimations:F,shouldDisableDate:Q,shouldDisableMonth:X,shouldDisableYear:Z,view:fe,views:ee,openTo:me,className:ne,disabled:q,readOnly:De,minDate:m,maxDate:D,disableHighlightToday:be,focusedView:pe,onFocusedViewChange:Ce,showDaysOutsideCurrentMonth:ge,fixedWeekNumber:ye,dayOfWeekFormatter:we,components:A,componentsProps:S,slots:R,slotProps:j,loading:Pe,renderLoading:ve,displayWeekNumber:Ve,yearsPerRow:Me,monthsPerRow:Oe,timezone:xe}=f,Te=He(f,rn),{value:t,handleValueChange:_,timezone:w}=Be.useControlledValueWithTimezone({name:"DateCalendar",timezone:xe,value:N,defaultValue:r,onChange:he,valueManager:Ke.singleItemValueManager}),{view:i,setView:Fe,focusedView:H,setFocusedView:P,goToNextView:ae,setValueAndGoToNextView:oe}=Ie.useViews({view:fe,views:ee,openTo:me,onChange:_,onViewChange:T,autoFocus:x,focusedView:pe,onFocusedViewChange:Ce}),{referenceDate:Y,calendarState:te,changeFocusedDay:E,changeMonth:z,handleChangeMonth:qe,isDateDisabled:k,onMonthSwitchingAnimationEnd:Re}=ze.useCalendarState({value:t,defaultCalendarMonth:ce,referenceDate:ue,reduceAnimations:F,onMonthChange:W,minDate:m,maxDate:D,shouldDisableDate:Q,disablePast:y,disableFuture:g,timezone:w}),je=q&&t||m,ke=q&&t||D,se=`${O}-grid-label`,$=H!==null,re=(u=(p=R==null?void 0:R.calendarHeader)!=null?p:A==null?void 0:A.CalendarHeader)!=null?u:Ze.PickersCalendarHeader,Ne=en({elementType:re,externalSlotProps:(C=j==null?void 0:j.calendarHeader)!=null?C:S==null?void 0:S.calendarHeader,additionalProps:{views:ee,view:i,currentMonth:te.currentMonth,onViewChange:Fe,onMonthChange:(n,d)=>qe({newMonth:n,direction:d}),minDate:je,maxDate:ke,disabled:q,disablePast:y,disableFuture:g,reduceAnimations:F,timezone:w,labelId:se,slots:R,slotProps:j},ownerState:f}),We=B(n=>{const d=a.startOfMonth(n),v=a.endOfMonth(n),c=k(n)?M.findClosestEnabledDate({utils:a,date:n,minDate:a.isBefore(m,d)?d:m,maxDate:a.isAfter(D,v)?v:D,disablePast:y,disableFuture:g,isDateDisabled:k,timezone:w}):n;c?(oe(c,"finish"),W==null||W(d)):(ae(),z(d)),E(c,!0)}),Ae=B(n=>{const d=a.startOfYear(n),v=a.endOfYear(n),c=k(n)?M.findClosestEnabledDate({utils:a,date:n,minDate:a.isBefore(m,d)?d:m,maxDate:a.isAfter(D,v)?v:D,disablePast:y,disableFuture:g,isDateDisabled:k,timezone:w}):n;c?(oe(c,"finish"),J==null||J(c)):(ae(),z(d)),E(c,!0)}),Se=B(n=>_(n&&M.mergeDateAndTime(a,n,t??Y),"finish",i));V.useEffect(()=>{t!=null&&a.isValid(t)&&z(t)},[t]);const L=f,ie=ln(L),I={disablePast:y,disableFuture:g,maxDate:D,minDate:m},U={disableHighlightToday:be,readOnly:De,disabled:q,timezone:w,gridLabelId:se},G=V.useRef(i);V.useEffect(()=>{G.current!==i&&(H===G.current&&P(i,!0),G.current=i)},[H,P,i]);const _e=V.useMemo(()=>[t],[t]);return h.jsxs(un,b({ref:l,className:Ee.clsx(ie.root,ne),ownerState:L},Te,{children:[h.jsx(re,b({},Ne)),h.jsx(cn,{reduceAnimations:F,className:ie.viewTransitionContainer,transKey:i,ownerState:L,children:h.jsxs("div",{children:[i==="year"&&h.jsx(nn.YearCalendar,b({},I,U,{value:t,onChange:Ae,shouldDisableYear:Z,hasFocus:$,onFocusedViewChange:n=>P("year",n),yearsPerRow:Me,referenceDate:Y})),i==="month"&&h.jsx(an.MonthCalendar,b({},I,U,{hasFocus:$,className:ne,value:t,onChange:We,shouldDisableMonth:X,onFocusedViewChange:n=>P("month",n),monthsPerRow:Oe,referenceDate:Y})),i==="day"&&h.jsx(Le.DayCalendar,b({},te,I,U,{onMonthSwitchingAnimationEnd:Re,onFocusedDayChange:E,reduceAnimations:F,selectedDays:_e,onSelectedDaysChange:Se,shouldDisableDate:Q,shouldDisableMonth:X,shouldDisableYear:Z,hasFocus:$,onFocusedViewChange:n=>P("day",n),showDaysOutsideCurrentMonth:ge,fixedWeekNumber:ye,dayOfWeekFormatter:we,displayWeekNumber:Ve,components:A,componentsProps:S,slots:R,slotProps:j,loading:Pe,renderLoading:ve}))]})})]}))});process.env.NODE_ENV!=="production"&&(de.propTypes={autoFocus:e.bool,classes:e.object,className:e.string,components:e.object,componentsProps:e.object,dayOfWeekFormatter:e.func,defaultCalendarMonth:e.any,defaultValue:e.any,disabled:e.bool,disableFuture:e.bool,disableHighlightToday:e.bool,disablePast:e.bool,displayWeekNumber:e.bool,fixedWeekNumber:e.number,focusedView:e.oneOf(["day","month","year"]),loading:e.bool,maxDate:e.any,minDate:e.any,monthsPerRow:e.oneOf([3,4]),onChange:e.func,onFocusedViewChange:e.func,onMonthChange:e.func,onViewChange:e.func,onYearChange:e.func,openTo:e.oneOf(["day","month","year"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.any,renderLoading:e.func,shouldDisableDate:e.func,shouldDisableMonth:e.func,shouldDisableYear:e.func,showDaysOutsideCurrentMonth:e.bool,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.any,view:e.oneOf(["day","month","year"]),views:e.arrayOf(e.oneOf(["day","month","year"]).isRequired),yearsPerRow:e.oneOf([3,4])});exports.DateCalendar=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),g=require("react"),i=require("./index.cjs76.js"),r=require("./index.cjs88.js"),f=require("./index.cjs111.js"),p=require("./index.cjs112.js");function m(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const l=m(g),x=({className:e,...a})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...a}),c=l.forwardRef(({className:e,...a},t)=>n.jsx("ul",{ref:t,className:i.cn("flex flex-row items-center gap-space-02",e),...a}));c.displayName="PaginationContent";const u=l.forwardRef(({className:e,...a},t)=>n.jsx("li",{ref:t,className:i.cn("",e),...a}));u.displayName="PaginationItem";const s=({className:e,isActive:a,...t})=>n.jsx("button",{"aria-current":a?"page":void 0,className:i.cn("relative flex h-space-05 min-w-space-05 items-center justify-center gap-space-01 rounded text-body-01 text-text-default hover:bg-background-neutral-100 disabled:text-disabled-text-default-disabled disabled:pointer-events-none ",`${a&&"after:absolute after:bottom-0 after:h-[3px] after:w-full after:rounded-full after:bg-background-primary"}`,e),...t});s.displayName="PaginationLink";const d=({className:e,hasText:a,...t})=>n.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:i.cn("px-space-01",e),...t,children:[n.jsx(f.default,{className:"h-space-05 w-space-05 ltr:rotate-180"}),a&&n.jsx("span",{className:"hidden sm:inline-block",children:r.strings.Shared.previous})]});d.displayName="PaginationPrevious";const b=({className:e,hasText:a,...t})=>n.jsxs(s,{"aria-label":"Go to next page",size:"default",className:i.cn("px-space-01",e),...t,children:[a&&n.jsx("span",{className:"hidden sm:inline-block",children:r.strings.Shared.next}),n.jsx(p.default,{className:"h-space-05 w-space-05 ltr:rotate-180"})]});exports.Pagination=x;exports.PaginationContent=c;exports.PaginationItem=u;exports.PaginationLink=s;exports.PaginationNext=b;exports.PaginationPrevious=d;
package/index.cjs111.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs138.js");const c=e("Check",[["path",{d:"M8.79508 15.8749L4.62508 11.7049L3.20508 13.1149L8.79508 18.7049L20.7951 6.70492L19.3851 5.29492L8.79508 15.8749Z",key:"5stcsf"}]]);module.exports=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("ChevronRight",[["path",{d:"M9.70492 6L8.29492 7.41L12.8749 12L8.29492 16.59L9.70492 18L15.7049 12L9.70492 6Z",key:"xcu7tv"}]]);exports.default=t;
package/index.cjs112.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("./index.cjs142.js"),ye=require("@radix-ui/react-dialog"),Ce=require("react");function ae(r){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(u,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return u.default=r,Object.freeze(u)}const F=ae(ye),t=ae(Ce);var Se='[cmdk-list-sizer=""]',q='[cmdk-group=""]',G='[cmdk-group-items=""]',ke='[cmdk-group-heading=""]',X='[cmdk-item=""]',le=`${X}:not([aria-disabled="true"])`,H="cmdk-item-select",w="data-value",Re=(r,u)=>we.a(r,u),ue=t.createContext(void 0),$=()=>t.useContext(ue),oe=t.createContext(void 0),B=()=>t.useContext(oe),ie=t.createContext(void 0),J=t.forwardRef((r,u)=>{let n=t.useRef(null),a=x(()=>{var e,o,i;return{search:"",value:(i=(o=r.value)!=null?o:(e=r.defaultValue)==null?void 0:e.toLowerCase())!=null?i:"",filtered:{count:0,items:new Map,groups:new Set}}}),c=x(()=>new Set),d=x(()=>new Map),s=x(()=>new Map),v=x(()=>new Set),f=be(r),{label:h,children:p,value:E,onValueChange:A,filter:D,shouldFilter:R,vimBindings:L=!0,...y}=r,Q=t.useId(),U=t.useId(),W=t.useId(),C=Ae();M(()=>{if(E!==void 0){let e=E.trim().toLowerCase();a.current.value=e,C(6,Z),m.emit()}},[E]);let m=t.useMemo(()=>({subscribe:e=>(v.current.add(e),()=>v.current.delete(e)),snapshot:()=>a.current,setState:(e,o,i)=>{var l,g,b;if(!Object.is(a.current[e],o)){if(a.current[e]=o,e==="search")T(),K(),C(1,V);else if(e==="value")if(((l=f.current)==null?void 0:l.value)!==void 0){let S=o??"";(b=(g=f.current).onValueChange)==null||b.call(g,S);return}else i||C(5,Z);m.emit()}},emit:()=>{v.current.forEach(e=>e())}}),[]),I=t.useMemo(()=>({value:(e,o)=>{o!==s.current.get(e)&&(s.current.set(e,o),a.current.filtered.items.set(e,Y(o)),C(2,()=>{K(),m.emit()}))},item:(e,o)=>(c.current.add(e),o&&(d.current.has(o)?d.current.get(o).add(e):d.current.set(o,new Set([e]))),C(3,()=>{T(),K(),a.current.value||V(),m.emit()}),()=>{s.current.delete(e),c.current.delete(e),a.current.filtered.items.delete(e);let i=P();C(4,()=>{T(),(i==null?void 0:i.getAttribute("id"))===e&&V(),m.emit()})}),group:e=>(d.current.has(e)||d.current.set(e,new Set),()=>{s.current.delete(e),d.current.delete(e)}),filter:()=>f.current.shouldFilter,label:h||r["aria-label"],commandRef:n,listId:Q,inputId:W,labelId:U}),[]);function Y(e){var o,i;let l=(i=(o=f.current)==null?void 0:o.filter)!=null?i:Re;return e?l(e,a.current.search):0}function K(){if(!n.current||!a.current.search||f.current.shouldFilter===!1)return;let e=a.current.filtered.items,o=[];a.current.filtered.groups.forEach(l=>{let g=d.current.get(l),b=0;g.forEach(S=>{let _=e.get(S);b=Math.max(_,b)}),o.push([l,b])});let i=n.current.querySelector(Se);O().sort((l,g)=>{var b,S;let _=l.getAttribute(w),Ee=g.getAttribute(w);return((b=e.get(Ee))!=null?b:0)-((S=e.get(_))!=null?S:0)}).forEach(l=>{let g=l.closest(G);g?g.appendChild(l.parentElement===g?l:l.closest(`${G} > *`)):i.appendChild(l.parentElement===i?l:l.closest(`${G} > *`))}),o.sort((l,g)=>g[1]-l[1]).forEach(l=>{let g=n.current.querySelector(`${q}[${w}="${l[0]}"]`);g==null||g.parentElement.appendChild(g)})}function V(){let e=O().find(i=>!i.ariaDisabled),o=e==null?void 0:e.getAttribute(w);m.setState("value",o||void 0)}function T(){if(!a.current.search||f.current.shouldFilter===!1){a.current.filtered.count=c.current.size;return}a.current.filtered.groups=new Set;let e=0;for(let o of c.current){let i=s.current.get(o),l=Y(i);a.current.filtered.items.set(o,l),l>0&&e++}for(let[o,i]of d.current)for(let l of i)if(a.current.filtered.items.get(l)>0){a.current.filtered.groups.add(o);break}a.current.filtered.count=e}function Z(){var e,o,i;let l=P();l&&(((e=l.parentElement)==null?void 0:e.firstChild)===l&&((i=(o=l.closest(q))==null?void 0:o.querySelector(ke))==null||i.scrollIntoView({block:"nearest"})),l.scrollIntoView({block:"nearest"}))}function P(){var e;return(e=n.current)==null?void 0:e.querySelector(`${X}[aria-selected="true"]`)}function O(){return Array.from(n.current.querySelectorAll(le))}function z(e){let o=O()[e];o&&m.setState("value",o.getAttribute(w))}function N(e){var o;let i=P(),l=O(),g=l.findIndex(S=>S===i),b=l[g+e];(o=f.current)!=null&&o.loop&&(b=g+e<0?l[l.length-1]:g+e===l.length?l[0]:l[g+e]),b&&m.setState("value",b.getAttribute(w))}function ee(e){let o=P(),i=o==null?void 0:o.closest(q),l;for(;i&&!l;)i=e>0?xe(i,q):Me(i,q),l=i==null?void 0:i.querySelector(le);l?m.setState("value",l.getAttribute(w)):N(e)}let te=()=>z(O().length-1),re=e=>{e.preventDefault(),e.metaKey?te():e.altKey?ee(1):N(1)},ne=e=>{e.preventDefault(),e.metaKey?z(0):e.altKey?ee(-1):N(-1)};return t.createElement("div",{ref:j([n,u]),...y,"cmdk-root":"",onKeyDown:e=>{var o;if((o=y.onKeyDown)==null||o.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{L&&e.ctrlKey&&re(e);break}case"ArrowDown":{re(e);break}case"p":case"k":{L&&e.ctrlKey&&ne(e);break}case"ArrowUp":{ne(e);break}case"Home":{e.preventDefault(),z(0);break}case"End":{e.preventDefault(),te();break}case"Enter":if(!e.nativeEvent.isComposing){e.preventDefault();let i=P();if(i){let l=new Event(H);i.dispatchEvent(l)}}}}},t.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:De},h),t.createElement(oe.Provider,{value:m},t.createElement(ue.Provider,{value:I},p)))}),ce=t.forwardRef((r,u)=>{var n,a;let c=t.useId(),d=t.useRef(null),s=t.useContext(ie),v=$(),f=be(r),h=(a=(n=f.current)==null?void 0:n.forceMount)!=null?a:s==null?void 0:s.forceMount;M(()=>v.item(c,s==null?void 0:s.id),[]);let p=he(c,d,[r.value,r.children,d]),E=B(),A=k(m=>m.value&&m.value===p.current),D=k(m=>h||v.filter()===!1?!0:m.search?m.filtered.items.get(c)>0:!0);t.useEffect(()=>{let m=d.current;if(!(!m||r.disabled))return m.addEventListener(H,R),()=>m.removeEventListener(H,R)},[D,r.onSelect,r.disabled]);function R(){var m,I;L(),(I=(m=f.current).onSelect)==null||I.call(m,p.current)}function L(){E.setState("value",p.current,!0)}if(!D)return null;let{disabled:y,value:Q,onSelect:U,forceMount:W,...C}=r;return t.createElement("div",{ref:j([d,u]),...C,id:c,"cmdk-item":"",role:"option","aria-disabled":y||void 0,"aria-selected":A||void 0,"data-disabled":y||void 0,"data-selected":A||void 0,onPointerMove:y?void 0:L,onClick:y?void 0:R},r.children)}),de=t.forwardRef((r,u)=>{let{heading:n,children:a,forceMount:c,...d}=r,s=t.useId(),v=t.useRef(null),f=t.useRef(null),h=t.useId(),p=$(),E=k(R=>c||p.filter()===!1?!0:R.search?R.filtered.groups.has(s):!0);M(()=>p.group(s),[]),he(s,v,[r.value,r.heading,f]);let A=t.useMemo(()=>({id:s,forceMount:c}),[c]),D=t.createElement(ie.Provider,{value:A},a);return t.createElement("div",{ref:j([v,u]),...d,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&t.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),t.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},D))}),se=t.forwardRef((r,u)=>{let{alwaysRender:n,...a}=r,c=t.useRef(null),d=k(s=>!s.search);return!n&&!d?null:t.createElement("div",{ref:j([c,u]),...a,"cmdk-separator":"",role:"separator"})}),fe=t.forwardRef((r,u)=>{let{onValueChange:n,...a}=r,c=r.value!=null,d=B(),s=k(p=>p.search),v=k(p=>p.value),f=$(),h=t.useMemo(()=>{var p;let E=(p=f.commandRef.current)==null?void 0:p.querySelector(`${X}[${w}="${v}"]`);return E==null?void 0:E.getAttribute("id")},[v,f.commandRef]);return t.useEffect(()=>{r.value!=null&&d.setState("search",r.value)},[r.value]),t.createElement("input",{ref:u,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:c?r.value:s,onChange:p=>{c||d.setState("search",p.target.value),n==null||n(p.target.value)}})}),me=t.forwardRef((r,u)=>{let{children:n,...a}=r,c=t.useRef(null),d=t.useRef(null),s=$();return t.useEffect(()=>{if(d.current&&c.current){let v=d.current,f=c.current,h,p=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=v.offsetHeight;f.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return p.observe(v),()=>{cancelAnimationFrame(h),p.unobserve(v)}}},[]),t.createElement("div",{ref:j([c,u]),...a,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},t.createElement("div",{ref:d,"cmdk-list-sizer":""},n))}),ve=t.forwardRef((r,u)=>{let{open:n,onOpenChange:a,overlayClassName:c,contentClassName:d,container:s,...v}=r;return t.createElement(F.Root,{open:n,onOpenChange:a},t.createElement(F.Portal,{container:s},t.createElement(F.Overlay,{"cmdk-overlay":"",className:c}),t.createElement(F.Content,{"aria-label":r.label,"cmdk-dialog":"",className:d},t.createElement(J,{ref:u,...v}))))}),pe=t.forwardRef((r,u)=>{let n=t.useRef(!0),a=k(c=>c.filtered.count===0);return t.useEffect(()=>{n.current=!1},[]),n.current||!a?null:t.createElement("div",{ref:u,...r,"cmdk-empty":"",role:"presentation"})}),ge=t.forwardRef((r,u)=>{let{progress:n,children:a,...c}=r;return t.createElement("div",{ref:u,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},t.createElement("div",{"aria-hidden":!0},a))}),Ie=Object.assign(J,{List:me,Item:ce,Input:fe,Group:de,Separator:se,Dialog:ve,Empty:pe,Loading:ge});function xe(r,u){let n=r.nextElementSibling;for(;n;){if(n.matches(u))return n;n=n.nextElementSibling}}function Me(r,u){let n=r.previousElementSibling;for(;n;){if(n.matches(u))return n;n=n.previousElementSibling}}function be(r){let u=t.useRef(r);return M(()=>{u.current=r}),u}var M=typeof window>"u"?t.useEffect:t.useLayoutEffect;function x(r){let u=t.useRef();return u.current===void 0&&(u.current=r()),u}function j(r){return u=>{r.forEach(n=>{typeof n=="function"?n(u):n!=null&&(n.current=u)})}}function k(r){let u=B(),n=()=>r(u.snapshot());return t.useSyncExternalStore(u.subscribe,n,n)}function he(r,u,n){let a=t.useRef(),c=$();return M(()=>{var d;let s=(()=>{var v;for(let f of n){if(typeof f=="string")return f.trim().toLowerCase();if(typeof f=="object"&&"current"in f)return f.current?(v=f.current.textContent)==null?void 0:v.trim().toLowerCase():a.current}})();c.value(r,s),(d=u.current)==null||d.setAttribute(w,s),a.current=s}),a}var Ae=()=>{let[r,u]=t.useState(),n=x(()=>new Map);return M(()=>{n.current.forEach(a=>a()),n.current=new Map},[r]),(a,c)=>{n.current.set(a,c),u({})}},De={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};exports.Command=Ie;exports.CommandDialog=ve;exports.CommandEmpty=pe;exports.CommandGroup=de;exports.CommandInput=fe;exports.CommandItem=ce;exports.CommandList=me;exports.CommandLoading=ge;exports.CommandRoot=J;exports.CommandSeparator=se;exports.useCommandState=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("ChevronLeft",[["path",{d:"M15.7049 7.41L14.2949 6L8.29492 12L14.2949 18L15.7049 16.59L11.1249 12L15.7049 7.41Z",key:"2nwmtn"}]]);exports.default=t;
package/index.cjs113.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs138.js");const C=e("Search",[["path",{d:"M15.7549 14.2549H14.9649L14.6849 13.9849C15.6649 12.8449 16.2549 11.3649 16.2549 9.75488C16.2549 6.16488 13.3449 3.25488 9.75488 3.25488C6.16488 3.25488 3.25488 6.16488 3.25488 9.75488C3.25488 13.3449 6.16488 16.2549 9.75488 16.2549C11.3649 16.2549 12.8449 15.6649 13.9849 14.6849L14.2549 14.9649V15.7549L19.2549 20.7449L20.7449 19.2549L15.7549 14.2549ZM9.75488 14.2549C7.26488 14.2549 5.25488 12.2449 5.25488 9.75488C5.25488 7.26488 7.26488 5.25488 9.75488 5.25488C12.2449 5.25488 14.2549 7.26488 14.2549 9.75488C14.2549 12.2449 12.2449 14.2549 9.75488 14.2549Z",key:"1ac8z8"}]]);module.exports=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("MoreHoriz",[["path",{d:"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z",key:"axpa9z"}]]);exports.default=t;
package/index.cjs114.js CHANGED
@@ -1 +1 @@
1
- "use strict";const H=require("./index.cjs138.js");const V=H("DateRange",[["path",{d:"M7 11H9V13H7V11ZM21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM15 13H17V11H15V13ZM11 13H13V11H11V13Z",key:"1kdlay"}]]);module.exports=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./index.cjs182.js");const e=C.default("DragIndicator",[["path",{d:"M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z",key:"l6hb9t"}]]);exports.default=e;
package/index.cjs115.js CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./index.cjs138.js");const e=t("ChevronRight",[["path",{d:"M9.70492 6L8.29492 7.41L12.8749 12L8.29492 16.59L9.70492 18L15.7049 12L9.70492 6Z",key:"xcu7tv"}]]);module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("Cancel",[["path",{d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM15.59 7L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z",key:"1i7kw4"}]]);exports.default=t;
package/index.cjs116.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs138.js");const r=e("Circle",[["path",{d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2Z",key:"arly8y"}]]);module.exports=r;
1
+ "use strict";const m=require("./index.cjs93.js");var u={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},a=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},d=function(e){return function(r,s,l,M){var i=a(r),t=o[e][a(r)];return i===2&&(t=t[s?0:1]),t.replace(/%d/i,r)}},n=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];m.default.defineLocale("ar-ly",{months:n,monthsShort:n,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return e==="م"},meridiem:function(e,r,s){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:d("s"),ss:d("s"),m:d("m"),mm:d("m"),h:d("h"),hh:d("h"),d:d("d"),dd:d("d"),M:d("M"),MM:d("M"),y:d("y"),yy:d("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(r){return u[r]}).replace(/,/g,"،")},week:{dow:6,doy:12}});
package/index.cjs117.js CHANGED
@@ -1,20 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("react");function Oe(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const u=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(a,l,u.get?u:{enumerable:!0,get:()=>r[l]})}}return a.default=r,Object.freeze(a)}const t=Oe(ke);var Re=Object.defineProperty,Te=Object.defineProperties,De=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,de=(r,a,l)=>a in r?Re(r,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[a]=l,je=(r,a)=>{for(var l in a||(a={}))me.call(a,l)&&de(r,l,a[l]);if(J)for(var l of J(a))fe.call(a,l)&&de(r,l,a[l]);return r},We=(r,a)=>Te(r,De(a)),Ae=(r,a)=>{var l={};for(var u in r)me.call(r,u)&&a.indexOf(u)<0&&(l[u]=r[u]);if(r!=null&&J)for(var u of J(r))a.indexOf(u)<0&&fe.call(r,u)&&(l[u]=r[u]);return l};function Be(r){let a=setTimeout(r,0),l=setTimeout(r,10),u=setTimeout(r,50);return[a,l,u]}function _e(r){let a=t.useRef();return t.useEffect(()=>{a.current=r}),a.current}var Ie=18,ve=40,Fe=`${ve}px`,He=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Le({containerRef:r,inputRef:a,pushPasswordManagerStrategy:l,isFocused:u}){let[M,p]=t.useState(!1),[I,x]=t.useState(!1),[j,F]=t.useState(!1),H=t.useMemo(()=>l==="none"?!1:(l==="increase-width"||l==="experimental-no-flickering")&&M&&I,[M,I,l]),W=t.useCallback(()=>{let f=r.current,y=a.current;if(!f||!y||j||l==="none")return;let h=f,S=h.getBoundingClientRect().left+h.offsetWidth,A=h.getBoundingClientRect().top+h.offsetHeight/2,i=S-Ie,L=A;document.querySelectorAll(He).length===0&&document.elementFromPoint(i,L)===f||(p(!0),F(!0))},[r,a,j,l]);return t.useEffect(()=>{let f=r.current;if(!f||l==="none")return;function y(){let S=window.innerWidth-f.getBoundingClientRect().right;x(S>=ve)}y();let h=setInterval(y,1e3);return()=>{clearInterval(h)}},[r,l]),t.useEffect(()=>{let f=u||document.activeElement===a.current;if(l==="none"||!f)return;let y=setTimeout(W,0),h=setTimeout(W,2e3),S=setTimeout(W,5e3),A=setTimeout(()=>{F(!0)},6e3);return()=>{clearTimeout(y),clearTimeout(h),clearTimeout(S),clearTimeout(A)}},[a,u,l,W]),{hasPWMBadge:M,willPushPWMBadge:H,PWM_BADGE_SPACE_WIDTH:Fe}}var ge=t.createContext({}),he=t.forwardRef((r,a)=>{var l=r,{value:u,onChange:M,maxLength:p,textAlign:I="left",pattern:x,placeholder:j,inputMode:F="numeric",onComplete:H,pushPasswordManagerStrategy:W="increase-width",pasteTransformer:f,containerClassName:y,noScriptCSSFallback:h=Ne,render:S,children:A}=l,i=Ae(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),L,ee,te,ne,re;let[be,we]=t.useState(typeof i.defaultValue=="string"?i.defaultValue:""),c=u??be,k=_e(c),N=t.useCallback(e=>{M==null||M(e),we(e)},[M]),w=t.useMemo(()=>x?typeof x=="string"?new RegExp(x):x:null,[x]),s=t.useRef(null),K=t.useRef(null),Q=t.useRef({value:c,onChange:N,isIOS:typeof window<"u"&&((ee=(L=window==null?void 0:window.CSS)==null?void 0:L.supports)==null?void 0:ee.call(L,"-webkit-touch-callout","none"))}),V=t.useRef({prev:[(te=s.current)==null?void 0:te.selectionStart,(ne=s.current)==null?void 0:ne.selectionEnd,(re=s.current)==null?void 0:re.selectionDirection]});t.useImperativeHandle(a,()=>s.current,[]),t.useEffect(()=>{let e=s.current,n=K.current;if(!e||!n)return;Q.current.value!==e.value&&Q.current.onChange(e.value),V.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function d(){if(document.activeElement!==e){G(null),z(null);return}let o=e.selectionStart,m=e.selectionEnd,Z=e.selectionDirection,b=e.maxLength,R=e.value,E=V.current.prev,P=-1,C=-1,T;if(R.length!==0&&o!==null&&m!==null){let Ce=o===m,Me=o===R.length&&R.length<b;if(Ce&&!Me){let D=o;if(D===0)P=0,C=1,T="forward";else if(D===b)P=D-1,C=D,T="backward";else if(b>1&&R.length>1){let Y=0;if(E[0]!==null&&E[1]!==null){T=D<E[1]?"backward":"forward";let xe=E[0]===E[1]&&E[0]<b;T==="backward"&&!xe&&(Y=-1)}P=Y+D,C=Y+D+1}}P!==-1&&C!==-1&&P!==C&&s.current.setSelectionRange(P,C,T)}let se=P!==-1?P:o,pe=C!==-1?C:m,Pe=T??Z;G(se),z(pe),V.current.prev=[se,pe,Pe]}if(document.addEventListener("selectionchange",d,{capture:!0}),d(),document.activeElement===e&&U(!0),!document.getElementById("input-otp-style")){let o=document.createElement("style");if(o.id="input-otp-style",document.head.appendChild(o),o.sheet){let m="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";q(o.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),q(o.sheet,`[data-input-otp]:autofill { ${m} }`),q(o.sheet,`[data-input-otp]:-webkit-autofill { ${m} }`),q(o.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),q(o.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let v=()=>{n&&n.style.setProperty("--root-height",`${e.clientHeight}px`)};v();let g=new ResizeObserver(v);return g.observe(e),()=>{document.removeEventListener("selectionchange",d,{capture:!0}),g.disconnect()}},[]);let[le,ae]=t.useState(!1),[$,U]=t.useState(!1),[O,G]=t.useState(null),[B,z]=t.useState(null);t.useEffect(()=>{Be(()=>{var e,n,d,v;(e=s.current)==null||e.dispatchEvent(new Event("input"));let g=(n=s.current)==null?void 0:n.selectionStart,o=(d=s.current)==null?void 0:d.selectionEnd,m=(v=s.current)==null?void 0:v.selectionDirection;g!==null&&o!==null&&(G(g),z(o),V.current.prev=[g,o,m])})},[c,$]),t.useEffect(()=>{k!==void 0&&c!==k&&k.length<p&&c.length===p&&(H==null||H(c))},[p,H,k,c]);let _=Le({containerRef:K,inputRef:s,pushPasswordManagerStrategy:W,isFocused:$}),oe=t.useCallback(e=>{let n=e.currentTarget.value.slice(0,p);if(n.length>0&&w&&!w.test(n)){e.preventDefault();return}typeof k=="string"&&n.length<k.length&&document.dispatchEvent(new Event("selectionchange")),N(n)},[p,N,k,w]),ie=t.useCallback(()=>{var e;if(s.current){let n=Math.min(s.current.value.length,p-1),d=s.current.value.length;(e=s.current)==null||e.setSelectionRange(n,d),G(n),z(d)}U(!0)},[p]),ue=t.useCallback(e=>{var n,d;let v=s.current;if(!f&&(!Q.current.isIOS||!e.clipboardData||!v))return;let g=e.clipboardData.getData("text/plain"),o=f?f(g):g;e.preventDefault();let m=(n=s.current)==null?void 0:n.selectionStart,Z=(d=s.current)==null?void 0:d.selectionEnd,b=(m!==Z?c.slice(0,m)+o+c.slice(Z):c.slice(0,m)+o+c.slice(m)).slice(0,p);if(b.length>0&&w&&!w.test(b))return;v.value=b,N(b);let R=Math.min(b.length,p-1),E=b.length;v.setSelectionRange(R,E),G(R),z(E)},[p,N,w,c]),Se=t.useMemo(()=>({position:"relative",cursor:i.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[i.disabled]),ce=t.useMemo(()=>({position:"absolute",inset:0,width:_.willPushPWMBadge?`calc(100% + ${_.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:_.willPushPWMBadge?`inset(0 ${_.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:I,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[_.PWM_BADGE_SPACE_WIDTH,_.willPushPWMBadge,I]),Ee=t.useMemo(()=>t.createElement("input",We(je({autoComplete:i.autoComplete||"one-time-code"},i),{"data-input-otp":!0,"data-input-otp-placeholder-shown":c.length===0||void 0,"data-input-otp-mss":O,"data-input-otp-mse":B,inputMode:F,pattern:w==null?void 0:w.source,"aria-placeholder":j,style:ce,maxLength:p,value:c,ref:s,onPaste:e=>{var n;ue(e),(n=i.onPaste)==null||n.call(i,e)},onChange:oe,onMouseOver:e=>{var n;ae(!0),(n=i.onMouseOver)==null||n.call(i,e)},onMouseLeave:e=>{var n;ae(!1),(n=i.onMouseLeave)==null||n.call(i,e)},onFocus:e=>{var n;ie(),(n=i.onFocus)==null||n.call(i,e)},onBlur:e=>{var n;U(!1),(n=i.onBlur)==null||n.call(i,e)}})),[oe,ie,ue,F,ce,p,B,O,i,w==null?void 0:w.source,c]),X=t.useMemo(()=>({slots:Array.from({length:p}).map((e,n)=>{var d;let v=$&&O!==null&&B!==null&&(O===B&&n===O||n>=O&&n<B),g=c[n]!==void 0?c[n]:null,o=c[0]!==void 0?null:(d=j==null?void 0:j[n])!=null?d:null;return{char:g,placeholderChar:o,isActive:v,hasFakeCaret:v&&g===null}}),isFocused:$,isHovering:!i.disabled&&le}),[$,le,p,B,O,i.disabled,c]),ye=t.useMemo(()=>S?S(X):t.createElement(ge.Provider,{value:X},A),[A,X,S]);return t.createElement(t.Fragment,null,h!==null&&t.createElement("noscript",null,t.createElement("style",null,h)),t.createElement("div",{ref:K,"data-input-otp-container":!0,style:Se,className:y},ye,t.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Ee)))});he.displayName="Input";function q(r,a){try{r.insertRule(a)}catch{}}var Ne=`
2
- [data-input-otp] {
3
- --nojs-bg: white !important;
4
- --nojs-fg: black !important;
5
-
6
- background-color: var(--nojs-bg) !important;
7
- color: var(--nojs-fg) !important;
8
- caret-color: var(--nojs-fg) !important;
9
- letter-spacing: .25em !important;
10
- text-align: center !important;
11
- border: 1px solid var(--nojs-fg) !important;
12
- border-radius: 4px !important;
13
- width: 100% !important;
14
- }
15
- @media (prefers-color-scheme: dark) {
16
- [data-input-otp] {
17
- --nojs-bg: black !important;
18
- --nojs-fg: white !important;
19
- }
20
- }`;exports.OTPInput=he;exports.OTPInputContext=ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./index.cjs191.js"),M=require("./index.cjs192.js"),P=require("react"),e=require("./index.cjs193.js"),v=require("react/jsx-runtime"),A=require("./index.cjs214.js");function L(a){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>a[t]})}}return r.default=a,Object.freeze(r)}const o=L(P),O=["localeText"],l=o.createContext(null);process.env.NODE_ENV!=="production"&&(l.displayName="MuiPickersAdapterContext");const T=function(r){var t;const{localeText:i}=r,D=M.default(r,O),{utils:d,localeText:u}=(t=o.useContext(l))!=null?t:{utils:void 0,localeText:void 0},y=A.default({props:D,name:"MuiLocalizationProvider"}),{children:b,dateAdapter:s,dateFormats:c,dateLibInstance:f,adapterLocale:m,localeText:p}=y,g=o.useMemo(()=>j.default({},p,u,i),[p,u,i]),n=o.useMemo(()=>{if(!s)return d||null;const x=new s({locale:m,formats:c,instance:f});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
2
+ `));return x},[s,m,c,f,d]),h=o.useMemo(()=>n?{minDate:n.date("1900-01-01T00:00:00.000"),maxDate:n.date("2099-12-31T00:00:00.000")}:null,[n]),k=o.useMemo(()=>({utils:n,defaultDates:h,localeText:g}),[h,n,g]);return v.jsx(l.Provider,{value:k,children:b})};process.env.NODE_ENV!=="production"&&(T.propTypes={adapterLocale:e.default.any,children:e.default.node,dateAdapter:e.default.func,dateFormats:e.default.shape({dayOfMonth:e.default.string,fullDate:e.default.string,fullDateTime:e.default.string,fullDateTime12h:e.default.string,fullDateTime24h:e.default.string,fullDateWithWeekday:e.default.string,fullTime:e.default.string,fullTime12h:e.default.string,fullTime24h:e.default.string,hours12h:e.default.string,hours24h:e.default.string,keyboardDate:e.default.string,keyboardDateTime:e.default.string,keyboardDateTime12h:e.default.string,keyboardDateTime24h:e.default.string,meridiem:e.default.string,minutes:e.default.string,month:e.default.string,monthAndDate:e.default.string,monthAndYear:e.default.string,monthShort:e.default.string,normalDate:e.default.string,normalDateWithWeekday:e.default.string,seconds:e.default.string,shortDate:e.default.string,weekday:e.default.string,weekdayShort:e.default.string,year:e.default.string}),dateLibInstance:e.default.any,localeText:e.default.object});exports.LocalizationProvider=T;exports.MuiPickersAdapterContext=l;
package/index.cjs118.js CHANGED
@@ -1 +1 @@
1
- "use strict";const o=require("./index.cjs138.js");const r=o("KeyboardArrowDown",[["path",{d:"M7.41 8.29492L12 12.8749L16.59 8.29492L18 9.70492L12 15.7049L6 9.70492L7.41 8.29492Z",key:"1q2iou"}]]);module.exports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs191.js"),M=require("./index.cjs94.js"),d=require("./index.cjs119.js"),l={iY:{sectionType:"year",contentType:"letter"},iYY:{sectionType:"year",contentType:"letter"},iYYYY:{sectionType:"year",contentType:"letter"},iM:"month",iMM:"month",iMMM:{sectionType:"month",contentType:"letter"},iMMMM:{sectionType:"month",contentType:"letter"},iD:{sectionType:"day",contentType:"digit",maxLength:2},iDD:"day",A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},u={year:"iYYYY",month:"iMMMM",monthShort:"iMMM",dayOfMonth:"iD",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"iYYYY, iMMMM Do",fullDateWithWeekday:"iYYYY, iMMMM Do, dddd",keyboardDateTime:"iYYYY/iMM/iDD LT",shortDate:"iD iMMM",normalDate:"dddd, iD iMMM",normalDateWithWeekday:"DD iMMMM",monthAndYear:"iMMMM iYYYY",monthAndDate:"iD iMMMM",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"iYYYY, iMMMM Do, hh:mm A",fullDateTime12h:"iD iMMMM hh:mm A",fullDateTime24h:"iD iMMMM HH:mm",keyboardDate:"iYYYY/iMM/iDD",keyboardDateTime12h:"iYYYY/iMM/iDD hh:mm A",keyboardDateTime24h:"iYYYY/iMM/iDD HH:mm"},c={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"};class Y extends d.AdapterMoment{constructor({formats:h,instance:a}={}){super({locale:"ar-SA",instance:a}),this.lib="moment-hijri",this.moment=void 0,this.isTimezoneCompatible=!1,this.formatTokenMap=l,this.date=e=>e===null?null:this.moment(e).locale("ar-SA"),this.dateWithTimezone=e=>this.date(e),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.parse=(e,t)=>e===""?null:this.moment(e,t,!0).locale("ar-SA"),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").replace("iY","Y").replace("iM","M").replace("iD","D").toLocaleLowerCase(),this.formatNumber=e=>e.replace(/\d/g,t=>c[t]).replace(/,/g,"،"),this.isEqual=(e,t)=>e===null&&t===null?!0:this.moment(e).isSame(t),this.startOfYear=e=>e.clone().startOf("iYear"),this.startOfMonth=e=>e.clone().startOf("iMonth"),this.endOfYear=e=>e.clone().endOf("iYear"),this.endOfMonth=e=>e.clone().endOf("iMonth"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"iYear"):e.clone().add(t,"iYear"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"iMonth"):e.clone().add(t,"iMonth"),this.getYear=e=>e.iYear(),this.getMonth=e=>e.iMonth(),this.getDate=e=>e.iDate(),this.setYear=(e,t)=>e.clone().iYear(t),this.setMonth=(e,t)=>e.clone().iMonth(t),this.setDate=(e,t)=>e.clone().iDate(t),this.getNextMonth=e=>e.clone().add(1,"iMonth"),this.getPreviousMonth=e=>e.clone().subtract(1,"iMonth"),this.getWeekdays=()=>[0,1,2,3,4,5,6].map(e=>this.date().weekday(e).format("dd")),this.getWeekArray=e=>{const t=e.clone().startOf("iMonth").startOf("week"),o=e.clone().endOf("iMonth").endOf("week");let n=0,r=t;const i=[];for(;r.isBefore(o);){const s=Math.floor(n/7);i[s]=i[s]||[],i[s].push(r),r=r.clone().add(1,"day"),n+=1}return i},this.getWeekNumber=e=>e.iWeek(),this.getYearRange=(e,t)=>{if(e.isBefore("1937-03-14"))throw new Error("min date must be on or after 1356-01-01 H (1937-03-14)");if(t.isAfter("2076-11-26"))throw new Error("max date must be on or before 1499-12-29 H (2076-11-26)");const o=this.moment(e).startOf("iYear"),n=this.moment(t).endOf("iYear"),r=[];let i=o;for(;i.isBefore(n);)r.push(i),i=i.clone().add(1,"iYear");return r},this.getMeridiemText=e=>e==="am"?this.date().hours(2).format("A"):this.date().hours(14).format("A"),this.moment=a||M.default,this.locale="ar-SA",this.formats=m.default({},u,h)}}exports.AdapterMomentHijri=Y;
package/index.cjs119.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const r=require("./index.cjs138.js");const e=r("KeyboardArrowUp",[["path",{d:"M7.41 15.7049L12 11.1249L16.59 15.7049L18 14.2949L12 8.29492L6 14.2949L7.41 15.7049Z",key:"1jcnwk"}]]);module.exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs191.js"),i=require("./index.cjs93.js"),f={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},y={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},l=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
2
+ `);class M{constructor({locale:c,formats:d,instance:u}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=f,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.syncMomentLocale=e=>{var t;const n=i.default.locale(),r=(t=this.locale)!=null?t:"en-us";if(n!==r){i.default.locale(r);const o=e();return i.default.locale(n),o}return e()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=e=>{const t=this.moment(e).local();return this.locale===void 0?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return this.locale===void 0?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(l);const n=t==="default"?this.moment(e):this.moment.tz(e,t);return this.locale===void 0?n:n.locale(this.locale)},this.date=e=>{if(e===null)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>e===null?null:t==="UTC"?this.createUTCDate(e):t==="system"||t==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;const o=(t=e._z)==null?void 0:t.name,s=e.isUTC()?"UTC":"system";return(n=o??((r=this.moment.defaultZone)==null?void 0:r.name))!=null?n:s},this.setTimezone=(e,t)=>{var n,r;if(this.getTimezone(e)===t)return e;if(t==="UTC")return e.clone().utc();if(t==="system")return e.clone().local();if(!this.hasTimezonePlugin()){if(t!=="default")throw new Error(l);return e}const o=t==="default"?(n=(r=this.moment.defaultZone)==null?void 0:r.name)!=null?n:"system":t;if(o==="system")return e.clone().local();const s=e.clone();return s.tz(o),s},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>e===""?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||i.default.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(i.default.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>{const t=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return e.match(t).map(n=>{const r=n[0];return r==="L"||r===";"?i.default.localeData(this.getCurrentLocaleCode()).longDateFormat(n):n}).join("")},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>e===null,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>e===null&&t===null?!0:this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const n=[this.startOfYear(e)];for(;n.length<12;){const r=n[n.length-1];n.push(this.getNextMonth(r))}return n},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>i.default.weekdaysShort(!0)),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let o=0,s=n;const a=[];for(;s.isBefore(r);){const h=Math.floor(o/7);a[h]=a[h]||[],a[h].push(s),s=s.clone().add(1,"day"),o+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[];let s=n;for(;s.isBefore(r);)o.push(s),s=s.clone().add(1,"year");return o},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?i.default.localeData(this.getCurrentLocaleCode()).meridiem(e==="am"?0:13,0,!1):e==="am"?"AM":"PM",this.moment=u||i.default,this.locale=c,this.formats=m.default({},y,d)}}exports.AdapterMoment=M;
package/index.cjs12.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("./index.cjs83.js"),v=require("react"),N=require("./index.cjs69.js"),j=require("./index.cjs80.js"),R=require("./index.cjs73.js"),d=require("./index.cjs14.js"),i=require("./index.cjs96.js"),s=require("./index.cjs48.js"),p=require("./index.cjs97.js"),f=require("./index.cjs98.js"),k=require("./index.cjs99.js"),I=({totalItems:l,onPageChange:c,selectedPage:r,className:o,withoutText:a,itemsPerPage:S=6})=>{const t=Math.ceil(l/S),u=Array.from(Array(t).keys()),g=n=>r===t-3&&n===t-2||r===t-2&&n===t-5||r===t-1&&(n===t-4||n===t-5)||r===t&&(r===n+3||r===n+4||r===n+5),b=()=>{const n=document.getElementById("gridList");setTimeout(()=>{n?n.scrollIntoView({behavior:window.navigator.userAgent.indexOf("iPhone")!==-1?"auto":"smooth"}):window.scrollTo({top:0,behavior:window.navigator.userAgent.indexOf("iPhone")!==-1?"auto":"smooth"})},500)},x=n=>{b(),c(n+1)};return!t||t<=1?null:e.jsx(i.Pagination,{className:N.cn("",o),children:e.jsxs(i.PaginationContent,{children:[e.jsx(i.PaginationItem,{children:e.jsx(i.PaginationPrevious,{"data-testid":"paginationPrevius",hasText:!a,className:h({"cursor-pointer":!0,"pointer-events-none text-disabled":r===1}),onClick:()=>{x(r-2)}})}),e.jsx(d.ShouldRender,{shouldRender:t<=6,children:u==null?void 0:u.map(n=>e.jsx(i.PaginationItem,{children:e.jsx(i.PaginationLink,{"data-testid":`pagination${n}`,isActive:r===n+1,className:h({"cursor-pointer":!0}),onClick:()=>{x(n)},children:n+1<10?`0${n+1}`:n+1})},n))}),e.jsx(d.ShouldRender,{shouldRender:t>6,children:u==null?void 0:u.map(n=>e.jsxs(v.Fragment,{children:[e.jsx(d.ShouldRender,{shouldRender:r<5&&n<5||n+1===t||n===0,children:e.jsx(i.PaginationItem,{children:e.jsx(i.PaginationLink,{"data-testid":`pagination${n}`,isActive:r===n+1,className:h({"cursor-pointer":!0}),onClick:()=>{x(n)},children:n+1<10?`0${n+1}`:n+1})},n)}),e.jsx(d.ShouldRender,{shouldRender:r>=5&&(r===n||r===n+2||r===n+1||g(n))&&n+1!==t,children:e.jsx(i.PaginationItem,{children:e.jsx(i.PaginationLink,{"data-testid":`pagination${n}`,isActive:r===n+1,className:h({"cursor-pointer":!0}),onClick:()=>{x(n)},children:n+1<10?`0${n+1}`:n+1})},n)},p()),e.jsx(d.ShouldRender,{shouldRender:r>=5&&(r===n||r===n+3)&&r<t-3,children:e.jsx(m,{})}),e.jsx(d.ShouldRender,{shouldRender:r<5&&n===5,children:e.jsx(m,{})}),e.jsx(d.ShouldRender,{shouldRender:r>=5&&r>t-4&&n===0,children:e.jsx(m,{})})]},p()))}),e.jsx(i.PaginationItem,{children:e.jsx(i.PaginationNext,{"data-testid":"paginationNext",hasText:!a,className:h({"cursor-pointer":!0,"pointer-events-none text-disabled":r===t}),onClick:()=>{x(r)}})})]})})},m=()=>e.jsx(i.PaginationItem,{className:"flex w-space-05 items-center justify-center text-center",children:e.jsx(i.PaginationLink,{className:h({"pointer-events-none":!0}),children:"..."})}),q=({currentPage:l,totalCount:c,limit:r=10})=>{const o=Math.ceil(c/r);return e.jsx("div",{className:"flex-1 text-body-01",children:j.strings.formatString(j.strings.Shared.PaginationDesc,l,o)})},C=({value:l,onChange:c})=>{const{dir:r}=R.default();return e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"block whitespace-nowrap text-body-01",children:[j.strings.Shared.LinesPerPage," :"]}),e.jsxs(s.Select,{dir:r,value:l.toString(),onValueChange:o=>c(o),children:[e.jsx(s.SelectTrigger,{className:"!h-space-06",children:e.jsx(s.SelectValue,{placeholder:j.strings.Shared.Select})}),e.jsx(s.SelectContent,{children:e.jsxs(s.SelectGroup,{children:[e.jsx(s.SelectItem,{value:"5",children:"5"}),e.jsx(s.SelectItem,{value:"10",children:"10"}),e.jsx(s.SelectItem,{value:"15",children:"15"}),e.jsx(s.SelectItem,{value:"20",children:"20"}),e.jsx(s.SelectItem,{value:"25",children:"25"})]})})]})]})},L=({setCurrentPage:l,currentPage:c,totalPages:r,disabled:o})=>r<=1?null:e.jsxs("div",{className:"flex gap-space-02",children:[e.jsx("button",{disabled:o??c===1,className:"!p-space-02 disabled:border-disabled disabled:text-disabled",onClick:()=>l(a=>a>1?a-1:a),children:e.jsx(f,{className:"ltr:rotate-180"})}),e.jsx("button",{disabled:o??c===r,className:"!p-space-02 disabled:border-disabled disabled:text-disabled",onClick:()=>l(a=>o?a:a+1),children:e.jsx(k,{className:"ltr:rotate-180"})})]});exports.LinesPerPage=C;exports.Pagination=I;exports.PaginationDescription=q;exports.SliderPagination=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),m=require("./index.cjs76.js"),x=require("./index.cjs88.js"),f=require("./index.cjs80.js"),c=require("./index.cjs14.js"),r=require("./index.cjs110.js"),s=require("./index.cjs55.js"),v=require("./index.cjs111.js"),R=require("./index.cjs112.js"),k=({totalItems:l,onPageChange:d,selectedPage:t,className:a,withoutText:o,itemsPerPage:S=6})=>{const i=Math.ceil(l/S),h=Array.from(Array(i).keys()),b=n=>t===i-3&&n===i-2||t===i-2&&n===i-5||t===i-1&&(n===i-4||n===i-5)||t===i&&(t===n+3||t===n+4||t===n+5),g=()=>{const n=document.getElementById("gridList");setTimeout(()=>{n?n.scrollIntoView({behavior:window.navigator.userAgent.indexOf("iPhone")!==-1?"auto":"smooth"}):window.scrollTo({top:0,behavior:window.navigator.userAgent.indexOf("iPhone")!==-1?"auto":"smooth"})},500)},u=n=>{g(),d(n+1)};return!i||i<=1?null:e.jsx(r.Pagination,{className:m.cn("",a),children:e.jsxs(r.PaginationContent,{children:[e.jsx(r.PaginationItem,{children:e.jsx(r.PaginationPrevious,{"data-testid":"paginationPrevius",hasText:!o,disabled:t===1,onClick:()=>{t!==1&&u(t-2)}})}),e.jsx(c.ShouldRender,{shouldRender:i<=6,children:h==null?void 0:h.map(n=>e.jsx(r.PaginationItem,{children:e.jsx(r.PaginationLink,{"data-testid":`pagination${n}`,isActive:t===n+1,onClick:()=>{u(n)},children:n+1<10?`0${n+1}`:n+1})},n))}),e.jsx(c.ShouldRender,{shouldRender:i>6,children:h==null?void 0:h.map(n=>e.jsxs(p.Fragment,{children:[e.jsx(c.ShouldRender,{shouldRender:t<5&&n<5||n+1===i||n===0,children:e.jsx(r.PaginationItem,{children:e.jsx(r.PaginationLink,{"data-testid":`pagination${n}`,isActive:t===n+1,onClick:()=>{u(n)},children:n+1<10?`0${n+1}`:n+1})},n)}),e.jsx(c.ShouldRender,{shouldRender:t>=5&&(t===n||t===n+2||t===n+1||b(n))&&n+1!==i,children:e.jsx(r.PaginationItem,{children:e.jsx(r.PaginationLink,{"data-testid":`pagination${n}`,isActive:t===n+1,onClick:()=>{u(n)},children:n+1<10?`0${n+1}`:n+1})},n)}),e.jsx(c.ShouldRender,{shouldRender:t>=5&&(t===n||t===n+3)&&t<i-3,children:e.jsx(j,{})}),e.jsx(c.ShouldRender,{shouldRender:t<5&&n===5,children:e.jsx(j,{})}),e.jsx(c.ShouldRender,{shouldRender:t>=5&&t>i-4&&n===0,children:e.jsx(j,{})})]},n))}),e.jsx(r.PaginationItem,{children:e.jsx(r.PaginationNext,{"data-testid":"paginationNext",hasText:!o,disabled:t===i,onClick:()=>{t!==i&&u(t)}})})]})})},j=()=>e.jsx(r.PaginationItem,{className:"flex w-space-05 items-center justify-center text-center",children:e.jsx(r.PaginationLink,{className:m.cn({"pointer-events-none":!0}),children:"..."})}),I=({currentPage:l,totalCount:d,limit:t=10})=>{const a=Math.ceil(d/t);return e.jsx("div",{className:"flex-1 text-body-01",children:x.strings.formatString(x.strings.Shared.PaginationDesc,l,a)})},N=({value:l,onChange:d})=>{const{dir:t}=f.default();return e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"block whitespace-nowrap text-body-01",children:[x.strings.Shared.LinesPerPage," :"]}),e.jsxs(s.Select,{dir:t,value:l.toString(),onValueChange:a=>d(a),children:[e.jsx(s.SelectTrigger,{className:"!h-space-06",children:e.jsx(s.SelectValue,{placeholder:x.strings.Shared.Select})}),e.jsx(s.SelectContent,{children:e.jsxs(s.SelectGroup,{children:[e.jsx(s.SelectItem,{value:"5",children:"5"}),e.jsx(s.SelectItem,{value:"10",children:"10"}),e.jsx(s.SelectItem,{value:"15",children:"15"}),e.jsx(s.SelectItem,{value:"20",children:"20"}),e.jsx(s.SelectItem,{value:"25",children:"25"})]})})]})]})},C=({setCurrentPage:l,currentPage:d,totalPages:t,disabled:a})=>t<=1?null:e.jsxs("div",{className:"flex gap-space-02",children:[e.jsx("button",{disabled:a??d===1,className:"!p-space-02 disabled:border-disabled disabled:text-disabled-text-default-disabled",onClick:()=>l(o=>o>1?o-1:o),children:e.jsx(v.default,{className:"ltr:rotate-180"})}),e.jsx("button",{disabled:a??d===t,className:"!p-space-02 disabled:border-disabled disabled:text-disabled-text-default-disabled",onClick:()=>l(o=>a?o:o+1),children:e.jsx(R.default,{className:"ltr:rotate-180"})})]});exports.LinesPerPage=N;exports.Pagination=k;exports.PaginationDescription=I;exports.SliderPagination=C;
package/index.cjs120.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs138.js");const c=e("Check",[["path",{d:"M8.79508 15.8749L4.62508 11.7049L3.20508 13.1149L8.79508 18.7049L20.7951 6.70492L19.3851 5.29492L8.79508 15.8749Z",key:"5stcsf"}]]);module.exports=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const He=require("./index.cjs192.js"),b=require("./index.cjs191.js"),Ye=require("react"),e=require("./index.cjs193.js"),Ee=require("./index.cjs92.js"),ze=require("./index.cjs194.js"),K=require("./index.cjs195.js"),$e=require("./index.cjs196.js"),Le=require("./index.cjs197.js"),Ie=require("./index.cjs198.js"),M=require("./index.cjs199.js"),Ue=require("./index.cjs200.js"),Ge=require("./index.cjs201.js"),Be=require("./index.cjs202.js"),Ke=require("./index.cjs203.js"),Je=require("./index.cjs204.js"),f=require("react/jsx-runtime"),ie=require("./index.cjs205.js"),Qe=require("./index.cjs206.js"),Xe=require("./index.cjs207.js"),Ze=require("./index.cjs208.js"),ea=require("./index.cjs209.js"),B=require("./index.cjs210.js"),aa=require("./index.cjs211.js"),ta=require("./index.cjs212.js"),na=require("./index.cjs213.js"),oa=require("./index.cjs214.js");function sa(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const i in s)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(n,i,u.get?u:{enumerable:!0,get:()=>s[i]})}}return n.default=s,Object.freeze(n)}const V=sa(Ye),ra=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],la=s=>{const{classes:n}=s,i={root:["root"],viewTransitionContainer:["viewTransitionContainer"]};return na.default(i,Ge.getDateCalendarUtilityClass,n)};function ia(s,n){var i,u,p,C,t,O,h;const x=K.useUtils(),T=K.useDefaultDates(),N=Ue.useDefaultReduceAnimations(),r=oa.default({props:s,name:n});return b.default({},r,{loading:(i=r.loading)!=null?i:!1,disablePast:(u=r.disablePast)!=null?u:!1,disableFuture:(p=r.disableFuture)!=null?p:!1,openTo:(C=r.openTo)!=null?C:"day",views:(t=r.views)!=null?t:["year","day"],reduceAnimations:(O=r.reduceAnimations)!=null?O:N,renderLoading:(h=r.renderLoading)!=null?h:()=>f.jsx("span",{children:"..."}),minDate:M.applyDefaultDate(x,r.minDate,T.minDate),maxDate:M.applyDefaultDate(x,r.maxDate,T.maxDate)})}const da=ie.default(Qe.PickerViewRoot,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(s,n)=>n.root})({display:"flex",flexDirection:"column",height:Je.VIEW_HEIGHT}),ua=ie.default($e.PickersFadeTransitionGroup,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(s,n)=>n.viewTransitionContainer})({}),de=V.forwardRef(function(n,i){var u,p,C;const t=K.useUtils(),O=Xe.default(),h=ia(n,"MuiDateCalendar"),{autoFocus:x,onViewChange:T,value:N,defaultValue:r,referenceDate:ue,disableFuture:g,disablePast:y,defaultCalendarMonth:ce,onChange:fe,onYearChange:J,onMonthChange:W,reduceAnimations:F,shouldDisableDate:Q,shouldDisableMonth:X,shouldDisableYear:Z,view:he,views:ee,openTo:me,className:ae,disabled:q,readOnly:De,minDate:m,maxDate:D,disableHighlightToday:be,focusedView:pe,onFocusedViewChange:Ce,showDaysOutsideCurrentMonth:ge,fixedWeekNumber:ye,dayOfWeekFormatter:we,components:A,componentsProps:S,slots:R,slotProps:j,loading:Pe,renderLoading:ve,displayWeekNumber:Ve,yearsPerRow:Me,monthsPerRow:Oe,timezone:xe}=h,Te=He.default(h,ra),{value:o,handleValueChange:_,timezone:w}=Be.useControlledValueWithTimezone({name:"DateCalendar",timezone:xe,value:N,defaultValue:r,onChange:fe,valueManager:Ke.singleItemValueManager}),{view:l,setView:Fe,focusedView:H,setFocusedView:P,goToNextView:te,setValueAndGoToNextView:ne}=Ie.useViews({view:he,views:ee,openTo:me,onChange:_,onViewChange:T,autoFocus:x,focusedView:pe,onFocusedViewChange:Ce}),{referenceDate:Y,calendarState:oe,changeFocusedDay:E,changeMonth:z,handleChangeMonth:qe,isDateDisabled:k,onMonthSwitchingAnimationEnd:Re}=ze.useCalendarState({value:o,defaultCalendarMonth:ce,referenceDate:ue,reduceAnimations:F,onMonthChange:W,minDate:m,maxDate:D,shouldDisableDate:Q,disablePast:y,disableFuture:g,timezone:w}),je=q&&o||m,ke=q&&o||D,se=`${O}-grid-label`,$=H!==null,re=(u=(p=R==null?void 0:R.calendarHeader)!=null?p:A==null?void 0:A.CalendarHeader)!=null?u:Ze.PickersCalendarHeader,Ne=ea.default({elementType:re,externalSlotProps:(C=j==null?void 0:j.calendarHeader)!=null?C:S==null?void 0:S.calendarHeader,additionalProps:{views:ee,view:l,currentMonth:oe.currentMonth,onViewChange:Fe,onMonthChange:(a,d)=>qe({newMonth:a,direction:d}),minDate:je,maxDate:ke,disabled:q,disablePast:y,disableFuture:g,reduceAnimations:F,timezone:w,labelId:se,slots:R,slotProps:j},ownerState:h}),We=B.default(a=>{const d=t.startOfMonth(a),v=t.endOfMonth(a),c=k(a)?M.findClosestEnabledDate({utils:t,date:a,minDate:t.isBefore(m,d)?d:m,maxDate:t.isAfter(D,v)?v:D,disablePast:y,disableFuture:g,isDateDisabled:k,timezone:w}):a;c?(ne(c,"finish"),W==null||W(d)):(te(),z(d)),E(c,!0)}),Ae=B.default(a=>{const d=t.startOfYear(a),v=t.endOfYear(a),c=k(a)?M.findClosestEnabledDate({utils:t,date:a,minDate:t.isBefore(m,d)?d:m,maxDate:t.isAfter(D,v)?v:D,disablePast:y,disableFuture:g,isDateDisabled:k,timezone:w}):a;c?(ne(c,"finish"),J==null||J(c)):(te(),z(d)),E(c,!0)}),Se=B.default(a=>_(a&&M.mergeDateAndTime(t,a,o??Y),"finish",l));V.useEffect(()=>{o!=null&&t.isValid(o)&&z(o)},[o]);const L=h,le=la(L),I={disablePast:y,disableFuture:g,maxDate:D,minDate:m},U={disableHighlightToday:be,readOnly:De,disabled:q,timezone:w,gridLabelId:se},G=V.useRef(l);V.useEffect(()=>{G.current!==l&&(H===G.current&&P(l,!0),G.current=l)},[H,P,l]);const _e=V.useMemo(()=>[o],[o]);return f.jsxs(da,b.default({ref:i,className:Ee.clsx(le.root,ae),ownerState:L},Te,{children:[f.jsx(re,b.default({},Ne)),f.jsx(ua,{reduceAnimations:F,className:le.viewTransitionContainer,transKey:l,ownerState:L,children:f.jsxs("div",{children:[l==="year"&&f.jsx(aa.YearCalendar,b.default({},I,U,{value:o,onChange:Ae,shouldDisableYear:Z,hasFocus:$,onFocusedViewChange:a=>P("year",a),yearsPerRow:Me,referenceDate:Y})),l==="month"&&f.jsx(ta.MonthCalendar,b.default({},I,U,{hasFocus:$,className:ae,value:o,onChange:We,shouldDisableMonth:X,onFocusedViewChange:a=>P("month",a),monthsPerRow:Oe,referenceDate:Y})),l==="day"&&f.jsx(Le.DayCalendar,b.default({},oe,I,U,{onMonthSwitchingAnimationEnd:Re,onFocusedDayChange:E,reduceAnimations:F,selectedDays:_e,onSelectedDaysChange:Se,shouldDisableDate:Q,shouldDisableMonth:X,shouldDisableYear:Z,hasFocus:$,onFocusedViewChange:a=>P("day",a),showDaysOutsideCurrentMonth:ge,fixedWeekNumber:ye,dayOfWeekFormatter:we,displayWeekNumber:Ve,components:A,componentsProps:S,slots:R,slotProps:j,loading:Pe,renderLoading:ve}))]})})]}))});process.env.NODE_ENV!=="production"&&(de.propTypes={autoFocus:e.default.bool,classes:e.default.object,className:e.default.string,components:e.default.object,componentsProps:e.default.object,dayOfWeekFormatter:e.default.func,defaultCalendarMonth:e.default.any,defaultValue:e.default.any,disabled:e.default.bool,disableFuture:e.default.bool,disableHighlightToday:e.default.bool,disablePast:e.default.bool,displayWeekNumber:e.default.bool,fixedWeekNumber:e.default.number,focusedView:e.default.oneOf(["day","month","year"]),loading:e.default.bool,maxDate:e.default.any,minDate:e.default.any,monthsPerRow:e.default.oneOf([3,4]),onChange:e.default.func,onFocusedViewChange:e.default.func,onMonthChange:e.default.func,onViewChange:e.default.func,onYearChange:e.default.func,openTo:e.default.oneOf(["day","month","year"]),readOnly:e.default.bool,reduceAnimations:e.default.bool,referenceDate:e.default.any,renderLoading:e.default.func,shouldDisableDate:e.default.func,shouldDisableMonth:e.default.func,shouldDisableYear:e.default.func,showDaysOutsideCurrentMonth:e.default.bool,slotProps:e.default.object,slots:e.default.object,sx:e.default.oneOfType([e.default.arrayOf(e.default.oneOfType([e.default.func,e.default.object,e.default.bool])),e.default.func,e.default.object]),timezone:e.default.string,value:e.default.any,view:e.default.oneOf(["day","month","year"]),views:e.default.arrayOf(e.default.oneOf(["day","month","year"]).isRequired),yearsPerRow:e.default.oneOf([3,4])});exports.DateCalendar=de;
package/index.cjs121.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs143.js"),a=require("react"),c=require("./index.cjs144.js"),{useDebugValue:l}=a,{useSyncExternalStoreWithSelector:E}=c;const d=e=>e;function s(e,t=d,o){const r=E(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,o);return l(r),r}const n=e=>{const t=typeof e=="function"?i.createStore(e):e,o=(r,u)=>s(t,r,u);return Object.assign(o,t),o},S=e=>e?n(e):n;exports.createStore=i.createStore;exports.create=S;exports.useStore=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("./index.cjs188.js"),ye=require("@radix-ui/react-dialog"),Ce=require("react");function ae(r){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(u,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return u.default=r,Object.freeze(u)}const F=ae(ye),t=ae(Ce);var Se='[cmdk-list-sizer=""]',q='[cmdk-group=""]',G='[cmdk-group-items=""]',ke='[cmdk-group-heading=""]',X='[cmdk-item=""]',le=`${X}:not([aria-disabled="true"])`,H="cmdk-item-select",w="data-value",Re=(r,u)=>we.a(r,u),ue=t.createContext(void 0),$=()=>t.useContext(ue),oe=t.createContext(void 0),B=()=>t.useContext(oe),ie=t.createContext(void 0),J=t.forwardRef((r,u)=>{let n=t.useRef(null),a=x(()=>{var e,o,i;return{search:"",value:(i=(o=r.value)!=null?o:(e=r.defaultValue)==null?void 0:e.toLowerCase())!=null?i:"",filtered:{count:0,items:new Map,groups:new Set}}}),c=x(()=>new Set),d=x(()=>new Map),s=x(()=>new Map),v=x(()=>new Set),f=be(r),{label:h,children:p,value:E,onValueChange:A,filter:D,shouldFilter:R,vimBindings:L=!0,...y}=r,Q=t.useId(),U=t.useId(),W=t.useId(),C=Ae();M(()=>{if(E!==void 0){let e=E.trim().toLowerCase();a.current.value=e,C(6,Z),m.emit()}},[E]);let m=t.useMemo(()=>({subscribe:e=>(v.current.add(e),()=>v.current.delete(e)),snapshot:()=>a.current,setState:(e,o,i)=>{var l,g,b;if(!Object.is(a.current[e],o)){if(a.current[e]=o,e==="search")T(),K(),C(1,V);else if(e==="value")if(((l=f.current)==null?void 0:l.value)!==void 0){let S=o??"";(b=(g=f.current).onValueChange)==null||b.call(g,S);return}else i||C(5,Z);m.emit()}},emit:()=>{v.current.forEach(e=>e())}}),[]),I=t.useMemo(()=>({value:(e,o)=>{o!==s.current.get(e)&&(s.current.set(e,o),a.current.filtered.items.set(e,Y(o)),C(2,()=>{K(),m.emit()}))},item:(e,o)=>(c.current.add(e),o&&(d.current.has(o)?d.current.get(o).add(e):d.current.set(o,new Set([e]))),C(3,()=>{T(),K(),a.current.value||V(),m.emit()}),()=>{s.current.delete(e),c.current.delete(e),a.current.filtered.items.delete(e);let i=P();C(4,()=>{T(),(i==null?void 0:i.getAttribute("id"))===e&&V(),m.emit()})}),group:e=>(d.current.has(e)||d.current.set(e,new Set),()=>{s.current.delete(e),d.current.delete(e)}),filter:()=>f.current.shouldFilter,label:h||r["aria-label"],commandRef:n,listId:Q,inputId:W,labelId:U}),[]);function Y(e){var o,i;let l=(i=(o=f.current)==null?void 0:o.filter)!=null?i:Re;return e?l(e,a.current.search):0}function K(){if(!n.current||!a.current.search||f.current.shouldFilter===!1)return;let e=a.current.filtered.items,o=[];a.current.filtered.groups.forEach(l=>{let g=d.current.get(l),b=0;g.forEach(S=>{let _=e.get(S);b=Math.max(_,b)}),o.push([l,b])});let i=n.current.querySelector(Se);O().sort((l,g)=>{var b,S;let _=l.getAttribute(w),Ee=g.getAttribute(w);return((b=e.get(Ee))!=null?b:0)-((S=e.get(_))!=null?S:0)}).forEach(l=>{let g=l.closest(G);g?g.appendChild(l.parentElement===g?l:l.closest(`${G} > *`)):i.appendChild(l.parentElement===i?l:l.closest(`${G} > *`))}),o.sort((l,g)=>g[1]-l[1]).forEach(l=>{let g=n.current.querySelector(`${q}[${w}="${l[0]}"]`);g==null||g.parentElement.appendChild(g)})}function V(){let e=O().find(i=>!i.ariaDisabled),o=e==null?void 0:e.getAttribute(w);m.setState("value",o||void 0)}function T(){if(!a.current.search||f.current.shouldFilter===!1){a.current.filtered.count=c.current.size;return}a.current.filtered.groups=new Set;let e=0;for(let o of c.current){let i=s.current.get(o),l=Y(i);a.current.filtered.items.set(o,l),l>0&&e++}for(let[o,i]of d.current)for(let l of i)if(a.current.filtered.items.get(l)>0){a.current.filtered.groups.add(o);break}a.current.filtered.count=e}function Z(){var e,o,i;let l=P();l&&(((e=l.parentElement)==null?void 0:e.firstChild)===l&&((i=(o=l.closest(q))==null?void 0:o.querySelector(ke))==null||i.scrollIntoView({block:"nearest"})),l.scrollIntoView({block:"nearest"}))}function P(){var e;return(e=n.current)==null?void 0:e.querySelector(`${X}[aria-selected="true"]`)}function O(){return Array.from(n.current.querySelectorAll(le))}function z(e){let o=O()[e];o&&m.setState("value",o.getAttribute(w))}function N(e){var o;let i=P(),l=O(),g=l.findIndex(S=>S===i),b=l[g+e];(o=f.current)!=null&&o.loop&&(b=g+e<0?l[l.length-1]:g+e===l.length?l[0]:l[g+e]),b&&m.setState("value",b.getAttribute(w))}function ee(e){let o=P(),i=o==null?void 0:o.closest(q),l;for(;i&&!l;)i=e>0?xe(i,q):Me(i,q),l=i==null?void 0:i.querySelector(le);l?m.setState("value",l.getAttribute(w)):N(e)}let te=()=>z(O().length-1),re=e=>{e.preventDefault(),e.metaKey?te():e.altKey?ee(1):N(1)},ne=e=>{e.preventDefault(),e.metaKey?z(0):e.altKey?ee(-1):N(-1)};return t.createElement("div",{ref:j([n,u]),...y,"cmdk-root":"",onKeyDown:e=>{var o;if((o=y.onKeyDown)==null||o.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{L&&e.ctrlKey&&re(e);break}case"ArrowDown":{re(e);break}case"p":case"k":{L&&e.ctrlKey&&ne(e);break}case"ArrowUp":{ne(e);break}case"Home":{e.preventDefault(),z(0);break}case"End":{e.preventDefault(),te();break}case"Enter":if(!e.nativeEvent.isComposing){e.preventDefault();let i=P();if(i){let l=new Event(H);i.dispatchEvent(l)}}}}},t.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:De},h),t.createElement(oe.Provider,{value:m},t.createElement(ue.Provider,{value:I},p)))}),ce=t.forwardRef((r,u)=>{var n,a;let c=t.useId(),d=t.useRef(null),s=t.useContext(ie),v=$(),f=be(r),h=(a=(n=f.current)==null?void 0:n.forceMount)!=null?a:s==null?void 0:s.forceMount;M(()=>v.item(c,s==null?void 0:s.id),[]);let p=he(c,d,[r.value,r.children,d]),E=B(),A=k(m=>m.value&&m.value===p.current),D=k(m=>h||v.filter()===!1?!0:m.search?m.filtered.items.get(c)>0:!0);t.useEffect(()=>{let m=d.current;if(!(!m||r.disabled))return m.addEventListener(H,R),()=>m.removeEventListener(H,R)},[D,r.onSelect,r.disabled]);function R(){var m,I;L(),(I=(m=f.current).onSelect)==null||I.call(m,p.current)}function L(){E.setState("value",p.current,!0)}if(!D)return null;let{disabled:y,value:Q,onSelect:U,forceMount:W,...C}=r;return t.createElement("div",{ref:j([d,u]),...C,id:c,"cmdk-item":"",role:"option","aria-disabled":y||void 0,"aria-selected":A||void 0,"data-disabled":y||void 0,"data-selected":A||void 0,onPointerMove:y?void 0:L,onClick:y?void 0:R},r.children)}),de=t.forwardRef((r,u)=>{let{heading:n,children:a,forceMount:c,...d}=r,s=t.useId(),v=t.useRef(null),f=t.useRef(null),h=t.useId(),p=$(),E=k(R=>c||p.filter()===!1?!0:R.search?R.filtered.groups.has(s):!0);M(()=>p.group(s),[]),he(s,v,[r.value,r.heading,f]);let A=t.useMemo(()=>({id:s,forceMount:c}),[c]),D=t.createElement(ie.Provider,{value:A},a);return t.createElement("div",{ref:j([v,u]),...d,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&t.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),t.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},D))}),se=t.forwardRef((r,u)=>{let{alwaysRender:n,...a}=r,c=t.useRef(null),d=k(s=>!s.search);return!n&&!d?null:t.createElement("div",{ref:j([c,u]),...a,"cmdk-separator":"",role:"separator"})}),fe=t.forwardRef((r,u)=>{let{onValueChange:n,...a}=r,c=r.value!=null,d=B(),s=k(p=>p.search),v=k(p=>p.value),f=$(),h=t.useMemo(()=>{var p;let E=(p=f.commandRef.current)==null?void 0:p.querySelector(`${X}[${w}="${v}"]`);return E==null?void 0:E.getAttribute("id")},[v,f.commandRef]);return t.useEffect(()=>{r.value!=null&&d.setState("search",r.value)},[r.value]),t.createElement("input",{ref:u,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:c?r.value:s,onChange:p=>{c||d.setState("search",p.target.value),n==null||n(p.target.value)}})}),me=t.forwardRef((r,u)=>{let{children:n,...a}=r,c=t.useRef(null),d=t.useRef(null),s=$();return t.useEffect(()=>{if(d.current&&c.current){let v=d.current,f=c.current,h,p=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=v.offsetHeight;f.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return p.observe(v),()=>{cancelAnimationFrame(h),p.unobserve(v)}}},[]),t.createElement("div",{ref:j([c,u]),...a,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},t.createElement("div",{ref:d,"cmdk-list-sizer":""},n))}),ve=t.forwardRef((r,u)=>{let{open:n,onOpenChange:a,overlayClassName:c,contentClassName:d,container:s,...v}=r;return t.createElement(F.Root,{open:n,onOpenChange:a},t.createElement(F.Portal,{container:s},t.createElement(F.Overlay,{"cmdk-overlay":"",className:c}),t.createElement(F.Content,{"aria-label":r.label,"cmdk-dialog":"",className:d},t.createElement(J,{ref:u,...v}))))}),pe=t.forwardRef((r,u)=>{let n=t.useRef(!0),a=k(c=>c.filtered.count===0);return t.useEffect(()=>{n.current=!1},[]),n.current||!a?null:t.createElement("div",{ref:u,...r,"cmdk-empty":"",role:"presentation"})}),ge=t.forwardRef((r,u)=>{let{progress:n,children:a,...c}=r;return t.createElement("div",{ref:u,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},t.createElement("div",{"aria-hidden":!0},a))}),Ie=Object.assign(J,{List:me,Item:ce,Input:fe,Group:de,Separator:se,Dialog:ve,Empty:pe,Loading:ge});function xe(r,u){let n=r.nextElementSibling;for(;n;){if(n.matches(u))return n;n=n.nextElementSibling}}function Me(r,u){let n=r.previousElementSibling;for(;n;){if(n.matches(u))return n;n=n.previousElementSibling}}function be(r){let u=t.useRef(r);return M(()=>{u.current=r}),u}var M=typeof window>"u"?t.useEffect:t.useLayoutEffect;function x(r){let u=t.useRef();return u.current===void 0&&(u.current=r()),u}function j(r){return u=>{r.forEach(n=>{typeof n=="function"?n(u):n!=null&&(n.current=u)})}}function k(r){let u=B(),n=()=>r(u.snapshot());return t.useSyncExternalStore(u.subscribe,n,n)}function he(r,u,n){let a=t.useRef(),c=$();return M(()=>{var d;let s=(()=>{var v;for(let f of n){if(typeof f=="string")return f.trim().toLowerCase();if(typeof f=="object"&&"current"in f)return f.current?(v=f.current.textContent)==null?void 0:v.trim().toLowerCase():a.current}})();c.value(r,s),(d=u.current)==null||d.setAttribute(w,s),a.current=s}),a}var Ae=()=>{let[r,u]=t.useState(),n=x(()=>new Map);return M(()=>{n.current.forEach(a=>a()),n.current=new Map},[r]),(a,c)=>{n.current.set(a,c),u({})}},De={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};exports.Command=Ie;exports.CommandDialog=ve;exports.CommandEmpty=pe;exports.CommandGroup=de;exports.CommandInput=fe;exports.CommandItem=ce;exports.CommandList=me;exports.CommandLoading=ge;exports.CommandRoot=J;exports.CommandSeparator=se;exports.useCommandState=k;
package/index.cjs122.js CHANGED
@@ -1 +1 @@
1
- "use strict";const V=require("./index.cjs138.js");const e=V("ViewSidebar",[["path",{d:"M2 4V20H22V4H2ZM20 8.67H17.5V6H20V8.67ZM17.5 10.67H20V13.34H17.5V10.67ZM4 6H15.5V18H4V6ZM17.5 18V15.33H20V18H17.5Z",key:"mhap71"}]]);module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("Search",[["path",{d:"M15.7549 14.2549H14.9649L14.6849 13.9849C15.6649 12.8449 16.2549 11.3649 16.2549 9.75488C16.2549 6.16488 13.3449 3.25488 9.75488 3.25488C6.16488 3.25488 3.25488 6.16488 3.25488 9.75488C3.25488 13.3449 6.16488 16.2549 9.75488 16.2549C11.3649 16.2549 12.8449 15.6649 13.9849 14.6849L14.2549 14.9649V15.7549L19.2549 20.7449L20.7449 19.2549L15.7549 14.2549ZM9.75488 14.2549C7.26488 14.2549 5.25488 12.2449 5.25488 9.75488C5.25488 7.26488 7.26488 5.25488 9.75488 5.25488C12.2449 5.25488 14.2549 7.26488 14.2549 9.75488C14.2549 12.2449 12.2449 14.2549 9.75488 14.2549Z",key:"1ac8z8"}]]);exports.default=t;
package/index.cjs123.js CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./index.cjs138.js");const H=t("WidthFull",[["path",{d:"M20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4ZM4 18V6H5V18H4ZM7 18V6H17V18H7ZM20 18H19V6H20V18Z",key:"xybwpn"}]]);module.exports=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const H=e.default("DateRange",[["path",{d:"M7 11H9V13H7V11ZM21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM15 13H17V11H15V13ZM11 13H13V11H11V13Z",key:"1kdlay"}]]);exports.default=H;
package/index.cjs124.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(c),i=1280;function a(){const[e,n]=r.useState(void 0);return r.useEffect(()=>{const t=window.matchMedia(`(max-width: ${i-1}px)`),o=()=>{n(window.innerWidth<i)};return t.addEventListener("change",o),n(window.innerWidth<i),()=>t.removeEventListener("change",o)},[]),!!e}exports.useIsMobile=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("ChevronRight",[["path",{d:"M9.70492 6L8.29492 7.41L12.8749 12L8.29492 16.59L9.70492 18L15.7049 12L9.70492 6Z",key:"xcu7tv"}]]);exports.default=t;
package/index.cjs125.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs138.js");const t=e("PanoramaVerticalSelect",[["path",{d:"M18.4979 12C18.4979 8.11 19.3379 5.05 19.9279 3.31C20.1479 2.67 19.6679 2 18.9779 2H4.99787C4.31787 2 3.83787 2.66 4.04787 3.31C4.73787 5.36 5.49787 8.1 5.49787 12C5.49787 15.87 4.73787 18.66 4.04787 20.69C3.83787 21.34 4.31787 22 4.99787 22H18.9979C19.6779 22 20.1679 21.34 19.9479 20.69C19.2679 18.66 18.4979 15.86 18.4979 12Z",key:"1gv1gj"}]]);module.exports=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("Check",[["path",{d:"M8.79508 15.8749L4.62508 11.7049L3.20508 13.1149L8.79508 18.7049L20.7951 6.70492L19.3851 5.29492L8.79508 15.8749Z",key:"5stcsf"}]]);exports.default=t;
package/index.cjs126.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ue=require("./index.cjs145.js");var Ce={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},b,k;exports.Log=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(exports.Log||{});(e=>{function t(){b=3,k=Ce}e.reset=t;function s(r){if(!(0<=r&&r<=4))throw new Error("Invalid log level");b=r}e.setLevel=s;function i(r){k=r}e.setLogger=i})(exports.Log||(exports.Log={}));var g=class v{constructor(t){this._name=t}debug(...t){b>=4&&k.debug(v._format(this._name,this._method),...t)}info(...t){b>=3&&k.info(v._format(this._name,this._method),...t)}warn(...t){b>=2&&k.warn(v._format(this._name,this._method),...t)}error(...t){b>=1&&k.error(v._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const i=new v(`${t}.${s}`);return i.debug("begin"),i}static _format(t,s){const i=`[${t}]`;return s?`${i} ${s}:`:i}static debug(t,...s){b>=4&&k.debug(v._format(t),...s)}static info(t,...s){b>=3&&k.info(v._format(t),...s)}static warn(t,...s){b>=2&&k.warn(v._format(t),...s)}static error(t,...s){b>=1&&k.error(v._format(t),...s)}};exports.Log.reset();var W=class{static decode(e){try{return Ue.jwtDecode(e)}catch(t){throw g.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,s){const i=f.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),r=f.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${i}.${r}`,n=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},s,new TextEncoder().encode(o)),a=f.encodeBase64Url(new Uint8Array(n));return`${o}.${a}`}},Ae="10000000-1000-4000-8000-100000000000",K=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),oe=class y{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return Ae.replace(/[018]/g,s=>(+s^y._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return y.generateUUIDv4()+y.generateUUIDv4()+y.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return K(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw g.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const r=new TextEncoder().encode([t,s].join(":"));return K(r)}static async hash(t,s){const i=new TextEncoder().encode(s),r=await crypto.subtle.digest(t,i);return new Uint8Array(r)}static async customCalculateJwkThumbprint(t){let s;switch(t.kty){case"RSA":s={e:t.e,kty:t.kty,n:t.n};break;case"EC":s={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":s={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":s={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}const i=await y.hash("SHA-256",JSON.stringify(s));return y.encodeBase64Url(i)}static async generateDPoPProof({url:t,accessToken:s,httpMethod:i,keyPair:r,nonce:o}){let n,a;const c={jti:window.crypto.randomUUID(),htm:i??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};s&&(n=await y.hash("SHA-256",s),a=y.encodeBase64Url(n),c.ath=a),o&&(c.nonce=o);try{const l=await crypto.subtle.exportKey("jwk",r.publicKey),d={alg:"ES256",typ:"dpop+jwt",jwk:{crv:l.crv,kty:l.kty,x:l.x,y:l.y}};return await W.generateSignedJwt(d,c,r.privateKey)}catch(l){throw l instanceof TypeError?new Error(`Error exporting dpop public key: ${l.message}`):l}}static async generateDPoPJkt(t){try{const s=await crypto.subtle.exportKey("jwk",t.publicKey);return await y.customCalculateJwkThumbprint(s)}catch(s){throw s instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${s.message}`):s}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}};oe.encodeBase64Url=e=>K(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var f=oe,I=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new g(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},se=class{static center({...e}){var t,s,i;return e.width==null&&(e.width=(t=[800,720,600,480].find(r=>r<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((i=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},T=class j extends I{constructor(){super(...arguments),this._logger=new g(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-j.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=j.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const i=j.getEpochTime()+t;if(this.expiration===i&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=i;const r=Math.min(t,5);this._timerHandle=setInterval(this._callback,r*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},L=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const i=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(i.slice(1))}},F=";",x=class extends Error{constructor(e,t){var s,i,r;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw g.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(i=e.error_uri)!=null?i:null,this.state=e.userState,this.session_state=(r=e.session_state)!=null?r:null,this.url_state=e.url_state}},$=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},ae=class{constructor(e){this._logger=new g("AccessTokenEvents"),this._expiringTimer=new T("Access token expiring"),this._expiredTimer=new T("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let r=s-this._expiringNotificationTimeInSeconds;r<=0&&(r=1),t.debug("registering expiring timer, raising in",r,"seconds"),this._expiringTimer.init(r)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const i=s+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},ce=class{constructor(e,t,s,i,r){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=r,this._logger=new g("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=n=>{n.origin===this._frame_origin&&n.source===this._frame.contentWindow&&(n.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):n.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(n.data+" message from check session op iframe"))};const o=new URL(s);this._frame_origin=o.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=o.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},G=class{constructor(){this._logger=new g("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},z=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},Q=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new g("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...i}=t;if(!s)return await fetch(e,i);const r=new AbortController,o=setTimeout(()=>r.abort(),s*1e3);try{return await fetch(e,{...t,signal:r.signal})}catch(n){throw n instanceof DOMException&&n.name==="AbortError"?new $("Network timed out"):n}finally{clearTimeout(o)}}async getJson(e,{token:t,credentials:s,timeoutInSeconds:i}={}){const r=this._logger.create("getJson"),o={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),o.Authorization="Bearer "+t),this.appendExtraHeaders(o);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:o,timeoutInSeconds:i,credentials:s})}catch(l){throw r.error("Network Error"),l}r.debug("HTTP response received, status",n.status);const a=n.headers.get("Content-Type");if(a&&!this._contentTypes.find(l=>a.startsWith(l))&&r.throw(new Error(`Invalid response Content-Type: ${a??"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(a!=null&&a.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let c;try{c=await n.json()}catch(l){throw r.error("Error parsing JSON response",l),n.ok?l:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",c),c.error?new x(c):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(c)}`);return c}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:i,initCredentials:r,extraHeaders:o}){const n=this._logger.create("postForm"),a={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...o};s!==void 0&&(a.Authorization="Basic "+s),this.appendExtraHeaders(a);let c;try{n.debug("url:",e),c=await this.fetchWithTimeout(e,{method:"POST",headers:a,body:t,timeoutInSeconds:i,credentials:r})}catch(u){throw n.error("Network error"),u}n.debug("HTTP response received, status",c.status);const l=c.headers.get("Content-Type");if(l&&!this._contentTypes.find(u=>l.startsWith(u)))throw new Error(`Invalid response Content-Type: ${l??"undefined"}, from URL: ${e}`);const d=await c.text();let h={};if(d)try{h=JSON.parse(d)}catch(u){throw n.error("Error parsing JSON response",u),c.ok?u:new Error(`${c.statusText} (${c.status})`)}if(!c.ok){if(n.error("Error from server:",h),c.headers.has("dpop-nonce")){const u=c.headers.get("dpop-nonce");throw new z(u,`${JSON.stringify(h)}`)}throw h.error?new x(h,t):new Error(`${c.statusText} (${c.status}): ${JSON.stringify(h)}`)}return h}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];s.length!==0&&s.forEach(r=>{if(i.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,i);return}const o=typeof this._extraHeaders[r]=="function"?this._extraHeaders[r]():this._extraHeaders[r];o&&o!==""&&(e[r]=o)})}},le=class{constructor(e){this._settings=e,this._logger=new g("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new Q(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(s.debug("resolved"),i[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},X=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new g("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s<e;s++){const i=await this._store.key(s);i&&i.indexOf(this._prefix)===0&&t.push(i.substr(this._prefix.length))}return t}},Oe="code",qe="openid",Ne="client_secret_post",Me=60*15,J=class{constructor({authority:e,metadataUrl:t,metadata:s,signingKeys:i,metadataSeed:r,client_id:o,client_secret:n,response_type:a=Oe,scope:c=qe,redirect_uri:l,post_logout_redirect_uri:d,client_authentication:h=Ne,prompt:u,display:p,max_age:U,ui_locales:C,acr_values:A,resource:O,response_mode:R,filterProtocolClaims:P=!0,loadUserInfo:q=!1,requestTimeoutInSeconds:m,staleStateAgeInSeconds:_=Me,mergeClaimsStrategy:E={array:"replace"},disablePKCE:S=!1,stateStore:w,revokeTokenAdditionalContentTypes:M,fetchRequestCredentials:ee,refreshTokenAllowedScope:ke,extraQueryParams:Ee={},extraTokenParams:Te={},extraHeaders:Re={},dpop:Pe,omitScopeWhenRequesting:Ie=!1}){var te;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=r,this.signingKeys=i,this.client_id=o,this.client_secret=n,this.response_type=a,this.scope=c,this.redirect_uri=l,this.post_logout_redirect_uri=d,this.client_authentication=h,this.prompt=u,this.display=p,this.max_age=U,this.ui_locales=C,this.acr_values=A,this.resource=O,this.response_mode=R,this.filterProtocolClaims=P??!0,this.loadUserInfo=!!q,this.staleStateAgeInSeconds=_,this.mergeClaimsStrategy=E,this.omitScopeWhenRequesting=Ie,this.disablePKCE=!!S,this.revokeTokenAdditionalContentTypes=M,this.fetchRequestCredentials=ee||"same-origin",this.requestTimeoutInSeconds=m,w)this.stateStore=w;else{const xe=typeof window<"u"?window.localStorage:new G;this.stateStore=new X({store:xe})}if(this.refreshTokenAllowedScope=ke,this.extraQueryParams=Ee,this.extraTokenParams=Te,this.extraHeaders=Re,this.dpop=Pe,this.dpop&&!((te=this.dpop)!=null&&te.store))throw new Error("A DPoPStore is required when dpop is enabled")}},je=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("UserInfoService"),this._getClaimsFromJwt=async s=>{const i=this._logger.create("_getClaimsFromJwt");try{const r=W.decode(s);return i.debug("JWT decoding successful"),r}catch(r){throw i.error("Error parsing JWT response"),r}},this._jsonService=new Q(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const i=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",i),i}},de=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("TokenClient"),this._jsonService=new Q(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:i=this._settings.client_secret,extraHeaders:r,...o}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),o.code||n.throw(new Error("A code is required"));const a=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[h,u]of Object.entries(o))u!=null&&a.set(h,u);let c;switch(this._settings.client_authentication){case"client_secret_basic":if(!i)throw n.throw(new Error("A client_secret is required")),null;c=f.generateBasicAuth(s,i);break;case"client_secret_post":a.append("client_id",s),i&&a.append("client_secret",i);break}const l=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:a,basicAuth:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:i=this._settings.scope,...r}){const o=this._logger.create("exchangeCredentials");t||o.throw(new Error("A client_id is required"));const n=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||n.set("scope",i);for(const[d,h]of Object.entries(r))h!=null&&n.set(d,h);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw o.throw(new Error("A client_secret is required")),null;a=f.generateBasicAuth(t,s);break;case"client_secret_post":n.append("client_id",t),s&&n.append("client_secret",s);break}const c=await this._metadataService.getTokenEndpoint(!1);o.debug("got token endpoint");const l=await this._jsonService.postForm(c,{body:n,basicAuth:a,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return o.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:i,extraHeaders:r,...o}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),o.refresh_token||n.throw(new Error("A refresh_token is required"));const a=new URLSearchParams({grant_type:e});for(const[h,u]of Object.entries(o))Array.isArray(u)?u.forEach(p=>a.append(h,p)):u!=null&&a.set(h,u);let c;switch(this._settings.client_authentication){case"client_secret_basic":if(!s)throw n.throw(new Error("A client_secret is required")),null;c=f.generateBasicAuth(t,s);break;case"client_secret_post":a.append("client_id",t),s&&a.append("client_secret",s);break}const l=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:a,basicAuth:c,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const i=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const r=new URLSearchParams;for(const[o,n]of Object.entries(e))n!=null&&r.set(o,n);r.set("client_id",this._settings.client_id),this._settings.client_secret&&r.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:r,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),s.debug("got response")}},He=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new g("ResponseValidator"),this._userInfoService=new je(this._settings,this._metadataService),this._tokenClient=new de(this._settings,this._metadataService)}async validateSigninResponse(e,t,s){const i=this._logger.create("validateSigninResponse");this._processSigninState(e,t),i.debug("state processed"),await this._processCode(e,t,s),i.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),i.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),i.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,i;const r=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(i=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const o=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,o),r.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new x(e)}_processSigninState(e,t){var s;const i=this._logger.create("_processSigninState");if(t.id!==e.state&&i.throw(new Error("State does not match")),t.client_id||i.throw(new Error("No client_id on state")),t.authority||i.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&i.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&i.throw(new Error("client_id mismatch on settings vs. signin state")),i.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw i.warn("Response was error",e.error),new x(e);t.code_verifier&&!e.code&&i.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");const r=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),s&&r.sub!==e.profile.sub&&i.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(r)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,s){const i=this._logger.create("_processCode");if(e.code){i.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:s,...t.extraTokenParams});Object.assign(e,r)}else i.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");const r=W.decode((s=e.id_token)!=null?s:"");if(r.sub||i.throw(new Error("ID Token is missing a subject claim")),t){const o=W.decode(t);r.sub!==o.sub&&i.throw(new Error("sub in id_token does not match current sub")),r.auth_time&&r.auth_time!==o.auth_time&&i.throw(new Error("auth_time in id_token does not match original auth_time")),r.azp&&r.azp!==o.azp&&i.throw(new Error("azp in id_token does not match original azp")),!r.azp&&o.azp&&i.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=r}},N=class B{constructor(t){this.id=t.id||f.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=T.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new g("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return g.createStatic("State","fromStorageString"),Promise.resolve(new B(JSON.parse(t)))}static async clearStaleState(t,s){const i=g.createStatic("State","clearStaleState"),r=T.getEpochTime()-s,o=await t.getAllKeys();i.debug("got keys",o);for(let n=0;n<o.length;n++){const a=o[n],c=await t.get(a);let l=!1;if(c)try{const d=await B.fromStorageString(c);i.debug("got item from key:",a,d.created),d.created<=r&&(l=!0)}catch(d){i.error("Error parsing state for key:",a,d),l=!0}else i.debug("no item in storage for key:",a),l=!0;l&&(i.debug("removed item for key:",a),t.remove(a))}}},Y=class V extends N{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){const s=t.code_verifier===!0?f.generateCodeVerifier():t.code_verifier||void 0,i=s?await f.generateCodeChallenge(s):void 0;return new V({...t,code_verifier:s,code_challenge:i})}toStorageString(){return new g("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){g.createStatic("SigninState","fromStorageString");const s=JSON.parse(t);return V.create(s)}},he=class ge{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:s,client_id:i,redirect_uri:r,response_type:o,scope:n,state_data:a,response_mode:c,request_type:l,client_secret:d,nonce:h,url_state:u,resource:p,skipUserInfo:U,extraQueryParams:C,extraTokenParams:A,disablePKCE:O,dpopJkt:R,omitScopeWhenRequesting:P,...q}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!i)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!r)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!o)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!n)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const m=await Y.create({data:a,request_type:l,url_state:u,code_verifier:!O,client_id:i,authority:s,redirect_uri:r,response_mode:c,client_secret:d,scope:n,extraTokenParams:A,skipUserInfo:U}),_=new URL(t);_.searchParams.append("client_id",i),_.searchParams.append("redirect_uri",r),_.searchParams.append("response_type",o),P||_.searchParams.append("scope",n),h&&_.searchParams.append("nonce",h),R&&_.searchParams.append("dpop_jkt",R);let E=m.id;u&&(E=`${E}${F}${u}`),_.searchParams.append("state",E),m.code_challenge&&(_.searchParams.append("code_challenge",m.code_challenge),_.searchParams.append("code_challenge_method","S256")),p&&(Array.isArray(p)?p:[p]).forEach(w=>_.searchParams.append("resource",w));for(const[S,w]of Object.entries({response_mode:c,...q,...C}))w!=null&&_.searchParams.append(S,w.toString());return new ge({url:_.href,state:m})}};he._logger=new g("SigninRequest");var De=he,We="openid",H=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(F);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(F))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+T.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(We))||!!this.id_token}},Je=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:i,extraQueryParams:r,request_type:o,client_id:n}){if(this._logger=new g("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);s&&a.searchParams.append("id_token_hint",s),n&&a.searchParams.append("client_id",n),i&&(a.searchParams.append("post_logout_redirect_uri",i),t&&(this.state=new N({data:t,request_type:o}),a.searchParams.append("state",this.state.id)));for(const[c,l]of Object.entries({...r}))l!=null&&a.searchParams.append(c,l.toString());this.url=a.href}},ue=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},$e=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Ke=["sub","iss","aud","exp","iat"],Le=class{constructor(e){this._settings=e,this._logger=new g("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=$e;for(const i of s)Ke.includes(i)||delete t[i]}return t}mergeClaims(e,t){const s={...e};for(const[i,r]of Object.entries(t))if(s[i]!==r)if(Array.isArray(s[i])||Array.isArray(r))if(this._settings.mergeClaimsStrategy.array=="replace")s[i]=r;else{const o=Array.isArray(s[i])?s[i]:[s[i]];for(const n of Array.isArray(r)?r:[r])o.includes(n)||o.push(n);s[i]=o}else typeof s[i]=="object"&&typeof r=="object"?s[i]=this.mergeClaims(s[i],r):s[i]=r;return s}},Z=class{constructor(e,t){this.keys=e,this.nonce=t}},_e=class{constructor(e,t){this._logger=new g("OidcClient"),this.settings=e instanceof J?e:new J(e),this.metadataService=t??new le(this.settings),this._claimsService=new Le(this.settings),this._validator=new He(this.settings,this.metadataService,this._claimsService),this._tokenClient=new de(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:i,id_token_hint:r,login_hint:o,skipUserInfo:n,nonce:a,url_state:c,response_type:l=this.settings.response_type,scope:d=this.settings.scope,redirect_uri:h=this.settings.redirect_uri,prompt:u=this.settings.prompt,display:p=this.settings.display,max_age:U=this.settings.max_age,ui_locales:C=this.settings.ui_locales,acr_values:A=this.settings.acr_values,resource:O=this.settings.resource,response_mode:R=this.settings.response_mode,extraQueryParams:P=this.settings.extraQueryParams,extraTokenParams:q=this.settings.extraTokenParams,dpopJkt:m,omitScopeWhenRequesting:_=this.settings.omitScopeWhenRequesting}){const E=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const S=await this.metadataService.getAuthorizationEndpoint();E.debug("Received authorization endpoint",S);const w=await De.create({url:S,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:h,response_type:l,scope:d,state_data:e,url_state:c,prompt:u,display:p,max_age:U,ui_locales:C,id_token_hint:r,login_hint:o,acr_values:A,dpopJkt:m,resource:O,request:t,request_uri:s,extraQueryParams:P,extraTokenParams:q,request_type:i,response_mode:R,client_secret:this.settings.client_secret,skipUserInfo:n,nonce:a,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:_});await this.clearStaleState();const M=w.state;return await this.settings.stateStore.set(M.id,M.toStorageString()),w}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),i=new H(L.readParams(e,this.settings.response_mode));if(!i.state)throw s.throw(new Error("No state in response")),null;const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Y.fromStorageString(r),response:i}}async processSigninResponse(e,t){const s=this._logger.create("processSigninResponse"),{state:i,response:r}=await this.readSigninResponseState(e,!0);if(s.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const o=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:o}}try{await this._validator.validateSigninResponse(r,i,t)}catch(o){if(o instanceof z&&this.settings.dpop){const n=await this.getDpopProof(this.settings.dpop.store,o.nonce);t.DPoP=n,await this._validator.validateSigninResponse(r,i,t)}else throw o}return r}async getDpopProof(e,t){let s,i;return(await e.getAllKeys()).includes(this.settings.client_id)?(i=await e.get(this.settings.client_id),i.nonce!==t&&t&&(i.nonce=t,await e.set(this.settings.client_id,i))):(s=await f.generateDPoPKeys(),i=new Z(s,t),await e.set(this.settings.client_id,i)),await f.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:i.keys,nonce:i.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:i={}}){const r=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),o=new H(new URLSearchParams);return Object.assign(o,r),await this._validator.validateCredentialsResponse(o,s),o}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,extraTokenParams:o}){var n;const a=this._logger.create("useRefreshToken");let c;if(this.settings.refreshTokenAllowedScope===void 0)c=e.scope;else{const h=this.settings.refreshTokenAllowedScope.split(" ");c=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>h.includes(p)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const h=await this.getDpopProof(this.settings.dpop.store);r={...r,DPoP:h}}let l;try{l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:c,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o})}catch(h){if(h instanceof z&&this.settings.dpop)r.DPoP=await this.getDpopProof(this.settings.dpop.store,h.nonce),l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:c,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o});else throw h}const d=new H(new URLSearchParams);return Object.assign(d,l),a.debug("validating response",d),await this._validator.validateRefreshResponse(d,{...e,scope:c}),d}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:i,post_logout_redirect_uri:r=this.settings.post_logout_redirect_uri,extraQueryParams:o=this.settings.extraQueryParams}={}){const n=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw n.throw(new Error("No end session endpoint")),null;n.debug("Received end session endpoint",a),!s&&r&&!t&&(s=this.settings.client_id);const c=new Je({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:r,state_data:e,extraQueryParams:o,request_type:i});await this.clearStaleState();const l=c.state;return l&&(n.debug("Signout request has state to persist"),await this.settings.stateStore.set(l.id,l.toStorageString())),c}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),i=new ue(L.readParams(e,this.settings.response_mode));if(!i.state){if(s.debug("No state in response"),i.error)throw s.warn("Response was error:",i.error),new x(i);return{state:void 0,response:i}}const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await N.fromStorageString(r),response:i}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:i}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,s)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),N.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},pe=class{constructor(e){this._userManager=e,this._logger=new g("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const i=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,i.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,i.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const r=await this._userManager.metadataService.getCheckSessionIframe();if(r){i.debug("initializing check session iframe");const o=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,c=new ce(this._callback,o,r,n,a);await c.load(),this._checkSessionIFrame=c,c.start(s)}else i.warn("no check session iframe found in the metadata")}catch(r){i.error("Error from getCheckSessionIframe:",r instanceof Error?r.message:r)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const i=await this._userManager.querySessionStatus();if(i){const r={session_state:i.session_state,profile:i.sub?{sub:i.sub}:null};this._start(r)}}catch(i){t.error("error from querySessionStatus",i instanceof Error?i.message:i)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let i=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(i=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),i?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},D=class fe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+T.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new g("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return g.createStatic("User","fromStorageString"),new fe(JSON.parse(t))}},ie="oidc-client",we=class{constructor(){this._abort=new I("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:i}=await new Promise((r,o)=>{const n=a=>{var c;const l=a.data,d=(c=e.scriptOrigin)!=null?c:window.location.origin;if(!(a.origin!==d||(l==null?void 0:l.source)!==ie)){try{const h=L.readParams(l.url,e.response_mode).get("state");if(h||t.warn("no state found in response url"),a.source!==this._window&&h!==e.state)return}catch{this._dispose(),o(new Error("Invalid response from window"))}r(l)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),o(a)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,i=window.location.origin){e.postMessage({source:ie,url:t,keepOpen:s},i)}},me={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Se="_blank",Fe=60,ze=2,ve=10,ye=class extends J{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:i=me,popupWindowTarget:r=Se,redirectMethod:o="assign",redirectTarget:n="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,requestTimeoutInSeconds:l,silent_redirect_uri:d=e.redirect_uri,silentRequestTimeoutInSeconds:h,automaticSilentRenew:u=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:U=!1,monitorSession:C=!1,monitorAnonymousSession:A=!1,checkSessionIntervalInSeconds:O=ze,query_status_response_type:R="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:q=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:E=Fe,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=i,this.popupWindowTarget=r,this.redirectMethod=o,this.redirectTarget=n,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=c,this.silent_redirect_uri=d,this.silentRequestTimeoutInSeconds=h||l||ve,this.automaticSilentRenew=u,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=U,this.monitorSession=C,this.monitorAnonymousSession=A,this.checkSessionIntervalInSeconds=O,this.stopCheckSessionOnError=P,this.query_status_response_type=R,this.revokeTokenTypes=q,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=E,S)this.userStore=S;else{const w=typeof window<"u"?window.sessionStorage:new G;this.userStore=new X({store:w})}}},re=class be extends we{constructor({silentRequestTimeoutInSeconds:t=ve}){super(),this._logger=new g("IFrameWindow"),this._timeoutInSeconds=t,this._frame=be.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new $("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var i;const r=s.target;(i=r.parentNode)==null||i.removeChild(r),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Be=class{constructor(e){this._settings=e,this._logger=new g("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new re({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),re.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Ve=500,Ge=1e3,ne=class extends we{constructor({popupWindowTarget:e=Se,popupWindowFeatures:t={},popupSignal:s}){super(),this._logger=new g("PopupWindow");const i=se.center({...me,...t});this._window=window.open(void 0,e,se.serialize(i)),s&&s.addEventListener("abort",()=>{var r;this._abort.raise(new Error((r=s.reason)!=null?r:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Ge)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Ve);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},Qe=class{constructor(e){this._settings=e,this._logger=new g("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:s}){return new ne({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:s})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),ne.notifyOpener(e,t)}},Xe=class{constructor(e){this._settings=e,this._logger=new g("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let i=window.self;t==="top"&&(i=(s=window.top)!=null?s:window.self);const r=i.location[e].bind(i.location);let o;return{navigate:async n=>{this._logger.create("navigate");const a=new Promise((c,l)=>{o=l});return r(n.url),await a},close:()=>{this._logger.create("close"),o==null||o(new Error("Redirect aborted")),i.stop()}}}async callback(){}},Ye=class extends ae{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new g("UserManagerEvents"),this._userLoaded=new I("User loaded"),this._userUnloaded=new I("User unloaded"),this._silentRenewError=new I("Silent renew error"),this._userSignedIn=new I("User signed in"),this._userSignedOut=new I("User signed out"),this._userSessionChanged=new I("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},Ze=class{constructor(e){this._userManager=e,this._logger=new g("SilentRenewService"),this._isStarted=!1,this._retryTimer=new T("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof $){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},et=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},tt=class{constructor(e,t,s,i){this._logger=new g("UserManager"),this.settings=new ye(e),this._client=new _e(e),this._redirectNavigator=t??new Xe(this.settings),this._popupNavigator=s??new Qe(this.settings),this._iframeNavigator=i??new Be(this.settings),this._events=new Ye(this.settings),this._silentRenewService=new Ze(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new pe(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;this._logger.create("signinRedirect");const{redirectMethod:s,...i}=e;let r;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(r=await this.generateDPoPJkt(this.settings.dpop));const o=await this._redirectNavigator.prepare({redirectMethod:s});await this._signinStart({request_type:"si:r",dpopJkt:r,...i},o)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const i=this._logger.create("signinResourceOwnerCredential"),r=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");const o=await this._buildUser(r);return o.profile&&o.profile.sub?i.info("success, signed in subject",o.profile.sub):i.info("no subject"),o}async signinPopup(e={}){var t;const s=this._logger.create("signinPopup");let i;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(i=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n,...a}=e,c=this.settings.popup_redirect_uri;c||s.throw(new Error("No popup_redirect_uri configured"));const l=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n}),d=await this._signin({request_type:"si:p",redirect_uri:c,display:"popup",dpopJkt:i,...a},l);return d&&(d.profile&&d.profile.sub?s.info("success, signed in subject",d.profile.sub):s.info("no subject")),d}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t,s;const i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...o}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){i.debug("using refresh token");const h=new et(n);return await this._useRefreshToken({state:h,redirect_uri:o.redirect_uri,resource:o.resource,extraTokenParams:o.extraTokenParams,timeoutInSeconds:r})}let a;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(a=await this.generateDPoPJkt(this.settings.dpop));const c=this.settings.silent_redirect_uri;c||i.throw(new Error("No silent_redirect_uri configured"));let l;n&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",n.profile.sub),l=n.profile.sub);const d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,dpopJkt:a,...o},d,l),n&&((s=n.profile)!=null&&s.sub?i.info("success, signed in subject",n.profile.sub):i.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),s=new D({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(s)switch(s.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...i}=e,r=this.settings.silent_redirect_uri;r||t.throw(new Error("No silent_redirect_uri configured"));const o=await this._loadUser(),n=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),a=await this._signinStart({request_type:"si:s",redirect_uri:r,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?o==null?void 0:o.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},n);try{const c={},l=await this._client.processSigninResponse(a.url,c);return t.debug("got signin response"),l.session_state&&l.profile.sub?(t.info("success for subject",l.profile.sub),{session_state:l.session_state,sub:l.profile.sub}):(t.info("success, user not authenticated"),null)}catch(c){if(this.settings.monitorAnonymousSession&&c instanceof x)switch(c.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:c.session_state}}throw c}}async _signin(e,t,s){const i=await this._signinStart(e,t);return await this._signinEnd(i.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const i=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),i={},r=await this._client.processSigninResponse(e,i);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),i=new D(e);if(t){if(t!==i.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new x({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(i),s.debug("user stored"),await this._events.load(i),i}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...i}=e,r=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},r),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r,...o}=e,n=this.settings.popup_post_logout_redirect_uri,a=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...o},a),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const i=this._logger.create("_signoutStart");try{const r=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(r);const o=e.id_token_hint||r&&r.id_token;o&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=o),await this.removeUser(),i.debug("user removed, creating signout request");const n=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:n.url,state:(s=n.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...r}=e,o=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,n=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:n,id_token_hint:o,...r},a),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const i=t.filter(r=>typeof e[r]=="string");if(!i.length){s.debug("no need to revoke due to no token(s)");return}for(const r of i)await this._client.revokeToken(e[r],r),s.info(`${r} revoked successfully`),r!=="access_token"&&(e[r]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),D.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,s,i){var r,o;const n=await((o=(r=this.settings.dpop)==null?void 0:r.store)==null?void 0:o.get(this.settings.client_id));if(n)return await f.generateDPoPProof({url:e,accessToken:t==null?void 0:t.access_token,httpMethod:s,keyPair:n.keys,nonce:i})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);if(!t){const s=await f.generateDPoPKeys();t=new Z(s),await e.store.set(this.settings.client_id,t)}return await f.generateDPoPJkt(t.keys)}};exports.AccessTokenEvents=ae;exports.CheckSessionIFrame=ce;exports.DPoPState=Z;exports.ErrorResponse=x;exports.ErrorTimeout=$;exports.InMemoryWebStorage=G;exports.Logger=g;exports.MetadataService=le;exports.OidcClient=_e;exports.OidcClientSettingsStore=J;exports.SessionMonitor=pe;exports.SigninResponse=H;exports.SigninState=Y;exports.SignoutResponse=ue;exports.State=N;exports.User=D;exports.UserManager=tt;exports.UserManagerSettingsStore=ye;exports.WebStorageStateStore=X;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("Circle",[["path",{d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2Z",key:"arly8y"}]]);exports.default=t;