@nasa-terra/components 0.0.185 → 0.0.187

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 (1444) hide show
  1. package/cdn/apis/cmr.api.d.ts +57 -0
  2. package/cdn/apis/giovanni.api.d.ts +69 -0
  3. package/cdn/apis/harmony.api.d.ts +43 -1
  4. package/cdn/chunks/chunk.22AKT47W.js +158 -0
  5. package/cdn/chunks/chunk.26PJMK6F.js +19 -0
  6. package/cdn/chunks/chunk.2AFLJARP.js +19 -0
  7. package/cdn/chunks/chunk.2GK5ESOQ.js +33 -0
  8. package/cdn/chunks/chunk.2I5J63NZ.js +19 -0
  9. package/cdn/chunks/chunk.2RJFUFJW.js +610 -0
  10. package/cdn/chunks/chunk.2X7ECEXX.js +34 -0
  11. package/cdn/chunks/chunk.36G5VRI3.js +433 -0
  12. package/cdn/chunks/chunk.3JNJAOYG.js +29 -0
  13. package/cdn/chunks/chunk.3JSWB4KI.js +29 -0
  14. package/cdn/chunks/chunk.3QD75UYK.js +19 -0
  15. package/cdn/chunks/chunk.3ZXOZBXL.js +99 -0
  16. package/cdn/chunks/chunk.4AANKT2Q.js +34 -0
  17. package/cdn/chunks/chunk.4CNYUWRC.js +92 -0
  18. package/cdn/chunks/chunk.4ESVA2U2.js +33 -0
  19. package/cdn/chunks/chunk.4FUIIASW.js +19 -0
  20. package/cdn/chunks/chunk.4LDZ44IT.js +658 -0
  21. package/cdn/chunks/chunk.4MCZQQXQ.js +29 -0
  22. package/cdn/chunks/chunk.4R6XKFRJ.js +242 -0
  23. package/cdn/chunks/chunk.4TEPTOLY.js +29 -0
  24. package/cdn/chunks/chunk.4TRZD463.js +35 -0
  25. package/cdn/chunks/chunk.4U5MAADM.js +19 -0
  26. package/cdn/chunks/chunk.54YCMEK5.js +19 -0
  27. package/cdn/chunks/chunk.5A4JSTC2.js +86 -0
  28. package/cdn/chunks/chunk.5IPBXXQW.js +19 -0
  29. package/cdn/chunks/chunk.5PPGP4LG.js +653 -0
  30. package/cdn/chunks/chunk.5RNK56D6.js +104 -0
  31. package/cdn/chunks/chunk.5T2GTQTE.js +45 -0
  32. package/cdn/chunks/chunk.5WHV7BIM.js +294 -0
  33. package/cdn/chunks/chunk.5YFLB32J.js +538 -0
  34. package/cdn/chunks/chunk.5ZFSBJLQ.js +29 -0
  35. package/cdn/chunks/chunk.6AQSNHPO.js +493 -0
  36. package/cdn/chunks/chunk.6BEI5DD3.js +33 -0
  37. package/cdn/chunks/chunk.6EVPLK3S.js +19 -0
  38. package/cdn/chunks/chunk.6HWWEPDA.js +551 -0
  39. package/cdn/chunks/chunk.6T7RPWB7.js +19 -0
  40. package/cdn/chunks/chunk.73TY2VWM.js +19 -0
  41. package/cdn/chunks/chunk.75CD4UKC.js +134 -0
  42. package/cdn/chunks/chunk.7DGND55N.js +19 -0
  43. package/cdn/chunks/chunk.7JT6AQCP.js +19 -0
  44. package/cdn/chunks/chunk.7MLBWMOJ.js +36 -0
  45. package/cdn/chunks/chunk.7MPGNVYU.js +35 -0
  46. package/cdn/chunks/chunk.7PXFWZDJ.js +19 -0
  47. package/cdn/chunks/chunk.7RCVI6WJ.js +56075 -0
  48. package/cdn/chunks/chunk.7WV7HAWF.js +19 -0
  49. package/cdn/chunks/chunk.AGGCCPSH.js +19 -0
  50. package/cdn/chunks/chunk.AHX4FQI7.js +51 -0
  51. package/cdn/chunks/chunk.AMNA4TAA.js +2549 -0
  52. package/cdn/chunks/chunk.AOETFY2M.js +19 -0
  53. package/cdn/chunks/chunk.ARQZJDEH.js +19 -0
  54. package/cdn/chunks/chunk.AVVORU4X.js +71 -0
  55. package/cdn/chunks/chunk.AW3SAWPB.js +230 -0
  56. package/cdn/chunks/chunk.BFCWKK2C.js +29 -0
  57. package/cdn/chunks/chunk.BKJ6ERUE.js +357 -0
  58. package/cdn/chunks/chunk.BLZA2SIQ.js +93 -0
  59. package/cdn/chunks/chunk.BMXL4HT7.js +101 -0
  60. package/cdn/chunks/chunk.BOJGWMNS.js +29 -0
  61. package/cdn/chunks/chunk.BVOLRNGU.js +303 -0
  62. package/cdn/chunks/chunk.CB73AJLG.js +19 -0
  63. package/cdn/chunks/chunk.CEDRKHZX.js +151 -0
  64. package/cdn/chunks/chunk.CL4GIBSE.js +113 -0
  65. package/cdn/chunks/chunk.CVFVGKVM.js +19 -0
  66. package/cdn/chunks/chunk.CWBIEIJK.js +32 -0
  67. package/cdn/chunks/chunk.DGEJWFS7.js +1259 -0
  68. package/cdn/chunks/chunk.DIK3B6UV.js +19 -0
  69. package/cdn/chunks/chunk.DIL2NPFX.js +49 -0
  70. package/cdn/chunks/chunk.DIZ3M7IG.js +110 -0
  71. package/cdn/chunks/chunk.DJ4K476U.js +19 -0
  72. package/cdn/chunks/chunk.DNDC4SZO.js +19 -0
  73. package/cdn/chunks/chunk.DOOLLPEM.js +150 -0
  74. package/cdn/chunks/chunk.DOUWGQFH.js +205 -0
  75. package/cdn/chunks/chunk.DPDD2WEI.js +19 -0
  76. package/cdn/chunks/chunk.DSOS3HK7.js +1975 -0
  77. package/cdn/chunks/chunk.DXKUTB3C.js +532 -0
  78. package/cdn/chunks/chunk.DZINKXAT.js +29 -0
  79. package/cdn/chunks/chunk.EKPJRKBR.js +19 -0
  80. package/cdn/chunks/chunk.ETPMAULL.js +29 -0
  81. package/cdn/chunks/chunk.EVBV3WY4.js +32 -0
  82. package/cdn/chunks/chunk.EWGXTIX4.js +41 -0
  83. package/cdn/chunks/chunk.F3PALOOP.js +124 -0
  84. package/cdn/chunks/chunk.FAS3EEBJ.js +29 -0
  85. package/cdn/chunks/chunk.FBQK3I4M.js +251 -0
  86. package/cdn/chunks/chunk.FLET4TPZ.js +32 -0
  87. package/cdn/chunks/chunk.FOZE3G5H.js +35 -0
  88. package/cdn/chunks/chunk.FWQRQRE3.js +32 -0
  89. package/cdn/chunks/chunk.FZFVFTPN.js +19 -0
  90. package/cdn/chunks/chunk.GPH5N6EA.js +79 -0
  91. package/cdn/chunks/chunk.GRNVT6IB.js +904 -0
  92. package/cdn/chunks/chunk.GSTZ35MH.js +39 -0
  93. package/cdn/chunks/chunk.H3DQMK3H.js +231 -0
  94. package/cdn/chunks/chunk.H6XYL6LD.js +19 -0
  95. package/cdn/chunks/chunk.HAM7CMN5.js +113 -0
  96. package/cdn/chunks/chunk.HOQC7UVA.js +19 -0
  97. package/cdn/chunks/chunk.HV7H4LBB.js +19 -0
  98. package/cdn/chunks/chunk.I523I6ZG.js +188 -0
  99. package/cdn/chunks/chunk.I6JIT754.js +19 -0
  100. package/cdn/chunks/chunk.IBQPKW5P.js +32 -0
  101. package/cdn/chunks/chunk.IDXRXLIG.js +19 -0
  102. package/cdn/chunks/chunk.IEBDKV46.js +377 -0
  103. package/cdn/chunks/chunk.IEKCUGUX.js +19 -0
  104. package/cdn/chunks/chunk.IF6CIKBS.js +524 -0
  105. package/cdn/chunks/chunk.IP53G3RF.js +29 -0
  106. package/cdn/chunks/chunk.ISAROCA2.js +915 -0
  107. package/cdn/chunks/chunk.IUNH44LM.js +29 -0
  108. package/cdn/chunks/chunk.IXNIA3VB.js +29 -0
  109. package/cdn/chunks/chunk.JA2QGWIW.js +56 -0
  110. package/cdn/chunks/chunk.JDMHH6IO.js +259 -0
  111. package/cdn/chunks/chunk.JIIWMAUE.js +19 -0
  112. package/cdn/chunks/chunk.JIWMFJVP.js +32 -0
  113. package/cdn/chunks/chunk.JKHUQ5GY.js +155 -0
  114. package/cdn/chunks/chunk.JOTZGPFD.js +19 -0
  115. package/cdn/chunks/chunk.JV2PXJOA.js +29 -0
  116. package/cdn/chunks/chunk.K5VOQWFK.js +19 -0
  117. package/cdn/chunks/chunk.KBFYYUJ6.js +32 -0
  118. package/cdn/chunks/chunk.KGVKWL76.js +477 -0
  119. package/cdn/chunks/chunk.KNN4GZZO.js +32 -0
  120. package/cdn/chunks/chunk.KNUKVURG.js +196 -0
  121. package/cdn/chunks/chunk.KQZCVDQH.js +9741 -0
  122. package/cdn/chunks/chunk.KRIZXT7I.js +35 -0
  123. package/cdn/chunks/chunk.LCJRRSFM.js +1194 -0
  124. package/cdn/chunks/chunk.LMYKLZIQ.js +33 -0
  125. package/cdn/chunks/chunk.LWDN6D42.js +29 -0
  126. package/cdn/chunks/chunk.M2BLJNJL.js +19 -0
  127. package/cdn/chunks/chunk.M2DOYPMY.js +33 -0
  128. package/cdn/chunks/chunk.M4MV73BK.js +19 -0
  129. package/cdn/chunks/chunk.M64YYG5S.js +19 -0
  130. package/cdn/chunks/chunk.MQ7JCIXS.js +32 -0
  131. package/cdn/chunks/chunk.MRKMZBEK.js +2263 -0
  132. package/cdn/chunks/chunk.MTD42HQV.js +264 -0
  133. package/cdn/chunks/chunk.N266QSQR.js +443 -0
  134. package/cdn/chunks/chunk.N4NQP75B.js +32 -0
  135. package/cdn/chunks/chunk.N6VIMADT.js +189 -0
  136. package/cdn/chunks/chunk.NBTBBAOL.js +330 -0
  137. package/cdn/chunks/chunk.ND3745YQ.js +94 -0
  138. package/cdn/chunks/chunk.NIVSQ3SF.js +29 -0
  139. package/cdn/chunks/chunk.NLF3KNQ5.js +293 -0
  140. package/cdn/chunks/chunk.NLM5D34M.js +539 -0
  141. package/cdn/chunks/chunk.NO37HFQJ.js +37 -0
  142. package/cdn/chunks/chunk.NSZEZ75L.js +19 -0
  143. package/cdn/chunks/chunk.NVLRS3IA.js +904 -0
  144. package/cdn/chunks/chunk.O3HNLUC3.js +30 -0
  145. package/cdn/chunks/chunk.OBQ6KBVG.js +60 -0
  146. package/cdn/chunks/chunk.OCTYDGLC.js +168 -0
  147. package/cdn/chunks/chunk.OIXADKW2.js +186 -0
  148. package/cdn/chunks/chunk.OLJXKW5X.js +138 -0
  149. package/cdn/chunks/chunk.OMS5TRZR.js +29 -0
  150. package/cdn/chunks/chunk.ONHT57BX.js +136 -0
  151. package/cdn/chunks/chunk.OSJMGCZG.js +294 -0
  152. package/cdn/chunks/chunk.P34Y4ETY.js +84 -0
  153. package/cdn/chunks/chunk.PASXWEFM.js +36 -0
  154. package/cdn/chunks/chunk.PFYXGDRL.js +310 -0
  155. package/cdn/chunks/chunk.PJ5GTKSM.js +99 -0
  156. package/cdn/chunks/chunk.PZVQLCCE.js +19 -0
  157. package/cdn/chunks/chunk.QGCUO4QR.js +599 -0
  158. package/cdn/chunks/chunk.QGWK5PB4.js +63 -0
  159. package/cdn/chunks/chunk.QKOV3OVQ.js +19 -0
  160. package/cdn/chunks/chunk.QMO4Z4QU.js +19 -0
  161. package/cdn/chunks/chunk.QNLRBXNQ.js +60 -0
  162. package/cdn/chunks/chunk.QNVSITGV.js +19 -0
  163. package/cdn/chunks/chunk.QOOBHWQV.js +29 -0
  164. package/cdn/chunks/chunk.QS6LI65N.js +35 -0
  165. package/cdn/chunks/chunk.QSPMY3AQ.js +68 -0
  166. package/cdn/chunks/chunk.QVJPE7XD.js +19 -0
  167. package/cdn/chunks/chunk.R3UOPEYR.js +359 -0
  168. package/cdn/chunks/chunk.RGJJYU5I.js +32 -0
  169. package/cdn/chunks/chunk.RJ5TW75C.js +29 -0
  170. package/cdn/chunks/chunk.ROGKTUCA.js +82 -0
  171. package/cdn/chunks/chunk.RRUUHSSX.js +29 -0
  172. package/cdn/chunks/chunk.S7HWCBS4.js +35 -0
  173. package/cdn/chunks/chunk.SAPVRSGJ.js +19 -0
  174. package/cdn/chunks/chunk.SDPXNKVX.js +34 -0
  175. package/cdn/chunks/chunk.SGPHCDAA.js +123 -0
  176. package/cdn/chunks/chunk.SISTE6BF.js +170 -0
  177. package/cdn/chunks/chunk.SP3MVXEA.js +352 -0
  178. package/cdn/chunks/chunk.SPLYKQYF.js +19 -0
  179. package/cdn/chunks/chunk.SQ6V5DXM.js +19 -0
  180. package/cdn/chunks/chunk.SY2T7H3K.js +32 -0
  181. package/cdn/chunks/chunk.SZHINXEE.js +29 -0
  182. package/cdn/chunks/chunk.SZOYHAOV.js +29 -0
  183. package/cdn/chunks/chunk.T5FZRPK2.js +19 -0
  184. package/cdn/chunks/chunk.TDCWXDQK.js +19 -0
  185. package/cdn/chunks/chunk.TJT7VKHM.js +161 -0
  186. package/cdn/chunks/chunk.TOQAMLRU.js +276 -0
  187. package/cdn/chunks/chunk.U42VEZMH.js +132 -0
  188. package/cdn/chunks/chunk.U4QWGOTS.js +19 -0
  189. package/cdn/chunks/chunk.U7BMUH6D.js +224 -0
  190. package/cdn/chunks/chunk.UCNTZTDC.js +36 -0
  191. package/cdn/chunks/chunk.UKW4BU7Z.js +47 -0
  192. package/cdn/chunks/chunk.ULAP25G3.js +19 -0
  193. package/cdn/chunks/chunk.UME44J4L.js +662 -0
  194. package/cdn/chunks/chunk.UPZ77TIQ.js +83 -0
  195. package/cdn/chunks/chunk.V2QBQWJQ.js +128 -0
  196. package/cdn/chunks/chunk.V3MJPPXF.js +29 -0
  197. package/cdn/chunks/chunk.V5HDIWN4.js +19 -0
  198. package/cdn/chunks/chunk.VBRHXTN4.js +29 -0
  199. package/cdn/chunks/chunk.VJVJBEYQ.js +37 -0
  200. package/cdn/chunks/chunk.VVQS5VDJ.js +19 -0
  201. package/cdn/chunks/chunk.W6PKRHAU.js +19 -0
  202. package/cdn/chunks/chunk.WEUS3VPS.js +190 -0
  203. package/cdn/chunks/chunk.WJ3ZTI3S.js +19 -0
  204. package/cdn/chunks/chunk.WKNLSFIC.js +278 -0
  205. package/cdn/chunks/chunk.WNQ2KJKB.js +19 -0
  206. package/cdn/chunks/chunk.WOEOWJL3.js +19 -0
  207. package/cdn/chunks/chunk.WPE6GJOR.js +29 -0
  208. package/cdn/chunks/chunk.X6LPU3UJ.js +19 -0
  209. package/cdn/chunks/chunk.XBUSGQSQ.js +19 -0
  210. package/cdn/chunks/chunk.XJZ5WJGV.js +36 -0
  211. package/cdn/chunks/chunk.XKLHAMMB.js +29 -0
  212. package/cdn/chunks/chunk.XQ4OAKQQ.js +78 -0
  213. package/cdn/chunks/chunk.XWFCH5SX.js +29 -0
  214. package/cdn/chunks/chunk.XZDQOWQW.js +29 -0
  215. package/cdn/chunks/chunk.Y5PJFEBI.js +616 -0
  216. package/cdn/chunks/chunk.Y7DO5YV2.js +19 -0
  217. package/cdn/chunks/chunk.YAOCNBUP.js +32 -0
  218. package/cdn/chunks/chunk.YHTCAZOV.js +32 -0
  219. package/cdn/chunks/chunk.YLGO2ABC.js +62 -0
  220. package/cdn/chunks/chunk.YQXMPDBV.js +135 -0
  221. package/cdn/chunks/chunk.YY3ZUPZV.js +2954 -0
  222. package/cdn/chunks/chunk.Z6FHPIRA.js +19 -0
  223. package/cdn/chunks/chunk.ZAZAIV4G.js +234 -0
  224. package/cdn/chunks/chunk.ZB3JKUMI.js +74 -0
  225. package/cdn/chunks/chunk.ZDOJF4T4.js +29 -0
  226. package/cdn/chunks/chunk.ZE24JXB2.js +19 -0
  227. package/cdn/chunks/chunk.ZEATXGRS.js +19 -0
  228. package/cdn/chunks/chunk.ZS2NFAQK.js +68 -0
  229. package/cdn/chunks/chunk.ZV52WKIL.js +29 -0
  230. package/cdn/components/accordion/accordion.component.js +5 -5
  231. package/cdn/components/accordion/accordion.js +6 -6
  232. package/cdn/components/alert/alert.component.js +2 -2
  233. package/cdn/components/alert/alert.js +3 -3
  234. package/cdn/components/avatar/avatar.component.js +5 -5
  235. package/cdn/components/avatar/avatar.js +6 -6
  236. package/cdn/components/badge/badge.component.js +2 -2
  237. package/cdn/components/badge/badge.js +3 -3
  238. package/cdn/components/banner/banner.component.d.ts +45 -0
  239. package/cdn/components/banner/banner.component.js +17 -0
  240. package/cdn/components/banner/banner.d.ts +8 -0
  241. package/cdn/components/banner/banner.js +18 -0
  242. package/cdn/components/banner/banner.styles.d.ts +2 -0
  243. package/cdn/components/banner/banner.styles.js +9 -0
  244. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  245. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  246. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  247. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  248. package/cdn/components/browse-variables/browse-variables.component.d.ts +3 -1
  249. package/cdn/components/browse-variables/browse-variables.component.js +25 -21
  250. package/cdn/components/browse-variables/browse-variables.controller.d.ts +10 -10
  251. package/cdn/components/browse-variables/browse-variables.controller.js +8 -6
  252. package/cdn/components/browse-variables/browse-variables.js +26 -22
  253. package/cdn/components/button/button.component.js +5 -5
  254. package/cdn/components/button/button.js +6 -6
  255. package/cdn/components/button-group/button-group.component.js +2 -2
  256. package/cdn/components/button-group/button-group.js +3 -3
  257. package/cdn/components/caption/caption.component.js +2 -2
  258. package/cdn/components/caption/caption.js +3 -3
  259. package/cdn/components/card/card.component.js +2 -2
  260. package/cdn/components/card/card.js +3 -3
  261. package/cdn/components/checkbox/checkbox.component.js +5 -5
  262. package/cdn/components/checkbox/checkbox.js +6 -6
  263. package/cdn/components/chip/chip.component.js +2 -2
  264. package/cdn/components/chip/chip.js +3 -3
  265. package/cdn/components/combobox/combobox.component.js +4 -4
  266. package/cdn/components/combobox/combobox.js +5 -5
  267. package/cdn/components/data-access/data-access.component.js +42 -39
  268. package/cdn/components/data-access/data-access.js +43 -40
  269. package/cdn/components/data-grid/data-grid.component.js +3 -3
  270. package/cdn/components/data-grid/data-grid.js +4 -4
  271. package/cdn/components/data-rods/data-rods.component.js +53 -52
  272. package/cdn/components/data-rods/data-rods.js +54 -53
  273. package/cdn/components/data-subsetter/data-subsetter.component.d.ts +1 -1
  274. package/cdn/components/data-subsetter/data-subsetter.component.js +55 -53
  275. package/cdn/components/data-subsetter/data-subsetter.js +56 -54
  276. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  277. package/cdn/components/data-subsetter-history/data-subsetter-history.component.d.ts +18 -2
  278. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +57 -56
  279. package/cdn/components/data-subsetter-history/data-subsetter-history.js +58 -57
  280. package/cdn/components/date-picker/date-picker.component.d.ts +1 -0
  281. package/cdn/components/date-picker/date-picker.component.js +13 -13
  282. package/cdn/components/date-picker/date-picker.js +14 -14
  283. package/cdn/components/date-picker/date-picker.styles.js +1 -1
  284. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  285. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  286. package/cdn/components/dialog/dialog.component.js +6 -6
  287. package/cdn/components/dialog/dialog.js +7 -7
  288. package/cdn/components/divider/divider.component.js +2 -2
  289. package/cdn/components/divider/divider.js +3 -3
  290. package/cdn/components/dropdown/dropdown.component.js +4 -4
  291. package/cdn/components/dropdown/dropdown.js +5 -5
  292. package/cdn/components/earthdata-login/earthdata-login.component.js +15 -15
  293. package/cdn/components/earthdata-login/earthdata-login.js +16 -16
  294. package/cdn/components/file-upload/file-upload.component.js +2 -2
  295. package/cdn/components/file-upload/file-upload.js +3 -3
  296. package/cdn/components/harmony-history/harmony-history.component.d.ts +7 -1
  297. package/cdn/components/harmony-history/harmony-history.component.js +19 -16
  298. package/cdn/components/harmony-history/harmony-history.js +20 -17
  299. package/cdn/components/icon/icon.component.js +4 -4
  300. package/cdn/components/icon/icon.js +5 -5
  301. package/cdn/components/icon/library.js +2 -2
  302. package/cdn/components/input/input.component.js +5 -5
  303. package/cdn/components/input/input.js +6 -6
  304. package/cdn/components/loader/loader.component.js +2 -2
  305. package/cdn/components/loader/loader.js +3 -3
  306. package/cdn/components/login/login.component.js +13 -13
  307. package/cdn/components/login/login.js +14 -14
  308. package/cdn/components/map/map.component.d.ts +35 -5
  309. package/cdn/components/map/map.component.js +11 -7
  310. package/cdn/components/map/map.js +12 -8
  311. package/cdn/components/map/map.service.d.ts +1 -0
  312. package/cdn/components/map/map.service.js +2 -4
  313. package/cdn/components/menu/menu.component.js +2 -2
  314. package/cdn/components/menu/menu.js +3 -3
  315. package/cdn/components/menu-item/menu-item.component.js +7 -7
  316. package/cdn/components/menu-item/menu-item.js +8 -8
  317. package/cdn/components/option/option.component.d.ts +1 -2
  318. package/cdn/components/option/option.component.js +5 -5
  319. package/cdn/components/option/option.js +6 -6
  320. package/cdn/components/pagination/pagination.component.js +5 -5
  321. package/cdn/components/pagination/pagination.js +6 -6
  322. package/cdn/components/plot/plot.component.js +2 -2
  323. package/cdn/components/plot/plot.js +3 -3
  324. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  325. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  326. package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +3 -1
  327. package/cdn/components/plot-toolbar/plot-toolbar.component.js +33 -22
  328. package/cdn/components/plot-toolbar/plot-toolbar.controller.d.ts +1 -1
  329. package/cdn/components/plot-toolbar/plot-toolbar.controller.js +6 -3
  330. package/cdn/components/plot-toolbar/plot-toolbar.js +34 -23
  331. package/cdn/components/popup/popup.component.js +2 -2
  332. package/cdn/components/popup/popup.js +3 -3
  333. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  334. package/cdn/components/progress-bar/progress-bar.js +3 -3
  335. package/cdn/components/radio/radio.component.js +2 -2
  336. package/cdn/components/radio/radio.js +3 -3
  337. package/cdn/components/radio-group/radio-group.component.js +2 -2
  338. package/cdn/components/radio-group/radio-group.js +3 -3
  339. package/cdn/components/scroll-hint/scroll-hint.component.js +5 -5
  340. package/cdn/components/scroll-hint/scroll-hint.js +6 -6
  341. package/cdn/components/select/select.component.js +7 -7
  342. package/cdn/components/select/select.js +8 -8
  343. package/cdn/components/site-header/site-header.component.js +5 -5
  344. package/cdn/components/site-header/site-header.js +5 -5
  345. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  346. package/cdn/components/site-navigation/site-navigation.js +2 -2
  347. package/cdn/components/skeleton/skeleton.component.js +2 -2
  348. package/cdn/components/skeleton/skeleton.js +3 -3
  349. package/cdn/components/slider/slider.component.js +2 -2
  350. package/cdn/components/slider/slider.js +3 -3
  351. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +4 -0
  352. package/cdn/components/spatial-picker/spatial-picker.component.js +23 -19
  353. package/cdn/components/spatial-picker/spatial-picker.js +24 -20
  354. package/cdn/components/spatial-picker/spatial-picker.service.js +1 -1
  355. package/cdn/components/spatial-picker/spatial-picker.styles.js +1 -1
  356. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  357. package/cdn/components/status-indicator/status-indicator.js +3 -3
  358. package/cdn/components/stepper/stepper.component.js +2 -2
  359. package/cdn/components/stepper/stepper.js +3 -3
  360. package/cdn/components/stepper-step/stepper-step.component.js +5 -5
  361. package/cdn/components/stepper-step/stepper-step.js +6 -6
  362. package/cdn/components/tab/tab.component.js +5 -5
  363. package/cdn/components/tab/tab.js +6 -6
  364. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  365. package/cdn/components/tab-panel/tab-panel.js +3 -3
  366. package/cdn/components/tabs/tabs.component.js +5 -5
  367. package/cdn/components/tabs/tabs.js +6 -6
  368. package/cdn/components/tag/tag.component.js +5 -5
  369. package/cdn/components/tag/tag.js +6 -6
  370. package/cdn/components/textarea/textarea.component.js +2 -2
  371. package/cdn/components/textarea/textarea.js +3 -3
  372. package/cdn/components/time-average-map/time-average-map-cache.service.js +3 -2
  373. package/cdn/components/time-average-map/time-average-map.component.d.ts +2 -1
  374. package/cdn/components/time-average-map/time-average-map.component.js +45 -37
  375. package/cdn/components/time-average-map/time-average-map.controller.js +17 -12
  376. package/cdn/components/time-average-map/time-average-map.js +46 -38
  377. package/cdn/components/time-series/time-series-cache.service.js +3 -2
  378. package/cdn/components/time-series/time-series.component.d.ts +1 -0
  379. package/cdn/components/time-series/time-series.component.js +45 -37
  380. package/cdn/components/time-series/time-series.controller.js +17 -12
  381. package/cdn/components/time-series/time-series.js +46 -38
  382. package/cdn/components/toast/toast.component.js +3 -3
  383. package/cdn/components/toast/toast.js +4 -4
  384. package/cdn/components/toggle/toggle.component.js +2 -2
  385. package/cdn/components/toggle/toggle.js +3 -3
  386. package/cdn/components/tooltip/tooltip.component.js +3 -3
  387. package/cdn/components/tooltip/tooltip.js +4 -4
  388. package/cdn/components/variable-combobox/variable-combobox.component.js +9 -9
  389. package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
  390. package/cdn/components/variable-combobox/variable-combobox.js +10 -10
  391. package/cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts +3 -1
  392. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +17 -15
  393. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.d.ts +7 -5
  394. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +8 -8
  395. package/cdn/components/variable-keyword-search/variable-keyword-search.js +18 -16
  396. package/cdn/controllers/harmony-request.controller.d.ts +2 -2
  397. package/cdn/custom-elements.json +549 -204
  398. package/cdn/events/terra-harmony-job-select.d.ts +1 -1
  399. package/cdn/events/terra-harmony-job-status-update.d.ts +1 -1
  400. package/cdn/events/terra-subset-job-complete.d.ts +1 -1
  401. package/cdn/queries/giovanni.queries.d.ts +5 -0
  402. package/cdn/queries/harmony.queries.d.ts +1 -1
  403. package/cdn/react/accordion/index.js +6 -6
  404. package/cdn/react/alert/index.js +3 -3
  405. package/cdn/react/avatar/index.js +6 -6
  406. package/cdn/react/badge/index.js +3 -3
  407. package/cdn/react/banner/index.d.ts +37 -0
  408. package/cdn/react/banner/index.js +18 -0
  409. package/cdn/react/breadcrumb/index.js +3 -3
  410. package/cdn/react/breadcrumbs/index.js +3 -3
  411. package/cdn/react/browse-variables/index.js +26 -22
  412. package/cdn/react/button/index.js +6 -6
  413. package/cdn/react/button-group/index.js +3 -3
  414. package/cdn/react/caption/index.js +3 -3
  415. package/cdn/react/card/index.js +3 -3
  416. package/cdn/react/checkbox/index.js +6 -6
  417. package/cdn/react/chip/index.js +3 -3
  418. package/cdn/react/combobox/index.js +5 -5
  419. package/cdn/react/data-access/index.js +43 -40
  420. package/cdn/react/data-grid/index.js +4 -4
  421. package/cdn/react/data-rods/index.js +54 -53
  422. package/cdn/react/data-subsetter/index.js +56 -54
  423. package/cdn/react/data-subsetter-history/index.js +58 -57
  424. package/cdn/react/date-picker/index.js +14 -14
  425. package/cdn/react/date-range-slider/index.js +3 -3
  426. package/cdn/react/dialog/index.js +7 -7
  427. package/cdn/react/divider/index.js +3 -3
  428. package/cdn/react/dropdown/index.js +5 -5
  429. package/cdn/react/earthdata-login/index.js +16 -16
  430. package/cdn/react/file-upload/index.js +3 -3
  431. package/cdn/react/harmony-history/index.js +20 -17
  432. package/cdn/react/icon/index.js +5 -5
  433. package/cdn/react/index.d.ts +2 -1
  434. package/cdn/react/index.js +233 -227
  435. package/cdn/react/input/index.js +6 -6
  436. package/cdn/react/loader/index.js +3 -3
  437. package/cdn/react/login/index.js +14 -14
  438. package/cdn/react/map/index.js +12 -8
  439. package/cdn/react/menu/index.js +3 -3
  440. package/cdn/react/menu-item/index.js +8 -8
  441. package/cdn/react/option/index.js +6 -6
  442. package/cdn/react/pagination/index.js +6 -6
  443. package/cdn/react/plot/index.js +3 -3
  444. package/cdn/react/plot-toolbar/index.js +34 -23
  445. package/cdn/react/popup/index.js +3 -3
  446. package/cdn/react/progress-bar/index.js +3 -3
  447. package/cdn/react/radio/index.js +3 -3
  448. package/cdn/react/radio-group/index.js +3 -3
  449. package/cdn/react/scroll-hint/index.js +6 -6
  450. package/cdn/react/select/index.js +8 -8
  451. package/cdn/react/site-header/index.js +6 -6
  452. package/cdn/react/site-navigation/index.js +3 -3
  453. package/cdn/react/skeleton/index.js +3 -3
  454. package/cdn/react/slider/index.js +3 -3
  455. package/cdn/react/spatial-picker/index.js +24 -20
  456. package/cdn/react/status-indicator/index.js +3 -3
  457. package/cdn/react/stepper/index.js +3 -3
  458. package/cdn/react/stepper-step/index.js +6 -6
  459. package/cdn/react/tab/index.js +6 -6
  460. package/cdn/react/tab-panel/index.js +3 -3
  461. package/cdn/react/tabs/index.js +6 -6
  462. package/cdn/react/tag/index.js +6 -6
  463. package/cdn/react/textarea/index.js +3 -3
  464. package/cdn/react/time-average-map/index.js +46 -38
  465. package/cdn/react/time-series/index.js +46 -38
  466. package/cdn/react/toast/index.js +4 -4
  467. package/cdn/react/toggle/index.js +3 -3
  468. package/cdn/react/tooltip/index.js +4 -4
  469. package/cdn/react/variable-combobox/index.js +10 -10
  470. package/cdn/react/variable-keyword-search/index.js +18 -16
  471. package/cdn/terra-ui-components.d.ts +1 -0
  472. package/cdn/terra-ui-components.js +218 -212
  473. package/cdn/themes/horizon.css +2 -0
  474. package/cdn/themes/horizon.styles.js +2 -0
  475. package/cdn/types/vue/index.d.ts +100 -45
  476. package/cdn/utilities/granule.d.ts +9 -0
  477. package/cdn/utilities/granule.js +76 -0
  478. package/cdn/utilities/harmony.d.ts +2 -2
  479. package/cdn/utilities/harmony.js +1 -1
  480. package/cdn/utilities/icon-library.js +2 -2
  481. package/cdn/utilities/variable-task.d.ts +3 -0
  482. package/cdn/utilities/variable-task.js +17 -0
  483. package/cdn/utilities/variable.d.ts +14 -0
  484. package/cdn/utilities/variable.js +9 -0
  485. package/cdn/vscode.html-custom-data.json +85 -44
  486. package/cdn/web-types.json +125 -11
  487. package/dist/apis/cmr.api.d.ts +57 -0
  488. package/dist/apis/giovanni.api.d.ts +69 -0
  489. package/dist/apis/harmony.api.d.ts +43 -1
  490. package/dist/chunks/chunk.22CIXTYL.js +1 -0
  491. package/dist/chunks/chunk.2C5XDN7D.js +1 -0
  492. package/dist/chunks/chunk.2CMQSGWA.js +1 -0
  493. package/dist/chunks/chunk.2P56KD6V.js +30 -0
  494. package/dist/chunks/chunk.32PSE4ED.js +1 -0
  495. package/dist/chunks/chunk.32Q3ZOCQ.js +23 -0
  496. package/dist/chunks/chunk.3EBU6CAW.js +1 -0
  497. package/dist/chunks/chunk.3H2LQJN6.js +1 -0
  498. package/dist/chunks/chunk.3HLTQ7HX.js +1 -0
  499. package/dist/chunks/chunk.3MMWHU5U.js +1 -0
  500. package/dist/chunks/chunk.3QJKE2MF.js +1 -0
  501. package/dist/chunks/chunk.3UXNU45N.js +760 -0
  502. package/dist/chunks/chunk.3WP3ALIU.js +37 -0
  503. package/dist/chunks/chunk.43F6G3ZK.js +12 -0
  504. package/dist/chunks/chunk.4H5N5OG3.js +1 -0
  505. package/dist/chunks/chunk.4RRKAZNG.js +20 -0
  506. package/dist/chunks/chunk.4SC3O3YH.js +38 -0
  507. package/dist/chunks/chunk.4V7RXLNV.js +1 -0
  508. package/dist/chunks/chunk.4WKXDKAW.js +1 -0
  509. package/dist/chunks/chunk.562KL2FJ.js +1 -0
  510. package/dist/chunks/chunk.5HPD5UWA.js +1 -0
  511. package/dist/chunks/chunk.5ILIV3NQ.js +1 -0
  512. package/dist/chunks/chunk.5RTEYDDC.js +157 -0
  513. package/dist/chunks/chunk.5U2M6PEE.js +43 -0
  514. package/dist/chunks/chunk.5ZRIYIRI.js +16 -0
  515. package/dist/chunks/chunk.6EB2RF5I.js +142 -0
  516. package/dist/chunks/chunk.6F7NMZAW.js +62 -0
  517. package/dist/chunks/chunk.6GMWGDEY.js +1 -0
  518. package/dist/chunks/chunk.6HTWAYCH.js +1 -0
  519. package/dist/chunks/chunk.6M6G2OIF.js +1 -0
  520. package/dist/chunks/chunk.6O3FJP5Q.js +1 -0
  521. package/dist/chunks/chunk.6OIWN3F2.js +17 -0
  522. package/dist/chunks/chunk.6W62YNPD.js +1 -0
  523. package/dist/chunks/chunk.76GGCXNA.js +1 -0
  524. package/dist/chunks/chunk.7APHX3ZH.js +1 -0
  525. package/dist/chunks/chunk.7BGQZCUL.js +1 -0
  526. package/dist/chunks/chunk.7BPSSX55.js +1 -0
  527. package/dist/chunks/chunk.7FAIMGF2.js +67 -0
  528. package/dist/chunks/chunk.7JQT5SBQ.js +1 -0
  529. package/dist/chunks/chunk.7UOW7T23.js +43 -0
  530. package/dist/chunks/chunk.7VXAWOX6.js +1 -0
  531. package/dist/chunks/chunk.7W23BUDC.js +1 -0
  532. package/dist/chunks/chunk.A5O23Z5W.js +1 -0
  533. package/dist/chunks/chunk.AE6ATLH4.js +1 -0
  534. package/dist/chunks/chunk.AGJNJSIX.js +84 -0
  535. package/dist/chunks/chunk.AGNTPCJT.js +8 -0
  536. package/dist/chunks/chunk.AHJQP7Q7.js +1 -0
  537. package/dist/chunks/chunk.AIV2TNQA.js +1 -0
  538. package/dist/chunks/chunk.AK3TMJA4.js +1 -0
  539. package/dist/chunks/chunk.AN42W3OJ.js +1 -0
  540. package/dist/chunks/chunk.AQD2424J.js +299 -0
  541. package/dist/chunks/chunk.AUCEIALT.js +51 -0
  542. package/dist/chunks/chunk.BBNJBO5W.js +1 -0
  543. package/dist/chunks/chunk.BF5VMLO3.js +1 -0
  544. package/dist/chunks/chunk.BILLSUHJ.js +1 -0
  545. package/dist/chunks/chunk.BM6R6HEQ.js +1 -0
  546. package/dist/chunks/chunk.BNPSWS2D.js +1 -0
  547. package/dist/chunks/chunk.BQRNRGEV.js +19 -0
  548. package/dist/chunks/chunk.BY4THMCU.js +48 -0
  549. package/dist/chunks/chunk.C7XTVBV4.js +24 -0
  550. package/dist/chunks/chunk.CAP5VI3I.js +26 -0
  551. package/dist/chunks/chunk.CFVWTEFQ.js +1 -0
  552. package/dist/chunks/chunk.CGEXKBKY.js +1 -0
  553. package/dist/chunks/chunk.CHU5HWVC.js +1 -0
  554. package/dist/chunks/chunk.CI5ZXVL3.js +1 -0
  555. package/dist/chunks/chunk.CSYGOUUT.js +1 -0
  556. package/dist/chunks/chunk.CUINTACG.js +1 -0
  557. package/dist/chunks/chunk.CWNAXULL.js +1 -0
  558. package/dist/chunks/chunk.DC5UY4NW.js +127 -0
  559. package/dist/chunks/chunk.DVQKSCHH.js +1 -0
  560. package/dist/chunks/chunk.DWQOSYH7.js +26 -0
  561. package/dist/chunks/chunk.DXCH4OKP.js +1 -0
  562. package/dist/chunks/chunk.DXVAWNEU.js +1 -0
  563. package/dist/chunks/chunk.DYVJMMCX.js +1 -0
  564. package/dist/chunks/chunk.E3MPRUNC.js +1 -0
  565. package/dist/chunks/chunk.EBLTOKUD.js +5 -0
  566. package/dist/chunks/chunk.ECUSDQOM.js +1157 -0
  567. package/dist/chunks/chunk.EEWHJT32.js +636 -0
  568. package/dist/chunks/chunk.EL5HO6Y2.js +1 -0
  569. package/dist/chunks/chunk.EQTA7MZT.js +1 -0
  570. package/dist/chunks/chunk.FSTVJG4P.js +1 -0
  571. package/dist/chunks/chunk.FT4E4NSI.js +1 -0
  572. package/dist/chunks/chunk.FURB3OUK.js +2 -0
  573. package/dist/chunks/chunk.GE7UDDDW.js +1 -0
  574. package/dist/chunks/chunk.GEWIYRNX.js +1 -0
  575. package/dist/chunks/chunk.GKOBMN5D.js +1 -0
  576. package/dist/chunks/chunk.H5F2YRBY.js +1 -0
  577. package/dist/chunks/chunk.HJ26XC3F.js +47 -0
  578. package/dist/chunks/chunk.HJYFD5WB.js +1 -0
  579. package/dist/chunks/chunk.HSWVTMJI.js +1 -0
  580. package/dist/chunks/chunk.I25C5FOV.js +1 -0
  581. package/dist/chunks/chunk.IAGDCBEQ.js +33 -0
  582. package/dist/chunks/chunk.IIXGGLEA.js +30 -0
  583. package/dist/chunks/chunk.IOORP4RS.js +1 -0
  584. package/dist/chunks/chunk.ISMI3XBI.js +1 -0
  585. package/dist/chunks/chunk.IT5QPTVP.js +1 -0
  586. package/dist/chunks/chunk.JBOD6V2U.js +1 -0
  587. package/dist/chunks/chunk.JHHSWIB7.js +1 -0
  588. package/dist/chunks/chunk.JJINVRGW.js +1 -0
  589. package/dist/chunks/chunk.JLNEYZG3.js +1 -0
  590. package/dist/chunks/chunk.JLYBSNCB.js +1 -0
  591. package/dist/chunks/chunk.JPY3XYNM.js +1 -0
  592. package/dist/chunks/chunk.K45JY6QD.js +1 -0
  593. package/dist/chunks/chunk.K63TORTJ.js +1 -0
  594. package/dist/chunks/chunk.K7N3RCYU.js +1 -0
  595. package/dist/chunks/chunk.KBNLCP3J.js +1 -0
  596. package/dist/chunks/chunk.KFVTQUDR.js +569 -0
  597. package/dist/chunks/chunk.KHR3QIOE.js +1 -0
  598. package/dist/chunks/chunk.KJLGXJ27.js +55 -0
  599. package/dist/chunks/chunk.KLYKRIPC.js +1 -0
  600. package/dist/chunks/chunk.KRY24B2Z.js +1 -0
  601. package/dist/chunks/chunk.KUKFHCLU.js +1 -0
  602. package/dist/chunks/chunk.L4WMFOWF.js +133 -0
  603. package/dist/chunks/chunk.LDW2RVIO.js +25 -0
  604. package/dist/chunks/chunk.LENQWYDL.js +1 -0
  605. package/dist/chunks/chunk.LJECEJCF.js +100 -0
  606. package/dist/chunks/chunk.LLYICQ3I.js +1 -0
  607. package/dist/chunks/chunk.LN7UMSEM.js +1 -0
  608. package/dist/chunks/chunk.LQVS46H3.js +1 -0
  609. package/dist/chunks/chunk.M5U2X6R6.js +1 -0
  610. package/dist/chunks/chunk.M63QODDV.js +11 -0
  611. package/dist/chunks/chunk.M6UJ3FOI.js +1 -0
  612. package/dist/chunks/chunk.MCE6B5ZW.js +41 -0
  613. package/dist/chunks/chunk.MESCQ4C7.js +1 -0
  614. package/dist/chunks/chunk.MGDKIKCH.js +1 -0
  615. package/dist/chunks/chunk.MJJLSP6W.js +1 -0
  616. package/dist/chunks/chunk.MPCCWVA7.js +27 -0
  617. package/dist/chunks/chunk.MRK3HXRP.js +74 -0
  618. package/dist/chunks/chunk.N4GC5N32.js +1 -0
  619. package/dist/chunks/chunk.N5RBMU2W.js +99 -0
  620. package/dist/chunks/chunk.N7EKKCYK.js +1 -0
  621. package/dist/chunks/chunk.NCFOXK6X.js +6 -0
  622. package/dist/chunks/chunk.ND3ZOF76.js +1 -0
  623. package/dist/chunks/chunk.NHHZFKJK.js +1 -0
  624. package/dist/chunks/chunk.NLSDPC7C.js +1 -0
  625. package/dist/chunks/chunk.NV5TAHWL.js +22 -0
  626. package/dist/chunks/chunk.O5KBHBML.js +75 -0
  627. package/dist/chunks/chunk.OCUWS6PH.js +11 -0
  628. package/dist/chunks/chunk.OFYUUKSD.js +115 -0
  629. package/dist/chunks/chunk.OH5I5TIC.js +1 -0
  630. package/dist/chunks/chunk.P3W6GEDD.js +1 -0
  631. package/dist/chunks/chunk.P46NR7KP.js +1 -0
  632. package/dist/chunks/chunk.P5SHBTCA.js +1 -0
  633. package/dist/chunks/chunk.P64XGTXA.js +1 -0
  634. package/dist/chunks/chunk.PIW5B5RH.js +1 -0
  635. package/dist/chunks/chunk.PLOCLQY6.js +122 -0
  636. package/dist/chunks/chunk.PQNNBX3K.js +1 -0
  637. package/dist/chunks/chunk.Q5BWORMC.js +14 -0
  638. package/dist/chunks/chunk.Q5JF6TSW.js +4 -0
  639. package/dist/chunks/chunk.QZZOJWMV.js +1 -0
  640. package/dist/chunks/chunk.RDWSNY7N.js +1 -0
  641. package/dist/chunks/chunk.RK65WAF3.js +1 -0
  642. package/dist/chunks/chunk.ROKQWNRH.js +35 -0
  643. package/dist/chunks/chunk.RVWGOPKC.js +12 -0
  644. package/dist/chunks/chunk.S3GIHJIB.js +1 -0
  645. package/dist/chunks/chunk.S4PACNTU.js +1 -0
  646. package/dist/chunks/chunk.SFDXJ74H.js +1 -0
  647. package/dist/chunks/chunk.SG436XSY.js +8 -0
  648. package/dist/chunks/chunk.SISNEJRL.js +1 -0
  649. package/dist/chunks/chunk.SPLNIK3Q.js +80 -0
  650. package/dist/chunks/chunk.SPZQNS4F.js +55 -0
  651. package/dist/chunks/chunk.SW54SUCY.js +1 -0
  652. package/dist/chunks/chunk.T4C6ZHT5.js +1 -0
  653. package/dist/chunks/chunk.TAEUAPKY.js +1 -0
  654. package/dist/chunks/chunk.TE3BRZMM.js +1 -0
  655. package/dist/chunks/chunk.TED4UBE5.js +39 -0
  656. package/dist/chunks/chunk.TGGBDRNU.js +65 -0
  657. package/dist/chunks/chunk.TIRHWRND.js +1 -0
  658. package/dist/chunks/chunk.TIZX7XYL.js +55 -0
  659. package/dist/chunks/chunk.TLUNI5QX.js +1 -0
  660. package/dist/chunks/chunk.TQISK2J3.js +1 -0
  661. package/dist/chunks/chunk.TTU2LE4P.js +1 -0
  662. package/dist/chunks/chunk.UAJ4KR23.js +5 -0
  663. package/dist/chunks/chunk.UFHWNQDN.js +1 -0
  664. package/dist/chunks/chunk.UHM5JVWJ.js +1 -0
  665. package/dist/chunks/chunk.UHOWEE2M.js +64 -0
  666. package/dist/chunks/chunk.UQO7OZ5C.js +9 -0
  667. package/dist/chunks/chunk.URX2EI2V.js +1 -0
  668. package/dist/chunks/chunk.UTOYOGZQ.js +121 -0
  669. package/dist/chunks/chunk.UY74TP7X.js +1 -0
  670. package/dist/chunks/chunk.V37Y676O.js +1 -0
  671. package/dist/chunks/chunk.V42W5H4F.js +280 -0
  672. package/dist/chunks/chunk.V5D2OEV6.js +1 -0
  673. package/dist/chunks/chunk.V5ZQMEUF.js +1 -0
  674. package/dist/chunks/chunk.VH7FO7OJ.js +1 -0
  675. package/dist/chunks/chunk.VIBFLVBI.js +1 -0
  676. package/dist/chunks/chunk.VOCS5Z6H.js +1 -0
  677. package/dist/chunks/chunk.VVQD2RI3.js +145 -0
  678. package/dist/chunks/chunk.VXN5XN4J.js +1 -0
  679. package/dist/chunks/chunk.VYBWO7SD.js +1 -0
  680. package/dist/chunks/chunk.W46EVFAU.js +154 -0
  681. package/dist/chunks/chunk.W5BTJ326.js +1 -0
  682. package/dist/chunks/chunk.WTWOUQNE.js +1 -0
  683. package/dist/chunks/chunk.WUOLVIQC.js +1 -0
  684. package/dist/chunks/chunk.WXOYYBCN.js +1 -0
  685. package/dist/chunks/chunk.WYGP72UK.js +1 -0
  686. package/dist/chunks/chunk.XAH43LI3.js +9 -0
  687. package/dist/chunks/chunk.XAYB3UXJ.js +1 -0
  688. package/dist/chunks/chunk.XDRWOAKY.js +1 -0
  689. package/dist/chunks/chunk.XHSTWWRN.js +1 -0
  690. package/dist/chunks/chunk.XK2LEII7.js +1 -0
  691. package/dist/chunks/chunk.XLBND75X.js +1 -0
  692. package/dist/chunks/chunk.XMUYG2AQ.js +1 -0
  693. package/dist/chunks/chunk.XPVSZK5P.js +1 -0
  694. package/dist/chunks/chunk.XQERKT6Y.js +112 -0
  695. package/dist/chunks/chunk.YEFCZ7WI.js +300 -0
  696. package/dist/chunks/chunk.YF32IUU4.js +1 -0
  697. package/dist/chunks/chunk.YJTTJCFI.js +1 -0
  698. package/dist/chunks/chunk.YKBVW3LG.js +1 -0
  699. package/dist/chunks/chunk.YNFXAAXD.js +1 -0
  700. package/dist/chunks/chunk.YNZYPSXI.js +1 -0
  701. package/dist/chunks/chunk.YOZCHGLE.js +20 -0
  702. package/dist/chunks/chunk.Z44NYM3M.js +1 -0
  703. package/dist/chunks/chunk.ZAJSYEOE.js +1 -0
  704. package/dist/chunks/chunk.ZM7KP737.js +1 -0
  705. package/dist/chunks/chunk.ZNNQHUJM.js +1 -0
  706. package/dist/chunks/chunk.ZPCJ3TPE.js +35 -0
  707. package/dist/chunks/chunk.ZRIJ53YT.js +1 -0
  708. package/dist/chunks/chunk.ZX2ZXGUL.js +1 -0
  709. package/dist/chunks/chunk.ZZXPXWIF.js +1 -0
  710. package/dist/components/accordion/accordion.component.js +1 -1
  711. package/dist/components/accordion/accordion.js +1 -1
  712. package/dist/components/alert/alert.component.js +1 -1
  713. package/dist/components/alert/alert.js +1 -1
  714. package/dist/components/avatar/avatar.component.js +1 -1
  715. package/dist/components/avatar/avatar.js +1 -1
  716. package/dist/components/badge/badge.component.js +1 -1
  717. package/dist/components/badge/badge.js +1 -1
  718. package/dist/components/banner/banner.component.d.ts +45 -0
  719. package/dist/components/banner/banner.component.js +1 -0
  720. package/dist/components/banner/banner.d.ts +8 -0
  721. package/dist/components/banner/banner.js +1 -0
  722. package/dist/components/banner/banner.styles.d.ts +2 -0
  723. package/dist/components/banner/banner.styles.js +1 -0
  724. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  725. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  726. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  727. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  728. package/dist/components/browse-variables/browse-variables.component.d.ts +3 -1
  729. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  730. package/dist/components/browse-variables/browse-variables.controller.d.ts +10 -10
  731. package/dist/components/browse-variables/browse-variables.controller.js +1 -1
  732. package/dist/components/browse-variables/browse-variables.js +1 -1
  733. package/dist/components/button/button.component.js +1 -1
  734. package/dist/components/button/button.js +1 -1
  735. package/dist/components/button-group/button-group.component.js +1 -1
  736. package/dist/components/button-group/button-group.js +1 -1
  737. package/dist/components/caption/caption.component.js +1 -1
  738. package/dist/components/caption/caption.js +1 -1
  739. package/dist/components/card/card.component.js +1 -1
  740. package/dist/components/card/card.js +1 -1
  741. package/dist/components/checkbox/checkbox.component.js +1 -1
  742. package/dist/components/checkbox/checkbox.js +1 -1
  743. package/dist/components/chip/chip.component.js +1 -1
  744. package/dist/components/chip/chip.js +1 -1
  745. package/dist/components/combobox/combobox.component.js +1 -1
  746. package/dist/components/combobox/combobox.js +1 -1
  747. package/dist/components/data-access/data-access.component.js +1 -1
  748. package/dist/components/data-access/data-access.js +1 -1
  749. package/dist/components/data-grid/data-grid.component.js +1 -1
  750. package/dist/components/data-grid/data-grid.js +1 -1
  751. package/dist/components/data-rods/data-rods.component.js +1 -1
  752. package/dist/components/data-rods/data-rods.js +1 -1
  753. package/dist/components/data-subsetter/data-subsetter.component.d.ts +1 -1
  754. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  755. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  756. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  757. package/dist/components/data-subsetter-history/data-subsetter-history.component.d.ts +18 -2
  758. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  759. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  760. package/dist/components/date-picker/date-picker.component.d.ts +1 -0
  761. package/dist/components/date-picker/date-picker.component.js +1 -1
  762. package/dist/components/date-picker/date-picker.js +1 -1
  763. package/dist/components/date-picker/date-picker.styles.js +1 -1
  764. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  765. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  766. package/dist/components/dialog/dialog.component.js +1 -1
  767. package/dist/components/dialog/dialog.js +1 -1
  768. package/dist/components/divider/divider.component.js +1 -1
  769. package/dist/components/divider/divider.js +1 -1
  770. package/dist/components/dropdown/dropdown.component.js +1 -1
  771. package/dist/components/dropdown/dropdown.js +1 -1
  772. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  773. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  774. package/dist/components/file-upload/file-upload.component.js +1 -1
  775. package/dist/components/file-upload/file-upload.js +1 -1
  776. package/dist/components/harmony-history/harmony-history.component.d.ts +7 -1
  777. package/dist/components/harmony-history/harmony-history.component.js +1 -1
  778. package/dist/components/harmony-history/harmony-history.js +1 -1
  779. package/dist/components/icon/icon.component.js +1 -1
  780. package/dist/components/icon/icon.js +1 -1
  781. package/dist/components/icon/library.js +1 -1
  782. package/dist/components/input/input.component.js +1 -1
  783. package/dist/components/input/input.js +1 -1
  784. package/dist/components/loader/loader.component.js +1 -1
  785. package/dist/components/loader/loader.js +1 -1
  786. package/dist/components/login/login.component.js +1 -1
  787. package/dist/components/login/login.js +1 -1
  788. package/dist/components/map/map.component.d.ts +35 -5
  789. package/dist/components/map/map.component.js +1 -1
  790. package/dist/components/map/map.js +1 -1
  791. package/dist/components/map/map.service.d.ts +1 -0
  792. package/dist/components/map/map.service.js +1 -1
  793. package/dist/components/menu/menu.component.js +1 -1
  794. package/dist/components/menu/menu.js +1 -1
  795. package/dist/components/menu-item/menu-item.component.js +1 -1
  796. package/dist/components/menu-item/menu-item.js +1 -1
  797. package/dist/components/option/option.component.d.ts +1 -2
  798. package/dist/components/option/option.component.js +1 -1
  799. package/dist/components/option/option.js +1 -1
  800. package/dist/components/pagination/pagination.component.js +1 -1
  801. package/dist/components/pagination/pagination.js +1 -1
  802. package/dist/components/plot/plot.component.js +1 -1
  803. package/dist/components/plot/plot.js +1 -1
  804. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  805. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  806. package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +3 -1
  807. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  808. package/dist/components/plot-toolbar/plot-toolbar.controller.d.ts +1 -1
  809. package/dist/components/plot-toolbar/plot-toolbar.controller.js +1 -1
  810. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  811. package/dist/components/popup/popup.component.js +1 -1
  812. package/dist/components/popup/popup.js +1 -1
  813. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  814. package/dist/components/progress-bar/progress-bar.js +1 -1
  815. package/dist/components/radio/radio.component.js +1 -1
  816. package/dist/components/radio/radio.js +1 -1
  817. package/dist/components/radio-group/radio-group.component.js +1 -1
  818. package/dist/components/radio-group/radio-group.js +1 -1
  819. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  820. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  821. package/dist/components/select/select.component.js +1 -1
  822. package/dist/components/select/select.js +1 -1
  823. package/dist/components/site-header/site-header.component.js +1 -1
  824. package/dist/components/site-header/site-header.js +1 -1
  825. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  826. package/dist/components/site-navigation/site-navigation.js +1 -1
  827. package/dist/components/skeleton/skeleton.component.js +1 -1
  828. package/dist/components/skeleton/skeleton.js +1 -1
  829. package/dist/components/slider/slider.component.js +1 -1
  830. package/dist/components/slider/slider.js +1 -1
  831. package/dist/components/spatial-picker/spatial-picker.component.d.ts +4 -0
  832. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  833. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  834. package/dist/components/spatial-picker/spatial-picker.service.js +1 -1
  835. package/dist/components/spatial-picker/spatial-picker.styles.js +1 -1
  836. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  837. package/dist/components/status-indicator/status-indicator.js +1 -1
  838. package/dist/components/stepper/stepper.component.js +1 -1
  839. package/dist/components/stepper/stepper.js +1 -1
  840. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  841. package/dist/components/stepper-step/stepper-step.js +1 -1
  842. package/dist/components/tab/tab.component.js +1 -1
  843. package/dist/components/tab/tab.js +1 -1
  844. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  845. package/dist/components/tab-panel/tab-panel.js +1 -1
  846. package/dist/components/tabs/tabs.component.js +1 -1
  847. package/dist/components/tabs/tabs.js +1 -1
  848. package/dist/components/tag/tag.component.js +1 -1
  849. package/dist/components/tag/tag.js +1 -1
  850. package/dist/components/textarea/textarea.component.js +1 -1
  851. package/dist/components/textarea/textarea.js +1 -1
  852. package/dist/components/time-average-map/time-average-map.component.d.ts +2 -1
  853. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  854. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  855. package/dist/components/time-average-map/time-average-map.js +1 -1
  856. package/dist/components/time-series/time-series.component.d.ts +1 -0
  857. package/dist/components/time-series/time-series.component.js +1 -1
  858. package/dist/components/time-series/time-series.controller.js +1 -1
  859. package/dist/components/time-series/time-series.js +1 -1
  860. package/dist/components/toast/toast.component.js +1 -1
  861. package/dist/components/toast/toast.js +1 -1
  862. package/dist/components/toggle/toggle.component.js +1 -1
  863. package/dist/components/toggle/toggle.js +1 -1
  864. package/dist/components/tooltip/tooltip.component.js +1 -1
  865. package/dist/components/tooltip/tooltip.js +1 -1
  866. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  867. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  868. package/dist/components/variable-keyword-search/variable-keyword-search.component.d.ts +3 -1
  869. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  870. package/dist/components/variable-keyword-search/variable-keyword-search.controller.d.ts +7 -5
  871. package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
  872. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  873. package/dist/controllers/harmony-request.controller.d.ts +2 -2
  874. package/dist/custom-elements.json +549 -204
  875. package/dist/events/terra-harmony-job-select.d.ts +1 -1
  876. package/dist/events/terra-harmony-job-status-update.d.ts +1 -1
  877. package/dist/events/terra-subset-job-complete.d.ts +1 -1
  878. package/dist/queries/giovanni.queries.d.ts +5 -0
  879. package/dist/queries/harmony.queries.d.ts +1 -1
  880. package/dist/react/accordion/index.js +1 -1
  881. package/dist/react/alert/index.js +1 -1
  882. package/dist/react/avatar/index.js +1 -1
  883. package/dist/react/badge/index.js +1 -1
  884. package/dist/react/banner/index.d.ts +37 -0
  885. package/dist/react/banner/index.js +1 -0
  886. package/dist/react/breadcrumb/index.js +1 -1
  887. package/dist/react/breadcrumbs/index.js +1 -1
  888. package/dist/react/browse-variables/index.js +1 -1
  889. package/dist/react/button/index.js +1 -1
  890. package/dist/react/button-group/index.js +1 -1
  891. package/dist/react/caption/index.js +1 -1
  892. package/dist/react/card/index.js +1 -1
  893. package/dist/react/checkbox/index.js +1 -1
  894. package/dist/react/chip/index.js +1 -1
  895. package/dist/react/combobox/index.js +1 -1
  896. package/dist/react/data-access/index.js +1 -1
  897. package/dist/react/data-grid/index.js +1 -1
  898. package/dist/react/data-rods/index.js +1 -1
  899. package/dist/react/data-subsetter/index.js +1 -1
  900. package/dist/react/data-subsetter-history/index.js +1 -1
  901. package/dist/react/date-picker/index.js +1 -1
  902. package/dist/react/date-range-slider/index.js +1 -1
  903. package/dist/react/dialog/index.js +1 -1
  904. package/dist/react/divider/index.js +1 -1
  905. package/dist/react/dropdown/index.js +1 -1
  906. package/dist/react/earthdata-login/index.js +1 -1
  907. package/dist/react/file-upload/index.js +1 -1
  908. package/dist/react/harmony-history/index.js +1 -1
  909. package/dist/react/icon/index.js +1 -1
  910. package/dist/react/index.d.ts +2 -1
  911. package/dist/react/index.js +1 -1
  912. package/dist/react/input/index.js +1 -1
  913. package/dist/react/loader/index.js +1 -1
  914. package/dist/react/login/index.js +1 -1
  915. package/dist/react/map/index.js +1 -1
  916. package/dist/react/menu/index.js +1 -1
  917. package/dist/react/menu-item/index.js +1 -1
  918. package/dist/react/option/index.js +1 -1
  919. package/dist/react/pagination/index.js +1 -1
  920. package/dist/react/plot/index.js +1 -1
  921. package/dist/react/plot-toolbar/index.js +1 -1
  922. package/dist/react/popup/index.js +1 -1
  923. package/dist/react/progress-bar/index.js +1 -1
  924. package/dist/react/radio/index.js +1 -1
  925. package/dist/react/radio-group/index.js +1 -1
  926. package/dist/react/scroll-hint/index.js +1 -1
  927. package/dist/react/select/index.js +1 -1
  928. package/dist/react/site-header/index.js +1 -1
  929. package/dist/react/site-navigation/index.js +1 -1
  930. package/dist/react/skeleton/index.js +1 -1
  931. package/dist/react/slider/index.js +1 -1
  932. package/dist/react/spatial-picker/index.js +1 -1
  933. package/dist/react/status-indicator/index.js +1 -1
  934. package/dist/react/stepper/index.js +1 -1
  935. package/dist/react/stepper-step/index.js +1 -1
  936. package/dist/react/tab/index.js +1 -1
  937. package/dist/react/tab-panel/index.js +1 -1
  938. package/dist/react/tabs/index.js +1 -1
  939. package/dist/react/tag/index.js +1 -1
  940. package/dist/react/textarea/index.js +1 -1
  941. package/dist/react/time-average-map/index.js +1 -1
  942. package/dist/react/time-series/index.js +1 -1
  943. package/dist/react/toast/index.js +1 -1
  944. package/dist/react/toggle/index.js +1 -1
  945. package/dist/react/tooltip/index.js +1 -1
  946. package/dist/react/variable-combobox/index.js +1 -1
  947. package/dist/react/variable-keyword-search/index.js +1 -1
  948. package/dist/terra-ui-components.d.ts +1 -0
  949. package/dist/terra-ui-components.js +1 -1
  950. package/dist/terra_ui_components-0.0.186-py3-none-any.whl +0 -0
  951. package/dist/terra_ui_components-0.0.186.tar.gz +0 -0
  952. package/dist/themes/horizon.css +2 -0
  953. package/dist/themes/horizon.styles.js +2 -0
  954. package/dist/types/vue/index.d.ts +100 -45
  955. package/dist/utilities/granule.d.ts +9 -0
  956. package/dist/utilities/granule.js +1 -0
  957. package/dist/utilities/harmony.d.ts +2 -2
  958. package/dist/utilities/harmony.js +1 -1
  959. package/dist/utilities/icon-library.js +1 -1
  960. package/dist/utilities/variable-task.d.ts +3 -0
  961. package/dist/utilities/variable-task.js +1 -0
  962. package/dist/utilities/variable.d.ts +14 -0
  963. package/dist/utilities/variable.js +1 -0
  964. package/dist/vscode.html-custom-data.json +85 -44
  965. package/dist/web-types.json +125 -11
  966. package/package.json +3 -8
  967. package/cdn/chunks/chunk.22LT6COH.js +0 -34
  968. package/cdn/chunks/chunk.2GRVLRSC.js +0 -19
  969. package/cdn/chunks/chunk.2LHISEOA.js +0 -47
  970. package/cdn/chunks/chunk.2QZZ46F3.js +0 -29
  971. package/cdn/chunks/chunk.2S2I3XCJ.js +0 -635
  972. package/cdn/chunks/chunk.2V35JYFN.js +0 -41
  973. package/cdn/chunks/chunk.35AD2CDN.js +0 -19
  974. package/cdn/chunks/chunk.35MV26JZ.js +0 -131
  975. package/cdn/chunks/chunk.3763BVHT.js +0 -126
  976. package/cdn/chunks/chunk.3C6QCU6U.js +0 -56
  977. package/cdn/chunks/chunk.3E2SL7RN.js +0 -1184
  978. package/cdn/chunks/chunk.3HYQKD57.js +0 -189
  979. package/cdn/chunks/chunk.3JJBO6FW.js +0 -2244
  980. package/cdn/chunks/chunk.3PPDPECP.js +0 -52
  981. package/cdn/chunks/chunk.3TKV2VNC.js +0 -161
  982. package/cdn/chunks/chunk.3V6EN4OM.js +0 -443
  983. package/cdn/chunks/chunk.3WKRVLJ5.js +0 -19
  984. package/cdn/chunks/chunk.42ARK56A.js +0 -99
  985. package/cdn/chunks/chunk.432XUQVD.js +0 -117
  986. package/cdn/chunks/chunk.43FFRY42.js +0 -234
  987. package/cdn/chunks/chunk.44DX6OAN.js +0 -29
  988. package/cdn/chunks/chunk.4F4HJ5A7.js +0 -34
  989. package/cdn/chunks/chunk.4J575NT4.js +0 -610
  990. package/cdn/chunks/chunk.4MKO4IGH.js +0 -29
  991. package/cdn/chunks/chunk.4O65EAOB.js +0 -29
  992. package/cdn/chunks/chunk.4OES2KV3.js +0 -19
  993. package/cdn/chunks/chunk.4TE4MF4A.js +0 -19
  994. package/cdn/chunks/chunk.4WSZPRJM.js +0 -19
  995. package/cdn/chunks/chunk.5BUNWFSY.js +0 -19
  996. package/cdn/chunks/chunk.5G4KOAI3.js +0 -231
  997. package/cdn/chunks/chunk.5J5Y5ZLF.js +0 -259
  998. package/cdn/chunks/chunk.5J6WBPH6.js +0 -19
  999. package/cdn/chunks/chunk.5RYU3UV7.js +0 -33
  1000. package/cdn/chunks/chunk.6336WF3H.js +0 -29
  1001. package/cdn/chunks/chunk.66Q2NVUN.js +0 -19
  1002. package/cdn/chunks/chunk.6BGTXGAW.js +0 -166
  1003. package/cdn/chunks/chunk.6D6OXBJ6.js +0 -19
  1004. package/cdn/chunks/chunk.6FVRJALX.js +0 -472
  1005. package/cdn/chunks/chunk.6IRSVCPB.js +0 -19
  1006. package/cdn/chunks/chunk.6JL6ASL2.js +0 -19
  1007. package/cdn/chunks/chunk.6SFTEJ5X.js +0 -538
  1008. package/cdn/chunks/chunk.6VBQ6DIS.js +0 -49
  1009. package/cdn/chunks/chunk.6YSQEMYC.js +0 -19
  1010. package/cdn/chunks/chunk.7BUCOVPU.js +0 -19
  1011. package/cdn/chunks/chunk.7DYV7ZXX.js +0 -84
  1012. package/cdn/chunks/chunk.7FXHQFAL.js +0 -29
  1013. package/cdn/chunks/chunk.7OMDV4CF.js +0 -78
  1014. package/cdn/chunks/chunk.7OX4MXYA.js +0 -599
  1015. package/cdn/chunks/chunk.A7U3VSOK.js +0 -33
  1016. package/cdn/chunks/chunk.AI2VUHJQ.js +0 -19
  1017. package/cdn/chunks/chunk.ANHGJUIK.js +0 -473
  1018. package/cdn/chunks/chunk.ATNJTN2X.js +0 -545
  1019. package/cdn/chunks/chunk.AXHGJXN6.js +0 -113
  1020. package/cdn/chunks/chunk.BK6Q6XQE.js +0 -104
  1021. package/cdn/chunks/chunk.BLTFCOSS.js +0 -134
  1022. package/cdn/chunks/chunk.BQSDMUHJ.js +0 -68
  1023. package/cdn/chunks/chunk.BXCFRSAN.js +0 -35
  1024. package/cdn/chunks/chunk.C6RWDFVD.js +0 -32
  1025. package/cdn/chunks/chunk.CAQYLWVS.js +0 -658
  1026. package/cdn/chunks/chunk.CBOFTDWB.js +0 -37
  1027. package/cdn/chunks/chunk.CCTMEJ4D.js +0 -74
  1028. package/cdn/chunks/chunk.CL4YTQVS.js +0 -83
  1029. package/cdn/chunks/chunk.CQMTCOUV.js +0 -19
  1030. package/cdn/chunks/chunk.D3GHWMWU.js +0 -19
  1031. package/cdn/chunks/chunk.D4C4IM6K.js +0 -662
  1032. package/cdn/chunks/chunk.D4DK5LYG.js +0 -32
  1033. package/cdn/chunks/chunk.D5KRNDKE.js +0 -19
  1034. package/cdn/chunks/chunk.D5L3JZWD.js +0 -33
  1035. package/cdn/chunks/chunk.D7OABSQK.js +0 -29
  1036. package/cdn/chunks/chunk.DE7U5V42.js +0 -1214
  1037. package/cdn/chunks/chunk.DMGQI7DD.js +0 -92
  1038. package/cdn/chunks/chunk.DOIW32NL.js +0 -19
  1039. package/cdn/chunks/chunk.DUQMPQMA.js +0 -19
  1040. package/cdn/chunks/chunk.E3T7QPCE.js +0 -130
  1041. package/cdn/chunks/chunk.EG3YMAIL.js +0 -331
  1042. package/cdn/chunks/chunk.EHU3RZOC.js +0 -320
  1043. package/cdn/chunks/chunk.EIMP4KCQ.js +0 -62
  1044. package/cdn/chunks/chunk.EMAWDOXL.js +0 -19
  1045. package/cdn/chunks/chunk.EMSIZGHV.js +0 -19
  1046. package/cdn/chunks/chunk.ENUVPDOO.js +0 -19
  1047. package/cdn/chunks/chunk.EPA6C46H.js +0 -136
  1048. package/cdn/chunks/chunk.EZZBWIB3.js +0 -71
  1049. package/cdn/chunks/chunk.FA6GXTI7.js +0 -39
  1050. package/cdn/chunks/chunk.FDKQ22KF.js +0 -19
  1051. package/cdn/chunks/chunk.FHTFHSX5.js +0 -32
  1052. package/cdn/chunks/chunk.FNIFXVCT.js +0 -34
  1053. package/cdn/chunks/chunk.FNLDWEWY.js +0 -514
  1054. package/cdn/chunks/chunk.FS5XRRQU.js +0 -278
  1055. package/cdn/chunks/chunk.FT6BZBUE.js +0 -19
  1056. package/cdn/chunks/chunk.FTF726GJ.js +0 -32
  1057. package/cdn/chunks/chunk.FXVAKRPX.js +0 -36
  1058. package/cdn/chunks/chunk.GNEQE62R.js +0 -19
  1059. package/cdn/chunks/chunk.GPXJ4VCJ.js +0 -293
  1060. package/cdn/chunks/chunk.GZ46PW46.js +0 -113
  1061. package/cdn/chunks/chunk.H4MDCDCD.js +0 -60
  1062. package/cdn/chunks/chunk.HBPMF4JP.js +0 -19
  1063. package/cdn/chunks/chunk.HDCQZTLK.js +0 -524
  1064. package/cdn/chunks/chunk.HG5BAADY.js +0 -19
  1065. package/cdn/chunks/chunk.HJS7GK65.js +0 -155
  1066. package/cdn/chunks/chunk.HQYCAP7W.js +0 -19
  1067. package/cdn/chunks/chunk.HT76RT7W.js +0 -32
  1068. package/cdn/chunks/chunk.I7J2VM52.js +0 -19
  1069. package/cdn/chunks/chunk.IJD7AFSF.js +0 -30
  1070. package/cdn/chunks/chunk.IYR6JMSC.js +0 -123
  1071. package/cdn/chunks/chunk.J6XFJPEW.js +0 -32
  1072. package/cdn/chunks/chunk.JG3RGDG5.js +0 -19
  1073. package/cdn/chunks/chunk.JRWDO7PO.js +0 -19
  1074. package/cdn/chunks/chunk.JW5FA2XE.js +0 -32
  1075. package/cdn/chunks/chunk.K7DZU7FV.js +0 -29
  1076. package/cdn/chunks/chunk.KBMKLV33.js +0 -19
  1077. package/cdn/chunks/chunk.KBTX3CXP.js +0 -19
  1078. package/cdn/chunks/chunk.KCU2575L.js +0 -19
  1079. package/cdn/chunks/chunk.KH2VKKXM.js +0 -36
  1080. package/cdn/chunks/chunk.KHUCVPWU.js +0 -29
  1081. package/cdn/chunks/chunk.KQ5NUFFV.js +0 -36
  1082. package/cdn/chunks/chunk.KWJKQ4MK.js +0 -132
  1083. package/cdn/chunks/chunk.L5456NBJ.js +0 -1975
  1084. package/cdn/chunks/chunk.L6YLJCJY.js +0 -37
  1085. package/cdn/chunks/chunk.LCG37ZDT.js +0 -19
  1086. package/cdn/chunks/chunk.LILBVUPM.js +0 -19
  1087. package/cdn/chunks/chunk.M2YNMUJJ.js +0 -19
  1088. package/cdn/chunks/chunk.M667XLCW.js +0 -19
  1089. package/cdn/chunks/chunk.MANUYQOA.js +0 -19
  1090. package/cdn/chunks/chunk.MAWNA2JK.js +0 -19
  1091. package/cdn/chunks/chunk.MRSUUJHL.js +0 -35
  1092. package/cdn/chunks/chunk.MVC5FVKI.js +0 -9744
  1093. package/cdn/chunks/chunk.MX4TZJM7.js +0 -86
  1094. package/cdn/chunks/chunk.N2LTE4U4.js +0 -230
  1095. package/cdn/chunks/chunk.N4WZUEQD.js +0 -205
  1096. package/cdn/chunks/chunk.NB6CKW4R.js +0 -19
  1097. package/cdn/chunks/chunk.NEHA676U.js +0 -29
  1098. package/cdn/chunks/chunk.NLDGLHEK.js +0 -616
  1099. package/cdn/chunks/chunk.NPSYECQN.js +0 -29
  1100. package/cdn/chunks/chunk.OASSNJ6P.js +0 -33
  1101. package/cdn/chunks/chunk.OBSVODAF.js +0 -56075
  1102. package/cdn/chunks/chunk.ODIU7SOE.js +0 -285
  1103. package/cdn/chunks/chunk.ODVFKHL7.js +0 -35
  1104. package/cdn/chunks/chunk.OG5INH2U.js +0 -29
  1105. package/cdn/chunks/chunk.OIHLXX5K.js +0 -276
  1106. package/cdn/chunks/chunk.OKO3NSOS.js +0 -915
  1107. package/cdn/chunks/chunk.OLDACXCU.js +0 -310
  1108. package/cdn/chunks/chunk.OSPYVBB5.js +0 -493
  1109. package/cdn/chunks/chunk.P3JFMQNF.js +0 -165
  1110. package/cdn/chunks/chunk.P6F2PPII.js +0 -29
  1111. package/cdn/chunks/chunk.PEFQOTA5.js +0 -264
  1112. package/cdn/chunks/chunk.PESLTK33.js +0 -32
  1113. package/cdn/chunks/chunk.PLFAC42P.js +0 -19
  1114. package/cdn/chunks/chunk.POUXQ26U.js +0 -29
  1115. package/cdn/chunks/chunk.PPTVNK7X.js +0 -29
  1116. package/cdn/chunks/chunk.PUV4OUWQ.js +0 -29
  1117. package/cdn/chunks/chunk.PX4HV57O.js +0 -35
  1118. package/cdn/chunks/chunk.Q7GVA2PG.js +0 -19
  1119. package/cdn/chunks/chunk.QE2OCJIH.js +0 -32
  1120. package/cdn/chunks/chunk.QETEOHFG.js +0 -10
  1121. package/cdn/chunks/chunk.QKKAIJRP.js +0 -3451
  1122. package/cdn/chunks/chunk.QOKST2SX.js +0 -19
  1123. package/cdn/chunks/chunk.QOSLAEB3.js +0 -16977
  1124. package/cdn/chunks/chunk.QOWX45CN.js +0 -19
  1125. package/cdn/chunks/chunk.QZTOSPTJ.js +0 -32
  1126. package/cdn/chunks/chunk.R3X5JDVZ.js +0 -357
  1127. package/cdn/chunks/chunk.R6CUVVQL.js +0 -190
  1128. package/cdn/chunks/chunk.R7VXHRGD.js +0 -151
  1129. package/cdn/chunks/chunk.RISDH34C.js +0 -350
  1130. package/cdn/chunks/chunk.RIX7X2OX.js +0 -166
  1131. package/cdn/chunks/chunk.RLFUTFJ4.js +0 -29
  1132. package/cdn/chunks/chunk.RMQ24UBZ.js +0 -106
  1133. package/cdn/chunks/chunk.RNCH6WDC.js +0 -19
  1134. package/cdn/chunks/chunk.RV6U2G5D.js +0 -99
  1135. package/cdn/chunks/chunk.RZ644Q2W.js +0 -359
  1136. package/cdn/chunks/chunk.S3NVOH7F.js +0 -29
  1137. package/cdn/chunks/chunk.S3TXURJD.js +0 -32
  1138. package/cdn/chunks/chunk.S53YZHJA.js +0 -19
  1139. package/cdn/chunks/chunk.SFDWPKYT.js +0 -82
  1140. package/cdn/chunks/chunk.SKQPRMDQ.js +0 -19
  1141. package/cdn/chunks/chunk.STKP5PKY.js +0 -19
  1142. package/cdn/chunks/chunk.SWCI6YGF.js +0 -372
  1143. package/cdn/chunks/chunk.T43D432O.js +0 -29
  1144. package/cdn/chunks/chunk.T4KQWNZK.js +0 -19
  1145. package/cdn/chunks/chunk.T4MYODYK.js +0 -904
  1146. package/cdn/chunks/chunk.THHJKTJA.js +0 -188
  1147. package/cdn/chunks/chunk.TIFDCCNS.js +0 -29
  1148. package/cdn/chunks/chunk.TPAT4NM6.js +0 -19
  1149. package/cdn/chunks/chunk.TPT5PMGR.js +0 -36
  1150. package/cdn/chunks/chunk.TVG462GJ.js +0 -288
  1151. package/cdn/chunks/chunk.TY6U3C2A.js +0 -2549
  1152. package/cdn/chunks/chunk.U2YZZUPR.js +0 -29
  1153. package/cdn/chunks/chunk.UEPMVPYW.js +0 -19
  1154. package/cdn/chunks/chunk.UGVFOKIV.js +0 -19
  1155. package/cdn/chunks/chunk.UPLGFPL4.js +0 -29
  1156. package/cdn/chunks/chunk.V2DYKY2V.js +0 -29
  1157. package/cdn/chunks/chunk.V5RKTWNW.js +0 -29
  1158. package/cdn/chunks/chunk.V7DDEJ6Z.js +0 -29
  1159. package/cdn/chunks/chunk.VGF42SWJ.js +0 -19
  1160. package/cdn/chunks/chunk.VKTTODVZ.js +0 -29
  1161. package/cdn/chunks/chunk.VRPQZ3F7.js +0 -29
  1162. package/cdn/chunks/chunk.WF7MTEF2.js +0 -393
  1163. package/cdn/chunks/chunk.WFSXAREE.js +0 -51
  1164. package/cdn/chunks/chunk.WGUMQUK5.js +0 -477
  1165. package/cdn/chunks/chunk.WH7FLOGM.js +0 -19
  1166. package/cdn/chunks/chunk.WKG3OLPZ.js +0 -32
  1167. package/cdn/chunks/chunk.WUPUA66M.js +0 -29
  1168. package/cdn/chunks/chunk.WZZQLBPW.js +0 -161
  1169. package/cdn/chunks/chunk.X5BHARB5.js +0 -899
  1170. package/cdn/chunks/chunk.XFQ63LNH.js +0 -99
  1171. package/cdn/chunks/chunk.XGXRQAUB.js +0 -32
  1172. package/cdn/chunks/chunk.XKVYU4NA.js +0 -19
  1173. package/cdn/chunks/chunk.XLVPPFFF.js +0 -19
  1174. package/cdn/chunks/chunk.XO6CNPBZ.js +0 -238
  1175. package/cdn/chunks/chunk.XQBC4GS2.js +0 -60
  1176. package/cdn/chunks/chunk.XTAI6SKQ.js +0 -29
  1177. package/cdn/chunks/chunk.XTS6MTKD.js +0 -29
  1178. package/cdn/chunks/chunk.XWJEM5G5.js +0 -224
  1179. package/cdn/chunks/chunk.Y4DVU7OI.js +0 -316
  1180. package/cdn/chunks/chunk.Y7ANHGVY.js +0 -19
  1181. package/cdn/chunks/chunk.YKJ3JAVX.js +0 -201
  1182. package/cdn/chunks/chunk.YQULSS3R.js +0 -29
  1183. package/cdn/chunks/chunk.YVBONXP2.js +0 -93
  1184. package/cdn/chunks/chunk.ZD22ARI7.js +0 -33
  1185. package/cdn/chunks/chunk.ZEJU5BVS.js +0 -19
  1186. package/cdn/chunks/chunk.ZF4M2V6F.js +0 -32
  1187. package/cdn/chunks/chunk.ZI6E32VF.js +0 -19
  1188. package/cdn/chunks/chunk.ZU22V7I6.js +0 -19
  1189. package/cdn/components/data-subsetter-history/data-subsetter-history.controller.d.ts +0 -14
  1190. package/cdn/components/data-subsetter-history/data-subsetter-history.controller.js +0 -11
  1191. package/cdn/components/map/map.controller.d.ts +0 -8
  1192. package/cdn/components/map/map.controller.js +0 -9
  1193. package/cdn/data-services/harmony-data-service.d.ts +0 -16
  1194. package/cdn/data-services/queries.d.ts +0 -4
  1195. package/cdn/data-services/types.d.ts +0 -134
  1196. package/cdn/geojson/giovanni-geojson.d.ts +0 -5
  1197. package/cdn/geojson/queries.d.ts +0 -2
  1198. package/cdn/geojson/types.d.ts +0 -73
  1199. package/cdn/lib/graphql-client.d.ts +0 -3
  1200. package/cdn/lib/localforage.d.ts +0 -5
  1201. package/cdn/metadata-catalog/cmr-catalog.d.ts +0 -10
  1202. package/cdn/metadata-catalog/giovanni-variable-catalog.d.ts +0 -8
  1203. package/cdn/metadata-catalog/queries.d.ts +0 -8
  1204. package/cdn/metadata-catalog/tasks.d.ts +0 -3
  1205. package/cdn/metadata-catalog/types.d.ts +0 -240
  1206. package/cdn/metadata-catalog/utilities.d.ts +0 -11
  1207. package/dist/chunks/chunk.22FQQ4YY.js +0 -1
  1208. package/dist/chunks/chunk.2CUBMIQG.js +0 -566
  1209. package/dist/chunks/chunk.2Q42EX3Q.js +0 -35
  1210. package/dist/chunks/chunk.2QTZKXH5.js +0 -64
  1211. package/dist/chunks/chunk.2TFA2RSR.js +0 -1
  1212. package/dist/chunks/chunk.34LMIPEQ.js +0 -300
  1213. package/dist/chunks/chunk.3BXLBGEG.js +0 -1
  1214. package/dist/chunks/chunk.3DRS3Z3L.js +0 -50
  1215. package/dist/chunks/chunk.3ECFRKXK.js +0 -1
  1216. package/dist/chunks/chunk.3GXZWQTS.js +0 -157
  1217. package/dist/chunks/chunk.3H5WH7YN.js +0 -2
  1218. package/dist/chunks/chunk.3OD3UZCL.js +0 -1
  1219. package/dist/chunks/chunk.3UW44MCS.js +0 -1
  1220. package/dist/chunks/chunk.3VZT77TD.js +0 -33
  1221. package/dist/chunks/chunk.3XFHUWYL.js +0 -9
  1222. package/dist/chunks/chunk.3Y6WWRX4.js +0 -1
  1223. package/dist/chunks/chunk.44SDWZCZ.js +0 -39
  1224. package/dist/chunks/chunk.4D26NGSQ.js +0 -122
  1225. package/dist/chunks/chunk.4EJYTIWO.js +0 -1
  1226. package/dist/chunks/chunk.4HE47HVM.js +0 -74
  1227. package/dist/chunks/chunk.4LN5PROB.js +0 -1
  1228. package/dist/chunks/chunk.4QIXWDMB.js +0 -126
  1229. package/dist/chunks/chunk.4U5B4RTN.js +0 -5
  1230. package/dist/chunks/chunk.4V3VFW4N.js +0 -1
  1231. package/dist/chunks/chunk.4VT3FMNZ.js +0 -1
  1232. package/dist/chunks/chunk.54FFPVGC.js +0 -1
  1233. package/dist/chunks/chunk.55KLQIC6.js +0 -1
  1234. package/dist/chunks/chunk.5LQFDTJE.js +0 -1
  1235. package/dist/chunks/chunk.5NXVSCDR.js +0 -1
  1236. package/dist/chunks/chunk.5OQROEG3.js +0 -1
  1237. package/dist/chunks/chunk.5SIVM4DR.js +0 -12
  1238. package/dist/chunks/chunk.5X6PSKC7.js +0 -1
  1239. package/dist/chunks/chunk.6AWVK4HS.js +0 -1
  1240. package/dist/chunks/chunk.6C2QKZAN.js +0 -8
  1241. package/dist/chunks/chunk.6MKLT7FM.js +0 -1
  1242. package/dist/chunks/chunk.6O43LGUM.js +0 -1
  1243. package/dist/chunks/chunk.6TF22YTL.js +0 -30
  1244. package/dist/chunks/chunk.6UGOPLT7.js +0 -1
  1245. package/dist/chunks/chunk.6YVH6ZBP.js +0 -1
  1246. package/dist/chunks/chunk.7BT7S4BE.js +0 -1
  1247. package/dist/chunks/chunk.7F4HGFKT.js +0 -9
  1248. package/dist/chunks/chunk.7FHYMB2P.js +0 -67
  1249. package/dist/chunks/chunk.7KHMJGXA.js +0 -1
  1250. package/dist/chunks/chunk.7PYYJIIS.js +0 -1
  1251. package/dist/chunks/chunk.7URRYPKO.js +0 -1
  1252. package/dist/chunks/chunk.A3BOIUGP.js +0 -121
  1253. package/dist/chunks/chunk.A4D2732N.js +0 -1
  1254. package/dist/chunks/chunk.AAPRNHVF.js +0 -62
  1255. package/dist/chunks/chunk.AJHOLBGE.js +0 -1
  1256. package/dist/chunks/chunk.AJQVNMEA.js +0 -1
  1257. package/dist/chunks/chunk.AVNDVD5T.js +0 -1
  1258. package/dist/chunks/chunk.B3WLQ36X.js +0 -1
  1259. package/dist/chunks/chunk.B6AL2QV5.js +0 -1
  1260. package/dist/chunks/chunk.BC6G7LCX.js +0 -154
  1261. package/dist/chunks/chunk.BQUJORYD.js +0 -1
  1262. package/dist/chunks/chunk.BRC3NVMC.js +0 -1
  1263. package/dist/chunks/chunk.BSDQ2NWC.js +0 -1
  1264. package/dist/chunks/chunk.BVFXU734.js +0 -1
  1265. package/dist/chunks/chunk.C24N444M.js +0 -6
  1266. package/dist/chunks/chunk.C7JZVNL5.js +0 -1
  1267. package/dist/chunks/chunk.CBTEIV4D.js +0 -1
  1268. package/dist/chunks/chunk.CCEMDTRW.js +0 -1
  1269. package/dist/chunks/chunk.CCI5FJGY.js +0 -1
  1270. package/dist/chunks/chunk.CFBZUQ3B.js +0 -1
  1271. package/dist/chunks/chunk.CGP4I3UU.js +0 -1
  1272. package/dist/chunks/chunk.CIB6R7ZP.js +0 -1
  1273. package/dist/chunks/chunk.CQF3R7HN.js +0 -17
  1274. package/dist/chunks/chunk.CSMYE57S.js +0 -1
  1275. package/dist/chunks/chunk.CUW7HOAR.js +0 -1
  1276. package/dist/chunks/chunk.CV5R3PGB.js +0 -20
  1277. package/dist/chunks/chunk.CVPUVXAY.js +0 -1
  1278. package/dist/chunks/chunk.CZ4IXGRE.js +0 -1
  1279. package/dist/chunks/chunk.DBE7JLMZ.js +0 -1
  1280. package/dist/chunks/chunk.DBGUVN23.js +0 -99
  1281. package/dist/chunks/chunk.DC4YGR4V.js +0 -1157
  1282. package/dist/chunks/chunk.DDBKH6HL.js +0 -299
  1283. package/dist/chunks/chunk.DEO6QC24.js +0 -1
  1284. package/dist/chunks/chunk.DNDPZDDF.js +0 -1
  1285. package/dist/chunks/chunk.DO3IERLX.js +0 -1
  1286. package/dist/chunks/chunk.E2JKRFE2.js +0 -1
  1287. package/dist/chunks/chunk.E3W27X5N.js +0 -30
  1288. package/dist/chunks/chunk.E5HTF5P2.js +0 -8
  1289. package/dist/chunks/chunk.ECX76DY6.js +0 -1
  1290. package/dist/chunks/chunk.EMAYNUTK.js +0 -1
  1291. package/dist/chunks/chunk.EQTLPVCI.js +0 -1
  1292. package/dist/chunks/chunk.EVMBPY45.js +0 -1
  1293. package/dist/chunks/chunk.EZI7VJCI.js +0 -1
  1294. package/dist/chunks/chunk.F3L3VRAS.js +0 -24
  1295. package/dist/chunks/chunk.F4OWTB7S.js +0 -1
  1296. package/dist/chunks/chunk.F5CL5H4V.js +0 -1
  1297. package/dist/chunks/chunk.FC4IGO7V.js +0 -1
  1298. package/dist/chunks/chunk.FEZWYWLM.js +0 -1
  1299. package/dist/chunks/chunk.FHQLC6UV.js +0 -1
  1300. package/dist/chunks/chunk.FIHPLWI5.js +0 -1
  1301. package/dist/chunks/chunk.FQVSKIIA.js +0 -140
  1302. package/dist/chunks/chunk.FUWE66F5.js +0 -26
  1303. package/dist/chunks/chunk.FUX5NNHX.js +0 -1
  1304. package/dist/chunks/chunk.G2BEGEW6.js +0 -1
  1305. package/dist/chunks/chunk.GF6R53WT.js +0 -115
  1306. package/dist/chunks/chunk.GJ2MKBPF.js +0 -38
  1307. package/dist/chunks/chunk.GK7MIHAE.js +0 -1
  1308. package/dist/chunks/chunk.GWKSCVNM.js +0 -55
  1309. package/dist/chunks/chunk.GZGJUV5S.js +0 -1
  1310. package/dist/chunks/chunk.H5BTP5K5.js +0 -1
  1311. package/dist/chunks/chunk.HGNAORPM.js +0 -1
  1312. package/dist/chunks/chunk.HPTYFCQ5.js +0 -37
  1313. package/dist/chunks/chunk.I2YMO7SV.js +0 -1
  1314. package/dist/chunks/chunk.I5PUNLDT.js +0 -1
  1315. package/dist/chunks/chunk.I6GN543A.js +0 -1
  1316. package/dist/chunks/chunk.INQKJRS3.js +0 -1
  1317. package/dist/chunks/chunk.IVAJTYHP.js +0 -618
  1318. package/dist/chunks/chunk.IXH63HQ3.js +0 -1
  1319. package/dist/chunks/chunk.JBPRUIZD.js +0 -170
  1320. package/dist/chunks/chunk.JEP5ZAVN.js +0 -1
  1321. package/dist/chunks/chunk.K4WIFYWW.js +0 -1
  1322. package/dist/chunks/chunk.K6XXVUQP.js +0 -1
  1323. package/dist/chunks/chunk.K7UMCNCF.js +0 -114
  1324. package/dist/chunks/chunk.KJTDSGDS.js +0 -55
  1325. package/dist/chunks/chunk.KKXYNJ2C.js +0 -61
  1326. package/dist/chunks/chunk.KLJGWFRC.js +0 -1
  1327. package/dist/chunks/chunk.KMZNUSN7.js +0 -1
  1328. package/dist/chunks/chunk.KP7HWILU.js +0 -14
  1329. package/dist/chunks/chunk.L3C6CRZX.js +0 -11
  1330. package/dist/chunks/chunk.L3CTWYFV.js +0 -1
  1331. package/dist/chunks/chunk.LC26TDLJ.js +0 -35
  1332. package/dist/chunks/chunk.LFPXQXCJ.js +0 -1
  1333. package/dist/chunks/chunk.LKSOHRVH.js +0 -55
  1334. package/dist/chunks/chunk.LMMO7JOM.js +0 -1
  1335. package/dist/chunks/chunk.LPDAW6QT.js +0 -1
  1336. package/dist/chunks/chunk.LXKKJCMC.js +0 -1
  1337. package/dist/chunks/chunk.LYA3Q53V.js +0 -1
  1338. package/dist/chunks/chunk.M74CJF6X.js +0 -1
  1339. package/dist/chunks/chunk.MJOVKAC6.js +0 -1
  1340. package/dist/chunks/chunk.MUGEB7DG.js +0 -1
  1341. package/dist/chunks/chunk.MVBGZGED.js +0 -1
  1342. package/dist/chunks/chunk.NDAM2NI4.js +0 -1
  1343. package/dist/chunks/chunk.NJM6Z4WF.js +0 -25
  1344. package/dist/chunks/chunk.NKSVGLLF.js +0 -1
  1345. package/dist/chunks/chunk.NOXCIISD.js +0 -1
  1346. package/dist/chunks/chunk.NS7QHQXI.js +0 -1
  1347. package/dist/chunks/chunk.NVLOZUDY.js +0 -1
  1348. package/dist/chunks/chunk.NVWDU56S.js +0 -80
  1349. package/dist/chunks/chunk.NYPCSZM2.js +0 -1
  1350. package/dist/chunks/chunk.O2GMJYSL.js +0 -0
  1351. package/dist/chunks/chunk.OMCG6QH4.js +0 -1
  1352. package/dist/chunks/chunk.OXE3I2PF.js +0 -43
  1353. package/dist/chunks/chunk.OZNKCW2W.js +0 -48
  1354. package/dist/chunks/chunk.P2DA6KZN.js +0 -1
  1355. package/dist/chunks/chunk.PDCKA32L.js +0 -145
  1356. package/dist/chunks/chunk.PH44FRCL.js +0 -1
  1357. package/dist/chunks/chunk.PIBJMHXR.js +0 -1
  1358. package/dist/chunks/chunk.PKC6WTWN.js +0 -1
  1359. package/dist/chunks/chunk.PSBO5AN5.js +0 -1
  1360. package/dist/chunks/chunk.PSLXH2SL.js +0 -1
  1361. package/dist/chunks/chunk.PWQQ6ZSC.js +0 -1
  1362. package/dist/chunks/chunk.PZLVWTRK.js +0 -1
  1363. package/dist/chunks/chunk.Q6Y44MV7.js +0 -1
  1364. package/dist/chunks/chunk.QD2JV6OB.js +0 -1
  1365. package/dist/chunks/chunk.QGX4SIGM.js +0 -1
  1366. package/dist/chunks/chunk.QLUAQHGR.js +0 -1
  1367. package/dist/chunks/chunk.QMLZIOGK.js +0 -1
  1368. package/dist/chunks/chunk.R22MT3IA.js +0 -26
  1369. package/dist/chunks/chunk.R3YTSUWO.js +0 -1
  1370. package/dist/chunks/chunk.REPS62ZR.js +0 -43
  1371. package/dist/chunks/chunk.RGDLOPXS.js +0 -100
  1372. package/dist/chunks/chunk.RLOPYMMD.js +0 -1
  1373. package/dist/chunks/chunk.RRGI7HIP.js +0 -1
  1374. package/dist/chunks/chunk.RYXFAYSI.js +0 -1
  1375. package/dist/chunks/chunk.SIJUSDFP.js +0 -1
  1376. package/dist/chunks/chunk.SV525XZT.js +0 -280
  1377. package/dist/chunks/chunk.TANSU4EH.js +0 -1
  1378. package/dist/chunks/chunk.TQDY2KDS.js +0 -1
  1379. package/dist/chunks/chunk.TVNQV43M.js +0 -65
  1380. package/dist/chunks/chunk.TXD22YTC.js +0 -4
  1381. package/dist/chunks/chunk.TXIJOTET.js +0 -1
  1382. package/dist/chunks/chunk.TZU7VZFO.js +0 -1
  1383. package/dist/chunks/chunk.U6BSDUDE.js +0 -1
  1384. package/dist/chunks/chunk.UBYC6JMR.js +0 -1
  1385. package/dist/chunks/chunk.UM535KIO.js +0 -162
  1386. package/dist/chunks/chunk.UPDRLSR7.js +0 -1
  1387. package/dist/chunks/chunk.V2H2F5H2.js +0 -1
  1388. package/dist/chunks/chunk.VKCVK6OP.js +0 -49
  1389. package/dist/chunks/chunk.VVJXEPNA.js +0 -22
  1390. package/dist/chunks/chunk.W4WJDNOC.js +0 -1
  1391. package/dist/chunks/chunk.WB4LNXFP.js +0 -1
  1392. package/dist/chunks/chunk.WDRY5XAH.js +0 -1
  1393. package/dist/chunks/chunk.WG2QPTWD.js +0 -1
  1394. package/dist/chunks/chunk.WGDOHHJO.js +0 -1
  1395. package/dist/chunks/chunk.WK4XHX4L.js +0 -1
  1396. package/dist/chunks/chunk.WMYJTCIL.js +0 -1
  1397. package/dist/chunks/chunk.WN2VWDZX.js +0 -749
  1398. package/dist/chunks/chunk.WNZXTI32.js +0 -1
  1399. package/dist/chunks/chunk.WQEWNESJ.js +0 -1
  1400. package/dist/chunks/chunk.WUTGT6VP.js +0 -20
  1401. package/dist/chunks/chunk.WY22C7CB.js +0 -19
  1402. package/dist/chunks/chunk.WZGKPU2K.js +0 -75
  1403. package/dist/chunks/chunk.X2O57MUT.js +0 -101
  1404. package/dist/chunks/chunk.X7Y4UPIB.js +0 -1
  1405. package/dist/chunks/chunk.XDG7UYOW.js +0 -16
  1406. package/dist/chunks/chunk.XDM7LHQ7.js +0 -1
  1407. package/dist/chunks/chunk.XEEPXJDF.js +0 -1
  1408. package/dist/chunks/chunk.XGK5EE2I.js +0 -1
  1409. package/dist/chunks/chunk.XPQKU5R2.js +0 -1
  1410. package/dist/chunks/chunk.XPZDSM47.js +0 -11
  1411. package/dist/chunks/chunk.XTHJGP3P.js +0 -1
  1412. package/dist/chunks/chunk.Y4B6J6XV.js +0 -12
  1413. package/dist/chunks/chunk.Y4ZTWCKL.js +0 -5
  1414. package/dist/chunks/chunk.YE3MKLSM.js +0 -1
  1415. package/dist/chunks/chunk.YJQZA5VT.js +0 -1
  1416. package/dist/chunks/chunk.YLSJ2DDF.js +0 -47
  1417. package/dist/chunks/chunk.YOT364CM.js +0 -1
  1418. package/dist/chunks/chunk.YPC32TF3.js +0 -23
  1419. package/dist/chunks/chunk.YRGPD4GP.js +0 -1
  1420. package/dist/chunks/chunk.YXCUGTT5.js +0 -1
  1421. package/dist/chunks/chunk.ZG3SVC5J.js +0 -1
  1422. package/dist/chunks/chunk.ZJAXBHGL.js +0 -1
  1423. package/dist/chunks/chunk.ZJPVAF24.js +0 -37
  1424. package/dist/components/data-subsetter-history/data-subsetter-history.controller.d.ts +0 -14
  1425. package/dist/components/data-subsetter-history/data-subsetter-history.controller.js +0 -1
  1426. package/dist/components/map/map.controller.d.ts +0 -8
  1427. package/dist/components/map/map.controller.js +0 -1
  1428. package/dist/data-services/harmony-data-service.d.ts +0 -16
  1429. package/dist/data-services/queries.d.ts +0 -4
  1430. package/dist/data-services/types.d.ts +0 -134
  1431. package/dist/geojson/giovanni-geojson.d.ts +0 -5
  1432. package/dist/geojson/queries.d.ts +0 -2
  1433. package/dist/geojson/types.d.ts +0 -73
  1434. package/dist/lib/graphql-client.d.ts +0 -3
  1435. package/dist/lib/localforage.d.ts +0 -5
  1436. package/dist/metadata-catalog/cmr-catalog.d.ts +0 -10
  1437. package/dist/metadata-catalog/giovanni-variable-catalog.d.ts +0 -8
  1438. package/dist/metadata-catalog/queries.d.ts +0 -8
  1439. package/dist/metadata-catalog/tasks.d.ts +0 -3
  1440. package/dist/metadata-catalog/types.d.ts +0 -240
  1441. package/dist/metadata-catalog/utilities.d.ts +0 -11
  1442. package/dist/terra_ui_components-0.0.184-py3-none-any.whl +0 -0
  1443. package/dist/terra_ui_components-0.0.184.tar.gz +0 -0
  1444. /package/cdn/chunks/{GeoTIFF.WDM5HZIC.js → GeoTIFF.NRJSPXBW.js} +0 -0
@@ -0,0 +1,2954 @@
1
+ import {
2
+ __objRest,
3
+ __privateAdd,
4
+ __privateGet,
5
+ __privateMethod,
6
+ __privateSet,
7
+ __privateWrapper,
8
+ __spreadProps,
9
+ __spreadValues,
10
+ init_buffer,
11
+ init_dirname,
12
+ init_process
13
+ } from "./chunk.ZEOVK2FE.js";
14
+
15
+ // src/controllers/query.controller.ts
16
+ init_dirname();
17
+ init_buffer();
18
+ init_process();
19
+
20
+ // node_modules/@tanstack/query-core/build/modern/index.js
21
+ init_dirname();
22
+ init_buffer();
23
+ init_process();
24
+
25
+ // node_modules/@tanstack/query-core/build/modern/focusManager.js
26
+ init_dirname();
27
+ init_buffer();
28
+ init_process();
29
+
30
+ // node_modules/@tanstack/query-core/build/modern/subscribable.js
31
+ init_dirname();
32
+ init_buffer();
33
+ init_process();
34
+ var Subscribable = class {
35
+ constructor() {
36
+ this.listeners = /* @__PURE__ */ new Set();
37
+ this.subscribe = this.subscribe.bind(this);
38
+ }
39
+ subscribe(listener) {
40
+ this.listeners.add(listener);
41
+ this.onSubscribe();
42
+ return () => {
43
+ this.listeners.delete(listener);
44
+ this.onUnsubscribe();
45
+ };
46
+ }
47
+ hasListeners() {
48
+ return this.listeners.size > 0;
49
+ }
50
+ onSubscribe() {
51
+ }
52
+ onUnsubscribe() {
53
+ }
54
+ };
55
+
56
+ // node_modules/@tanstack/query-core/build/modern/focusManager.js
57
+ var _focused, _cleanup, _setup, _a;
58
+ var FocusManager = (_a = class extends Subscribable {
59
+ constructor() {
60
+ super();
61
+ __privateAdd(this, _focused, void 0);
62
+ __privateAdd(this, _cleanup, void 0);
63
+ __privateAdd(this, _setup, void 0);
64
+ __privateSet(this, _setup, (onFocus) => {
65
+ if (typeof window !== "undefined" && window.addEventListener) {
66
+ const listener = () => onFocus();
67
+ window.addEventListener("visibilitychange", listener, false);
68
+ return () => {
69
+ window.removeEventListener("visibilitychange", listener);
70
+ };
71
+ }
72
+ return;
73
+ });
74
+ }
75
+ onSubscribe() {
76
+ if (!__privateGet(this, _cleanup)) {
77
+ this.setEventListener(__privateGet(this, _setup));
78
+ }
79
+ }
80
+ onUnsubscribe() {
81
+ var _a11;
82
+ if (!this.hasListeners()) {
83
+ (_a11 = __privateGet(this, _cleanup)) == null ? void 0 : _a11.call(this);
84
+ __privateSet(this, _cleanup, void 0);
85
+ }
86
+ }
87
+ setEventListener(setup) {
88
+ var _a11;
89
+ __privateSet(this, _setup, setup);
90
+ (_a11 = __privateGet(this, _cleanup)) == null ? void 0 : _a11.call(this);
91
+ __privateSet(this, _cleanup, setup((focused) => {
92
+ if (typeof focused === "boolean") {
93
+ this.setFocused(focused);
94
+ } else {
95
+ this.onFocus();
96
+ }
97
+ }));
98
+ }
99
+ setFocused(focused) {
100
+ const changed = __privateGet(this, _focused) !== focused;
101
+ if (changed) {
102
+ __privateSet(this, _focused, focused);
103
+ this.onFocus();
104
+ }
105
+ }
106
+ onFocus() {
107
+ const isFocused = this.isFocused();
108
+ this.listeners.forEach((listener) => {
109
+ listener(isFocused);
110
+ });
111
+ }
112
+ isFocused() {
113
+ var _a11;
114
+ if (typeof __privateGet(this, _focused) === "boolean") {
115
+ return __privateGet(this, _focused);
116
+ }
117
+ return ((_a11 = globalThis.document) == null ? void 0 : _a11.visibilityState) !== "hidden";
118
+ }
119
+ }, _focused = new WeakMap(), _cleanup = new WeakMap(), _setup = new WeakMap(), _a);
120
+ var focusManager = new FocusManager();
121
+
122
+ // node_modules/@tanstack/query-core/build/modern/environmentManager.js
123
+ init_dirname();
124
+ init_buffer();
125
+ init_process();
126
+
127
+ // node_modules/@tanstack/query-core/build/modern/utils.js
128
+ init_dirname();
129
+ init_buffer();
130
+ init_process();
131
+
132
+ // node_modules/@tanstack/query-core/build/modern/timeoutManager.js
133
+ init_dirname();
134
+ init_buffer();
135
+ init_process();
136
+ var defaultTimeoutProvider = {
137
+ // We need the wrapper function syntax below instead of direct references to
138
+ // global setTimeout etc.
139
+ //
140
+ // BAD: `setTimeout: setTimeout`
141
+ // GOOD: `setTimeout: (cb, delay) => setTimeout(cb, delay)`
142
+ //
143
+ // If we use direct references here, then anything that wants to spy on or
144
+ // replace the global setTimeout (like tests) won't work since we'll already
145
+ // have a hard reference to the original implementation at the time when this
146
+ // file was imported.
147
+ setTimeout: (callback, delay) => setTimeout(callback, delay),
148
+ clearTimeout: (timeoutId) => clearTimeout(timeoutId),
149
+ setInterval: (callback, delay) => setInterval(callback, delay),
150
+ clearInterval: (intervalId) => clearInterval(intervalId)
151
+ };
152
+ var _provider, _providerCalled, _a2;
153
+ var TimeoutManager = (_a2 = class {
154
+ constructor() {
155
+ // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
156
+ // type at app boot; and if we leave that type, then any new timer provider
157
+ // would need to support the default provider's concrete timer ID, which is
158
+ // infeasible across environments.
159
+ //
160
+ // We settle for type safety for the TimeoutProvider type, and accept that
161
+ // this class is unsafe internally to allow for extension.
162
+ __privateAdd(this, _provider, defaultTimeoutProvider);
163
+ __privateAdd(this, _providerCalled, false);
164
+ }
165
+ setTimeoutProvider(provider) {
166
+ if (false) {
167
+ if (__privateGet(this, _providerCalled) && provider !== __privateGet(this, _provider)) {
168
+ console.error(
169
+ `[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,
170
+ { previous: __privateGet(this, _provider), provider }
171
+ );
172
+ }
173
+ }
174
+ __privateSet(this, _provider, provider);
175
+ if (false) {
176
+ __privateSet(this, _providerCalled, false);
177
+ }
178
+ }
179
+ setTimeout(callback, delay) {
180
+ if (false) {
181
+ __privateSet(this, _providerCalled, true);
182
+ }
183
+ return __privateGet(this, _provider).setTimeout(callback, delay);
184
+ }
185
+ clearTimeout(timeoutId) {
186
+ __privateGet(this, _provider).clearTimeout(timeoutId);
187
+ }
188
+ setInterval(callback, delay) {
189
+ if (false) {
190
+ __privateSet(this, _providerCalled, true);
191
+ }
192
+ return __privateGet(this, _provider).setInterval(callback, delay);
193
+ }
194
+ clearInterval(intervalId) {
195
+ __privateGet(this, _provider).clearInterval(intervalId);
196
+ }
197
+ }, _provider = new WeakMap(), _providerCalled = new WeakMap(), _a2);
198
+ var timeoutManager = new TimeoutManager();
199
+ function systemSetTimeoutZero(callback) {
200
+ setTimeout(callback, 0);
201
+ }
202
+
203
+ // node_modules/@tanstack/query-core/build/modern/utils.js
204
+ var isServer = typeof window === "undefined" || "Deno" in globalThis;
205
+ function noop() {
206
+ }
207
+ function functionalUpdate(updater, input) {
208
+ return typeof updater === "function" ? updater(input) : updater;
209
+ }
210
+ function isValidTimeout(value) {
211
+ return typeof value === "number" && value >= 0 && value !== Infinity;
212
+ }
213
+ function timeUntilStale(updatedAt, staleTime) {
214
+ return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
215
+ }
216
+ function resolveStaleTime(staleTime, query) {
217
+ return typeof staleTime === "function" ? staleTime(query) : staleTime;
218
+ }
219
+ function resolveEnabled(enabled, query) {
220
+ return typeof enabled === "function" ? enabled(query) : enabled;
221
+ }
222
+ function matchQuery(filters, query) {
223
+ const {
224
+ type = "all",
225
+ exact,
226
+ fetchStatus,
227
+ predicate,
228
+ queryKey,
229
+ stale
230
+ } = filters;
231
+ if (queryKey) {
232
+ if (exact) {
233
+ if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
234
+ return false;
235
+ }
236
+ } else if (!partialMatchKey(query.queryKey, queryKey)) {
237
+ return false;
238
+ }
239
+ }
240
+ if (type !== "all") {
241
+ const isActive = query.isActive();
242
+ if (type === "active" && !isActive) {
243
+ return false;
244
+ }
245
+ if (type === "inactive" && isActive) {
246
+ return false;
247
+ }
248
+ }
249
+ if (typeof stale === "boolean" && query.isStale() !== stale) {
250
+ return false;
251
+ }
252
+ if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
253
+ return false;
254
+ }
255
+ if (predicate && !predicate(query)) {
256
+ return false;
257
+ }
258
+ return true;
259
+ }
260
+ function matchMutation(filters, mutation) {
261
+ const { exact, status, predicate, mutationKey } = filters;
262
+ if (mutationKey) {
263
+ if (!mutation.options.mutationKey) {
264
+ return false;
265
+ }
266
+ if (exact) {
267
+ if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
268
+ return false;
269
+ }
270
+ } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
271
+ return false;
272
+ }
273
+ }
274
+ if (status && mutation.state.status !== status) {
275
+ return false;
276
+ }
277
+ if (predicate && !predicate(mutation)) {
278
+ return false;
279
+ }
280
+ return true;
281
+ }
282
+ function hashQueryKeyByOptions(queryKey, options) {
283
+ const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashKey;
284
+ return hashFn(queryKey);
285
+ }
286
+ function hashKey(queryKey) {
287
+ return JSON.stringify(
288
+ queryKey,
289
+ (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
290
+ result[key] = val[key];
291
+ return result;
292
+ }, {}) : val
293
+ );
294
+ }
295
+ function partialMatchKey(a, b) {
296
+ if (a === b) {
297
+ return true;
298
+ }
299
+ if (typeof a !== typeof b) {
300
+ return false;
301
+ }
302
+ if (a && b && typeof a === "object" && typeof b === "object") {
303
+ return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));
304
+ }
305
+ return false;
306
+ }
307
+ var hasOwn = Object.prototype.hasOwnProperty;
308
+ function replaceEqualDeep(a, b, depth = 0) {
309
+ if (a === b) {
310
+ return a;
311
+ }
312
+ if (depth > 500)
313
+ return b;
314
+ const array = isPlainArray(a) && isPlainArray(b);
315
+ if (!array && !(isPlainObject(a) && isPlainObject(b)))
316
+ return b;
317
+ const aItems = array ? a : Object.keys(a);
318
+ const aSize = aItems.length;
319
+ const bItems = array ? b : Object.keys(b);
320
+ const bSize = bItems.length;
321
+ const copy = array ? new Array(bSize) : {};
322
+ let equalItems = 0;
323
+ for (let i = 0; i < bSize; i++) {
324
+ const key = array ? i : bItems[i];
325
+ const aItem = a[key];
326
+ const bItem = b[key];
327
+ if (aItem === bItem) {
328
+ copy[key] = aItem;
329
+ if (array ? i < aSize : hasOwn.call(a, key))
330
+ equalItems++;
331
+ continue;
332
+ }
333
+ if (aItem === null || bItem === null || typeof aItem !== "object" || typeof bItem !== "object") {
334
+ copy[key] = bItem;
335
+ continue;
336
+ }
337
+ const v = replaceEqualDeep(aItem, bItem, depth + 1);
338
+ copy[key] = v;
339
+ if (v === aItem)
340
+ equalItems++;
341
+ }
342
+ return aSize === bSize && equalItems === aSize ? a : copy;
343
+ }
344
+ function shallowEqualObjects(a, b) {
345
+ if (!b || Object.keys(a).length !== Object.keys(b).length) {
346
+ return false;
347
+ }
348
+ for (const key in a) {
349
+ if (a[key] !== b[key]) {
350
+ return false;
351
+ }
352
+ }
353
+ return true;
354
+ }
355
+ function isPlainArray(value) {
356
+ return Array.isArray(value) && value.length === Object.keys(value).length;
357
+ }
358
+ function isPlainObject(o) {
359
+ if (!hasObjectPrototype(o)) {
360
+ return false;
361
+ }
362
+ const ctor = o.constructor;
363
+ if (ctor === void 0) {
364
+ return true;
365
+ }
366
+ const prot = ctor.prototype;
367
+ if (!hasObjectPrototype(prot)) {
368
+ return false;
369
+ }
370
+ if (!prot.hasOwnProperty("isPrototypeOf")) {
371
+ return false;
372
+ }
373
+ if (Object.getPrototypeOf(o) !== Object.prototype) {
374
+ return false;
375
+ }
376
+ return true;
377
+ }
378
+ function hasObjectPrototype(o) {
379
+ return Object.prototype.toString.call(o) === "[object Object]";
380
+ }
381
+ function sleep(timeout) {
382
+ return new Promise((resolve) => {
383
+ timeoutManager.setTimeout(resolve, timeout);
384
+ });
385
+ }
386
+ function replaceData(prevData, data, options) {
387
+ if (typeof options.structuralSharing === "function") {
388
+ return options.structuralSharing(prevData, data);
389
+ } else if (options.structuralSharing !== false) {
390
+ if (false) {
391
+ try {
392
+ return replaceEqualDeep(prevData, data);
393
+ } catch (error) {
394
+ console.error(
395
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`
396
+ );
397
+ throw error;
398
+ }
399
+ }
400
+ return replaceEqualDeep(prevData, data);
401
+ }
402
+ return data;
403
+ }
404
+ function addToEnd(items, item, max = 0) {
405
+ const newItems = [...items, item];
406
+ return max && newItems.length > max ? newItems.slice(1) : newItems;
407
+ }
408
+ function addToStart(items, item, max = 0) {
409
+ const newItems = [item, ...items];
410
+ return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
411
+ }
412
+ var skipToken = /* @__PURE__ */ Symbol();
413
+ function ensureQueryFn(options, fetchOptions) {
414
+ if (false) {
415
+ if (options.queryFn === skipToken) {
416
+ console.error(
417
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
418
+ );
419
+ }
420
+ }
421
+ if (!options.queryFn && (fetchOptions == null ? void 0 : fetchOptions.initialPromise)) {
422
+ return () => fetchOptions.initialPromise;
423
+ }
424
+ if (!options.queryFn || options.queryFn === skipToken) {
425
+ return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
426
+ }
427
+ return options.queryFn;
428
+ }
429
+ function addConsumeAwareSignal(object, getSignal, onCancelled) {
430
+ let consumed = false;
431
+ let signal;
432
+ Object.defineProperty(object, "signal", {
433
+ enumerable: true,
434
+ get: () => {
435
+ signal != null ? signal : signal = getSignal();
436
+ if (consumed) {
437
+ return signal;
438
+ }
439
+ consumed = true;
440
+ if (signal.aborted) {
441
+ onCancelled();
442
+ } else {
443
+ signal.addEventListener("abort", onCancelled, { once: true });
444
+ }
445
+ return signal;
446
+ }
447
+ });
448
+ return object;
449
+ }
450
+
451
+ // node_modules/@tanstack/query-core/build/modern/environmentManager.js
452
+ var environmentManager = /* @__PURE__ */ (() => {
453
+ let isServerFn = () => isServer;
454
+ return {
455
+ /**
456
+ * Returns whether the current runtime should be treated as a server environment.
457
+ */
458
+ isServer() {
459
+ return isServerFn();
460
+ },
461
+ /**
462
+ * Overrides the server check globally.
463
+ */
464
+ setIsServer(isServerValue) {
465
+ isServerFn = isServerValue;
466
+ }
467
+ };
468
+ })();
469
+
470
+ // node_modules/@tanstack/query-core/build/modern/hydration.js
471
+ init_dirname();
472
+ init_buffer();
473
+ init_process();
474
+
475
+ // node_modules/@tanstack/query-core/build/modern/thenable.js
476
+ init_dirname();
477
+ init_buffer();
478
+ init_process();
479
+ function pendingThenable() {
480
+ let resolve;
481
+ let reject;
482
+ const thenable = new Promise((_resolve, _reject) => {
483
+ resolve = _resolve;
484
+ reject = _reject;
485
+ });
486
+ thenable.status = "pending";
487
+ thenable.catch(() => {
488
+ });
489
+ function finalize(data) {
490
+ Object.assign(thenable, data);
491
+ delete thenable.resolve;
492
+ delete thenable.reject;
493
+ }
494
+ thenable.resolve = (value) => {
495
+ finalize({
496
+ status: "fulfilled",
497
+ value
498
+ });
499
+ resolve(value);
500
+ };
501
+ thenable.reject = (reason) => {
502
+ finalize({
503
+ status: "rejected",
504
+ reason
505
+ });
506
+ reject(reason);
507
+ };
508
+ return thenable;
509
+ }
510
+ function tryResolveSync(promise) {
511
+ var _a11;
512
+ let data;
513
+ (_a11 = promise.then((result) => {
514
+ data = result;
515
+ return result;
516
+ }, noop)) == null ? void 0 : _a11.catch(noop);
517
+ if (data !== void 0) {
518
+ return { data };
519
+ }
520
+ return void 0;
521
+ }
522
+
523
+ // node_modules/@tanstack/query-core/build/modern/hydration.js
524
+ function defaultTransformerFn(data) {
525
+ return data;
526
+ }
527
+ function dehydrateMutation(mutation) {
528
+ return __spreadValues(__spreadValues({
529
+ mutationKey: mutation.options.mutationKey,
530
+ state: mutation.state
531
+ }, mutation.options.scope && { scope: mutation.options.scope }), mutation.meta && { meta: mutation.meta });
532
+ }
533
+ function dehydrateQuery(query, serializeData, shouldRedactErrors) {
534
+ const dehydratePromise = () => {
535
+ var _a11;
536
+ const promise = (_a11 = query.promise) == null ? void 0 : _a11.then(serializeData).catch((error) => {
537
+ if (!shouldRedactErrors(error)) {
538
+ return Promise.reject(error);
539
+ }
540
+ if (false) {
541
+ console.error(
542
+ `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
543
+ );
544
+ }
545
+ return Promise.reject(new Error("redacted"));
546
+ });
547
+ promise == null ? void 0 : promise.catch(noop);
548
+ return promise;
549
+ };
550
+ return __spreadValues(__spreadValues({
551
+ dehydratedAt: Date.now(),
552
+ state: __spreadValues(__spreadValues({}, query.state), query.state.data !== void 0 && {
553
+ data: serializeData(query.state.data)
554
+ }),
555
+ queryKey: query.queryKey,
556
+ queryHash: query.queryHash
557
+ }, query.state.status === "pending" && {
558
+ promise: dehydratePromise()
559
+ }), query.meta && { meta: query.meta });
560
+ }
561
+ function defaultShouldDehydrateMutation(mutation) {
562
+ return mutation.state.isPaused;
563
+ }
564
+ function defaultShouldDehydrateQuery(query) {
565
+ return query.state.status === "success";
566
+ }
567
+ function defaultShouldRedactErrors(_) {
568
+ return true;
569
+ }
570
+ function dehydrate(client, options = {}) {
571
+ var _a11, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
572
+ const filterMutation = (_c = (_b2 = options.shouldDehydrateMutation) != null ? _b2 : (_a11 = client.getDefaultOptions().dehydrate) == null ? void 0 : _a11.shouldDehydrateMutation) != null ? _c : defaultShouldDehydrateMutation;
573
+ const mutations = client.getMutationCache().getAll().flatMap(
574
+ (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
575
+ );
576
+ const filterQuery = (_f = (_e = options.shouldDehydrateQuery) != null ? _e : (_d = client.getDefaultOptions().dehydrate) == null ? void 0 : _d.shouldDehydrateQuery) != null ? _f : defaultShouldDehydrateQuery;
577
+ const shouldRedactErrors = (_i = (_h = options.shouldRedactErrors) != null ? _h : (_g = client.getDefaultOptions().dehydrate) == null ? void 0 : _g.shouldRedactErrors) != null ? _i : defaultShouldRedactErrors;
578
+ const serializeData = (_l = (_k = options.serializeData) != null ? _k : (_j = client.getDefaultOptions().dehydrate) == null ? void 0 : _j.serializeData) != null ? _l : defaultTransformerFn;
579
+ const queries = client.getQueryCache().getAll().flatMap(
580
+ (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData, shouldRedactErrors)] : []
581
+ );
582
+ return { mutations, queries };
583
+ }
584
+ function hydrate(client, dehydratedState, options) {
585
+ var _a11, _b2, _c, _d;
586
+ if (typeof dehydratedState !== "object" || dehydratedState === null) {
587
+ return;
588
+ }
589
+ const mutationCache = client.getMutationCache();
590
+ const queryCache = client.getQueryCache();
591
+ const deserializeData = (_d = (_c = (_a11 = options == null ? void 0 : options.defaultOptions) == null ? void 0 : _a11.deserializeData) != null ? _c : (_b2 = client.getDefaultOptions().hydrate) == null ? void 0 : _b2.deserializeData) != null ? _d : defaultTransformerFn;
592
+ const mutations = dehydratedState.mutations || [];
593
+ const queries = dehydratedState.queries || [];
594
+ mutations.forEach((_e) => {
595
+ var _f = _e, { state } = _f, mutationOptions = __objRest(_f, ["state"]);
596
+ var _a12, _b3;
597
+ mutationCache.build(
598
+ client,
599
+ __spreadValues(__spreadValues(__spreadValues({}, (_a12 = client.getDefaultOptions().hydrate) == null ? void 0 : _a12.mutations), (_b3 = options == null ? void 0 : options.defaultOptions) == null ? void 0 : _b3.mutations), mutationOptions),
600
+ state
601
+ );
602
+ });
603
+ queries.forEach(
604
+ ({ queryKey, state, queryHash, meta, promise, dehydratedAt }) => {
605
+ var _b3, _c2;
606
+ const syncData = promise ? tryResolveSync(promise) : void 0;
607
+ const rawData = state.data === void 0 ? syncData == null ? void 0 : syncData.data : state.data;
608
+ const data = rawData === void 0 ? rawData : deserializeData(rawData);
609
+ let query = queryCache.get(queryHash);
610
+ const existingQueryIsPending = (query == null ? void 0 : query.state.status) === "pending";
611
+ const existingQueryIsFetching = (query == null ? void 0 : query.state.fetchStatus) === "fetching";
612
+ if (query) {
613
+ const hasNewerSyncData = syncData && // We only need this undefined check to handle older dehydration
614
+ // payloads that might not have dehydratedAt
615
+ dehydratedAt !== void 0 && dehydratedAt > query.state.dataUpdatedAt;
616
+ if (state.dataUpdatedAt > query.state.dataUpdatedAt || hasNewerSyncData) {
617
+ const _a12 = state, { fetchStatus: _ignored } = _a12, serializedState = __objRest(_a12, ["fetchStatus"]);
618
+ query.setState(__spreadProps(__spreadValues({}, serializedState), {
619
+ data
620
+ }));
621
+ }
622
+ } else {
623
+ query = queryCache.build(
624
+ client,
625
+ __spreadProps(__spreadValues(__spreadValues({}, (_b3 = client.getDefaultOptions().hydrate) == null ? void 0 : _b3.queries), (_c2 = options == null ? void 0 : options.defaultOptions) == null ? void 0 : _c2.queries), {
626
+ queryKey,
627
+ queryHash,
628
+ meta
629
+ }),
630
+ // Reset fetch status to idle to avoid
631
+ // query being stuck in fetching state upon hydration
632
+ __spreadProps(__spreadValues({}, state), {
633
+ data,
634
+ fetchStatus: "idle",
635
+ status: data !== void 0 ? "success" : state.status
636
+ })
637
+ );
638
+ }
639
+ if (promise && !existingQueryIsPending && !existingQueryIsFetching && // Only hydrate if dehydration is newer than any existing data,
640
+ // this is always true for new queries
641
+ (dehydratedAt === void 0 || dehydratedAt > query.state.dataUpdatedAt)) {
642
+ query.fetch(void 0, {
643
+ // RSC transformed promises are not thenable
644
+ initialPromise: Promise.resolve(promise).then(deserializeData)
645
+ }).catch(noop);
646
+ }
647
+ }
648
+ );
649
+ }
650
+
651
+ // node_modules/@tanstack/query-core/build/modern/queryObserver.js
652
+ init_dirname();
653
+ init_buffer();
654
+ init_process();
655
+
656
+ // node_modules/@tanstack/query-core/build/modern/notifyManager.js
657
+ init_dirname();
658
+ init_buffer();
659
+ init_process();
660
+ var defaultScheduler = systemSetTimeoutZero;
661
+ function createNotifyManager() {
662
+ let queue = [];
663
+ let transactions = 0;
664
+ let notifyFn = (callback) => {
665
+ callback();
666
+ };
667
+ let batchNotifyFn = (callback) => {
668
+ callback();
669
+ };
670
+ let scheduleFn = defaultScheduler;
671
+ const schedule = (callback) => {
672
+ if (transactions) {
673
+ queue.push(callback);
674
+ } else {
675
+ scheduleFn(() => {
676
+ notifyFn(callback);
677
+ });
678
+ }
679
+ };
680
+ const flush = () => {
681
+ const originalQueue = queue;
682
+ queue = [];
683
+ if (originalQueue.length) {
684
+ scheduleFn(() => {
685
+ batchNotifyFn(() => {
686
+ originalQueue.forEach((callback) => {
687
+ notifyFn(callback);
688
+ });
689
+ });
690
+ });
691
+ }
692
+ };
693
+ return {
694
+ batch: (callback) => {
695
+ let result;
696
+ transactions++;
697
+ try {
698
+ result = callback();
699
+ } finally {
700
+ transactions--;
701
+ if (!transactions) {
702
+ flush();
703
+ }
704
+ }
705
+ return result;
706
+ },
707
+ /**
708
+ * All calls to the wrapped function will be batched.
709
+ */
710
+ batchCalls: (callback) => {
711
+ return (...args) => {
712
+ schedule(() => {
713
+ callback(...args);
714
+ });
715
+ };
716
+ },
717
+ schedule,
718
+ /**
719
+ * Use this method to set a custom notify function.
720
+ * This can be used to for example wrap notifications with `React.act` while running tests.
721
+ */
722
+ setNotifyFunction: (fn) => {
723
+ notifyFn = fn;
724
+ },
725
+ /**
726
+ * Use this method to set a custom function to batch notifications together into a single tick.
727
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
728
+ */
729
+ setBatchNotifyFunction: (fn) => {
730
+ batchNotifyFn = fn;
731
+ },
732
+ setScheduler: (fn) => {
733
+ scheduleFn = fn;
734
+ }
735
+ };
736
+ }
737
+ var notifyManager = createNotifyManager();
738
+
739
+ // node_modules/@tanstack/query-core/build/modern/query.js
740
+ init_dirname();
741
+ init_buffer();
742
+ init_process();
743
+
744
+ // node_modules/@tanstack/query-core/build/modern/retryer.js
745
+ init_dirname();
746
+ init_buffer();
747
+ init_process();
748
+
749
+ // node_modules/@tanstack/query-core/build/modern/onlineManager.js
750
+ init_dirname();
751
+ init_buffer();
752
+ init_process();
753
+ var _online, _cleanup2, _setup2, _a3;
754
+ var OnlineManager = (_a3 = class extends Subscribable {
755
+ constructor() {
756
+ super();
757
+ __privateAdd(this, _online, true);
758
+ __privateAdd(this, _cleanup2, void 0);
759
+ __privateAdd(this, _setup2, void 0);
760
+ __privateSet(this, _setup2, (onOnline) => {
761
+ if (typeof window !== "undefined" && window.addEventListener) {
762
+ const onlineListener = () => onOnline(true);
763
+ const offlineListener = () => onOnline(false);
764
+ window.addEventListener("online", onlineListener, false);
765
+ window.addEventListener("offline", offlineListener, false);
766
+ return () => {
767
+ window.removeEventListener("online", onlineListener);
768
+ window.removeEventListener("offline", offlineListener);
769
+ };
770
+ }
771
+ return;
772
+ });
773
+ }
774
+ onSubscribe() {
775
+ if (!__privateGet(this, _cleanup2)) {
776
+ this.setEventListener(__privateGet(this, _setup2));
777
+ }
778
+ }
779
+ onUnsubscribe() {
780
+ var _a11;
781
+ if (!this.hasListeners()) {
782
+ (_a11 = __privateGet(this, _cleanup2)) == null ? void 0 : _a11.call(this);
783
+ __privateSet(this, _cleanup2, void 0);
784
+ }
785
+ }
786
+ setEventListener(setup) {
787
+ var _a11;
788
+ __privateSet(this, _setup2, setup);
789
+ (_a11 = __privateGet(this, _cleanup2)) == null ? void 0 : _a11.call(this);
790
+ __privateSet(this, _cleanup2, setup(this.setOnline.bind(this)));
791
+ }
792
+ setOnline(online) {
793
+ const changed = __privateGet(this, _online) !== online;
794
+ if (changed) {
795
+ __privateSet(this, _online, online);
796
+ this.listeners.forEach((listener) => {
797
+ listener(online);
798
+ });
799
+ }
800
+ }
801
+ isOnline() {
802
+ return __privateGet(this, _online);
803
+ }
804
+ }, _online = new WeakMap(), _cleanup2 = new WeakMap(), _setup2 = new WeakMap(), _a3);
805
+ var onlineManager = new OnlineManager();
806
+
807
+ // node_modules/@tanstack/query-core/build/modern/retryer.js
808
+ function defaultRetryDelay(failureCount) {
809
+ return Math.min(1e3 * 2 ** failureCount, 3e4);
810
+ }
811
+ function canFetch(networkMode) {
812
+ return (networkMode != null ? networkMode : "online") === "online" ? onlineManager.isOnline() : true;
813
+ }
814
+ var CancelledError = class extends Error {
815
+ constructor(options) {
816
+ super("CancelledError");
817
+ this.revert = options == null ? void 0 : options.revert;
818
+ this.silent = options == null ? void 0 : options.silent;
819
+ }
820
+ };
821
+ function createRetryer(config) {
822
+ let isRetryCancelled = false;
823
+ let failureCount = 0;
824
+ let continueFn;
825
+ const thenable = pendingThenable();
826
+ const isResolved = () => thenable.status !== "pending";
827
+ const cancel = (cancelOptions) => {
828
+ var _a11;
829
+ if (!isResolved()) {
830
+ const error = new CancelledError(cancelOptions);
831
+ reject(error);
832
+ (_a11 = config.onCancel) == null ? void 0 : _a11.call(config, error);
833
+ }
834
+ };
835
+ const cancelRetry = () => {
836
+ isRetryCancelled = true;
837
+ };
838
+ const continueRetry = () => {
839
+ isRetryCancelled = false;
840
+ };
841
+ const canContinue = () => focusManager.isFocused() && (config.networkMode === "always" || onlineManager.isOnline()) && config.canRun();
842
+ const canStart = () => canFetch(config.networkMode) && config.canRun();
843
+ const resolve = (value) => {
844
+ if (!isResolved()) {
845
+ continueFn == null ? void 0 : continueFn();
846
+ thenable.resolve(value);
847
+ }
848
+ };
849
+ const reject = (value) => {
850
+ if (!isResolved()) {
851
+ continueFn == null ? void 0 : continueFn();
852
+ thenable.reject(value);
853
+ }
854
+ };
855
+ const pause = () => {
856
+ return new Promise((continueResolve) => {
857
+ var _a11;
858
+ continueFn = (value) => {
859
+ if (isResolved() || canContinue()) {
860
+ continueResolve(value);
861
+ }
862
+ };
863
+ (_a11 = config.onPause) == null ? void 0 : _a11.call(config);
864
+ }).then(() => {
865
+ var _a11;
866
+ continueFn = void 0;
867
+ if (!isResolved()) {
868
+ (_a11 = config.onContinue) == null ? void 0 : _a11.call(config);
869
+ }
870
+ });
871
+ };
872
+ const run = () => {
873
+ if (isResolved()) {
874
+ return;
875
+ }
876
+ let promiseOrValue;
877
+ const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
878
+ try {
879
+ promiseOrValue = initialPromise != null ? initialPromise : config.fn();
880
+ } catch (error) {
881
+ promiseOrValue = Promise.reject(error);
882
+ }
883
+ Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
884
+ var _a11, _b2, _c;
885
+ if (isResolved()) {
886
+ return;
887
+ }
888
+ const retry = (_a11 = config.retry) != null ? _a11 : environmentManager.isServer() ? 0 : 3;
889
+ const retryDelay = (_b2 = config.retryDelay) != null ? _b2 : defaultRetryDelay;
890
+ const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
891
+ const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
892
+ if (isRetryCancelled || !shouldRetry) {
893
+ reject(error);
894
+ return;
895
+ }
896
+ failureCount++;
897
+ (_c = config.onFail) == null ? void 0 : _c.call(config, failureCount, error);
898
+ sleep(delay).then(() => {
899
+ return canContinue() ? void 0 : pause();
900
+ }).then(() => {
901
+ if (isRetryCancelled) {
902
+ reject(error);
903
+ } else {
904
+ run();
905
+ }
906
+ });
907
+ });
908
+ };
909
+ return {
910
+ promise: thenable,
911
+ status: () => thenable.status,
912
+ cancel,
913
+ continue: () => {
914
+ continueFn == null ? void 0 : continueFn();
915
+ return thenable;
916
+ },
917
+ cancelRetry,
918
+ continueRetry,
919
+ canStart,
920
+ start: () => {
921
+ if (canStart()) {
922
+ run();
923
+ } else {
924
+ pause().then(run);
925
+ }
926
+ return thenable;
927
+ }
928
+ };
929
+ }
930
+
931
+ // node_modules/@tanstack/query-core/build/modern/removable.js
932
+ init_dirname();
933
+ init_buffer();
934
+ init_process();
935
+ var _gcTimeout, _a4;
936
+ var Removable = (_a4 = class {
937
+ constructor() {
938
+ __privateAdd(this, _gcTimeout, void 0);
939
+ }
940
+ destroy() {
941
+ this.clearGcTimeout();
942
+ }
943
+ scheduleGc() {
944
+ this.clearGcTimeout();
945
+ if (isValidTimeout(this.gcTime)) {
946
+ __privateSet(this, _gcTimeout, timeoutManager.setTimeout(() => {
947
+ this.optionalRemove();
948
+ }, this.gcTime));
949
+ }
950
+ }
951
+ updateGcTime(newGcTime) {
952
+ this.gcTime = Math.max(
953
+ this.gcTime || 0,
954
+ newGcTime != null ? newGcTime : environmentManager.isServer() ? Infinity : 5 * 60 * 1e3
955
+ );
956
+ }
957
+ clearGcTimeout() {
958
+ if (__privateGet(this, _gcTimeout)) {
959
+ timeoutManager.clearTimeout(__privateGet(this, _gcTimeout));
960
+ __privateSet(this, _gcTimeout, void 0);
961
+ }
962
+ }
963
+ }, _gcTimeout = new WeakMap(), _a4);
964
+
965
+ // node_modules/@tanstack/query-core/build/modern/query.js
966
+ var _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _isInitialPausedFetch, isInitialPausedFetch_fn, _dispatch, dispatch_fn, _a5;
967
+ var Query = (_a5 = class extends Removable {
968
+ constructor(config) {
969
+ var _a11;
970
+ super();
971
+ __privateAdd(this, _isInitialPausedFetch);
972
+ __privateAdd(this, _dispatch);
973
+ __privateAdd(this, _initialState, void 0);
974
+ __privateAdd(this, _revertState, void 0);
975
+ __privateAdd(this, _cache, void 0);
976
+ __privateAdd(this, _client, void 0);
977
+ __privateAdd(this, _retryer, void 0);
978
+ __privateAdd(this, _defaultOptions, void 0);
979
+ __privateAdd(this, _abortSignalConsumed, void 0);
980
+ __privateSet(this, _abortSignalConsumed, false);
981
+ __privateSet(this, _defaultOptions, config.defaultOptions);
982
+ this.setOptions(config.options);
983
+ this.observers = [];
984
+ __privateSet(this, _client, config.client);
985
+ __privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
986
+ this.queryKey = config.queryKey;
987
+ this.queryHash = config.queryHash;
988
+ __privateSet(this, _initialState, getDefaultState(this.options));
989
+ this.state = (_a11 = config.state) != null ? _a11 : __privateGet(this, _initialState);
990
+ this.scheduleGc();
991
+ }
992
+ get meta() {
993
+ return this.options.meta;
994
+ }
995
+ get promise() {
996
+ var _a11;
997
+ return (_a11 = __privateGet(this, _retryer)) == null ? void 0 : _a11.promise;
998
+ }
999
+ setOptions(options) {
1000
+ this.options = __spreadValues(__spreadValues({}, __privateGet(this, _defaultOptions)), options);
1001
+ this.updateGcTime(this.options.gcTime);
1002
+ if (this.state && this.state.data === void 0) {
1003
+ const defaultState = getDefaultState(this.options);
1004
+ if (defaultState.data !== void 0) {
1005
+ this.setState(
1006
+ successState(defaultState.data, defaultState.dataUpdatedAt)
1007
+ );
1008
+ __privateSet(this, _initialState, defaultState);
1009
+ }
1010
+ }
1011
+ }
1012
+ optionalRemove() {
1013
+ if (!this.observers.length && this.state.fetchStatus === "idle") {
1014
+ __privateGet(this, _cache).remove(this);
1015
+ }
1016
+ }
1017
+ setData(newData, options) {
1018
+ const data = replaceData(this.state.data, newData, this.options);
1019
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, {
1020
+ data,
1021
+ type: "success",
1022
+ dataUpdatedAt: options == null ? void 0 : options.updatedAt,
1023
+ manual: options == null ? void 0 : options.manual
1024
+ });
1025
+ return data;
1026
+ }
1027
+ setState(state, setStateOptions) {
1028
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "setState", state, setStateOptions });
1029
+ }
1030
+ cancel(options) {
1031
+ var _a11, _b2;
1032
+ const promise = (_a11 = __privateGet(this, _retryer)) == null ? void 0 : _a11.promise;
1033
+ (_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
1034
+ return promise ? promise.then(noop).catch(noop) : Promise.resolve();
1035
+ }
1036
+ destroy() {
1037
+ super.destroy();
1038
+ this.cancel({ silent: true });
1039
+ }
1040
+ get resetState() {
1041
+ return __privateGet(this, _initialState);
1042
+ }
1043
+ reset() {
1044
+ this.destroy();
1045
+ this.setState(this.resetState);
1046
+ }
1047
+ isActive() {
1048
+ return this.observers.some(
1049
+ (observer) => resolveEnabled(observer.options.enabled, this) !== false
1050
+ );
1051
+ }
1052
+ isDisabled() {
1053
+ if (this.getObserversCount() > 0) {
1054
+ return !this.isActive();
1055
+ }
1056
+ return this.options.queryFn === skipToken || !this.isFetched();
1057
+ }
1058
+ isFetched() {
1059
+ return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
1060
+ }
1061
+ isStatic() {
1062
+ if (this.getObserversCount() > 0) {
1063
+ return this.observers.some(
1064
+ (observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
1065
+ );
1066
+ }
1067
+ return false;
1068
+ }
1069
+ isStale() {
1070
+ if (this.getObserversCount() > 0) {
1071
+ return this.observers.some(
1072
+ (observer) => observer.getCurrentResult().isStale
1073
+ );
1074
+ }
1075
+ return this.state.data === void 0 || this.state.isInvalidated;
1076
+ }
1077
+ isStaleByTime(staleTime = 0) {
1078
+ if (this.state.data === void 0) {
1079
+ return true;
1080
+ }
1081
+ if (staleTime === "static") {
1082
+ return false;
1083
+ }
1084
+ if (this.state.isInvalidated) {
1085
+ return true;
1086
+ }
1087
+ return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
1088
+ }
1089
+ onFocus() {
1090
+ var _a11;
1091
+ const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
1092
+ observer == null ? void 0 : observer.refetch({ cancelRefetch: false });
1093
+ (_a11 = __privateGet(this, _retryer)) == null ? void 0 : _a11.continue();
1094
+ }
1095
+ onOnline() {
1096
+ var _a11;
1097
+ const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
1098
+ observer == null ? void 0 : observer.refetch({ cancelRefetch: false });
1099
+ (_a11 = __privateGet(this, _retryer)) == null ? void 0 : _a11.continue();
1100
+ }
1101
+ addObserver(observer) {
1102
+ if (!this.observers.includes(observer)) {
1103
+ this.observers.push(observer);
1104
+ this.clearGcTimeout();
1105
+ __privateGet(this, _cache).notify({ type: "observerAdded", query: this, observer });
1106
+ }
1107
+ }
1108
+ removeObserver(observer) {
1109
+ if (this.observers.includes(observer)) {
1110
+ this.observers = this.observers.filter((x) => x !== observer);
1111
+ if (!this.observers.length) {
1112
+ if (__privateGet(this, _retryer)) {
1113
+ if (__privateGet(this, _abortSignalConsumed) || __privateMethod(this, _isInitialPausedFetch, isInitialPausedFetch_fn).call(this)) {
1114
+ __privateGet(this, _retryer).cancel({ revert: true });
1115
+ } else {
1116
+ __privateGet(this, _retryer).cancelRetry();
1117
+ }
1118
+ }
1119
+ this.scheduleGc();
1120
+ }
1121
+ __privateGet(this, _cache).notify({ type: "observerRemoved", query: this, observer });
1122
+ }
1123
+ }
1124
+ getObserversCount() {
1125
+ return this.observers.length;
1126
+ }
1127
+ invalidate() {
1128
+ if (!this.state.isInvalidated) {
1129
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "invalidate" });
1130
+ }
1131
+ }
1132
+ async fetch(options, fetchOptions) {
1133
+ var _a11, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
1134
+ if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
1135
+ // re-start the fetch; there is a chance that the query is still in a
1136
+ // pending state when that happens
1137
+ ((_a11 = __privateGet(this, _retryer)) == null ? void 0 : _a11.status()) !== "rejected") {
1138
+ if (this.state.data !== void 0 && (fetchOptions == null ? void 0 : fetchOptions.cancelRefetch)) {
1139
+ this.cancel({ silent: true });
1140
+ } else if (__privateGet(this, _retryer)) {
1141
+ __privateGet(this, _retryer).continueRetry();
1142
+ return __privateGet(this, _retryer).promise;
1143
+ }
1144
+ }
1145
+ if (options) {
1146
+ this.setOptions(options);
1147
+ }
1148
+ if (!this.options.queryFn) {
1149
+ const observer = this.observers.find((x) => x.options.queryFn);
1150
+ if (observer) {
1151
+ this.setOptions(observer.options);
1152
+ }
1153
+ }
1154
+ if (false) {
1155
+ if (!Array.isArray(this.options.queryKey)) {
1156
+ console.error(
1157
+ `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`
1158
+ );
1159
+ }
1160
+ }
1161
+ const abortController = new AbortController();
1162
+ const addSignalProperty = (object) => {
1163
+ Object.defineProperty(object, "signal", {
1164
+ enumerable: true,
1165
+ get: () => {
1166
+ __privateSet(this, _abortSignalConsumed, true);
1167
+ return abortController.signal;
1168
+ }
1169
+ });
1170
+ };
1171
+ const fetchFn = () => {
1172
+ const queryFn = ensureQueryFn(this.options, fetchOptions);
1173
+ const createQueryFnContext = () => {
1174
+ const queryFnContext2 = {
1175
+ client: __privateGet(this, _client),
1176
+ queryKey: this.queryKey,
1177
+ meta: this.meta
1178
+ };
1179
+ addSignalProperty(queryFnContext2);
1180
+ return queryFnContext2;
1181
+ };
1182
+ const queryFnContext = createQueryFnContext();
1183
+ __privateSet(this, _abortSignalConsumed, false);
1184
+ if (this.options.persister) {
1185
+ return this.options.persister(
1186
+ queryFn,
1187
+ queryFnContext,
1188
+ this
1189
+ );
1190
+ }
1191
+ return queryFn(queryFnContext);
1192
+ };
1193
+ const createFetchContext = () => {
1194
+ const context2 = {
1195
+ fetchOptions,
1196
+ options: this.options,
1197
+ queryKey: this.queryKey,
1198
+ client: __privateGet(this, _client),
1199
+ state: this.state,
1200
+ fetchFn
1201
+ };
1202
+ addSignalProperty(context2);
1203
+ return context2;
1204
+ };
1205
+ const context = createFetchContext();
1206
+ (_b2 = this.options.behavior) == null ? void 0 : _b2.onFetch(context, this);
1207
+ __privateSet(this, _revertState, this.state);
1208
+ if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_c = context.fetchOptions) == null ? void 0 : _c.meta)) {
1209
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "fetch", meta: (_d = context.fetchOptions) == null ? void 0 : _d.meta });
1210
+ }
1211
+ __privateSet(this, _retryer, createRetryer({
1212
+ initialPromise: fetchOptions == null ? void 0 : fetchOptions.initialPromise,
1213
+ fn: context.fetchFn,
1214
+ onCancel: (error) => {
1215
+ if (error instanceof CancelledError && error.revert) {
1216
+ this.setState(__spreadProps(__spreadValues({}, __privateGet(this, _revertState)), {
1217
+ fetchStatus: "idle"
1218
+ }));
1219
+ }
1220
+ abortController.abort();
1221
+ },
1222
+ onFail: (failureCount, error) => {
1223
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "failed", failureCount, error });
1224
+ },
1225
+ onPause: () => {
1226
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "pause" });
1227
+ },
1228
+ onContinue: () => {
1229
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, { type: "continue" });
1230
+ },
1231
+ retry: context.options.retry,
1232
+ retryDelay: context.options.retryDelay,
1233
+ networkMode: context.options.networkMode,
1234
+ canRun: () => true
1235
+ }));
1236
+ try {
1237
+ const data = await __privateGet(this, _retryer).start();
1238
+ if (data === void 0) {
1239
+ if (false) {
1240
+ console.error(
1241
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
1242
+ );
1243
+ }
1244
+ throw new Error(`${this.queryHash} data is undefined`);
1245
+ }
1246
+ this.setData(data);
1247
+ (_f = (_e = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _f.call(_e, data, this);
1248
+ (_h = (_g = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _h.call(
1249
+ _g,
1250
+ data,
1251
+ this.state.error,
1252
+ this
1253
+ );
1254
+ return data;
1255
+ } catch (error) {
1256
+ if (error instanceof CancelledError) {
1257
+ if (error.silent) {
1258
+ return __privateGet(this, _retryer).promise;
1259
+ } else if (error.revert) {
1260
+ if (this.state.data === void 0) {
1261
+ throw error;
1262
+ }
1263
+ return this.state.data;
1264
+ }
1265
+ }
1266
+ __privateMethod(this, _dispatch, dispatch_fn).call(this, {
1267
+ type: "error",
1268
+ error
1269
+ });
1270
+ (_j = (_i = __privateGet(this, _cache).config).onError) == null ? void 0 : _j.call(
1271
+ _i,
1272
+ error,
1273
+ this
1274
+ );
1275
+ (_l = (_k = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _l.call(
1276
+ _k,
1277
+ this.state.data,
1278
+ error,
1279
+ this
1280
+ );
1281
+ throw error;
1282
+ } finally {
1283
+ this.scheduleGc();
1284
+ }
1285
+ }
1286
+ }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _isInitialPausedFetch = new WeakSet(), isInitialPausedFetch_fn = function() {
1287
+ return this.state.fetchStatus === "paused" && this.state.status === "pending";
1288
+ }, _dispatch = new WeakSet(), dispatch_fn = function(action) {
1289
+ const reducer = (state) => {
1290
+ var _a11;
1291
+ switch (action.type) {
1292
+ case "failed":
1293
+ return __spreadProps(__spreadValues({}, state), {
1294
+ fetchFailureCount: action.failureCount,
1295
+ fetchFailureReason: action.error
1296
+ });
1297
+ case "pause":
1298
+ return __spreadProps(__spreadValues({}, state), {
1299
+ fetchStatus: "paused"
1300
+ });
1301
+ case "continue":
1302
+ return __spreadProps(__spreadValues({}, state), {
1303
+ fetchStatus: "fetching"
1304
+ });
1305
+ case "fetch":
1306
+ return __spreadProps(__spreadValues(__spreadValues({}, state), fetchState(state.data, this.options)), {
1307
+ fetchMeta: (_a11 = action.meta) != null ? _a11 : null
1308
+ });
1309
+ case "success":
1310
+ const newState = __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, state), successState(action.data, action.dataUpdatedAt)), {
1311
+ dataUpdateCount: state.dataUpdateCount + 1
1312
+ }), !action.manual && {
1313
+ fetchStatus: "idle",
1314
+ fetchFailureCount: 0,
1315
+ fetchFailureReason: null
1316
+ });
1317
+ __privateSet(this, _revertState, action.manual ? newState : void 0);
1318
+ return newState;
1319
+ case "error":
1320
+ const error = action.error;
1321
+ return __spreadProps(__spreadValues({}, state), {
1322
+ error,
1323
+ errorUpdateCount: state.errorUpdateCount + 1,
1324
+ errorUpdatedAt: Date.now(),
1325
+ fetchFailureCount: state.fetchFailureCount + 1,
1326
+ fetchFailureReason: error,
1327
+ fetchStatus: "idle",
1328
+ status: "error",
1329
+ // flag existing data as invalidated if we get a background error
1330
+ // note that "no data" always means stale so we can set unconditionally here
1331
+ isInvalidated: true
1332
+ });
1333
+ case "invalidate":
1334
+ return __spreadProps(__spreadValues({}, state), {
1335
+ isInvalidated: true
1336
+ });
1337
+ case "setState":
1338
+ return __spreadValues(__spreadValues({}, state), action.state);
1339
+ }
1340
+ };
1341
+ this.state = reducer(this.state);
1342
+ notifyManager.batch(() => {
1343
+ this.observers.forEach((observer) => {
1344
+ observer.onQueryUpdate();
1345
+ });
1346
+ __privateGet(this, _cache).notify({ query: this, type: "updated", action });
1347
+ });
1348
+ }, _a5);
1349
+ function fetchState(data, options) {
1350
+ return __spreadValues({
1351
+ fetchFailureCount: 0,
1352
+ fetchFailureReason: null,
1353
+ fetchStatus: canFetch(options.networkMode) ? "fetching" : "paused"
1354
+ }, data === void 0 && {
1355
+ error: null,
1356
+ status: "pending"
1357
+ });
1358
+ }
1359
+ function successState(data, dataUpdatedAt) {
1360
+ return {
1361
+ data,
1362
+ dataUpdatedAt: dataUpdatedAt != null ? dataUpdatedAt : Date.now(),
1363
+ error: null,
1364
+ isInvalidated: false,
1365
+ status: "success"
1366
+ };
1367
+ }
1368
+ function getDefaultState(options) {
1369
+ const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
1370
+ const hasData = data !== void 0;
1371
+ const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
1372
+ return {
1373
+ data,
1374
+ dataUpdateCount: 0,
1375
+ dataUpdatedAt: hasData ? initialDataUpdatedAt != null ? initialDataUpdatedAt : Date.now() : 0,
1376
+ error: null,
1377
+ errorUpdateCount: 0,
1378
+ errorUpdatedAt: 0,
1379
+ fetchFailureCount: 0,
1380
+ fetchFailureReason: null,
1381
+ fetchMeta: null,
1382
+ isInvalidated: false,
1383
+ status: hasData ? "success" : "pending",
1384
+ fetchStatus: "idle"
1385
+ };
1386
+ }
1387
+
1388
+ // node_modules/@tanstack/query-core/build/modern/queryObserver.js
1389
+ var _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn, _b;
1390
+ var QueryObserver = (_b = class extends Subscribable {
1391
+ constructor(client, options) {
1392
+ super();
1393
+ __privateAdd(this, _executeFetch);
1394
+ __privateAdd(this, _updateStaleTimeout);
1395
+ __privateAdd(this, _computeRefetchInterval);
1396
+ __privateAdd(this, _updateRefetchInterval);
1397
+ __privateAdd(this, _updateTimers);
1398
+ __privateAdd(this, _clearStaleTimeout);
1399
+ __privateAdd(this, _clearRefetchInterval);
1400
+ __privateAdd(this, _updateQuery);
1401
+ __privateAdd(this, _notify);
1402
+ __privateAdd(this, _client2, void 0);
1403
+ __privateAdd(this, _currentQuery, void 0);
1404
+ __privateAdd(this, _currentQueryInitialState, void 0);
1405
+ __privateAdd(this, _currentResult, void 0);
1406
+ __privateAdd(this, _currentResultState, void 0);
1407
+ __privateAdd(this, _currentResultOptions, void 0);
1408
+ __privateAdd(this, _currentThenable, void 0);
1409
+ __privateAdd(this, _selectError, void 0);
1410
+ __privateAdd(this, _selectFn, void 0);
1411
+ __privateAdd(this, _selectResult, void 0);
1412
+ // This property keeps track of the last query with defined data.
1413
+ // It will be used to pass the previous data and query to the placeholder function between renders.
1414
+ __privateAdd(this, _lastQueryWithDefinedData, void 0);
1415
+ __privateAdd(this, _staleTimeoutId, void 0);
1416
+ __privateAdd(this, _refetchIntervalId, void 0);
1417
+ __privateAdd(this, _currentRefetchInterval, void 0);
1418
+ __privateAdd(this, _trackedProps, /* @__PURE__ */ new Set());
1419
+ this.options = options;
1420
+ __privateSet(this, _client2, client);
1421
+ __privateSet(this, _selectError, null);
1422
+ __privateSet(this, _currentThenable, pendingThenable());
1423
+ this.bindMethods();
1424
+ this.setOptions(options);
1425
+ }
1426
+ bindMethods() {
1427
+ this.refetch = this.refetch.bind(this);
1428
+ }
1429
+ onSubscribe() {
1430
+ if (this.listeners.size === 1) {
1431
+ __privateGet(this, _currentQuery).addObserver(this);
1432
+ if (shouldFetchOnMount(__privateGet(this, _currentQuery), this.options)) {
1433
+ __privateMethod(this, _executeFetch, executeFetch_fn).call(this);
1434
+ } else {
1435
+ this.updateResult();
1436
+ }
1437
+ __privateMethod(this, _updateTimers, updateTimers_fn).call(this);
1438
+ }
1439
+ }
1440
+ onUnsubscribe() {
1441
+ if (!this.hasListeners()) {
1442
+ this.destroy();
1443
+ }
1444
+ }
1445
+ shouldFetchOnReconnect() {
1446
+ return shouldFetchOn(
1447
+ __privateGet(this, _currentQuery),
1448
+ this.options,
1449
+ this.options.refetchOnReconnect
1450
+ );
1451
+ }
1452
+ shouldFetchOnWindowFocus() {
1453
+ return shouldFetchOn(
1454
+ __privateGet(this, _currentQuery),
1455
+ this.options,
1456
+ this.options.refetchOnWindowFocus
1457
+ );
1458
+ }
1459
+ destroy() {
1460
+ this.listeners = /* @__PURE__ */ new Set();
1461
+ __privateMethod(this, _clearStaleTimeout, clearStaleTimeout_fn).call(this);
1462
+ __privateMethod(this, _clearRefetchInterval, clearRefetchInterval_fn).call(this);
1463
+ __privateGet(this, _currentQuery).removeObserver(this);
1464
+ }
1465
+ setOptions(options) {
1466
+ const prevOptions = this.options;
1467
+ const prevQuery = __privateGet(this, _currentQuery);
1468
+ this.options = __privateGet(this, _client2).defaultQueryOptions(options);
1469
+ if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== "boolean") {
1470
+ throw new Error(
1471
+ "Expected enabled to be a boolean or a callback that returns a boolean"
1472
+ );
1473
+ }
1474
+ __privateMethod(this, _updateQuery, updateQuery_fn).call(this);
1475
+ __privateGet(this, _currentQuery).setOptions(this.options);
1476
+ if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {
1477
+ __privateGet(this, _client2).getQueryCache().notify({
1478
+ type: "observerOptionsUpdated",
1479
+ query: __privateGet(this, _currentQuery),
1480
+ observer: this
1481
+ });
1482
+ }
1483
+ const mounted = this.hasListeners();
1484
+ if (mounted && shouldFetchOptionally(
1485
+ __privateGet(this, _currentQuery),
1486
+ prevQuery,
1487
+ this.options,
1488
+ prevOptions
1489
+ )) {
1490
+ __privateMethod(this, _executeFetch, executeFetch_fn).call(this);
1491
+ }
1492
+ this.updateResult();
1493
+ if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
1494
+ __privateMethod(this, _updateStaleTimeout, updateStaleTimeout_fn).call(this);
1495
+ }
1496
+ const nextRefetchInterval = __privateMethod(this, _computeRefetchInterval, computeRefetchInterval_fn).call(this);
1497
+ if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || nextRefetchInterval !== __privateGet(this, _currentRefetchInterval))) {
1498
+ __privateMethod(this, _updateRefetchInterval, updateRefetchInterval_fn).call(this, nextRefetchInterval);
1499
+ }
1500
+ }
1501
+ getOptimisticResult(options) {
1502
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), options);
1503
+ const result = this.createResult(query, options);
1504
+ if (shouldAssignObserverCurrentProperties(this, result)) {
1505
+ __privateSet(this, _currentResult, result);
1506
+ __privateSet(this, _currentResultOptions, this.options);
1507
+ __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
1508
+ }
1509
+ return result;
1510
+ }
1511
+ getCurrentResult() {
1512
+ return __privateGet(this, _currentResult);
1513
+ }
1514
+ trackResult(result, onPropTracked) {
1515
+ return new Proxy(result, {
1516
+ get: (target, key) => {
1517
+ this.trackProp(key);
1518
+ onPropTracked == null ? void 0 : onPropTracked(key);
1519
+ if (key === "promise") {
1520
+ this.trackProp("data");
1521
+ if (!this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
1522
+ __privateGet(this, _currentThenable).reject(
1523
+ new Error(
1524
+ "experimental_prefetchInRender feature flag is not enabled"
1525
+ )
1526
+ );
1527
+ }
1528
+ }
1529
+ return Reflect.get(target, key);
1530
+ }
1531
+ });
1532
+ }
1533
+ trackProp(key) {
1534
+ __privateGet(this, _trackedProps).add(key);
1535
+ }
1536
+ getCurrentQuery() {
1537
+ return __privateGet(this, _currentQuery);
1538
+ }
1539
+ refetch(_a11 = {}) {
1540
+ var options = __objRest(_a11, []);
1541
+ return this.fetch(__spreadValues({}, options));
1542
+ }
1543
+ fetchOptimistic(options) {
1544
+ const defaultedOptions = __privateGet(this, _client2).defaultQueryOptions(options);
1545
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), defaultedOptions);
1546
+ return query.fetch().then(() => this.createResult(query, defaultedOptions));
1547
+ }
1548
+ fetch(fetchOptions) {
1549
+ var _a11;
1550
+ return __privateMethod(this, _executeFetch, executeFetch_fn).call(this, __spreadProps(__spreadValues({}, fetchOptions), {
1551
+ cancelRefetch: (_a11 = fetchOptions.cancelRefetch) != null ? _a11 : true
1552
+ })).then(() => {
1553
+ this.updateResult();
1554
+ return __privateGet(this, _currentResult);
1555
+ });
1556
+ }
1557
+ createResult(query, options) {
1558
+ var _a11;
1559
+ const prevQuery = __privateGet(this, _currentQuery);
1560
+ const prevOptions = this.options;
1561
+ const prevResult = __privateGet(this, _currentResult);
1562
+ const prevResultState = __privateGet(this, _currentResultState);
1563
+ const prevResultOptions = __privateGet(this, _currentResultOptions);
1564
+ const queryChange = query !== prevQuery;
1565
+ const queryInitialState = queryChange ? query.state : __privateGet(this, _currentQueryInitialState);
1566
+ const { state } = query;
1567
+ let newState = __spreadValues({}, state);
1568
+ let isPlaceholderData = false;
1569
+ let data;
1570
+ if (options._optimisticResults) {
1571
+ const mounted = this.hasListeners();
1572
+ const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
1573
+ const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
1574
+ if (fetchOnMount || fetchOptionally) {
1575
+ newState = __spreadValues(__spreadValues({}, newState), fetchState(state.data, query.options));
1576
+ }
1577
+ if (options._optimisticResults === "isRestoring") {
1578
+ newState.fetchStatus = "idle";
1579
+ }
1580
+ }
1581
+ let { error, errorUpdatedAt, status } = newState;
1582
+ data = newState.data;
1583
+ let skipSelect = false;
1584
+ if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
1585
+ let placeholderData;
1586
+ if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
1587
+ placeholderData = prevResult.data;
1588
+ skipSelect = true;
1589
+ } else {
1590
+ placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
1591
+ (_a11 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a11.state.data,
1592
+ __privateGet(this, _lastQueryWithDefinedData)
1593
+ ) : options.placeholderData;
1594
+ }
1595
+ if (placeholderData !== void 0) {
1596
+ status = "success";
1597
+ data = replaceData(
1598
+ prevResult == null ? void 0 : prevResult.data,
1599
+ placeholderData,
1600
+ options
1601
+ );
1602
+ isPlaceholderData = true;
1603
+ }
1604
+ }
1605
+ if (options.select && data !== void 0 && !skipSelect) {
1606
+ if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
1607
+ data = __privateGet(this, _selectResult);
1608
+ } else {
1609
+ try {
1610
+ __privateSet(this, _selectFn, options.select);
1611
+ data = options.select(data);
1612
+ data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
1613
+ __privateSet(this, _selectResult, data);
1614
+ __privateSet(this, _selectError, null);
1615
+ } catch (selectError) {
1616
+ __privateSet(this, _selectError, selectError);
1617
+ }
1618
+ }
1619
+ }
1620
+ if (__privateGet(this, _selectError)) {
1621
+ error = __privateGet(this, _selectError);
1622
+ data = __privateGet(this, _selectResult);
1623
+ errorUpdatedAt = Date.now();
1624
+ status = "error";
1625
+ }
1626
+ const isFetching = newState.fetchStatus === "fetching";
1627
+ const isPending = status === "pending";
1628
+ const isError = status === "error";
1629
+ const isLoading = isPending && isFetching;
1630
+ const hasData = data !== void 0;
1631
+ const result = {
1632
+ status,
1633
+ fetchStatus: newState.fetchStatus,
1634
+ isPending,
1635
+ isSuccess: status === "success",
1636
+ isError,
1637
+ isInitialLoading: isLoading,
1638
+ isLoading,
1639
+ data,
1640
+ dataUpdatedAt: newState.dataUpdatedAt,
1641
+ error,
1642
+ errorUpdatedAt,
1643
+ failureCount: newState.fetchFailureCount,
1644
+ failureReason: newState.fetchFailureReason,
1645
+ errorUpdateCount: newState.errorUpdateCount,
1646
+ isFetched: query.isFetched(),
1647
+ isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
1648
+ isFetching,
1649
+ isRefetching: isFetching && !isPending,
1650
+ isLoadingError: isError && !hasData,
1651
+ isPaused: newState.fetchStatus === "paused",
1652
+ isPlaceholderData,
1653
+ isRefetchError: isError && hasData,
1654
+ isStale: isStale(query, options),
1655
+ refetch: this.refetch,
1656
+ promise: __privateGet(this, _currentThenable),
1657
+ isEnabled: resolveEnabled(options.enabled, query) !== false
1658
+ };
1659
+ const nextResult = result;
1660
+ if (this.options.experimental_prefetchInRender) {
1661
+ const hasResultData = nextResult.data !== void 0;
1662
+ const isErrorWithoutData = nextResult.status === "error" && !hasResultData;
1663
+ const finalizeThenableIfPossible = (thenable) => {
1664
+ if (isErrorWithoutData) {
1665
+ thenable.reject(nextResult.error);
1666
+ } else if (hasResultData) {
1667
+ thenable.resolve(nextResult.data);
1668
+ }
1669
+ };
1670
+ const recreateThenable = () => {
1671
+ const pending = __privateSet(this, _currentThenable, nextResult.promise = pendingThenable());
1672
+ finalizeThenableIfPossible(pending);
1673
+ };
1674
+ const prevThenable = __privateGet(this, _currentThenable);
1675
+ switch (prevThenable.status) {
1676
+ case "pending":
1677
+ if (query.queryHash === prevQuery.queryHash) {
1678
+ finalizeThenableIfPossible(prevThenable);
1679
+ }
1680
+ break;
1681
+ case "fulfilled":
1682
+ if (isErrorWithoutData || nextResult.data !== prevThenable.value) {
1683
+ recreateThenable();
1684
+ }
1685
+ break;
1686
+ case "rejected":
1687
+ if (!isErrorWithoutData || nextResult.error !== prevThenable.reason) {
1688
+ recreateThenable();
1689
+ }
1690
+ break;
1691
+ }
1692
+ }
1693
+ return nextResult;
1694
+ }
1695
+ updateResult() {
1696
+ const prevResult = __privateGet(this, _currentResult);
1697
+ const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
1698
+ __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
1699
+ __privateSet(this, _currentResultOptions, this.options);
1700
+ if (__privateGet(this, _currentResultState).data !== void 0) {
1701
+ __privateSet(this, _lastQueryWithDefinedData, __privateGet(this, _currentQuery));
1702
+ }
1703
+ if (shallowEqualObjects(nextResult, prevResult)) {
1704
+ return;
1705
+ }
1706
+ __privateSet(this, _currentResult, nextResult);
1707
+ const shouldNotifyListeners = () => {
1708
+ if (!prevResult) {
1709
+ return true;
1710
+ }
1711
+ const { notifyOnChangeProps } = this.options;
1712
+ const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
1713
+ if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !__privateGet(this, _trackedProps).size) {
1714
+ return true;
1715
+ }
1716
+ const includedProps = new Set(
1717
+ notifyOnChangePropsValue != null ? notifyOnChangePropsValue : __privateGet(this, _trackedProps)
1718
+ );
1719
+ if (this.options.throwOnError) {
1720
+ includedProps.add("error");
1721
+ }
1722
+ return Object.keys(__privateGet(this, _currentResult)).some((key) => {
1723
+ const typedKey = key;
1724
+ const changed = __privateGet(this, _currentResult)[typedKey] !== prevResult[typedKey];
1725
+ return changed && includedProps.has(typedKey);
1726
+ });
1727
+ };
1728
+ __privateMethod(this, _notify, notify_fn).call(this, { listeners: shouldNotifyListeners() });
1729
+ }
1730
+ onQueryUpdate() {
1731
+ this.updateResult();
1732
+ if (this.hasListeners()) {
1733
+ __privateMethod(this, _updateTimers, updateTimers_fn).call(this);
1734
+ }
1735
+ }
1736
+ }, _client2 = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _executeFetch = new WeakSet(), executeFetch_fn = function(fetchOptions) {
1737
+ __privateMethod(this, _updateQuery, updateQuery_fn).call(this);
1738
+ let promise = __privateGet(this, _currentQuery).fetch(
1739
+ this.options,
1740
+ fetchOptions
1741
+ );
1742
+ if (!(fetchOptions == null ? void 0 : fetchOptions.throwOnError)) {
1743
+ promise = promise.catch(noop);
1744
+ }
1745
+ return promise;
1746
+ }, _updateStaleTimeout = new WeakSet(), updateStaleTimeout_fn = function() {
1747
+ __privateMethod(this, _clearStaleTimeout, clearStaleTimeout_fn).call(this);
1748
+ const staleTime = resolveStaleTime(
1749
+ this.options.staleTime,
1750
+ __privateGet(this, _currentQuery)
1751
+ );
1752
+ if (environmentManager.isServer() || __privateGet(this, _currentResult).isStale || !isValidTimeout(staleTime)) {
1753
+ return;
1754
+ }
1755
+ const time = timeUntilStale(__privateGet(this, _currentResult).dataUpdatedAt, staleTime);
1756
+ const timeout = time + 1;
1757
+ __privateSet(this, _staleTimeoutId, timeoutManager.setTimeout(() => {
1758
+ if (!__privateGet(this, _currentResult).isStale) {
1759
+ this.updateResult();
1760
+ }
1761
+ }, timeout));
1762
+ }, _computeRefetchInterval = new WeakSet(), computeRefetchInterval_fn = function() {
1763
+ var _a11;
1764
+ return (_a11 = typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(__privateGet(this, _currentQuery)) : this.options.refetchInterval) != null ? _a11 : false;
1765
+ }, _updateRefetchInterval = new WeakSet(), updateRefetchInterval_fn = function(nextInterval) {
1766
+ __privateMethod(this, _clearRefetchInterval, clearRefetchInterval_fn).call(this);
1767
+ __privateSet(this, _currentRefetchInterval, nextInterval);
1768
+ if (environmentManager.isServer() || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) === false || !isValidTimeout(__privateGet(this, _currentRefetchInterval)) || __privateGet(this, _currentRefetchInterval) === 0) {
1769
+ return;
1770
+ }
1771
+ __privateSet(this, _refetchIntervalId, timeoutManager.setInterval(() => {
1772
+ if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {
1773
+ __privateMethod(this, _executeFetch, executeFetch_fn).call(this);
1774
+ }
1775
+ }, __privateGet(this, _currentRefetchInterval)));
1776
+ }, _updateTimers = new WeakSet(), updateTimers_fn = function() {
1777
+ __privateMethod(this, _updateStaleTimeout, updateStaleTimeout_fn).call(this);
1778
+ __privateMethod(this, _updateRefetchInterval, updateRefetchInterval_fn).call(this, __privateMethod(this, _computeRefetchInterval, computeRefetchInterval_fn).call(this));
1779
+ }, _clearStaleTimeout = new WeakSet(), clearStaleTimeout_fn = function() {
1780
+ if (__privateGet(this, _staleTimeoutId)) {
1781
+ timeoutManager.clearTimeout(__privateGet(this, _staleTimeoutId));
1782
+ __privateSet(this, _staleTimeoutId, void 0);
1783
+ }
1784
+ }, _clearRefetchInterval = new WeakSet(), clearRefetchInterval_fn = function() {
1785
+ if (__privateGet(this, _refetchIntervalId)) {
1786
+ timeoutManager.clearInterval(__privateGet(this, _refetchIntervalId));
1787
+ __privateSet(this, _refetchIntervalId, void 0);
1788
+ }
1789
+ }, _updateQuery = new WeakSet(), updateQuery_fn = function() {
1790
+ const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), this.options);
1791
+ if (query === __privateGet(this, _currentQuery)) {
1792
+ return;
1793
+ }
1794
+ const prevQuery = __privateGet(this, _currentQuery);
1795
+ __privateSet(this, _currentQuery, query);
1796
+ __privateSet(this, _currentQueryInitialState, query.state);
1797
+ if (this.hasListeners()) {
1798
+ prevQuery == null ? void 0 : prevQuery.removeObserver(this);
1799
+ query.addObserver(this);
1800
+ }
1801
+ }, _notify = new WeakSet(), notify_fn = function(notifyOptions) {
1802
+ notifyManager.batch(() => {
1803
+ if (notifyOptions.listeners) {
1804
+ this.listeners.forEach((listener) => {
1805
+ listener(__privateGet(this, _currentResult));
1806
+ });
1807
+ }
1808
+ __privateGet(this, _client2).getQueryCache().notify({
1809
+ query: __privateGet(this, _currentQuery),
1810
+ type: "observerResultsUpdated"
1811
+ });
1812
+ });
1813
+ }, _b);
1814
+ function shouldLoadOnMount(query, options) {
1815
+ return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
1816
+ }
1817
+ function shouldFetchOnMount(query, options) {
1818
+ return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
1819
+ }
1820
+ function shouldFetchOn(query, options, field) {
1821
+ if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
1822
+ const value = typeof field === "function" ? field(query) : field;
1823
+ return value === "always" || value !== false && isStale(query, options);
1824
+ }
1825
+ return false;
1826
+ }
1827
+ function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
1828
+ return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
1829
+ }
1830
+ function isStale(query, options) {
1831
+ return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));
1832
+ }
1833
+ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
1834
+ if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {
1835
+ return true;
1836
+ }
1837
+ return false;
1838
+ }
1839
+
1840
+ // node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1841
+ init_dirname();
1842
+ init_buffer();
1843
+ init_process();
1844
+ function infiniteQueryBehavior(pages) {
1845
+ return {
1846
+ onFetch: (context, query) => {
1847
+ var _a11, _b2, _c, _d, _e;
1848
+ const options = context.options;
1849
+ const direction = (_c = (_b2 = (_a11 = context.fetchOptions) == null ? void 0 : _a11.meta) == null ? void 0 : _b2.fetchMore) == null ? void 0 : _c.direction;
1850
+ const oldPages = ((_d = context.state.data) == null ? void 0 : _d.pages) || [];
1851
+ const oldPageParams = ((_e = context.state.data) == null ? void 0 : _e.pageParams) || [];
1852
+ let result = { pages: [], pageParams: [] };
1853
+ let currentPage = 0;
1854
+ const fetchFn = async () => {
1855
+ var _a12;
1856
+ let cancelled = false;
1857
+ const addSignalProperty = (object) => {
1858
+ addConsumeAwareSignal(
1859
+ object,
1860
+ () => context.signal,
1861
+ () => cancelled = true
1862
+ );
1863
+ };
1864
+ const queryFn = ensureQueryFn(context.options, context.fetchOptions);
1865
+ const fetchPage = async (data, param, previous) => {
1866
+ if (cancelled) {
1867
+ return Promise.reject();
1868
+ }
1869
+ if (param == null && data.pages.length) {
1870
+ return Promise.resolve(data);
1871
+ }
1872
+ const createQueryFnContext = () => {
1873
+ const queryFnContext2 = {
1874
+ client: context.client,
1875
+ queryKey: context.queryKey,
1876
+ pageParam: param,
1877
+ direction: previous ? "backward" : "forward",
1878
+ meta: context.options.meta
1879
+ };
1880
+ addSignalProperty(queryFnContext2);
1881
+ return queryFnContext2;
1882
+ };
1883
+ const queryFnContext = createQueryFnContext();
1884
+ const page = await queryFn(queryFnContext);
1885
+ const { maxPages } = context.options;
1886
+ const addTo = previous ? addToStart : addToEnd;
1887
+ return {
1888
+ pages: addTo(data.pages, page, maxPages),
1889
+ pageParams: addTo(data.pageParams, param, maxPages)
1890
+ };
1891
+ };
1892
+ if (direction && oldPages.length) {
1893
+ const previous = direction === "backward";
1894
+ const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
1895
+ const oldData = {
1896
+ pages: oldPages,
1897
+ pageParams: oldPageParams
1898
+ };
1899
+ const param = pageParamFn(options, oldData);
1900
+ result = await fetchPage(oldData, param, previous);
1901
+ } else {
1902
+ const remainingPages = pages != null ? pages : oldPages.length;
1903
+ do {
1904
+ const param = currentPage === 0 ? (_a12 = oldPageParams[0]) != null ? _a12 : options.initialPageParam : getNextPageParam(options, result);
1905
+ if (currentPage > 0 && param == null) {
1906
+ break;
1907
+ }
1908
+ result = await fetchPage(result, param);
1909
+ currentPage++;
1910
+ } while (currentPage < remainingPages);
1911
+ }
1912
+ return result;
1913
+ };
1914
+ if (context.options.persister) {
1915
+ context.fetchFn = () => {
1916
+ var _a12, _b3;
1917
+ return (_b3 = (_a12 = context.options).persister) == null ? void 0 : _b3.call(
1918
+ _a12,
1919
+ fetchFn,
1920
+ {
1921
+ client: context.client,
1922
+ queryKey: context.queryKey,
1923
+ meta: context.options.meta,
1924
+ signal: context.signal
1925
+ },
1926
+ query
1927
+ );
1928
+ };
1929
+ } else {
1930
+ context.fetchFn = fetchFn;
1931
+ }
1932
+ }
1933
+ };
1934
+ }
1935
+ function getNextPageParam(options, { pages, pageParams }) {
1936
+ const lastIndex = pages.length - 1;
1937
+ return pages.length > 0 ? options.getNextPageParam(
1938
+ pages[lastIndex],
1939
+ pages,
1940
+ pageParams[lastIndex],
1941
+ pageParams
1942
+ ) : void 0;
1943
+ }
1944
+ function getPreviousPageParam(options, { pages, pageParams }) {
1945
+ var _a11;
1946
+ return pages.length > 0 ? (_a11 = options.getPreviousPageParam) == null ? void 0 : _a11.call(options, pages[0], pages, pageParams[0], pageParams) : void 0;
1947
+ }
1948
+
1949
+ // node_modules/@tanstack/query-core/build/modern/mutationCache.js
1950
+ init_dirname();
1951
+ init_buffer();
1952
+ init_process();
1953
+
1954
+ // node_modules/@tanstack/query-core/build/modern/mutation.js
1955
+ init_dirname();
1956
+ init_buffer();
1957
+ init_process();
1958
+ var _client3, _observers, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _a6;
1959
+ var Mutation = (_a6 = class extends Removable {
1960
+ constructor(config) {
1961
+ super();
1962
+ __privateAdd(this, _dispatch2);
1963
+ __privateAdd(this, _client3, void 0);
1964
+ __privateAdd(this, _observers, void 0);
1965
+ __privateAdd(this, _mutationCache, void 0);
1966
+ __privateAdd(this, _retryer2, void 0);
1967
+ __privateSet(this, _client3, config.client);
1968
+ this.mutationId = config.mutationId;
1969
+ __privateSet(this, _mutationCache, config.mutationCache);
1970
+ __privateSet(this, _observers, []);
1971
+ this.state = config.state || getDefaultState2();
1972
+ this.setOptions(config.options);
1973
+ this.scheduleGc();
1974
+ }
1975
+ setOptions(options) {
1976
+ this.options = options;
1977
+ this.updateGcTime(this.options.gcTime);
1978
+ }
1979
+ get meta() {
1980
+ return this.options.meta;
1981
+ }
1982
+ addObserver(observer) {
1983
+ if (!__privateGet(this, _observers).includes(observer)) {
1984
+ __privateGet(this, _observers).push(observer);
1985
+ this.clearGcTimeout();
1986
+ __privateGet(this, _mutationCache).notify({
1987
+ type: "observerAdded",
1988
+ mutation: this,
1989
+ observer
1990
+ });
1991
+ }
1992
+ }
1993
+ removeObserver(observer) {
1994
+ __privateSet(this, _observers, __privateGet(this, _observers).filter((x) => x !== observer));
1995
+ this.scheduleGc();
1996
+ __privateGet(this, _mutationCache).notify({
1997
+ type: "observerRemoved",
1998
+ mutation: this,
1999
+ observer
2000
+ });
2001
+ }
2002
+ optionalRemove() {
2003
+ if (!__privateGet(this, _observers).length) {
2004
+ if (this.state.status === "pending") {
2005
+ this.scheduleGc();
2006
+ } else {
2007
+ __privateGet(this, _mutationCache).remove(this);
2008
+ }
2009
+ }
2010
+ }
2011
+ continue() {
2012
+ var _a11, _b2;
2013
+ return (_b2 = (_a11 = __privateGet(this, _retryer2)) == null ? void 0 : _a11.continue()) != null ? _b2 : (
2014
+ // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
2015
+ this.execute(this.state.variables)
2016
+ );
2017
+ }
2018
+ async execute(variables) {
2019
+ var _a11, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2020
+ const onContinue = () => {
2021
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "continue" });
2022
+ };
2023
+ const mutationFnContext = {
2024
+ client: __privateGet(this, _client3),
2025
+ meta: this.options.meta,
2026
+ mutationKey: this.options.mutationKey
2027
+ };
2028
+ __privateSet(this, _retryer2, createRetryer({
2029
+ fn: () => {
2030
+ if (!this.options.mutationFn) {
2031
+ return Promise.reject(new Error("No mutationFn found"));
2032
+ }
2033
+ return this.options.mutationFn(variables, mutationFnContext);
2034
+ },
2035
+ onFail: (failureCount, error) => {
2036
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "failed", failureCount, error });
2037
+ },
2038
+ onPause: () => {
2039
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "pause" });
2040
+ },
2041
+ onContinue,
2042
+ retry: (_a11 = this.options.retry) != null ? _a11 : 0,
2043
+ retryDelay: this.options.retryDelay,
2044
+ networkMode: this.options.networkMode,
2045
+ canRun: () => __privateGet(this, _mutationCache).canRun(this)
2046
+ }));
2047
+ const restored = this.state.status === "pending";
2048
+ const isPaused = !__privateGet(this, _retryer2).canStart();
2049
+ try {
2050
+ if (restored) {
2051
+ onContinue();
2052
+ } else {
2053
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
2054
+ if (__privateGet(this, _mutationCache).config.onMutate) {
2055
+ await __privateGet(this, _mutationCache).config.onMutate(
2056
+ variables,
2057
+ this,
2058
+ mutationFnContext
2059
+ );
2060
+ }
2061
+ const context = await ((_c = (_b2 = this.options).onMutate) == null ? void 0 : _c.call(
2062
+ _b2,
2063
+ variables,
2064
+ mutationFnContext
2065
+ ));
2066
+ if (context !== this.state.context) {
2067
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, {
2068
+ type: "pending",
2069
+ context,
2070
+ variables,
2071
+ isPaused
2072
+ });
2073
+ }
2074
+ }
2075
+ const data = await __privateGet(this, _retryer2).start();
2076
+ await ((_e = (_d = __privateGet(this, _mutationCache).config).onSuccess) == null ? void 0 : _e.call(
2077
+ _d,
2078
+ data,
2079
+ variables,
2080
+ this.state.context,
2081
+ this,
2082
+ mutationFnContext
2083
+ ));
2084
+ await ((_g = (_f = this.options).onSuccess) == null ? void 0 : _g.call(
2085
+ _f,
2086
+ data,
2087
+ variables,
2088
+ this.state.context,
2089
+ mutationFnContext
2090
+ ));
2091
+ await ((_i = (_h = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _i.call(
2092
+ _h,
2093
+ data,
2094
+ null,
2095
+ this.state.variables,
2096
+ this.state.context,
2097
+ this,
2098
+ mutationFnContext
2099
+ ));
2100
+ await ((_k = (_j = this.options).onSettled) == null ? void 0 : _k.call(
2101
+ _j,
2102
+ data,
2103
+ null,
2104
+ variables,
2105
+ this.state.context,
2106
+ mutationFnContext
2107
+ ));
2108
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "success", data });
2109
+ return data;
2110
+ } catch (error) {
2111
+ try {
2112
+ await ((_m = (_l = __privateGet(this, _mutationCache).config).onError) == null ? void 0 : _m.call(
2113
+ _l,
2114
+ error,
2115
+ variables,
2116
+ this.state.context,
2117
+ this,
2118
+ mutationFnContext
2119
+ ));
2120
+ } catch (e) {
2121
+ void Promise.reject(e);
2122
+ }
2123
+ try {
2124
+ await ((_o = (_n = this.options).onError) == null ? void 0 : _o.call(
2125
+ _n,
2126
+ error,
2127
+ variables,
2128
+ this.state.context,
2129
+ mutationFnContext
2130
+ ));
2131
+ } catch (e) {
2132
+ void Promise.reject(e);
2133
+ }
2134
+ try {
2135
+ await ((_q = (_p = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _q.call(
2136
+ _p,
2137
+ void 0,
2138
+ error,
2139
+ this.state.variables,
2140
+ this.state.context,
2141
+ this,
2142
+ mutationFnContext
2143
+ ));
2144
+ } catch (e) {
2145
+ void Promise.reject(e);
2146
+ }
2147
+ try {
2148
+ await ((_s = (_r = this.options).onSettled) == null ? void 0 : _s.call(
2149
+ _r,
2150
+ void 0,
2151
+ error,
2152
+ variables,
2153
+ this.state.context,
2154
+ mutationFnContext
2155
+ ));
2156
+ } catch (e) {
2157
+ void Promise.reject(e);
2158
+ }
2159
+ __privateMethod(this, _dispatch2, dispatch_fn2).call(this, { type: "error", error });
2160
+ throw error;
2161
+ } finally {
2162
+ __privateGet(this, _mutationCache).runNext(this);
2163
+ }
2164
+ }
2165
+ }, _client3 = new WeakMap(), _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer2 = new WeakMap(), _dispatch2 = new WeakSet(), dispatch_fn2 = function(action) {
2166
+ const reducer = (state) => {
2167
+ switch (action.type) {
2168
+ case "failed":
2169
+ return __spreadProps(__spreadValues({}, state), {
2170
+ failureCount: action.failureCount,
2171
+ failureReason: action.error
2172
+ });
2173
+ case "pause":
2174
+ return __spreadProps(__spreadValues({}, state), {
2175
+ isPaused: true
2176
+ });
2177
+ case "continue":
2178
+ return __spreadProps(__spreadValues({}, state), {
2179
+ isPaused: false
2180
+ });
2181
+ case "pending":
2182
+ return __spreadProps(__spreadValues({}, state), {
2183
+ context: action.context,
2184
+ data: void 0,
2185
+ failureCount: 0,
2186
+ failureReason: null,
2187
+ error: null,
2188
+ isPaused: action.isPaused,
2189
+ status: "pending",
2190
+ variables: action.variables,
2191
+ submittedAt: Date.now()
2192
+ });
2193
+ case "success":
2194
+ return __spreadProps(__spreadValues({}, state), {
2195
+ data: action.data,
2196
+ failureCount: 0,
2197
+ failureReason: null,
2198
+ error: null,
2199
+ status: "success",
2200
+ isPaused: false
2201
+ });
2202
+ case "error":
2203
+ return __spreadProps(__spreadValues({}, state), {
2204
+ data: void 0,
2205
+ error: action.error,
2206
+ failureCount: state.failureCount + 1,
2207
+ failureReason: action.error,
2208
+ isPaused: false,
2209
+ status: "error"
2210
+ });
2211
+ }
2212
+ };
2213
+ this.state = reducer(this.state);
2214
+ notifyManager.batch(() => {
2215
+ __privateGet(this, _observers).forEach((observer) => {
2216
+ observer.onMutationUpdate(action);
2217
+ });
2218
+ __privateGet(this, _mutationCache).notify({
2219
+ mutation: this,
2220
+ type: "updated",
2221
+ action
2222
+ });
2223
+ });
2224
+ }, _a6);
2225
+ function getDefaultState2() {
2226
+ return {
2227
+ context: void 0,
2228
+ data: void 0,
2229
+ error: null,
2230
+ failureCount: 0,
2231
+ failureReason: null,
2232
+ isPaused: false,
2233
+ status: "idle",
2234
+ variables: void 0,
2235
+ submittedAt: 0
2236
+ };
2237
+ }
2238
+
2239
+ // node_modules/@tanstack/query-core/build/modern/mutationCache.js
2240
+ var _mutations, _scopes, _mutationId, _a7;
2241
+ var MutationCache = (_a7 = class extends Subscribable {
2242
+ constructor(config = {}) {
2243
+ super();
2244
+ __privateAdd(this, _mutations, void 0);
2245
+ __privateAdd(this, _scopes, void 0);
2246
+ __privateAdd(this, _mutationId, void 0);
2247
+ this.config = config;
2248
+ __privateSet(this, _mutations, /* @__PURE__ */ new Set());
2249
+ __privateSet(this, _scopes, /* @__PURE__ */ new Map());
2250
+ __privateSet(this, _mutationId, 0);
2251
+ }
2252
+ build(client, options, state) {
2253
+ const mutation = new Mutation({
2254
+ client,
2255
+ mutationCache: this,
2256
+ mutationId: ++__privateWrapper(this, _mutationId)._,
2257
+ options: client.defaultMutationOptions(options),
2258
+ state
2259
+ });
2260
+ this.add(mutation);
2261
+ return mutation;
2262
+ }
2263
+ add(mutation) {
2264
+ __privateGet(this, _mutations).add(mutation);
2265
+ const scope = scopeFor(mutation);
2266
+ if (typeof scope === "string") {
2267
+ const scopedMutations = __privateGet(this, _scopes).get(scope);
2268
+ if (scopedMutations) {
2269
+ scopedMutations.push(mutation);
2270
+ } else {
2271
+ __privateGet(this, _scopes).set(scope, [mutation]);
2272
+ }
2273
+ }
2274
+ this.notify({ type: "added", mutation });
2275
+ }
2276
+ remove(mutation) {
2277
+ if (__privateGet(this, _mutations).delete(mutation)) {
2278
+ const scope = scopeFor(mutation);
2279
+ if (typeof scope === "string") {
2280
+ const scopedMutations = __privateGet(this, _scopes).get(scope);
2281
+ if (scopedMutations) {
2282
+ if (scopedMutations.length > 1) {
2283
+ const index = scopedMutations.indexOf(mutation);
2284
+ if (index !== -1) {
2285
+ scopedMutations.splice(index, 1);
2286
+ }
2287
+ } else if (scopedMutations[0] === mutation) {
2288
+ __privateGet(this, _scopes).delete(scope);
2289
+ }
2290
+ }
2291
+ }
2292
+ }
2293
+ this.notify({ type: "removed", mutation });
2294
+ }
2295
+ canRun(mutation) {
2296
+ const scope = scopeFor(mutation);
2297
+ if (typeof scope === "string") {
2298
+ const mutationsWithSameScope = __privateGet(this, _scopes).get(scope);
2299
+ const firstPendingMutation = mutationsWithSameScope == null ? void 0 : mutationsWithSameScope.find(
2300
+ (m) => m.state.status === "pending"
2301
+ );
2302
+ return !firstPendingMutation || firstPendingMutation === mutation;
2303
+ } else {
2304
+ return true;
2305
+ }
2306
+ }
2307
+ runNext(mutation) {
2308
+ var _a11, _b2;
2309
+ const scope = scopeFor(mutation);
2310
+ if (typeof scope === "string") {
2311
+ const foundMutation = (_a11 = __privateGet(this, _scopes).get(scope)) == null ? void 0 : _a11.find((m) => m !== mutation && m.state.isPaused);
2312
+ return (_b2 = foundMutation == null ? void 0 : foundMutation.continue()) != null ? _b2 : Promise.resolve();
2313
+ } else {
2314
+ return Promise.resolve();
2315
+ }
2316
+ }
2317
+ clear() {
2318
+ notifyManager.batch(() => {
2319
+ __privateGet(this, _mutations).forEach((mutation) => {
2320
+ this.notify({ type: "removed", mutation });
2321
+ });
2322
+ __privateGet(this, _mutations).clear();
2323
+ __privateGet(this, _scopes).clear();
2324
+ });
2325
+ }
2326
+ getAll() {
2327
+ return Array.from(__privateGet(this, _mutations));
2328
+ }
2329
+ find(filters) {
2330
+ const defaultedFilters = __spreadValues({ exact: true }, filters);
2331
+ return this.getAll().find(
2332
+ (mutation) => matchMutation(defaultedFilters, mutation)
2333
+ );
2334
+ }
2335
+ findAll(filters = {}) {
2336
+ return this.getAll().filter((mutation) => matchMutation(filters, mutation));
2337
+ }
2338
+ notify(event) {
2339
+ notifyManager.batch(() => {
2340
+ this.listeners.forEach((listener) => {
2341
+ listener(event);
2342
+ });
2343
+ });
2344
+ }
2345
+ resumePausedMutations() {
2346
+ const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
2347
+ return notifyManager.batch(
2348
+ () => Promise.all(
2349
+ pausedMutations.map((mutation) => mutation.continue().catch(noop))
2350
+ )
2351
+ );
2352
+ }
2353
+ }, _mutations = new WeakMap(), _scopes = new WeakMap(), _mutationId = new WeakMap(), _a7);
2354
+ function scopeFor(mutation) {
2355
+ var _a11;
2356
+ return (_a11 = mutation.options.scope) == null ? void 0 : _a11.id;
2357
+ }
2358
+
2359
+ // node_modules/@tanstack/query-core/build/modern/mutationObserver.js
2360
+ init_dirname();
2361
+ init_buffer();
2362
+ init_process();
2363
+ var _client4, _currentResult2, _currentMutation, _mutateOptions, _updateResult, updateResult_fn, _notify2, notify_fn2, _a8;
2364
+ var MutationObserver = (_a8 = class extends Subscribable {
2365
+ constructor(client, options) {
2366
+ super();
2367
+ __privateAdd(this, _updateResult);
2368
+ __privateAdd(this, _notify2);
2369
+ __privateAdd(this, _client4, void 0);
2370
+ __privateAdd(this, _currentResult2, void 0);
2371
+ __privateAdd(this, _currentMutation, void 0);
2372
+ __privateAdd(this, _mutateOptions, void 0);
2373
+ __privateSet(this, _client4, client);
2374
+ this.setOptions(options);
2375
+ this.bindMethods();
2376
+ __privateMethod(this, _updateResult, updateResult_fn).call(this);
2377
+ }
2378
+ bindMethods() {
2379
+ this.mutate = this.mutate.bind(this);
2380
+ this.reset = this.reset.bind(this);
2381
+ }
2382
+ setOptions(options) {
2383
+ var _a11;
2384
+ const prevOptions = this.options;
2385
+ this.options = __privateGet(this, _client4).defaultMutationOptions(options);
2386
+ if (!shallowEqualObjects(this.options, prevOptions)) {
2387
+ __privateGet(this, _client4).getMutationCache().notify({
2388
+ type: "observerOptionsUpdated",
2389
+ mutation: __privateGet(this, _currentMutation),
2390
+ observer: this
2391
+ });
2392
+ }
2393
+ if ((prevOptions == null ? void 0 : prevOptions.mutationKey) && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {
2394
+ this.reset();
2395
+ } else if (((_a11 = __privateGet(this, _currentMutation)) == null ? void 0 : _a11.state.status) === "pending") {
2396
+ __privateGet(this, _currentMutation).setOptions(this.options);
2397
+ }
2398
+ }
2399
+ onUnsubscribe() {
2400
+ var _a11;
2401
+ if (!this.hasListeners()) {
2402
+ (_a11 = __privateGet(this, _currentMutation)) == null ? void 0 : _a11.removeObserver(this);
2403
+ }
2404
+ }
2405
+ onMutationUpdate(action) {
2406
+ __privateMethod(this, _updateResult, updateResult_fn).call(this);
2407
+ __privateMethod(this, _notify2, notify_fn2).call(this, action);
2408
+ }
2409
+ getCurrentResult() {
2410
+ return __privateGet(this, _currentResult2);
2411
+ }
2412
+ reset() {
2413
+ var _a11;
2414
+ (_a11 = __privateGet(this, _currentMutation)) == null ? void 0 : _a11.removeObserver(this);
2415
+ __privateSet(this, _currentMutation, void 0);
2416
+ __privateMethod(this, _updateResult, updateResult_fn).call(this);
2417
+ __privateMethod(this, _notify2, notify_fn2).call(this);
2418
+ }
2419
+ mutate(variables, options) {
2420
+ var _a11;
2421
+ __privateSet(this, _mutateOptions, options);
2422
+ (_a11 = __privateGet(this, _currentMutation)) == null ? void 0 : _a11.removeObserver(this);
2423
+ __privateSet(this, _currentMutation, __privateGet(this, _client4).getMutationCache().build(__privateGet(this, _client4), this.options));
2424
+ __privateGet(this, _currentMutation).addObserver(this);
2425
+ return __privateGet(this, _currentMutation).execute(variables);
2426
+ }
2427
+ }, _client4 = new WeakMap(), _currentResult2 = new WeakMap(), _currentMutation = new WeakMap(), _mutateOptions = new WeakMap(), _updateResult = new WeakSet(), updateResult_fn = function() {
2428
+ var _a11, _b2;
2429
+ const state = (_b2 = (_a11 = __privateGet(this, _currentMutation)) == null ? void 0 : _a11.state) != null ? _b2 : getDefaultState2();
2430
+ __privateSet(this, _currentResult2, __spreadProps(__spreadValues({}, state), {
2431
+ isPending: state.status === "pending",
2432
+ isSuccess: state.status === "success",
2433
+ isError: state.status === "error",
2434
+ isIdle: state.status === "idle",
2435
+ mutate: this.mutate,
2436
+ reset: this.reset
2437
+ }));
2438
+ }, _notify2 = new WeakSet(), notify_fn2 = function(action) {
2439
+ notifyManager.batch(() => {
2440
+ var _a11, _b2, _c, _d, _e, _f, _g, _h;
2441
+ if (__privateGet(this, _mutateOptions) && this.hasListeners()) {
2442
+ const variables = __privateGet(this, _currentResult2).variables;
2443
+ const onMutateResult = __privateGet(this, _currentResult2).context;
2444
+ const context = {
2445
+ client: __privateGet(this, _client4),
2446
+ meta: this.options.meta,
2447
+ mutationKey: this.options.mutationKey
2448
+ };
2449
+ if ((action == null ? void 0 : action.type) === "success") {
2450
+ try {
2451
+ (_b2 = (_a11 = __privateGet(this, _mutateOptions)).onSuccess) == null ? void 0 : _b2.call(
2452
+ _a11,
2453
+ action.data,
2454
+ variables,
2455
+ onMutateResult,
2456
+ context
2457
+ );
2458
+ } catch (e) {
2459
+ void Promise.reject(e);
2460
+ }
2461
+ try {
2462
+ (_d = (_c = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _d.call(
2463
+ _c,
2464
+ action.data,
2465
+ null,
2466
+ variables,
2467
+ onMutateResult,
2468
+ context
2469
+ );
2470
+ } catch (e) {
2471
+ void Promise.reject(e);
2472
+ }
2473
+ } else if ((action == null ? void 0 : action.type) === "error") {
2474
+ try {
2475
+ (_f = (_e = __privateGet(this, _mutateOptions)).onError) == null ? void 0 : _f.call(
2476
+ _e,
2477
+ action.error,
2478
+ variables,
2479
+ onMutateResult,
2480
+ context
2481
+ );
2482
+ } catch (e) {
2483
+ void Promise.reject(e);
2484
+ }
2485
+ try {
2486
+ (_h = (_g = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _h.call(
2487
+ _g,
2488
+ void 0,
2489
+ action.error,
2490
+ variables,
2491
+ onMutateResult,
2492
+ context
2493
+ );
2494
+ } catch (e) {
2495
+ void Promise.reject(e);
2496
+ }
2497
+ }
2498
+ }
2499
+ this.listeners.forEach((listener) => {
2500
+ listener(__privateGet(this, _currentResult2));
2501
+ });
2502
+ });
2503
+ }, _a8);
2504
+
2505
+ // node_modules/@tanstack/query-core/build/modern/queryCache.js
2506
+ init_dirname();
2507
+ init_buffer();
2508
+ init_process();
2509
+ var _queries, _a9;
2510
+ var QueryCache = (_a9 = class extends Subscribable {
2511
+ constructor(config = {}) {
2512
+ super();
2513
+ __privateAdd(this, _queries, void 0);
2514
+ this.config = config;
2515
+ __privateSet(this, _queries, /* @__PURE__ */ new Map());
2516
+ }
2517
+ build(client, options, state) {
2518
+ var _a11;
2519
+ const queryKey = options.queryKey;
2520
+ const queryHash = (_a11 = options.queryHash) != null ? _a11 : hashQueryKeyByOptions(queryKey, options);
2521
+ let query = this.get(queryHash);
2522
+ if (!query) {
2523
+ query = new Query({
2524
+ client,
2525
+ queryKey,
2526
+ queryHash,
2527
+ options: client.defaultQueryOptions(options),
2528
+ state,
2529
+ defaultOptions: client.getQueryDefaults(queryKey)
2530
+ });
2531
+ this.add(query);
2532
+ }
2533
+ return query;
2534
+ }
2535
+ add(query) {
2536
+ if (!__privateGet(this, _queries).has(query.queryHash)) {
2537
+ __privateGet(this, _queries).set(query.queryHash, query);
2538
+ this.notify({
2539
+ type: "added",
2540
+ query
2541
+ });
2542
+ }
2543
+ }
2544
+ remove(query) {
2545
+ const queryInMap = __privateGet(this, _queries).get(query.queryHash);
2546
+ if (queryInMap) {
2547
+ query.destroy();
2548
+ if (queryInMap === query) {
2549
+ __privateGet(this, _queries).delete(query.queryHash);
2550
+ }
2551
+ this.notify({ type: "removed", query });
2552
+ }
2553
+ }
2554
+ clear() {
2555
+ notifyManager.batch(() => {
2556
+ this.getAll().forEach((query) => {
2557
+ this.remove(query);
2558
+ });
2559
+ });
2560
+ }
2561
+ get(queryHash) {
2562
+ return __privateGet(this, _queries).get(queryHash);
2563
+ }
2564
+ getAll() {
2565
+ return [...__privateGet(this, _queries).values()];
2566
+ }
2567
+ find(filters) {
2568
+ const defaultedFilters = __spreadValues({ exact: true }, filters);
2569
+ return this.getAll().find(
2570
+ (query) => matchQuery(defaultedFilters, query)
2571
+ );
2572
+ }
2573
+ findAll(filters = {}) {
2574
+ const queries = this.getAll();
2575
+ return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
2576
+ }
2577
+ notify(event) {
2578
+ notifyManager.batch(() => {
2579
+ this.listeners.forEach((listener) => {
2580
+ listener(event);
2581
+ });
2582
+ });
2583
+ }
2584
+ onFocus() {
2585
+ notifyManager.batch(() => {
2586
+ this.getAll().forEach((query) => {
2587
+ query.onFocus();
2588
+ });
2589
+ });
2590
+ }
2591
+ onOnline() {
2592
+ notifyManager.batch(() => {
2593
+ this.getAll().forEach((query) => {
2594
+ query.onOnline();
2595
+ });
2596
+ });
2597
+ }
2598
+ }, _queries = new WeakMap(), _a9);
2599
+
2600
+ // node_modules/@tanstack/query-core/build/modern/queryClient.js
2601
+ init_dirname();
2602
+ init_buffer();
2603
+ init_process();
2604
+ var _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _a10;
2605
+ var QueryClient = (_a10 = class {
2606
+ constructor(config = {}) {
2607
+ __privateAdd(this, _queryCache, void 0);
2608
+ __privateAdd(this, _mutationCache2, void 0);
2609
+ __privateAdd(this, _defaultOptions2, void 0);
2610
+ __privateAdd(this, _queryDefaults, void 0);
2611
+ __privateAdd(this, _mutationDefaults, void 0);
2612
+ __privateAdd(this, _mountCount, void 0);
2613
+ __privateAdd(this, _unsubscribeFocus, void 0);
2614
+ __privateAdd(this, _unsubscribeOnline, void 0);
2615
+ __privateSet(this, _queryCache, config.queryCache || new QueryCache());
2616
+ __privateSet(this, _mutationCache2, config.mutationCache || new MutationCache());
2617
+ __privateSet(this, _defaultOptions2, config.defaultOptions || {});
2618
+ __privateSet(this, _queryDefaults, /* @__PURE__ */ new Map());
2619
+ __privateSet(this, _mutationDefaults, /* @__PURE__ */ new Map());
2620
+ __privateSet(this, _mountCount, 0);
2621
+ }
2622
+ mount() {
2623
+ __privateWrapper(this, _mountCount)._++;
2624
+ if (__privateGet(this, _mountCount) !== 1)
2625
+ return;
2626
+ __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
2627
+ if (focused) {
2628
+ await this.resumePausedMutations();
2629
+ __privateGet(this, _queryCache).onFocus();
2630
+ }
2631
+ }));
2632
+ __privateSet(this, _unsubscribeOnline, onlineManager.subscribe(async (online) => {
2633
+ if (online) {
2634
+ await this.resumePausedMutations();
2635
+ __privateGet(this, _queryCache).onOnline();
2636
+ }
2637
+ }));
2638
+ }
2639
+ unmount() {
2640
+ var _a11, _b2;
2641
+ __privateWrapper(this, _mountCount)._--;
2642
+ if (__privateGet(this, _mountCount) !== 0)
2643
+ return;
2644
+ (_a11 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a11.call(this);
2645
+ __privateSet(this, _unsubscribeFocus, void 0);
2646
+ (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
2647
+ __privateSet(this, _unsubscribeOnline, void 0);
2648
+ }
2649
+ isFetching(filters) {
2650
+ return __privateGet(this, _queryCache).findAll(__spreadProps(__spreadValues({}, filters), { fetchStatus: "fetching" })).length;
2651
+ }
2652
+ isMutating(filters) {
2653
+ return __privateGet(this, _mutationCache2).findAll(__spreadProps(__spreadValues({}, filters), { status: "pending" })).length;
2654
+ }
2655
+ /**
2656
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
2657
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
2658
+ *
2659
+ * Hint: Do not use this function inside a component, because it won't receive updates.
2660
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
2661
+ */
2662
+ getQueryData(queryKey) {
2663
+ var _a11;
2664
+ const options = this.defaultQueryOptions({ queryKey });
2665
+ return (_a11 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a11.state.data;
2666
+ }
2667
+ ensureQueryData(options) {
2668
+ const defaultedOptions = this.defaultQueryOptions(options);
2669
+ const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
2670
+ const cachedData = query.state.data;
2671
+ if (cachedData === void 0) {
2672
+ return this.fetchQuery(options);
2673
+ }
2674
+ if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {
2675
+ void this.prefetchQuery(defaultedOptions);
2676
+ }
2677
+ return Promise.resolve(cachedData);
2678
+ }
2679
+ getQueriesData(filters) {
2680
+ return __privateGet(this, _queryCache).findAll(filters).map(({ queryKey, state }) => {
2681
+ const data = state.data;
2682
+ return [queryKey, data];
2683
+ });
2684
+ }
2685
+ setQueryData(queryKey, updater, options) {
2686
+ const defaultedOptions = this.defaultQueryOptions({ queryKey });
2687
+ const query = __privateGet(this, _queryCache).get(
2688
+ defaultedOptions.queryHash
2689
+ );
2690
+ const prevData = query == null ? void 0 : query.state.data;
2691
+ const data = functionalUpdate(updater, prevData);
2692
+ if (data === void 0) {
2693
+ return void 0;
2694
+ }
2695
+ return __privateGet(this, _queryCache).build(this, defaultedOptions).setData(data, __spreadProps(__spreadValues({}, options), { manual: true }));
2696
+ }
2697
+ setQueriesData(filters, updater, options) {
2698
+ return notifyManager.batch(
2699
+ () => __privateGet(this, _queryCache).findAll(filters).map(({ queryKey }) => [
2700
+ queryKey,
2701
+ this.setQueryData(queryKey, updater, options)
2702
+ ])
2703
+ );
2704
+ }
2705
+ getQueryState(queryKey) {
2706
+ var _a11;
2707
+ const options = this.defaultQueryOptions({ queryKey });
2708
+ return (_a11 = __privateGet(this, _queryCache).get(
2709
+ options.queryHash
2710
+ )) == null ? void 0 : _a11.state;
2711
+ }
2712
+ removeQueries(filters) {
2713
+ const queryCache = __privateGet(this, _queryCache);
2714
+ notifyManager.batch(() => {
2715
+ queryCache.findAll(filters).forEach((query) => {
2716
+ queryCache.remove(query);
2717
+ });
2718
+ });
2719
+ }
2720
+ resetQueries(filters, options) {
2721
+ const queryCache = __privateGet(this, _queryCache);
2722
+ return notifyManager.batch(() => {
2723
+ queryCache.findAll(filters).forEach((query) => {
2724
+ query.reset();
2725
+ });
2726
+ return this.refetchQueries(
2727
+ __spreadValues({
2728
+ type: "active"
2729
+ }, filters),
2730
+ options
2731
+ );
2732
+ });
2733
+ }
2734
+ cancelQueries(filters, cancelOptions = {}) {
2735
+ const defaultedCancelOptions = __spreadValues({ revert: true }, cancelOptions);
2736
+ const promises = notifyManager.batch(
2737
+ () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
2738
+ );
2739
+ return Promise.all(promises).then(noop).catch(noop);
2740
+ }
2741
+ invalidateQueries(filters, options = {}) {
2742
+ return notifyManager.batch(() => {
2743
+ var _a11, _b2;
2744
+ __privateGet(this, _queryCache).findAll(filters).forEach((query) => {
2745
+ query.invalidate();
2746
+ });
2747
+ if ((filters == null ? void 0 : filters.refetchType) === "none") {
2748
+ return Promise.resolve();
2749
+ }
2750
+ return this.refetchQueries(
2751
+ __spreadProps(__spreadValues({}, filters), {
2752
+ type: (_b2 = (_a11 = filters == null ? void 0 : filters.refetchType) != null ? _a11 : filters == null ? void 0 : filters.type) != null ? _b2 : "active"
2753
+ }),
2754
+ options
2755
+ );
2756
+ });
2757
+ }
2758
+ refetchQueries(filters, options = {}) {
2759
+ var _a11;
2760
+ const fetchOptions = __spreadProps(__spreadValues({}, options), {
2761
+ cancelRefetch: (_a11 = options.cancelRefetch) != null ? _a11 : true
2762
+ });
2763
+ const promises = notifyManager.batch(
2764
+ () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
2765
+ let promise = query.fetch(void 0, fetchOptions);
2766
+ if (!fetchOptions.throwOnError) {
2767
+ promise = promise.catch(noop);
2768
+ }
2769
+ return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
2770
+ })
2771
+ );
2772
+ return Promise.all(promises).then(noop);
2773
+ }
2774
+ fetchQuery(options) {
2775
+ const defaultedOptions = this.defaultQueryOptions(options);
2776
+ if (defaultedOptions.retry === void 0) {
2777
+ defaultedOptions.retry = false;
2778
+ }
2779
+ const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
2780
+ return query.isStaleByTime(
2781
+ resolveStaleTime(defaultedOptions.staleTime, query)
2782
+ ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
2783
+ }
2784
+ prefetchQuery(options) {
2785
+ return this.fetchQuery(options).then(noop).catch(noop);
2786
+ }
2787
+ fetchInfiniteQuery(options) {
2788
+ options.behavior = infiniteQueryBehavior(options.pages);
2789
+ return this.fetchQuery(options);
2790
+ }
2791
+ prefetchInfiniteQuery(options) {
2792
+ return this.fetchInfiniteQuery(options).then(noop).catch(noop);
2793
+ }
2794
+ ensureInfiniteQueryData(options) {
2795
+ options.behavior = infiniteQueryBehavior(options.pages);
2796
+ return this.ensureQueryData(options);
2797
+ }
2798
+ resumePausedMutations() {
2799
+ if (onlineManager.isOnline()) {
2800
+ return __privateGet(this, _mutationCache2).resumePausedMutations();
2801
+ }
2802
+ return Promise.resolve();
2803
+ }
2804
+ getQueryCache() {
2805
+ return __privateGet(this, _queryCache);
2806
+ }
2807
+ getMutationCache() {
2808
+ return __privateGet(this, _mutationCache2);
2809
+ }
2810
+ getDefaultOptions() {
2811
+ return __privateGet(this, _defaultOptions2);
2812
+ }
2813
+ setDefaultOptions(options) {
2814
+ __privateSet(this, _defaultOptions2, options);
2815
+ }
2816
+ setQueryDefaults(queryKey, options) {
2817
+ __privateGet(this, _queryDefaults).set(hashKey(queryKey), {
2818
+ queryKey,
2819
+ defaultOptions: options
2820
+ });
2821
+ }
2822
+ getQueryDefaults(queryKey) {
2823
+ const defaults = [...__privateGet(this, _queryDefaults).values()];
2824
+ const result = {};
2825
+ defaults.forEach((queryDefault) => {
2826
+ if (partialMatchKey(queryKey, queryDefault.queryKey)) {
2827
+ Object.assign(result, queryDefault.defaultOptions);
2828
+ }
2829
+ });
2830
+ return result;
2831
+ }
2832
+ setMutationDefaults(mutationKey, options) {
2833
+ __privateGet(this, _mutationDefaults).set(hashKey(mutationKey), {
2834
+ mutationKey,
2835
+ defaultOptions: options
2836
+ });
2837
+ }
2838
+ getMutationDefaults(mutationKey) {
2839
+ const defaults = [...__privateGet(this, _mutationDefaults).values()];
2840
+ const result = {};
2841
+ defaults.forEach((queryDefault) => {
2842
+ if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
2843
+ Object.assign(result, queryDefault.defaultOptions);
2844
+ }
2845
+ });
2846
+ return result;
2847
+ }
2848
+ defaultQueryOptions(options) {
2849
+ if (options._defaulted) {
2850
+ return options;
2851
+ }
2852
+ const defaultedOptions = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, __privateGet(this, _defaultOptions2).queries), this.getQueryDefaults(options.queryKey)), options), {
2853
+ _defaulted: true
2854
+ });
2855
+ if (!defaultedOptions.queryHash) {
2856
+ defaultedOptions.queryHash = hashQueryKeyByOptions(
2857
+ defaultedOptions.queryKey,
2858
+ defaultedOptions
2859
+ );
2860
+ }
2861
+ if (defaultedOptions.refetchOnReconnect === void 0) {
2862
+ defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
2863
+ }
2864
+ if (defaultedOptions.throwOnError === void 0) {
2865
+ defaultedOptions.throwOnError = !!defaultedOptions.suspense;
2866
+ }
2867
+ if (!defaultedOptions.networkMode && defaultedOptions.persister) {
2868
+ defaultedOptions.networkMode = "offlineFirst";
2869
+ }
2870
+ if (defaultedOptions.queryFn === skipToken) {
2871
+ defaultedOptions.enabled = false;
2872
+ }
2873
+ return defaultedOptions;
2874
+ }
2875
+ defaultMutationOptions(options) {
2876
+ if (options == null ? void 0 : options._defaulted) {
2877
+ return options;
2878
+ }
2879
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, __privateGet(this, _defaultOptions2).mutations), (options == null ? void 0 : options.mutationKey) && this.getMutationDefaults(options.mutationKey)), options), {
2880
+ _defaulted: true
2881
+ });
2882
+ }
2883
+ clear() {
2884
+ __privateGet(this, _queryCache).clear();
2885
+ __privateGet(this, _mutationCache2).clear();
2886
+ }
2887
+ }, _queryCache = new WeakMap(), _mutationCache2 = new WeakMap(), _defaultOptions2 = new WeakMap(), _queryDefaults = new WeakMap(), _mutationDefaults = new WeakMap(), _mountCount = new WeakMap(), _unsubscribeFocus = new WeakMap(), _unsubscribeOnline = new WeakMap(), _a10);
2888
+
2889
+ // src/controllers/query.controller.ts
2890
+ var QueryController = class {
2891
+ constructor(host, optionsFn, hostPropertyName) {
2892
+ this.host = host;
2893
+ this.optionsFn = optionsFn;
2894
+ this.host.addController(this);
2895
+ this.hostPropertyName = hostPropertyName;
2896
+ if (this.optionsFn) {
2897
+ this.observeQuery(this.optionsFn);
2898
+ }
2899
+ }
2900
+ observeQuery(options, optimistic = true) {
2901
+ const queryClient = this.host.queryClient;
2902
+ const resolvedOptions = typeof options === "function" ? options() : options;
2903
+ const defaultedOptions = queryClient.defaultQueryOptions(resolvedOptions);
2904
+ this.queryObserver = new QueryObserver(queryClient, defaultedOptions);
2905
+ this.result = optimistic ? this.queryObserver.getOptimisticResult(defaultedOptions) : void 0;
2906
+ this.host.requestUpdate();
2907
+ }
2908
+ hostUpdate() {
2909
+ if (!this.optionsFn || !this.queryObserver)
2910
+ return;
2911
+ const defaultedOptions = this.host.queryClient.defaultQueryOptions(
2912
+ this.optionsFn()
2913
+ );
2914
+ this.queryObserver.setOptions(defaultedOptions);
2915
+ }
2916
+ hostConnected() {
2917
+ this.subscribe();
2918
+ }
2919
+ async subscribe() {
2920
+ var _a11;
2921
+ if (!this.queryObserver) {
2922
+ if (this.optionsFn)
2923
+ this.observeQuery(this.optionsFn);
2924
+ if (!this.queryObserver)
2925
+ return;
2926
+ }
2927
+ (_a11 = this.unsubscribe) == null ? void 0 : _a11.call(this);
2928
+ this.unsubscribe = this.queryObserver.subscribe(
2929
+ (result) => {
2930
+ this.result = result;
2931
+ if (this.hostPropertyName) {
2932
+ ;
2933
+ this.host[this.hostPropertyName] = result;
2934
+ }
2935
+ this.host.requestUpdate();
2936
+ }
2937
+ );
2938
+ this.queryObserver.updateResult();
2939
+ this.host.requestUpdate();
2940
+ }
2941
+ hostDisconnected() {
2942
+ var _a11;
2943
+ (_a11 = this.unsubscribe) == null ? void 0 : _a11.call(this);
2944
+ this.unsubscribe = void 0;
2945
+ }
2946
+ };
2947
+
2948
+ export {
2949
+ dehydrate,
2950
+ hydrate,
2951
+ MutationObserver,
2952
+ QueryClient,
2953
+ QueryController
2954
+ };