@arcgis/map-components 4.33.0-next.70 → 4.33.0-next.72

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 (447) hide show
  1. package/dist/arcgis-map-components/3GOFEYOJ.js +4 -0
  2. package/dist/arcgis-map-components/{2EVWV53Z.js.LEGAL.txt → 3GOFEYOJ.js.LEGAL.txt} +1 -1
  3. package/dist/arcgis-map-components/{IJTOT7TR.js → 54JUX5E7.js} +2 -2
  4. package/dist/arcgis-map-components/{26TIH6FG.js.LEGAL.txt → 54JUX5E7.js.LEGAL.txt} +1 -1
  5. package/dist/arcgis-map-components/67BM4H54.js +5 -0
  6. package/dist/arcgis-map-components/{3U74O5P3.js.LEGAL.txt → 67BM4H54.js.LEGAL.txt} +1 -1
  7. package/dist/arcgis-map-components/67QEM6FF.js +5 -0
  8. package/dist/arcgis-map-components/{2DCC77HK.js.LEGAL.txt → 67QEM6FF.js.LEGAL.txt} +1 -1
  9. package/dist/arcgis-map-components/6BAF3S4Q.js +5 -0
  10. package/dist/arcgis-map-components/6BAF3S4Q.js.LEGAL.txt +3 -0
  11. package/dist/arcgis-map-components/6Q2MHLIK.js +6 -0
  12. package/dist/arcgis-map-components/{WUFEAJ6A.js.LEGAL.txt → 6Q2MHLIK.js.LEGAL.txt} +15 -15
  13. package/dist/arcgis-map-components/73MDYWGW.js +4 -0
  14. package/dist/arcgis-map-components/73MDYWGW.js.LEGAL.txt +3 -0
  15. package/dist/arcgis-map-components/76XQYIUP.js +5 -0
  16. package/dist/arcgis-map-components/76XQYIUP.js.LEGAL.txt +3 -0
  17. package/dist/arcgis-map-components/{SK5XJTWA.js → 7EGXD4FE.js} +2 -2
  18. package/dist/arcgis-map-components/7EGXD4FE.js.LEGAL.txt +3 -0
  19. package/dist/arcgis-map-components/{YMJYEJ2B.js → 7HTA3NOC.js} +1 -1
  20. package/dist/arcgis-map-components/7HTA3NOC.js.LEGAL.txt +3 -0
  21. package/dist/arcgis-map-components/{7NNLYRUX.js → 7SBZRCGH.js} +2 -2
  22. package/dist/arcgis-map-components/7SBZRCGH.js.LEGAL.txt +3 -0
  23. package/dist/arcgis-map-components/7SJJFB7C.js +5 -0
  24. package/dist/arcgis-map-components/7SJJFB7C.js.LEGAL.txt +3 -0
  25. package/dist/arcgis-map-components/AG3PZSFY.js +5 -0
  26. package/dist/arcgis-map-components/AG3PZSFY.js.LEGAL.txt +3 -0
  27. package/dist/arcgis-map-components/{IXCM23BB.js → AMANTVIX.js} +2 -2
  28. package/dist/arcgis-map-components/AMANTVIX.js.LEGAL.txt +3 -0
  29. package/dist/arcgis-map-components/{CBDGDQQJ.js → AWD62TLT.js} +2 -2
  30. package/dist/arcgis-map-components/AWD62TLT.js.LEGAL.txt +3 -0
  31. package/dist/arcgis-map-components/B3U44AFN.js +5 -0
  32. package/dist/arcgis-map-components/B3U44AFN.js.LEGAL.txt +3 -0
  33. package/dist/arcgis-map-components/{MH6KPPZZ.js → BDLRJT3Y.js} +2 -2
  34. package/dist/arcgis-map-components/BDLRJT3Y.js.LEGAL.txt +3 -0
  35. package/dist/arcgis-map-components/{A6XOBIDV.js → C7Z6W3YQ.js} +2 -2
  36. package/dist/arcgis-map-components/C7Z6W3YQ.js.LEGAL.txt +3 -0
  37. package/dist/arcgis-map-components/CCXM3MO3.js +5 -0
  38. package/dist/arcgis-map-components/CCXM3MO3.js.LEGAL.txt +3 -0
  39. package/dist/arcgis-map-components/CDIWPICZ.js +4 -0
  40. package/dist/arcgis-map-components/CDIWPICZ.js.LEGAL.txt +8 -0
  41. package/dist/arcgis-map-components/CFCBRGMX.js +4 -0
  42. package/dist/arcgis-map-components/CFCBRGMX.js.LEGAL.txt +3 -0
  43. package/dist/arcgis-map-components/{G763OO5H.js → CNX3OJOE.js} +2 -2
  44. package/dist/arcgis-map-components/CNX3OJOE.js.LEGAL.txt +3 -0
  45. package/dist/arcgis-map-components/CQPVERPP.js +5 -0
  46. package/dist/arcgis-map-components/CQPVERPP.js.LEGAL.txt +3 -0
  47. package/dist/arcgis-map-components/{5SKNSVLB.js → D3E2HNXP.js} +2 -2
  48. package/dist/arcgis-map-components/D3E2HNXP.js.LEGAL.txt +3 -0
  49. package/dist/arcgis-map-components/E2G4S24O.js +5 -0
  50. package/dist/arcgis-map-components/E2G4S24O.js.LEGAL.txt +3 -0
  51. package/dist/arcgis-map-components/{EP565K7G.js → ELBXY2EQ.js} +1 -1
  52. package/dist/arcgis-map-components/ELBXY2EQ.js.LEGAL.txt +3 -0
  53. package/dist/arcgis-map-components/{GHDTFWTG.js → ELFPVJB2.js} +2 -2
  54. package/dist/arcgis-map-components/EOYC76LG.js +5 -0
  55. package/dist/arcgis-map-components/EOYC76LG.js.LEGAL.txt +3 -0
  56. package/dist/arcgis-map-components/{RMPTOIIQ.js → ES5TJU6F.js} +2 -2
  57. package/dist/arcgis-map-components/ES5TJU6F.js.LEGAL.txt +3 -0
  58. package/dist/arcgis-map-components/GCB5NWRR.js +5 -0
  59. package/dist/arcgis-map-components/GCB5NWRR.js.LEGAL.txt +3 -0
  60. package/dist/arcgis-map-components/{5YDZK63G.js → GJ65TFVF.js} +2 -2
  61. package/dist/arcgis-map-components/GJ65TFVF.js.LEGAL.txt +3 -0
  62. package/dist/arcgis-map-components/{UZ3OFHZH.js → GMQTIQ2V.js} +1 -1
  63. package/dist/arcgis-map-components/GMQTIQ2V.js.LEGAL.txt +3 -0
  64. package/dist/arcgis-map-components/GS27WQ6L.js +5 -0
  65. package/dist/arcgis-map-components/GS27WQ6L.js.LEGAL.txt +3 -0
  66. package/dist/arcgis-map-components/{UBQO34NB.js → HFUODOVG.js} +2 -2
  67. package/dist/arcgis-map-components/HFUODOVG.js.LEGAL.txt +3 -0
  68. package/dist/arcgis-map-components/{E7WYQEZA.js → HYWFZFHS.js} +2 -2
  69. package/dist/arcgis-map-components/HYWFZFHS.js.LEGAL.txt +3 -0
  70. package/dist/arcgis-map-components/IIYBHEVZ.js +5 -0
  71. package/dist/arcgis-map-components/IIYBHEVZ.js.LEGAL.txt +3 -0
  72. package/dist/arcgis-map-components/IYJSFEMF.js +5 -0
  73. package/dist/arcgis-map-components/{JBZ7SBFM.js.LEGAL.txt → IYJSFEMF.js.LEGAL.txt} +1 -1
  74. package/dist/arcgis-map-components/IZOXPD66.js +4 -0
  75. package/dist/arcgis-map-components/IZOXPD66.js.LEGAL.txt +3 -0
  76. package/dist/arcgis-map-components/J4OT2V3W.js +5 -0
  77. package/dist/arcgis-map-components/J4OT2V3W.js.LEGAL.txt +3 -0
  78. package/dist/arcgis-map-components/KJRMXKHS.js +5 -0
  79. package/dist/arcgis-map-components/KJRMXKHS.js.LEGAL.txt +3 -0
  80. package/dist/arcgis-map-components/KLTLLIBK.js +5 -0
  81. package/dist/arcgis-map-components/KLTLLIBK.js.LEGAL.txt +3 -0
  82. package/dist/arcgis-map-components/KPEGNL4R.js +5 -0
  83. package/dist/arcgis-map-components/KPEGNL4R.js.LEGAL.txt +3 -0
  84. package/dist/arcgis-map-components/{LEA34TFP.js → KT6GYEGE.js} +2 -2
  85. package/dist/arcgis-map-components/KT6GYEGE.js.LEGAL.txt +3 -0
  86. package/dist/arcgis-map-components/KTGHVTCS.js +5 -0
  87. package/dist/arcgis-map-components/KTGHVTCS.js.LEGAL.txt +3 -0
  88. package/dist/arcgis-map-components/{XZDNSO4J.js → L2I7SXDH.js} +2 -2
  89. package/dist/arcgis-map-components/L2I7SXDH.js.LEGAL.txt +3 -0
  90. package/dist/arcgis-map-components/M47GFUSK.js +5 -0
  91. package/dist/arcgis-map-components/M47GFUSK.js.LEGAL.txt +3 -0
  92. package/dist/arcgis-map-components/MJIXE7IJ.js +5 -0
  93. package/dist/arcgis-map-components/MJIXE7IJ.js.LEGAL.txt +3 -0
  94. package/dist/arcgis-map-components/{TPIPTBOL.js → MR6DABDJ.js} +2 -2
  95. package/dist/arcgis-map-components/MR6DABDJ.js.LEGAL.txt +3 -0
  96. package/dist/arcgis-map-components/{74HKBQOD.js → N263XT5D.js} +2 -2
  97. package/dist/arcgis-map-components/N263XT5D.js.LEGAL.txt +3 -0
  98. package/dist/arcgis-map-components/{2DCC77HK.js → N2L4TJZS.js} +2 -2
  99. package/dist/arcgis-map-components/N2L4TJZS.js.LEGAL.txt +3 -0
  100. package/dist/arcgis-map-components/{Y7BK25LJ.js → N6CRGULZ.js} +2 -2
  101. package/dist/arcgis-map-components/N6CRGULZ.js.LEGAL.txt +3 -0
  102. package/dist/arcgis-map-components/NNQYBYM4.js +5 -0
  103. package/dist/arcgis-map-components/NNQYBYM4.js.LEGAL.txt +3 -0
  104. package/dist/arcgis-map-components/NRCIDFH5.js +4 -0
  105. package/dist/arcgis-map-components/NV2Y7HWW.js +5 -0
  106. package/dist/arcgis-map-components/NV2Y7HWW.js.LEGAL.txt +3 -0
  107. package/dist/arcgis-map-components/P4VA5IX2.js +5 -0
  108. package/dist/arcgis-map-components/P4VA5IX2.js.LEGAL.txt +3 -0
  109. package/dist/arcgis-map-components/PKWVBASJ.js +5 -0
  110. package/dist/arcgis-map-components/PKWVBASJ.js.LEGAL.txt +3 -0
  111. package/dist/arcgis-map-components/R43YK34V.js +5 -0
  112. package/dist/arcgis-map-components/R43YK34V.js.LEGAL.txt +3 -0
  113. package/dist/arcgis-map-components/{5SDEM4QU.js → RFOZCPR2.js} +2 -2
  114. package/dist/arcgis-map-components/RFOZCPR2.js.LEGAL.txt +3 -0
  115. package/dist/arcgis-map-components/RHXISSAG.js +5 -0
  116. package/dist/arcgis-map-components/RHXISSAG.js.LEGAL.txt +3 -0
  117. package/dist/arcgis-map-components/RNNNJHXM.js +4 -0
  118. package/dist/arcgis-map-components/RNNNJHXM.js.LEGAL.txt +3 -0
  119. package/dist/arcgis-map-components/{26TIH6FG.js → SFKAS3WG.js} +2 -2
  120. package/dist/arcgis-map-components/SFKAS3WG.js.LEGAL.txt +3 -0
  121. package/dist/arcgis-map-components/SVM6A2PP.js +5 -0
  122. package/dist/arcgis-map-components/SVM6A2PP.js.LEGAL.txt +3 -0
  123. package/dist/arcgis-map-components/T3PPQVQO.js +5 -0
  124. package/dist/arcgis-map-components/T3PPQVQO.js.LEGAL.txt +3 -0
  125. package/dist/arcgis-map-components/THCGG65S.js +5 -0
  126. package/dist/arcgis-map-components/THCGG65S.js.LEGAL.txt +3 -0
  127. package/dist/arcgis-map-components/{5NIMR2GY.js → THZ3QHUD.js} +2 -2
  128. package/dist/arcgis-map-components/THZ3QHUD.js.LEGAL.txt +3 -0
  129. package/dist/arcgis-map-components/{ULEQ7UOA.js → TKZNSLGF.js} +2 -2
  130. package/dist/arcgis-map-components/TKZNSLGF.js.LEGAL.txt +3 -0
  131. package/dist/arcgis-map-components/{GIAMJ3XJ.js → TMEY6ERJ.js} +2 -2
  132. package/dist/arcgis-map-components/TMEY6ERJ.js.LEGAL.txt +3 -0
  133. package/dist/arcgis-map-components/TO34TE7M.js +5 -0
  134. package/dist/arcgis-map-components/TO34TE7M.js.LEGAL.txt +3 -0
  135. package/dist/arcgis-map-components/{WCWNCGEN.js → TU6DLMSW.js} +2 -2
  136. package/dist/arcgis-map-components/TU6DLMSW.js.LEGAL.txt +3 -0
  137. package/dist/arcgis-map-components/{IOD7VVY2.js → TVCUENAG.js} +2 -2
  138. package/dist/arcgis-map-components/TVCUENAG.js.LEGAL.txt +3 -0
  139. package/dist/arcgis-map-components/UVSFHCX5.js +5 -0
  140. package/dist/arcgis-map-components/UVSFHCX5.js.LEGAL.txt +3 -0
  141. package/dist/arcgis-map-components/UZUTKIBR.js +5 -0
  142. package/dist/arcgis-map-components/UZUTKIBR.js.LEGAL.txt +3 -0
  143. package/dist/arcgis-map-components/V3C4SXXT.js +4 -0
  144. package/dist/arcgis-map-components/V3C4SXXT.js.LEGAL.txt +3 -0
  145. package/dist/arcgis-map-components/V4JOGXOP.js +5 -0
  146. package/dist/arcgis-map-components/V4JOGXOP.js.LEGAL.txt +3 -0
  147. package/dist/arcgis-map-components/{R6ZNNDJD.js → VAITE5ZC.js} +2 -2
  148. package/dist/arcgis-map-components/VAITE5ZC.js.LEGAL.txt +3 -0
  149. package/dist/arcgis-map-components/VX5JJ7IR.js +5 -0
  150. package/dist/arcgis-map-components/VX5JJ7IR.js.LEGAL.txt +3 -0
  151. package/dist/arcgis-map-components/{44AYOODG.js → WEV4MKOS.js} +2 -2
  152. package/dist/arcgis-map-components/WEV4MKOS.js.LEGAL.txt +3 -0
  153. package/dist/arcgis-map-components/XDU2OT4F.js +5 -0
  154. package/dist/arcgis-map-components/XDU2OT4F.js.LEGAL.txt +3 -0
  155. package/dist/arcgis-map-components/XKACQU62.js +5 -0
  156. package/dist/arcgis-map-components/XKACQU62.js.LEGAL.txt +3 -0
  157. package/dist/arcgis-map-components/{VIOBYYWI.js → XWPNVVVH.js} +2 -2
  158. package/dist/arcgis-map-components/XWPNVVVH.js.LEGAL.txt +3 -0
  159. package/dist/arcgis-map-components/YKF77A5R.js +5 -0
  160. package/dist/arcgis-map-components/YKF77A5R.js.LEGAL.txt +3 -0
  161. package/dist/arcgis-map-components/Z5VI45NS.js +5 -0
  162. package/dist/arcgis-map-components/Z5VI45NS.js.LEGAL.txt +3 -0
  163. package/dist/arcgis-map-components/{FCRCUG3N.js → ZEMTWAKI.js} +2 -2
  164. package/dist/arcgis-map-components/ZEMTWAKI.js.LEGAL.txt +3 -0
  165. package/dist/arcgis-map-components/{3U74O5P3.js → ZFHBTMC5.js} +2 -2
  166. package/dist/arcgis-map-components/ZFHBTMC5.js.LEGAL.txt +3 -0
  167. package/dist/arcgis-map-components/{7E4SPD5N.js → ZGIM3ZIU.js} +2 -2
  168. package/dist/arcgis-map-components/ZGIM3ZIU.js.LEGAL.txt +3 -0
  169. package/dist/arcgis-map-components/ZMFH46BE.js +5 -0
  170. package/dist/arcgis-map-components/ZMFH46BE.js.LEGAL.txt +3 -0
  171. package/dist/arcgis-map-components/ZT7XXGGS.js +5 -0
  172. package/dist/arcgis-map-components/ZT7XXGGS.js.LEGAL.txt +3 -0
  173. package/dist/arcgis-map-components/ZVWGXVOD.js +230 -0
  174. package/dist/arcgis-map-components/ZVWGXVOD.js.LEGAL.txt +21 -0
  175. package/dist/arcgis-map-components/arcgis-map-components.css +1 -1
  176. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  177. package/dist/arcgis-map-components/arcgis-map-components.esm.js.LEGAL.txt +1 -1
  178. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ar.json +1 -0
  179. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.bg.json +1 -0
  180. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.bs.json +1 -0
  181. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ca.json +1 -0
  182. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.cs.json +1 -0
  183. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.da.json +1 -0
  184. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.de.json +1 -0
  185. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.el.json +1 -0
  186. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.en.json +1 -0
  187. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.es.json +1 -0
  188. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.et.json +1 -0
  189. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.fi.json +1 -0
  190. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.fr.json +1 -0
  191. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.he.json +1 -0
  192. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.hr.json +1 -0
  193. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.hu.json +1 -0
  194. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.id.json +1 -0
  195. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.it.json +1 -0
  196. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ja.json +1 -0
  197. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ko.json +1 -0
  198. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.lt.json +1 -0
  199. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.lv.json +1 -0
  200. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.nl.json +1 -0
  201. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.no.json +1 -0
  202. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.pl.json +1 -0
  203. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.pt-BR.json +1 -0
  204. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.pt-PT.json +1 -0
  205. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ro.json +1 -0
  206. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.ru.json +1 -0
  207. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.sk.json +1 -0
  208. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.sl.json +1 -0
  209. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.sr.json +1 -0
  210. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.sv.json +1 -0
  211. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.th.json +1 -0
  212. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.tr.json +1 -0
  213. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.uk.json +1 -0
  214. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.vi.json +1 -0
  215. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.zh-CN.json +1 -0
  216. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.zh-HK.json +1 -0
  217. package/dist/arcgis-map-components/assets/layer-list/t9n/messages.zh-TW.json +1 -0
  218. package/dist/chunks/basemap-gallery-resources.js +1 -1
  219. package/dist/chunks/component-utils.js +81 -76
  220. package/dist/chunks/globalCss.js +1 -1
  221. package/dist/chunks/layer-list.js +8 -0
  222. package/dist/chunks/legacyIcon.js +1 -1
  223. package/dist/chunks/runtime.js +1 -1
  224. package/dist/chunks/useT9n.js +9 -0
  225. package/dist/chunks/useView.js +11 -13
  226. package/dist/chunks/useViewModel.js +1 -1
  227. package/dist/chunks/useWidget.js +1 -1
  228. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  229. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  230. package/dist/components/arcgis-attachments/customElement.js +1 -1
  231. package/dist/components/arcgis-basemap-gallery/customElement.js +2 -2
  232. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  233. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  234. package/dist/components/arcgis-basemap-toggle/customElement.js +2 -2
  235. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  236. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  237. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  238. package/dist/components/arcgis-compass/customElement.js +2 -2
  239. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  240. package/dist/components/arcgis-daylight/customElement.js +1 -1
  241. package/dist/components/arcgis-directional-pad/customElement.js +2 -2
  242. package/dist/components/arcgis-directions/customElement.js +1 -1
  243. package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
  244. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  245. package/dist/components/arcgis-editor/customElement.js +1 -1
  246. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  247. package/dist/components/arcgis-expand/customElement.js +1 -1
  248. package/dist/components/arcgis-feature/customElement.js +1 -1
  249. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  250. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  251. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  252. package/dist/components/arcgis-features/customElement.js +1 -1
  253. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  254. package/dist/components/arcgis-fullscreen/customElement.js +2 -2
  255. package/dist/components/arcgis-histogram/customElement.js +1 -1
  256. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  257. package/dist/components/arcgis-home/customElement.js +2 -2
  258. package/dist/components/arcgis-layer-list/css.d.ts +22 -0
  259. package/dist/components/arcgis-layer-list/customElement.js +8 -8
  260. package/dist/components/arcgis-layer-list-item/customElement.d.ts +100 -0
  261. package/dist/components/arcgis-layer-list-item/customElement.js +11338 -0
  262. package/dist/components/arcgis-layer-list-item/index.d.ts +9 -0
  263. package/dist/components/arcgis-layer-list-item/index.js +9 -0
  264. package/dist/components/arcgis-legend/customElement.js +1 -1
  265. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  266. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  267. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +2 -2
  268. package/dist/components/arcgis-locate/customElement.js +2 -2
  269. package/dist/components/arcgis-map/customElement.js +1 -1
  270. package/dist/components/arcgis-measurement/customElement.js +1 -1
  271. package/dist/components/arcgis-navigation-toggle/customElement.js +10 -9
  272. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  273. package/dist/components/arcgis-placement/customElement.js +1 -1
  274. package/dist/components/arcgis-print/customElement.js +1 -1
  275. package/dist/components/arcgis-scale-bar/customElement.js +2 -2
  276. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  277. package/dist/components/arcgis-scene/customElement.js +1 -1
  278. package/dist/components/arcgis-search/customElement.js +1 -1
  279. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  280. package/dist/components/arcgis-sketch/customElement.js +1 -1
  281. package/dist/components/arcgis-slice/customElement.js +1 -1
  282. package/dist/components/arcgis-slider/customElement.js +1 -1
  283. package/dist/components/arcgis-swipe/customElement.js +2 -2
  284. package/dist/components/arcgis-table-list/customElement.js +1 -1
  285. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  286. package/dist/components/arcgis-time-zone-label/customElement.js +8 -7
  287. package/dist/components/arcgis-track/customElement.js +2 -2
  288. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  289. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  290. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  291. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  292. package/dist/components/arcgis-version-management/customElement.js +2 -2
  293. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  294. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  295. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  296. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  297. package/dist/components/arcgis-video/customElement.js +1 -1
  298. package/dist/components/arcgis-video-player/customElement.js +2 -2
  299. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  300. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  301. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  302. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  303. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  304. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  305. package/dist/components/arcgis-weather/customElement.js +1 -1
  306. package/dist/components/arcgis-zoom/customElement.js +2 -2
  307. package/dist/docs/api.json +919 -2
  308. package/dist/docs/docs.json +886 -2
  309. package/dist/docs/vscode.html-custom-data.json +116 -0
  310. package/dist/docs/web-types.json +297 -1
  311. package/dist/index.d.ts +19 -0
  312. package/dist/index.js +1 -1
  313. package/dist/loader.js +2 -1
  314. package/dist/types/lumina.d.ts +6 -0
  315. package/dist/types/preact.d.ts +7 -0
  316. package/dist/types/react.d.ts +8 -0
  317. package/dist/types/stencil.d.ts +6 -0
  318. package/dist/utils/action-utils.d.ts +24 -0
  319. package/dist/utils/component-utils.d.ts +6 -0
  320. package/dist/utils/layer-list-utils.d.ts +42 -0
  321. package/package.json +5 -5
  322. package/dist/arcgis-map-components/2EVWV53Z.js +0 -5
  323. package/dist/arcgis-map-components/44AYOODG.js.LEGAL.txt +0 -3
  324. package/dist/arcgis-map-components/4NE4ZV3U.js +0 -5
  325. package/dist/arcgis-map-components/4NE4ZV3U.js.LEGAL.txt +0 -3
  326. package/dist/arcgis-map-components/5NIMR2GY.js.LEGAL.txt +0 -3
  327. package/dist/arcgis-map-components/5SDEM4QU.js.LEGAL.txt +0 -3
  328. package/dist/arcgis-map-components/5SKNSVLB.js.LEGAL.txt +0 -3
  329. package/dist/arcgis-map-components/5TPAQTMM.js +0 -5
  330. package/dist/arcgis-map-components/5TPAQTMM.js.LEGAL.txt +0 -3
  331. package/dist/arcgis-map-components/5YDZK63G.js.LEGAL.txt +0 -3
  332. package/dist/arcgis-map-components/5Z5EPB76.js +0 -5
  333. package/dist/arcgis-map-components/5Z5EPB76.js.LEGAL.txt +0 -3
  334. package/dist/arcgis-map-components/6IN3QBMZ.js +0 -5
  335. package/dist/arcgis-map-components/6IN3QBMZ.js.LEGAL.txt +0 -3
  336. package/dist/arcgis-map-components/6LE7X5EA.js +0 -5
  337. package/dist/arcgis-map-components/6LE7X5EA.js.LEGAL.txt +0 -3
  338. package/dist/arcgis-map-components/6MJE2WM3.js +0 -5
  339. package/dist/arcgis-map-components/6MJE2WM3.js.LEGAL.txt +0 -3
  340. package/dist/arcgis-map-components/74HKBQOD.js.LEGAL.txt +0 -3
  341. package/dist/arcgis-map-components/7E4SPD5N.js.LEGAL.txt +0 -3
  342. package/dist/arcgis-map-components/7NNLYRUX.js.LEGAL.txt +0 -3
  343. package/dist/arcgis-map-components/7SBASKKS.js +0 -5
  344. package/dist/arcgis-map-components/7SBASKKS.js.LEGAL.txt +0 -3
  345. package/dist/arcgis-map-components/A3ZGJRMA.js +0 -5
  346. package/dist/arcgis-map-components/A3ZGJRMA.js.LEGAL.txt +0 -3
  347. package/dist/arcgis-map-components/A6XOBIDV.js.LEGAL.txt +0 -3
  348. package/dist/arcgis-map-components/AJ4KFPKX.js +0 -5
  349. package/dist/arcgis-map-components/AJ4KFPKX.js.LEGAL.txt +0 -3
  350. package/dist/arcgis-map-components/AWX24RXP.js +0 -5
  351. package/dist/arcgis-map-components/AWX24RXP.js.LEGAL.txt +0 -3
  352. package/dist/arcgis-map-components/B6EQUKWA.js +0 -5
  353. package/dist/arcgis-map-components/B6EQUKWA.js.LEGAL.txt +0 -3
  354. package/dist/arcgis-map-components/BDGECJK3.js +0 -5
  355. package/dist/arcgis-map-components/BDGECJK3.js.LEGAL.txt +0 -3
  356. package/dist/arcgis-map-components/CBDGDQQJ.js.LEGAL.txt +0 -3
  357. package/dist/arcgis-map-components/DWQPLOY2.js +0 -5
  358. package/dist/arcgis-map-components/DWQPLOY2.js.LEGAL.txt +0 -3
  359. package/dist/arcgis-map-components/E7WYQEZA.js.LEGAL.txt +0 -3
  360. package/dist/arcgis-map-components/EFMYPHC2.js +0 -5
  361. package/dist/arcgis-map-components/EFMYPHC2.js.LEGAL.txt +0 -3
  362. package/dist/arcgis-map-components/EP565K7G.js.LEGAL.txt +0 -3
  363. package/dist/arcgis-map-components/FCRCUG3N.js.LEGAL.txt +0 -3
  364. package/dist/arcgis-map-components/FIRZSZUU.js +0 -5
  365. package/dist/arcgis-map-components/FIRZSZUU.js.LEGAL.txt +0 -3
  366. package/dist/arcgis-map-components/G763OO5H.js.LEGAL.txt +0 -3
  367. package/dist/arcgis-map-components/GA446PHJ.js +0 -5
  368. package/dist/arcgis-map-components/GA446PHJ.js.LEGAL.txt +0 -3
  369. package/dist/arcgis-map-components/GAS2QJMK.js +0 -5
  370. package/dist/arcgis-map-components/GAS2QJMK.js.LEGAL.txt +0 -3
  371. package/dist/arcgis-map-components/GIAMJ3XJ.js.LEGAL.txt +0 -3
  372. package/dist/arcgis-map-components/GJMRDYZJ.js +0 -5
  373. package/dist/arcgis-map-components/GJMRDYZJ.js.LEGAL.txt +0 -3
  374. package/dist/arcgis-map-components/GKZRYKQY.js +0 -4
  375. package/dist/arcgis-map-components/HNZ2YJLI.js +0 -5
  376. package/dist/arcgis-map-components/HNZ2YJLI.js.LEGAL.txt +0 -3
  377. package/dist/arcgis-map-components/IJTOT7TR.js.LEGAL.txt +0 -3
  378. package/dist/arcgis-map-components/IOD7VVY2.js.LEGAL.txt +0 -3
  379. package/dist/arcgis-map-components/IXCM23BB.js.LEGAL.txt +0 -3
  380. package/dist/arcgis-map-components/JBZ7SBFM.js +0 -5
  381. package/dist/arcgis-map-components/JOJ6O5LT.js +0 -5
  382. package/dist/arcgis-map-components/JOJ6O5LT.js.LEGAL.txt +0 -3
  383. package/dist/arcgis-map-components/JVP42R4N.js +0 -4
  384. package/dist/arcgis-map-components/JVP42R4N.js.LEGAL.txt +0 -3
  385. package/dist/arcgis-map-components/KWGWMAXA.js +0 -5
  386. package/dist/arcgis-map-components/KWGWMAXA.js.LEGAL.txt +0 -3
  387. package/dist/arcgis-map-components/LAVU3PRQ.js +0 -5
  388. package/dist/arcgis-map-components/LAVU3PRQ.js.LEGAL.txt +0 -3
  389. package/dist/arcgis-map-components/LEA34TFP.js.LEGAL.txt +0 -3
  390. package/dist/arcgis-map-components/LTPWPDWS.js +0 -5
  391. package/dist/arcgis-map-components/LTPWPDWS.js.LEGAL.txt +0 -3
  392. package/dist/arcgis-map-components/M5N26N5R.js +0 -5
  393. package/dist/arcgis-map-components/M5N26N5R.js.LEGAL.txt +0 -3
  394. package/dist/arcgis-map-components/MH6KPPZZ.js.LEGAL.txt +0 -3
  395. package/dist/arcgis-map-components/MQ4B2OPJ.js +0 -5
  396. package/dist/arcgis-map-components/MQ4B2OPJ.js.LEGAL.txt +0 -3
  397. package/dist/arcgis-map-components/NRLS2KLK.js +0 -5
  398. package/dist/arcgis-map-components/NRLS2KLK.js.LEGAL.txt +0 -3
  399. package/dist/arcgis-map-components/OWM2ITEL.js +0 -5
  400. package/dist/arcgis-map-components/OWM2ITEL.js.LEGAL.txt +0 -3
  401. package/dist/arcgis-map-components/OWXVH6U3.js +0 -4
  402. package/dist/arcgis-map-components/OWXVH6U3.js.LEGAL.txt +0 -3
  403. package/dist/arcgis-map-components/P45GX4OH.js +0 -5
  404. package/dist/arcgis-map-components/P45GX4OH.js.LEGAL.txt +0 -3
  405. package/dist/arcgis-map-components/PXQPHGVM.js +0 -5
  406. package/dist/arcgis-map-components/PXQPHGVM.js.LEGAL.txt +0 -3
  407. package/dist/arcgis-map-components/QCWV2QAK.js +0 -5
  408. package/dist/arcgis-map-components/QCWV2QAK.js.LEGAL.txt +0 -3
  409. package/dist/arcgis-map-components/QLUOY3V4.js +0 -4
  410. package/dist/arcgis-map-components/QLUOY3V4.js.LEGAL.txt +0 -3
  411. package/dist/arcgis-map-components/R6ZNNDJD.js.LEGAL.txt +0 -3
  412. package/dist/arcgis-map-components/RMPTOIIQ.js.LEGAL.txt +0 -3
  413. package/dist/arcgis-map-components/SK5XJTWA.js.LEGAL.txt +0 -3
  414. package/dist/arcgis-map-components/TPIPTBOL.js.LEGAL.txt +0 -3
  415. package/dist/arcgis-map-components/TROHICTB.js +0 -5
  416. package/dist/arcgis-map-components/TROHICTB.js.LEGAL.txt +0 -3
  417. package/dist/arcgis-map-components/TVSHUOI5.js +0 -4
  418. package/dist/arcgis-map-components/TVSHUOI5.js.LEGAL.txt +0 -3
  419. package/dist/arcgis-map-components/UBQO34NB.js.LEGAL.txt +0 -3
  420. package/dist/arcgis-map-components/UBVHBQGK.js +0 -5
  421. package/dist/arcgis-map-components/UBVHBQGK.js.LEGAL.txt +0 -12
  422. package/dist/arcgis-map-components/UKRRSSNU.js +0 -5
  423. package/dist/arcgis-map-components/UKRRSSNU.js.LEGAL.txt +0 -3
  424. package/dist/arcgis-map-components/ULEQ7UOA.js.LEGAL.txt +0 -3
  425. package/dist/arcgis-map-components/UZ3OFHZH.js.LEGAL.txt +0 -3
  426. package/dist/arcgis-map-components/VIOBYYWI.js.LEGAL.txt +0 -3
  427. package/dist/arcgis-map-components/WCWNCGEN.js.LEGAL.txt +0 -3
  428. package/dist/arcgis-map-components/WUFEAJ6A.js +0 -6
  429. package/dist/arcgis-map-components/XGLRAUTN.js +0 -5
  430. package/dist/arcgis-map-components/XGLRAUTN.js.LEGAL.txt +0 -3
  431. package/dist/arcgis-map-components/XZDNSO4J.js.LEGAL.txt +0 -3
  432. package/dist/arcgis-map-components/Y77B6Q4Y.js +0 -5
  433. package/dist/arcgis-map-components/Y77B6Q4Y.js.LEGAL.txt +0 -3
  434. package/dist/arcgis-map-components/Y7BK25LJ.js.LEGAL.txt +0 -3
  435. package/dist/arcgis-map-components/YGGDPAVY.js +0 -5
  436. package/dist/arcgis-map-components/YGGDPAVY.js.LEGAL.txt +0 -3
  437. package/dist/arcgis-map-components/YHGKQDUT.js +0 -5
  438. package/dist/arcgis-map-components/YHGKQDUT.js.LEGAL.txt +0 -3
  439. package/dist/arcgis-map-components/YMJYEJ2B.js.LEGAL.txt +0 -3
  440. package/dist/arcgis-map-components/YVQX5XUC.js +0 -5
  441. package/dist/arcgis-map-components/YVQX5XUC.js.LEGAL.txt +0 -3
  442. package/dist/arcgis-map-components/ZL7ON6TO.js +0 -5
  443. package/dist/arcgis-map-components/ZL7ON6TO.js.LEGAL.txt +0 -3
  444. package/dist/arcgis-map-components/ZYVDRITM.js +0 -5
  445. package/dist/arcgis-map-components/ZYVDRITM.js.LEGAL.txt +0 -3
  446. /package/dist/arcgis-map-components/{GHDTFWTG.js.LEGAL.txt → ELFPVJB2.js.LEGAL.txt} +0 -0
  447. /package/dist/arcgis-map-components/{GKZRYKQY.js.LEGAL.txt → NRCIDFH5.js.LEGAL.txt} +0 -0
@@ -0,0 +1,230 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
+ v4.33.0-next.72 */
4
+ import{a as bo}from"./CFCBRGMX.js";import{a as Wt,b as Bt}from"./NRCIDFH5.js";import"./CDIWPICZ.js";import{a as mo}from"./3GOFEYOJ.js";import{j as go}from"./IZOXPD66.js";import{A as uo,B as ho,F as po,G as Ee,H as fo,I as be,K as yo,a as Se,b as st,d as ao,p as io,s as so,t as ie,x as lo,z as co}from"./6Q2MHLIK.js";var _0,$$=$arcgis.t(([{isLayerFromCatalog:Yi}])=>{var Ki={hideChildren:"hide-children"};function Xi({exclusive:e,visible:t,visibilityAppearance:r}){let o=r==="checkbox";return t?e?"circle-f":o?"check-square-f":"view-visible":e?"circle":o?"square":"view-hide"}function Ji({connectionStatus:e,publishing:t}){return e?e==="connected"?"beacon":"offline":t?"square":"bullet-point"}function Qi(e){return e?.listMode===Ki.hideChildren}function Zi(e){let t=(e?.layer&&es(e.layer)?e.layer.layer:void 0)??e?.layer;return t?t.type==="catalog"?!1:ts(t)??!0:!1}function es(e){return e!=null&&"layer"in e&&e.layer!=null}function ts(e){let t=rs(e);return t!=null&&"supportsDynamicLayers"in t?t.supportsDynamicLayers:void 0}function rs(e){return e&&"capabilities"in e&&e.capabilities!=null&&"exportMap"in e.capabilities?e.capabilities.exportMap:void 0}function os(e){return e?.getAttribute("data-item")}function ns(e){let{children:t,error:r}=e,o="incompatible"in e?e.incompatible:!1;return!!t?.filter(n=>!n.hidden).length&&!r&&!o}function as(e){for(let t of e)for(let r of t)if(r.type==="button"||r.type==="toggle")return r}function vo(e,t){let r=e.parent,o=e.layer;if(o?.type!=="map-image"||!o.sourceJSON||!r)return!1;let n=o.sourceJSON.layers;if(!n)return!1;let a=n.find(s=>e.id===s.id),i=t==="footprints"?"Feature Layer":"Catalog Dynamic Group Layer";return a?.type!==i?!1:n.find(s=>s.id===r.id)?.type==="Catalog Layer"}var z={};var Eo;function is(){if(Eo)return z;Eo=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),d=Symbol.iterator;function p(y){return y===null||typeof y!="object"?null:(y=d&&y[d]||y["@@iterator"],typeof y=="function"?y:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function x(y,w,P){this.props=y,this.context=w,this.refs=T,this.updater=P||b}x.prototype.isReactComponent={},x.prototype.setState=function(y,w){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,w,"setState")},x.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function _(){}_.prototype=x.prototype;function v(y,w,P){this.props=y,this.context=w,this.refs=T,this.updater=P||b}var O=v.prototype=new _;O.constructor=v,C(O,x.prototype),O.isPureReactComponent=!0;var k=Array.isArray,X=Object.prototype.hasOwnProperty,L={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function W(y,w,P){var H,U={},Q=null,G=null;if(w!=null)for(H in w.ref!==void 0&&(G=w.ref),w.key!==void 0&&(Q=""+w.key),w)X.call(w,H)&&!Y.hasOwnProperty(H)&&(U[H]=w[H]);var Z=arguments.length-2;if(Z===1)U.children=P;else if(1<Z){for(var ee=Array(Z),ce=0;ce<Z;ce++)ee[ce]=arguments[ce+2];U.children=ee}if(y&&y.defaultProps)for(H in Z=y.defaultProps,Z)U[H]===void 0&&(U[H]=Z[H]);return{$$typeof:e,type:y,key:Q,ref:G,props:U,_owner:L.current}}function K(y,w){return{$$typeof:e,type:y.type,key:w,ref:y.ref,props:y.props,_owner:y._owner}}function V(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function M(y){var w={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(P){return w[P]})}var D=/\/+/g;function q(y,w){return typeof y=="object"&&y!==null&&y.key!=null?M(""+y.key):w.toString(36)}function h(y,w,P,H,U){var Q=typeof y;(Q==="undefined"||Q==="boolean")&&(y=null);var G=!1;if(y===null)G=!0;else switch(Q){case"string":case"number":G=!0;break;case"object":switch(y.$$typeof){case e:case t:G=!0}}if(G)return G=y,U=U(G),y=H===""?"."+q(G,0):H,k(U)?(P="",y!=null&&(P=y.replace(D,"$&/")+"/"),h(U,w,P,"",function(ce){return ce})):U!=null&&(V(U)&&(U=K(U,P+(!U.key||G&&G.key===U.key?"":(""+U.key).replace(D,"$&/")+"/")+y)),w.push(U)),1;if(G=0,H=H===""?".":H+":",k(y))for(var Z=0;Z<y.length;Z++){Q=y[Z];var ee=H+q(Q,Z);G+=h(Q,w,P,ee,U)}else if(ee=p(y),typeof ee=="function")for(y=ee.call(y),Z=0;!(Q=y.next()).done;)Q=Q.value,ee=H+q(Q,Z++),G+=h(Q,w,P,ee,U);else if(Q==="object")throw w=String(y),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.");return G}function m(y,w,P){if(y==null)return y;var H=[],U=0;return h(y,H,"","",function(Q){return w.call(P,Q,U++)}),H}function S(y){if(y._status===-1){var w=y._result;w=w(),w.then(function(P){(y._status===0||y._status===-1)&&(y._status=1,y._result=P)},function(P){(y._status===0||y._status===-1)&&(y._status=2,y._result=P)}),y._status===-1&&(y._status=0,y._result=w)}if(y._status===1)return y._result.default;throw y._result}var R={current:null},$={transition:null},J={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:$,ReactCurrentOwner:L};function te(){throw Error("act(...) is not supported in production builds of React.")}return z.Children={map:m,forEach:function(y,w,P){m(y,function(){w.apply(this,arguments)},P)},count:function(y){var w=0;return m(y,function(){w++}),w},toArray:function(y){return m(y,function(w){return w})||[]},only:function(y){if(!V(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},z.Component=x,z.Fragment=r,z.Profiler=n,z.PureComponent=v,z.StrictMode=o,z.Suspense=u,z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,z.act=te,z.cloneElement=function(y,w,P){if(y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+y+".");var H=C({},y.props),U=y.key,Q=y.ref,G=y._owner;if(w!=null){if(w.ref!==void 0&&(Q=w.ref,G=L.current),w.key!==void 0&&(U=""+w.key),y.type&&y.type.defaultProps)var Z=y.type.defaultProps;for(ee in w)X.call(w,ee)&&!Y.hasOwnProperty(ee)&&(H[ee]=w[ee]===void 0&&Z!==void 0?Z[ee]:w[ee])}var ee=arguments.length-2;if(ee===1)H.children=P;else if(1<ee){Z=Array(ee);for(var ce=0;ce<ee;ce++)Z[ce]=arguments[ce+2];H.children=Z}return{$$typeof:e,type:y.type,key:U,ref:Q,props:H,_owner:G}},z.createContext=function(y){return y={$$typeof:i,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},y.Provider={$$typeof:a,_context:y},y.Consumer=y},z.createElement=W,z.createFactory=function(y){var w=W.bind(null,y);return w.type=y,w},z.createRef=function(){return{current:null}},z.forwardRef=function(y){return{$$typeof:s,render:y}},z.isValidElement=V,z.lazy=function(y){return{$$typeof:g,_payload:{_status:-1,_result:y},_init:S}},z.memo=function(y,w){return{$$typeof:c,type:y,compare:w===void 0?null:w}},z.startTransition=function(y){var w=$.transition;$.transition={};try{y()}finally{$.transition=w}},z.unstable_act=te,z.useCallback=function(y,w){return R.current.useCallback(y,w)},z.useContext=function(y){return R.current.useContext(y)},z.useDebugValue=function(){},z.useDeferredValue=function(y){return R.current.useDeferredValue(y)},z.useEffect=function(y,w){return R.current.useEffect(y,w)},z.useId=function(){return R.current.useId()},z.useImperativeHandle=function(y,w,P){return R.current.useImperativeHandle(y,w,P)},z.useInsertionEffect=function(y,w){return R.current.useInsertionEffect(y,w)},z.useLayoutEffect=function(y,w){return R.current.useLayoutEffect(y,w)},z.useMemo=function(y,w){return R.current.useMemo(y,w)},z.useReducer=function(y,w,P){return R.current.useReducer(y,w,P)},z.useRef=function(y){return R.current.useRef(y)},z.useState=function(y){return R.current.useState(y)},z.useSyncExternalStore=function(y,w,P){return R.current.useSyncExternalStore(y,w,P)},z.useTransition=function(){return R.current.useTransition()},z.version="18.3.1",z}var _t={exports:{}};_t.exports;var So;function _y(){return So||(So=1,_t.exports),_t.exports}is();var ss=Object.defineProperty,Le=(e,t)=>ss(e,"name",{value:t,configurable:!0}),ls=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),{LOGLEVEL:cs}=ls,De={trace:1,debug:2,info:3,warn:4,error:5,silent:10},us=cs,Qe=De[us]||De.info,ne={trace:Le((e,...t)=>{Qe<=De.trace&&console.trace(e,...t)},"trace"),debug:Le((e,...t)=>{Qe<=De.debug&&console.debug(e,...t)},"debug"),info:Le((e,...t)=>{Qe<=De.info&&console.info(e,...t)},"info"),warn:Le((e,...t)=>{Qe<=De.warn&&console.warn(e,...t)},"warn"),error:Le((e,...t)=>{Qe<=De.error&&console.error(e,...t)},"error"),log:Le((e,...t)=>{Qe<De.silent&&console.log(e,...t)},"log")},nr=new Set,ue=Le(e=>(t,...r)=>{if(!nr.has(t))return nr.add(t),ne[e](t,...r)},"once");ue.clear=()=>nr.clear();ue.trace=ue("trace");ue.debug=ue("debug");ue.info=ue("info");ue.warn=ue("warn");ue.error=ue("error");ue.log=ue("log");var dt=ue("warn"),Re=Le(e=>(...t)=>{let r=[];if(t.length){let o=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,n=/<\/span>/gi,a;for(r.push(t[0].replace(o,"%c").replace(n,"%c"));a=o.exec(t[0]);)r.push(a[2]),r.push("");for(let i=1;i<t.length;i++)r.push(t[i])}ne[e].apply(ne,r)},"pretty");Re.trace=Re("trace");Re.debug=Re("debug");Re.info=Re("info");Re.warn=Re("warn");Re.error=Re("error");var Ir=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.TESTING_MODULE_CRASH_REPORT="testingModuleCrashReport",e.TESTING_MODULE_PROGRESS_REPORT="testingModuleProgressReport",e.TESTING_MODULE_RUN_REQUEST="testingModuleRunRequest",e.TESTING_MODULE_RUN_ALL_REQUEST="testingModuleRunAllRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST="testingModuleCancelTestRunRequest",e.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE="testingModuleCancelTestRunResponse",e))(Ir||{}),ds=Ir,{CHANNEL_WS_DISCONNECT:Yo,CHANNEL_CREATED:hs,CONFIG_ERROR:Ko,CREATE_NEW_STORYFILE_REQUEST:ps,CREATE_NEW_STORYFILE_RESPONSE:fs,CURRENT_STORY_WAS_SET:ar,DOCS_PREPARED:Xo,DOCS_RENDERED:Rr,FILE_COMPONENT_SEARCH_REQUEST:ys,FILE_COMPONENT_SEARCH_RESPONSE:gs,FORCE_RE_RENDER:Ar,FORCE_REMOUNT:Jo,GLOBALS_UPDATED:ht,NAVIGATE_URL:ms,PLAY_FUNCTION_THREW_EXCEPTION:Qo,UNHANDLED_ERRORS_WHILE_PLAYING:Zo,PRELOAD_ENTRIES:en,PREVIEW_BUILDER_PROGRESS:bs,PREVIEW_KEYDOWN:tn,REGISTER_SUBSCRIPTION:vs,RESET_STORY_ARGS:Or,SELECT_STORY:Es,SET_CONFIG:Ss,SET_CURRENT_STORY:rn,SET_FILTER:ws,SET_GLOBALS:on,SET_INDEX:Cs,SET_STORIES:Ts,SHARED_STATE_CHANGED:_s,SHARED_STATE_SET:Is,STORIES_COLLAPSE_ALL:Rs,STORIES_EXPAND_ALL:As,STORY_ARGS_UPDATED:nn,STORY_CHANGED:an,STORY_ERRORED:sn,STORY_INDEX_INVALIDATED:ln,STORY_MISSING:ir,STORY_PREPARED:cn,STORY_RENDER_PHASE_CHANGED:pt,STORY_RENDERED:At,STORY_FINISHED:sr,STORY_SPECIFIED:un,STORY_THREW_EXCEPTION:dn,STORY_UNCHANGED:hn,UPDATE_GLOBALS:xr,UPDATE_QUERY_PARAMS:pn,UPDATE_STORY_ARGS:$r,REQUEST_WHATS_NEW_DATA:Os,RESULT_WHATS_NEW_DATA:xs,SET_WHATS_NEW_CACHE:$s,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ns,TELEMETRY_ERROR:Ps,SAVE_STORY_REQUEST:Ls,SAVE_STORY_RESPONSE:Ds,ARGTYPES_INFO_REQUEST:fn,ARGTYPES_INFO_RESPONSE:lr,TESTING_MODULE_CRASH_REPORT:ks,TESTING_MODULE_PROGRESS_REPORT:Ms,TESTING_MODULE_RUN_REQUEST:Fs,TESTING_MODULE_RUN_ALL_REQUEST:js,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:qs,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:Us}=Ir,Gs=Object.freeze(Object.defineProperty({__proto__:null,ARGTYPES_INFO_REQUEST:fn,ARGTYPES_INFO_RESPONSE:lr,CHANNEL_CREATED:hs,CHANNEL_WS_DISCONNECT:Yo,CONFIG_ERROR:Ko,CREATE_NEW_STORYFILE_REQUEST:ps,CREATE_NEW_STORYFILE_RESPONSE:fs,CURRENT_STORY_WAS_SET:ar,DOCS_PREPARED:Xo,DOCS_RENDERED:Rr,FILE_COMPONENT_SEARCH_REQUEST:ys,FILE_COMPONENT_SEARCH_RESPONSE:gs,FORCE_REMOUNT:Jo,FORCE_RE_RENDER:Ar,GLOBALS_UPDATED:ht,NAVIGATE_URL:ms,PLAY_FUNCTION_THREW_EXCEPTION:Qo,PRELOAD_ENTRIES:en,PREVIEW_BUILDER_PROGRESS:bs,PREVIEW_KEYDOWN:tn,REGISTER_SUBSCRIPTION:vs,REQUEST_WHATS_NEW_DATA:Os,RESET_STORY_ARGS:Or,RESULT_WHATS_NEW_DATA:xs,SAVE_STORY_REQUEST:Ls,SAVE_STORY_RESPONSE:Ds,SELECT_STORY:Es,SET_CONFIG:Ss,SET_CURRENT_STORY:rn,SET_FILTER:ws,SET_GLOBALS:on,SET_INDEX:Cs,SET_STORIES:Ts,SET_WHATS_NEW_CACHE:$s,SHARED_STATE_CHANGED:_s,SHARED_STATE_SET:Is,STORIES_COLLAPSE_ALL:Rs,STORIES_EXPAND_ALL:As,STORY_ARGS_UPDATED:nn,STORY_CHANGED:an,STORY_ERRORED:sn,STORY_FINISHED:sr,STORY_INDEX_INVALIDATED:ln,STORY_MISSING:ir,STORY_PREPARED:cn,STORY_RENDERED:At,STORY_RENDER_PHASE_CHANGED:pt,STORY_SPECIFIED:un,STORY_THREW_EXCEPTION:dn,STORY_UNCHANGED:hn,TELEMETRY_ERROR:Ps,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:qs,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:Us,TESTING_MODULE_CRASH_REPORT:ks,TESTING_MODULE_PROGRESS_REPORT:Ms,TESTING_MODULE_RUN_ALL_REQUEST:js,TESTING_MODULE_RUN_REQUEST:Fs,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ns,UNHANDLED_ERRORS_WHILE_PLAYING:Zo,UPDATE_GLOBALS:xr,UPDATE_QUERY_PARAMS:pn,UPDATE_STORY_ARGS:$r,default:ds},Symbol.toStringTag,{value:"Module"})),Hs=Object.create,Nr=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,zs=Object.getOwnPropertyNames,Ws=Object.getPrototypeOf,Bs=Object.prototype.hasOwnProperty,E=(e,t)=>Nr(e,"name",{value:t,configurable:!0}),St=(e=>typeof Se<"u"?Se:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Se<"u"?Se:t)[r]}):e)(function(e){if(typeof Se<"u")return Se.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ys=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ks=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zs(t))!Bs.call(e,n)&&n!==r&&Nr(e,n,{get:()=>t[n],enumerable:!(o=Vs(t,n))||o.enumerable});return e},Xs=(e,t,r)=>(r=e!=null?Hs(Ws(e)):{},Ks(Nr(r,"default",{value:e,enumerable:!0}),e)),Js=Ys((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var o;typeof window<"u"?o=window:typeof global<"u"?o=global:typeof self<"u"?o=self:o=this,o.memoizerific=r()}})(function(){return E(function r(o,n,a){function i(c,g){if(!n[c]){if(!o[c]){var d=typeof St=="function"&&St;if(!g&&d)return d(c,!0);if(s)return s(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var b=n[c]={exports:{}};o[c][0].call(b.exports,function(C){var T=o[c][1][C];return i(T||C)},b,b.exports,r,o,n,a)}return n[c].exports}E(i,"s");for(var s=typeof St=="function"&&St,u=0;u<a.length;u++)i(a[u]);return i},"e")({1:[function(r,o,n){o.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,o,n){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}E(a,"Similar"),a.prototype.get=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(s=this.indexOf(i),s>=0)return this.lastItem=this.list[s],this.list[s].val},a.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},a.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},a.prototype.forEach=function(i,s){var u;for(u=0;u<this.size;u++)i.call(s||this,this.list[u].val,this.list[u].key,this)},a.prototype.indexOf=function(i){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,i))return s;return-1},a.prototype.isEqual=function(i,s){return i===s||i!==i&&s!==s},o.exports=a},{}],3:[function(r,o,n){var a=r("map-or-similar");o.exports=function(c){var g=new a(!1),d=[];return function(p){var b=E(function(){var C=g,T,x,_=arguments.length-1,v=Array(_+1),O=!0,k;if((b.numArgs||b.numArgs===0)&&b.numArgs!==_+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(k=0;k<_;k++){if(v[k]={cacheItem:C,arg:arguments[k]},C.has(arguments[k])){C=C.get(arguments[k]);continue}O=!1,T=new a(!1),C.set(arguments[k],T),C=T}return O&&(C.has(arguments[_])?x=C.get(arguments[_]):O=!1),O||(x=p.apply(null,arguments),C.set(arguments[_],x)),c>0&&(v[_]={cacheItem:C,arg:arguments[_]},O?i(d,v):d.push(v),d.length>c&&s(d.shift())),b.wasMemoized=O,b.numArgs=_+1,x},"memoizerific");return b.limit=c,b.wasMemoized=!1,b.cache=g,b.lru=d,b}};function i(c,g){var d=c.length,p=g.length,b,C,T;for(C=0;C<d;C++){for(b=!0,T=0;T<p;T++)if(!u(c[C][T].arg,g[T].arg)){b=!1;break}if(b)break}c.push(c.splice(C,1)[0])}E(i,"moveToMostRecentLru");function s(c){var g=c.length,d=c[g-1],p,b;for(d.cacheItem.delete(d.arg),b=g-2;b>=0&&(d=c[b],p=d.cacheItem.get(d.arg),!p||!p.size);b--)d.cacheItem.delete(d.arg)}E(s,"removeCachedResult");function u(c,g){return c===g||c!==c&&g!==g}E(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),se=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function qe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var n=o.reduce(function(s,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(g){var d,p;return(p=(d=g.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&p!==void 0?p:0})):s},[]);if(n.length){var a=new RegExp(`
5
+ [ ]{`+Math.min.apply(Math,n)+"}","g");o=o.map(function(s){return s.replace(a,`
6
+ `)})}o[0]=o[0].replace(/^\r?\n/,"");var i=o[0];return t.forEach(function(s,u){var c=i.match(/(?:^|\n)( *)$/),g=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
7
+ `)&&(d=String(s).split(`
8
+ `).map(function(p,b){return b===0?p:""+g+p}).join(`
9
+ `)),i+=d+o[u+1]}),i}E(qe,"dedent");var wo=new Map,Qs="UNIVERSAL_STORE:",Te={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Ne=class F{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=E(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=E((o,n)=>{let a=typeof o=="function",i=a?"*":o,s=a?o:n;if(this.debug("subscribe",{eventType:i,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(s),()=>{this.debug("unsubscribe",{eventType:i,listener:s}),this.listeners.has(i)&&(this.listeners.get(i).delete(s),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},"subscribe"),this.send=E(o=>{if(this.debug("send",{event:o}),this.status!==F.Status.READY)throw new TypeError(qe`Cannot send event before store is ready. You can get the current status with store.status,
10
+ or await store.readyPromise to wait for the store to be ready before sending events.
11
+ ${JSON.stringify({event:o,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(o,{actor:this.actor}),this.emitToChannel(o,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!F.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(F.isInternalConstructing=!1,this.id=t.id,this.actorId=globalThis.crypto?globalThis.crypto.randomUUID():Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?F.ActorType.LEADER:F.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${Qs}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===F.ActorType.LEADER)this.syncing={state:Te.RESOLVED,promise:Promise.resolve()};else{let o,n,a=new Promise((i,s)=>{o=E(()=>{this.syncing.state===Te.PENDING&&(this.syncing.state=Te.RESOLVED,i())},"syncingResolve"),n=E(u=>{this.syncing.state===Te.PENDING&&(this.syncing.state=Te.REJECTED,s(u))},"syncingReject")});this.syncing={state:Te.PENDING,promise:a,resolve:o,reject:n}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??F.preparation.channel,this.environment=r?.environment??F.preparation.environment,this.channel&&this.environment?this.prepareThis({channel:this.channel,environment:this.environment}):F.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,o=new Promise((n,a)=>{t=E(i=>{n(i)},"resolveRef"),r=E((...i)=>{a(i)},"rejectRef")});F.preparation={resolve:t,reject:r,promise:o}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??F.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return F.Status.UNPREPARED;switch(this.syncing?.state){case Te.PENDING:case void 0:return F.Status.SYNCING;case Te.REJECTED:return F.Status.ERROR;case Te.RESOLVED:default:return F.Status.READY}}untilReady(){return Promise.all([F.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(qe`[UniversalStore]
12
+ create`,{options:t});let r=wo.get(t.id);if(r)return console.warn(qe`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
13
+ You should reuse the existing instance instead of trying to create a new one.`),r;F.isInternalConstructing=!0;let o=new F(t);return wo.set(t.id,o),o}static __prepare(t,r){F.preparation.channel=t,F.preparation.environment=r,F.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,o=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:o,previousState:r,updater:t}),this.status!==F.Status.READY)throw new TypeError(qe`Cannot set state before store is ready. You can get the current status with store.status,
14
+ or await store.readyPromise to wait for the store to be ready before sending events.
15
+ ${JSON.stringify({newState:o,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=o;let n={type:F.InternalEventType.SET_STATE,payload:{state:o,previousState:r}};this.emitToChannel(n,{actor:this.actor}),this.emitToListeners(n,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(F.InternalEventType.SET_STATE,({payload:r},o)=>{t(r.state,r.previousState,o)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===F.ActorType.LEADER?this.emitToChannel({type:F.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:F.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:F.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let o=this.listeners.get(t.type),n=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:o,everythingListeners:n}),[...o??[],...n??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:o}=t;if([o.actor.id,o.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===Te.PENDING&&r.type!==F.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===F.ActorType.LEADER){let n=!0;switch(r.type){case F.InternalEventType.EXISTING_STATE_REQUEST:n=!1;let a={type:F.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor});break;case F.InternalEventType.LEADER_CREATED:n=!1,this.syncing.state=Te.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(qe`Detected multiple UniversalStore leaders created with the same id "${this.id}".
16
+ Only one leader can exists at a time, your stores are now in an invalid state.
17
+ Leaders detected:
18
+ this: ${JSON.stringify(this.actor,null,2)}
19
+ other: ${JSON.stringify(o.actor,null,2)}`);break}n&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:o.actor,forwardingActor:this.actor}))}if(this.actor.type===F.ActorType.FOLLOWER)switch(r.type){case F.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==Te.PENDING)break;this.syncing.resolve?.();let n={type:F.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(n,o);break}switch(r.type){case F.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:o.actor})}debug(t,r){this.debugging&&console.debug(qe`[UniversalStore::${this.id}::${this.environment??F.Environment.UNKNOWN}]
20
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){F.preparation.reject(new Error("reset")),F.setupPreparationPromise(),F.isInternalConstructing=!1}};E(Ne,"UniversalStore"),Ne.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Ne.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Ne.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Ne.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Ne.isInternalConstructing=!1,Ne.setupPreparationPromise();var Yt=Ne,Zs=E(e=>e.transports!==void 0,"isMulti"),el=E(()=>Math.random().toString(16).slice(2),"generateRandomId"),yn=class{constructor(e={}){this.sender=el(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,Zs(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},o={};t.length>=1&&t[0]&&t[0].options&&(o=t[0].options);let n=E(()=>{this.transports.forEach(a=>{a.send(r,o)}),this.handleEvent(r)},"handler");this.isAsync?setImmediate(n):n()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(o=>o!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=E((...o)=>(this.removeListener(e,r),t(...o)),"onceListener");return r}};E(yn,"Channel");var Pr=yn,tl=Object.create,gn=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyNames,ol=Object.getPrototypeOf,nl=Object.prototype.hasOwnProperty,Ae=E((e,t)=>E(function(){return t||(0,e[mn(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),al=E((e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mn(t))!nl.call(e,n)&&n!==r&&gn(e,n,{get:E(()=>t[n],"get"),enumerable:!(o=rl(t,n))||o.enumerable});return e},"__copyProps"),Lr=E((e,t,r)=>(r=e!=null?tl(ol(e)):{},al(t||!e||!e.__esModule?gn(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),il=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],sl=["detail"];function bn(e){let t=il.filter(r=>e[r]!==void 0).reduce((r,o)=>({...r,[o]:e[o]}),{});return e instanceof CustomEvent&&sl.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}E(bn,"extractEventHiddenProperties");var ll=Xs(Js()),vn=Ae({"node_modules/has-symbols/shams.js"(e,t){t.exports=E(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),n=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;r[o]=a;for(o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,o);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}}),En=Ae({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,o=vn();t.exports=E(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},"hasNativeSymbols")}}),cl=Ae({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,n=Object.prototype.toString,a="[object Function]";t.exports=E(function(i){var s=this;if(typeof s!="function"||n.call(s)!==a)throw new TypeError(r+s);for(var u=o.call(arguments,1),c,g=E(function(){if(this instanceof c){var T=s.apply(this,u.concat(o.call(arguments)));return Object(T)===T?T:this}else return s.apply(i,u.concat(o.call(arguments)))},"binder"),d=Math.max(0,s.length-u.length),p=[],b=0;b<d;b++)p.push("$"+b);if(c=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(g),s.prototype){var C=E(function(){},"Empty2");C.prototype=s.prototype,c.prototype=new C,C.prototype=null}return c},"bind")}}),Dr=Ae({"node_modules/function-bind/index.js"(e,t){var r=cl();t.exports=Function.prototype.bind||r}}),ul=Ae({"node_modules/has/src/index.js"(e,t){var r=Dr();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)}}),Sn=Ae({"node_modules/get-intrinsic/index.js"(e,t){var r,o=SyntaxError,n=Function,a=TypeError,i=E(function(D){try{return n('"use strict"; return ('+D+").constructor;")()}catch{}},"getEvalledConstructor"),s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var u=E(function(){throw new a},"throwTypeError"),c=s?function(){try{return arguments.callee,u}catch{try{return s(arguments,"callee").get}catch{return u}}}():u,g=En()(),d=Object.getPrototypeOf||function(D){return D.__proto__},p={},b=typeof Uint8Array>"u"?r:d(Uint8Array),C={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?d(d([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g?r:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g?r:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?d(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":b,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},T=E(function D(q){var h;if(q==="%AsyncFunction%")h=i("async function () {}");else if(q==="%GeneratorFunction%")h=i("function* () {}");else if(q==="%AsyncGeneratorFunction%")h=i("async function* () {}");else if(q==="%AsyncGenerator%"){var m=D("%AsyncGeneratorFunction%");m&&(h=m.prototype)}else if(q==="%AsyncIteratorPrototype%"){var S=D("%AsyncGenerator%");S&&(h=d(S.prototype))}return C[q]=h,h},"doEval2"),x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=Dr(),v=ul(),O=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),X=_.call(Function.call,String.prototype.replace),L=_.call(Function.call,String.prototype.slice),Y=_.call(Function.call,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,V=E(function(D){var q=L(D,0,1),h=L(D,-1);if(q==="%"&&h!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(h==="%"&&q!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var m=[];return X(D,W,function(S,R,$,J){m[m.length]=$?X(J,K,"$1"):R||S}),m},"stringToPath3"),M=E(function(D,q){var h=D,m;if(v(x,h)&&(m=x[h],h="%"+m[0]+"%"),v(C,h)){var S=C[h];if(S===p&&(S=T(h)),typeof S>"u"&&!q)throw new a("intrinsic "+D+" exists, but is not available. Please file an issue!");return{alias:m,name:h,value:S}}throw new o("intrinsic "+D+" does not exist!")},"getBaseIntrinsic2");t.exports=E(function(D,q){if(typeof D!="string"||D.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof q!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,D)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var h=V(D),m=h.length>0?h[0]:"",S=M("%"+m+"%",q),R=S.name,$=S.value,J=!1,te=S.alias;te&&(m=te[0],k(h,O([0,1],te)));for(var y=1,w=!0;y<h.length;y+=1){var P=h[y],H=L(P,0,1),U=L(P,-1);if((H==='"'||H==="'"||H==="`"||U==='"'||U==="'"||U==="`")&&H!==U)throw new o("property names with quotes must have matching quotes");if((P==="constructor"||!w)&&(J=!0),m+="."+P,R="%"+m+"%",v(C,R))$=C[R];else if($!=null){if(!(P in $)){if(!q)throw new a("base intrinsic for "+D+" exists, but the property is not available.");return}if(s&&y+1>=h.length){var Q=s($,P);w=!!Q,w&&"get"in Q&&!("originalValue"in Q.get)?$=Q.get:$=$[P]}else w=v($,P),$=$[P];w&&!J&&(C[R]=$)}}return $},"GetIntrinsic")}}),dl=Ae({"node_modules/call-bind/index.js"(e,t){var r=Dr(),o=Sn(),n=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),i=o("%Reflect.apply%",!0)||r.call(a,n),s=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=E(function(d){var p=i(r,a,arguments);if(s&&u){var b=s(p,"length");b.configurable&&u(p,"length",{value:1+c(0,d.length-(arguments.length-1))})}return p},"callBind");var g=E(function(){return i(r,n,arguments)},"applyBind2");u?u(t.exports,"apply",{value:g}):t.exports.apply=g}}),hl=Ae({"node_modules/call-bind/callBound.js"(e,t){var r=Sn(),o=dl(),n=o(r("String.prototype.indexOf"));t.exports=E(function(a,i){var s=r(a,!!i);return typeof s=="function"&&n(a,".prototype.")>-1?o(s):s},"callBoundIntrinsic")}}),pl=Ae({"node_modules/has-tostringtag/shams.js"(e,t){var r=vn();t.exports=E(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),fl=Ae({"node_modules/is-regex/index.js"(e,t){var r=hl(),o=pl()(),n,a,i,s;o&&(n=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},u=E(function(){throw i},"throwRegexMarker"),s={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=u));var u,c=r("Object.prototype.toString"),g=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=E(o?function(p){if(!p||typeof p!="object")return!1;var b=g(p,"lastIndex"),C=b&&n(b,"value");if(!C)return!1;try{a(p,s)}catch(T){return T===i}}:function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:c(p)===d},"isRegex")}}),yl=Ae({"node_modules/is-function/index.js"(e,t){t.exports=o;var r=Object.prototype.toString;function o(n){if(!n)return!1;var a=r.call(n);return a==="[object Function]"||typeof n=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}E(o,"isFunction3")}}),gl=Ae({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,o=En()();o?(n=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=E(function(s){return typeof s.valueOf()!="symbol"?!1:a.test(n.call(s))},"isRealSymbolObject"),t.exports=E(function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}},"isSymbol3")):t.exports=E(function(s){return!1},"isSymbol3");var n,a,i}}),ml=Lr(fl()),bl=Lr(yl()),vl=Lr(gl());function wn(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}E(wn,"isObject");var El=typeof global=="object"&&global&&global.Object===Object&&global,Sl=El,wl=typeof self=="object"&&self&&self.Object===Object&&self,Cl=Sl||wl||Function("return this")(),kr=Cl,Tl=kr.Symbol,tt=Tl,Cn=Object.prototype,_l=Cn.hasOwnProperty,Il=Cn.toString,lt=tt?tt.toStringTag:void 0;function Tn(e){var t=_l.call(e,lt),r=e[lt];try{e[lt]=void 0;var o=!0}catch{}var n=Il.call(e);return o&&(t?e[lt]=r:delete e[lt]),n}E(Tn,"getRawTag");var Rl=Tn,Al=Object.prototype,Ol=Al.toString;function _n(e){return Ol.call(e)}E(_n,"objectToString");var xl=_n,$l="[object Null]",Nl="[object Undefined]",Co=tt?tt.toStringTag:void 0;function In(e){return e==null?e===void 0?Nl:$l:Co&&Co in Object(e)?Rl(e):xl(e)}E(In,"baseGetTag");var Rn=In;function An(e){return e!=null&&typeof e=="object"}E(An,"isObjectLike");var Pl=An,Ll="[object Symbol]";function On(e){return typeof e=="symbol"||Pl(e)&&Rn(e)==Ll}E(On,"isSymbol");var Mr=On;function xn(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n}E(xn,"arrayMap");var Dl=xn,kl=Array.isArray,Fr=kl,To=tt?tt.prototype:void 0,_o=To?To.toString:void 0;function jr(e){if(typeof e=="string")return e;if(Fr(e))return Dl(e,jr)+"";if(Mr(e))return _o?_o.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}E(jr,"baseToString");var Ml=jr;function $n(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}E($n,"isObject2");var Nn=$n,Fl="[object AsyncFunction]",jl="[object Function]",ql="[object GeneratorFunction]",Ul="[object Proxy]";function Pn(e){if(!Nn(e))return!1;var t=Rn(e);return t==jl||t==ql||t==Fl||t==Ul}E(Pn,"isFunction");var Gl=Pn,Hl=kr["__core-js_shared__"],Kt=Hl,Io=function(){var e=/[^.]+$/.exec(Kt&&Kt.keys&&Kt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ln(e){return!!Io&&Io in e}E(Ln,"isMasked");var Vl=Ln,zl=Function.prototype,Wl=zl.toString;function Dn(e){if(e!=null){try{return Wl.call(e)}catch{}try{return e+""}catch{}}return""}E(Dn,"toSource");var Bl=Dn,Yl=/[\\^$.*+?()[\]{}|]/g,Kl=/^\[object .+?Constructor\]$/,Xl=Function.prototype,Jl=Object.prototype,Ql=Xl.toString,Zl=Jl.hasOwnProperty,ec=RegExp("^"+Ql.call(Zl).replace(Yl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kn(e){if(!Nn(e)||Vl(e))return!1;var t=Gl(e)?ec:Kl;return t.test(Bl(e))}E(kn,"baseIsNative");var tc=kn;function Mn(e,t){return e?.[t]}E(Mn,"getValue");var rc=Mn;function Fn(e,t){var r=rc(e,t);return tc(r)?r:void 0}E(Fn,"getNative");var jn=Fn;function qn(e,t){return e===t||e!==e&&t!==t}E(qn,"eq");var oc=qn,nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ac=/^\w*$/;function Un(e,t){if(Fr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Mr(e)?!0:ac.test(e)||!nc.test(e)||t!=null&&e in Object(t)}E(Un,"isKey");var ic=Un,sc=jn(Object,"create"),ft=sc;function Gn(){this.__data__=ft?ft(null):{},this.size=0}E(Gn,"hashClear");var lc=Gn;function Hn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}E(Hn,"hashDelete");var cc=Hn,uc="__lodash_hash_undefined__",dc=Object.prototype,hc=dc.hasOwnProperty;function Vn(e){var t=this.__data__;if(ft){var r=t[e];return r===uc?void 0:r}return hc.call(t,e)?t[e]:void 0}E(Vn,"hashGet");var pc=Vn,fc=Object.prototype,yc=fc.hasOwnProperty;function zn(e){var t=this.__data__;return ft?t[e]!==void 0:yc.call(t,e)}E(zn,"hashHas");var gc=zn,mc="__lodash_hash_undefined__";function Wn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ft&&t===void 0?mc:t,this}E(Wn,"hashSet");var bc=Wn;function We(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}E(We,"Hash");We.prototype.clear=lc;We.prototype.delete=cc;We.prototype.get=pc;We.prototype.has=gc;We.prototype.set=bc;var Ro=We;function Bn(){this.__data__=[],this.size=0}E(Bn,"listCacheClear");var vc=Bn;function Yn(e,t){for(var r=e.length;r--;)if(oc(e[r][0],t))return r;return-1}E(Yn,"assocIndexOf");var Mt=Yn,Ec=Array.prototype,Sc=Ec.splice;function Kn(e){var t=this.__data__,r=Mt(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Sc.call(t,r,1),--this.size,!0}E(Kn,"listCacheDelete");var wc=Kn;function Xn(e){var t=this.__data__,r=Mt(t,e);return r<0?void 0:t[r][1]}E(Xn,"listCacheGet");var Cc=Xn;function Jn(e){return Mt(this.__data__,e)>-1}E(Jn,"listCacheHas");var Tc=Jn;function Qn(e,t){var r=this.__data__,o=Mt(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}E(Qn,"listCacheSet");var _c=Qn;function Be(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}E(Be,"ListCache");Be.prototype.clear=vc;Be.prototype.delete=wc;Be.prototype.get=Cc;Be.prototype.has=Tc;Be.prototype.set=_c;var Ic=Be,Rc=jn(kr,"Map"),Ac=Rc;function Zn(){this.size=0,this.__data__={hash:new Ro,map:new(Ac||Ic),string:new Ro}}E(Zn,"mapCacheClear");var Oc=Zn;function ea(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}E(ea,"isKeyable");var xc=ea;function ta(e,t){var r=e.__data__;return xc(t)?r[typeof t=="string"?"string":"hash"]:r.map}E(ta,"getMapData");var Ft=ta;function ra(e){var t=Ft(this,e).delete(e);return this.size-=t?1:0,t}E(ra,"mapCacheDelete");var $c=ra;function oa(e){return Ft(this,e).get(e)}E(oa,"mapCacheGet");var Nc=oa;function na(e){return Ft(this,e).has(e)}E(na,"mapCacheHas");var Pc=na;function aa(e,t){var r=Ft(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}E(aa,"mapCacheSet");var Lc=aa;function Ye(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}E(Ye,"MapCache");Ye.prototype.clear=Oc;Ye.prototype.delete=$c;Ye.prototype.get=Nc;Ye.prototype.has=Pc;Ye.prototype.set=Lc;var ia=Ye,Dc="Expected a function";function jt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Dc);var r=E(function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i},"memoized");return r.cache=new(jt.Cache||ia),r}E(jt,"memoize");jt.Cache=ia;var kc=jt,Mc=500;function sa(e){var t=kc(e,function(o){return r.size===Mc&&r.clear(),o}),r=t.cache;return t}E(sa,"memoizeCapped");var Fc=sa,jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/\\(\\)?/g,Uc=Fc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jc,function(r,o,n,a){t.push(n?a.replace(qc,"$1"):o||r)}),t}),Gc=Uc;function la(e){return e==null?"":Ml(e)}E(la,"toString");var Hc=la;function ca(e,t){return Fr(e)?e:ic(e,t)?[e]:Gc(Hc(e))}E(ca,"castPath");var Vc=ca;function ua(e){if(typeof e=="string"||Mr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}E(ua,"toKey");var zc=ua;function da(e,t){t=Vc(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[zc(t[r++])];return r&&r==o?e:void 0}E(da,"baseGet");var Wc=da;function ha(e,t,r){var o=e==null?void 0:Wc(e,t);return o===void 0?r:o}E(ha,"get");var Bc=ha,Ot=wn,Yc=E(e=>{let t=null,r=!1,o=!1,n=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i<e.length;i+=1)!t&&!r&&!o&&!n?e[i]==='"'||e[i]==="'"||e[i]==="`"?t=e[i]:e[i]==="/"&&e[i+1]==="*"?r=!0:e[i]==="/"&&e[i+1]==="/"?o=!0:e[i]==="/"&&e[i+1]!=="/"&&(n=!0):(t&&(e[i]===t&&e[i-1]!=="\\"||e[i]===`
21
+ `&&t!=="`")&&(t=null),n&&(e[i]==="/"&&e[i-1]!=="\\"||e[i]===`
22
+ `)&&(n=!1),r&&e[i-1]==="/"&&e[i-2]==="*"&&(r=!1),o&&e[i]===`
23
+ `&&(o=!1)),!r&&!o&&(a+=e[i]);else a=e;return a},"removeCodeComments"),Kc=(0,ll.default)(1e4)(e=>Yc(e).replace(/\n\s*/g,"").trim()),Xc=E(function(e,t){let r=t.slice(0,t.indexOf("{")),o=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let n=r;return n=n.replace(e,"function"),n+o},"convertShorthandMethods2"),Jc=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,qr=E(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Ur(e){if(!Ot(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=bn(t),r=!0),t=Object.keys(t).reduce((o,n)=>{try{t[n]&&t[n].toJSON,o[n]=t[n]}catch{r=!0}return o},{}),r?t:e}E(Ur,"convertUnconventionalData");var Qc=E(function(e){let t,r,o,n;return E(function(a,i){try{if(a==="")return n=[],t=new Map([[i,"[]"]]),r=new Map,o=[],i;let s=r.get(this)||this;for(;o.length&&s!==o[0];)o.shift(),n.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Jc.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,ml.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,bl.default)(i)){if(!e.allowFunction)return;let{name:c}=i,g=i.toString();return g.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${c}|${(()=>{}).toString()}`:`_function_${c}|${Kc(Xc(a,g))}`}if((0,vl.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(o.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(n)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let u=t.get(i);if(!u){let c=Array.isArray(i)?i:Ur(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(c,{"_constructor-name_":i.constructor.name})}catch{}return n.push(a),o.unshift(c),t.set(i,JSON.stringify(n)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}},"replace")},"replacer2"),Zc=E(function reviver(options){let refs=[],root;return E(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let o=qr(r)?JSON.parse(r):r.split(".");o.length===0?t[e]=root:t[e]=Bc(root,o)})),key==="_constructor-name_")return value;if(Ot(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(Ot(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=E((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:E(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),pa={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},fa=E((e,t={})=>{let r={...pa,...t};return JSON.stringify(Ur(e),Qc(r),t.space)},"stringify"),eu=E(()=>{let e=new Map;return E(function t(r){Ot(r)&&Object.entries(r).forEach(([o,n])=>{n==="_undefined_"?r[o]=void 0:e.get(n)||(e.set(n,!0),t(n))}),Array.isArray(r)&&r.forEach((o,n)=>{o==="_undefined_"?(e.set(o,!0),r[n]=void 0):e.get(o)||(e.set(o,!0),t(o))})},"mutateUndefined")},"mutator"),ya=E((e,t={})=>{let r={...pa,...t},o=JSON.parse(e,Zc(r));return eu()(o),o},"parse"),Ao="Invariant failed";function xt(e,t){if(!e){var r=typeof t=="function"?t():t,o=r?"".concat(Ao,": ").concat(r):Ao;throw new Error(o)}}E(xt,"invariant");var tu=E(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...o]=t.filter(a=>{try{return a.contentWindow?.location.origin===e.source.location.origin&&a.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return a.contentWindow===e.source}catch{}let i=a.getAttribute("src"),s;try{if(!i)return!1;({origin:s}=new URL(i,document.location.toString()))}catch{return!1}return s===e.origin}),n=r?.getAttribute("src");if(n&&o.length===0){let{protocol:a,host:i,pathname:s}=new URL(n,document.location.toString());return`${a}//${i}${s}`}return o.length>0&&ne.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:Xt,location:Jt}=se,Oo="storybook-channel",ru={allowFunction:!1,maxDepth:25},ga=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof se?.addEventListener=="function"&&se.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:o,allowFunction:n,allowSymbol:a,allowDate:i,allowError:s,allowUndefined:u,allowClass:c,maxDepth:g,space:d,lazyEval:p}=t||{},b=Object.fromEntries(Object.entries({allowRegExp:o,allowFunction:n,allowSymbol:a,allowDate:i,allowError:s,allowUndefined:u,allowClass:c,maxDepth:g,space:d,lazyEval:p}).filter(([v,O])=>typeof O<"u")),C={...ru,...se.CHANNEL_OPTIONS||{},...b},T=this.getFrames(r),x=new URLSearchParams(Jt?.search||""),_=fa({key:Oo,event:e,refId:x.get("refId")},C);return T.length?(this.buffer.length&&this.flush(),T.forEach(v=>{try{v.postMessage(_,"*")}catch{ne.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((v,O)=>{this.buffer.push({event:e,resolve:v,reject:O})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(Xt.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return se&&se.parent&&se.parent!==se.self?[se.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Xt.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):se&&se.parent?[se.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Xt.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):se&&se.parent?[se.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:o,refId:n}=typeof t=="string"&&qr(t)?ya(t,se.CHANNEL_OPTIONS||{}):t;if(r===Oo){let a=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',i=Object.values(Gs).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(n&&(o.refId=n),o.source=this.config.page==="preview"?e.origin:tu(e),!o.source){Re.error(`${a} received ${i} but was unable to determine the source of the event`);return}let s=`${a} received ${i} (${t.length})`;Re.debug(Jt.origin!==o.source?s:`${s} <span style="color: gray">(on ${Jt.origin} from ${o.source})</span>`,...o.args),xt(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(t){ne.error(t)}}};E(ga,"PostMessageTransport");var ou=ga,{WebSocket:nu}=se,au=15e3,iu=5e3,ma=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new nu(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{let n=typeof o=="string"&&qr(o)?ya(o):o;xt(this.handler,"WebsocketTransport handler should be set"),this.handler(n),n.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=o=>{t&&t(o)},this.socket.onclose=o=>{xt(this.handler,"WebsocketTransport handler should be set"),this.handler({type:Yo,args:[{reason:o.reason,code:o.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},au+iu)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=fa(e,{maxDepth:15,allowFunction:!1,...se.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}};E(ma,"WebsocketTransport");var su=ma,{CONFIG_TYPE:lu}=se;function cu({page:e,extraTransports:t=[]}){let r=[new ou({page:e}),...t];if(lu==="DEVELOPMENT"){let n=window.location.protocol==="http:"?"ws":"wss",{hostname:a,port:i}=window.location,s=`${n}://${a}:${i}/storybook-server-channel`;r.push(new su({url:s,onError:E(()=>{},"onError"),page:e}))}let o=new Pr({transports:r});return Yt.__prepare(o,e==="manager"?Yt.Environment.MANAGER:Yt.Environment.PREVIEW),o}E(cu,"createBrowserChannel");var uu=Object.defineProperty,ae=(e,t)=>uu(e,"name",{value:t,configurable:!0});function le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var n=o.reduce(function(s,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(g){var d,p;return(p=(d=g.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&p!==void 0?p:0})):s},[]);if(n.length){var a=new RegExp(`
24
+ [ ]{`+Math.min.apply(Math,n)+"}","g");o=o.map(function(s){return s.replace(a,`
25
+ `)})}o[0]=o[0].replace(/^\r?\n/,"");var i=o[0];return t.forEach(function(s,u){var c=i.match(/(?:^|\n)( *)$/),g=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
26
+ `)&&(d=String(s).split(`
27
+ `).map(function(p,b){return b===0?p:""+g+p}).join(`
28
+ `)),i+=d+o[u+1]}),i}ae(le,"dedent");function cr({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}ae(cr,"parseErrorCode");var ba=class va extends Error{constructor(t){super(va.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return cr({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:o,message:n}){let a;return t===!0?a=`https://storybook.js.org/error/${cr({code:r,category:o})}`:typeof t=="string"?a=t:Array.isArray(t)&&(a=`
29
+ ${t.map(i=>` - ${i}`).join(`
30
+ `)}`),`${n}${a!=null?`
31
+
32
+ More info: ${a}
33
+ `:""}`}};ae(ba,"StorybookError");var he=ba,Ea=class extends he{constructor(e){super({category:"PREVIEW_API",code:1,message:le`
34
+ Couldn't find story matching id '${e.storyId}' after HMR.
35
+ - Did you just rename a story?
36
+ - Did you remove it from your CSF file?
37
+ - Are you sure a story with the id '${e.storyId}' exists?
38
+ - Please check the values in the stories field of your main.js config and see if they would match your CSF File.
39
+ - Also check the browser console and terminal for potential error messages.`}),this.data=e}};ae(Ea,"MissingStoryAfterHmrError");var du=Ea,hu=class extends he{constructor(e){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:le`
40
+ We detected that you use an implicit action arg while ${e.phase} of your story.
41
+ ${e.deprecated?`
42
+ This is deprecated and won't work in Storybook 8 anymore.
43
+ `:""}
44
+ Please provide an explicit spy to your args like this:
45
+ import { fn } from '@storybook/test';
46
+ ...
47
+ args: {
48
+ ${e.name}: fn()
49
+ }`}),this.data=e}};ae(hu,"ImplicitActionsDuringRendering");var Sa=class extends he{constructor(){super({category:"PREVIEW_API",code:3,message:le`
50
+ Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
51
+
52
+ You probably meant to call \`await preview.extract()\` which does the above for you.`})}};ae(Sa,"CalledExtractOnStoreError");var pu=Sa,wa=class extends he{constructor(){super({category:"PREVIEW_API",code:4,message:le`
53
+ Expected your framework's preset to export a \`renderToCanvas\` field.
54
+
55
+ Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};ae(wa,"MissingRenderToCanvasError");var fu=wa,Ca=class extends he{constructor(e){super({category:"PREVIEW_API",code:5,message:le`
56
+ Called \`Preview.${e.methodName}()\` before initialization.
57
+
58
+ The preview needs to load the story index before most methods can be called. If you want
59
+ to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
60
+
61
+ If you didn't call the above code, then likely it was called by an addon that needs to
62
+ do the above.`}),this.data=e}};ae(Ca,"CalledPreviewMethodBeforeInitializationError");var Ie=Ca,Ta=class extends he{constructor(e){super({category:"PREVIEW_API",code:6,message:le`
63
+ Error fetching \`/index.json\`:
64
+
65
+ ${e.text}
66
+
67
+ If you are in development, this likely indicates a problem with your Storybook process,
68
+ check the terminal for errors.
69
+
70
+ If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
71
+ build.`}),this.data=e}};ae(Ta,"StoryIndexFetchError");var yu=Ta,_a=class extends he{constructor(e){super({category:"PREVIEW_API",code:7,message:le`
72
+ Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
73
+ references, or autodocs for a CSF file that some doesn't refer to itself.
74
+
75
+ This likely is an internal error in Storybook's indexing, or you've attached the
76
+ \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}};ae(_a,"MdxFileWithNoCsfReferencesError");var gu=_a,Ia=class extends he{constructor(){super({category:"PREVIEW_API",code:8,message:le`
77
+ Couldn't find any stories in your Storybook.
78
+
79
+ - Please check your stories field of your main.js config: does it match correctly?
80
+ - Also check the browser console and terminal for error messages.`})}};ae(Ia,"EmptyIndexError");var mu=Ia,Ra=class extends he{constructor(e){super({category:"PREVIEW_API",code:9,message:le`
81
+ Couldn't find story matching '${e.storySpecifier}'.
82
+
83
+ - Are you sure a story with that id exists?
84
+ - Please check your stories field of your main.js config.
85
+ - Also check the browser console and terminal for error messages.`}),this.data=e}};ae(Ra,"NoStoryMatchError");var bu=Ra,Aa=class extends he{constructor(e){super({category:"PREVIEW_API",code:10,message:le`
86
+ Couldn't find story matching id '${e.storyId}' after importing a CSF file.
87
+
88
+ The file was indexed as if the story was there, but then after importing the file in the browser
89
+ we didn't find the story. Possible reasons:
90
+ - You are using a custom story indexer that is misbehaving.
91
+ - You have a custom file loader that is removing or renaming exports.
92
+
93
+ Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}};ae(Aa,"MissingStoryFromCsfFileError");var vu=Aa,Oa=class extends he{constructor(){super({category:"PREVIEW_API",code:11,message:le`
94
+ Cannot access the Story Store until the index is ready.
95
+
96
+ It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
97
+ remove access to the store entirely`})}};ae(Oa,"StoryStoreAccessedBeforeInitializationError");var Eu=Oa,xa=class extends he{constructor(e){super({category:"PREVIEW_API",code:12,message:le`
98
+ Incorrect use of mount in the play function.
99
+
100
+ To use mount in the play function, you must satisfy the following two requirements:
101
+
102
+ 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
103
+ This makes sure that Storybook does not start rendering the story before the play function begins.
104
+
105
+ 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
106
+ This is because destructuring statements and async/await usages are otherwise transpiled away,
107
+ which prevents Storybook from recognizing your usage of \`mount\`.
108
+
109
+ Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
110
+
111
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
112
+
113
+ Received the following play function:
114
+ ${e.playFunction}`}),this.data=e}};ae(xa,"MountMustBeDestructuredError");var $a=xa,Na=class extends he{constructor(e){super({category:"PREVIEW_API",code:14,message:le`
115
+ No render function available for storyId '${e.id}'
116
+ `}),this.data=e}};ae(Na,"NoRenderFunctionError");var Su=Na,Pa=class extends he{constructor(){super({category:"PREVIEW_API",code:15,message:le`
117
+ No component is mounted in your story.
118
+
119
+ This usually occurs when you destructure mount in the play function, but forget to call it.
120
+
121
+ For example:
122
+
123
+ async play({ mount, canvasElement }) {
124
+ // 👈 mount should be called: await mount();
125
+ const canvas = within(canvasElement);
126
+ const button = await canvas.findByRole('button');
127
+ await userEvent.click(button);
128
+ };
129
+
130
+ Make sure to either remove it or call mount in your play function.
131
+ `})}};ae(Pa,"NoStoryMountedError");var wu=Pa,Cu=class extends he{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:le`
132
+ You are importing avif images, but you don't have sharp installed.
133
+
134
+ You have to install sharp in order to use image optimization features in Next.js.
135
+ `})}};ae(Cu,"NextJsSharpError");var Tu=class extends he{constructor(e){super({category:"FRAMEWORK_NEXTJS",code:2,message:le`
136
+ Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
137
+ `}),this.data=e}};ae(Tu,"NextjsRouterMocksNotAvailable");var _u=class extends he{constructor(e){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:le`
138
+ There was a failure when generating detailed ArgTypes in ${e.language} for:
139
+ ${JSON.stringify(e.type,null,2)}
140
+
141
+ Storybook will fall back to use a generic type description instead.
142
+
143
+ This type is either not supported or it is a bug in the docgen generation in Storybook.
144
+ If you think this is a bug, please detail it as much as possible in the Github issue.
145
+ `}),this.data=e}};ae(_u,"UnknownArgTypesError");var Iu=class extends he{constructor(e){super({category:"ADDON_VITEST",code:1,message:le`
146
+ Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
147
+
148
+ The Storybook plugin only supports values in the following units:
149
+ - px, vh, vw, em, rem and %.
150
+
151
+ You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
152
+ `}),this.data=e}};ae(Iu,"UnsupportedViewportDimensionError");var Ru=Object.create,Gr=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,Ou=Object.getOwnPropertyNames,xu=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,l=(e,t)=>Gr(e,"name",{value:t,configurable:!0}),wt=(e=>typeof Se<"u"?Se:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Se<"u"?Se:t)[r]}):e)(function(e){if(typeof Se<"u")return Se.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nu=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ou(t))!$u.call(e,n)&&n!==r&&Gr(e,n,{get:()=>t[n],enumerable:!(o=Au(t,n))||o.enumerable});return e},nt=(e,t,r)=>(r=e!=null?Ru(xu(e)):{},Nu(Gr(r,"default",{value:e,enumerable:!0}),e)),La=me((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var o;typeof window<"u"?o=window:typeof global<"u"?o=global:typeof self<"u"?o=self:o=this,o.memoizerific=r()}})(function(){return l(function r(o,n,a){function i(c,g){if(!n[c]){if(!o[c]){var d=typeof wt=="function"&&wt;if(!g&&d)return d(c,!0);if(s)return s(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var b=n[c]={exports:{}};o[c][0].call(b.exports,function(C){var T=o[c][1][C];return i(T||C)},b,b.exports,r,o,n,a)}return n[c].exports}l(i,"s");for(var s=typeof wt=="function"&&wt,u=0;u<a.length;u++)i(a[u]);return i},"e")({1:[function(r,o,n){o.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,o,n){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}l(a,"Similar"),a.prototype.get=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(s=this.indexOf(i),s>=0)return this.lastItem=this.list[s],this.list[s].val},a.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},a.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},a.prototype.forEach=function(i,s){var u;for(u=0;u<this.size;u++)i.call(s||this,this.list[u].val,this.list[u].key,this)},a.prototype.indexOf=function(i){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,i))return s;return-1},a.prototype.isEqual=function(i,s){return i===s||i!==i&&s!==s},o.exports=a},{}],3:[function(r,o,n){var a=r("map-or-similar");o.exports=function(c){var g=new a(!1),d=[];return function(p){var b=l(function(){var C=g,T,x,_=arguments.length-1,v=Array(_+1),O=!0,k;if((b.numArgs||b.numArgs===0)&&b.numArgs!==_+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(k=0;k<_;k++){if(v[k]={cacheItem:C,arg:arguments[k]},C.has(arguments[k])){C=C.get(arguments[k]);continue}O=!1,T=new a(!1),C.set(arguments[k],T),C=T}return O&&(C.has(arguments[_])?x=C.get(arguments[_]):O=!1),O||(x=p.apply(null,arguments),C.set(arguments[_],x)),c>0&&(v[_]={cacheItem:C,arg:arguments[_]},O?i(d,v):d.push(v),d.length>c&&s(d.shift())),b.wasMemoized=O,b.numArgs=_+1,x},"memoizerific");return b.limit=c,b.wasMemoized=!1,b.cache=g,b.lru=d,b}};function i(c,g){var d=c.length,p=g.length,b,C,T;for(C=0;C<d;C++){for(b=!0,T=0;T<p;T++)if(!u(c[C][T].arg,g[T].arg)){b=!1;break}if(b)break}c.push(c.splice(C,1)[0])}l(i,"moveToMostRecentLru");function s(c){var g=c.length,d=c[g-1],p,b;for(d.cacheItem.delete(d.arg),b=g-2;b>=0&&(d=c[b],p=d.cacheItem.get(d.arg),!p||!p.size);b--)d.cacheItem.delete(d.arg)}l(s,"removeCachedResult");function u(c,g){return c===g||c!==c&&g!==g}l(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Da=me(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=o;var t=Array.from({length:256},(n,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function o(n){let a=n.length;if(a===0)return"";let i="",s=0,u=0;e:for(;u<a;u++){let c=n.charCodeAt(u);for(;c<128;){if(r[c]!==1&&(s<u&&(i+=n.slice(s,u)),s=u+1,i+=t[c]),++u===a)break e;c=n.charCodeAt(u)}if(s<u&&(i+=n.slice(s,u)),c<2048){s=u+1,i+=t[192|c>>6]+t[128|c&63];continue}if(c<55296||c>=57344){s=u+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++u,u>=a)throw new Error("URI malformed");let g=n.charCodeAt(u)&1023;s=u+1,c=65536+((c&1023)<<10|g),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return s===0?n:s<a?i+n.slice(s):i}l(o,"encodeString")}),Hr=me(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Da(),r=l(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var o=l(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=o;var n=l(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:n,valueSerializer:e.defaultValueSerializer,keyDeserializer:n,shouldSerializeObject:e.defaultShouldSerializeObject}}),ka=me(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=n,e.stringifyObject=g;var t=Hr(),r=Da();function o(d){return d==="__proto__"||d==="constructor"||d==="prototype"}l(o,"isPrototypeKey");function n(d,p,b,C,T){if(o(p))return d;let x=d[p];return typeof x=="object"&&x!==null?x:!C&&(T||typeof b=="number"||typeof b=="string"&&b*0===0&&b.indexOf(".")===-1)?d[p]=[]:d[p]={}}l(n,"getDeepObject");var a=20,i="[]",s="[",u="]",c=".";function g(d,p,b=0,C,T){let{nestingSyntax:x=t.defaultOptions.nestingSyntax,arrayRepeat:_=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:O=t.defaultOptions.nesting,delimiter:k=t.defaultOptions.delimiter,valueSerializer:X=t.defaultOptions.valueSerializer,shouldSerializeObject:L=t.defaultOptions.shouldSerializeObject}=p,Y=typeof k=="number"?String.fromCharCode(k):k,W=T===!0&&_,K=x==="dot"||x==="js"&&!T;if(b>a)return"";let V="",M=!0,D=!1;for(let q in d){let h=d[q],m;C?(m=C,W?v==="bracket"&&(m+=i):K?(m+=c,m+=q):(m+=s,m+=q,m+=u)):m=q,M||(V+=Y),typeof h=="object"&&h!==null&&!L(h)?(D=h.pop!==void 0,(O||_&&D)&&(V+=g(h,p,b+1,m,D))):(V+=(0,r.encodeString)(m),V+="=",V+=X(h,q)),M&&(M=!1)}return V}l(g,"stringifyObject")}),Pu=me((e,t)=>{var r=12,o=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(u){var c=u.indexOf("%");if(c===-1)return u;for(var g=u.length,d="",p=0,b=0,C=c,T=r;c>-1&&c<g;){var x=s(u[c+1],4),_=s(u[c+2],0),v=x|_,O=n[v];if(T=n[256+T+O],b=b<<6|v&n[364+O],T===r)d+=u.slice(p,C),d+=b<=65535?String.fromCharCode(b):String.fromCharCode(55232+(b>>10),56320+(b&1023)),b=0,p=c+3,c=C=u.indexOf("%",p);else{if(T===o)return null;if(c+=3,c<g&&u.charCodeAt(c)===37)continue;return null}}return d+u.slice(p)}l(a,"decodeURIComponent");var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function s(u,c){var g=i[u];return g===void 0?255:g<<c}l(s,"hexCodeToInt"),t.exports=a}),Lu=me(e=>{var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=g;var r=ka(),o=Hr(),n=t(Pu()),a=l(d=>{let p=Number(d);return Number.isNaN(p)?d:p},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=l(d=>{let p=Number(d);return Number.isNaN(p)?d:p},"numberValueDeserializer");e.numberValueDeserializer=i;var s=/\+/g,u=l(function(){},"Empty");u.prototype=Object.create(null);function c(d,p,b,C,T){let x=d.substring(p,b);return C&&(x=x.replace(s," ")),T&&(x=(0,n.default)(x)||x),x}l(c,"computeKeySlice");function g(d,p){let{valueDeserializer:b=o.defaultOptions.valueDeserializer,keyDeserializer:C=o.defaultOptions.keyDeserializer,arrayRepeatSyntax:T=o.defaultOptions.arrayRepeatSyntax,nesting:x=o.defaultOptions.nesting,arrayRepeat:_=o.defaultOptions.arrayRepeat,nestingSyntax:v=o.defaultOptions.nestingSyntax,delimiter:O=o.defaultOptions.delimiter}=p??{},k=typeof O=="string"?O.charCodeAt(0):O,X=v==="js",L=new u;if(typeof d!="string")return L;let Y=d.length,W="",K=-1,V=-1,M=-1,D=L,q,h="",m="",S=!1,R=!1,$=!1,J=!1,te=!1,y=!1,w=!1,P=0,H=-1,U=-1,Q=-1;for(let G=0;G<Y+1;G++){if(P=G!==Y?d.charCodeAt(G):k,P===k){if(w=V>K,w||(V=G),M!==V-1&&(m=c(d,M+1,H>-1?H:V,$,S),h=C(m),q!==void 0&&(D=(0,r.getDeepObject)(D,q,h,X&&te,X&&y))),w||h!==""){w&&(W=d.slice(V+1,G),J&&(W=W.replace(s," ")),R&&(W=(0,n.default)(W)||W));let Z=b(W,h);if(_){let ee=D[h];ee===void 0?H>-1?D[h]=[Z]:D[h]=Z:ee.pop?ee.push(Z):D[h]=[ee,Z]}else D[h]=Z}W="",K=G,V=G,S=!1,R=!1,$=!1,J=!1,te=!1,y=!1,H=-1,M=G,D=L,q=void 0,h=""}else P===93?(_&&T==="bracket"&&Q===91&&(H=U),x&&(v==="index"||X)&&V<=K&&(M!==U&&(m=c(d,M+1,G,$,S),h=C(m),q!==void 0&&(D=(0,r.getDeepObject)(D,q,h,void 0,X)),q=h,$=!1,S=!1),M=G,y=!0,te=!1)):P===46?x&&(v==="dot"||X)&&V<=K&&(M!==U&&(m=c(d,M+1,G,$,S),h=C(m),q!==void 0&&(D=(0,r.getDeepObject)(D,q,h,X)),q=h,$=!1,S=!1),te=!0,y=!1,M=G):P===91?x&&(v==="index"||X)&&V<=K&&(M!==U&&(m=c(d,M+1,G,$,S),h=C(m),X&&q!==void 0&&(D=(0,r.getDeepObject)(D,q,h,X)),q=h,$=!1,S=!1,te=!1,y=!0),M=G):P===61?V<=K?V=G:R=!0:P===43?V>K?J=!0:$=!0:P===37&&(V>K?R=!0:S=!0);U=G,Q=P}return L}l(g,"parse")}),Du=me(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=ka();function r(o,n){if(o===null||typeof o!="object")return"";let a=n??{};return(0,t.stringifyObject)(o,a)}l(r,"stringify")}),Vr=me(e=>{var t=e&&e.__createBinding||(Object.create?function(a,i,s,u){u===void 0&&(u=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:l(function(){return i[s]},"get")}),Object.defineProperty(a,u,c)}:function(a,i,s,u){u===void 0&&(u=s),a[u]=i[s]}),r=e&&e.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var o=Lu();Object.defineProperty(e,"parse",{enumerable:!0,get:l(function(){return o.parse},"get")});var n=Du();Object.defineProperty(e,"stringify",{enumerable:!0,get:l(function(){return n.stringify},"get")}),r(Hr(),e)}),Ma=me((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
153
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),ku=me((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),Fa=me((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),Mu=me((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),Fu=me(e=>{var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(Mu()),o=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),o(a))}l(n,"decodeCodePoint"),e.default=n}),xo=me(e=>{var t=e&&e.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Ma()),o=t(ku()),n=t(Fa()),a=t(Fu()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(n.default),e.decodeHTMLStrict=s(r.default);function s(g){var d=c(g);return function(p){return String(p).replace(i,d)}}l(s,"getStrictDecoder");var u=l(function(g,d){return g<d?1:-1},"sorter");e.decodeHTML=function(){for(var g=Object.keys(o.default).sort(u),d=Object.keys(r.default).sort(u),p=0,b=0;p<d.length;p++)g[b]===d[p]?(d[p]+=";?",b++):d[p]+=";";var C=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),T=c(r.default);function x(_){return _.substr(-1)!==";"&&(_+=";"),T(_)}return l(x,"replacer"),function(_){return String(_).replace(C,x)}}();function c(g){return l(function(d){if(d.charAt(1)==="#"){var p=d.charAt(2);return p==="X"||p==="x"?a.default(parseInt(d.substr(3),16)):a.default(parseInt(d.substr(2),10))}return g[d.slice(1,-1)]||d},"replace")}l(c,"getReplacer")}),$o=me(e=>{var t=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Fa()),o=u(r.default),n=c(o);e.encodeXML=_(o);var a=t(Ma()),i=u(a.default),s=c(i);e.encodeHTML=b(i,s),e.encodeNonAsciiHTML=_(i);function u(v){return Object.keys(v).sort().reduce(function(O,k){return O[v[k]]="&"+k+";",O},{})}l(u,"getInverseObj");function c(v){for(var O=[],k=[],X=0,L=Object.keys(v);X<L.length;X++){var Y=L[X];Y.length===1?O.push("\\"+Y):k.push(Y)}O.sort();for(var W=0;W<O.length-1;W++){for(var K=W;K<O.length-1&&O[K].charCodeAt(1)+1===O[K+1].charCodeAt(1);)K+=1;var V=1+K-W;V<3||O.splice(W,V,O[W]+"-"+O[K])}return k.unshift("["+O.join("")+"]"),new RegExp(k.join("|"),"g")}l(c,"getInverseReplacer");var g=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,d=String.prototype.codePointAt!=null?function(v){return v.codePointAt(0)}:function(v){return(v.charCodeAt(0)-55296)*1024+v.charCodeAt(1)-56320+65536};function p(v){return"&#x"+(v.length>1?d(v):v.charCodeAt(0)).toString(16).toUpperCase()+";"}l(p,"singleCharReplacer");function b(v,O){return function(k){return k.replace(O,function(X){return v[X]}).replace(g,p)}}l(b,"getInverse");var C=new RegExp(n.source+"|"+g.source,"g");function T(v){return v.replace(C,p)}l(T,"escape"),e.escape=T;function x(v){return v.replace(n,p)}l(x,"escapeUTF8"),e.escapeUTF8=x;function _(v){return function(O){return O.replace(C,function(k){return v[k]||p(k)})}}l(_,"getASCIIEncoder")}),ju=me(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=xo(),r=$o();function o(u,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(u)}l(o,"decode"),e.decode=o;function n(u,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(u)}l(n,"decodeStrict"),e.decodeStrict=n;function a(u,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(u)}l(a,"encode"),e.encode=a;var i=$o();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:l(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:l(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:l(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:l(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:l(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:l(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:l(function(){return i.encodeHTML},"get")});var s=xo();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:l(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:l(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:l(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:l(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:l(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:l(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:l(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:l(function(){return s.decodeXML},"get")})}),qu=me((e,t)=>{function r(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}l(r,"_classCallCheck");function o(h,m){for(var S=0;S<m.length;S++){var R=m[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(h,R.key,R)}}l(o,"_defineProperties");function n(h,m,S){return m&&o(h.prototype,m),S&&o(h,S),h}l(n,"_createClass");function a(h,m){var S=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!S){if(Array.isArray(h)||(S=i(h))||m&&h&&typeof h.length=="number"){S&&(h=S);var R=0,$=l(function(){},"F");return{s:$,n:l(function(){return R>=h.length?{done:!0}:{done:!1,value:h[R++]}},"n"),e:l(function(w){throw w},"e"),f:$}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
154
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,te=!1,y;return{s:l(function(){S=S.call(h)},"s"),n:l(function(){var w=S.next();return J=w.done,w},"n"),e:l(function(w){te=!0,y=w},"e"),f:l(function(){try{!J&&S.return!=null&&S.return()}finally{if(te)throw y}},"f")}}l(a,"_createForOfIteratorHelper");function i(h,m){if(h){if(typeof h=="string")return s(h,m);var S=Object.prototype.toString.call(h).slice(8,-1);if(S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set")return Array.from(h);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return s(h,m)}}l(i,"_unsupportedIterableToArray");function s(h,m){(m==null||m>h.length)&&(m=h.length);for(var S=0,R=new Array(m);S<m;S++)R[S]=h[S];return R}l(s,"_arrayLikeToArray");var u=ju(),c={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:g()};function g(){var h={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return v(0,5).forEach(function(m){v(0,5).forEach(function(S){v(0,5).forEach(function(R){return d(m,S,R,h)})})}),v(0,23).forEach(function(m){var S=m+232,R=p(m*10+8);h[S]="#"+R+R+R}),h}l(g,"getDefaultColors");function d(h,m,S,R){var $=16+h*36+m*6+S,J=h>0?h*40+55:0,te=m>0?m*40+55:0,y=S>0?S*40+55:0;R[$]=b([J,te,y])}l(d,"setStyleColor");function p(h){for(var m=h.toString(16);m.length<2;)m="0"+m;return m}l(p,"toHexString");function b(h){var m=[],S=a(h),R;try{for(S.s();!(R=S.n()).done;){var $=R.value;m.push(p($))}}catch(J){S.e(J)}finally{S.f()}return"#"+m.join("")}l(b,"toColorHexString");function C(h,m,S,R){var $;return m==="text"?$=X(S,R):m==="display"?$=x(h,S,R):m==="xterm256Foreground"?$=W(h,R.colors[S]):m==="xterm256Background"?$=K(h,R.colors[S]):m==="rgb"&&($=T(h,S)),$}l(C,"generateOutput");function T(h,m){m=m.substring(2).slice(0,-1);var S=+m.substr(0,2),R=m.substring(5).split(";"),$=R.map(function(J){return("0"+Number(J).toString(16)).substr(-2)}).join("");return Y(h,(S===38?"color:#":"background-color:#")+$)}l(T,"handleRgb");function x(h,m,S){m=parseInt(m,10);var R={"-1":l(function(){return"<br/>"},"_"),0:l(function(){return h.length&&_(h)},"_"),1:l(function(){return L(h,"b")},"_"),3:l(function(){return L(h,"i")},"_"),4:l(function(){return L(h,"u")},"_"),8:l(function(){return Y(h,"display:none")},"_"),9:l(function(){return L(h,"strike")},"_"),22:l(function(){return Y(h,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:l(function(){return V(h,"i")},"_"),24:l(function(){return V(h,"u")},"_"),39:l(function(){return W(h,S.fg)},"_"),49:l(function(){return K(h,S.bg)},"_"),53:l(function(){return Y(h,"text-decoration:overline")},"_")},$;return R[m]?$=R[m]():4<m&&m<7?$=L(h,"blink"):29<m&&m<38?$=W(h,S.colors[m-30]):39<m&&m<48?$=K(h,S.colors[m-40]):89<m&&m<98?$=W(h,S.colors[8+(m-90)]):99<m&&m<108&&($=K(h,S.colors[8+(m-100)])),$}l(x,"handleDisplay");function _(h){var m=h.slice(0);return h.length=0,m.reverse().map(function(S){return"</"+S+">"}).join("")}l(_,"resetStyles");function v(h,m){for(var S=[],R=h;R<=m;R++)S.push(R);return S}l(v,"range");function O(h){return function(m){return(h===null||m.category!==h)&&h!=="all"}}l(O,"notCategory");function k(h){h=parseInt(h,10);var m=null;return h===0?m="all":h===1?m="bold":2<h&&h<5?m="underline":4<h&&h<7?m="blink":h===8?m="hide":h===9?m="strike":29<h&&h<38||h===39||89<h&&h<98?m="foreground-color":(39<h&&h<48||h===49||99<h&&h<108)&&(m="background-color"),m}l(k,"categoryForCode");function X(h,m){return m.escapeXML?u.encodeXML(h):h}l(X,"pushText");function L(h,m,S){return S||(S=""),h.push(m),"<".concat(m).concat(S?' style="'.concat(S,'"'):"",">")}l(L,"pushTag");function Y(h,m){return L(h,"span",m)}l(Y,"pushStyle");function W(h,m){return L(h,"span","color:"+m)}l(W,"pushForegroundColor");function K(h,m){return L(h,"span","background-color:"+m)}l(K,"pushBackgroundColor");function V(h,m){var S;if(h.slice(-1)[0]===m&&(S=h.pop()),S)return"</"+m+">"}l(V,"closeTag");function M(h,m,S){var R=!1,$=3;function J(){return""}l(J,"remove");function te(we,Ce){return S("xterm256Foreground",Ce),""}l(te,"removeXterm256Foreground");function y(we,Ce){return S("xterm256Background",Ce),""}l(y,"removeXterm256Background");function w(we){return m.newline?S("display",-1):S("text",we),""}l(w,"newline");function P(we,Ce){R=!0,Ce.trim().length===0&&(Ce="0"),Ce=Ce.trimRight(";").split(";");var at=a(Ce),zt;try{for(at.s();!(zt=at.n()).done;){var oo=zt.value;S("display",oo)}}catch(no){at.e(no)}finally{at.f()}return""}l(P,"ansiMess");function H(we){return S("text",we),""}l(H,"realText");function U(we){return S("rgb",we),""}l(U,"rgb");var Q=[{pattern:/^\x08+/,sub:J},{pattern:/^\x1b\[[012]?K/,sub:J},{pattern:/^\x1b\[\(B/,sub:J},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:U},{pattern:/^\x1b\[38;5;(\d+)m/,sub:te},{pattern:/^\x1b\[48;5;(\d+)m/,sub:y},{pattern:/^\n/,sub:w},{pattern:/^\r+\n/,sub:w},{pattern:/^\r/,sub:w},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:P},{pattern:/^\x1b\[\d?J/,sub:J},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:J},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:J},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:H}];function G(we,Ce){Ce>$&&R||(R=!1,h=h.replace(we.pattern,we.sub))}l(G,"process");var Z=[],ee=h,ce=ee.length;e:for(;ce>0;){for(var bt=0,Vt=0,to=Q.length;Vt<to;bt=++Vt){var ro=Q[bt];if(G(ro,bt),h.length!==ce){ce=h.length;continue e}}if(h.length===ce)break;Z.push(0),ce=h.length}return Z}l(M,"tokenize");function D(h,m,S){return m!=="text"&&(h=h.filter(O(k(S))),h.push({token:m,data:S,category:k(S)})),h}l(D,"updateStickyStack");var q=function(){function h(m){r(this,h),m=m||{},m.colors&&(m.colors=Object.assign({},c.colors,m.colors)),this.options=Object.assign({},c,m),this.stack=[],this.stickyStack=[]}return l(h,"Filter"),n(h,[{key:"toHtml",value:l(function(m){var S=this;m=typeof m=="string"?[m]:m;var R=this.stack,$=this.options,J=[];return this.stickyStack.forEach(function(te){var y=C(R,te.token,te.data,$);y&&J.push(y)}),M(m.join(""),$,function(te,y){var w=C(R,te,y,$);w&&J.push(w),$.stream&&(S.stickyStack=D(S.stickyStack,te,y))}),R.length&&J.push(_(R)),J.join("")},"toHtml")}]),h}();t.exports=q}),de=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function ja(){let e={setHandler:l(()=>{},"setHandler"),send:l(()=>{},"send")};return new Pr({transport:e})}l(ja,"mockChannel");var qa=class{constructor(){this.getChannel=l(()=>{if(!this.channel){let e=ja();return this.setChannel(e),e}return this.channel},"getChannel"),this.ready=l(()=>this.promise,"ready"),this.hasChannel=l(()=>!!this.channel,"hasChannel"),this.setChannel=l(e=>{this.channel=e,this.resolve()},"setChannel"),this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}};l(qa,"AddonStore");var Uu=qa,Qt="__STORYBOOK_ADDONS_PREVIEW";function Ua(){return de[Qt]||(de[Qt]=new Uu),de[Qt]}l(Ua,"getAddonsStore");var He=Ua();function Gu(e){return e}l(Gu,"definePreview");var Ga=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=l(e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),He.getChannel().on(At,this.renderListener)}removeRenderListeners(){He.getChannel().removeListener(At,this.renderListener)}};l(Ga,"HooksContext");var Ha=Ga;function ur(e){let t=l((...r)=>{let{hooks:o}=typeof r[0]=="function"?r[1]:r[0],n=o.currentPhase,a=o.currentHooks,i=o.nextHookIndex,s=o.currentDecoratorName;o.currentDecoratorName=e.name,o.prevMountedDecorators.has(e)?(o.currentPhase="UPDATE",o.currentHooks=o.hookListsMap.get(e)||[]):(o.currentPhase="MOUNT",o.currentHooks=[],o.hookListsMap.set(e,o.currentHooks),o.prevMountedDecorators.add(e)),o.nextHookIndex=0;let u=de.STORYBOOK_HOOKS_CONTEXT;de.STORYBOOK_HOOKS_CONTEXT=o;let c=e(...r);if(de.STORYBOOK_HOOKS_CONTEXT=u,o.currentPhase==="UPDATE"&&o.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o.currentPhase=n,o.currentHooks=a,o.nextHookIndex=i,o.currentDecoratorName=s,c},"hookified");return t.originalFn=e,t}l(ur,"hookify");var Zt=0,Hu=25,Vu=l(e=>(t,r)=>{let o=e(ur(t),r.map(n=>ur(n)));return n=>{let{hooks:a}=n;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=n,a.hasUpdates=!1;let i=o(n);for(Zt=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=o(n),Zt+=1,Zt>Hu)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),zu=l((e,t)=>e.length===t.length&&e.every((r,o)=>r===t[o]),"areDepsEqual"),zr=l(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Wr(){return de.STORYBOOK_HOOKS_CONTEXT||null}l(Wr,"getHooksContextOrNull");function qt(){let e=Wr();if(e==null)throw zr();return e}l(qt,"getHooksContextOrThrow");function Va(e,t,r){let o=qt();if(o.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&ne.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let n={name:e,deps:r};return o.currentHooks.push(n),t(n),n}if(o.currentPhase==="UPDATE"){let n=o.getNextHook();if(n==null)throw new Error("Rendered more hooks than during the previous render.");return n.name!==e&&ne.warn(`Storybook has detected a change in the order of Hooks${o.currentDecoratorName?` called by ${o.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&n.deps==null&&ne.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&n.deps!=null&&r.length!==n.deps.length&&ne.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
155
+ Previous: ${n.deps}
156
+ Incoming: ${r}`),(r==null||n.deps==null||!zu(r,n.deps))&&(t(n),n.deps=r),n}throw zr()}l(Va,"useHook");function mt(e,t,r){let{memoizedState:o}=Va(e,n=>{n.memoizedState=t()},r);return o}l(mt,"useMemoLike");function Wu(e,t){return mt("useMemo",e,t)}l(Wu,"useMemo");function yt(e,t){return mt("useCallback",()=>e,t)}l(yt,"useCallback");function Br(e,t){return mt(e,()=>({current:t}),[])}l(Br,"useRefLike");function Bu(e){return Br("useRef",e)}l(Bu,"useRef");function za(){let e=Wr();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{He.getChannel().emit(Ar)}catch{ne.warn("State updates of Storybook preview hooks work only in browser")}}l(za,"triggerUpdate");function Yr(e,t){let r=Br(e,typeof t=="function"?t():t),o=l(n=>{r.current=typeof n=="function"?n(r.current):n,za()},"setState");return[r.current,o]}l(Yr,"useStateLike");function Yu(e){return Yr("useState",e)}l(Yu,"useState");function Ku(e,t,r){let o=r!=null?()=>r(t):t,[n,a]=Yr("useReducer",o);return[n,l(i=>a(s=>e(s,i)),"dispatch")]}l(Ku,"useReducer");function Wa(e,t){let r=qt(),o=mt("useEffect",()=>({create:e}),t);r.currentEffects.includes(o)||r.currentEffects.push(o)}l(Wa,"useEffect");function Xu(e,t=[]){let r=He.getChannel();return Wa(()=>(Object.entries(e).forEach(([o,n])=>r.on(o,n)),()=>{Object.entries(e).forEach(([o,n])=>r.removeListener(o,n))}),[...Object.keys(e),...t]),yt(r.emit.bind(r),[r])}l(Xu,"useChannel");function Ut(){let{currentContext:e}=qt();if(e==null)throw zr();return e}l(Ut,"useStoryContext");function Ju(e,t){let{parameters:r}=Ut();if(e)return r[e]??t}l(Ju,"useParameter");function Qu(){let e=He.getChannel(),{id:t,args:r}=Ut(),o=yt(a=>e.emit($r,{storyId:t,updatedArgs:a}),[e,t]),n=yt(a=>e.emit(Or,{storyId:t,argNames:a}),[e,t]);return[r,o,n]}l(Qu,"useArgs");function Zu(){let e=He.getChannel(),{globals:t}=Ut(),r=yt(o=>e.emit(xr,{globals:o}),[e]);return[t,r]}l(Zu,"useGlobals");function ge(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var n=o.reduce(function(s,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(g){var d,p;return(p=(d=g.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&p!==void 0?p:0})):s},[]);if(n.length){var a=new RegExp(`
157
+ [ ]{`+Math.min.apply(Math,n)+"}","g");o=o.map(function(s){return s.replace(a,`
158
+ `)})}o[0]=o[0].replace(/^\r?\n/,"");var i=o[0];return t.forEach(function(s,u){var c=i.match(/(?:^|\n)( *)$/),g=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
159
+ `)&&(d=String(s).split(`
160
+ `).map(function(p,b){return b===0?p:""+g+p}).join(`
161
+ `)),i+=d+o[u+1]}),i}l(ge,"dedent");var ed=ge,No=new Map,td="UNIVERSAL_STORE:",_e={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Pe=class j{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=l(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=l((o,n)=>{let a=typeof o=="function",i=a?"*":o,s=a?o:n;if(this.debug("subscribe",{eventType:i,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(s),()=>{this.debug("unsubscribe",{eventType:i,listener:s}),this.listeners.has(i)&&(this.listeners.get(i).delete(s),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},"subscribe"),this.send=l(o=>{if(this.debug("send",{event:o}),this.status!==j.Status.READY)throw new TypeError(ge`Cannot send event before store is ready. You can get the current status with store.status,
162
+ or await store.readyPromise to wait for the store to be ready before sending events.
163
+ ${JSON.stringify({event:o,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(o,{actor:this.actor}),this.emitToChannel(o,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!j.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(j.isInternalConstructing=!1,this.id=t.id,this.actorId=globalThis.crypto?globalThis.crypto.randomUUID():Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?j.ActorType.LEADER:j.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${td}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===j.ActorType.LEADER)this.syncing={state:_e.RESOLVED,promise:Promise.resolve()};else{let o,n,a=new Promise((i,s)=>{o=l(()=>{this.syncing.state===_e.PENDING&&(this.syncing.state=_e.RESOLVED,i())},"syncingResolve"),n=l(u=>{this.syncing.state===_e.PENDING&&(this.syncing.state=_e.REJECTED,s(u))},"syncingReject")});this.syncing={state:_e.PENDING,promise:a,resolve:o,reject:n}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??j.preparation.channel,this.environment=r?.environment??j.preparation.environment,this.channel&&this.environment?this.prepareThis({channel:this.channel,environment:this.environment}):j.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,o=new Promise((n,a)=>{t=l(i=>{n(i)},"resolveRef"),r=l((...i)=>{a(i)},"rejectRef")});j.preparation={resolve:t,reject:r,promise:o}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??j.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return j.Status.UNPREPARED;switch(this.syncing?.state){case _e.PENDING:case void 0:return j.Status.SYNCING;case _e.REJECTED:return j.Status.ERROR;case _e.RESOLVED:default:return j.Status.READY}}untilReady(){return Promise.all([j.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(ge`[UniversalStore]
164
+ create`,{options:t});let r=No.get(t.id);if(r)return console.warn(ge`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
165
+ You should reuse the existing instance instead of trying to create a new one.`),r;j.isInternalConstructing=!0;let o=new j(t);return No.set(t.id,o),o}static __prepare(t,r){j.preparation.channel=t,j.preparation.environment=r,j.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,o=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:o,previousState:r,updater:t}),this.status!==j.Status.READY)throw new TypeError(ge`Cannot set state before store is ready. You can get the current status with store.status,
166
+ or await store.readyPromise to wait for the store to be ready before sending events.
167
+ ${JSON.stringify({newState:o,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=o;let n={type:j.InternalEventType.SET_STATE,payload:{state:o,previousState:r}};this.emitToChannel(n,{actor:this.actor}),this.emitToListeners(n,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(j.InternalEventType.SET_STATE,({payload:r},o)=>{t(r.state,r.previousState,o)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===j.ActorType.LEADER?this.emitToChannel({type:j.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:j.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:j.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let o=this.listeners.get(t.type),n=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:o,everythingListeners:n}),[...o??[],...n??[]].forEach(a=>a(t,r))}handleChannelEvents(t){let{event:r,eventInfo:o}=t;if([o.actor.id,o.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===_e.PENDING&&r.type!==j.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===j.ActorType.LEADER){let n=!0;switch(r.type){case j.InternalEventType.EXISTING_STATE_REQUEST:n=!1;let a={type:j.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor});break;case j.InternalEventType.LEADER_CREATED:n=!1,this.syncing.state=_e.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(ge`Detected multiple UniversalStore leaders created with the same id "${this.id}".
168
+ Only one leader can exists at a time, your stores are now in an invalid state.
169
+ Leaders detected:
170
+ this: ${JSON.stringify(this.actor,null,2)}
171
+ other: ${JSON.stringify(o.actor,null,2)}`);break}n&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:o.actor,forwardingActor:this.actor}))}if(this.actor.type===j.ActorType.FOLLOWER)switch(r.type){case j.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==_e.PENDING)break;this.syncing.resolve?.();let n={type:j.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(n,o);break}switch(r.type){case j.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:o.actor})}debug(t,r){this.debugging&&console.debug(ge`[UniversalStore::${this.id}::${this.environment??j.Environment.UNKNOWN}]
172
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){j.preparation.reject(new Error("reset")),j.setupPreparationPromise(),j.isInternalConstructing=!1}};l(Pe,"UniversalStore"),Pe.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Pe.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Pe.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Pe.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Pe.isInternalConstructing=!1,Pe.setupPreparationPromise();var Ct=Pe;function Ba(e,t){let r={},o=Object.entries(e);for(let n=0;n<o.length;n++){let[a,i]=o[n];t(i,a)||(r[a]=i)}return r}l(Ba,"omitBy");function Ya(e,t){let r={};for(let o=0;o<t.length;o++){let n=t[o];Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r}l(Ya,"pick");function Ka(e,t){let r={},o=Object.entries(e);for(let n=0;n<o.length;n++){let[a,i]=o[n];t(i,a)&&(r[a]=i)}return r}l(Ka,"pickBy");function Oe(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}l(Oe,"isPlainObject");function Ve(e,t){let r={},o=Object.keys(e);for(let n=0;n<o.length;n++){let a=o[n],i=e[a];r[a]=t(i,a,e)}return r}l(Ve,"mapValues");var rd="[object RegExp]",od="[object String]",nd="[object Number]",ad="[object Boolean]",Po="[object Arguments]",id="[object Symbol]",sd="[object Date]",ld="[object Map]",cd="[object Set]",ud="[object Array]",dd="[object Function]",hd="[object ArrayBuffer]",er="[object Object]",pd="[object Error]",fd="[object DataView]",yd="[object Uint8Array]",gd="[object Uint8ClampedArray]",md="[object Uint16Array]",bd="[object Uint32Array]",vd="[object BigUint64Array]",Ed="[object Int8Array]",Sd="[object Int16Array]",wd="[object Int32Array]",Cd="[object BigInt64Array]",Td="[object Float32Array]",_d="[object Float64Array]";function dr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}l(dr,"getSymbols");function hr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}l(hr,"getTag");function Xa(e,t){if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return xe(e,t)}return xe(e,t)}l(Xa,"isEqual");function xe(e,t,r){if(Object.is(e,t))return!0;let o=hr(e),n=hr(t);if(o===Po&&(o=er),n===Po&&(n=er),o!==n)return!1;switch(o){case od:return e.toString()===t.toString();case nd:{let s=e.valueOf(),u=t.valueOf();return s===u||Number.isNaN(s)&&Number.isNaN(u)}case ad:case sd:case id:return Object.is(e.valueOf(),t.valueOf());case rd:return e.source===t.source&&e.flags===t.flags;case dd:return e===t}r=r??new Map;let a=r.get(e),i=r.get(t);if(a!=null&&i!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case ld:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!xe(u,t.get(s),r))return!1;return!0}case cd:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let g=s[c],d=u.findIndex(p=>xe(g,p,r));if(d===-1)return!1;u.splice(d,1)}return!0}case ud:case yd:case gd:case md:case bd:case vd:case Ed:case Sd:case wd:case Cd:case Td:case _d:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!xe(e[s],t[s],r))return!1;return!0}case hd:return e.byteLength!==t.byteLength?!1:xe(new Uint8Array(e),new Uint8Array(t),r);case fd:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:xe(e.buffer,t.buffer,r);case pd:return e.name===t.name&&e.message===t.message;case er:{if(!(xe(e.constructor,t.constructor,r)||Oe(e)&&Oe(t)))return!1;let s=[...Object.keys(e),...dr(e)],u=[...Object.keys(t),...dr(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let g=s[c],d=e[g];if(!Object.prototype.hasOwnProperty.call(t,g))return!1;let p=t[g];if(!xe(d,p,r))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}l(xe,"areObjectsEqual");var Id=class Ja extends Ct{constructor(t,r){Ct.isInternalConstructing=!0,super({...t,leader:!0},{channel:new Pr({}),environment:Ct.Environment.MOCK}),Ct.isInternalConstructing=!1,typeof r?.fn=="function"&&(this.testUtils=r,this.getState=r.fn(this.getState),this.setState=r.fn(this.setState),this.subscribe=r.fn(this.subscribe),this.onStateChange=r.fn(this.onStateChange),this.send=r.fn(this.send))}static create(t,r){return new Ja(t,r)}unsubscribeAll(){if(!this.testUtils)throw new Error(ed`Cannot call unsubscribeAll on a store that does not have testUtils.
173
+ Please provide testUtils as the second argument when creating the store.`);let t=l(r=>{try{r.value()}catch{}},"callReturnedUnsubscribeFn");this.subscribe.mock?.results.forEach(t),this.onStateChange.mock?.results.forEach(t)}};l(Id,"MockUniversalStore");var tr=nt(La()),Ze=Symbol("incompatible"),pr=l((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Ze:e.reduce((o,n,a)=>{let i=pr(n,{type:r.value});return i!==Ze&&(o[a]=i),o},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Ze:Object.entries(e).reduce((o,[n,a])=>{let i=pr(a,{type:r.value[n]});return i===Ze?o:Object.assign(o,{[n]:i})},{});default:return Ze}},"map"),Rd=l((e,t)=>Object.entries(e).reduce((r,[o,n])=>{if(!t[o])return r;let a=pr(n,t[o]);return a===Ze?r:Object.assign(r,{[o]:a})},{}),"mapArgsToTypes"),fr=l((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,o,n)=>(r[n]=fr(e[n],t[n]),r),[...e]).filter(r=>r!==void 0):!Oe(e)||!Oe(t)?t:Object.keys({...e,...t}).reduce((r,o)=>{if(o in t){let n=fr(e[o],t[o]);n!==void 0&&(r[o]=n)}else r[o]=e[o];return r},{}),"combineArgs"),Ad=l((e,t)=>Object.entries(t).reduce((r,[o,{options:n}])=>{function a(){return o in e&&(r[o]=e[o]),r}if(l(a,"allowArg"),!n)return a();if(!Array.isArray(n))return ue.error(ge`
174
+ Invalid argType: '${o}.options' should be an array.
175
+
176
+ More info: https://storybook.js.org/docs/api/arg-types
177
+ `),a();if(n.some(d=>d&&["object","function"].includes(typeof d)))return ue.error(ge`
178
+ Invalid argType: '${o}.options' should only contain primitives. Use a 'mapping' for complex values.
179
+
180
+ More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
181
+ `),a();let i=Array.isArray(e[o]),s=i&&e[o].findIndex(d=>!n.includes(d)),u=i&&s===-1;if(e[o]===void 0||n.includes(e[o])||u)return a();let c=i?`${o}[${s}]`:o,g=n.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return ue.warn(`Received illegal value for '${c}'. Supported options: ${g}`),r},{}),"validateOptions"),ct=Symbol("Deeply equal"),$t=l((e,t)=>{if(typeof e!=typeof t)return t;if(Xa(e,t))return ct;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((o,n,a)=>{let i=$t(e[a],n);return i!==ct&&(o[a]=i),o},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Oe(e)&&Oe(t)?Object.keys({...e,...t}).reduce((r,o)=>{let n=$t(e?.[o],t?.[o]);return n===ct?r:Object.assign(r,{[o]:n})},{}):t},"deepDiff"),Qa="UNTARGETED";function Za({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([o,n])=>{let{target:a=Qa}=t[o]||{};r[a]=r[a]||{},r[a][o]=n}),r}l(Za,"groupArgsByTarget");function ei(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}l(ei,"deleteUndefined");var ti=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=$t(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==ct&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=Ad(t,e.argTypes);this.argsByStoryId[e.id]=fr(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=Rd(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=ei({...this.argsByStoryId[e],...t})}};l(ti,"ArgsStore");var Od=ti,ri=l((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:o}])=>(typeof o<"u"&&(t[r]=o),t),{}),"getValuesFromArgTypes"),oi=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&$t(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let o=ri(t);this.initialGlobals={...o,...e},this.globals=this.initialGlobals,r&&r!==ct&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,o])=>(this.allowedGlobalNames.has(r)?t[r]=o:ne.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)}}};l(oi,"GlobalsStore");var xd=oi,$d=nt(La()),Nd=(0,$d.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),ni=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(n=>n.id.startsWith(e));let{name:r,title:o}=e;return t.find(n=>n.name===r&&n.title===o)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new du({storyId:e});return t}importPathToEntry(e){return Nd(this.entries)[e]}};l(ni,"StoryIndexStore");var Pd=ni,Ld=l(e=>typeof e=="string"?{name:e}:e,"normalizeType"),Dd=l(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),kd=l((e,t)=>{let{type:r,control:o,...n}=e,a={name:t,...n};return r&&(a.type=Ld(r)),o?a.control=Dd(o):o===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Nt=l(e=>Ve(e,kd),"normalizeInputTypes"),oe=l(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),Md=ge`
182
+ CSF .story annotations deprecated; annotate story functions directly:
183
+ - StoryFn.story.name => StoryFn.storyName
184
+ - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
185
+ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
186
+ `;function Pt(e,t,r){let o=t,n=typeof t=="function"?t:null,{story:a}=o;a&&(ne.debug("deprecated story",a),dt(Md));let i=Lh(e),s=typeof o!="function"&&o.name||o.storyName||a?.name||i,u=[...oe(o.decorators),...oe(a?.decorators)],c={...a?.parameters,...o.parameters},g={...a?.args,...o.args},d={...a?.argTypes,...o.argTypes},p=[...oe(o.loaders),...oe(a?.loaders)],b=[...oe(o.beforeEach),...oe(a?.beforeEach)],C=[...oe(o.experimental_afterEach),...oe(a?.experimental_afterEach)],{render:T,play:x,tags:_=[],globals:v={}}=o,O=c.__id||Ph(r.id,i);return{moduleExport:t,id:O,name:s,tags:_,decorators:u,parameters:c,args:g,argTypes:Nt(d),loaders:p,beforeEach:b,experimental_afterEach:C,globals:v,...T&&{render:T},...n&&{userStoryFn:n},...x&&{play:x}}}l(Pt,"normalizeStory");function Lt(e,t=e.title,r){let{id:o,argTypes:n}=e;return{id:Bi(o||t),...e,title:t,...n&&{argTypes:Nt(n)},parameters:{fileName:r,...e.parameters}}}l(Lt,"normalizeComponentAnnotations");var Fd=l(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&ne.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),jd=l(e=>{let{options:t}=e;t?.storySort&&ne.error("The storySort option parameter can only be set globally")},"checkStorySort"),Tt=l(e=>{e&&(Fd(e),jd(e))},"checkDisallowedParameters");function ai(e,t,r){let{default:o,__namedExportsOrder:n,...a}=e,i=Object.values(a)[0];if(Ht(i)){let c=Lt(i.meta.input,r,t);Tt(c.parameters);let g={meta:c,stories:{},moduleExports:e};return Object.keys(a).forEach(d=>{if(kt(d,c)){let p=Pt(d,a[d].input,c);Tt(p.parameters),g.stories[p.id]=p}}),g.projectAnnotations=i.meta.preview.composed,g}let s=Lt(o,r,t);Tt(s.parameters);let u={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(c=>{if(kt(c,s)){let g=Pt(c,a[c],s);Tt(g.parameters),u.stories[g.id]=g}}),u}l(ai,"processCSFFile");function ii(e){return e!=null&&si(e).includes("mount")}l(ii,"mountDestructured");function si(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=yr(t[1]);if(!r.length)return[];let o=r[0];return o.startsWith("{")&&o.endsWith("}")?yr(o.slice(1,-1).replace(/\s/g,"")).map(n=>n.replace(/:.*|=.*/g,"")):[]}l(si,"getUsedProps");function yr(e){let t=[],r=[],o=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(o,a).trim();i&&t.push(i),o=a+1}let n=e.substring(o).trim();return n&&t.push(n),t}l(yr,"splitByComma");function li(e,t,r){let o=r(e);return n=>t(o,n)}l(li,"decorateStory");function ci({componentId:e,title:t,kind:r,id:o,name:n,story:a,parameters:i,initialArgs:s,argTypes:u,...c}={}){return c}l(ci,"sanitizeStoryContextUpdate");function ui(e,t){let r={},o=l(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...ci(i)},a(r.value)},"bindWithContext"),n=t.reduce((a,i)=>li(a,i,o),e);return a=>(r.value=a,n(a))}l(ui,"defaultDecorateStory");var ze=l((...e)=>{let t={},r=e.filter(Boolean),o=r.reduce((n,a)=>(Object.entries(a).forEach(([i,s])=>{let u=n[i];Array.isArray(s)||typeof u>"u"?n[i]=s:Oe(s)&&Oe(u)?t[i]=!0:typeof s<"u"&&(n[i]=s)}),n),{});return Object.keys(t).forEach(n=>{let a=r.filter(Boolean).map(i=>i[n]).filter(i=>typeof i<"u");a.every(i=>Oe(i))?o[n]=ze(...a):o[n]=a[a.length-1]}),o},"combineParameters");function Kr(e,t,r){let{moduleExport:o,id:n,name:a}=e||{},i=Xr(e,t,r),s=l(async L=>{let Y={};for(let W of[..."__STORYBOOK_TEST_LOADERS__"in de&&Array.isArray(de.__STORYBOOK_TEST_LOADERS__)?[de.__STORYBOOK_TEST_LOADERS__]:[],oe(r.loaders),oe(t.loaders),oe(e.loaders)]){if(L.abortSignal.aborted)return Y;let K=await Promise.all(W.map(V=>V(L)));Object.assign(Y,...K)}return Y},"applyLoaders"),u=l(async L=>{let Y=new Array;for(let W of[...oe(r.beforeEach),...oe(t.beforeEach),...oe(e.beforeEach)]){if(L.abortSignal.aborted)return Y;let K=await W(L);K&&Y.push(K)}return Y},"applyBeforeEach"),c=l(async L=>{let Y=[...oe(r.experimental_afterEach),...oe(t.experimental_afterEach),...oe(e.experimental_afterEach)].reverse();for(let W of Y){if(L.abortSignal.aborted)return;await W(L)}},"applyAfterEach"),g=l(L=>L.originalStoryFn(L.args,L),"undecoratedStoryFn"),{applyDecorators:d=ui,runStep:p}=r,b=[...oe(e?.decorators),...oe(t?.decorators),...oe(r?.decorators)],C=e?.userStoryFn||e?.render||t.render||r.render,T=Vu(d)(g,b),x=l(L=>T(L),"unboundStoryFn"),_=e?.play??t?.play,v=ii(_);if(!C&&!v)throw new Su({id:n});let O=l(L=>async()=>(await L.renderToCanvas(),L.canvas),"defaultMount"),k=e.mount??t.mount??r.mount??O,X=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:o,id:n,name:a,story:a,originalStoryFn:C,undecoratedStoryFn:g,unboundStoryFn:x,applyLoaders:s,applyBeforeEach:u,applyAfterEach:c,playFunction:_,runStep:p,mount:k,testingLibraryRender:X,renderToCanvas:r.renderToCanvas,usesMount:v}}l(Kr,"prepareStory");function di(e,t,r){return{...Xr(void 0,e,t),moduleExport:r}}l(di,"prepareMeta");function Xr(e,t,r){let o=["dev","test"],n=de.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Dh(...o,...n,...r.tags??[],...t.tags??[],...e?.tags??[]),i=ze(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:u=[]}=r,c=ze(r.argTypes,t.argTypes,e?.argTypes);if(e){let _=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=_&&_.length>0}let g={...r.args,...t.args,...e?.args},d={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:g,argTypes:c,storyGlobals:d};p.argTypes=s.reduce((_,v)=>v({...p,argTypes:_}),p.argTypes);let b={...g};p.initialArgs=u.reduce((_,v)=>({..._,...v({...p,initialArgs:_})}),b);let{name:C,story:T,...x}=p;return x}l(Xr,"preparePartialAnnotations");function Jr(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(de.FEATURES?.argTypeTargetsV7){let a=Za(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[Qa]||{}}}let o=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let u=l(c=>{let g=r.argTypes[i].mapping;return g&&c in g?g[c]:c},"mappingFn");return a[i]=Array.isArray(s)?s.map(u):u(s),a},{}),n=Object.entries(o).reduce((a,[i,s])=>{let u=r.argTypes[i]||{};return Oh(u,o,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:n}}l(Jr,"prepareContext");var gr=l((e,t,r)=>{let o=typeof e;switch(o){case"boolean":case"string":case"number":case"function":case"symbol":return{name:o}}return e?r.has(e)?(ne.warn(ge`
187
+ We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
188
+
189
+ Consider using the mapping feature or fully custom args:
190
+ - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
191
+ - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
192
+ `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?gr(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Ve(e,n=>gr(n,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),hi=l(e=>{let{id:t,argTypes:r={},initialArgs:o={}}=e,n=Ve(o,(i,s)=>({name:s,type:gr(i,`${t}.${s}`,new Set)})),a=Ve(r,(i,s)=>({name:s}));return ze(n,a,r)},"inferArgTypes");hi.secondPass=!0;var Lo=l((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),qd=l((e,t,r)=>!t&&!r?e:e&&Ka(e,(o,n)=>{let a=o.name||n.toString();return!!(!t||Lo(a,t))&&(!r||!Lo(a,r))}),"filterArgTypes"),Ud=l((e,t,r)=>{let{type:o,options:n}=e;if(o){if(r.color&&r.color.test(t)){let a=o.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&ne.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(o.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=o;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:n?"select":"object"}}}}},"inferControl"),pi=l(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:o=null,exclude:n=null,matchers:a={}}={}}}=e;if(!r)return t;let i=qd(t,o,n),s=Ve(i,(u,c)=>u?.type&&Ud(u,c.toString(),a));return ze(s,i)},"inferControls");pi.secondPass=!0;function gt({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:o,loaders:n,beforeEach:a,experimental_afterEach:i,globals:s,initialGlobals:u,...c}){return s&&Object.keys(s).length>0&&dt(ge`
193
+ The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0.
194
+ Please use 'initialGlobals' instead. Learn more:
195
+
196
+ https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals
197
+ `),{...e&&{argTypes:Nt(e)},...t&&{globalTypes:Nt(t)},decorators:oe(o),loaders:oe(n),beforeEach:oe(a),experimental_afterEach:oe(i),argTypesEnhancers:[...r||[],hi,pi],initialGlobals:ze(u,s),...c}}l(gt,"normalizeProjectAnnotations");var Gd=l(e=>async()=>{let t=[];for(let r of e){let o=await r();o&&t.unshift(o)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function fi(e){return async(t,r,o)=>{await e.reduceRight((n,a)=>async()=>a(t,n,o),async()=>r(o))()}}l(fi,"composeStepRunners");function rt(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}l(rt,"getField");function $e(e,t,r={}){return rt(e,t).reduce((o,n)=>{let a=oe(n);return r.reverseFileOrder?[...a,...o]:[...o,...a]},[])}l($e,"getArrayField");function et(e,t){return Object.assign({},...rt(e,t))}l(et,"getObjectField");function Ue(e,t){return rt(e,t).pop()}l(Ue,"getSingletonField");function ot(e){let t=$e(e,"argTypesEnhancers"),r=rt(e,"runStep"),o=$e(e,"beforeAll");return{parameters:ze(...rt(e,"parameters")),decorators:$e(e,"decorators",{reverseFileOrder:!(de.FEATURES?.legacyDecoratorFileOrder??!1)}),args:et(e,"args"),argsEnhancers:$e(e,"argsEnhancers"),argTypes:et(e,"argTypes"),argTypesEnhancers:[...t.filter(n=>!n.secondPass),...t.filter(n=>n.secondPass)],globals:et(e,"globals"),initialGlobals:et(e,"initialGlobals"),globalTypes:et(e,"globalTypes"),loaders:$e(e,"loaders"),beforeAll:Gd(o),beforeEach:$e(e,"beforeEach"),experimental_afterEach:$e(e,"experimental_afterEach"),render:Ue(e,"render"),renderToCanvas:Ue(e,"renderToCanvas"),renderToDOM:Ue(e,"renderToDOM"),applyDecorators:Ue(e,"applyDecorators"),runStep:fi(r),tags:$e(e,"tags"),mount:Ue(e,"mount"),testingLibraryRender:Ue(e,"testingLibraryRender")}}l(ot,"composeConfigs");var yi=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};l(yi,"ReporterAPI");var gi=yi;function mi(e,t,r){return Ht(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}l(mi,"getCsfFactoryAnnotations");function Hd(e){globalThis.defaultProjectAnnotations=e}l(Hd,"setDefaultProjectAnnotations");var Vd="ComposedStory",zd="Unnamed Story";function bi(e){return e?ot([e]):{}}l(bi,"extractAnnotation");function Wd(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=ot([globalThis.defaultProjectAnnotations??{},ot(t.map(bi))]),globalThis.globalProjectAnnotations??{}}l(Wd,"setProjectAnnotations");var ke=[];function vi(e,t,r,o,n){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Vd;let a=Lt(t),i=n||e.storyName||e.story?.name||e.name||zd,s=Pt(i,e,a),u=gt(ot([o??globalThis.globalProjectAnnotations??{},r??{}])),c=Kr(s,a,u),g={...ri(u.globalTypes),...u.initialGlobals,...c.storyGlobals},d=new gi,p=l(()=>{let _=Jr({hooks:new Ha,globals:g,args:{...c.initialArgs},viewMode:"story",reporting:d,loaded:{},abortSignal:new AbortController().signal,step:l((v,O)=>c.runStep(v,O,_),"step"),canvasElement:null,canvas:{},globalTypes:u.globalTypes,...c,context:null,mount:null});return _.parameters.__isPortableStory=!0,_.context=_,c.renderToCanvas&&(_.renderToCanvas=async()=>{let v=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:l(()=>{},"showMain"),showError:l(O=>{throw new Error(`${O.title}
198
+ ${O.description}`)},"showError"),showException:l(O=>{throw O},"showException"),forceRemount:!0,storyContext:_,storyFn:l(()=>c.unboundStoryFn(_),"storyFn"),unboundStoryFn:c.unboundStoryFn},_.canvasElement);v&&ke.push(v)}),_.mount=c.mount(_),_},"initializeContext"),b,C=l(async _=>{let v=p();return v.canvasElement??=globalThis?.document?.body,b&&(v.loaded=b.loaded),Object.assign(v,_),c.playFunction(v)},"play"),T=l(_=>{let v=p();return Object.assign(v,_),Ei(c,v)},"run"),x=c.playFunction?C:void 0;return Object.assign(l(function(_){let v=p();return b&&(v.loaded=b.loaded),v.args={...v.initialArgs,..._},c.unboundStoryFn(v)},"storyFn"),{id:c.id,storyName:i,load:l(async()=>{for(let v of[...ke].reverse())await v();ke.length=0;let _=p();_.loaded=await c.applyLoaders(_),ke.push(...(await c.applyBeforeEach(_)).filter(Boolean)),b=_},"load"),globals:g,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:x,run:T,reporting:d,tags:c.tags})}l(vi,"composeStory");var Bd=l((e,t,r,o)=>vi(e,t,r,{},o),"defaultComposeStory");function Yd(e,t,r=Bd){let{default:o,__esModule:n,__namedExportsOrder:a,...i}=e,s=o;return Object.entries(i).reduce((u,[c,g])=>{let{story:d,meta:p}=mi(g);return!s&&p&&(s=p),kt(c,s)?Object.assign(u,{[c]:r(d,s,t,c)}):u},{})}l(Yd,"composeStories");function Kd(e){return e.extend({mount:l(async({mount:t,page:r},o)=>{await o(async(n,...a)=>{if(!("__pw_type"in n)||"__pw_type"in n&&n.__pw_type!=="jsx")throw new Error(ge`
199
+ Portable stories in Playwright CT only work when referencing JSX elements.
200
+ Please use JSX format for your components such as:
201
+
202
+ instead of:
203
+ await mount(MyComponent, { props: { foo: 'bar' } })
204
+
205
+ do:
206
+ await mount(<MyComponent foo="bar"/>)
207
+
208
+ More info: https://storybook.js.org/docs/api/portable-stories-playwright
209
+ `);await r.evaluate(async s=>{let u=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in u?u.type:u)?.load?.()},n);let i=await t(n,...a);return await r.evaluate(async s=>{let u=await globalThis.__pwUnwrapObject?.(s),c="__pw_type"in u?u.type:u,g=document.querySelector("#root");return c?.play?.({canvasElement:g})},n),i})},"mount")})}l(Kd,"createPlaywrightTest");async function Ei(e,t){for(let n of[...ke].reverse())await n();if(ke.length=0,!t.canvasElement){let n=document.createElement("div");globalThis?.document?.body?.appendChild(n),t.canvasElement=n,ke.push(()=>{globalThis?.document?.body?.contains(n)&&globalThis?.document?.body?.removeChild(n)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;ke.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,o=e.usesMount;o||await t.mount(),!t.abortSignal.aborted&&(r&&(o||(t.mount=async()=>{throw new $a({playFunction:r.toString()})}),await r(t)),await e.applyAfterEach(t))}l(Ei,"runStory");function mr(e,t){return Ba(Ya(e,t),r=>r===void 0)}l(mr,"picky");var Do=1e3,Xd=1e4,Si=class{constructor(e,t,r){this.importFn=t,this.getStoriesJsonData=l(()=>{let a=this.getSetStoriesPayload(),i=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:Ve(a.stories,s=>{let{importPath:u}=this.storyIndex.entries[s.id];return{...mr(s,["id","name","title"]),importPath:u,kind:s.title,story:s.name,parameters:{...mr(s.parameters,i),fileName:u}}})}},"getStoriesJsonData"),this.storyIndex=new Pd(e),this.projectAnnotations=gt(r);let{initialGlobals:o,globalTypes:n}=this.projectAnnotations;this.args=new Od,this.userGlobals=new xd({globals:o,globalTypes:n}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,tr.default)(Do)(ai),this.prepareMetaWithCache=(0,tr.default)(Do)(di),this.prepareStoryWithCache=(0,tr.default)(Xd)(Kr)}setProjectAnnotations(e){this.projectAnnotations=gt(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),o=await this.importFn(t);return this.processCSFFileWithCache(o,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:o})=>(t[r]=o,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new vu({storyId:e});let o=t.meta,n=this.prepareStoryWithCache(r,o,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(n),this.hooks[n.id]=this.hooks[n.id]||new Ha,n}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[o,...n]=await Promise.all([this.importFn(t.importPath),...r.map(a=>{let i=this.storyIndex.importPathToEntry(a);return this.loadCSFFileByStoryId(i.id)})]);return{entryExports:o,csfFiles:n}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,n=new gi;return Jr({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:n,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,t){this.cleanupCallbacks[e.id]=t}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(!t)throw new pu;return Object.entries(this.storyIndex.entries).reduce((r,[o,{type:n,importPath:a}])=>{if(n==="docs")return r;let i=t[a],s=this.storyFromCSFFile({storyId:o,csfFile:i});return!e.includeDocsOnly&&s.parameters.docsOnly||(r[o]=Object.entries(s).reduce((u,[c,g])=>c==="moduleExport"||typeof g=="function"?u:Array.isArray(g)?Object.assign(u,{[c]:g.slice().sort()}):Object.assign(u,{[c]:g}),{args:s.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...s.storyGlobals}})),r},{})}getSetStoriesPayload(){let e=this.extract({includeDocsOnly:!0}),t=Object.values(e).reduce((r,{title:o})=>(r[o]={},r),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:t,stories:e}}raw(){return dt("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:e})=>this.fromId(e)).filter(Boolean)}fromId(e){if(dt("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let t;try{({importPath:t}=this.storyIndex.storyIdToEntry(e))}catch{return null}let r=this.cachedCSFFiles[t],o=this.storyFromCSFFile({storyId:e,csfFile:r});return{...o,storyFn:l(n=>{let a={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:l((i,s)=>o.runStep(i,s,a),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...a,...n})},"storyFn")}}};l(Si,"StoryStore");var Jd=Si;function Qd(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}l(Qd,"slash");function Zd(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}l(Zd,"pathJoin");var Gt=new Error("prepareAborted"),{AbortController:ko}=globalThis;function br(e){try{let{name:t="Error",message:r=String(e),stack:o}=e;return{name:t,message:r,stack:o}}catch{return{name:"Error",message:String(e)}}}l(br,"serializeError");var wi=class{constructor(e,t,r,o,n,a,i={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=o,this.id=n,this.viewMode=a,this.renderOptions=i,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=l(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new ko,s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(pt,{newPhase:this.phase,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted?(this.phase="aborted",this.channel.emit(pt,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Gt}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:n,componentId:a,title:i,name:s,tags:u,applyLoaders:c,applyBeforeEach:g,applyAfterEach:d,unboundStoryFn:p,playFunction:b,runStep:C}=o;t&&!e&&(this.cancelRender(),this.abortController=new ko);let T=this.abortController.signal,x=!1,_=o.usesMount;try{let v={...this.storyContext(),viewMode:this.viewMode,abortSignal:T,canvasElement:r,loaded:{},step:l((M,D)=>C(M,D,v),"step"),context:null,canvas:{},renderToCanvas:l(async()=>{let M=await this.renderToScreen(O,r);this.teardownRender=M||(()=>{}),x=!0},"renderToCanvas"),mount:l(async(...M)=>{this.callbacks.showStoryDuringRender?.();let D=null;return await this.runPhase(T,"rendering",async()=>{D=await o.mount(v)(...M)}),_&&await this.runPhase(T,"playing"),D},"mount")};v.context=v;let O={componentId:a,title:i,kind:i,id:n,name:s,story:s,tags:u,...this.callbacks,showError:l(M=>(this.phase="errored",this.callbacks.showError(M)),"showError"),showException:l(M=>(this.phase="errored",this.callbacks.showException(M)),"showException"),forceRemount:t||this.notYetRendered,storyContext:v,storyFn:l(()=>p(v),"storyFn"),unboundStoryFn:p};if(await this.runPhase(T,"loading",async()=>{v.loaded=await c(v)}),T.aborted)return;let k=await g(v);if(this.store.addCleanupCallbacks(o,k),this.checkIfAborted(T)||(!x&&!_&&await v.mount(),this.notYetRendered=!1,T.aborted))return;let X=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,L=new Set,Y=l(M=>L.add("error"in M?M.error:M.reason),"onError");if(this.renderOptions.autoplay&&t&&b&&this.phase!=="errored"){window.addEventListener("error",Y),window.addEventListener("unhandledrejection",Y),this.disableKeyListeners=!0;try{if(_?await b(v):(v.mount=async()=>{throw new $a({playFunction:b.toString()})},await this.runPhase(T,"playing",async()=>b(v))),!x)throw new wu;this.checkIfAborted(T),!X&&L.size>0?await this.runPhase(T,"errored"):await this.runPhase(T,"played")}catch(M){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(T,"errored",async()=>{this.channel.emit(Qo,br(M))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw M;console.error(M)}if(!X&&L.size>0&&this.channel.emit(Zo,Array.from(L).map(br)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",Y),window.removeEventListener("error",Y),T.aborted)return}await this.runPhase(T,"completed",async()=>this.channel.emit(At,n)),this.phase!=="errored"&&await this.runPhase(T,"afterEach",async()=>{await d(v)});let W=!X&&L.size>0,K=v.reporting.reports.some(M=>M.status==="failed"),V=W||K;await this.runPhase(T,"finished",async()=>this.channel.emit(sr,{storyId:n,status:V?"error":"success",reporters:v.reporting.reports}))}catch(v){this.phase="errored",this.callbacks.showException(v),await this.runPhase(T,"finished",async()=>this.channel.emit(sr,{storyId:n,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window.location.reload(),await new Promise(()=>{})}};l(wi,"StoryRender");var vr=wi,{fetch:eh}=de,th="./index.json",Ci=class{constructor(e,t,r=He.getChannel(),o=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((n,a)=>{this.resolveStoreInitializationPromise=n,this.rejectStoreInitializationPromise=a}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:l((e,t)=>{if(this.storyStoreValue)return dt("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new Eu},"get")})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e)}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(ln,this.onStoryIndexChanged.bind(this)),this.channel.on(xr,this.onUpdateGlobals.bind(this)),this.channel.on($r,this.onUpdateArgs.bind(this)),this.channel.on(fn,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Or,this.onResetArgs.bind(this)),this.channel.on(Ar,this.onForceReRender.bind(this)),this.channel.on(Jo,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new fu;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await eh(th);if(e.status===200)return e.json();throw new yu({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new Jd(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ie({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(on,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new Ie({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Ie({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:o,userGlobals:n,globals:a}=this.storyStoreValue.getStoryContext(t);this.channel.emit(ht,{initialGlobals:r,userGlobals:n,storyGlobals:o,globals:a})}else{let{initialGlobals:r,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(ht,{initialGlobals:r,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new Ie({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(nn,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(lr,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(lr,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new Ie({methodName:"onResetArgs"});let r=this.storyRenders.find(n=>n.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),o=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((n,a)=>(n[a]=r.initialArgs[a],n),{});await this.onUpdateArgs({storyId:e,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}renderStoryToElement(e,t,r,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ie({methodName:"renderStoryToElement"});let n=new vr(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",o,e);return n.renderToElement(t),this.storyRenders.push(n),async()=>{await this.teardownRender(n)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Ie({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Ie({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Ie({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,ne.error(e),ne.error(t),this.channel.emit(Ko,t)}};l(Ci,"Preview");var rh=Ci,Mo="Invariant failed";function It(e,t){if(!e){var r=typeof t=="function"?t():t,o=r?"".concat(Mo,": ").concat(r):Mo;throw new Error(o)}}l(It,"invariant");var Ti=class{constructor(e,t,r,o){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=l(n=>{let a=this.nameToStoryId.get(n);if(a)return a;throw new Error(`No story found with that name: ${n}`)},"storyIdByName"),this.componentStories=l(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=l(n=>this.store.componentStoriesFromCSFFile({csfFile:n}),"componentStoriesFromCSFFile"),this.storyById=l(n=>{if(!n){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let a=this.storyIdToCSFFile.get(n);if(!a)throw new Error(`Called \`storyById\` for story that was never loaded: ${n}`);return this.store.storyFromCSFFile({storyId:n,csfFile:a})},"storyById"),this.getStoryContext=l(n=>({...this.store.getStoryContext(n),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=l(n=>this.store.loadStory({storyId:n}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((n,a)=>{this.referenceCSFFile(n)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(t)return{type:"meta",csfFile:t};let r=this.exportToStory.get(Ht(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let o=e;r=this.resolveAttachedModuleExportType(o)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let o=r.type==="component"?"component or unknown":r.type;throw new Error(ge`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${t.join(", ")}.
210
+ - Did you pass a component to the 'of' prop when the block only supports a story or a meta?
211
+ - ... or vice versa?
212
+ - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}};l(Ti,"DocsContext");var _i=Ti,Ii=class{constructor(e,t,r,o){this.channel=e,this.store=t,this.entry=r,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Gt;let{importPath:r,title:o}=this.entry,n=this.store.processCSFFileWithCache(e,r,o),a=Object.keys(n.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,csfFile:n}),this.csfFiles=[n,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new _i(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let n=await o.renderer(),{render:a}=n,i=l(async()=>{try{await a(r,o,e),this.channel.emit(Rr,this.id)}catch(s){this.callbacks.showException(s)}},"renderDocs");return this.rerender=async()=>i(),this.teardownRender=async({viewModeChanged:s})=>{!s||!e||n.unmount(e)},i()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};l(Ii,"CsfDocsRender");var Fo=Ii,Ri=class{constructor(e,t,r,o){this.channel=e,this.store=t,this.entry=r,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Gt;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new _i(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let n={...o,page:this.exports.default},a=await o.renderer(),{render:i}=a,s=l(async()=>{try{await i(r,n,e),this.channel.emit(Rr,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!e||(a.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};l(Ri,"MdxDocsRender");var jo=Ri,oh=globalThis;function Ai(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}l(Ai,"focusInInput");var Oi="attached-mdx",nh="unattached-mdx";function xi({tags:e}){return e?.includes(nh)||e?.includes(Oi)}l(xi,"isMdxEntry");function Rt(e){return e.type==="story"}l(Rt,"isStoryRender");function $i(e){return e.type==="docs"}l($i,"isDocsRender");function Ni(e){return $i(e)&&e.subtype==="csf"}l(Ni,"isCsfDocsRender");var Pi=class extends rh{constructor(e,t,r,o){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),oh.onkeydown=this.onKeydown.bind(this),this.channel.on(rn,this.onSetCurrentStory.bind(this)),this.channel.on(pn,this.onUpdateQueryParams.bind(this)),this.channel.on(en,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ie({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Ie({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new mu):this.renderStoryLoadingException(e,new bu({storySpecifier:e.toString()}));return}let{id:o,type:n}=r;this.selectionStore.setSelection({storyId:o,viewMode:n}),this.channel.emit(un,this.selectionStore.selection),this.channel.emit(ar,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!Ai(e)){let{altKey:t,ctrlKey:r,metaKey:o,shiftKey:n,key:a,code:i,keyCode:s}=e;this.channel.emit(tn,{event:{altKey:t,ctrlKey:r,metaKey:o,shiftKey:n,key:a,code:i,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(ar,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof vr&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof jo||this.currentRender instanceof Fo)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Ie({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=r,n;try{n=await this.storyStoreValue.storyIdToEntry(o)}catch(d){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,d);return}let a=this.currentSelection?.storyId!==o,i=this.currentRender?.type!==n.type;n.type==="story"?this.view.showPreparingStory({immediate:i}):this.view.showPreparingDocs({immediate:i}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;n.type==="story"?s=new vr(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(o),o,"story"):xi(n)?s=new jo(this.channel,this.storyStoreValue,n,this.mainStoryCallbacks(o)):s=new Fo(this.channel,this.storyStoreValue,n,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=r;let c=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(d){c&&await this.teardownRender(c),d!==Gt&&this.renderStoryLoadingException(o,d);return}let g=!a&&c&&!s.isEqual(c);if(e&&Rt(s)&&(It(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),c&&!c.torndown&&!a&&!g&&!i){this.currentRender=c,this.channel.emit(hn,o),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:i}),u&&(a||i)&&this.channel.emit(an,o),Rt(s)){It(!!s.story);let{parameters:d,initialArgs:p,argTypes:b,unmappedArgs:C,initialGlobals:T,userGlobals:x,storyGlobals:_,globals:v}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(cn,{id:o,parameters:d,initialArgs:p,argTypes:b,args:C}),this.channel.emit(ht,{userGlobals:x,storyGlobals:_,globals:v,initialGlobals:T})}else{let{parameters:d}=this.storyStoreValue.projectAnnotations,{initialGlobals:p,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(ht,{globals:b,initialGlobals:p,storyGlobals:{},userGlobals:b}),Ni(s)||s.entry.tags?.includes(Oi)){if(!s.csfFiles)throw new gu({storyId:o});({parameters:d}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(Xo,{id:o,parameters:d})}Rt(s)?(It(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:l(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:l(()=>this.view.showMain(),"showMain"),showError:l(t=>this.renderError(e,t),"showError"),showException:l(t=>this.renderException(e,t),"showException")}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(ir)}renderStoryLoadingException(e,t){ne.error(t),this.view.showErrorDisplay(t),this.channel.emit(ir,e)}renderException(e,t){let{name:r="Error",message:o=String(t),stack:n}=t;this.channel.emit(dn,{name:r,message:o,stack:n}),this.channel.emit(pt,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay(t),ne.error(`Error rendering story '${e}':`),ne.error(t)}renderError(e,{title:t,description:r}){ne.error(`Error rendering story ${t}: ${r}`),this.channel.emit(sn,{title:t,description:r}),this.channel.emit(pt,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay({message:t,stack:r})}};l(Pi,"PreviewWithSelection");var ah=Pi,Er=nt(Vr()),ih=nt(Vr()),qo=/^[a-zA-Z0-9 _-]*$/,Li=/^-?[0-9]+(\.[0-9]+)?$/,sh=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Di=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Sr=l((e="",t)=>e===null||e===""||!qo.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?qo.test(t)||Li.test(t)||sh.test(t)||Di.test(t):Array.isArray(t)?t.every(r=>Sr(e,r)):Oe(t)?Object.entries(t).every(([r,o])=>Sr(r,o)):!1,"validateArgs"),lh={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(Di);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return Li.test(e)?Number(e):e}},Uo=l(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,ih.parse)(t.join(";"),lh)).reduce((r,[o,n])=>Sr(o,n)?Object.assign(r,{[o]:n}):(ue.warn(ge`
213
+ Omitted potentially unsafe URL args.
214
+
215
+ More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
216
+ `),r),{})},"parseArgsParam"),{history:ki,document:Me}=de;function Mi(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}l(Mi,"pathToId");var Fi=l(({selection:e,extraParams:t})=>{let r=Me?.location.search.slice(1),{path:o,selectedKind:n,selectedStory:a,...i}=(0,Er.parse)(r);return`?${(0,Er.stringify)({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),ch=l(e=>{if(!e)return;let t=Fi({selection:e}),{hash:r=""}=Me.location;Me.title=e.storyId,ki.replaceState({},"",`${Me.location.pathname}${t}${r}`)},"setPath"),uh=l(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),ut=l(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return ut(e[0]);if(uh(e))return ut(Object.values(e).filter(Boolean))}},"getFirstString"),dh=l(()=>{if(typeof Me<"u"){let e=Me.location.search.slice(1),t=(0,Er.parse)(e),r=typeof t.args=="string"?Uo(t.args):void 0,o=typeof t.globals=="string"?Uo(t.globals):void 0,n=ut(t.viewMode);(typeof n!="string"||!n.match(/docs|story/))&&(n="story");let a=ut(t.path),i=a?Mi(a):ut(t.id);if(i)return{storySpecifier:i,args:r,globals:o,viewMode:n}}return null},"getSelectionSpecifierFromPath"),ji=class{constructor(){this.selectionSpecifier=dh()}setSelection(e){this.selection=e,ch(this.selection)}setQueryParams(e){let t=Fi({extraParams:e}),{hash:r=""}=Me.location;ki.replaceState({},"",`${Me.location.pathname}${t}${r}`)}};l(ji,"UrlStore");var hh=ji,ph=nt(qu()),fh=nt(Vr()),{document:ve}=de,Go=100,qi=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(qi||{}),rr={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},or={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Ho=new ph.default({escapeXML:!0}),Ui=class{constructor(){if(this.testing=!1,typeof ve<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,fh.parse)(ve.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),ve.documentElement.scrollTop=0,ve.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return ve.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),ve.documentElement.scrollTop=0,ve.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return ve.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){ve.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=or[e];ve.body.classList.remove(this.currentLayoutClass),ve.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){or[e]||ne.warn(ge`
217
+ The desired layout: ${e} is not a valid option.
218
+ The possible options are: ${Object.keys(or).join(", ")}, none.
219
+ `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(qi).forEach(t=>{t===e?ve.body.classList.add(rr[t]):ve.body.classList.remove(rr[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,o=t,n=e.split(`
220
+ `);n.length>1&&([r]=n,o=n.slice(1).join(`
221
+ `).replace(/^\n/,"")),ve.getElementById("error-message").innerHTML=Ho.toHtml(r),ve.getElementById("error-stack").innerHTML=Ho.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Go)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Go)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){ve.body.classList.add(rr.MAIN)}};l(Ui,"WebView");var yh=Ui,gh=class extends ah{constructor(e,t){super(e,t,new hh,new yh),this.importFn=e,this.getProjectAnnotations=t,de.__STORYBOOK_PREVIEW__=this}};l(gh,"PreviewWeb");var{document:Ge}=de,mh=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],bh="script",Vo="scripts-root";function Dt(){let e=Ge.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Ge.dispatchEvent(e)}l(Dt,"simulateDOMContentLoaded");function Gi(e,t,r){let o=Ge.createElement("script");o.type=e.type==="module"?"module":"text/javascript",e.src?(o.onload=t,o.onerror=t,o.src=e.src):o.textContent=e.innerText,r?r.appendChild(o):Ge.head.appendChild(o),e.parentNode.removeChild(e),e.src||t()}l(Gi,"insertScript");function Qr(e,t,r=0){e[r](()=>{r++,r===e.length?t():Qr(e,t,r)})}l(Qr,"insertScriptsSequentially");function wr(e){let t=Ge.getElementById(Vo);t?t.innerHTML="":(t=Ge.createElement("div"),t.id=Vo,Ge.body.appendChild(t));let r=Array.from(e.querySelectorAll(bh));if(r.length){let o=[];r.forEach(n=>{let a=n.getAttribute("type");(!a||mh.includes(a))&&o.push(i=>Gi(n,i,t))}),o.length&&Qr(o,Dt,void 0)}else Dt()}l(wr,"simulatePageLoad");var vh=Object.create,Zr=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Sh=Object.getOwnPropertyNames,wh=Object.getPrototypeOf,Ch=Object.prototype.hasOwnProperty,pe=(e,t)=>Zr(e,"name",{value:t,configurable:!0}),Th=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_h=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Sh(t))!Ch.call(e,n)&&n!==r&&Zr(e,n,{get:()=>t[n],enumerable:!(o=Eh(t,n))||o.enumerable});return e},Ih=(e,t,r)=>(r=e!=null?vh(wh(e)):{},_h(Zr(r,"default",{value:e,enumerable:!0}),e)),Rh=Th(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,o=Object.getOwnPropertySymbols?function(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}:Object.keys;return function(n,a){return pe(function i(s,u,c){var g,d,p,b=t.call(s),C=t.call(u);if(s===u)return!0;if(s==null||u==null)return!1;if(c.indexOf(s)>-1&&c.indexOf(u)>-1)return!0;if(c.push(s,u),b!=C||(g=o(s),d=o(u),g.length!=d.length||g.some(function(T){return!i(s[T],u[T],c)})))return!1;switch(b.slice(8,-1)){case"Symbol":return s.valueOf()==u.valueOf();case"Date":case"Number":return+s==+u||+s!=+s&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+u;case"Set":case"Map":g=s.entries(),d=u.entries();do if(!i((p=g.next()).value,d.next().value,c))return!1;while(!p.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),u=new Uint8Array(u);case"DataView":s=new Uint8Array(s.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=u.length)return!1;for(p=0;p<s.length;p++)if((p in s||p in u)&&(p in s!=p in u||!i(s[p],u[p],c)))return!1;return!0;case"Object":return i(r(s),r(u),c);default:return!1}},"n")(n,a,[])}}()});function Hi(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,o,n)=>`${r} ${o}${n}`).replace(/([a-z])([A-Z])/g,(t,r,o)=>`${r} ${o}`).replace(/([a-z])([0-9])/gi,(t,r,o)=>`${r} ${o}`).replace(/([0-9])([a-z])/gi,(t,r,o)=>`${r} ${o}`).replace(/(\s|^)(\w)/g,(t,r,o)=>`${r}${o.toUpperCase()}`).replace(/ +/g," ").trim()}pe(Hi,"toStartCaseStr");var zo=Ih(Rh()),Vi=pe(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),Ah=pe((e,t)=>{let{exists:r,eq:o,neq:n,truthy:a}=e;if(Vi([r,o,n,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:o,neq:n})}`);if(typeof o<"u")return(0,zo.isEqual)(t,o);if(typeof n<"u")return!(0,zo.isEqual)(t,n);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),Oh=pe((e,t,r)=>{if(!e.if)return!0;let{arg:o,global:n}=e.if;if(Vi([o,n])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:o,global:n})}`);let a=o?t[o]:r[n];return Ah(e.if,a)},"includeConditionalArg");function xh(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:o,...n}=e;return t=gt(ot([...o??[],n])),t},meta(o){return zi(o,this)}};return globalThis.globalProjectAnnotations=r.composed,r}pe(xh,"__definePreview");function $h(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}pe($h,"isPreview");function Nh(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}pe(Nh,"isMeta");function zi(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r){return Wi(r,this)}}}pe(zi,"defineMeta");function Wi(e,t){return{_tag:"Story",input:e,meta:t,get composed(){throw new Error("Not implemented")}}}pe(Wi,"defineStory");function Ht(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}pe(Ht,"isStory");var Bi=pe(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Wo=pe((e,t)=>{let r=Bi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),Ph=pe((e,t)=>`${Wo(e,"kind")}${t?`--${Wo(t,"name")}`:""}`,"toId"),Lh=pe(e=>Hi(e),"storyNameFromExport");function Cr(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}pe(Cr,"matches");function kt(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Cr(e,t))&&(!r||!Cr(e,r))}pe(kt,"isExportStory");var Dh=pe((...e)=>{let t=e.reduce((r,o)=>(o.startsWith("!")?r.delete(o.slice(1)):r.add(o),r),new Set);return Array.from(t)},"combineTags"),eo=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function kh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var n=o.reduce(function(s,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(g){var d,p;return(p=(d=g.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&p!==void 0?p:0})):s},[]);if(n.length){var a=new RegExp(`
222
+ [ ]{`+Math.min.apply(Math,n)+"}","g");o=o.map(function(s){return s.replace(a,`
223
+ `)})}o[0]=o[0].replace(/^\r?\n/,"");var i=o[0];return t.forEach(function(s,u){var c=i.match(/(?:^|\n)( *)$/),g=c?c[1]:"",d=s;typeof s=="string"&&s.includes(`
224
+ `)&&(d=String(s).split(`
225
+ `).map(function(p,b){return b===0?p:""+g+p}).join(`
226
+ `)),i+=d+o[u+1]}),i}var Mh=Object.defineProperty,Fh=(e,t)=>{for(var r in t)Mh(e,r,{get:t[r],enumerable:!0})},jh={};Fh(jh,{parameters:()=>Hh,render:()=>Uh,renderToCanvas:()=>Gh});var{Node:qh}=eo,Uh=(e,t)=>{let{id:r,component:o}=t;if(!o)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);let n=document.createElement(o);return Object.entries(e).forEach(([a,i])=>{n[a]=i}),n};function Gh({storyFn:e,kind:t,name:r,showMain:o,showError:n,forceRemount:a},i){let s=e();if(o(),ho(s)){(a||!i.querySelector('[id="root-inner"]'))&&(i.innerHTML='<div id="root-inner"></div>');let u=i.querySelector('[id="root-inner"]');lo(s,u),wr(i)}else if(typeof s=="string")i.innerHTML=s,wr(i);else if(s instanceof qh){if(i.firstChild===s&&!a)return;i.innerHTML="",i.appendChild(s),Dt()}else n({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:kh`
227
+ Did you forget to return the HTML snippet from the story?
228
+ Use "() => <your snippet or node>" or when defining the story.
229
+ `})}var Hh={renderer:"web-components"},{window:Vh}=eo;Vh.STORYBOOK_ENV="web-components";var{window:zh,EventSource:Wh}=eo;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new Wh("__webpack_hmr").addEventListener("message",function(e){try{let{action:t}=JSON.parse(e.data);t==="built"&&zh.location.reload()}catch{}}));var Bh=new Set(["componentName","view","itemId","mapItemId","sceneItemId"]),Tr=class extends uo{update(t,r){let[o]=r,n=t;Object.entries(o).forEach(([a,i])=>{if(Bh.has(a))return;let s=ao(a);i==="false"||i===!1?n.element.removeAttribute(s):n.element.setAttribute(s,String(i))})}};co(Tr);function Bo(e){if(e.icon)return e.icon;if(!("image"in e&&e.image)&&!e.className)return"question"}function Yh(e){return e?{backgroundImage:`url(${e})`}:{}}var _r=class extends po{constructor(){super(...arguments),this._itemRef=Wt(),this._noticeRef=Wt(),this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.showTemporaryTableIndicators=!1,this.dragEnabled=!1,this.listModeDisabled=!1,this.messages=mo({}),this.parent=null,this.parentTitles=null,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=io()("autoDestroyDisabled","messageOverrides")}static{this.properties={_title:16,_renderedItemStatus:16,_renderedItemTemporaryIcon:16,_renderedItemToggle:16,_renderedPanel:16,_renderedPanelAction:16,_renderedActions:16,_renderedActionMenu:16,_renderedActionMenuContent:16,_renderedCatalogFootprintIcon:16,_renderedCatalogDynamicIcon:16,_renderedCatalogSelectNode:16,_renderedChildList:16,_hasTables:16,_renderedTablesItem:16,_renderedItemMessage:16,_singleAction:16,_filteredSections:16,_actionsCount:16,activeItem:0,canMove:0,css:0,displayMode:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,hideFlow:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,showTemporaryTableIndicators:5,dragEnabled:5,item:0,layerTablesEnabled:0,listModeDisabled:5,messages:0,handleAction:0,handlePanelOpen:0,handleCatalogOpen:0,handleTablesOpen:0,handleSelectedDragItemLayerUidChange:0,handleTooltipReferenceChange:0,parent:0,parentTitles:0,rootGroupUid:1,selectionMode:1,selectedItems:0,selectedDragItemLayerUid:1,visibilityAppearance:1,autoDestroyDisabled:5,messageOverrides:0}}static{this.styles=bo}static{this.shadowRootOptions=so}get _title(){let{messages:t}=this;return this.item.title||("untitledTable"in t?t.untitledTable:t.untitledLayer)}get _renderedItemStatus(){let{item:t,parent:r,hideStatusIndicators:o,css:n}=this;if(!o)return null;let{publishing:a}=t,i="updating"in t&&t.updating&&!r,s="connectionStatus"in t?t.connectionStatus:void 0,u=!!s;return ie`<calcite-icon class=${Ee(st(n.statusIndicator,{[n.publishing]:a},"updating"in n&&{[n.updating]:i},"connectionStatus"in n&&{[n.connectionStatus]:u},"connectionStatusConnected"in n&&{[n.connectionStatusConnected]:u&&s==="connected"}))} .icon=${Ji({connectionStatus:s,publishing:a})} scale=s slot=content-end></calcite-icon>`}get _renderedItemTemporaryIcon(){let{item:t,showTemporaryLayerIndicators:r,showTemporaryTableIndicators:o,css:n}=this,{layer:a}=t,i=a&&"persistenceEnabled"in a&&(Yi(a)||!a.persistenceEnabled);return(r||o)&&i?ie`<calcite-icon class=${Ee(n.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${this.messages.temporary??be}></calcite-icon>`:null}get _renderedItemToggle(){let{item:t,parent:r,messages:o,visibilityAppearance:n,css:a}=this;if(!("visible"in t)||!("layerVisibility"in o)||!("visibleToggle"in a)||!n)return null;let{visible:i}=t,s=this._getParentVisibilityMode(r);if(s==="inherited")return null;let u=Xi({visible:i,exclusive:s==="exclusive",visibilityAppearance:n}),c=n==="checkbox",g=o.layerVisibility;return ie`<calcite-action appearance=transparent class=${Ee(a.visibleToggle)} .icon=${c?u:void 0} @click=${()=>this._toggleVisibility(t,r)} scale=s .slot=${c?"actions-start":"actions-end"} .text=${g} title=${g??be}>${c?null:ie`<calcite-icon class=${Ee(st({[a.visibleIcon]:s!=="exclusive"&&i}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}get _renderedPanel(){let{panel:t}=this.item;return t?.open&&!t.disabled&&!t.flowEnabled?ie`<div class=${Ee(this.css.itemContentBottom)} slot=content-bottom>${t.render()}</div>`:null}get _renderedPanelAction(){let{panel:t}=this.item;if(!t?.visible)return null;let{open:r,title:o,disabled:n}=t,a={icon:t.icon,image:t.image,indicator:!1};return ie`<calcite-action .active=${r} appearance=transparent .disabled=${n} .icon=${Bo(a)} @click=${()=>this._togglePanel(t)} scale=s slot=actions-end .text=${o??""} title=${o??void 0??be}>${this._renderFallbackIcon(t)}</calcite-action>`}get _renderedActions(){switch(this._actionsCount){case 0:return null;case 1:return this._singleAction;default:return this._renderedActionMenu}}get _renderedActionMenu(){let{item:t,messages:r}=this,o=r.options;return ie`<calcite-action-menu appearance=transparent .label=${r.menu} .open=${t.actionsOpen} overlay-positioning=fixed placement=bottom-end scale=s slot=actions-end @calciteActionMenuOpen=${this._onActionMenuOpen}><calcite-action appearance=transparent icon=ellipsis scale=s slot=trigger .text=${o} title=${o??be}></calcite-action>${this._renderedActionMenuContent}</calcite-action-menu>`}get _renderedActionMenuContent(){return this._filteredSections.toArray().map(t=>ie`<calcite-action-group>${t.toArray().map(r=>this._renderAction({action:r,textEnabled:!0}))}</calcite-action-group>`)}get _renderedCatalogFootprintIcon(){let{css:t}=this,r=this.item.layer,o=r?.type==="catalog-footprint",n=r?.type==="sublayer"&&vo(r,"footprints");return"itemCatalogIcon"in t&&(o||n)?ie`<calcite-icon class=${Ee(t.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogDynamicIcon(){let{css:t}=this,r=this.item.layer,o=r?.type==="catalog-dynamic-group",n=r?.type==="sublayer"&&vo(r,"layers-in-view");return"itemCatalogIcon"in t&&(o||n)?ie`<calcite-icon class=${Ee(t.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogSelectNode(){let{_title:t,item:r,hideCatalogLayerList:o}=this;if(!("visible"in r))return;let{layer:n}=r,a=n?.type==="catalog-dynamic-group";return o&&a?ie`<calcite-action appearance=transparent .disabled=${!n.visible} icon=chevron-right icon-flip-rtl @click=${()=>this._triggerOnCatalogOpen(r)} scale=s slot=actions-end .text=${t}></calcite-action>`:null}get _renderedChildList(){let{dragEnabled:t,item:r,rootGroupUid:o,listModeDisabled:n,selectionMode:a,displayMode:i}=this;if(!("children"in r))return;let s=[...this.parentTitles??[],r.title],{children:u,layer:c}=r,g=c?.type!=="catalog-dynamic-group"&&ns(r),d=n?!1:Qi(c),p=c?.type==="group",b=!d&&!g&&t&&p,C=t?"childrenSortable"in r&&r.childrenSortable&&Zi(r):!1;return g||b?ie`<calcite-list .canPull=${T=>this.canMove?this.canMove(T,"pull"):!1} .canPut=${T=>this.canMove?this.canMove(T,"put"):!1} data-item=${r??be} data-layer-type=${o??be} .displayMode=${i} .dragEnabled=${C} .group=${p?o:`${o}-${c?.uid}`} .label=${r.title} selection-appearance=border .selectionMode=${a}>${u?.filter(T=>!T.hidden&&(this.showErrors||!T.error)).toArray().map(T=>this._renderItem(T,r,s))}${this._renderedTablesItem}</calcite-list>`:null}get _hasTables(){let{layerTablesEnabled:t}=this,r=this.item.layer;if(!t||!r)return!1;switch(r.type){case"knowledge-graph":return t.includes(r.type)&&"tables"in r&&!!r.tables?.length;case"map-image":case"tile":return t.includes(r.type)&&"subtables"in r&&!!r.subtables?.length;default:return!1}}get _renderedTablesItem(){let{item:t,messages:r,css:o}=this,{layer:n}=t;return"itemTableIcon"in o&&"visible"in t&&"tables"in r&&this._hasTables?ie`<calcite-list-item class=${Ee(o.item)} data-layer-id=${n?.id??be} drag-disabled .label=${r.tables} title=${r.tables??be} @calciteListItemSelect=${()=>this._triggerOnTablesOpen(t)}><calcite-icon class=${Ee(o.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`:null}get _renderedItemMessage(){let{item:t,messages:r,css:o}=this;return t.error?ie`<div class=${Ee(o.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in r?r.tableError:r.layerError}</div></calcite-notice></div>`:"incompatible"in t&&t.incompatible&&"layerIncompatible"in r?ie`<div class=${Ee(o.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Bt(this._noticeRef)}><div slot=message>${r.layerIncompatible}</div></calcite-notice></div>`:null}get _singleAction(){return this._renderAction({action:as(this._filteredSections),textEnabled:!1})}get _filteredSections(){return this.item.actionsSections.map(t=>t.filter(r=>r.visible))}get _actionsCount(){return this.item.actionsSections.reduce((t,r)=>t+r.length,0)}async destroy(){await this.manager.destroy()}updated(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._removeTooltipReference()}willUpdate(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._setTooltipReference(this._noticeRef.value)}_onActionMenuOpen(t){this.item.actionsOpen=t.currentTarget.open}_setTooltipReference(t){this.handleTooltipReferenceChange?.(this.item.layer?.uid,t)}_removeTooltipReference(){this.handleTooltipReferenceChange?.(this.item.layer?.uid,null)}_triggerAction(t,r){!r||!t||(r.type==="toggle"&&(r.value=!r.value),this.handleAction(r,t))}_triggerOnTablesOpen(t){!t||!this.handleTablesOpen||this.handleTablesOpen(t)}_triggerOnCatalogOpen(t){t&&this.handleCatalogOpen?.(t)}_focusSelectedDragEl(t,r){this.selectedDragItemLayerUid===r.layer?.uid&&(go(t),this.handleSelectedDragItemLayerUidChange?.(null))}_handleCalciteListItemToggle(t,r){t.stopPropagation(),r.open=t.target.open}_getParentVisibilityMode(t){return t&&"visibilityMode"in t?t.visibilityMode:null}_handleCalciteListItemSelect(t,r,o){if(os(t.target)!==r)return;let n=this._getParentVisibilityMode(o);this.selectionMode!=="none"||n==="inherited"||this._toggleVisibility(r,o)}_togglePanel(t){t.open=!t.open,t.open&&this.handlePanelOpen()}_toggleVisibility(t,r){!t||!("visible"in t)||this._getParentVisibilityMode(r)==="exclusive"&&t.visible||(t.visible=!t.visible)}render(){let t=this.parentTitles??[],{_title:r,item:o,activeItem:n,selectionMode:a,selectedItems:i,messages:s,parent:u,css:c}=this,g="visibleAtCurrentTimeExtent"in o&&"layerInvisibleAtTime"in s&&!o.visibleAtCurrentTimeExtent?`${r} (${s.layerInvisibleAtTime})`:"visibleAtCurrentScale"in o&&"layerInvisibleAtScale"in s&&!o.visibleAtCurrentScale?`${r} (${s.layerInvisibleAtScale})`:r,d="parent"in o&&o.parent?.layer?.type==="catalog",{layer:p}=o,b="visibleAtCurrentScale"in o&&!o.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in o&&!o.visibleAtCurrentTimeExtent;return ie`<calcite-list-item class=${Ee(st(c.item,"itemActive"in c&&{[c.itemActive]:n===o}))} data-item=${o??be} data-layer-id=${p?.id??be} .dragDisabled=${!("sortable"in o&&o.sortable)||d} id=${p?.uid??be} .label=${r} .metadata=${{parentTitles:t,_title:r}} .open=${"open"in o&&o.open} .selected=${a!=="none"?i.includes(o):!1} title=${g??be} .unavailable=${b} .value=${p?.uid} @calciteListItemSelect=${C=>"visible"in o&&this._handleCalciteListItemSelect(C,o,u)} @calciteListItemToggle=${C=>"open"in o&&this._handleCalciteListItemToggle(C,o)} ${Bt(this._itemRef)}>${this._renderedCatalogFootprintIcon}${this._renderedCatalogDynamicIcon}${this._renderedItemStatus}${this._renderedItemToggle}${this._renderedCatalogSelectNode}${this._renderedItemTemporaryIcon}${this._renderedChildList}${this._renderedItemMessage}${this._renderedPanel}${this._renderedPanelAction}${this._renderedActions}</calcite-list-item>`}_renderAction(t){let{item:r}=this,{action:o,textEnabled:n}=t;if(!o)return null;let{active:a,disabled:i,title:s,type:u,indicator:c}=o;return ie`<calcite-action .active=${u==="toggle"?o.value:!1} appearance=transparent data-action-id=${o.id??be} .disabled=${i} .icon=${Bo(o)} .indicator=${c} .loading=${a} @click=${()=>this._triggerAction(r,o)} scale=s slot=${(n?void 0:"actions-end")??be} .text=${s??""} .textEnabled=${n} title=${s??void 0??be}>${this._renderFallbackIcon(o)}</calcite-action>`}_renderFallbackIcon(t){let{css:r}=this,{className:o,icon:n}=t;if(n)return null;let a="image"in t?t.image:void 0,i={[r.itemActionIcon]:!!o,[r.itemActionImage]:!!a};return o&&(i[o]=!0),a||o?ie`<span aria-hidden=true class=${Ee(st(r.itemActionIcon,i))} style=${fo(Yh(a))}></span>`:null}_renderItem(t,r,o=[]){return ie`<arcgis-layer-list-item .activeItem=${this.activeItem} .canMove=${this.canMove} .css=${this.css} .displayMode=${this.displayMode} .dragEnabled=${this.dragEnabled} .item=${t} .layerTablesEnabled=${this.layerTablesEnabled} .listModeDisabled=${this.listModeDisabled} .messages=${this.messages} .parent=${r} .parentTitles=${o} .rootGroupUid=${this.rootGroupUid} .selectedDragItemLayerUid=${this.selectedDragItemLayerUid} .selectedItems=${this.selectedItems} .selectionMode=${this.selectionMode} .visibilityAppearance=${this.visibilityAppearance} .handleAction=${this.handleAction} .handleCatalogOpen=${this.handleCatalogOpen} .handlePanelOpen=${this.handlePanelOpen} .handleSelectedDragItemLayerUidChange=${this.handleSelectedDragItemLayerUidChange} .handleTablesOpen=${this.handleTablesOpen} .handleTooltipReferenceChange=${this.handleTooltipReferenceChange} .hideCatalogLayerList=${this.hideCatalogLayerList} .showCloseButton=${this.showCloseButton} .showCollapseButton=${this.showCollapseButton} .showErrors=${this.showErrors} .showFilter=${this.showFilter} .hideFlow=${this.hideFlow} .showHeading=${this.showHeading} .hideStatusIndicators=${this.hideStatusIndicators} .showTemporaryLayerIndicators=${this.showTemporaryLayerIndicators} .showTemporaryTableIndicators=${this.showTemporaryTableIndicators}></arcgis-layer-list-item>`}};yo("arcgis-layer-list-item",_r);_0=_r},"layers/catalog/catalogUtils")
230
+ export{$$,_0 as ArcgisLayerListItem}