@iota-uz/sdk 0.46.0 → 0.47.0

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 (535) hide show
  1. package/README.md +5 -0
  2. package/dist/client-host/identity.d.ts +4 -4
  3. package/dist/client-host/identity.js +2 -2
  4. package/dist/lens/{CascadePanel-Bha4qY7J.js → CascadePanel-BlYJd18G.js} +1 -1
  5. package/dist/lens/{ChartDataEquivalent-Bwgn4yYB.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
  6. package/dist/lens/{ChartPanel-BZpzBuwl.js → ChartPanel-BIJjrs5D.js} +159 -159
  7. package/dist/lens/{CoveragePanel-D40AuKkD.js → CoveragePanel-CHtXDMtt.js} +1 -1
  8. package/dist/lens/{GaugePanel-C9k2TuJH.js → GaugePanel-By0TOJPa.js} +1 -1
  9. package/dist/lens/LensDashboard.d.ts +13 -0
  10. package/dist/lens/LensDashboard.d.ts.map +1 -1
  11. package/dist/lens/{MapPanel-ZYxfDsPM.js → MapPanel-Cw4ELCiM.js} +3 -3
  12. package/dist/lens/{MetricFlowPanel-CmESLoLK.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
  13. package/dist/lens/{MetricHierarchyPanel-UZVuJ5P2.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
  14. package/dist/lens/{MetricRelationshipPanel-CXLdScAy.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
  15. package/dist/lens/{PrintReport-lrfdCTZO.js → PrintReport-C0OV1iHP.js} +5 -5
  16. package/dist/lens/{QualityChip-BYz-DHfs.js → QualityChip-DTi-0jdh.js} +1 -1
  17. package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
  18. package/dist/lens/TablePanel-BusKU7cU.js +994 -0
  19. package/dist/lens/{adapter-CeAqYWqm.js → adapter-CQg4-M7p.js} +7 -7
  20. package/dist/lens/contract/schemas.d.ts +2 -0
  21. package/dist/lens/contract/schemas.d.ts.map +1 -1
  22. package/dist/lens/contract/types.d.ts +12 -0
  23. package/dist/lens/contract/types.d.ts.map +1 -1
  24. package/dist/lens/{dashboardEdit-DKVE_6J_.js → dashboardEdit-CJgCVfi_.js} +1 -1
  25. package/dist/lens/explore/DrillOverlay.d.ts +38 -0
  26. package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
  27. package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
  28. package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
  29. package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
  30. package/dist/lens/explore/drillHost.d.ts +25 -0
  31. package/dist/lens/explore/drillHost.d.ts.map +1 -0
  32. package/dist/lens/explore/investigation.d.ts +174 -0
  33. package/dist/lens/explore/investigation.d.ts.map +1 -0
  34. package/dist/lens/explore/provenanceLabels.d.ts +10 -0
  35. package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
  36. package/dist/lens/index-DR7Hf8Km.js +19805 -0
  37. package/dist/lens/{index-DkVTXC8W.js → index-DZFw4cqF.js} +1 -1
  38. package/dist/lens/index.d.ts +7 -1
  39. package/dist/lens/index.d.ts.map +1 -1
  40. package/dist/lens/index.js +67 -53
  41. package/dist/lens/{install-CQ_iMuAE.js → install-B2lTK6uo.js} +1 -1
  42. package/dist/lens/{install-Ch0_qifK.js → install-BXr4Mnc0.js} +1 -1
  43. package/dist/lens/{install-CKmxqMe1.js → install-CicNQ_ks.js} +1 -1
  44. package/dist/lens/{install-BwD_xNlp.js → install-d8A0WPiw.js} +1 -1
  45. package/dist/lens/{keys-BBmWdfaH.js → keys-C-Akc9lZ.js} +2 -2
  46. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  47. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  48. package/dist/lens/panels/actions.d.ts.map +1 -1
  49. package/dist/lens/panels/panelFailure.d.ts.map +1 -1
  50. package/dist/lens/{prefetch-BXoUIIgq.js → prefetch-C9kxuIs8.js} +2 -2
  51. package/dist/lens/{prefetchPanels-a-zs_bDm.js → prefetchPanels-gbY9RIqL.js} +1 -1
  52. package/dist/lens/{print-CpgWJxDG.js → print-CllsAP3d.js} +1 -1
  53. package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
  54. package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
  55. package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
  56. package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
  57. package/dist/lens/reports/ReportPicker.d.ts +6 -0
  58. package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
  59. package/dist/lens/reports/dashboardEdit.d.ts +3 -0
  60. package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
  61. package/dist/lens/reports/editing.d.ts +35 -0
  62. package/dist/lens/reports/editing.d.ts.map +1 -1
  63. package/dist/lens/reports/picker.d.ts +4 -1
  64. package/dist/lens/reports/picker.d.ts.map +1 -1
  65. package/dist/lens/runtime/index.d.ts +0 -1
  66. package/dist/lens/runtime/index.d.ts.map +1 -1
  67. package/dist/lens/runtime/messages.d.ts +2 -2
  68. package/dist/lens/runtime/messages.d.ts.map +1 -1
  69. package/dist/lens/runtime/provider.d.ts +5 -1
  70. package/dist/lens/runtime/provider.d.ts.map +1 -1
  71. package/dist/lens/runtime/returnContext.d.ts +62 -0
  72. package/dist/lens/runtime/returnContext.d.ts.map +1 -0
  73. package/dist/lens/runtime/tableSummary.d.ts +9 -0
  74. package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
  75. package/dist/lens/{scales-BLf9OweG.js → scales-CO6Q9RtG.js} +1 -1
  76. package/dist/lens/style.css +1 -1
  77. package/dist/runtime/README.md +24 -0
  78. package/dist/runtime/assert.d.ts +51 -0
  79. package/dist/runtime/assert.js +172 -0
  80. package/dist/runtime/build/README.txt +1 -0
  81. package/dist/runtime/build/extract.mjs +342 -0
  82. package/dist/runtime/build/shared-exports.json +388 -0
  83. package/dist/runtime/build/test-child.mjs +136 -0
  84. package/dist/runtime/build/theme/tailwind.config.js +121 -0
  85. package/dist/runtime/build/theme/theme.css +462 -0
  86. package/dist/runtime/build/theme/utilities.css +1 -0
  87. package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
  88. package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
  89. package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
  90. package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
  91. package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
  92. package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
  93. package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
  94. package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
  95. package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
  96. package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
  97. package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
  98. package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
  99. package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
  100. package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
  101. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
  102. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  103. package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
  104. package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
  105. package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
  106. package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
  107. package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
  108. package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
  109. package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
  110. package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
  111. package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
  112. package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
  113. package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
  114. package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
  115. package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
  116. package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  117. package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
  118. package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
  119. package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
  120. package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
  121. package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
  122. package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
  123. package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
  124. package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
  125. package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
  126. package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
  127. package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
  128. package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
  129. package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
  130. package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
  131. package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
  132. package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
  133. package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
  134. package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
  135. package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
  136. package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
  137. package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
  138. package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
  139. package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  140. package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
  141. package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
  142. package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
  143. package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
  144. package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
  145. package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
  146. package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
  147. package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
  148. package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
  149. package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
  150. package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
  151. package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
  152. package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
  153. package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
  154. package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
  155. package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
  156. package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
  157. package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
  158. package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
  159. package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
  160. package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
  161. package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
  162. package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
  163. package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
  164. package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
  165. package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
  166. package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
  167. package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
  168. package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
  169. package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
  170. package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
  171. package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
  172. package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
  173. package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
  174. package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
  175. package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
  176. package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
  177. package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
  178. package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
  179. package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
  180. package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
  181. package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
  182. package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
  183. package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
  184. package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
  185. package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
  186. package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
  187. package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
  188. package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
  189. package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
  190. package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
  191. package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
  192. package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
  193. package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
  194. package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
  195. package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
  196. package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
  197. package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
  198. package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
  199. package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
  200. package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
  201. package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
  202. package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
  203. package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
  204. package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
  205. package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
  206. package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
  207. package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
  208. package/dist/runtime/build/vendor/node-types/package.json +140 -0
  209. package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
  210. package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
  211. package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
  212. package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
  213. package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
  214. package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
  215. package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
  216. package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
  217. package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
  218. package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
  219. package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
  220. package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
  221. package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
  222. package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
  223. package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
  224. package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
  225. package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
  226. package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
  227. package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
  228. package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
  229. package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
  230. package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
  231. package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
  232. package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
  233. package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
  234. package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
  235. package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
  236. package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
  237. package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
  238. package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
  239. package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
  240. package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
  241. package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
  242. package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
  243. package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
  244. package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
  245. package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
  246. package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
  247. package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
  248. package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
  249. package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
  250. package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
  251. package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
  252. package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
  253. package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
  254. package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
  255. package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
  256. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
  257. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
  258. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
  259. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
  260. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
  261. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
  262. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
  263. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
  264. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
  265. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
  266. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
  267. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
  268. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
  269. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
  270. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
  271. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
  272. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
  273. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
  274. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
  275. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
  276. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
  277. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
  278. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
  279. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
  280. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
  281. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
  282. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
  283. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
  284. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
  285. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
  286. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
  287. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
  288. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
  289. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
  290. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
  291. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
  292. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
  293. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
  294. package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
  295. package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
  296. package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
  297. package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
  298. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
  299. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
  300. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
  301. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
  302. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
  303. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
  304. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
  305. package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
  306. package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
  307. package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
  308. package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
  309. package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
  310. package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
  311. package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
  312. package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
  313. package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
  314. package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
  315. package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
  316. package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
  317. package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
  318. package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
  319. package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
  320. package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
  321. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
  322. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
  323. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
  324. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
  325. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
  326. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
  327. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
  328. package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
  329. package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
  330. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
  331. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
  332. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
  333. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
  334. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
  335. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
  336. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
  337. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
  338. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
  339. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
  340. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
  341. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
  342. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
  343. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
  344. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
  345. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
  346. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
  347. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
  348. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
  349. package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
  350. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
  351. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
  352. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
  353. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
  354. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
  355. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
  356. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
  357. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
  358. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
  359. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
  360. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
  361. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
  362. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
  363. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
  364. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
  365. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
  366. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
  367. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
  368. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
  369. package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
  370. package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
  371. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
  372. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
  373. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
  374. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
  375. package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
  376. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
  377. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
  378. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
  379. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
  380. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
  381. package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
  382. package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
  383. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
  384. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
  385. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
  386. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
  387. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
  388. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
  389. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
  390. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
  391. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
  392. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
  393. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
  394. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
  395. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
  396. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
  397. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
  398. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
  399. package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
  400. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
  401. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
  402. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
  403. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
  404. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
  405. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
  406. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
  407. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
  408. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
  409. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
  410. package/dist/runtime/build/worker.mjs +293415 -0
  411. package/dist/runtime/catalog/sdk-natives.json +655 -0
  412. package/dist/runtime/cli/iota-ext.mjs +1028 -0
  413. package/dist/runtime/client-host/entry.d.ts +10 -0
  414. package/dist/runtime/client-host/entry.js +124 -0
  415. package/dist/runtime/client-host/hooks.d.ts +43 -0
  416. package/dist/runtime/client-host/hooks.js +94 -0
  417. package/dist/runtime/client-host/index.d.ts +9 -0
  418. package/dist/runtime/client-host/index.js +9 -0
  419. package/dist/runtime/client-host/islands.d.ts +44 -0
  420. package/dist/runtime/client-host/islands.js +165 -0
  421. package/dist/runtime/client-host/kit.d.ts +10 -0
  422. package/dist/runtime/client-host/kit.js +37 -0
  423. package/dist/runtime/client-host/page.d.ts +53 -0
  424. package/dist/runtime/client-host/page.js +217 -0
  425. package/dist/runtime/client-host/params.d.ts +8 -0
  426. package/dist/runtime/client-host/params.js +36 -0
  427. package/dist/runtime/client-host/protocol.d.ts +78 -0
  428. package/dist/runtime/client-host/protocol.js +26 -0
  429. package/dist/runtime/client-host/shared.d.ts +12 -0
  430. package/dist/runtime/client-host/shared.js +49 -0
  431. package/dist/runtime/client-host/shell.d.ts +88 -0
  432. package/dist/runtime/client-host/shell.js +195 -0
  433. package/dist/runtime/client-host/slots.d.ts +54 -0
  434. package/dist/runtime/client-host/slots.js +90 -0
  435. package/dist/runtime/client-host/styles.d.ts +7 -0
  436. package/dist/runtime/client-host/styles.js +61 -0
  437. package/dist/runtime/client-host/transport.d.ts +45 -0
  438. package/dist/runtime/client-host/transport.js +115 -0
  439. package/dist/runtime/client.d.ts +226 -0
  440. package/dist/runtime/client.js +121 -0
  441. package/dist/runtime/contracts.d.ts +204 -0
  442. package/dist/runtime/contracts.js +195 -0
  443. package/dist/runtime/docs/authoring.md +1609 -0
  444. package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
  445. package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
  446. package/dist/runtime/docs/example/docs/en/points.md +9 -0
  447. package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
  448. package/dist/runtime/docs/example/package.json +27 -0
  449. package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
  450. package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
  451. package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
  452. package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
  453. package/dist/runtime/docs/example/src/client.tsx +40 -0
  454. package/dist/runtime/docs/example/src/contracts.ts +132 -0
  455. package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
  456. package/dist/runtime/docs/example/src/server.test.ts +156 -0
  457. package/dist/runtime/docs/example/src/server.ts +188 -0
  458. package/dist/runtime/docs/example/tsconfig.json +16 -0
  459. package/dist/runtime/entity.d.ts +237 -0
  460. package/dist/runtime/entity.js +201 -0
  461. package/dist/runtime/fakes.d.ts +80 -0
  462. package/dist/runtime/fakes.js +88 -0
  463. package/dist/runtime/fixtures.d.ts +34 -0
  464. package/dist/runtime/fixtures.js +60 -0
  465. package/dist/runtime/help.d.ts +22 -0
  466. package/dist/runtime/help.js +51 -0
  467. package/dist/runtime/host/context.mjs +392 -0
  468. package/dist/runtime/host/errors.mjs +64 -0
  469. package/dist/runtime/host/loader.mjs +28 -0
  470. package/dist/runtime/host/protocol.mjs +4 -0
  471. package/dist/runtime/host/register.mjs +8 -0
  472. package/dist/runtime/host/sdk/assert.mjs +153 -0
  473. package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
  474. package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
  475. package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
  476. package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
  477. package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
  478. package/dist/runtime/host/sdk/client.mjs +115 -0
  479. package/dist/runtime/host/sdk/contracts.mjs +185 -0
  480. package/dist/runtime/host/sdk/entity.mjs +183 -0
  481. package/dist/runtime/host/sdk/fakes.mjs +88 -0
  482. package/dist/runtime/host/sdk/fixtures.mjs +56 -0
  483. package/dist/runtime/host/sdk/help.mjs +37 -0
  484. package/dist/runtime/host/sdk/index.mjs +83 -0
  485. package/dist/runtime/host/sdk/kit.mjs +11 -0
  486. package/dist/runtime/host/sdk/manifest.mjs +276 -0
  487. package/dist/runtime/host/sdk/model.mjs +4 -0
  488. package/dist/runtime/host/sdk/resource.mjs +34 -0
  489. package/dist/runtime/host/sdk/schema.mjs +75 -0
  490. package/dist/runtime/host/sdk/server.mjs +43 -0
  491. package/dist/runtime/host/sdk/testhost.mjs +992 -0
  492. package/dist/runtime/host/sdk/testing.mjs +21 -0
  493. package/dist/runtime/host/sdk/wire.mjs +207 -0
  494. package/dist/runtime/host/worker.mjs +252 -0
  495. package/dist/runtime/index.d.ts +10 -0
  496. package/dist/runtime/index.js +5 -0
  497. package/dist/runtime/kit.d.ts +5 -0
  498. package/dist/runtime/kit.js +14 -0
  499. package/dist/runtime/manifest.d.ts +17 -0
  500. package/dist/runtime/manifest.js +323 -0
  501. package/dist/runtime/model.d.ts +224 -0
  502. package/dist/runtime/model.js +3 -0
  503. package/dist/runtime/resource.d.ts +31 -0
  504. package/dist/runtime/resource.js +35 -0
  505. package/dist/runtime/schema.d.ts +97 -0
  506. package/dist/runtime/schema.js +73 -0
  507. package/dist/runtime/server.d.ts +445 -0
  508. package/dist/runtime/server.js +41 -0
  509. package/dist/runtime/testhost.d.ts +216 -0
  510. package/dist/runtime/testhost.js +1146 -0
  511. package/dist/runtime/testing.d.ts +10 -0
  512. package/dist/runtime/testing.js +7 -0
  513. package/dist/runtime/wire.d.ts +26 -0
  514. package/dist/runtime/wire.js +236 -0
  515. package/dist/sdk-identity.cjs +3 -3
  516. package/dist/sdk-identity.js +3 -3
  517. package/dist/sdk-identity.json +2 -2
  518. package/dist/solid-ui/embedded-css.d.ts +2 -0
  519. package/dist/solid-ui/embedded-css.js +1 -0
  520. package/dist/solid-ui/embedded.css +2 -0
  521. package/dist/testing/components.d.ts +73 -0
  522. package/dist/testing/components.js +96 -0
  523. package/dist/testing/htmx.d.ts +44 -0
  524. package/dist/testing/htmx.js +284 -0
  525. package/dist/testing/index.d.ts +4 -41
  526. package/dist/testing/index.js +3 -206
  527. package/dist/testing/scenarios.d.ts +83 -0
  528. package/dist/testing/scenarios.js +74 -0
  529. package/dist/testing/wait.d.ts +7 -0
  530. package/dist/testing/wait.js +19 -0
  531. package/package.json +33 -2
  532. package/dist/lens/TablePanel-C09tzJOL.js +0 -980
  533. package/dist/lens/index-DcVtZneD.js +0 -18473
  534. package/dist/lens/runtime/recovery.d.ts +0 -26
  535. package/dist/lens/runtime/recovery.d.ts.map +0 -1
@@ -0,0 +1,1808 @@
1
+ 'use strict';
2
+
3
+ let taskIdCounter = 1,
4
+ isCallbackScheduled = false,
5
+ isPerformingWork = false,
6
+ taskQueue = [],
7
+ currentTask = null,
8
+ shouldYieldToHost = null,
9
+ yieldInterval = 5,
10
+ deadline = 0,
11
+ maxYieldInterval = 300,
12
+ maxDeadline = 0,
13
+ scheduleCallback = null,
14
+ scheduledCallback = null;
15
+ const maxSigned31BitInt = 1073741823;
16
+ function setupScheduler() {
17
+ const channel = new MessageChannel(),
18
+ port1 = channel.port1,
19
+ port = channel.port2;
20
+ if (typeof port1.unref === "function") port1.unref();
21
+ if (typeof port.unref === "function") port.unref();
22
+ scheduleCallback = () => port.postMessage(null);
23
+ port1.onmessage = () => {
24
+ if (scheduledCallback !== null) {
25
+ const currentTime = performance.now();
26
+ deadline = currentTime + yieldInterval;
27
+ maxDeadline = currentTime + maxYieldInterval;
28
+ try {
29
+ const hasMoreWork = scheduledCallback(currentTime);
30
+ if (!hasMoreWork) {
31
+ scheduledCallback = null;
32
+ } else port.postMessage(null);
33
+ } catch (error) {
34
+ port.postMessage(null);
35
+ throw error;
36
+ }
37
+ }
38
+ };
39
+ if (navigator && navigator.scheduling && navigator.scheduling.isInputPending) {
40
+ const scheduling = navigator.scheduling;
41
+ shouldYieldToHost = () => {
42
+ const currentTime = performance.now();
43
+ if (currentTime >= deadline) {
44
+ if (scheduling.isInputPending()) {
45
+ return true;
46
+ }
47
+ return currentTime >= maxDeadline;
48
+ } else {
49
+ return false;
50
+ }
51
+ };
52
+ } else {
53
+ shouldYieldToHost = () => performance.now() >= deadline;
54
+ }
55
+ }
56
+ function enqueue(taskQueue, task) {
57
+ function findIndex() {
58
+ let m = 0;
59
+ let n = taskQueue.length - 1;
60
+ while (m <= n) {
61
+ const k = n + m >> 1;
62
+ const cmp = task.expirationTime - taskQueue[k].expirationTime;
63
+ if (cmp > 0) m = k + 1;else if (cmp < 0) n = k - 1;else return k;
64
+ }
65
+ return m;
66
+ }
67
+ taskQueue.splice(findIndex(), 0, task);
68
+ }
69
+ function requestCallback(fn, options) {
70
+ if (!scheduleCallback) setupScheduler();
71
+ let startTime = performance.now(),
72
+ timeout = maxSigned31BitInt;
73
+ if (options && options.timeout) timeout = options.timeout;
74
+ const newTask = {
75
+ id: taskIdCounter++,
76
+ fn,
77
+ startTime,
78
+ expirationTime: startTime + timeout
79
+ };
80
+ enqueue(taskQueue, newTask);
81
+ if (!isCallbackScheduled && !isPerformingWork) {
82
+ isCallbackScheduled = true;
83
+ scheduledCallback = flushWork;
84
+ scheduleCallback();
85
+ }
86
+ return newTask;
87
+ }
88
+ function cancelCallback(task) {
89
+ task.fn = null;
90
+ }
91
+ function flushWork(initialTime) {
92
+ isCallbackScheduled = false;
93
+ isPerformingWork = true;
94
+ try {
95
+ return workLoop(initialTime);
96
+ } finally {
97
+ currentTask = null;
98
+ isPerformingWork = false;
99
+ }
100
+ }
101
+ function workLoop(initialTime) {
102
+ let currentTime = initialTime;
103
+ currentTask = taskQueue[0] || null;
104
+ while (currentTask !== null) {
105
+ if (currentTask.expirationTime > currentTime && shouldYieldToHost()) {
106
+ break;
107
+ }
108
+ const callback = currentTask.fn;
109
+ if (callback !== null) {
110
+ currentTask.fn = null;
111
+ const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
112
+ callback(didUserCallbackTimeout);
113
+ currentTime = performance.now();
114
+ if (currentTask === taskQueue[0]) {
115
+ taskQueue.shift();
116
+ }
117
+ } else taskQueue.shift();
118
+ currentTask = taskQueue[0] || null;
119
+ }
120
+ return currentTask !== null;
121
+ }
122
+
123
+ const sharedConfig = {
124
+ context: undefined,
125
+ registry: undefined,
126
+ effects: undefined,
127
+ done: false,
128
+ getContextId() {
129
+ return getContextId(this.context.count);
130
+ },
131
+ getNextContextId() {
132
+ return getContextId(this.context.count++);
133
+ }
134
+ };
135
+ function getContextId(count) {
136
+ const num = String(count),
137
+ len = num.length - 1;
138
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
139
+ }
140
+ function setHydrateContext(context) {
141
+ sharedConfig.context = context;
142
+ }
143
+ function nextHydrateContext() {
144
+ return {
145
+ ...sharedConfig.context,
146
+ id: sharedConfig.getNextContextId(),
147
+ count: 0
148
+ };
149
+ }
150
+
151
+ const IS_DEV = false;
152
+ const equalFn = (a, b) => a === b;
153
+ const $PROXY = Symbol("solid-proxy");
154
+ const SUPPORTS_PROXY = typeof Proxy === "function";
155
+ const $TRACK = Symbol("solid-track");
156
+ const $DEVCOMP = Symbol("solid-dev-component");
157
+ const signalOptions = {
158
+ equals: equalFn
159
+ };
160
+ let ERROR = null;
161
+ let runEffects = runQueue;
162
+ const STALE = 1;
163
+ const PENDING = 2;
164
+ const UNOWNED = {
165
+ owned: null,
166
+ cleanups: null,
167
+ context: null,
168
+ owner: null
169
+ };
170
+ const NO_INIT = {};
171
+ var Owner = null;
172
+ let Transition = null;
173
+ let Scheduler = null;
174
+ let ExternalSourceConfig = null;
175
+ let Listener = null;
176
+ let Updates = null;
177
+ let Effects = null;
178
+ let ExecCount = 0;
179
+ function createRoot(fn, detachedOwner) {
180
+ const listener = Listener,
181
+ owner = Owner,
182
+ unowned = fn.length === 0,
183
+ current = detachedOwner === undefined ? owner : detachedOwner,
184
+ root = unowned ? UNOWNED : {
185
+ owned: null,
186
+ cleanups: null,
187
+ context: current ? current.context : null,
188
+ owner: current
189
+ },
190
+ updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
191
+ Owner = root;
192
+ Listener = null;
193
+ try {
194
+ return runUpdates(updateFn, true);
195
+ } finally {
196
+ Listener = listener;
197
+ Owner = owner;
198
+ }
199
+ }
200
+ function createSignal(value, options) {
201
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
202
+ const s = {
203
+ value,
204
+ observers: null,
205
+ observerSlots: null,
206
+ comparator: options.equals || undefined
207
+ };
208
+ const setter = value => {
209
+ if (typeof value === "function") {
210
+ if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);else value = value(s.value);
211
+ }
212
+ return writeSignal(s, value);
213
+ };
214
+ return [readSignal.bind(s), setter];
215
+ }
216
+ function createComputed(fn, value, options) {
217
+ const c = createComputation(fn, value, true, STALE);
218
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
219
+ }
220
+ function createRenderEffect(fn, value, options) {
221
+ const c = createComputation(fn, value, false, STALE);
222
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
223
+ }
224
+ function createEffect(fn, value, options) {
225
+ runEffects = runUserEffects;
226
+ const c = createComputation(fn, value, false, STALE),
227
+ s = SuspenseContext && useContext(SuspenseContext);
228
+ if (s) c.suspense = s;
229
+ if (!options || !options.render) c.user = true;
230
+ Effects ? Effects.push(c) : updateComputation(c);
231
+ }
232
+ function createReaction(onInvalidate, options) {
233
+ let fn;
234
+ const c = createComputation(() => {
235
+ fn ? fn() : untrack(onInvalidate);
236
+ fn = undefined;
237
+ }, undefined, false, 0),
238
+ s = SuspenseContext && useContext(SuspenseContext);
239
+ if (s) c.suspense = s;
240
+ c.user = true;
241
+ return tracking => {
242
+ fn = tracking;
243
+ updateComputation(c);
244
+ };
245
+ }
246
+ function createMemo(fn, value, options) {
247
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
248
+ const c = createComputation(fn, value, true, 0);
249
+ c.observers = null;
250
+ c.observerSlots = null;
251
+ c.comparator = options.equals || undefined;
252
+ if (Scheduler && Transition && Transition.running) {
253
+ c.tState = STALE;
254
+ Updates.push(c);
255
+ } else updateComputation(c);
256
+ return readSignal.bind(c);
257
+ }
258
+ function isPromise(v) {
259
+ return v && typeof v === "object" && "then" in v;
260
+ }
261
+ function createResource(pSource, pFetcher, pOptions) {
262
+ let source;
263
+ let fetcher;
264
+ let options;
265
+ if (typeof pFetcher === "function") {
266
+ source = pSource;
267
+ fetcher = pFetcher;
268
+ options = pOptions || {};
269
+ } else {
270
+ source = true;
271
+ fetcher = pSource;
272
+ options = pFetcher || {};
273
+ }
274
+ let pr = null,
275
+ initP = NO_INIT,
276
+ id = null,
277
+ loadedUnderTransition = false,
278
+ scheduled = false,
279
+ resolved = "initialValue" in options,
280
+ dynamic = typeof source === "function" && createMemo(source);
281
+ const contexts = new Set(),
282
+ [value, setValue] = (options.storage || createSignal)(options.initialValue),
283
+ [error, setError] = createSignal(undefined),
284
+ [track, trigger] = createSignal(undefined, {
285
+ equals: false
286
+ }),
287
+ [state, setState] = createSignal(resolved ? "ready" : "unresolved");
288
+ if (Owner) onCleanup(() => {
289
+ for (const c of contexts.keys()) c.decrement();
290
+ contexts.clear();
291
+ if (Transition && pr) Transition.promises.delete(pr);
292
+ pr = null;
293
+ });
294
+ if (sharedConfig.context) {
295
+ id = sharedConfig.getNextContextId();
296
+ if (options.ssrLoadFrom === "initial") initP = options.initialValue;else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
297
+ }
298
+ function loadEnd(p, v, error, key) {
299
+ if (pr === p) {
300
+ pr = null;
301
+ key !== undefined && (resolved = true);
302
+ if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
303
+ value: v
304
+ }));
305
+ initP = NO_INIT;
306
+ if (Transition && p && loadedUnderTransition) {
307
+ Transition.promises.delete(p);
308
+ loadedUnderTransition = false;
309
+ runUpdates(() => {
310
+ Transition.running = true;
311
+ completeLoad(v, error);
312
+ }, false);
313
+ } else completeLoad(v, error);
314
+ }
315
+ return v;
316
+ }
317
+ function completeLoad(v, err) {
318
+ runUpdates(() => {
319
+ if (err === undefined) setValue(() => v);
320
+ setState(err !== undefined ? "errored" : resolved ? "ready" : "unresolved");
321
+ setError(err);
322
+ for (const c of contexts.keys()) c.decrement();
323
+ contexts.clear();
324
+ }, false);
325
+ }
326
+ function read() {
327
+ const c = SuspenseContext && useContext(SuspenseContext),
328
+ v = value(),
329
+ err = error();
330
+ if (err !== undefined && !pr) throw err;
331
+ if (Listener && !Listener.user && c) {
332
+ createComputed(() => {
333
+ track();
334
+ if (pr) {
335
+ if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);else if (!contexts.has(c)) {
336
+ c.increment();
337
+ contexts.add(c);
338
+ }
339
+ }
340
+ });
341
+ }
342
+ return v;
343
+ }
344
+ function load(refetching = true) {
345
+ if (refetching !== false && scheduled) return;
346
+ scheduled = false;
347
+ const lookup = dynamic ? dynamic() : source;
348
+ loadedUnderTransition = Transition && Transition.running;
349
+ if (lookup == null || lookup === false) {
350
+ loadEnd(pr, untrack(value));
351
+ return;
352
+ }
353
+ if (Transition && pr) Transition.promises.delete(pr);
354
+ let error;
355
+ const p = initP !== NO_INIT ? initP : untrack(() => {
356
+ try {
357
+ return fetcher(lookup, {
358
+ value: value(),
359
+ refetching
360
+ });
361
+ } catch (fetcherError) {
362
+ error = fetcherError;
363
+ }
364
+ });
365
+ if (error !== undefined) {
366
+ loadEnd(pr, undefined, castError(error), lookup);
367
+ return;
368
+ } else if (!isPromise(p)) {
369
+ loadEnd(pr, p, undefined, lookup);
370
+ return p;
371
+ }
372
+ pr = p;
373
+ if ("v" in p) {
374
+ if (p.s === 1) loadEnd(pr, p.v, undefined, lookup);else loadEnd(pr, undefined, castError(p.v), lookup);
375
+ return p;
376
+ }
377
+ scheduled = true;
378
+ queueMicrotask(() => scheduled = false);
379
+ runUpdates(() => {
380
+ setState(resolved ? "refreshing" : "pending");
381
+ trigger();
382
+ }, false);
383
+ return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
384
+ }
385
+ Object.defineProperties(read, {
386
+ state: {
387
+ get: () => state()
388
+ },
389
+ error: {
390
+ get: () => error()
391
+ },
392
+ loading: {
393
+ get() {
394
+ const s = state();
395
+ return s === "pending" || s === "refreshing";
396
+ }
397
+ },
398
+ latest: {
399
+ get() {
400
+ if (!resolved) return read();
401
+ const err = error();
402
+ if (err && !pr) throw err;
403
+ return value();
404
+ }
405
+ }
406
+ });
407
+ let owner = Owner;
408
+ if (dynamic) createComputed(() => (owner = Owner, load(false)));else load(false);
409
+ return [read, {
410
+ refetch: info => runWithOwner(owner, () => load(info)),
411
+ mutate: setValue
412
+ }];
413
+ }
414
+ function createDeferred(source, options) {
415
+ let t,
416
+ timeout = options ? options.timeoutMs : undefined;
417
+ const node = createComputation(() => {
418
+ if (!t || !t.fn) t = requestCallback(() => setDeferred(() => node.value), timeout !== undefined ? {
419
+ timeout
420
+ } : undefined);
421
+ return source();
422
+ }, undefined, true);
423
+ const [deferred, setDeferred] = createSignal(Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, options);
424
+ updateComputation(node);
425
+ setDeferred(() => Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
426
+ return deferred;
427
+ }
428
+ function createSelector(source, fn = equalFn, options) {
429
+ const subs = new Map();
430
+ const node = createComputation(p => {
431
+ const v = source();
432
+ for (const [key, val] of subs.entries()) if (fn(key, v) !== fn(key, p)) {
433
+ for (const c of val.values()) {
434
+ if (Transition && Transition.running) c.tState = STALE;else c.state = STALE;
435
+ if (c.pure) Updates.push(c);else Effects.push(c);
436
+ }
437
+ }
438
+ return v;
439
+ }, undefined, true, STALE);
440
+ updateComputation(node);
441
+ return key => {
442
+ const listener = Listener;
443
+ if (listener) {
444
+ let l;
445
+ if (l = subs.get(key)) l.add(listener);else subs.set(key, l = new Set([listener]));
446
+ onCleanup(() => {
447
+ l.delete(listener);
448
+ !l.size && subs.delete(key);
449
+ });
450
+ }
451
+ return fn(key, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
452
+ };
453
+ }
454
+ function batch(fn) {
455
+ return runUpdates(fn, false);
456
+ }
457
+ function untrack(fn) {
458
+ if (!ExternalSourceConfig && Listener === null) return fn();
459
+ const listener = Listener;
460
+ Listener = null;
461
+ try {
462
+ if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
463
+ return fn();
464
+ } finally {
465
+ Listener = listener;
466
+ }
467
+ }
468
+ function on(deps, fn, options) {
469
+ const isArray = Array.isArray(deps);
470
+ let prevInput;
471
+ let defer = options && options.defer;
472
+ return prevValue => {
473
+ let input;
474
+ if (isArray) {
475
+ input = Array(deps.length);
476
+ for (let i = 0; i < deps.length; i++) input[i] = deps[i]();
477
+ } else input = deps();
478
+ if (defer) {
479
+ defer = false;
480
+ return prevValue;
481
+ }
482
+ const result = untrack(() => fn(input, prevInput, prevValue));
483
+ prevInput = input;
484
+ return result;
485
+ };
486
+ }
487
+ function onMount(fn) {
488
+ createEffect(() => untrack(fn));
489
+ }
490
+ function onCleanup(fn) {
491
+ if (Owner === null) ;else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
492
+ return fn;
493
+ }
494
+ function catchError(fn, handler) {
495
+ ERROR || (ERROR = Symbol("error"));
496
+ Owner = createComputation(undefined, undefined, true);
497
+ Owner.context = {
498
+ ...Owner.context,
499
+ [ERROR]: [handler]
500
+ };
501
+ if (Transition && Transition.running) Transition.sources.add(Owner);
502
+ try {
503
+ return fn();
504
+ } catch (err) {
505
+ handleError(err);
506
+ } finally {
507
+ Owner = Owner.owner;
508
+ }
509
+ }
510
+ function getListener() {
511
+ return Listener;
512
+ }
513
+ function getOwner() {
514
+ return Owner;
515
+ }
516
+ function runWithOwner(o, fn) {
517
+ const prev = Owner;
518
+ const prevListener = Listener;
519
+ Owner = o;
520
+ Listener = null;
521
+ try {
522
+ return runUpdates(fn, true);
523
+ } catch (err) {
524
+ handleError(err);
525
+ } finally {
526
+ Owner = prev;
527
+ Listener = prevListener;
528
+ }
529
+ }
530
+ function enableScheduling(scheduler = requestCallback) {
531
+ Scheduler = scheduler;
532
+ }
533
+ function startTransition(fn) {
534
+ if (Transition && Transition.running) {
535
+ fn();
536
+ return Transition.done;
537
+ }
538
+ const l = Listener;
539
+ const o = Owner;
540
+ return Promise.resolve().then(() => {
541
+ Listener = l;
542
+ Owner = o;
543
+ let t;
544
+ if (Scheduler || SuspenseContext) {
545
+ t = Transition || (Transition = {
546
+ sources: new Set(),
547
+ effects: [],
548
+ promises: new Set(),
549
+ disposed: new Set(),
550
+ queue: new Set(),
551
+ running: true
552
+ });
553
+ t.done || (t.done = new Promise(res => t.resolve = res));
554
+ t.running = true;
555
+ }
556
+ runUpdates(fn, false);
557
+ Listener = Owner = null;
558
+ return t ? t.done : undefined;
559
+ });
560
+ }
561
+ const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
562
+ function useTransition() {
563
+ return [transPending, startTransition];
564
+ }
565
+ function resumeEffects(e) {
566
+ Effects.push.apply(Effects, e);
567
+ e.length = 0;
568
+ }
569
+ function createContext(defaultValue, options) {
570
+ const id = Symbol("context");
571
+ return {
572
+ id,
573
+ Provider: createProvider(id),
574
+ defaultValue
575
+ };
576
+ }
577
+ function useContext(context) {
578
+ let value;
579
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
580
+ }
581
+ function children(fn) {
582
+ const children = createMemo(fn);
583
+ const memo = createMemo(() => resolveChildren(children()));
584
+ memo.toArray = () => {
585
+ const c = memo();
586
+ return Array.isArray(c) ? c : c != null ? [c] : [];
587
+ };
588
+ return memo;
589
+ }
590
+ let SuspenseContext;
591
+ function getSuspenseContext() {
592
+ return SuspenseContext || (SuspenseContext = createContext());
593
+ }
594
+ function enableExternalSource(factory, untrack = fn => fn()) {
595
+ if (ExternalSourceConfig) {
596
+ const {
597
+ factory: oldFactory,
598
+ untrack: oldUntrack
599
+ } = ExternalSourceConfig;
600
+ ExternalSourceConfig = {
601
+ factory: (fn, trigger) => {
602
+ const oldSource = oldFactory(fn, trigger);
603
+ const source = factory(x => oldSource.track(x), trigger);
604
+ return {
605
+ track: x => source.track(x),
606
+ dispose() {
607
+ source.dispose();
608
+ oldSource.dispose();
609
+ }
610
+ };
611
+ },
612
+ untrack: fn => oldUntrack(() => untrack(fn))
613
+ };
614
+ } else {
615
+ ExternalSourceConfig = {
616
+ factory,
617
+ untrack
618
+ };
619
+ }
620
+ }
621
+ function readSignal() {
622
+ const runningTransition = Transition && Transition.running;
623
+ if (this.sources && (runningTransition ? this.tState : this.state)) {
624
+ if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
625
+ const updates = Updates;
626
+ Updates = null;
627
+ runUpdates(() => lookUpstream(this), false);
628
+ Updates = updates;
629
+ }
630
+ }
631
+ if (Listener) {
632
+ const observers = this.observers;
633
+ if (!observers || observers[observers.length - 1] !== Listener) {
634
+ const sSlot = observers ? observers.length : 0;
635
+ if (!Listener.sources) {
636
+ Listener.sources = [this];
637
+ Listener.sourceSlots = [sSlot];
638
+ } else {
639
+ Listener.sources.push(this);
640
+ Listener.sourceSlots.push(sSlot);
641
+ }
642
+ if (!observers) {
643
+ this.observers = [Listener];
644
+ this.observerSlots = [Listener.sources.length - 1];
645
+ } else {
646
+ observers.push(Listener);
647
+ this.observerSlots.push(Listener.sources.length - 1);
648
+ }
649
+ }
650
+ }
651
+ if (runningTransition && Transition.sources.has(this)) return this.tValue;
652
+ return this.value;
653
+ }
654
+ function writeSignal(node, value, isComp) {
655
+ let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
656
+ if (!node.comparator || !node.comparator(current, value)) {
657
+ if (Transition) {
658
+ const TransitionRunning = Transition.running;
659
+ if (TransitionRunning || !isComp && Transition.sources.has(node)) {
660
+ Transition.sources.add(node);
661
+ node.tValue = value;
662
+ }
663
+ if (!TransitionRunning) node.value = value;
664
+ } else node.value = value;
665
+ if (node.observers && node.observers.length) {
666
+ runUpdates(() => {
667
+ for (let i = 0; i < node.observers.length; i += 1) {
668
+ const o = node.observers[i];
669
+ const TransitionRunning = Transition && Transition.running;
670
+ if (TransitionRunning && Transition.disposed.has(o)) continue;
671
+ if (TransitionRunning ? !o.tState : !o.state) {
672
+ if (o.pure) Updates.push(o);else Effects.push(o);
673
+ if (o.observers) markDownstream(o);
674
+ }
675
+ if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
676
+ }
677
+ if (Updates.length > 10e5) {
678
+ Updates = [];
679
+ if (IS_DEV) ;
680
+ throw new Error();
681
+ }
682
+ }, false);
683
+ }
684
+ }
685
+ return value;
686
+ }
687
+ function updateComputation(node) {
688
+ if (!node.fn) return;
689
+ cleanNode(node);
690
+ const time = ExecCount;
691
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
692
+ if (Transition && !Transition.running && Transition.sources.has(node)) {
693
+ queueMicrotask(() => {
694
+ runUpdates(() => {
695
+ Transition && (Transition.running = true);
696
+ Listener = Owner = node;
697
+ runComputation(node, node.tValue, time);
698
+ Listener = Owner = null;
699
+ }, false);
700
+ });
701
+ }
702
+ }
703
+ function runComputation(node, value, time) {
704
+ let nextValue;
705
+ const owner = Owner,
706
+ listener = Listener;
707
+ Listener = Owner = node;
708
+ try {
709
+ nextValue = node.fn(value);
710
+ } catch (err) {
711
+ if (node.pure) {
712
+ if (Transition && Transition.running) {
713
+ node.tState = STALE;
714
+ node.tOwned && node.tOwned.forEach(cleanNode);
715
+ node.tOwned = undefined;
716
+ } else {
717
+ node.state = STALE;
718
+ node.owned && node.owned.forEach(cleanNode);
719
+ node.owned = null;
720
+ }
721
+ }
722
+ node.updatedAt = time + 1;
723
+ return handleError(err);
724
+ } finally {
725
+ Listener = listener;
726
+ Owner = owner;
727
+ }
728
+ if (!node.updatedAt || node.updatedAt <= time) {
729
+ if (node.updatedAt != null && "observers" in node) {
730
+ writeSignal(node, nextValue, true);
731
+ } else if (Transition && Transition.running && node.pure) {
732
+ if (!Transition.sources.has(node)) node.value = nextValue;
733
+ Transition.sources.add(node);
734
+ node.tValue = nextValue;
735
+ } else node.value = nextValue;
736
+ node.updatedAt = time;
737
+ }
738
+ }
739
+ function createComputation(fn, init, pure, state = STALE, options) {
740
+ const c = {
741
+ fn,
742
+ state: state,
743
+ updatedAt: null,
744
+ owned: null,
745
+ sources: null,
746
+ sourceSlots: null,
747
+ cleanups: null,
748
+ value: init,
749
+ owner: Owner,
750
+ context: Owner ? Owner.context : null,
751
+ pure
752
+ };
753
+ if (Transition && Transition.running) {
754
+ c.state = 0;
755
+ c.tState = state;
756
+ }
757
+ if (Owner === null) ;else if (Owner !== UNOWNED) {
758
+ if (Transition && Transition.running && Owner.pure) {
759
+ if (!Owner.tOwned) Owner.tOwned = [c];else Owner.tOwned.push(c);
760
+ } else {
761
+ if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
762
+ }
763
+ }
764
+ if (ExternalSourceConfig && c.fn) {
765
+ const sourceFn = c.fn;
766
+ const [track, trigger] = createSignal(undefined, {
767
+ equals: false
768
+ });
769
+ const ordinary = ExternalSourceConfig.factory(sourceFn, trigger);
770
+ onCleanup(() => ordinary.dispose());
771
+ let inTransition;
772
+ let trackedOrdinary = false;
773
+ const triggerInTransition = () => startTransition(trigger).then(() => {
774
+ if (inTransition) {
775
+ inTransition.dispose();
776
+ inTransition = undefined;
777
+ if (!trackedOrdinary) trigger();
778
+ }
779
+ });
780
+ c.fn = x => {
781
+ track();
782
+ if (Transition && Transition.running) {
783
+ if (!inTransition) inTransition = ExternalSourceConfig.factory(sourceFn, triggerInTransition);
784
+ return inTransition.track(x);
785
+ }
786
+ trackedOrdinary = true;
787
+ return ordinary.track(x);
788
+ };
789
+ }
790
+ return c;
791
+ }
792
+ function runTop(node) {
793
+ const runningTransition = Transition && Transition.running;
794
+ if ((runningTransition ? node.tState : node.state) === 0) return;
795
+ if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
796
+ if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
797
+ const ancestors = [node];
798
+ while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
799
+ if (runningTransition && Transition.disposed.has(node)) return;
800
+ if (runningTransition ? node.tState : node.state) ancestors.push(node);
801
+ }
802
+ for (let i = ancestors.length - 1; i >= 0; i--) {
803
+ node = ancestors[i];
804
+ if (runningTransition) {
805
+ let top = node,
806
+ prev = ancestors[i + 1];
807
+ while ((top = top.owner) && top !== prev) {
808
+ if (Transition.disposed.has(top)) return;
809
+ }
810
+ }
811
+ if ((runningTransition ? node.tState : node.state) === STALE) {
812
+ updateComputation(node);
813
+ } else if ((runningTransition ? node.tState : node.state) === PENDING) {
814
+ const updates = Updates;
815
+ Updates = null;
816
+ runUpdates(() => lookUpstream(node, ancestors[0]), false);
817
+ Updates = updates;
818
+ }
819
+ }
820
+ }
821
+ function runUpdates(fn, init) {
822
+ if (Updates) return fn();
823
+ let wait = false;
824
+ if (!init) Updates = [];
825
+ if (Effects) wait = true;else Effects = [];
826
+ ExecCount++;
827
+ try {
828
+ const res = fn();
829
+ completeUpdates(wait);
830
+ return res;
831
+ } catch (err) {
832
+ if (!wait) Effects = null;
833
+ Updates = null;
834
+ handleError(err);
835
+ }
836
+ }
837
+ function completeUpdates(wait) {
838
+ if (Updates) {
839
+ if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);else runQueue(Updates);
840
+ Updates = null;
841
+ }
842
+ if (wait) return;
843
+ let res;
844
+ if (Transition) {
845
+ if (!Transition.promises.size && !Transition.queue.size) {
846
+ const sources = Transition.sources;
847
+ const disposed = Transition.disposed;
848
+ Effects.push.apply(Effects, Transition.effects);
849
+ res = Transition.resolve;
850
+ for (const e of Effects) {
851
+ "tState" in e && (e.state = e.tState);
852
+ delete e.tState;
853
+ }
854
+ Transition = null;
855
+ runUpdates(() => {
856
+ for (const d of disposed) cleanNode(d);
857
+ for (const v of sources) {
858
+ v.value = v.tValue;
859
+ if (v.owned) {
860
+ for (let i = 0, len = v.owned.length; i < len; i++) cleanNode(v.owned[i]);
861
+ }
862
+ if (v.tOwned) v.owned = v.tOwned;
863
+ delete v.tValue;
864
+ delete v.tOwned;
865
+ v.tState = 0;
866
+ }
867
+ setTransPending(false);
868
+ }, false);
869
+ } else if (Transition.running) {
870
+ Transition.running = false;
871
+ Transition.effects.push.apply(Transition.effects, Effects);
872
+ Effects = null;
873
+ setTransPending(true);
874
+ return;
875
+ }
876
+ }
877
+ const e = Effects;
878
+ Effects = null;
879
+ if (e.length) runUpdates(() => runEffects(e), false);
880
+ if (res) res();
881
+ }
882
+ function runQueue(queue) {
883
+ for (let i = 0; i < queue.length; i++) runTop(queue[i]);
884
+ }
885
+ function scheduleQueue(queue) {
886
+ for (let i = 0; i < queue.length; i++) {
887
+ const item = queue[i];
888
+ const tasks = Transition.queue;
889
+ if (!tasks.has(item)) {
890
+ tasks.add(item);
891
+ Scheduler(() => {
892
+ tasks.delete(item);
893
+ runUpdates(() => {
894
+ Transition.running = true;
895
+ runTop(item);
896
+ }, false);
897
+ Transition && (Transition.running = false);
898
+ });
899
+ }
900
+ }
901
+ }
902
+ function runUserEffects(queue) {
903
+ let i,
904
+ userLength = 0;
905
+ for (i = 0; i < queue.length; i++) {
906
+ const e = queue[i];
907
+ if (!e.user) runTop(e);else queue[userLength++] = e;
908
+ }
909
+ if (sharedConfig.context) {
910
+ if (sharedConfig.count) {
911
+ sharedConfig.effects || (sharedConfig.effects = []);
912
+ sharedConfig.effects.push(...queue.slice(0, userLength));
913
+ return;
914
+ }
915
+ setHydrateContext();
916
+ }
917
+ if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
918
+ queue = [...sharedConfig.effects, ...queue];
919
+ userLength += sharedConfig.effects.length;
920
+ delete sharedConfig.effects;
921
+ }
922
+ for (i = 0; i < userLength; i++) runTop(queue[i]);
923
+ }
924
+ function lookUpstream(node, ignore) {
925
+ const runningTransition = Transition && Transition.running;
926
+ if (runningTransition) node.tState = 0;else node.state = 0;
927
+ for (let i = 0; i < node.sources.length; i += 1) {
928
+ const source = node.sources[i];
929
+ if (source.sources) {
930
+ const state = runningTransition ? source.tState : source.state;
931
+ if (state === STALE) {
932
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
933
+ } else if (state === PENDING) lookUpstream(source, ignore);
934
+ }
935
+ }
936
+ }
937
+ function markDownstream(node) {
938
+ const runningTransition = Transition && Transition.running;
939
+ for (let i = 0; i < node.observers.length; i += 1) {
940
+ const o = node.observers[i];
941
+ if (runningTransition ? !o.tState : !o.state) {
942
+ if (runningTransition) o.tState = PENDING;else o.state = PENDING;
943
+ if (o.pure) Updates.push(o);else Effects.push(o);
944
+ o.observers && markDownstream(o);
945
+ }
946
+ }
947
+ }
948
+ function cleanNode(node) {
949
+ let i;
950
+ if (node.sources) {
951
+ while (node.sources.length) {
952
+ const source = node.sources.pop(),
953
+ index = node.sourceSlots.pop(),
954
+ obs = source.observers;
955
+ if (obs && obs.length) {
956
+ const n = obs.pop(),
957
+ s = source.observerSlots.pop();
958
+ if (index < obs.length) {
959
+ n.sourceSlots[s] = index;
960
+ obs[index] = n;
961
+ source.observerSlots[index] = s;
962
+ }
963
+ }
964
+ }
965
+ }
966
+ if (node.tOwned) {
967
+ for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
968
+ delete node.tOwned;
969
+ }
970
+ if (Transition && Transition.running && node.pure) {
971
+ reset(node, true);
972
+ } else if (node.owned) {
973
+ for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
974
+ node.owned = null;
975
+ }
976
+ if (node.cleanups) {
977
+ for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
978
+ node.cleanups = null;
979
+ }
980
+ if (Transition && Transition.running) node.tState = 0;else node.state = 0;
981
+ }
982
+ function reset(node, top) {
983
+ if (!top) {
984
+ node.tState = 0;
985
+ Transition.disposed.add(node);
986
+ }
987
+ if (node.owned) {
988
+ for (let i = 0; i < node.owned.length; i++) reset(node.owned[i]);
989
+ }
990
+ }
991
+ function castError(err) {
992
+ if (err instanceof Error) return err;
993
+ return new Error(typeof err === "string" ? err : "Unknown error", {
994
+ cause: err
995
+ });
996
+ }
997
+ function runErrors(err, fns, owner) {
998
+ try {
999
+ for (const f of fns) f(err);
1000
+ } catch (e) {
1001
+ handleError(e, owner && owner.owner || null);
1002
+ }
1003
+ }
1004
+ function handleError(err, owner = Owner) {
1005
+ const fns = ERROR && owner && owner.context && owner.context[ERROR];
1006
+ const error = castError(err);
1007
+ if (!fns) throw error;
1008
+ if (Effects) Effects.push({
1009
+ fn() {
1010
+ runErrors(error, fns, owner);
1011
+ },
1012
+ state: STALE
1013
+ });else runErrors(error, fns, owner);
1014
+ }
1015
+ function resolveChildren(children) {
1016
+ if (typeof children === "function" && !children.length) return resolveChildren(children());
1017
+ if (Array.isArray(children)) {
1018
+ const results = [];
1019
+ for (let i = 0; i < children.length; i++) {
1020
+ const result = resolveChildren(children[i]);
1021
+ if (Array.isArray(result)) {
1022
+ if (result.length < 32768) results.push.apply(results, result);else for (let j = 0; j < result.length; j++) results.push(result[j]);
1023
+ } else {
1024
+ results.push(result);
1025
+ }
1026
+ }
1027
+ return results;
1028
+ }
1029
+ return children;
1030
+ }
1031
+ function createProvider(id, options) {
1032
+ return function provider(props) {
1033
+ let res;
1034
+ createRenderEffect(() => res = untrack(() => {
1035
+ Owner.context = {
1036
+ ...Owner.context,
1037
+ [id]: props.value
1038
+ };
1039
+ return children(() => props.children);
1040
+ }), undefined);
1041
+ return res;
1042
+ };
1043
+ }
1044
+ function onError(fn) {
1045
+ ERROR || (ERROR = Symbol("error"));
1046
+ if (Owner === null) ;else if (Owner.context === null || !Owner.context[ERROR]) {
1047
+ Owner.context = {
1048
+ ...Owner.context,
1049
+ [ERROR]: [fn]
1050
+ };
1051
+ mutateContext(Owner, ERROR, [fn]);
1052
+ } else Owner.context[ERROR].push(fn);
1053
+ }
1054
+ function mutateContext(o, key, value) {
1055
+ if (o.owned) {
1056
+ for (let i = 0; i < o.owned.length; i++) {
1057
+ if (o.owned[i].context === o.context) mutateContext(o.owned[i], key, value);
1058
+ if (!o.owned[i].context) {
1059
+ o.owned[i].context = o.context;
1060
+ mutateContext(o.owned[i], key, value);
1061
+ } else if (!o.owned[i].context[key]) {
1062
+ o.owned[i].context[key] = value;
1063
+ mutateContext(o.owned[i], key, value);
1064
+ }
1065
+ }
1066
+ }
1067
+ }
1068
+
1069
+ function observable(input) {
1070
+ return {
1071
+ subscribe(observer) {
1072
+ if (!(observer instanceof Object) || observer == null) {
1073
+ throw new TypeError("Expected the observer to be an object.");
1074
+ }
1075
+ const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
1076
+ if (!handler) {
1077
+ return {
1078
+ unsubscribe() {}
1079
+ };
1080
+ }
1081
+ const dispose = createRoot(disposer => {
1082
+ createEffect(() => {
1083
+ const v = input();
1084
+ untrack(() => handler(v));
1085
+ });
1086
+ return disposer;
1087
+ });
1088
+ if (getOwner()) onCleanup(dispose);
1089
+ return {
1090
+ unsubscribe() {
1091
+ dispose();
1092
+ }
1093
+ };
1094
+ },
1095
+ [Symbol.observable || "@@observable"]() {
1096
+ return this;
1097
+ }
1098
+ };
1099
+ }
1100
+ function from(producer, initalValue = undefined) {
1101
+ const [s, set] = createSignal(initalValue, {
1102
+ equals: false
1103
+ });
1104
+ if ("subscribe" in producer) {
1105
+ const unsub = producer.subscribe(v => set(() => v));
1106
+ onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
1107
+ } else {
1108
+ const clean = producer(set);
1109
+ onCleanup(clean);
1110
+ }
1111
+ return s;
1112
+ }
1113
+
1114
+ const FALLBACK = Symbol("fallback");
1115
+ function dispose(d) {
1116
+ for (let i = 0; i < d.length; i++) d[i]();
1117
+ }
1118
+ function mapArray(list, mapFn, options = {}) {
1119
+ let items = [],
1120
+ mapped = [],
1121
+ disposers = [],
1122
+ len = 0,
1123
+ indexes = mapFn.length > 1 ? [] : null;
1124
+ onCleanup(() => dispose(disposers));
1125
+ return () => {
1126
+ let newItems = list() || [],
1127
+ newLen = newItems.length,
1128
+ i,
1129
+ j;
1130
+ newItems[$TRACK];
1131
+ return untrack(() => {
1132
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
1133
+ if (newLen === 0) {
1134
+ if (len !== 0) {
1135
+ dispose(disposers);
1136
+ disposers = [];
1137
+ items = [];
1138
+ mapped = [];
1139
+ len = 0;
1140
+ indexes && (indexes = []);
1141
+ }
1142
+ if (options.fallback) {
1143
+ items = [FALLBACK];
1144
+ mapped[0] = createRoot(disposer => {
1145
+ disposers[0] = disposer;
1146
+ return options.fallback();
1147
+ });
1148
+ len = 1;
1149
+ }
1150
+ }
1151
+ else if (len === 0) {
1152
+ mapped = new Array(newLen);
1153
+ for (j = 0; j < newLen; j++) {
1154
+ items[j] = newItems[j];
1155
+ mapped[j] = createRoot(mapper);
1156
+ }
1157
+ len = newLen;
1158
+ } else {
1159
+ temp = new Array(newLen);
1160
+ tempdisposers = new Array(newLen);
1161
+ indexes && (tempIndexes = new Array(newLen));
1162
+ for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
1163
+ for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
1164
+ temp[newEnd] = mapped[end];
1165
+ tempdisposers[newEnd] = disposers[end];
1166
+ indexes && (tempIndexes[newEnd] = indexes[end]);
1167
+ }
1168
+ newIndices = new Map();
1169
+ newIndicesNext = new Array(newEnd + 1);
1170
+ for (j = newEnd; j >= start; j--) {
1171
+ item = newItems[j];
1172
+ i = newIndices.get(item);
1173
+ newIndicesNext[j] = i === undefined ? -1 : i;
1174
+ newIndices.set(item, j);
1175
+ }
1176
+ for (i = start; i <= end; i++) {
1177
+ item = items[i];
1178
+ j = newIndices.get(item);
1179
+ if (j !== undefined && j !== -1) {
1180
+ temp[j] = mapped[i];
1181
+ tempdisposers[j] = disposers[i];
1182
+ indexes && (tempIndexes[j] = indexes[i]);
1183
+ j = newIndicesNext[j];
1184
+ newIndices.set(item, j);
1185
+ } else disposers[i]();
1186
+ }
1187
+ for (j = start; j < newLen; j++) {
1188
+ if (j in temp) {
1189
+ mapped[j] = temp[j];
1190
+ disposers[j] = tempdisposers[j];
1191
+ if (indexes) {
1192
+ indexes[j] = tempIndexes[j];
1193
+ indexes[j](j);
1194
+ }
1195
+ } else mapped[j] = createRoot(mapper);
1196
+ }
1197
+ mapped = mapped.slice(0, len = newLen);
1198
+ items = newItems.slice(0);
1199
+ }
1200
+ return mapped;
1201
+ });
1202
+ function mapper(disposer) {
1203
+ disposers[j] = disposer;
1204
+ if (indexes) {
1205
+ const [s, set] = createSignal(j);
1206
+ indexes[j] = set;
1207
+ return mapFn(newItems[j], s);
1208
+ }
1209
+ return mapFn(newItems[j]);
1210
+ }
1211
+ };
1212
+ }
1213
+ function indexArray(list, mapFn, options = {}) {
1214
+ let items = [],
1215
+ mapped = [],
1216
+ disposers = [],
1217
+ signals = [],
1218
+ len = 0,
1219
+ i;
1220
+ onCleanup(() => dispose(disposers));
1221
+ return () => {
1222
+ const newItems = list() || [],
1223
+ newLen = newItems.length;
1224
+ newItems[$TRACK];
1225
+ return untrack(() => {
1226
+ if (newLen === 0) {
1227
+ if (len !== 0) {
1228
+ dispose(disposers);
1229
+ disposers = [];
1230
+ items = [];
1231
+ mapped = [];
1232
+ len = 0;
1233
+ signals = [];
1234
+ }
1235
+ if (options.fallback) {
1236
+ items = [FALLBACK];
1237
+ mapped[0] = createRoot(disposer => {
1238
+ disposers[0] = disposer;
1239
+ return options.fallback();
1240
+ });
1241
+ len = 1;
1242
+ }
1243
+ return mapped;
1244
+ }
1245
+ if (items[0] === FALLBACK) {
1246
+ disposers[0]();
1247
+ disposers = [];
1248
+ items = [];
1249
+ mapped = [];
1250
+ len = 0;
1251
+ }
1252
+ for (i = 0; i < newLen; i++) {
1253
+ if (i < items.length && items[i] !== newItems[i]) {
1254
+ signals[i](() => newItems[i]);
1255
+ } else if (i >= items.length) {
1256
+ mapped[i] = createRoot(mapper);
1257
+ }
1258
+ }
1259
+ for (; i < items.length; i++) {
1260
+ disposers[i]();
1261
+ }
1262
+ len = signals.length = disposers.length = newLen;
1263
+ items = newItems.slice(0);
1264
+ return mapped = mapped.slice(0, len);
1265
+ });
1266
+ function mapper(disposer) {
1267
+ disposers[i] = disposer;
1268
+ const [s, set] = createSignal(newItems[i]);
1269
+ signals[i] = set;
1270
+ return mapFn(s, i);
1271
+ }
1272
+ };
1273
+ }
1274
+
1275
+ let hydrationEnabled = false;
1276
+ function enableHydration() {
1277
+ hydrationEnabled = true;
1278
+ }
1279
+ function createComponent(Comp, props) {
1280
+ if (hydrationEnabled) {
1281
+ if (sharedConfig.context) {
1282
+ const c = sharedConfig.context;
1283
+ setHydrateContext(nextHydrateContext());
1284
+ const r = untrack(() => Comp(props || {}));
1285
+ setHydrateContext(c);
1286
+ return r;
1287
+ }
1288
+ }
1289
+ return untrack(() => Comp(props || {}));
1290
+ }
1291
+ function trueFn() {
1292
+ return true;
1293
+ }
1294
+ const propTraps = {
1295
+ get(_, property, receiver) {
1296
+ if (property === $PROXY) return receiver;
1297
+ return _.get(property);
1298
+ },
1299
+ has(_, property) {
1300
+ if (property === $PROXY) return true;
1301
+ return _.has(property);
1302
+ },
1303
+ set: trueFn,
1304
+ deleteProperty: trueFn,
1305
+ getOwnPropertyDescriptor(_, property) {
1306
+ return {
1307
+ configurable: true,
1308
+ enumerable: true,
1309
+ get() {
1310
+ return _.get(property);
1311
+ },
1312
+ set: trueFn,
1313
+ deleteProperty: trueFn
1314
+ };
1315
+ },
1316
+ ownKeys(_) {
1317
+ return _.keys();
1318
+ }
1319
+ };
1320
+ function resolveSource(s) {
1321
+ return !(s = typeof s === "function" ? s() : s) ? {} : s;
1322
+ }
1323
+ function resolveSources() {
1324
+ for (let i = 0, length = this.length; i < length; ++i) {
1325
+ const v = this[i]();
1326
+ if (v !== undefined) return v;
1327
+ }
1328
+ }
1329
+ function mergeProps(...sources) {
1330
+ let proxy = false;
1331
+ for (let i = 0; i < sources.length; i++) {
1332
+ const s = sources[i];
1333
+ proxy = proxy || !!s && $PROXY in s;
1334
+ sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1335
+ }
1336
+ if (SUPPORTS_PROXY && proxy) {
1337
+ return new Proxy({
1338
+ get(property) {
1339
+ for (let i = sources.length - 1; i >= 0; i--) {
1340
+ const v = resolveSource(sources[i])[property];
1341
+ if (v !== undefined) return v;
1342
+ }
1343
+ },
1344
+ has(property) {
1345
+ for (let i = sources.length - 1; i >= 0; i--) {
1346
+ if (property in resolveSource(sources[i])) return true;
1347
+ }
1348
+ return false;
1349
+ },
1350
+ keys() {
1351
+ const keys = [];
1352
+ for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
1353
+ return [...new Set(keys)];
1354
+ }
1355
+ }, propTraps);
1356
+ }
1357
+ const sourcesMap = {};
1358
+ const defined = Object.create(null);
1359
+ for (let i = sources.length - 1; i >= 0; i--) {
1360
+ const source = sources[i];
1361
+ if (!source) continue;
1362
+ const sourceKeys = Object.getOwnPropertyNames(source);
1363
+ for (let i = sourceKeys.length - 1; i >= 0; i--) {
1364
+ const key = sourceKeys[i];
1365
+ if (key === "__proto__" || key === "constructor") continue;
1366
+ const desc = Object.getOwnPropertyDescriptor(source, key);
1367
+ if (!defined[key]) {
1368
+ defined[key] = desc.get ? {
1369
+ enumerable: true,
1370
+ configurable: true,
1371
+ get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
1372
+ } : desc.value !== undefined ? desc : undefined;
1373
+ } else {
1374
+ const sources = sourcesMap[key];
1375
+ if (sources) {
1376
+ if (desc.get) sources.push(desc.get.bind(source));else if (desc.value !== undefined) sources.push(() => desc.value);
1377
+ }
1378
+ }
1379
+ }
1380
+ }
1381
+ const target = {};
1382
+ const definedKeys = Object.keys(defined);
1383
+ for (let i = definedKeys.length - 1; i >= 0; i--) {
1384
+ const key = definedKeys[i],
1385
+ desc = defined[key];
1386
+ if (desc && desc.get) Object.defineProperty(target, key, desc);else target[key] = desc ? desc.value : undefined;
1387
+ }
1388
+ return target;
1389
+ }
1390
+ function splitProps(props, ...keys) {
1391
+ const len = keys.length;
1392
+ if (SUPPORTS_PROXY && $PROXY in props) {
1393
+ const blocked = len > 1 ? keys.flat() : keys[0];
1394
+ const claimed = new Set();
1395
+ const res = keys.map(k => {
1396
+ const owned = k.filter(property => !claimed.has(property) && (claimed.add(property), true));
1397
+ return new Proxy({
1398
+ get(property) {
1399
+ return owned.includes(property) ? props[property] : undefined;
1400
+ },
1401
+ has(property) {
1402
+ return owned.includes(property) && property in props;
1403
+ },
1404
+ keys() {
1405
+ return owned.filter(property => property in props);
1406
+ }
1407
+ }, propTraps);
1408
+ });
1409
+ res.push(new Proxy({
1410
+ get(property) {
1411
+ return blocked.includes(property) ? undefined : props[property];
1412
+ },
1413
+ has(property) {
1414
+ return blocked.includes(property) ? false : property in props;
1415
+ },
1416
+ keys() {
1417
+ return Object.keys(props).filter(k => !blocked.includes(k));
1418
+ }
1419
+ }, propTraps));
1420
+ return res;
1421
+ }
1422
+ const objects = [];
1423
+ for (let i = 0; i <= len; i++) {
1424
+ objects[i] = {};
1425
+ }
1426
+ for (const propName of Object.getOwnPropertyNames(props)) {
1427
+ let keyIndex = len;
1428
+ for (let i = 0; i < keys.length; i++) {
1429
+ if (keys[i].includes(propName)) {
1430
+ keyIndex = i;
1431
+ break;
1432
+ }
1433
+ }
1434
+ const desc = Object.getOwnPropertyDescriptor(props, propName);
1435
+ const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
1436
+ isDefaultDesc ? objects[keyIndex][propName] = desc.value : Object.defineProperty(objects[keyIndex], propName, desc);
1437
+ }
1438
+ return objects;
1439
+ }
1440
+ function lazy(fn) {
1441
+ let comp;
1442
+ let p;
1443
+ const load = () => {
1444
+ if (!p) {
1445
+ const cur = p = fn();
1446
+ cur.then(mod => {
1447
+ comp = () => mod.default;
1448
+ }, () => {
1449
+ if (p === cur) p = undefined;
1450
+ });
1451
+ }
1452
+ return p;
1453
+ };
1454
+ const wrap = props => {
1455
+ const ctx = sharedConfig.context;
1456
+ if (ctx) {
1457
+ const [s, set] = createSignal();
1458
+ sharedConfig.count || (sharedConfig.count = 0);
1459
+ sharedConfig.count++;
1460
+ load().then(mod => {
1461
+ !sharedConfig.done && setHydrateContext(ctx);
1462
+ sharedConfig.count--;
1463
+ set(() => mod.default);
1464
+ setHydrateContext();
1465
+ }, err => {
1466
+ !sharedConfig.done && setHydrateContext(ctx);
1467
+ sharedConfig.count--;
1468
+ set(() => () => {
1469
+ throw err;
1470
+ });
1471
+ setHydrateContext();
1472
+ });
1473
+ comp = s;
1474
+ } else if (!comp) {
1475
+ const [s] = createResource(() => load().then(mod => mod.default));
1476
+ comp = s;
1477
+ onCleanup(() => comp = undefined);
1478
+ }
1479
+ let Comp;
1480
+ return createMemo(() => (Comp = comp?.()) ? untrack(() => {
1481
+ if (IS_DEV) ;
1482
+ if (!ctx || sharedConfig.done) return Comp(props);
1483
+ const c = sharedConfig.context;
1484
+ setHydrateContext(ctx);
1485
+ const r = Comp(props);
1486
+ setHydrateContext(c);
1487
+ return r;
1488
+ }) : "");
1489
+ };
1490
+ wrap.preload = () => load();
1491
+ return wrap;
1492
+ }
1493
+ let counter = 0;
1494
+ function createUniqueId() {
1495
+ const ctx = sharedConfig.context;
1496
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1497
+ }
1498
+
1499
+ const narrowedError = name => `Stale read from <${name}>.`;
1500
+ function For(props) {
1501
+ const fallback = "fallback" in props && {
1502
+ fallback: () => props.fallback
1503
+ };
1504
+ return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
1505
+ }
1506
+ function Index(props) {
1507
+ const fallback = "fallback" in props && {
1508
+ fallback: () => props.fallback
1509
+ };
1510
+ return createMemo(indexArray(() => props.each, props.children, fallback || undefined));
1511
+ }
1512
+ function Show(props) {
1513
+ const keyed = props.keyed;
1514
+ const conditionValue = createMemo(() => props.when, undefined, undefined);
1515
+ const condition = keyed ? conditionValue : createMemo(conditionValue, undefined, {
1516
+ equals: (a, b) => !a === !b
1517
+ });
1518
+ return createMemo(() => {
1519
+ const c = condition();
1520
+ if (c) {
1521
+ const child = props.children;
1522
+ const fn = typeof child === "function" && child.length > 0;
1523
+ return fn ? untrack(() => child(keyed ? c : () => {
1524
+ if (!untrack(condition)) throw narrowedError("Show");
1525
+ return conditionValue();
1526
+ })) : child;
1527
+ }
1528
+ return props.fallback;
1529
+ }, undefined, undefined);
1530
+ }
1531
+ function Switch(props) {
1532
+ const chs = children(() => props.children);
1533
+ const switchFunc = createMemo(() => {
1534
+ const ch = chs();
1535
+ const mps = Array.isArray(ch) ? ch : [ch];
1536
+ let func = () => undefined;
1537
+ for (let i = 0; i < mps.length; i++) {
1538
+ const index = i;
1539
+ const mp = mps[i];
1540
+ const prevFunc = func;
1541
+ const conditionValue = createMemo(() => prevFunc() ? undefined : mp.when, undefined, undefined);
1542
+ const condition = mp.keyed ? conditionValue : createMemo(conditionValue, undefined, {
1543
+ equals: (a, b) => !a === !b
1544
+ });
1545
+ func = () => prevFunc() || (condition() ? [index, conditionValue, mp] : undefined);
1546
+ }
1547
+ return func;
1548
+ });
1549
+ return createMemo(() => {
1550
+ const sel = switchFunc()();
1551
+ if (!sel) return props.fallback;
1552
+ const [index, conditionValue, mp] = sel;
1553
+ const child = mp.children;
1554
+ const fn = typeof child === "function" && child.length > 0;
1555
+ return fn ? untrack(() => child(mp.keyed ? conditionValue() : () => {
1556
+ if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
1557
+ return conditionValue();
1558
+ })) : child;
1559
+ }, undefined, undefined);
1560
+ }
1561
+ function Match(props) {
1562
+ return props;
1563
+ }
1564
+ let Errors;
1565
+ function resetErrorBoundaries() {
1566
+ Errors && [...Errors].forEach(fn => fn());
1567
+ }
1568
+ function ErrorBoundary(props) {
1569
+ let err;
1570
+ if (sharedConfig.context && sharedConfig.load) err = sharedConfig.load(sharedConfig.getContextId());
1571
+ const [errored, setErrored] = createSignal(err, undefined);
1572
+ Errors || (Errors = new Set());
1573
+ Errors.add(setErrored);
1574
+ onCleanup(() => Errors.delete(setErrored));
1575
+ return createMemo(() => {
1576
+ let e;
1577
+ if (e = errored()) {
1578
+ const f = props.fallback;
1579
+ return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
1580
+ }
1581
+ return catchError(() => props.children, setErrored);
1582
+ }, undefined, undefined);
1583
+ }
1584
+
1585
+ const suspenseListEquals = (a, b) => a.showContent === b.showContent && a.showFallback === b.showFallback;
1586
+ const SuspenseListContext = /* #__PURE__ */createContext();
1587
+ function SuspenseList(props) {
1588
+ let [wrapper, setWrapper] = createSignal(() => ({
1589
+ inFallback: false
1590
+ })),
1591
+ show;
1592
+ const listContext = useContext(SuspenseListContext);
1593
+ const [registry, setRegistry] = createSignal([]);
1594
+ if (listContext) {
1595
+ show = listContext.register(createMemo(() => wrapper()().inFallback));
1596
+ }
1597
+ const resolved = createMemo(prev => {
1598
+ const reveal = props.revealOrder,
1599
+ tail = props.tail,
1600
+ {
1601
+ showContent = true,
1602
+ showFallback = true
1603
+ } = show ? show() : {},
1604
+ reg = registry(),
1605
+ reverse = reveal === "backwards";
1606
+ if (reveal === "together") {
1607
+ const all = reg.every(inFallback => !inFallback());
1608
+ const res = reg.map(() => ({
1609
+ showContent: all && showContent,
1610
+ showFallback
1611
+ }));
1612
+ res.inFallback = !all;
1613
+ return res;
1614
+ }
1615
+ let stop = false;
1616
+ let inFallback = prev.inFallback;
1617
+ const res = [];
1618
+ for (let i = 0, len = reg.length; i < len; i++) {
1619
+ const n = reverse ? len - i - 1 : i,
1620
+ s = reg[n]();
1621
+ if (!stop && !s) {
1622
+ res[n] = {
1623
+ showContent,
1624
+ showFallback
1625
+ };
1626
+ } else {
1627
+ const next = !stop;
1628
+ if (next) inFallback = true;
1629
+ res[n] = {
1630
+ showContent: next,
1631
+ showFallback: !tail || next && tail === "collapsed" ? showFallback : false
1632
+ };
1633
+ stop = true;
1634
+ }
1635
+ }
1636
+ if (!stop) inFallback = false;
1637
+ res.inFallback = inFallback;
1638
+ return res;
1639
+ }, {
1640
+ inFallback: false
1641
+ });
1642
+ setWrapper(() => resolved);
1643
+ return createComponent(SuspenseListContext.Provider, {
1644
+ value: {
1645
+ register: inFallback => {
1646
+ let index;
1647
+ setRegistry(registry => {
1648
+ index = registry.length;
1649
+ return [...registry, inFallback];
1650
+ });
1651
+ return createMemo(() => resolved()[index], undefined, {
1652
+ equals: suspenseListEquals
1653
+ });
1654
+ }
1655
+ },
1656
+ get children() {
1657
+ return props.children;
1658
+ }
1659
+ });
1660
+ }
1661
+ function Suspense(props) {
1662
+ let counter = 0,
1663
+ show,
1664
+ ctx,
1665
+ p,
1666
+ flicker,
1667
+ error;
1668
+ const [inFallback, setFallback] = createSignal(false),
1669
+ SuspenseContext = getSuspenseContext(),
1670
+ store = {
1671
+ increment: () => {
1672
+ if (++counter === 1) setFallback(true);
1673
+ },
1674
+ decrement: () => {
1675
+ if (--counter === 0) setFallback(false);
1676
+ },
1677
+ inFallback,
1678
+ effects: [],
1679
+ resolved: false
1680
+ },
1681
+ owner = getOwner();
1682
+ if (sharedConfig.context && sharedConfig.load) {
1683
+ const key = sharedConfig.getContextId();
1684
+ let ref = sharedConfig.load(key);
1685
+ if (ref) {
1686
+ if (typeof ref !== "object" || ref.s !== 1) p = ref;else sharedConfig.gather(key);
1687
+ }
1688
+ if (p && p !== "$$f") {
1689
+ const [s, set] = createSignal(undefined, {
1690
+ equals: false
1691
+ });
1692
+ flicker = s;
1693
+ p.then(() => {
1694
+ if (sharedConfig.done) return set();
1695
+ sharedConfig.gather(key);
1696
+ setHydrateContext(ctx);
1697
+ set();
1698
+ setHydrateContext();
1699
+ }, err => {
1700
+ error = err;
1701
+ set();
1702
+ });
1703
+ }
1704
+ }
1705
+ const listContext = useContext(SuspenseListContext);
1706
+ if (listContext) show = listContext.register(store.inFallback);
1707
+ let dispose;
1708
+ onCleanup(() => dispose && dispose());
1709
+ return createComponent(SuspenseContext.Provider, {
1710
+ value: store,
1711
+ get children() {
1712
+ return createMemo(() => {
1713
+ if (error) throw error;
1714
+ ctx = sharedConfig.context;
1715
+ if (flicker) {
1716
+ flicker();
1717
+ return flicker = undefined;
1718
+ }
1719
+ if (ctx && p === "$$f") setHydrateContext();
1720
+ const rendered = createMemo(() => props.children);
1721
+ return createMemo(prev => {
1722
+ const inFallback = store.inFallback(),
1723
+ {
1724
+ showContent = true,
1725
+ showFallback = true
1726
+ } = show ? show() : {};
1727
+ if ((!inFallback || p && p !== "$$f") && showContent) {
1728
+ store.resolved = true;
1729
+ dispose && dispose();
1730
+ dispose = ctx = p = undefined;
1731
+ resumeEffects(store.effects);
1732
+ return rendered();
1733
+ }
1734
+ if (!showFallback) return;
1735
+ if (dispose) return prev;
1736
+ return createRoot(disposer => {
1737
+ dispose = disposer;
1738
+ if (ctx) {
1739
+ setHydrateContext({
1740
+ id: ctx.id + "F",
1741
+ count: 0
1742
+ });
1743
+ ctx = undefined;
1744
+ }
1745
+ return props.fallback;
1746
+ }, owner);
1747
+ });
1748
+ });
1749
+ }
1750
+ });
1751
+ }
1752
+
1753
+ const DEV = undefined;
1754
+
1755
+ exports.$DEVCOMP = $DEVCOMP;
1756
+ exports.$PROXY = $PROXY;
1757
+ exports.$TRACK = $TRACK;
1758
+ exports.DEV = DEV;
1759
+ exports.ErrorBoundary = ErrorBoundary;
1760
+ exports.For = For;
1761
+ exports.Index = Index;
1762
+ exports.Match = Match;
1763
+ exports.Show = Show;
1764
+ exports.Suspense = Suspense;
1765
+ exports.SuspenseList = SuspenseList;
1766
+ exports.Switch = Switch;
1767
+ exports.batch = batch;
1768
+ exports.cancelCallback = cancelCallback;
1769
+ exports.catchError = catchError;
1770
+ exports.children = children;
1771
+ exports.createComponent = createComponent;
1772
+ exports.createComputed = createComputed;
1773
+ exports.createContext = createContext;
1774
+ exports.createDeferred = createDeferred;
1775
+ exports.createEffect = createEffect;
1776
+ exports.createMemo = createMemo;
1777
+ exports.createReaction = createReaction;
1778
+ exports.createRenderEffect = createRenderEffect;
1779
+ exports.createResource = createResource;
1780
+ exports.createRoot = createRoot;
1781
+ exports.createSelector = createSelector;
1782
+ exports.createSignal = createSignal;
1783
+ exports.createUniqueId = createUniqueId;
1784
+ exports.enableExternalSource = enableExternalSource;
1785
+ exports.enableHydration = enableHydration;
1786
+ exports.enableScheduling = enableScheduling;
1787
+ exports.equalFn = equalFn;
1788
+ exports.from = from;
1789
+ exports.getListener = getListener;
1790
+ exports.getOwner = getOwner;
1791
+ exports.indexArray = indexArray;
1792
+ exports.lazy = lazy;
1793
+ exports.mapArray = mapArray;
1794
+ exports.mergeProps = mergeProps;
1795
+ exports.observable = observable;
1796
+ exports.on = on;
1797
+ exports.onCleanup = onCleanup;
1798
+ exports.onError = onError;
1799
+ exports.onMount = onMount;
1800
+ exports.requestCallback = requestCallback;
1801
+ exports.resetErrorBoundaries = resetErrorBoundaries;
1802
+ exports.runWithOwner = runWithOwner;
1803
+ exports.sharedConfig = sharedConfig;
1804
+ exports.splitProps = splitProps;
1805
+ exports.startTransition = startTransition;
1806
+ exports.untrack = untrack;
1807
+ exports.useContext = useContext;
1808
+ exports.useTransition = useTransition;