mada-design-system 1.0.1 → 1.0.2

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 (620) hide show
  1. package/index.cjs106.js +1 -1
  2. package/index.cjs109.js +1 -1
  3. package/index.cjs11.js +1 -1
  4. package/index.cjs110.js +1 -1
  5. package/index.cjs111.js +1 -1
  6. package/index.cjs114.js +1 -1
  7. package/index.cjs115.js +1 -1
  8. package/index.cjs116.js +1 -1
  9. package/index.cjs117.js +1 -1
  10. package/index.cjs118.js +1 -1
  11. package/index.cjs119.js +1 -1
  12. package/index.cjs120.js +1 -1
  13. package/index.cjs122.js +1 -1
  14. package/index.cjs123.js +1 -1
  15. package/index.cjs124.js +1 -1
  16. package/index.cjs125.js +1 -1
  17. package/index.cjs126.js +1 -1
  18. package/index.cjs127.js +1 -1
  19. package/index.cjs128.js +1 -1
  20. package/index.cjs129.js +1 -1
  21. package/index.cjs130.js +1 -1
  22. package/index.cjs131.js +1 -1
  23. package/index.cjs133.js +1 -1
  24. package/index.cjs134.js +1 -1
  25. package/index.cjs135.js +1 -1
  26. package/index.cjs136.js +1 -1
  27. package/index.cjs138.js +1 -1
  28. package/index.cjs139.js +1 -1
  29. package/index.cjs140.js +1 -1
  30. package/index.cjs142.js +1 -1
  31. package/index.cjs143.js +1 -1
  32. package/index.cjs144.js +1 -1
  33. package/index.cjs145.js +1 -1
  34. package/index.cjs146.js +1 -1
  35. package/index.cjs147.js +1 -1
  36. package/index.cjs148.js +1 -1
  37. package/index.cjs149.js +1 -1
  38. package/index.cjs150.js +1 -1
  39. package/index.cjs151.js +1 -1
  40. package/index.cjs152.js +1 -1
  41. package/index.cjs153.js +1 -1
  42. package/index.cjs154.js +1 -1
  43. package/index.cjs155.js +1 -1
  44. package/index.cjs162.js +1 -1
  45. package/index.cjs163.js +1 -1
  46. package/index.cjs164.js +1 -1
  47. package/index.cjs165.js +1 -1
  48. package/index.cjs166.js +1 -1
  49. package/index.cjs167.js +1 -1
  50. package/index.cjs168.js +1 -1
  51. package/index.cjs169.js +1 -1
  52. package/index.cjs172.js +1 -1
  53. package/index.cjs173.js +1 -1
  54. package/index.cjs174.js +1 -1
  55. package/index.cjs175.js +1 -1
  56. package/index.cjs176.js +1 -1
  57. package/index.cjs177.js +1 -1
  58. package/index.cjs178.js +1 -1
  59. package/index.cjs179.js +1 -1
  60. package/index.cjs180.js +1 -1
  61. package/index.cjs182.js +1 -1
  62. package/index.cjs183.js +1 -1
  63. package/index.cjs184.js +1 -1
  64. package/index.cjs185.js +1 -1
  65. package/index.cjs186.js +1 -2
  66. package/index.cjs187.js +1 -1
  67. package/index.cjs188.js +1 -1
  68. package/index.cjs189.js +1 -1
  69. package/index.cjs190.js +2 -1
  70. package/index.cjs191.js +1 -1
  71. package/index.cjs192.js +1 -1
  72. package/index.cjs193.js +1 -1
  73. package/index.cjs194.js +1 -1
  74. package/index.cjs195.js +1 -1
  75. package/index.cjs196.js +1 -1
  76. package/index.cjs197.js +1 -1
  77. package/index.cjs198.js +1 -1
  78. package/index.cjs199.js +1 -1
  79. package/index.cjs200.js +1 -1
  80. package/index.cjs201.js +1 -1
  81. package/index.cjs202.js +1 -1
  82. package/index.cjs203.js +1 -1
  83. package/index.cjs204.js +1 -1
  84. package/index.cjs205.js +1 -1
  85. package/index.cjs206.js +1 -1
  86. package/index.cjs207.js +1 -1
  87. package/index.cjs208.js +1 -1
  88. package/index.cjs209.js +1 -1
  89. package/index.cjs210.js +1 -1
  90. package/index.cjs211.js +1 -1
  91. package/index.cjs212.js +1 -1
  92. package/index.cjs213.js +1 -1
  93. package/index.cjs214.js +1 -1
  94. package/index.cjs215.js +1 -1
  95. package/index.cjs216.js +1 -1
  96. package/index.cjs217.js +1 -1
  97. package/index.cjs218.js +1 -1
  98. package/index.cjs219.js +1 -1
  99. package/index.cjs220.js +1 -1
  100. package/index.cjs221.js +1 -1
  101. package/index.cjs222.js +1 -1
  102. package/index.cjs223.js +1 -1
  103. package/index.cjs224.js +1 -1
  104. package/index.cjs225.js +1 -1
  105. package/index.cjs226.js +1 -1
  106. package/index.cjs227.js +1 -1
  107. package/index.cjs228.js +1 -1
  108. package/index.cjs229.js +1 -1
  109. package/index.cjs230.js +1 -1
  110. package/index.cjs231.js +1 -1
  111. package/index.cjs232.js +1 -1
  112. package/index.cjs233.js +1 -1
  113. package/index.cjs234.js +1 -1
  114. package/index.cjs235.js +1 -1
  115. package/index.cjs236.js +1 -1
  116. package/index.cjs237.js +1 -1
  117. package/index.cjs238.js +1 -1
  118. package/index.cjs239.js +1 -1
  119. package/index.cjs240.js +1 -1
  120. package/index.cjs241.js +1 -1
  121. package/index.cjs242.js +1 -1
  122. package/index.cjs243.js +1 -1
  123. package/index.cjs244.js +1 -1
  124. package/index.cjs245.js +1 -1
  125. package/index.cjs246.js +1 -1
  126. package/index.cjs247.js +1 -1
  127. package/index.cjs248.js +1 -1
  128. package/index.cjs249.js +1 -1
  129. package/index.cjs250.js +1 -1
  130. package/index.cjs251.js +1 -1
  131. package/index.cjs252.js +1 -1
  132. package/index.cjs253.js +1 -1
  133. package/index.cjs254.js +1 -1
  134. package/index.cjs255.js +1 -1
  135. package/index.cjs256.js +1 -1
  136. package/index.cjs257.js +1 -1
  137. package/index.cjs258.js +1 -1
  138. package/index.cjs259.js +1 -1
  139. package/index.cjs260.js +1 -1
  140. package/index.cjs261.js +1 -1
  141. package/index.cjs262.js +1 -1
  142. package/index.cjs263.js +1 -1
  143. package/index.cjs264.js +1 -1
  144. package/index.cjs265.js +1 -1
  145. package/index.cjs266.js +1 -1
  146. package/index.cjs267.js +1 -1
  147. package/index.cjs268.js +1 -1
  148. package/index.cjs269.js +1 -1
  149. package/index.cjs270.js +1 -1
  150. package/index.cjs271.js +1 -1
  151. package/index.cjs272.js +1 -1
  152. package/index.cjs273.js +1 -1
  153. package/index.cjs274.js +1 -1
  154. package/index.cjs275.js +1 -1
  155. package/index.cjs276.js +1 -1
  156. package/index.cjs277.js +1 -1
  157. package/index.cjs278.js +1 -1
  158. package/index.cjs279.js +1 -1
  159. package/index.cjs28.js +1 -1
  160. package/index.cjs280.js +1 -1
  161. package/index.cjs281.js +1 -1
  162. package/index.cjs282.js +1 -1
  163. package/index.cjs283.js +1 -1
  164. package/index.cjs284.js +1 -1
  165. package/index.cjs285.js +1 -1
  166. package/index.cjs286.js +1 -1
  167. package/index.cjs287.js +1 -1
  168. package/index.cjs288.js +1 -1
  169. package/index.cjs289.js +1 -1
  170. package/index.cjs290.js +1 -1
  171. package/index.cjs291.js +1 -1
  172. package/index.cjs292.js +1 -1
  173. package/index.cjs293.js +1 -1
  174. package/index.cjs294.js +1 -1
  175. package/index.cjs295.js +1 -1
  176. package/index.cjs296.js +1 -1
  177. package/index.cjs297.js +1 -1
  178. package/index.cjs298.js +1 -1
  179. package/index.cjs299.js +1 -1
  180. package/index.cjs300.js +1 -1
  181. package/index.cjs301.js +1 -1
  182. package/index.cjs302.js +1 -1
  183. package/index.cjs303.js +1 -1
  184. package/index.cjs304.js +1 -1
  185. package/index.cjs305.js +1 -1
  186. package/index.cjs306.js +1 -1
  187. package/index.cjs307.js +1 -1
  188. package/index.cjs308.js +1 -1
  189. package/index.cjs309.js +1 -1
  190. package/index.cjs310.js +1 -1
  191. package/index.cjs311.js +1 -1
  192. package/index.cjs312.js +1 -1
  193. package/index.cjs313.js +1 -1
  194. package/index.cjs314.js +1 -1
  195. package/index.cjs315.js +1 -1
  196. package/index.cjs316.js +1 -1
  197. package/index.cjs317.js +1 -1
  198. package/index.cjs318.js +1 -1
  199. package/index.cjs319.js +1 -1
  200. package/index.cjs320.js +1 -1
  201. package/index.cjs321.js +1 -1
  202. package/index.cjs322.js +1 -1
  203. package/index.cjs323.js +1 -1
  204. package/index.cjs324.js +1 -1
  205. package/index.cjs325.js +1 -1
  206. package/index.cjs326.js +1 -1
  207. package/index.cjs327.js +1 -1
  208. package/index.cjs328.js +1 -1
  209. package/index.cjs329.js +1 -1
  210. package/index.cjs33.js +1 -1
  211. package/index.cjs330.js +1 -1
  212. package/index.cjs331.js +1 -1
  213. package/index.cjs332.js +1 -1
  214. package/index.cjs333.js +1 -1
  215. package/index.cjs334.js +1 -1
  216. package/index.cjs335.js +1 -1
  217. package/index.cjs336.js +1 -1
  218. package/index.cjs337.js +1 -1
  219. package/index.cjs338.js +1 -1
  220. package/index.cjs339.js +1 -1
  221. package/index.cjs34.js +1 -1
  222. package/index.cjs340.js +1 -1
  223. package/index.cjs341.js +1 -1
  224. package/index.cjs342.js +1 -1
  225. package/index.cjs343.js +1 -1
  226. package/index.cjs344.js +1 -1
  227. package/index.cjs345.js +1 -1
  228. package/index.cjs346.js +1 -1
  229. package/index.cjs347.js +1 -1
  230. package/index.cjs348.js +1 -1
  231. package/index.cjs349.js +1 -1
  232. package/index.cjs350.js +1 -1
  233. package/index.cjs351.js +1 -1
  234. package/index.cjs352.js +1 -1
  235. package/index.cjs353.js +1 -1
  236. package/index.cjs354.js +1 -1
  237. package/index.cjs355.js +1 -1
  238. package/index.cjs356.js +1 -1
  239. package/index.cjs357.js +1 -1
  240. package/index.cjs358.js +1 -1
  241. package/index.cjs359.js +1 -1
  242. package/index.cjs360.js +1 -1
  243. package/index.cjs361.js +1 -1
  244. package/index.cjs362.js +1 -1
  245. package/index.cjs363.js +1 -1
  246. package/index.cjs364.js +1 -1
  247. package/index.cjs365.js +1 -1
  248. package/index.cjs366.js +1 -1
  249. package/index.cjs367.js +1 -1
  250. package/index.cjs368.js +1 -1
  251. package/index.cjs369.js +1 -1
  252. package/index.cjs370.js +1 -1
  253. package/index.cjs371.js +1 -1
  254. package/index.cjs372.js +1 -1
  255. package/index.cjs373.js +1 -1
  256. package/index.cjs374.js +1 -1
  257. package/index.cjs375.js +1 -1
  258. package/index.cjs376.js +1 -1
  259. package/index.cjs377.js +1 -1
  260. package/index.cjs378.js +1 -1
  261. package/index.cjs379.js +1 -1
  262. package/index.cjs380.js +1 -1
  263. package/index.cjs381.js +1 -1
  264. package/index.cjs382.js +1 -1
  265. package/index.cjs383.js +1 -1
  266. package/index.cjs384.js +1 -1
  267. package/index.cjs385.js +1 -1
  268. package/index.cjs386.js +1 -1
  269. package/index.cjs387.js +1 -1
  270. package/index.cjs388.js +1 -1
  271. package/index.cjs389.js +1 -1
  272. package/index.cjs390.js +1 -1
  273. package/index.cjs391.js +1 -1
  274. package/index.cjs392.js +1 -1
  275. package/index.cjs393.js +1 -1
  276. package/index.cjs394.js +1 -1
  277. package/index.cjs395.js +1 -1
  278. package/index.cjs396.js +1 -1
  279. package/index.cjs397.js +1 -1
  280. package/index.cjs398.js +1 -1
  281. package/index.cjs399.js +1 -1
  282. package/index.cjs400.js +1 -1
  283. package/index.cjs401.js +1 -1
  284. package/index.cjs402.js +1 -1
  285. package/index.cjs403.js +1 -1
  286. package/index.cjs404.js +1 -1
  287. package/index.cjs405.js +1 -1
  288. package/index.cjs406.js +1 -1
  289. package/index.cjs407.js +1 -1
  290. package/index.cjs408.js +1 -1
  291. package/index.cjs409.js +1 -1
  292. package/index.cjs410.js +1 -1
  293. package/index.cjs411.js +1 -1
  294. package/index.cjs412.js +1 -1
  295. package/index.cjs413.js +1 -1
  296. package/index.cjs414.js +1 -1
  297. package/index.cjs415.js +1 -1
  298. package/index.cjs416.js +1 -1
  299. package/index.cjs417.js +1 -1
  300. package/index.cjs418.js +1 -1
  301. package/index.cjs419.js +1 -1
  302. package/index.cjs420.js +1 -1
  303. package/index.cjs421.js +1 -1
  304. package/index.cjs422.js +1 -1
  305. package/index.cjs8.js +1 -1
  306. package/index.cjs90.js +1 -1
  307. package/index.cjs91.js +1 -1
  308. package/index.cjs94.js +1 -1
  309. package/index.cjs99.js +1 -1
  310. package/index.es.d.ts +1 -0
  311. package/index.es106.js +1 -1
  312. package/index.es109.js +1 -1
  313. package/index.es11.js +2 -2
  314. package/index.es110.js +1 -1
  315. package/index.es111.js +1 -1
  316. package/index.es114.js +2 -2
  317. package/index.es115.js +1 -1
  318. package/index.es116.js +1 -1
  319. package/index.es117.js +1 -1
  320. package/index.es118.js +1 -1
  321. package/index.es119.js +1 -1
  322. package/index.es120.js +2 -2
  323. package/index.es122.js +1 -1
  324. package/index.es123.js +1 -1
  325. package/index.es124.js +1 -1
  326. package/index.es125.js +1 -1
  327. package/index.es126.js +1 -1
  328. package/index.es127.js +1 -1
  329. package/index.es128.js +20 -20
  330. package/index.es129.js +5 -5
  331. package/index.es130.js +5 -5
  332. package/index.es131.js +1 -1
  333. package/index.es133.js +1 -1
  334. package/index.es134.js +1 -1
  335. package/index.es135.js +6 -6
  336. package/index.es136.js +1 -1
  337. package/index.es138.js +1 -1
  338. package/index.es139.js +1 -1
  339. package/index.es140.js +1 -1
  340. package/index.es142.js +1 -1
  341. package/index.es143.js +1 -1
  342. package/index.es144.js +1 -1
  343. package/index.es145.js +1 -1
  344. package/index.es146.js +1 -1
  345. package/index.es147.js +5 -5
  346. package/index.es148.js +1 -1
  347. package/index.es149.js +7 -7
  348. package/index.es150.js +1 -1
  349. package/index.es151.js +1 -1
  350. package/index.es152.js +1 -1
  351. package/index.es153.js +1 -1
  352. package/index.es154.js +1 -1
  353. package/index.es155.js +1 -1
  354. package/index.es162.js +1 -1
  355. package/index.es163.js +1 -1
  356. package/index.es164.js +1 -1
  357. package/index.es165.js +1 -1
  358. package/index.es166.js +1 -1
  359. package/index.es167.js +1 -1
  360. package/index.es168.js +1 -1
  361. package/index.es169.js +1 -1
  362. package/index.es172.js +1 -1
  363. package/index.es173.js +1 -1
  364. package/index.es174.js +1 -1
  365. package/index.es175.js +1 -1
  366. package/index.es176.js +2 -2
  367. package/index.es177.js +1 -1
  368. package/index.es178.js +1 -1
  369. package/index.es179.js +1 -1
  370. package/index.es180.js +1 -1
  371. package/index.es182.js +1 -1
  372. package/index.es183.js +1 -1
  373. package/index.es184.js +1 -1
  374. package/index.es185.js +1 -1
  375. package/index.es186.js +496 -147
  376. package/index.es187.js +2408 -6
  377. package/index.es188.js +11 -2408
  378. package/index.es189.js +6 -10
  379. package/index.es190.js +157 -7
  380. package/index.es191.js +6 -506
  381. package/index.es192.js +1 -1
  382. package/index.es193.js +232 -30
  383. package/index.es194.js +53 -11
  384. package/index.es195.js +30 -232
  385. package/index.es196.js +11 -53
  386. package/index.es197.js +471 -75
  387. package/index.es198.js +83 -2
  388. package/index.es199.js +2 -479
  389. package/index.es200.js +12 -47
  390. package/index.es201.js +37 -13
  391. package/index.es202.js +52 -33
  392. package/index.es203.js +4 -1201
  393. package/index.es204.js +4 -38
  394. package/index.es205.js +16 -12
  395. package/index.es206.js +5 -7
  396. package/index.es207.js +8 -5
  397. package/index.es208.js +16 -5
  398. package/index.es209.js +4 -17
  399. package/index.es210.js +4 -5
  400. package/index.es211.js +5 -5
  401. package/index.es212.js +6 -7
  402. package/index.es213.js +4 -13
  403. package/index.es214.js +4 -15
  404. package/index.es215.js +6 -8
  405. package/index.es216.js +24 -6
  406. package/index.es217.js +6 -10
  407. package/index.es218.js +4 -14
  408. package/index.es219.js +6 -5
  409. package/index.es220.js +5 -14
  410. package/index.es221.js +4 -5
  411. package/index.es222.js +5 -8
  412. package/index.es223.js +4 -6
  413. package/index.es224.js +8 -4
  414. package/index.es225.js +5 -6
  415. package/index.es226.js +4 -580
  416. package/index.es227.js +5 -50
  417. package/index.es228.js +6 -17
  418. package/index.es229.js +39 -8
  419. package/index.es230.js +4 -6
  420. package/index.es231.js +7 -7
  421. package/index.es232.js +13 -5
  422. package/index.es233.js +7 -6
  423. package/index.es234.js +10 -9
  424. package/index.es235.js +10 -5
  425. package/index.es236.js +8 -8
  426. package/index.es237.js +13 -12
  427. package/index.es238.js +24 -6
  428. package/index.es239.js +20 -10
  429. package/index.es240.js +53 -8
  430. package/index.es241.js +73 -10
  431. package/index.es242.js +9 -14
  432. package/index.es243.js +20 -5
  433. package/index.es244.js +16 -5
  434. package/index.es245.js +19 -4
  435. package/index.es246.js +6 -11
  436. package/index.es247.js +5 -10
  437. package/index.es248.js +23 -10
  438. package/index.es249.js +16 -12
  439. package/index.es250.js +6 -11
  440. package/index.es251.js +4 -38
  441. package/index.es252.js +5 -65
  442. package/index.es253.js +4 -9
  443. package/index.es254.js +4 -8
  444. package/index.es255.js +3 -7
  445. package/index.es256.js +6 -10
  446. package/index.es257.js +7 -7
  447. package/index.es258.js +6 -7
  448. package/index.es259.js +5 -6
  449. package/index.es260.js +3 -15
  450. package/index.es261.js +4 -98
  451. package/index.es262.js +4 -31
  452. package/index.es263.js +4 -9
  453. package/index.es264.js +5 -141
  454. package/index.es265.js +4 -117
  455. package/index.es266.js +4 -98
  456. package/index.es267.js +4 -31
  457. package/index.es268.js +33 -9
  458. package/index.es269.js +1201 -140
  459. package/index.es270.js +49 -116
  460. package/index.es271.js +58 -67
  461. package/index.es272.js +67 -31
  462. package/index.es273.js +7 -9
  463. package/index.es274.js +5 -153
  464. package/index.es275.js +8 -108
  465. package/index.es276.js +17 -12
  466. package/index.es277.js +5 -24
  467. package/index.es278.js +5 -10
  468. package/index.es279.js +13 -38
  469. package/index.es28.js +34 -34
  470. package/index.es280.js +10 -1999
  471. package/index.es281.js +14 -6
  472. package/index.es282.js +14 -71
  473. package/index.es283.js +5 -24
  474. package/index.es284.js +7 -52
  475. package/index.es285.js +8 -4
  476. package/index.es286.js +6 -4
  477. package/index.es287.js +9 -15
  478. package/index.es288.js +5 -5
  479. package/index.es289.js +5 -8
  480. package/index.es290.js +9 -16
  481. package/index.es291.js +5 -4
  482. package/index.es292.js +4 -4
  483. package/index.es293.js +11 -5
  484. package/index.es294.js +10 -5
  485. package/index.es295.js +10 -4
  486. package/index.es296.js +11 -4
  487. package/index.es297.js +11 -6
  488. package/index.es298.js +10 -24
  489. package/index.es299.js +7 -6
  490. package/index.es300.js +6 -4
  491. package/index.es301.js +5 -6
  492. package/index.es302.js +6 -5
  493. package/index.es303.js +8 -4
  494. package/index.es304.js +6 -5
  495. package/index.es305.js +23 -4
  496. package/index.es306.js +16 -8
  497. package/index.es307.js +7 -5
  498. package/index.es308.js +10 -4
  499. package/index.es309.js +10 -4
  500. package/index.es310.js +21 -6
  501. package/index.es311.js +10 -39
  502. package/index.es312.js +9 -4
  503. package/index.es313.js +9 -7
  504. package/index.es314.js +4 -13
  505. package/index.es315.js +5 -7
  506. package/index.es316.js +16 -10
  507. package/index.es317.js +9 -10
  508. package/index.es318.js +18 -8
  509. package/index.es319.js +15 -13
  510. package/index.es320.js +13 -24
  511. package/index.es321.js +9 -20
  512. package/index.es322.js +19 -53
  513. package/index.es323.js +5 -73
  514. package/index.es324.js +5 -9
  515. package/index.es325.js +7 -21
  516. package/index.es326.js +15 -16
  517. package/index.es327.js +8 -19
  518. package/index.es328.js +5 -6
  519. package/index.es329.js +4 -5
  520. package/index.es33.js +36 -42
  521. package/index.es330.js +578 -21
  522. package/index.es331.js +50 -16
  523. package/index.es332.js +17 -6
  524. package/index.es333.js +8 -4
  525. package/index.es334.js +7 -4
  526. package/index.es335.js +5 -4
  527. package/index.es336.js +6 -4
  528. package/index.es337.js +8 -3
  529. package/index.es338.js +12 -6
  530. package/index.es339.js +10 -7
  531. package/index.es34.js +1 -1
  532. package/index.es340.js +14 -6
  533. package/index.es341.js +38 -5
  534. package/index.es342.js +65 -4
  535. package/index.es343.js +9 -3
  536. package/index.es344.js +8 -3
  537. package/index.es345.js +7 -3
  538. package/index.es346.js +7 -4
  539. package/index.es347.js +15 -3
  540. package/index.es348.js +16 -3
  541. package/index.es349.js +5 -3
  542. package/index.es350.js +4 -57
  543. package/index.es351.js +28 -65
  544. package/index.es352.js +12 -6
  545. package/index.es353.js +25 -4
  546. package/index.es354.js +5 -23
  547. package/index.es355.js +97 -16
  548. package/index.es356.js +31 -8
  549. package/index.es357.js +9 -11
  550. package/index.es358.js +140 -10
  551. package/index.es359.js +117 -22
  552. package/index.es360.js +98 -11
  553. package/index.es361.js +31 -10
  554. package/index.es362.js +9 -10
  555. package/index.es363.js +141 -5
  556. package/index.es364.js +117 -6
  557. package/index.es365.js +67 -16
  558. package/index.es366.js +31 -10
  559. package/index.es367.js +9 -19
  560. package/index.es368.js +153 -16
  561. package/index.es369.js +108 -13
  562. package/index.es370.js +12 -5
  563. package/index.es371.js +13 -57
  564. package/index.es372.js +22 -28
  565. package/index.es373.js +10 -46
  566. package/index.es374.js +37 -65
  567. package/index.es375.js +1999 -37
  568. package/index.es376.js +6 -18
  569. package/index.es377.js +71 -72
  570. package/index.es378.js +21 -69
  571. package/index.es379.js +4 -74
  572. package/index.es380.js +12 -74
  573. package/index.es381.js +4 -45
  574. package/index.es382.js +54 -44
  575. package/index.es383.js +22 -50
  576. package/index.es384.js +38 -40
  577. package/index.es385.js +58 -38
  578. package/index.es386.js +21 -61
  579. package/index.es387.js +13 -72
  580. package/index.es388.js +52 -82
  581. package/index.es389.js +56 -30
  582. package/index.es390.js +60 -32
  583. package/index.es391.js +63 -35
  584. package/index.es392.js +37 -22
  585. package/index.es393.js +37 -20
  586. package/index.es394.js +48 -19
  587. package/index.es395.js +37 -19
  588. package/index.es396.js +38 -21
  589. package/index.es397.js +69 -21
  590. package/index.es398.js +72 -14
  591. package/index.es399.js +92 -35
  592. package/index.es400.js +39 -38
  593. package/index.es401.js +41 -14
  594. package/index.es402.js +41 -14
  595. package/index.es403.js +30 -6
  596. package/index.es404.js +28 -14
  597. package/index.es405.js +29 -12
  598. package/index.es406.js +30 -28
  599. package/index.es407.js +25 -93
  600. package/index.es408.js +27 -23
  601. package/index.es409.js +19 -38
  602. package/index.es410.js +45 -8
  603. package/index.es411.js +44 -18
  604. package/index.es412.js +17 -14
  605. package/index.es413.js +18 -4
  606. package/index.es414.js +6 -5
  607. package/index.es415.js +15 -29
  608. package/index.es416.js +12 -12
  609. package/index.es417.js +28 -25
  610. package/index.es418.js +97 -5
  611. package/index.es419.js +25 -4
  612. package/index.es420.js +38 -12
  613. package/index.es421.js +1 -1
  614. package/index.es422.js +1 -1
  615. package/index.es8.js +2 -2
  616. package/index.es90.js +1 -1
  617. package/index.es91.js +1 -1
  618. package/index.es94.js +2 -2
  619. package/index.es99.js +1 -1
  620. package/package.json +1 -1
package/index.es186.js CHANGED
@@ -1,159 +1,508 @@
1
- const O = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_AUTH_URL: "#{AppAuthUrl}#", VITE_APP_BASE_URL: "#{AppBaseUrl}#", VITE_OIDC_CLIENT_ID: "#{ClientId}#", VITE_OIDC_CLIENT_SECRET: "#{ClientSecret}#" }, _ = /* @__PURE__ */ new Map(), h = (i) => {
2
- const c = _.get(i);
3
- return c ? Object.fromEntries(
4
- Object.entries(c.stores).map(([o, d]) => [o, d.getState()])
5
- ) : {};
6
- }, C = (i, c, o) => {
7
- if (i === void 0)
8
- return {
9
- type: "untracked",
10
- connection: c.connect(o)
11
- };
12
- const d = _.get(o.name);
13
- if (d)
14
- return { type: "tracked", store: i, ...d };
15
- const e = {
16
- connection: c.connect(o),
17
- stores: {}
18
- };
19
- return _.set(o.name, e), { type: "tracked", store: i, ...e };
20
- }, b = (i, c) => {
21
- if (c === void 0) return;
22
- const o = _.get(i);
23
- o && (delete o.stores[c], Object.keys(o.stores).length === 0 && _.delete(i));
24
- }, g = (i) => {
25
- var c, o;
26
- if (!i) return;
27
- const d = i.split(`
28
- `), e = d.findIndex(
29
- (T) => T.includes("api.setState")
30
- );
31
- if (e < 0) return;
32
- const S = ((c = d[e + 1]) == null ? void 0 : c.trim()) || "";
33
- return (o = /.+ (.+) .+/.exec(S)) == null ? void 0 : o[1];
34
- }, A = (i, c = {}) => (o, d, e) => {
35
- const { enabled: S, anonymousActionType: T, store: s, ...f } = c;
36
- let m;
37
- try {
38
- m = (S ?? (O ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
39
- } catch {
1
+ var B = Symbol.for("immer-nothing"), R = Symbol.for("immer-draftable"), u = Symbol.for("immer-state"), Y = process.env.NODE_ENV !== "production" ? [
2
+ // All error codes, starting by 0:
3
+ function(e) {
4
+ return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
5
+ },
6
+ function(e) {
7
+ return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`;
8
+ },
9
+ "This object has been frozen and should not be mutated",
10
+ function(e) {
11
+ return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e;
12
+ },
13
+ "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
14
+ "Immer forbids circular references",
15
+ "The first or second argument to `produce` must be a function",
16
+ "The third argument to `produce` must be a function or undefined",
17
+ "First argument to `createDraft` must be a plain object, an array, or an immerable object",
18
+ "First argument to `finishDraft` must be a draft returned by `createDraft`",
19
+ function(e) {
20
+ return `'current' expects a draft, got: ${e}`;
21
+ },
22
+ "Object.defineProperty() cannot be used on an Immer draft",
23
+ "Object.setPrototypeOf() cannot be used on an Immer draft",
24
+ "Immer only supports deleting array indices",
25
+ "Immer only supports setting array indices and the 'length' property",
26
+ function(e) {
27
+ return `'original' expects a draft, got: ${e}`;
40
28
  }
41
- if (!m)
42
- return i(o, d, e);
43
- const { connection: t, ...p } = C(s, m, f);
44
- let v = !0;
45
- e.setState = ((r, l, n) => {
46
- const a = o(r, l);
47
- if (!v) return a;
48
- const E = n === void 0 ? {
49
- type: T || g(new Error().stack) || "anonymous"
50
- } : typeof n == "string" ? { type: n } : n;
51
- return s === void 0 ? (t == null || t.send(E, d()), a) : (t == null || t.send(
52
- {
53
- ...E,
54
- type: `${s}/${E.type}`
55
- },
56
- {
57
- ...h(f.name),
58
- [s]: e.getState()
59
- }
60
- ), a);
61
- }), e.devtools = {
62
- cleanup: () => {
63
- t && typeof t.unsubscribe == "function" && t.unsubscribe(), b(f.name, s);
29
+ // Note: if more errors are added, the errorOffset in Patches.ts should be increased
30
+ // See Patches.ts for additional errors
31
+ ] : [];
32
+ function f(e, ...t) {
33
+ if (process.env.NODE_ENV !== "production") {
34
+ const r = Y[e], n = typeof r == "function" ? r.apply(null, t) : r;
35
+ throw new Error(`[Immer] ${n}`);
36
+ }
37
+ throw new Error(
38
+ `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
39
+ );
40
+ }
41
+ var h = Object.getPrototypeOf;
42
+ function m(e) {
43
+ return !!e && !!e[u];
44
+ }
45
+ function _(e) {
46
+ var t;
47
+ return e ? G(e) || Array.isArray(e) || !!e[R] || !!((t = e.constructor) != null && t[R]) || b(e) || v(e) : !1;
48
+ }
49
+ var Z = Object.prototype.constructor.toString(), x = /* @__PURE__ */ new WeakMap();
50
+ function G(e) {
51
+ if (!e || typeof e != "object")
52
+ return !1;
53
+ const t = Object.getPrototypeOf(e);
54
+ if (t === null || t === Object.prototype)
55
+ return !0;
56
+ const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
57
+ if (r === Object)
58
+ return !0;
59
+ if (typeof r != "function")
60
+ return !1;
61
+ let n = x.get(r);
62
+ return n === void 0 && (n = Function.toString.call(r), x.set(r, n)), n === Z;
63
+ }
64
+ function z(e, t, r = !0) {
65
+ S(e) === 0 ? (r ? Reflect.ownKeys(e) : Object.keys(e)).forEach((i) => {
66
+ t(i, e[i], e);
67
+ }) : e.forEach((n, i) => t(i, n, e));
68
+ }
69
+ function S(e) {
70
+ const t = e[u];
71
+ return t ? t.type_ : Array.isArray(e) ? 1 : b(e) ? 2 : v(e) ? 3 : 0;
72
+ }
73
+ function E(e, t) {
74
+ return S(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
75
+ }
76
+ function H(e, t, r) {
77
+ const n = S(e);
78
+ n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
79
+ }
80
+ function L(e, t) {
81
+ return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
82
+ }
83
+ function b(e) {
84
+ return e instanceof Map;
85
+ }
86
+ function v(e) {
87
+ return e instanceof Set;
88
+ }
89
+ function l(e) {
90
+ return e.copy_ || e.base_;
91
+ }
92
+ function N(e, t) {
93
+ if (b(e))
94
+ return new Map(e);
95
+ if (v(e))
96
+ return new Set(e);
97
+ if (Array.isArray(e))
98
+ return Array.prototype.slice.call(e);
99
+ const r = G(e);
100
+ if (t === !0 || t === "class_only" && !r) {
101
+ const n = Object.getOwnPropertyDescriptors(e);
102
+ delete n[u];
103
+ let i = Reflect.ownKeys(n);
104
+ for (let o = 0; o < i.length; o++) {
105
+ const s = i[o], c = n[s];
106
+ c.writable === !1 && (c.writable = !0, c.configurable = !0), (c.get || c.set) && (n[s] = {
107
+ configurable: !0,
108
+ writable: !0,
109
+ // could live with !!desc.set as well here...
110
+ enumerable: c.enumerable,
111
+ value: e[s]
112
+ });
64
113
  }
114
+ return Object.create(h(e), n);
115
+ } else {
116
+ const n = h(e);
117
+ if (n !== null && r)
118
+ return { ...e };
119
+ const i = Object.create(n);
120
+ return Object.assign(i, e);
121
+ }
122
+ }
123
+ function j(e, t = !1) {
124
+ return I(e) || m(e) || !_(e) || (S(e) > 1 && Object.defineProperties(e, {
125
+ set: w,
126
+ add: w,
127
+ clear: w,
128
+ delete: w
129
+ }), Object.freeze(e), t && Object.values(e).forEach((r) => j(r, !0))), e;
130
+ }
131
+ function V() {
132
+ f(2);
133
+ }
134
+ var w = {
135
+ value: V
136
+ };
137
+ function I(e) {
138
+ return e === null || typeof e != "object" ? !0 : Object.isFrozen(e);
139
+ }
140
+ var ee = {};
141
+ function d(e) {
142
+ const t = ee[e];
143
+ return t || f(0, e), t;
144
+ }
145
+ var p;
146
+ function X() {
147
+ return p;
148
+ }
149
+ function te(e, t) {
150
+ return {
151
+ drafts_: [],
152
+ parent_: e,
153
+ immer_: t,
154
+ // Whenever the modified draft contains a draft from another scope, we
155
+ // need to prevent auto-freezing so the unowned draft can be finalized.
156
+ canAutoFreeze_: !0,
157
+ unfinalizedDrafts_: 0
65
158
  };
66
- const u = (...r) => {
67
- const l = v;
68
- v = !1, o(...r), v = l;
69
- }, y = i(e.setState, d, e);
70
- if (p.type === "untracked" ? t == null || t.init(y) : (p.stores[p.store] = e, t == null || t.init(
71
- Object.fromEntries(
72
- Object.entries(p.stores).map(([r, l]) => [
159
+ }
160
+ function U(e, t) {
161
+ t && (d("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
162
+ }
163
+ function A(e) {
164
+ k(e), e.drafts_.forEach(re), e.drafts_ = null;
165
+ }
166
+ function k(e) {
167
+ e === p && (p = e.parent_);
168
+ }
169
+ function $(e) {
170
+ return p = te(p, e);
171
+ }
172
+ function re(e) {
173
+ const t = e[u];
174
+ t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
175
+ }
176
+ function K(e, t) {
177
+ t.unfinalizedDrafts_ = t.drafts_.length;
178
+ const r = t.drafts_[0];
179
+ return e !== void 0 && e !== r ? (r[u].modified_ && (A(t), f(4)), _(e) && (e = O(t, e), t.parent_ || g(t, e)), t.patches_ && d("Patches").generateReplacementPatches_(
180
+ r[u].base_,
181
+ e,
182
+ t.patches_,
183
+ t.inversePatches_
184
+ )) : e = O(t, r, []), A(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== B ? e : void 0;
185
+ }
186
+ function O(e, t, r) {
187
+ if (I(t))
188
+ return t;
189
+ const n = e.immer_.shouldUseStrictIteration(), i = t[u];
190
+ if (!i)
191
+ return z(
192
+ t,
193
+ (o, s) => W(e, i, t, o, s, r),
194
+ n
195
+ ), t;
196
+ if (i.scope_ !== e)
197
+ return t;
198
+ if (!i.modified_)
199
+ return g(e, i.base_, !0), i.base_;
200
+ if (!i.finalized_) {
201
+ i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
202
+ const o = i.copy_;
203
+ let s = o, c = !1;
204
+ i.type_ === 3 && (s = new Set(o), o.clear(), c = !0), z(
205
+ s,
206
+ (a, y) => W(
207
+ e,
208
+ i,
209
+ o,
210
+ a,
211
+ y,
73
212
  r,
74
- r === p.store ? y : l.getState()
75
- ])
76
- )
77
- )), e.dispatchFromDevtools && typeof e.dispatch == "function") {
78
- let r = !1;
79
- const l = e.dispatch;
80
- e.dispatch = (...n) => {
81
- (O ? "production" : void 0) !== "production" && n[0].type === "__setState" && !r && (r = !0), l(...n);
213
+ c
214
+ ),
215
+ n
216
+ ), g(e, o, !1), r && e.patches_ && d("Patches").generatePatches_(
217
+ i,
218
+ r,
219
+ e.patches_,
220
+ e.inversePatches_
221
+ );
222
+ }
223
+ return i.copy_;
224
+ }
225
+ function W(e, t, r, n, i, o, s) {
226
+ if (i == null || typeof i != "object" && !s)
227
+ return;
228
+ const c = I(i);
229
+ if (!(c && !s)) {
230
+ if (process.env.NODE_ENV !== "production" && i === r && f(5), m(i)) {
231
+ const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
232
+ !E(t.assigned_, n) ? o.concat(n) : void 0, y = O(e, i, a);
233
+ if (H(r, n, y), m(y))
234
+ e.canAutoFreeze_ = !1;
235
+ else
236
+ return;
237
+ } else s && r.add(i);
238
+ if (_(i) && !c) {
239
+ if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[n] === i && c)
240
+ return;
241
+ O(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && (b(r) ? r.has(n) : Object.prototype.propertyIsEnumerable.call(r, n)) && g(e, i);
242
+ }
243
+ }
244
+ }
245
+ function g(e, t, r = !1) {
246
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && j(t, r);
247
+ }
248
+ function ne(e, t) {
249
+ const r = Array.isArray(e), n = {
250
+ type_: r ? 1 : 0,
251
+ // Track which produce call this is associated with.
252
+ scope_: t ? t.scope_ : X(),
253
+ // True for both shallow and deep changes.
254
+ modified_: !1,
255
+ // Used during finalization.
256
+ finalized_: !1,
257
+ // Track which properties have been assigned (true) or deleted (false).
258
+ assigned_: {},
259
+ // The parent draft state.
260
+ parent_: t,
261
+ // The base state.
262
+ base_: e,
263
+ // The base proxy.
264
+ draft_: null,
265
+ // set below
266
+ // The base copy with any updated values.
267
+ copy_: null,
268
+ // Called by the `produce` function.
269
+ revoke_: null,
270
+ isManual_: !1
271
+ };
272
+ let i = n, o = T;
273
+ r && (i = [n], o = P);
274
+ const { revoke: s, proxy: c } = Proxy.revocable(i, o);
275
+ return n.draft_ = c, n.revoke_ = s, c;
276
+ }
277
+ var T = {
278
+ get(e, t) {
279
+ if (t === u)
280
+ return e;
281
+ const r = l(e);
282
+ if (!E(r, t))
283
+ return ie(e, r, t);
284
+ const n = r[t];
285
+ return e.finalized_ || !_(n) ? n : n === D(e.base_, t) ? (F(e), e.copy_[t] = M(n, e)) : n;
286
+ },
287
+ has(e, t) {
288
+ return t in l(e);
289
+ },
290
+ ownKeys(e) {
291
+ return Reflect.ownKeys(l(e));
292
+ },
293
+ set(e, t, r) {
294
+ const n = q(l(e), t);
295
+ if (n != null && n.set)
296
+ return n.set.call(e.draft_, r), !0;
297
+ if (!e.modified_) {
298
+ const i = D(l(e), t), o = i == null ? void 0 : i[u];
299
+ if (o && o.base_ === r)
300
+ return e.copy_[t] = r, e.assigned_[t] = !1, !0;
301
+ if (L(r, i) && (r !== void 0 || E(e.base_, t)))
302
+ return !0;
303
+ F(e), C(e);
304
+ }
305
+ return e.copy_[t] === r && // special case: handle new props with value 'undefined'
306
+ (r !== void 0 || t in e.copy_) || // special case: NaN
307
+ Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
308
+ },
309
+ deleteProperty(e, t) {
310
+ return D(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, F(e), C(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
311
+ },
312
+ // Note: We never coerce `desc.value` into an Immer draft, because we can't make
313
+ // the same guarantee in ES5 mode.
314
+ getOwnPropertyDescriptor(e, t) {
315
+ const r = l(e), n = Reflect.getOwnPropertyDescriptor(r, t);
316
+ return n && {
317
+ writable: !0,
318
+ configurable: e.type_ !== 1 || t !== "length",
319
+ enumerable: n.enumerable,
320
+ value: r[t]
82
321
  };
322
+ },
323
+ defineProperty() {
324
+ f(11);
325
+ },
326
+ getPrototypeOf(e) {
327
+ return h(e.base_);
328
+ },
329
+ setPrototypeOf() {
330
+ f(12);
83
331
  }
84
- return t.subscribe((r) => {
85
- var l;
86
- switch (r.type) {
87
- case "ACTION":
88
- return typeof r.payload != "string" ? void 0 : I(
89
- r.payload,
90
- (n) => {
91
- if (n.type === "__setState") {
92
- if (s === void 0) {
93
- u(n.state);
94
- return;
95
- }
96
- Object.keys(n.state).length;
97
- const a = n.state[s];
98
- if (a == null)
99
- return;
100
- JSON.stringify(e.getState()) !== JSON.stringify(a) && u(a);
101
- return;
102
- }
103
- e.dispatchFromDevtools && typeof e.dispatch == "function" && e.dispatch(n);
104
- }
105
- );
106
- case "DISPATCH":
107
- switch (r.payload.type) {
108
- case "RESET":
109
- return u(y), s === void 0 ? t == null ? void 0 : t.init(e.getState()) : t == null ? void 0 : t.init(h(f.name));
110
- case "COMMIT":
111
- if (s === void 0) {
112
- t == null || t.init(e.getState());
113
- return;
114
- }
115
- return t == null ? void 0 : t.init(h(f.name));
116
- case "ROLLBACK":
117
- return I(r.state, (n) => {
118
- if (s === void 0) {
119
- u(n), t == null || t.init(e.getState());
120
- return;
121
- }
122
- u(n[s]), t == null || t.init(h(f.name));
123
- });
124
- case "JUMP_TO_STATE":
125
- case "JUMP_TO_ACTION":
126
- return I(r.state, (n) => {
127
- if (s === void 0) {
128
- u(n);
129
- return;
130
- }
131
- JSON.stringify(e.getState()) !== JSON.stringify(n[s]) && u(n[s]);
132
- });
133
- case "IMPORT_STATE": {
134
- const { nextLiftedState: n } = r.payload, a = (l = n.computedStates.slice(-1)[0]) == null ? void 0 : l.state;
135
- if (!a) return;
136
- u(s === void 0 ? a : a[s]), t == null || t.send(
137
- null,
138
- // FIXME no-any
139
- n
140
- );
141
- return;
142
- }
143
- case "PAUSE_RECORDING":
144
- return v = !v;
332
+ }, P = {};
333
+ z(T, (e, t) => {
334
+ P[e] = function() {
335
+ return arguments[0] = arguments[0][0], t.apply(this, arguments);
336
+ };
337
+ });
338
+ P.deleteProperty = function(e, t) {
339
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && f(13), P.set.call(this, e, t, void 0);
340
+ };
341
+ P.set = function(e, t, r) {
342
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && f(14), T.set.call(this, e[0], t, r, e[0]);
343
+ };
344
+ function D(e, t) {
345
+ const r = e[u];
346
+ return (r ? l(r) : e)[t];
347
+ }
348
+ function ie(e, t, r) {
349
+ var i;
350
+ const n = q(t, r);
351
+ return n ? "value" in n ? n.value : (
352
+ // This is a very special case, if the prop is a getter defined by the
353
+ // prototype, we should invoke it with the draft as context!
354
+ (i = n.get) == null ? void 0 : i.call(e.draft_)
355
+ ) : void 0;
356
+ }
357
+ function q(e, t) {
358
+ if (!(t in e))
359
+ return;
360
+ let r = h(e);
361
+ for (; r; ) {
362
+ const n = Object.getOwnPropertyDescriptor(r, t);
363
+ if (n)
364
+ return n;
365
+ r = h(r);
366
+ }
367
+ }
368
+ function C(e) {
369
+ e.modified_ || (e.modified_ = !0, e.parent_ && C(e.parent_));
370
+ }
371
+ function F(e) {
372
+ e.copy_ || (e.copy_ = N(
373
+ e.base_,
374
+ e.scope_.immer_.useStrictShallowCopy_
375
+ ));
376
+ }
377
+ var oe = class {
378
+ constructor(e) {
379
+ this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (t, r, n) => {
380
+ if (typeof t == "function" && typeof r != "function") {
381
+ const o = r;
382
+ r = t;
383
+ const s = this;
384
+ return function(a = o, ...y) {
385
+ return s.produce(a, (Q) => r.call(this, Q, ...y));
386
+ };
387
+ }
388
+ typeof r != "function" && f(6), n !== void 0 && typeof n != "function" && f(7);
389
+ let i;
390
+ if (_(t)) {
391
+ const o = $(this), s = M(t, void 0);
392
+ let c = !0;
393
+ try {
394
+ i = r(s), c = !1;
395
+ } finally {
396
+ c ? A(o) : k(o);
145
397
  }
146
- return;
398
+ return U(o, n), K(i, o);
399
+ } else if (!t || typeof t != "object") {
400
+ if (i = r(t), i === void 0 && (i = t), i === B && (i = void 0), this.autoFreeze_ && j(i, !0), n) {
401
+ const o = [], s = [];
402
+ d("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
403
+ }
404
+ return i;
405
+ } else
406
+ f(1, t);
407
+ }, this.produceWithPatches = (t, r) => {
408
+ if (typeof t == "function")
409
+ return (s, ...c) => this.produceWithPatches(s, (a) => t(a, ...c));
410
+ let n, i;
411
+ return [this.produce(t, r, (s, c) => {
412
+ n = s, i = c;
413
+ }), n, i];
414
+ }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof (e == null ? void 0 : e.useStrictIteration) == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
415
+ }
416
+ createDraft(e) {
417
+ _(e) || f(8), m(e) && (e = se(e));
418
+ const t = $(this), r = M(e, void 0);
419
+ return r[u].isManual_ = !0, k(t), r;
420
+ }
421
+ finishDraft(e, t) {
422
+ const r = e && e[u];
423
+ (!r || !r.isManual_) && f(9);
424
+ const { scope_: n } = r;
425
+ return U(n, t), K(void 0, n);
426
+ }
427
+ /**
428
+ * Pass true to automatically freeze all copies created by Immer.
429
+ *
430
+ * By default, auto-freezing is enabled.
431
+ */
432
+ setAutoFreeze(e) {
433
+ this.autoFreeze_ = e;
434
+ }
435
+ /**
436
+ * Pass true to enable strict shallow copy.
437
+ *
438
+ * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
439
+ */
440
+ setUseStrictShallowCopy(e) {
441
+ this.useStrictShallowCopy_ = e;
442
+ }
443
+ /**
444
+ * Pass false to use faster iteration that skips non-enumerable properties
445
+ * but still handles symbols for compatibility.
446
+ *
447
+ * By default, strict iteration is enabled (includes all own properties).
448
+ */
449
+ setUseStrictIteration(e) {
450
+ this.useStrictIteration_ = e;
451
+ }
452
+ shouldUseStrictIteration() {
453
+ return this.useStrictIteration_;
454
+ }
455
+ applyPatches(e, t) {
456
+ let r;
457
+ for (r = t.length - 1; r >= 0; r--) {
458
+ const i = t[r];
459
+ if (i.path.length === 0 && i.op === "replace") {
460
+ e = i.value;
461
+ break;
462
+ }
147
463
  }
148
- }), y;
149
- }, D = A, I = (i, c) => {
150
- let o;
151
- try {
152
- o = JSON.parse(i);
153
- } catch {
464
+ r > -1 && (t = t.slice(r + 1));
465
+ const n = d("Patches").applyPatches_;
466
+ return m(e) ? n(e, t) : this.produce(
467
+ e,
468
+ (i) => n(i, t)
469
+ );
154
470
  }
155
- o !== void 0 && c(o);
156
471
  };
472
+ function M(e, t) {
473
+ const r = b(e) ? d("MapSet").proxyMap_(e, t) : v(e) ? d("MapSet").proxySet_(e, t) : ne(e, t);
474
+ return (t ? t.scope_ : X()).drafts_.push(r), r;
475
+ }
476
+ function se(e) {
477
+ return m(e) || f(10, e), J(e);
478
+ }
479
+ function J(e) {
480
+ if (!_(e) || I(e))
481
+ return e;
482
+ const t = e[u];
483
+ let r, n = !0;
484
+ if (t) {
485
+ if (!t.modified_)
486
+ return t.base_;
487
+ t.finalized_ = !0, r = N(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
488
+ } else
489
+ r = N(e, !0);
490
+ return z(
491
+ r,
492
+ (i, o) => {
493
+ H(r, i, J(o));
494
+ },
495
+ n
496
+ ), t && (t.finalized_ = !1), r;
497
+ }
498
+ var ce = new oe(), fe = ce.produce;
157
499
  export {
158
- D as devtools
500
+ oe as Immer,
501
+ se as current,
502
+ j as freeze,
503
+ R as immerable,
504
+ m as isDraft,
505
+ _ as isDraftable,
506
+ B as nothing,
507
+ fe as produce
159
508
  };