adonisjs-server-stats 1.10.0 → 1.11.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 (248) hide show
  1. package/README.md +23 -14
  2. package/dist/core/config-utils.d.ts +8 -0
  3. package/dist/core/constants.d.ts +4 -0
  4. package/dist/core/dashboard-data-controller.d.ts +16 -0
  5. package/dist/core/dashboard-data-helpers.d.ts +12 -0
  6. package/dist/core/debug-data-controller.d.ts +4 -0
  7. package/dist/core/define-config-helpers.d.ts +25 -0
  8. package/dist/core/feature-detect-helpers.d.ts +36 -0
  9. package/dist/core/field-resolvers.d.ts +64 -0
  10. package/dist/core/formatters-helpers.d.ts +23 -0
  11. package/dist/core/formatters.d.ts +15 -0
  12. package/dist/core/index.d.ts +1 -1
  13. package/dist/core/index.js +599 -509
  14. package/dist/core/log-utils-helpers.d.ts +13 -0
  15. package/dist/core/metrics.d.ts +3 -28
  16. package/dist/core/pagination.d.ts +0 -9
  17. package/dist/core/server-stats-controller.d.ts +6 -0
  18. package/dist/core/transmit-helpers.d.ts +7 -0
  19. package/dist/core/types-dashboard.d.ts +178 -0
  20. package/dist/core/types-diagnostics.d.ts +85 -0
  21. package/dist/core/types.d.ts +10 -442
  22. package/dist/react/CacheSection-BYN53kYO.js +135 -0
  23. package/dist/react/CacheStatsBar-CRodCOeP.js +27 -0
  24. package/dist/react/CacheTab-DOhuK05d.js +106 -0
  25. package/dist/react/{ConfigSection-DfFd-WRq.js → ConfigSection-B9EHh4Rp.js} +1 -1
  26. package/dist/react/{ConfigTab-Bdg8YMer.js → ConfigTab-C8kriE2b.js} +1 -1
  27. package/dist/react/CustomPaneTab-CvzQS_Wh.js +99 -0
  28. package/dist/react/EmailPreviewOverlay-BmXOAvqG.js +58 -0
  29. package/dist/react/EmailsSection-BJyFJf7A.js +226 -0
  30. package/dist/react/EmailsTab-Ch8jp10B.js +110 -0
  31. package/dist/react/{EventsSection-ByQ-9blq.js → EventsSection-DJPwHeT8.js} +28 -27
  32. package/dist/react/EventsTab-B-FoehXC.js +58 -0
  33. package/dist/react/{FilterBar-DQRXpWrb.js → FilterBar-CQ7bD669.js} +15 -15
  34. package/dist/react/{InternalsContent-DBzsI0CG.js → InternalsContent-O8ino9oM.js} +133 -109
  35. package/dist/react/InternalsSection-B6VlVx5f.js +22 -0
  36. package/dist/react/InternalsTab-CkEKpRMU.js +17 -0
  37. package/dist/react/JobStatsBar-C7RslAFE.js +30 -0
  38. package/dist/react/JobsSection-DWF4i1t_.js +167 -0
  39. package/dist/react/JobsTab-DqnifQXV.js +129 -0
  40. package/dist/react/LogEntryRow-CMMkqA9M.js +43 -0
  41. package/dist/react/LogsSection-C1xC5aP4.js +198 -0
  42. package/dist/react/LogsTab-CS4sLfLw.js +79 -0
  43. package/dist/react/{OverviewSection-C4T1ur51.js → OverviewSection-CxvfOR0v.js} +70 -80
  44. package/dist/react/QueriesSection-CrMdU5Ax.js +458 -0
  45. package/dist/react/{QueriesTab-osLUWd4L.js → QueriesTab-x85PjkyS.js} +38 -40
  46. package/dist/react/RequestsSection-DETN9oZb.js +321 -0
  47. package/dist/react/{RoutesSection-BUSkM6PY.js → RoutesSection-CmorkJeC.js} +2 -2
  48. package/dist/react/RoutesTab-CbzBOzpc.js +68 -0
  49. package/dist/react/SplitPaneWrapper-BiIgT4ND.js +49 -0
  50. package/dist/react/TimeAgoCell-o3KigGfM.js +8 -0
  51. package/dist/react/{TimelineTab-Covg5weo.js → TimelineTab-Ue9tUD_n.js} +76 -102
  52. package/dist/react/index-DwDK-4oX.js +1121 -0
  53. package/dist/react/index.js +6 -6
  54. package/dist/react/react/components/shared/CacheStatsBar.d.ts +13 -0
  55. package/dist/react/react/components/shared/EmailPreviewOverlay.d.ts +29 -0
  56. package/dist/react/react/components/{Dashboard/shared → shared}/FilterBar.d.ts +4 -3
  57. package/dist/react/react/components/shared/JobStatsBar.d.ts +12 -0
  58. package/dist/react/react/components/shared/LogEntryRow.d.ts +9 -0
  59. package/dist/react/react/components/shared/RelatedLogs.d.ts +2 -2
  60. package/dist/react/react/components/shared/SplitPaneWrapper.d.ts +7 -0
  61. package/dist/react/react/components/shared/TimeAgoCell.d.ts +17 -0
  62. package/dist/react/react/hooks/useDashboardData.d.ts +4 -8
  63. package/dist/react/react/hooks/useDiagnosticsData.d.ts +14 -0
  64. package/dist/react/style.css +1 -1
  65. package/dist/src/collectors/app_collector.d.ts +0 -8
  66. package/dist/src/collectors/app_collector.js +45 -52
  67. package/dist/src/collectors/auto_detect.d.ts +0 -23
  68. package/dist/src/collectors/auto_detect.js +33 -55
  69. package/dist/src/collectors/db_pool_collector.d.ts +14 -16
  70. package/dist/src/collectors/db_pool_collector.js +72 -57
  71. package/dist/src/collectors/log_collector.d.ts +0 -47
  72. package/dist/src/collectors/log_collector.js +36 -65
  73. package/dist/src/collectors/queue_collector.d.ts +0 -20
  74. package/dist/src/collectors/queue_collector.js +60 -76
  75. package/dist/src/collectors/redis_collector.d.ts +10 -10
  76. package/dist/src/collectors/redis_collector.js +69 -66
  77. package/dist/src/config/deprecation_migration.d.ts +7 -0
  78. package/dist/src/config/deprecation_migration.js +201 -0
  79. package/dist/src/controller/debug_controller.d.ts +1 -1
  80. package/dist/src/controller/debug_controller.js +87 -81
  81. package/dist/src/dashboard/cache_handlers.d.ts +14 -0
  82. package/dist/src/dashboard/cache_handlers.js +52 -0
  83. package/dist/src/dashboard/chart_aggregator.d.ts +0 -7
  84. package/dist/src/dashboard/chart_aggregator.js +68 -50
  85. package/dist/src/dashboard/coalesce_cache.d.ts +25 -0
  86. package/dist/src/dashboard/coalesce_cache.js +47 -0
  87. package/dist/src/dashboard/dashboard_controller.d.ts +11 -37
  88. package/dist/src/dashboard/dashboard_controller.js +51 -544
  89. package/dist/src/dashboard/dashboard_page_assets.d.ts +17 -0
  90. package/dist/src/dashboard/dashboard_page_assets.js +51 -0
  91. package/dist/src/dashboard/dashboard_store.d.ts +19 -218
  92. package/dist/src/dashboard/dashboard_store.js +115 -1116
  93. package/dist/src/dashboard/dashboard_types.d.ts +83 -0
  94. package/dist/src/dashboard/dashboard_types.js +4 -0
  95. package/dist/src/dashboard/detail_queries.d.ts +19 -0
  96. package/dist/src/dashboard/detail_queries.js +98 -0
  97. package/dist/src/dashboard/email_event_builder.d.ts +8 -0
  98. package/dist/src/dashboard/email_event_builder.js +65 -0
  99. package/dist/src/dashboard/explain_query.d.ts +8 -0
  100. package/dist/src/dashboard/explain_query.js +22 -0
  101. package/dist/src/dashboard/filter_handlers.d.ts +23 -0
  102. package/dist/src/dashboard/filter_handlers.js +56 -0
  103. package/dist/src/dashboard/filtered_queries.d.ts +15 -0
  104. package/dist/src/dashboard/filtered_queries.js +155 -0
  105. package/dist/src/dashboard/flush_manager.d.ts +25 -0
  106. package/dist/src/dashboard/flush_manager.js +107 -0
  107. package/dist/src/dashboard/format_helpers.d.ts +126 -0
  108. package/dist/src/dashboard/format_helpers.js +140 -0
  109. package/dist/src/dashboard/inspector_manager.d.ts +36 -0
  110. package/dist/src/dashboard/inspector_manager.js +102 -0
  111. package/dist/src/dashboard/integrations/config_inspector.js +11 -13
  112. package/dist/src/dashboard/integrations/queue_inspector.d.ts +3 -3
  113. package/dist/src/dashboard/integrations/queue_inspector.js +13 -10
  114. package/dist/src/dashboard/jobs_handlers.d.ts +14 -0
  115. package/dist/src/dashboard/jobs_handlers.js +61 -0
  116. package/dist/src/dashboard/knex_factory.d.ts +18 -0
  117. package/dist/src/dashboard/knex_factory.js +91 -0
  118. package/dist/src/dashboard/migrator.js +30 -159
  119. package/dist/src/dashboard/migrator_tables.d.ts +19 -0
  120. package/dist/src/dashboard/migrator_tables.js +153 -0
  121. package/dist/src/dashboard/overview_queries.d.ts +66 -0
  122. package/dist/src/dashboard/overview_queries.js +155 -0
  123. package/dist/src/dashboard/overview_query_runners.d.ts +25 -0
  124. package/dist/src/dashboard/overview_query_runners.js +84 -0
  125. package/dist/src/dashboard/overview_store_queries.d.ts +40 -0
  126. package/dist/src/dashboard/overview_store_queries.js +69 -0
  127. package/dist/src/dashboard/paginate_helper.d.ts +12 -0
  128. package/dist/src/dashboard/paginate_helper.js +33 -0
  129. package/dist/src/dashboard/query_explain_handler.d.ts +10 -0
  130. package/dist/src/dashboard/query_explain_handler.js +80 -0
  131. package/dist/src/dashboard/read_queries.d.ts +32 -0
  132. package/dist/src/dashboard/read_queries.js +107 -0
  133. package/dist/src/dashboard/saved_filter_queries.d.ts +10 -0
  134. package/dist/src/dashboard/saved_filter_queries.js +24 -0
  135. package/dist/src/dashboard/storage_stats.d.ts +41 -0
  136. package/dist/src/dashboard/storage_stats.js +81 -0
  137. package/dist/src/dashboard/write_queue.d.ts +106 -0
  138. package/dist/src/dashboard/write_queue.js +225 -0
  139. package/dist/src/data/data_access.d.ts +2 -39
  140. package/dist/src/data/data_access.js +17 -193
  141. package/dist/src/data/data_access_helpers.d.ts +130 -0
  142. package/dist/src/data/data_access_helpers.js +212 -0
  143. package/dist/src/debug/debug_store.js +37 -32
  144. package/dist/src/debug/email_collector.d.ts +1 -10
  145. package/dist/src/debug/email_collector.js +78 -81
  146. package/dist/src/debug/event_collector.d.ts +0 -9
  147. package/dist/src/debug/event_collector.js +79 -62
  148. package/dist/src/debug/query_collector.js +23 -19
  149. package/dist/src/debug/route_inspector.d.ts +1 -5
  150. package/dist/src/debug/route_inspector.js +50 -51
  151. package/dist/src/debug/trace_collector.d.ts +9 -1
  152. package/dist/src/debug/trace_collector.js +21 -15
  153. package/dist/src/debug/types.d.ts +1 -1
  154. package/dist/src/define_config.d.ts +0 -65
  155. package/dist/src/define_config.js +93 -333
  156. package/dist/src/edge/client/dashboard.js +2 -2
  157. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  158. package/dist/src/edge/client/stats-bar.js +1 -1
  159. package/dist/src/edge/client-vue/dashboard.js +5 -5
  160. package/dist/src/edge/client-vue/debug-panel-deferred.js +4 -4
  161. package/dist/src/edge/client-vue/stats-bar.js +3 -3
  162. package/dist/src/edge/plugin.d.ts +0 -16
  163. package/dist/src/edge/plugin.js +57 -64
  164. package/dist/src/engine/request_metrics.d.ts +1 -0
  165. package/dist/src/engine/request_metrics.js +32 -42
  166. package/dist/src/middleware/request_tracking_middleware.d.ts +2 -8
  167. package/dist/src/middleware/request_tracking_middleware.js +65 -93
  168. package/dist/src/provider/auth_middleware_detector.d.ts +16 -0
  169. package/dist/src/provider/auth_middleware_detector.js +97 -0
  170. package/dist/src/provider/boot_helpers.d.ts +20 -0
  171. package/dist/src/provider/boot_helpers.js +91 -0
  172. package/dist/src/provider/boot_initializer.d.ts +28 -0
  173. package/dist/src/provider/boot_initializer.js +35 -0
  174. package/dist/src/provider/dashboard_init.d.ts +30 -0
  175. package/dist/src/provider/dashboard_init.js +138 -0
  176. package/dist/src/provider/dashboard_setup.d.ts +25 -0
  177. package/dist/src/provider/dashboard_setup.js +78 -0
  178. package/dist/src/provider/diagnostics.d.ts +134 -0
  179. package/dist/src/provider/diagnostics.js +127 -0
  180. package/dist/src/provider/email_bridge.d.ts +43 -0
  181. package/dist/src/provider/email_bridge.js +80 -0
  182. package/dist/src/provider/email_helpers.d.ts +13 -0
  183. package/dist/src/provider/email_helpers.js +68 -0
  184. package/dist/src/provider/pino_hook.d.ts +17 -0
  185. package/dist/src/provider/pino_hook.js +35 -0
  186. package/dist/src/provider/provider_helpers_extra.d.ts +47 -0
  187. package/dist/src/provider/provider_helpers_extra.js +177 -0
  188. package/dist/src/provider/server_stats_provider.d.ts +39 -85
  189. package/dist/src/provider/server_stats_provider.js +132 -951
  190. package/dist/src/provider/shutdown_helpers.d.ts +43 -0
  191. package/dist/src/provider/shutdown_helpers.js +70 -0
  192. package/dist/src/provider/toolbar_setup.d.ts +57 -0
  193. package/dist/src/provider/toolbar_setup.js +141 -0
  194. package/dist/src/routes/dashboard_routes.d.ts +14 -0
  195. package/dist/src/routes/dashboard_routes.js +197 -0
  196. package/dist/src/routes/debug_routes.d.ts +14 -0
  197. package/dist/src/routes/debug_routes.js +101 -0
  198. package/dist/src/routes/register_routes.d.ts +0 -78
  199. package/dist/src/routes/register_routes.js +22 -352
  200. package/dist/src/routes/stats_routes.d.ts +5 -0
  201. package/dist/src/routes/stats_routes.js +14 -0
  202. package/dist/src/styles/components.css +163 -0
  203. package/dist/src/styles/dashboard.css +13 -105
  204. package/dist/src/styles/debug-panel.css +2 -53
  205. package/dist/src/styles/utilities.css +3 -1
  206. package/dist/src/types.d.ts +305 -14
  207. package/dist/vue/{CacheSection-oFAJL3mo.js → CacheSection-DT2Mwf_s.js} +1 -1
  208. package/dist/vue/{ConfigSection-BhfJ4KqL.js → ConfigSection-BwKwS9lh.js} +1 -1
  209. package/dist/vue/CustomPaneTab-Hr1IBHfz.js +172 -0
  210. package/dist/vue/{EmailsSection-BcNyhyHs.js → EmailsSection-B65g0FVS.js} +1 -1
  211. package/dist/vue/{EventsSection-r60Q5Lmu.js → EventsSection-CxqtVF-o.js} +1 -1
  212. package/dist/vue/{JobsSection-BHL-hkQw.js → JobsSection-rMIyMb-g.js} +1 -1
  213. package/dist/vue/{LogsSection-DRMGzJmg.js → LogsSection-DmmZVJ7D.js} +9 -3
  214. package/dist/vue/{LogsTab-Bg3o0Mm6.js → LogsTab-47zEK7jL.js} +4 -1
  215. package/dist/vue/{OverviewSection-CXh6Ja1B.js → OverviewSection-BMabyqw-.js} +49 -50
  216. package/dist/vue/{QueriesSection-IodIsCJ-.js → QueriesSection-BfDFwGqH.js} +44 -45
  217. package/dist/vue/{QueriesTab-C8_7oprC.js → QueriesTab-DuTG7cpC.js} +30 -31
  218. package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-Py1iu9GU.js +77 -0
  219. package/dist/vue/{RequestsSection-BPuMdmMc.js → RequestsSection-CTu4jPZ_.js} +143 -147
  220. package/dist/vue/{RoutesSection-NKo3Rbq3.js → RoutesSection-zQZDedL7.js} +1 -1
  221. package/dist/vue/TimelineTab-DHfXsX7t.js +334 -0
  222. package/dist/vue/components/shared/RelatedLogs.vue.d.ts +1 -4
  223. package/dist/vue/composables/useDashboardData.d.ts +12 -23
  224. package/dist/vue/index-CM3yNVUR.js +1232 -0
  225. package/dist/vue/index.js +1 -1
  226. package/dist/vue/style.css +1 -1
  227. package/package.json +1 -1
  228. package/dist/react/CacheSection-UCMptWyn.js +0 -146
  229. package/dist/react/CacheTab-CA8LB1J5.js +0 -123
  230. package/dist/react/CustomPaneTab-Bxtv_8Rw.js +0 -104
  231. package/dist/react/EmailsSection-CM7stSyh.js +0 -262
  232. package/dist/react/EmailsTab-BDhEiomM.js +0 -153
  233. package/dist/react/EventsTab-CMfY98Rl.js +0 -63
  234. package/dist/react/InternalsSection-t7ihcWO-.js +0 -32
  235. package/dist/react/InternalsTab-Oij0A2fN.js +0 -30
  236. package/dist/react/JobsSection-DF3qEv9O.js +0 -187
  237. package/dist/react/JobsTab-BbrBWIOb.js +0 -141
  238. package/dist/react/LogsSection-DcFTZY7b.js +0 -227
  239. package/dist/react/LogsTab-CicucmVk.js +0 -103
  240. package/dist/react/QueriesSection-PswteoF9.js +0 -461
  241. package/dist/react/RelatedLogs-DFDOyUMr.js +0 -40
  242. package/dist/react/RequestsSection-Nag30rEA.js +0 -341
  243. package/dist/react/RoutesTab-DgVzd2PZ.js +0 -74
  244. package/dist/react/index-Cflz9Ebj.js +0 -1069
  245. package/dist/vue/CustomPaneTab-BJxT5Dp7.js +0 -172
  246. package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js +0 -84
  247. package/dist/vue/TimelineTab-zj5Z5OdT.js +0 -338
  248. package/dist/vue/index-Dtgysd26.js +0 -1229
@@ -1,5 +1,5 @@
1
- (function(){"use strict";function fn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ae={},Wt=[],ht=()=>{},cl=()=>!1,Ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,pn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ga=Object.prototype.hasOwnProperty,Ee=(e,t)=>ga.call(e,t),ve=Array.isArray,Jt=e=>vs(e)==="[object Map]",dl=e=>vs(e)==="[object Set]",fl=e=>vs(e)==="[object Date]",ge=e=>typeof e=="function",Oe=e=>typeof e=="string",at=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",hl=e=>(Pe(e)||ge(e))&&ge(e.then)&&ge(e.catch),pl=Object.prototype.toString,vs=e=>pl.call(e),ya=e=>vs(e).slice(8,-1),vl=e=>vs(e)==="[object Object]",vn=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gs=fn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ma=/-\w/g,tt=Os(e=>e.replace(ma,t=>t.slice(1).toUpperCase())),ba=/\B([A-Z])/g,Pt=Os(e=>e.replace(ba,"-$1").toLowerCase()),Fs=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=Os(e=>e?`on${Fs(e)}`:""),Rt=(e,t)=>!Object.is(e,t),yn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},gl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},_a=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xa=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const Ds=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],a=Oe(l)?Sa(l):Ke(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Oe(e)||Pe(e))return e}const wa=/;(?![^(]*\))/g,$a=/:([^]+)/,ka=/\/\*[^]*?\*\//g;function Sa(e){const t={};return e.replace(ka,"").split(wa).forEach(s=>{if(s){const l=s.split($a);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function M(e){let t="";if(Oe(e))t=e;else if(ve(e))for(let s=0;s<e.length;s++){const l=M(e[s]);l&&(t+=l+" ")}else if(Pe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ca=fn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ml(e){return!!e||e===""}function Ta(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=mn(e[l],t[l]);return s}function mn(e,t){if(e===t)return!0;let s=fl(e),l=fl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=at(e),l=at(t),s||l)return e===t;if(s=ve(e),l=ve(t),s||l)return s&&l?Ta(e,t):!1;if(s=Pe(e),l=Pe(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(r&&!u||!r&&u||!mn(e[i],t[i]))return!1}}return String(e)===String(t)}const bl=e=>!!(e&&e.__v_isRef===!0),h=e=>Oe(e)?e:e==null?"":ve(e)||Pe(e)&&(e.toString===pl||!ge(e.toString))?bl(e)?h(e.value):JSON.stringify(e,_l,2):String(e),_l=(e,t)=>bl(t)?_l(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[bn(l,o)+" =>"]=a,s),{})}:dl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>bn(s))}:at(t)?bn(t):Pe(t)&&!ve(t)&&!vl(t)?String(t):t,bn=(e,t="")=>{var s;return at(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Ea{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Qe;try{return Qe=this,t()}finally{Qe=s}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Pa(){return Qe}let Me;const _n=new WeakSet;class xl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_n.has(this)&&(_n.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$l(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,El(this),kl(this);const t=Me,s=it;Me=this,it=!0;try{return this.fn()}finally{Sl(this),Me=t,it=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kn(t);this.deps=this.depsTail=void 0,El(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$n(this)&&this.run()}get dirty(){return $n(this)}}let wl=0,ys,ms;function $l(e,t=!1){if(e.flags|=8,t){e.next=ms,ms=e;return}e.next=ys,ys=e}function xn(){wl++}function wn(){if(--wl>0)return;if(ms){let t=ms;for(ms=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ys;){let t=ys;for(ys=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function kl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Sl(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),kn(l),Ra(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function $n(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$n(e))))return;e.flags|=2;const t=e.dep,s=Me,l=it;Me=e,it=!0;try{kl(e);const a=e.fn(e._value);(t.version===0||Rt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Me=s,it=l,Sl(e),e.flags&=-3}}function kn(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)kn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ra(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let it=!0;const Tl=[];function pt(){Tl.push(it),it=!1}function vt(){const e=Tl.pop();it=e===void 0?!0:e}function El(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Me;Me=void 0;try{t()}finally{Me=s}}}let bs=0;class Aa{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Sn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Me||!it||Me===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Me)s=this.activeLink=new Aa(Me,this),Me.deps?(s.prevDep=Me.depsTail,Me.depsTail.nextDep=s,Me.depsTail=s):Me.deps=Me.depsTail=s,Pl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Me.depsTail,s.nextDep=void 0,Me.depsTail.nextDep=s,Me.depsTail=s,Me.deps===s&&(Me.deps=l)}return s}trigger(t){this.version++,bs++,this.notify(t)}notify(t){xn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{wn()}}}function Pl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Pl(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Cn=new WeakMap,Ht=Symbol(""),Tn=Symbol(""),_s=Symbol("");function qe(e,t,s){if(it&&Me){let l=Cn.get(e);l||Cn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new Sn),a.map=l,a.key=s),a.track()}}function xt(e,t,s,l,a,o){const i=Cn.get(e);if(!i){bs++;return}const r=u=>{u&&u.trigger()};if(xn(),t==="clear")i.forEach(r);else{const u=ve(e),g=u&&vn(s);if(u&&s==="length"){const p=Number(l);i.forEach((m,v)=>{(v==="length"||v===_s||!at(v)&&v>=p)&&r(m)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),g&&r(i.get(_s)),t){case"add":u?g&&r(i.get("length")):(r(i.get(Ht)),Jt(e)&&r(i.get(Tn)));break;case"delete":u||(r(i.get(Ht)),Jt(e)&&r(i.get(Tn)));break;case"set":Jt(e)&&r(i.get(Ht));break}}wn()}function Qt(e){const t=ke(e);return t===e?t:(qe(t,"iterate",_s),st(e)?t:t.map(rt))}function Is(e){return qe(e=ke(e),"iterate",_s),e}function At(e,t){return $t(e)?Yt(qt(e)?rt(t):t):rt(t)}const Ma={__proto__:null,[Symbol.iterator](){return En(this,Symbol.iterator,e=>At(this,e))},concat(...e){return Qt(this).concat(...e.map(t=>ve(t)?Qt(t):t))},entries(){return En(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,s=>s.map(l=>At(this,l)),arguments)},find(e,t){return wt(this,"find",e,t,s=>At(this,s),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,s=>At(this,s),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pn(this,"includes",e)},indexOf(...e){return Pn(this,"indexOf",e)},join(e){return Qt(this).join(e)},lastIndexOf(...e){return Pn(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return Rl(this,"reduce",e,t)},reduceRight(e,...t){return Rl(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return Qt(this).toReversed()},toSorted(e){return Qt(this).toSorted(e)},toSpliced(...e){return Qt(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return En(this,"values",e=>At(this,e))}};function En(e,t,s){const l=Is(e),a=l[t]();return l!==e&&!st(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const La=Array.prototype;function wt(e,t,s,l,a,o){const i=Is(e),r=i!==e&&!st(e),u=i[t];if(u!==La[t]){const m=u.apply(e,o);return r?rt(m):m}let g=s;i!==e&&(r?g=function(m,v){return s.call(this,At(e,m),v,e)}:s.length>2&&(g=function(m,v){return s.call(this,m,v,e)}));const p=u.call(i,g,l);return r&&a?a(p):p}function Rl(e,t,s,l){const a=Is(e);let o=s;return a!==e&&(st(e)?s.length>3&&(o=function(i,r,u){return s.call(this,i,r,u,e)}):o=function(i,r,u){return s.call(this,i,At(e,r),u,e)}),a[t](o,...l)}function Pn(e,t,s){const l=ke(e);qe(l,"iterate",_s);const a=l[t](...s);return(a===-1||a===!1)&&Mn(s[0])?(s[0]=ke(s[0]),l[t](...s)):a}function xs(e,t,s=[]){pt(),xn();const l=ke(e)[t].apply(e,s);return wn(),vt(),l}const Oa=fn("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(at));function Fa(e){at(e)||(e=String(e));const t=ke(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Ml{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?Bl:Il:o?Dl:Fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const i=ve(t);if(!a){let u;if(i&&(u=Ma[s]))return u;if(s==="hasOwnProperty")return Fa}const r=Reflect.get(t,s,je(t)?t:l);if((at(s)?Al.has(s):Oa(s))||(a||qe(t,"get",s),o))return r;if(je(r)){const u=i&&vn(s)?r:r.value;return a&&Pe(u)?An(u):u}return Pe(r)?a?An(r):Gt(r):r}}class Ll extends Ml{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const i=ve(t)&&vn(s);if(!this._isShallow){const g=$t(o);if(!st(l)&&!$t(l)&&(o=ke(o),l=ke(l)),!i&&je(o)&&!je(l))return g||(o.value=l),!0}const r=i?Number(s)<t.length:Ee(t,s),u=Reflect.set(t,s,l,je(t)?t:a);return t===ke(a)&&(r?Rt(l,o)&&xt(t,"set",s,l):xt(t,"add",s,l)),u}deleteProperty(t,s){const l=Ee(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&xt(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!at(s)||!Al.has(s))&&qe(t,"has",s),l}ownKeys(t){return qe(t,"iterate",ve(t)?"length":Ht),Reflect.ownKeys(t)}}class Ol extends Ml{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Da=new Ll,Ia=new Ol,Ba=new Ll(!0),Na=new Ol(!0),Rn=e=>e,Bs=e=>Reflect.getPrototypeOf(e);function ja(e,t,s){return function(...l){const a=this.__v_raw,o=ke(a),i=Jt(o),r=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,g=a[e](...l),p=s?Rn:t?Yt:rt;return!t&&qe(o,"iterate",u?Tn:Ht),Ne(Object.create(g),{next(){const{value:m,done:v}=g.next();return v?{value:m,done:v}:{value:r?[p(m[0]),p(m[1])]:p(m),done:v}}})}}function Ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ha(e,t){const s={get(a){const o=this.__v_raw,i=ke(o),r=ke(a);e||(Rt(a,r)&&qe(i,"get",a),qe(i,"get",r));const{has:u}=Bs(i),g=t?Rn:e?Yt:rt;if(u.call(i,a))return g(o.get(a));if(u.call(i,r))return g(o.get(r));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&qe(ke(a),"iterate",Ht),a.size},has(a){const o=this.__v_raw,i=ke(o),r=ke(a);return e||(Rt(a,r)&&qe(i,"has",a),qe(i,"has",r)),a===r?o.has(a):o.has(a)||o.has(r)},forEach(a,o){const i=this,r=i.__v_raw,u=ke(r),g=t?Rn:e?Yt:rt;return!e&&qe(u,"iterate",Ht),r.forEach((p,m)=>a.call(o,g(p),g(m),i))}};return Ne(s,e?{add:Ns("add"),set:Ns("set"),delete:Ns("delete"),clear:Ns("clear")}:{add(a){!t&&!st(a)&&!$t(a)&&(a=ke(a));const o=ke(this);return Bs(o).has.call(o,a)||(o.add(a),xt(o,"add",a,a)),this},set(a,o){!t&&!st(o)&&!$t(o)&&(o=ke(o));const i=ke(this),{has:r,get:u}=Bs(i);let g=r.call(i,a);g||(a=ke(a),g=r.call(i,a));const p=u.call(i,a);return i.set(a,o),g?Rt(o,p)&&xt(i,"set",a,o):xt(i,"add",a,o),this},delete(a){const o=ke(this),{has:i,get:r}=Bs(o);let u=i.call(o,a);u||(a=ke(a),u=i.call(o,a)),r&&r.call(o,a);const g=o.delete(a);return u&&xt(o,"delete",a,void 0),g},clear(){const a=ke(this),o=a.size!==0,i=a.clear();return o&&xt(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=ja(a,e,t)}),s}function js(e,t){const s=Ha(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(Ee(s,a)&&a in l?s:l,a,o)}const qa={get:js(!1,!1)},Ua={get:js(!1,!0)},Ka={get:js(!0,!1)},Va={get:js(!0,!0)},Fl=new WeakMap,Dl=new WeakMap,Il=new WeakMap,Bl=new WeakMap;function za(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wa(e){return e.__v_skip||!Object.isExtensible(e)?0:za(ya(e))}function Gt(e){return $t(e)?e:Hs(e,!1,Da,qa,Fl)}function Ja(e){return Hs(e,!1,Ba,Ua,Dl)}function An(e){return Hs(e,!0,Ia,Ka,Il)}function p1(e){return Hs(e,!0,Na,Va,Bl)}function Hs(e,t,s,l,a){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Wa(e);if(o===0)return e;const i=a.get(e);if(i)return i;const r=new Proxy(e,o===2?l:s);return a.set(e,r),r}function qt(e){return $t(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Mn(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function Qa(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&gl(e,"__v_skip",!0),e}const rt=e=>Pe(e)?Gt(e):e,Yt=e=>Pe(e)?An(e):e;function je(e){return e?e.__v_isRef===!0:!1}function W(e){return Ga(e,!1)}function Ga(e,t){return je(e)?e:new Ya(e,t)}class Ya{constructor(t,s){this.dep=new Sn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ke(t),this._value=s?t:rt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||$t(t);t=l?t:ke(t),Rt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const Xa={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Nl(e){return qt(e)?e:new Proxy(e,Xa)}class Za{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Sn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Me!==this)return $l(this,!0),!0}get value(){const t=this.dep.track();return Cl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let l,a;return ge(e)?l=e:(l=e.get,a=e.set),new Za(l,a,s)}const qs={},Us=new WeakMap;let Ut;function ti(e,t=!1,s=Ut){if(s){let l=Us.get(s);l||Us.set(s,l=[]),l.push(e)}}function si(e,t,s=Ae){const{immediate:l,deep:a,once:o,scheduler:i,augmentJob:r,call:u}=s,g=$=>a?$:st($)||a===!1||a===0?Mt($,1):Mt($);let p,m,v,b,C=!1,x=!1;if(je(e)?(m=()=>e.value,C=st(e)):qt(e)?(m=()=>g(e),C=!0):ve(e)?(x=!0,C=e.some($=>qt($)||st($)),m=()=>e.map($=>{if(je($))return $.value;if(qt($))return g($);if(ge($))return u?u($,2):$()})):ge(e)?t?m=u?()=>u(e,2):e:m=()=>{if(v){pt();try{v()}finally{vt()}}const $=Ut;Ut=p;try{return u?u(e,3,[b]):e(b)}finally{Ut=$}}:m=ht,t&&a){const $=m,T=a===!0?1/0:a;m=()=>Mt($(),T)}const P=Pa(),L=()=>{p.stop(),P&&P.active&&pn(P.effects,p)};if(o&&t){const $=t;t=(...T)=>{$(...T),L()}}let A=x?new Array(e.length).fill(qs):qs;const y=$=>{if(!(!(p.flags&1)||!p.dirty&&!$))if(t){const T=p.run();if(a||C||(x?T.some((z,te)=>Rt(z,A[te])):Rt(T,A))){v&&v();const z=Ut;Ut=p;try{const te=[T,A===qs?void 0:x&&A[0]===qs?[]:A,b];A=T,u?u(t,3,te):t(...te)}finally{Ut=z}}}else p.run()};return r&&r(y),p=new xl(m),p.scheduler=i?()=>i(y,!1):y,b=$=>ti($,!1,p),v=p.onStop=()=>{const $=Us.get(p);if($){if(u)u($,4);else for(const T of $)T();Us.delete(p)}},t?l?y(!0):A=p.run():i?i(y.bind(null,!0),!0):p.run(),L.pause=p.pause.bind(p),L.resume=p.resume.bind(p),L.stop=L,L}function Mt(e,t=1/0,s){if(t<=0||!Pe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Mt(e.value,t,s);else if(ve(e))for(let l=0;l<e.length;l++)Mt(e[l],t,s);else if(dl(e)||Jt(e))e.forEach(l=>{Mt(l,t,s)});else if(vl(e)){for(const l in e)Mt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Mt(e[l],t,s)}return e}const ws=[];let Ln=!1;function v1(e,...t){if(Ln)return;Ln=!0,pt();const s=ws.length?ws[ws.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ni();if(l)Xt(l,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Bo(s,o.type)}>`).join(`
2
- `),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
3
- `,...li(a)),console.warn(...o)}vt(),Ln=!1}function ni(){let e=ws[ws.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const l=e.component&&e.component.parent;e=l&&l.vnode}return t}function li(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
4
- `],...oi(s))}),t}function oi({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Bo(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...ai(e.props),o]:[a+o]}function ai(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...jl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function jl(e,t,s){return Oe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=jl(e,ke(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ge(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ke(t),s?t:[`${e}=`,t])}function Xt(e,t,s,l){try{return l?e(...l):e()}catch(a){Zt(a,t,s)}}function gt(e,t,s,l){if(ge(e)){const a=Xt(e,t,s,l);return a&&hl(a)&&a.catch(o=>{Zt(o,t,s)}),a}if(ve(e)){const a=[];for(let o=0;o<e.length;o++)a.push(gt(e[o],t,s,l));return a}}function Zt(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ae;if(t){let r=t.parent;const u=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,u,g)===!1)return}r=r.parent}if(o){pt(),Xt(o,null,10,[e,u,g]),vt();return}}ii(e,s,a,l,i)}function ii(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const Ve=[];let yt=-1;const es=[];let Lt=null,ts=0;const Hl=Promise.resolve();let Ks=null;function On(e){const t=Ks||Hl;return e?t.then(this?e.bind(this):e):t}function ri(e){let t=yt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,a=Ve[l],o=$s(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Fn(e){if(!(e.flags&1)){const t=$s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=$s(s)?Ve.push(e):Ve.splice(ri(t),0,e),e.flags|=1,ql()}}function ql(){Ks||(Ks=Hl.then(Vl))}function Dn(e){ve(e)?es.push(...e):Lt&&e.id===-1?Lt.splice(ts+1,0,e):e.flags&1||(es.push(e),e.flags|=1),ql()}function Ul(e,t,s=yt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Kl(e){if(es.length){const t=[...new Set(es)].sort((s,l)=>$s(s)-$s(l));if(es.length=0,Lt){Lt.push(...t);return}for(Lt=t,ts=0;ts<Lt.length;ts++){const s=Lt[ts];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Lt=null,ts=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vl(e){try{for(yt=0;yt<Ve.length;yt++){const t=Ve[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Ve.length;yt++){const t=Ve[yt];t&&(t.flags&=-2)}yt=-1,Ve.length=0,Kl(),Ks=null,(Ve.length||es.length)&&Vl()}}let ze=null,zl=null;function Vs(e){const t=ze;return ze=e,zl=e&&e.type.__scopeId||null,t}function ss(e,t=ze,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Zs(-1);const o=Vs(t);let i;try{i=e(...a)}finally{Vs(o),l._d&&Zs(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function Kt(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const r=a[i];o&&(r.oldValue=o[i].value);let u=r.dir[l];u&&(pt(),gt(u,s,8,[e.el,r,e,t]),vt())}}function ns(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=vr();if(l||os){let a=os?os._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&ge(t)?t.call(l&&l.proxy):t}}const ui=Symbol.for("v-scx"),ci=()=>de(ui);function ut(e,t,s){return Wl(e,t,s)}function Wl(e,t,s=Ae){const{immediate:l,deep:a,flush:o,once:i}=s,r=Ne({},s),u=t&&l||!t&&o!=="post";let g;if(cs){if(o==="sync"){const b=ci();g=b.__watcherHandles||(b.__watcherHandles=[])}else if(!u){const b=()=>{};return b.stop=ht,b.resume=ht,b.pause=ht,b}}const p=He;r.call=(b,C,x)=>gt(b,p,C,x);let m=!1;o==="post"?r.scheduler=b=>{Je(b,p&&p.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(b,C)=>{C?b():Fn(b)}),r.augmentJob=b=>{t&&(b.flags|=4),m&&(b.flags|=2,p&&(b.id=p.uid,b.i=p))};const v=si(e,t,r);return cs&&(g?g.push(v):u&&v()),v}function di(e,t,s){const l=this.proxy,a=Oe(e)?e.includes(".")?Jl(l,e):()=>l[e]:e.bind(l,l);let o;ge(t)?o=t:(o=t.handler,s=t);const i=Ps(this),r=Wl(a,o.bind(l),s);return i(),r}function Jl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const fi=Symbol("_vte"),hi=e=>e.__isTeleport,pi=Symbol("_leaveCb");function In(e,t){e.shapeFlag&6&&e.component?(e.transition=t,In(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fe(e,t){return ge(e)?Ne({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ql(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const zs=new WeakMap;function ks(e,t,s,l,a=!1){if(ve(e)){e.forEach((x,P)=>ks(x,t&&(ve(t)?t[P]:t),s,l,a));return}if(ls(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ks(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?Zn(l.component):l.el,i=a?null:o,{i:r,r:u}=e,g=t&&t.r,p=r.refs===Ae?r.refs={}:r.refs,m=r.setupState,v=ke(m),b=m===Ae?cl:x=>Ql(p,x)?!1:Ee(v,x),C=(x,P)=>!(P&&Ql(p,P));if(g!=null&&g!==u){if(Gl(t),Oe(g))p[g]=null,b(g)&&(m[g]=null);else if(je(g)){const x=t;C(g,x.k)&&(g.value=null),x.k&&(p[x.k]=null)}}if(ge(u))Xt(u,r,12,[i,p]);else{const x=Oe(u),P=je(u);if(x||P){const L=()=>{if(e.f){const A=x?b(u)?m[u]:p[u]:C()||!e.k?u.value:p[e.k];if(a)ve(A)&&pn(A,o);else if(ve(A))A.includes(o)||A.push(o);else if(x)p[u]=[o],b(u)&&(m[u]=p[u]);else{const y=[o];C(u,e.k)&&(u.value=y),e.k&&(p[e.k]=y)}}else x?(p[u]=i,b(u)&&(m[u]=i)):P&&(C(u,e.k)&&(u.value=i),e.k&&(p[e.k]=i))};if(i){const A=()=>{L(),zs.delete(e)};A.id=-1,zs.set(e,A),Je(A,s)}else Gl(e),L()}}}function Gl(e){const t=zs.get(e);t&&(t.flags|=8,zs.delete(e))}const Yl=e=>e.nodeType===8;Ds().requestIdleCallback,Ds().cancelIdleCallback;function vi(e,t){if(Yl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Yl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ls=e=>!!e.type.__asyncLoader;function ct(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:i,suspensible:r=!0,onError:u}=e;let g=null,p,m=0;const v=()=>(m++,g=null,b()),b=()=>{let C;return g||(C=g=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),u)return new Promise((P,L)=>{u(x,()=>P(v()),()=>L(x),m+1)});throw x}).then(x=>C!==g&&g?g:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),p=x,x)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(C,x,P){let L=!1;(x.bu||(x.bu=[])).push(()=>L=!0);const A=()=>{L||P()},y=o?()=>{const $=o(A,T=>vi(C,T));$&&(x.bum||(x.bum=[])).push($)}:A;p?y():b().then(()=>!x.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const C=He;if(Bn(C),p)return()=>Ws(p,C);const x=y=>{g=null,Zt(y,C,13,!l)};if(r&&C.suspense||cs)return b().then(y=>()=>Ws(y,C)).catch(y=>(x(y),()=>l?me(l,{error:y}):null));const P=W(!1),L=W(),A=W(!!a);return a&&setTimeout(()=>{A.value=!1},a),i!=null&&setTimeout(()=>{if(!P.value&&!L.value){const y=new Error(`Async component timed out after ${i}ms.`);x(y),L.value=y}},i),b().then(()=>{P.value=!0,C.parent&&Nn(C.parent.vnode)&&C.parent.update()}).catch(y=>{x(y),L.value=y}),()=>{if(P.value&&p)return Ws(p,C);if(L.value&&l)return me(l,{error:L.value});if(s&&!A.value)return Ws(s,C)}}})}function Ws(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,i=me(e,l,a);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const Nn=e=>e.type.__isKeepAlive;function gi(e,t){Xl(e,"a",t)}function yi(e,t){Xl(e,"da",t)}function Xl(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Js(t,l,s),s){let a=s.parent;for(;a&&a.parent;)Nn(a.parent.vnode)&&mi(l,t,s,a),a=a.parent}}function mi(e,t,s,l){const a=Js(t,e,l,!0);St(()=>{pn(l[t],a)},s)}function Js(e,t,s=He,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{pt();const r=Ps(s),u=gt(t,s,e,i);return r(),vt(),u});return l?a.unshift(o):a.push(o),o}}const kt=e=>(t,s=He)=>{(!cs||e==="sp")&&Js(e,(...l)=>t(...l),s)},bi=kt("bm"),Ot=kt("m"),_i=kt("bu"),xi=kt("u"),Zl=kt("bum"),St=kt("um"),wi=kt("sp"),$i=kt("rtg"),ki=kt("rtc");function Si(e,t=He){Js("ec",e,t)}const Ci="components",eo=Symbol.for("v-ndc");function Ti(e){return Oe(e)?Ei(Ci,e,!1)||e:e||eo}function Ei(e,t,s=!0,l=!1){const a=ze||He;if(a){const o=a.type;{const r=Io(o,!1);if(r&&(r===t||r===tt(t)||r===Fs(tt(t))))return o}const i=to(a[e]||o[e],t)||to(a.appContext[e],t);return!i&&l?o:i}}function to(e,t){return e&&(e[t]||e[tt(t)]||e[Fs(tt(t))])}function ye(e,t,s,l){let a;const o=s,i=ve(e);if(i||Oe(e)){const r=i&&qt(e);let u=!1,g=!1;r&&(u=!st(e),g=$t(e),e=Is(e)),a=new Array(e.length);for(let p=0,m=e.length;p<m;p++)a[p]=t(u?g?Yt(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(Pe(e))if(e[Symbol.iterator])a=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);a=new Array(r.length);for(let u=0,g=r.length;u<g;u++){const p=r[u];a[u]=t(e[p],p,u,o)}}else a=[];return a}function Pi(e,t,s={},l,a){if(ze.ce||ze.parent&&ls(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return c(),Xe(K,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),c();const i=o&&so(o(s)),r=s.key||i&&i.key,u=Xe(K,{key:(r&&!at(r)?r:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function so(e){return e.some(t=>rs(t)?!(t.type===dt||t.type===K&&!so(t.children)):!0)?e:null}const jn=e=>e?Fo(e)?Zn(e):jn(e.parent):null,Ss=Ne(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jn(e.parent),$root:e=>jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{Fn(e.update)}),$nextTick:e=>e.n||(e.n=On.bind(e.proxy)),$watch:e=>di.bind(e)}),Hn=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ee(e,t),Ri={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:i,type:r,appContext:u}=e;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Hn(l,t))return i[t]=1,l[t];if(a!==Ae&&Ee(a,t))return i[t]=2,a[t];if(Ee(o,t))return i[t]=3,o[t];if(s!==Ae&&Ee(s,t))return i[t]=4,s[t];qn&&(i[t]=0)}}const g=Ss[t];let p,m;if(g)return t==="$attrs"&&qe(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Ae&&Ee(s,t))return i[t]=4,s[t];if(m=u.config.globalProperties,Ee(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Hn(a,t)?(a[t]=s,!0):l!==Ae&&Ee(l,t)?(l[t]=s,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:a,props:o,type:i}},r){let u;return!!(s[r]||e!==Ae&&r[0]!=="$"&&Ee(e,r)||Hn(t,r)||Ee(o,r)||Ee(l,r)||Ee(Ss,r)||Ee(a.config.globalProperties,r)||(u=i.__cssModules)&&u[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ee(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function no(e){return ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qn=!0;function Ai(e){const t=ao(e),s=e.proxy,l=e.ctx;qn=!1,t.beforeCreate&&lo(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:r,provide:u,inject:g,created:p,beforeMount:m,mounted:v,beforeUpdate:b,updated:C,activated:x,deactivated:P,beforeDestroy:L,beforeUnmount:A,destroyed:y,unmounted:$,render:T,renderTracked:z,renderTriggered:te,errorCaptured:se,serverPrefetch:Z,expose:fe,inheritAttrs:Se,components:be,directives:Ce,filters:$e}=t;if(g&&Mi(g,l,null),i)for(const j in i){const k=i[j];ge(k)&&(l[j]=k.bind(s))}if(a){const j=a.call(s,s);Pe(j)&&(e.data=Gt(j))}if(qn=!0,o)for(const j in o){const k=o[j],E=ge(k)?k.bind(s,s):ge(k.get)?k.get.bind(s,s):ht,S=!ge(k)&&ge(k.set)?k.set.bind(s):ht,H=q({get:E,set:S});Object.defineProperty(l,j,{enumerable:!0,configurable:!0,get:()=>H.value,set:oe=>H.value=oe})}if(r)for(const j in r)oo(r[j],l,s,j);if(u){const j=ge(u)?u.call(s):u;Reflect.ownKeys(j).forEach(k=>{ns(k,j[k])})}p&&lo(p,e,"c");function V(j,k){ve(k)?k.forEach(E=>j(E.bind(s))):k&&j(k.bind(s))}if(V(bi,m),V(Ot,v),V(_i,b),V(xi,C),V(gi,x),V(yi,P),V(Si,se),V(ki,z),V($i,te),V(Zl,A),V(St,$),V(wi,Z),ve(fe))if(fe.length){const j=e.exposed||(e.exposed={});fe.forEach(k=>{Object.defineProperty(j,k,{get:()=>s[k],set:E=>s[k]=E,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ht&&(e.render=T),Se!=null&&(e.inheritAttrs=Se),be&&(e.components=be),Ce&&(e.directives=Ce),Z&&Bn(e)}function Mi(e,t,s=ht){ve(e)&&(e=Un(e));for(const l in e){const a=e[l];let o;Pe(a)?"default"in a?o=de(a.from||l,a.default,!0):o=de(a.from||l):o=de(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[l]=o}}function lo(e,t,s){gt(ve(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function oo(e,t,s,l){let a=l.includes(".")?Jl(s,l):()=>s[l];if(Oe(e)){const o=t[e];ge(o)&&ut(a,o)}else if(ge(e))ut(a,e.bind(s));else if(Pe(e))if(ve(e))e.forEach(o=>oo(o,t,s,l));else{const o=ge(e.handler)?e.handler.bind(s):t[e.handler];ge(o)&&ut(a,o,e)}}function ao(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let u;return r?u=r:!a.length&&!s&&!l?u=t:(u={},a.length&&a.forEach(g=>Qs(u,g,i,!0)),Qs(u,t,i)),Pe(t)&&o.set(t,u),u}function Qs(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&Qs(e,o,s,!0),a&&a.forEach(i=>Qs(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const r=Li[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Li={data:io,props:ro,emits:ro,methods:Cs,computed:Cs,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:Cs,directives:Cs,watch:Fi,provide:io,inject:Oi};function io(e,t){return t?e?function(){return Ne(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Cs(Un(e),Un(t))}function Un(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ne(Object.create(null),e,t):t}function ro(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ne(Object.create(null),no(e),no(t??{})):t}function Fi(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function uo(){return{app:null,config:{isNativeTag:cl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Di=0;function Ii(e,t){return function(l,a=null){ge(l)||(l=Ne({},l)),a!=null&&!Pe(a)&&(a=null);const o=uo(),i=new WeakSet,r=[];let u=!1;const g=o.app={_uid:Di++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:$r,get config(){return o.config},set config(p){},use(p,...m){return i.has(p)||(p&&ge(p.install)?(i.add(p),p.install(g,...m)):ge(p)&&(i.add(p),p(g,...m))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,m){return m?(o.components[p]=m,g):o.components[p]},directive(p,m){return m?(o.directives[p]=m,g):o.directives[p]},mount(p,m,v){if(!u){const b=g._ceVNode||me(l,a);return b.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(b,p,v),u=!0,g._container=p,p.__vue_app__=g,Zn(b.component)}},onUnmount(p){r.push(p)},unmount(){u&&(gt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return o.provides[p]=m,g},runWithContext(p){const m=os;os=g;try{return p()}finally{os=m}}};return g}}let os=null;const Bi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Ni(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Ae;let a=s;const o=t.startsWith("update:"),i=o&&Bi(l,t.slice(7));i&&(i.trim&&(a=s.map(p=>Oe(p)?p.trim():p)),i.number&&(a=s.map(_a)));let r,u=l[r=gn(t)]||l[r=gn(tt(t))];!u&&o&&(u=l[r=gn(Pt(t))]),u&&gt(u,e,6,a);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,gt(g,e,6,a)}}const ji=new WeakMap;function co(e,t,s=!1){const l=s?ji:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let i={},r=!1;if(!ge(e)){const u=g=>{const p=co(g,t,!0);p&&(r=!0,Ne(i,p))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?(Pe(e)&&l.set(e,null),null):(ve(o)?o.forEach(u=>i[u]=null):Ne(i,o),Pe(e)&&l.set(e,i),i)}function Gs(e,t){return!e||!Ls(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,Pt(t))||Ee(e,t))}function g1(){}function fo(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:i,attrs:r,emit:u,render:g,renderCache:p,props:m,data:v,setupState:b,ctx:C,inheritAttrs:x}=e,P=Vs(e);let L,A;try{if(s.shapeFlag&4){const $=a||l,T=$;L=ft(g.call(T,$,p,m,b,v,C)),A=r}else{const $=t;L=ft($.length>1?$(m,{attrs:r,slots:i,emit:u}):$(m,null)),A=t.props?r:qi(r)}}catch($){Es.length=0,Zt($,e,1),L=me(dt)}let y=L;if(A&&x!==!1){const $=Object.keys(A),{shapeFlag:T}=y;$.length&&T&7&&(o&&$.some(hn)&&(A=Ui(A,o)),y=us(y,A,!1,!0))}return s.dirs&&(y=us(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&In(y,s.transition),L=y,Vs(P),L}function Hi(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(rs(a)){if(a.type!==dt||a.children==="v-if"){if(s)return;s=a}}else return}return s}const qi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ls(s))&&((t||(t={}))[s]=e[s]);return t},Ui=(e,t)=>{const s={};for(const l in e)(!hn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ki(e,t,s){const{props:l,children:a,component:o}=e,{props:i,children:r,patchFlag:u}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?ho(l,i,g):!!i;if(u&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const v=p[m];if(po(i,l,v)&&!Gs(g,v))return!0}}}else return(a||r)&&(!r||!r.$stable)?!0:l===i?!1:l?i?ho(l,i,g):!0:!!i;return!1}function ho(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(po(t,e,o)&&!Gs(s,o))return!0}return!1}function po(e,t,s){const l=e[s],a=t[s];return s==="style"&&Pe(l)&&Pe(a)?!mn(l,a):l!==a}function Kn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const vo={},go=()=>Object.create(vo),yo=e=>Object.getPrototypeOf(e)===vo;function Vi(e,t,s,l=!1){const a={},o=go();e.propsDefaults=Object.create(null),mo(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);s?e.props=l?a:Ja(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function zi(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,r=ke(a),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let v=p[m];if(Gs(e.emitsOptions,v))continue;const b=t[v];if(u)if(Ee(o,v))b!==o[v]&&(o[v]=b,g=!0);else{const C=tt(v);a[C]=Vn(u,r,C,b,e,!1)}else b!==o[v]&&(o[v]=b,g=!0)}}}else{mo(e,t,a,o)&&(g=!0);let p;for(const m in r)(!t||!Ee(t,m)&&((p=Pt(m))===m||!Ee(t,p)))&&(u?s&&(s[m]!==void 0||s[p]!==void 0)&&(a[m]=Vn(u,r,m,void 0,e,!0)):delete a[m]);if(o!==r)for(const m in o)(!t||!Ee(t,m))&&(delete o[m],g=!0)}g&&xt(e.attrs,"set","")}function mo(e,t,s,l){const[a,o]=e.propsOptions;let i=!1,r;if(t)for(let u in t){if(gs(u))continue;const g=t[u];let p;a&&Ee(a,p=tt(u))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Gs(e.emitsOptions,u)||(!(u in l)||g!==l[u])&&(l[u]=g,i=!0)}if(o){const u=ke(s),g=r||Ae;for(let p=0;p<o.length;p++){const m=o[p];s[m]=Vn(a,u,m,g[m],e,!Ee(g,m))}}return i}function Vn(e,t,s,l,a,o){const i=e[s];if(i!=null){const r=Ee(i,"default");if(r&&l===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&ge(u)){const{propsDefaults:g}=a;if(s in g)l=g[s];else{const p=Ps(a);l=g[s]=u.call(null,t),p()}}else l=u;a.ce&&a.ce._setProp(s,l)}i[0]&&(o&&!r?l=!1:i[1]&&(l===""||l===Pt(s))&&(l=!0))}return l}const Wi=new WeakMap;function bo(e,t,s=!1){const l=s?Wi:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,i={},r=[];let u=!1;if(!ge(e)){const p=m=>{u=!0;const[v,b]=bo(m,t,!0);Ne(i,v),b&&r.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!u)return Pe(e)&&l.set(e,Wt),Wt;if(ve(o))for(let p=0;p<o.length;p++){const m=tt(o[p]);_o(m)&&(i[m]=Ae)}else if(o)for(const p in o){const m=tt(p);if(_o(m)){const v=o[p],b=i[m]=ve(v)||ge(v)?{type:v}:Ne({},v),C=b.type;let x=!1,P=!0;if(ve(C))for(let L=0;L<C.length;++L){const A=C[L],y=ge(A)&&A.name;if(y==="Boolean"){x=!0;break}else y==="String"&&(P=!1)}else x=ge(C)&&C.name==="Boolean";b[0]=x,b[1]=P,(x||Ee(b,"default"))&&r.push(m)}}const g=[i,r];return Pe(e)&&l.set(e,g),g}function _o(e){return e[0]!=="$"&&!gs(e)}const zn=e=>e==="_"||e==="_ctx"||e==="$stable",Wn=e=>ve(e)?e.map(ft):[ft(e)],Ji=(e,t,s)=>{if(t._n)return t;const l=ss((...a)=>Wn(t(...a)),s);return l._c=!1,l},xo=(e,t,s)=>{const l=e._ctx;for(const a in e){if(zn(a))continue;const o=e[a];if(ge(o))t[a]=Ji(a,o,l);else if(o!=null){const i=Wn(o);t[a]=()=>i}}},wo=(e,t)=>{const s=Wn(t);e.slots.default=()=>s},$o=(e,t,s)=>{for(const l in t)(s||!zn(l))&&(e[l]=t[l])},Qi=(e,t,s)=>{const l=e.slots=go();if(e.vnode.shapeFlag&32){const a=t._;a?($o(l,t,s),s&&gl(l,"_",a,!0)):xo(t,l)}else t&&wo(e,t)},Gi=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,i=Ae;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:$o(a,t,s):(o=!t.$stable,xo(t,a)),i=t}else t&&(wo(e,t),i={default:1});if(o)for(const r in a)!zn(r)&&i[r]==null&&delete a[r]},Je=ar;function Yi(e){return Xi(e)}function Xi(e,t){const s=Ds();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:i,createText:r,createComment:u,setText:g,setElementText:p,parentNode:m,nextSibling:v,setScopeId:b=ht,insertStaticContent:C}=e,x=(f,_,R,N=null,F=null,D=null,G=void 0,Q=null,I=!!_.dynamicChildren)=>{if(f===_)return;f&&!Ft(f,_)&&(N=ie(f),oe(f,F,D,!0),f=null),_.patchFlag===-2&&(I=!1,_.dynamicChildren=null);const{type:B,ref:ce,shapeFlag:ee}=_;switch(B){case Ys:P(f,_,R,N);break;case dt:L(f,_,R,N);break;case Xs:f==null&&A(_,R,N,G);break;case K:be(f,_,R,N,F,D,G,Q,I);break;default:ee&1?T(f,_,R,N,F,D,G,Q,I):ee&6?Ce(f,_,R,N,F,D,G,Q,I):(ee&64||ee&128)&&B.process(f,_,R,N,F,D,G,Q,I,Et)}ce!=null&&F?ks(ce,f&&f.ref,D,_||f,!_):ce==null&&f&&f.ref!=null&&ks(f.ref,null,D,f,!0)},P=(f,_,R,N)=>{if(f==null)l(_.el=r(_.children),R,N);else{const F=_.el=f.el;_.children!==f.children&&g(F,_.children)}},L=(f,_,R,N)=>{f==null?l(_.el=u(_.children||""),R,N):_.el=f.el},A=(f,_,R,N)=>{[f.el,f.anchor]=C(f.children,_,R,N,f.el,f.anchor)},y=({el:f,anchor:_},R,N)=>{let F;for(;f&&f!==_;)F=v(f),l(f,R,N),f=F;l(_,R,N)},$=({el:f,anchor:_})=>{let R;for(;f&&f!==_;)R=v(f),a(f),f=R;a(_)},T=(f,_,R,N,F,D,G,Q,I)=>{if(_.type==="svg"?G="svg":_.type==="math"&&(G="mathml"),f==null)z(_,R,N,F,D,G,Q,I);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),Z(f,_,F,D,G,Q,I)}finally{B&&B._endPatch()}}},z=(f,_,R,N,F,D,G,Q)=>{let I,B;const{props:ce,shapeFlag:ee,transition:re,dirs:pe}=f;if(I=f.el=i(f.type,D,ce&&ce.is,ce),ee&8?p(I,f.children):ee&16&&se(f.children,I,null,N,F,Jn(f,D),G,Q),pe&&Kt(f,null,N,"created"),te(I,f,f.scopeId,G,N),ce){for(const Re in ce)Re!=="value"&&!gs(Re)&&o(I,Re,null,ce[Re],D,N);"value"in ce&&o(I,"value",null,ce.value,D),(B=ce.onVnodeBeforeMount)&&mt(B,N,f)}pe&&Kt(f,null,N,"beforeMount");const we=Zi(F,re);we&&re.beforeEnter(I),l(I,_,R),((B=ce&&ce.onVnodeMounted)||we||pe)&&Je(()=>{B&&mt(B,N,f),we&&re.enter(I),pe&&Kt(f,null,N,"mounted")},F)},te=(f,_,R,N,F)=>{if(R&&b(f,R),N)for(let D=0;D<N.length;D++)b(f,N[D]);if(F){let D=F.subTree;if(_===D||Eo(D.type)&&(D.ssContent===_||D.ssFallback===_)){const G=F.vnode;te(f,G,G.scopeId,G.slotScopeIds,F.parent)}}},se=(f,_,R,N,F,D,G,Q,I=0)=>{for(let B=I;B<f.length;B++){const ce=f[B]=Q?Ct(f[B]):ft(f[B]);x(null,ce,_,R,N,F,D,G,Q)}},Z=(f,_,R,N,F,D,G)=>{const Q=_.el=f.el;let{patchFlag:I,dynamicChildren:B,dirs:ce}=_;I|=f.patchFlag&16;const ee=f.props||Ae,re=_.props||Ae;let pe;if(R&&Vt(R,!1),(pe=re.onVnodeBeforeUpdate)&&mt(pe,R,_,f),ce&&Kt(_,f,R,"beforeUpdate"),R&&Vt(R,!0),(ee.innerHTML&&re.innerHTML==null||ee.textContent&&re.textContent==null)&&p(Q,""),B?fe(f.dynamicChildren,B,Q,R,N,Jn(_,F),D):G||k(f,_,Q,null,R,N,Jn(_,F),D,!1),I>0){if(I&16)Se(Q,ee,re,R,F);else if(I&2&&ee.class!==re.class&&o(Q,"class",null,re.class,F),I&4&&o(Q,"style",ee.style,re.style,F),I&8){const we=_.dynamicProps;for(let Re=0;Re<we.length;Re++){const Te=we[Re],Ue=ee[Te],Be=re[Te];(Be!==Ue||Te==="value")&&o(Q,Te,Ue,Be,F,R)}}I&1&&f.children!==_.children&&p(Q,_.children)}else!G&&B==null&&Se(Q,ee,re,R,F);((pe=re.onVnodeUpdated)||ce)&&Je(()=>{pe&&mt(pe,R,_,f),ce&&Kt(_,f,R,"updated")},N)},fe=(f,_,R,N,F,D,G)=>{for(let Q=0;Q<_.length;Q++){const I=f[Q],B=_[Q],ce=I.el&&(I.type===K||!Ft(I,B)||I.shapeFlag&198)?m(I.el):R;x(I,B,ce,null,N,F,D,G,!0)}},Se=(f,_,R,N,F)=>{if(_!==R){if(_!==Ae)for(const D in _)!gs(D)&&!(D in R)&&o(f,D,_[D],null,F,N);for(const D in R){if(gs(D))continue;const G=R[D],Q=_[D];G!==Q&&D!=="value"&&o(f,D,Q,G,F,N)}"value"in R&&o(f,"value",_.value,R.value,F)}},be=(f,_,R,N,F,D,G,Q,I)=>{const B=_.el=f?f.el:r(""),ce=_.anchor=f?f.anchor:r("");let{patchFlag:ee,dynamicChildren:re,slotScopeIds:pe}=_;pe&&(Q=Q?Q.concat(pe):pe),f==null?(l(B,R,N),l(ce,R,N),se(_.children||[],R,ce,F,D,G,Q,I)):ee>0&&ee&64&&re&&f.dynamicChildren&&f.dynamicChildren.length===re.length?(fe(f.dynamicChildren,re,R,F,D,G,Q),(_.key!=null||F&&_===F.subTree)&&ko(f,_,!0)):k(f,_,R,ce,F,D,G,Q,I)},Ce=(f,_,R,N,F,D,G,Q,I)=>{_.slotScopeIds=Q,f==null?_.shapeFlag&512?F.ctx.activate(_,R,N,G,I):$e(_,R,N,F,D,G,I):xe(f,_,I)},$e=(f,_,R,N,F,D,G)=>{const Q=f.component=pr(f,N,F);if(Nn(f)&&(Q.ctx.renderer=Et),gr(Q,!1,G),Q.asyncDep){if(F&&F.registerDep(Q,V,G),!f.el){const I=Q.subTree=me(dt);L(null,I,_,R),f.placeholder=I.el}}else V(Q,f,_,R,F,D,G)},xe=(f,_,R)=>{const N=_.component=f.component;if(Ki(f,_,R))if(N.asyncDep&&!N.asyncResolved){j(N,_,R);return}else N.next=_,N.update();else _.el=f.el,N.vnode=_},V=(f,_,R,N,F,D,G)=>{const Q=()=>{if(f.isMounted){let{next:ee,bu:re,u:pe,parent:we,vnode:Re}=f;{const Ye=So(f);if(Ye){ee&&(ee.el=Re.el,j(f,ee,G)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},F)});return}}let Te=ee,Ue;Vt(f,!1),ee?(ee.el=Re.el,j(f,ee,G)):ee=Re,re&&yn(re),(Ue=ee.props&&ee.props.onVnodeBeforeUpdate)&&mt(Ue,we,ee,Re),Vt(f,!0);const Be=fo(f),Ze=f.subTree;f.subTree=Be,x(Ze,Be,m(Ze.el),ie(Ze),f,F,D),ee.el=Be.el,Te===null&&Kn(f,Be.el),pe&&Je(pe,F),(Ue=ee.props&&ee.props.onVnodeUpdated)&&Je(()=>mt(Ue,we,ee,Re),F)}else{let ee;const{el:re,props:pe}=_,{bm:we,m:Re,parent:Te,root:Ue,type:Be}=f,Ze=ls(_);Vt(f,!1),we&&yn(we),!Ze&&(ee=pe&&pe.onVnodeBeforeMount)&&mt(ee,Te,_),Vt(f,!0);{Ue.ce&&Ue.ce._hasShadowRoot()&&Ue.ce._injectChildStyle(Be);const Ye=f.subTree=fo(f);x(null,Ye,R,N,f,F,D),_.el=Ye.el}if(Re&&Je(Re,F),!Ze&&(ee=pe&&pe.onVnodeMounted)){const Ye=_;Je(()=>mt(ee,Te,Ye),F)}(_.shapeFlag&256||Te&&ls(Te.vnode)&&Te.vnode.shapeFlag&256)&&f.a&&Je(f.a,F),f.isMounted=!0,_=R=N=null}};f.scope.on();const I=f.effect=new xl(Q);f.scope.off();const B=f.update=I.run.bind(I),ce=f.job=I.runIfDirty.bind(I);ce.i=f,ce.id=f.uid,I.scheduler=()=>Fn(ce),Vt(f,!0),B()},j=(f,_,R)=>{_.component=f;const N=f.vnode.props;f.vnode=_,f.next=null,zi(f,_.props,N,R),Gi(f,_.children,R),pt(),Ul(f),vt()},k=(f,_,R,N,F,D,G,Q,I=!1)=>{const B=f&&f.children,ce=f?f.shapeFlag:0,ee=_.children,{patchFlag:re,shapeFlag:pe}=_;if(re>0){if(re&128){S(B,ee,R,N,F,D,G,Q,I);return}else if(re&256){E(B,ee,R,N,F,D,G,Q,I);return}}pe&8?(ce&16&&J(B,F,D),ee!==B&&p(R,ee)):ce&16?pe&16?S(B,ee,R,N,F,D,G,Q,I):J(B,F,D,!0):(ce&8&&p(R,""),pe&16&&se(ee,R,N,F,D,G,Q,I))},E=(f,_,R,N,F,D,G,Q,I)=>{f=f||Wt,_=_||Wt;const B=f.length,ce=_.length,ee=Math.min(B,ce);let re;for(re=0;re<ee;re++){const pe=_[re]=I?Ct(_[re]):ft(_[re]);x(f[re],pe,R,null,F,D,G,Q,I)}B>ce?J(f,F,D,!0,!1,ee):se(_,R,N,F,D,G,Q,I,ee)},S=(f,_,R,N,F,D,G,Q,I)=>{let B=0;const ce=_.length;let ee=f.length-1,re=ce-1;for(;B<=ee&&B<=re;){const pe=f[B],we=_[B]=I?Ct(_[B]):ft(_[B]);if(Ft(pe,we))x(pe,we,R,null,F,D,G,Q,I);else break;B++}for(;B<=ee&&B<=re;){const pe=f[ee],we=_[re]=I?Ct(_[re]):ft(_[re]);if(Ft(pe,we))x(pe,we,R,null,F,D,G,Q,I);else break;ee--,re--}if(B>ee){if(B<=re){const pe=re+1,we=pe<ce?_[pe].el:N;for(;B<=re;)x(null,_[B]=I?Ct(_[B]):ft(_[B]),R,we,F,D,G,Q,I),B++}}else if(B>re)for(;B<=ee;)oe(f[B],F,D,!0),B++;else{const pe=B,we=B,Re=new Map;for(B=we;B<=re;B++){const ne=_[B]=I?Ct(_[B]):ft(_[B]);ne.key!=null&&Re.set(ne.key,B)}let Te,Ue=0;const Be=re-we+1;let Ze=!1,Ye=0;const Y=new Array(Be);for(B=0;B<Be;B++)Y[B]=0;for(B=pe;B<=ee;B++){const ne=f[B];if(Ue>=Be){oe(ne,F,D,!0);continue}let he;if(ne.key!=null)he=Re.get(ne.key);else for(Te=we;Te<=re;Te++)if(Y[Te-we]===0&&Ft(ne,_[Te])){he=Te;break}he===void 0?oe(ne,F,D,!0):(Y[he-we]=B+1,he>=Ye?Ye=he:Ze=!0,x(ne,_[he],R,null,F,D,G,Q,I),Ue++)}const O=Ze?er(Y):Wt;for(Te=O.length-1,B=Be-1;B>=0;B--){const ne=we+B,he=_[ne],ot=_[ne+1],et=ne+1<ce?ot.el||To(ot):N;Y[B]===0?x(null,he,R,et,F,D,G,Q,I):Ze&&(Te<0||B!==O[Te]?H(he,R,et,2):Te--)}}},H=(f,_,R,N,F=null)=>{const{el:D,type:G,transition:Q,children:I,shapeFlag:B}=f;if(B&6){H(f.component.subTree,_,R,N);return}if(B&128){f.suspense.move(_,R,N);return}if(B&64){G.move(f,_,R,Et);return}if(G===K){l(D,_,R);for(let ee=0;ee<I.length;ee++)H(I[ee],_,R,N);l(f.anchor,_,R);return}if(G===Xs){y(f,_,R);return}if(N!==2&&B&1&&Q)if(N===0)Q.beforeEnter(D),l(D,_,R),Je(()=>Q.enter(D),F);else{const{leave:ee,delayLeave:re,afterLeave:pe}=Q,we=()=>{f.ctx.isUnmounted?a(D):l(D,_,R)},Re=()=>{D._isLeaving&&D[pi](!0),ee(D,()=>{we(),pe&&pe()})};re?re(D,we,Re):Re()}else l(D,_,R)},oe=(f,_,R,N=!1,F=!1)=>{const{type:D,props:G,ref:Q,children:I,dynamicChildren:B,shapeFlag:ce,patchFlag:ee,dirs:re,cacheIndex:pe}=f;if(ee===-2&&(F=!1),Q!=null&&(pt(),ks(Q,null,R,f,!0),vt()),pe!=null&&(_.renderCache[pe]=void 0),ce&256){_.ctx.deactivate(f);return}const we=ce&1&&re,Re=!ls(f);let Te;if(Re&&(Te=G&&G.onVnodeBeforeUnmount)&&mt(Te,_,f),ce&6)ae(f.component,R,N);else{if(ce&128){f.suspense.unmount(R,N);return}we&&Kt(f,null,_,"beforeUnmount"),ce&64?f.type.remove(f,_,R,Et,N):B&&!B.hasOnce&&(D!==K||ee>0&&ee&64)?J(B,_,R,!1,!0):(D===K&&ee&384||!F&&ce&16)&&J(I,_,R),N&&le(f)}(Re&&(Te=G&&G.onVnodeUnmounted)||we)&&Je(()=>{Te&&mt(Te,_,f),we&&Kt(f,null,_,"unmounted")},R)},le=f=>{const{type:_,el:R,anchor:N,transition:F}=f;if(_===K){U(R,N);return}if(_===Xs){$(f);return}const D=()=>{a(R),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(f.shapeFlag&1&&F&&!F.persisted){const{leave:G,delayLeave:Q}=F,I=()=>G(R,D);Q?Q(f.el,D,I):I()}else D()},U=(f,_)=>{let R;for(;f!==_;)R=v(f),a(f),f=R;a(_)},ae=(f,_,R)=>{const{bum:N,scope:F,job:D,subTree:G,um:Q,m:I,a:B}=f;Co(I),Co(B),N&&yn(N),F.stop(),D&&(D.flags|=8,oe(G,f,_,R)),Q&&Je(Q,_),Je(()=>{f.isUnmounted=!0},_)},J=(f,_,R,N=!1,F=!1,D=0)=>{for(let G=D;G<f.length;G++)oe(f[G],_,R,N,F)},ie=f=>{if(f.shapeFlag&6)return ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const _=v(f.anchor||f.el),R=_&&_[fi];return R?v(R):_};let Ie=!1;const cn=(f,_,R)=>{let N;f==null?_._vnode&&(oe(_._vnode,null,null,!0),N=_._vnode.component):x(_._vnode||null,f,_,null,null,null,R),_._vnode=f,Ie||(Ie=!0,Ul(N),Kl(),Ie=!1)},Et={p:x,um:oe,m:H,r:le,mt:$e,mc:se,pc:k,pbc:fe,n:ie,o:e};return{render:cn,hydrate:void 0,createApp:Ii(cn)}}function Jn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ko(e,t,s=!1){const l=e.children,a=t.children;if(ve(l)&&ve(a))for(let o=0;o<l.length;o++){const i=l[o];let r=a[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=a[o]=Ct(a[o]),r.el=i.el),!s&&r.patchFlag!==-2&&ko(i,r)),r.type===Ys&&(r.patchFlag===-1&&(r=a[o]=Ct(r)),r.el=i.el),r.type===dt&&!r.el&&(r.el=i.el)}}function er(e){const t=e.slice(),s=[0];let l,a,o,i,r;const u=e.length;for(l=0;l<u;l++){const g=e[l];if(g!==0){if(a=s[s.length-1],e[a]<g){t[l]=a,s.push(l);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<g?o=r+1:i=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}function Co(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function To(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?To(t.subTree):null}const Eo=e=>e.__isSuspense;let Qn=0;const tr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,i,r,u,g){if(e==null)sr(t,s,l,a,o,i,r,u,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nr(e,t,s,l,a,i,r,u,g)}},hydrate:lr,normalize:or};function Ts(e,t){const s=e.props&&e.props[t];ge(s)&&s()}function sr(e,t,s,l,a,o,i,r,u){const{p:g,o:{createElement:p}}=u,m=p("div"),v=e.suspense=Po(e,a,l,t,m,s,o,i,r,u);g(null,v.pendingBranch=e.ssContent,m,null,l,v,o,i),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,i),as(v,e.ssFallback)):v.resolve(!1,!0)}function nr(e,t,s,l,a,o,i,r,{p:u,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,b=t.ssFallback,{activeBranch:C,pendingBranch:x,isInFallback:P,isHydrating:L}=m;if(x)m.pendingBranch=v,Ft(x,v)?(u(x,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():P&&(L||(u(C,b,s,l,a,null,o,i,r),as(m,b)))):(m.pendingId=Qn++,L?(m.isHydrating=!1,m.activeBranch=x):g(x,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),P?(u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():(u(C,b,s,l,a,null,o,i,r),as(m,b))):C&&Ft(C,v)?(u(C,v,s,l,a,m,o,i,r),m.resolve(!0)):(u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0&&m.resolve()));else if(C&&Ft(C,v))u(C,v,s,l,a,m,o,i,r),as(m,v);else if(Ts(t,"onPending"),m.pendingBranch=v,v.shapeFlag&512?m.pendingId=v.component.suspenseId:m.pendingId=Qn++,u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:y}=m;A>0?setTimeout(()=>{m.pendingId===y&&m.fallback(b)},A):A===0&&m.fallback(b)}}function Po(e,t,s,l,a,o,i,r,u,g,p=!1){const{p:m,m:v,um:b,n:C,o:{parentNode:x,remove:P}}=g;let L;const A=ir(e);A&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const y=e.props?xa(e.props.timeout):void 0,$=o,T={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:a,deps:0,pendingId:Qn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(z=!1,te=!1){const{vnode:se,activeBranch:Z,pendingBranch:fe,pendingId:Se,effects:be,parentComponent:Ce,container:$e,isInFallback:xe}=T;let V=!1;T.isHydrating?T.isHydrating=!1:z||(V=Z&&fe.transition&&fe.transition.mode==="out-in",V&&(Z.transition.afterLeave=()=>{Se===T.pendingId&&(v(fe,$e,o===$?C(Z):o,0),Dn(be),xe&&se.ssFallback&&(se.ssFallback.el=null))}),Z&&(x(Z.el)===$e&&(o=C(Z)),b(Z,Ce,T,!0),!V&&xe&&se.ssFallback&&Je(()=>se.ssFallback.el=null,T)),V||v(fe,$e,o,0)),as(T,fe),T.pendingBranch=null,T.isInFallback=!1;let j=T.parent,k=!1;for(;j;){if(j.pendingBranch){j.effects.push(...be),k=!0;break}j=j.parent}!k&&!V&&Dn(be),T.effects=[],A&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(z){if(!T.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:Z,container:fe,namespace:Se}=T;Ts(te,"onFallback");const be=C(se),Ce=()=>{T.isInFallback&&(m(null,z,fe,be,Z,null,Se,r,u),as(T,z))},$e=z.transition&&z.transition.mode==="out-in";$e&&(se.transition.afterLeave=Ce),T.isInFallback=!0,b(se,Z,null,!0),$e||Ce()},move(z,te,se){T.activeBranch&&v(T.activeBranch,z,te,se),T.container=z},next(){return T.activeBranch&&C(T.activeBranch)},registerDep(z,te,se){const Z=!!T.pendingBranch;Z&&T.deps++;const fe=z.vnode.el;z.asyncDep.catch(Se=>{Zt(Se,z,0)}).then(Se=>{if(z.isUnmounted||T.isUnmounted||T.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:be}=z;Xn(z,Se),fe&&(be.el=fe);const Ce=!fe&&z.subTree.el;te(z,be,x(fe||z.subTree.el),fe?null:C(z.subTree),T,i,se),Ce&&(be.placeholder=null,P(Ce)),Kn(z,be.el),Z&&--T.deps===0&&T.resolve()})},unmount(z,te){T.isUnmounted=!0,T.activeBranch&&b(T.activeBranch,s,z,te),T.pendingBranch&&b(T.pendingBranch,s,z,te)}};return T}function lr(e,t,s,l,a,o,i,r,u){const g=t.suspense=Po(t,l,s,e.parentNode,document.createElement("div"),null,a,o,i,r,!0),p=u(e,g.pendingBranch=t.ssContent,s,g,o,i);return g.deps===0&&g.resolve(!1,!0),p}function or(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ro(l?s.default:s),e.ssFallback=l?Ro(s.fallback):me(dt)}function Ro(e){let t;if(ge(e)){const s=is&&e._c;s&&(e._d=!1,c()),e=e(),s&&(e._d=!0,t=Ge,Ao())}return ve(e)&&(e=Hi(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ar(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Dn(e)}function as(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Kn(l,a))}function ir(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const K=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Xs=Symbol.for("v-stc"),Es=[];let Ge=null;function c(e=!1){Es.push(Ge=e?null:[])}function Ao(){Es.pop(),Ge=Es[Es.length-1]||null}let is=1;function Zs(e,t=!1){is+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Mo(e){return e.dynamicChildren=is>0?Ge||Wt:null,Ao(),is>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,a,o){return Mo(n(e,t,s,l,a,o,!0))}function Xe(e,t,s,l,a){return Mo(me(e,t,s,l,a,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const Lo=({key:e})=>e??null,en=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||je(e)||ge(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===K?0:1,i=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lo(t),ref:t&&en(t),scopeId:zl,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:l,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:ze};return r?(Gn(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=Oe(s)?8:16),is>0&&!i&&Ge&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Ge.push(u),u}const me=rr;function rr(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===eo)&&(e=dt),rs(e)){const r=us(e,t,!0);return s&&Gn(r,s),is>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(wr(e)&&(e=e.__vccOpts),t){t=ur(t);let{class:r,style:u}=t;r&&!Oe(r)&&(t.class=M(r)),Pe(u)&&(Mn(u)&&!ve(u)&&(u=Ne({},u)),t.style=Ke(u))}const i=Oe(e)?1:Eo(e)?128:hi(e)?64:Pe(e)?4:ge(e)?2:0;return n(e,t,s,l,a,i,o,!0)}function ur(e){return e?Mn(e)||yo(e)?Ne({},e):e:null}function us(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:i,children:r,transition:u}=e,g=t?dr(a||{},t):a,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Lo(g),ref:t&&t.ref?s&&o?ve(o)?o.concat(en(t)):[o,en(t)]:en(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&In(p,u.clone(p)),p}function _e(e=" ",t=0){return me(Ys,null,e,t)}function cr(e,t){const s=me(Xs,null,e);return s.staticCount=t,s}function X(e="",t=!1){return t?(c(),Xe(dt,null,e)):me(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?me(dt):ve(e)?me(K,null,e.slice()):rs(e)?Ct(e):me(Ys,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function Gn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(ve(t))s=16;else if(typeof t=="object")if(l&65){const a=t.default;a&&(a._c&&(a._d=!1),Gn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!yo(t)?t._ctx=ze:a===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[_e(t)]):s=8);e.children=t,e.shapeFlag|=s}function dr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=M([t.class,l.class]));else if(a==="style")t.style=Ke([t.style,l.style]);else if(Ls(a)){const o=t[a],i=l[a];i&&o!==i&&!(ve(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=l[a])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const fr=uo();let hr=0;function pr(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||fr,o={uid:hr++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ea(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bo(l,a),emitsOptions:co(l,a),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:l.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ni.bind(null,o),e.ce&&e.ce(o),o}let He=null;const vr=()=>He||ze;let tn,Yn;{const e=Ds(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};tn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Yn=t("__VUE_SSR_SETTERS__",s=>cs=s)}const Ps=e=>{const t=He;return tn(e),e.scope.on(),()=>{e.scope.off(),tn(t)}},Oo=()=>{He&&He.scope.off(),tn(null)};function Fo(e){return e.vnode.shapeFlag&4}let cs=!1;function gr(e,t=!1,s=!1){t&&Yn(t);const{props:l,children:a}=e.vnode,o=Fo(e);Vi(e,l,o,t),Qi(e,a,s||t);const i=o?yr(e,t):void 0;return t&&Yn(!1),i}function yr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ri);const{setup:l}=s;if(l){pt();const a=e.setupContext=l.length>1?br(e):null,o=Ps(e),i=Xt(l,e,0,[e.props,a]),r=hl(i);if(vt(),o(),(r||e.sp)&&!ls(e)&&Bn(e),r){if(i.then(Oo,Oo),t)return i.then(u=>{Xn(e,u)}).catch(u=>{Zt(u,e,0)});e.asyncDep=i}else Xn(e,i)}else Do(e)}function Xn(e,t,s){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Nl(t)),Do(e)}function Do(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const a=Ps(e);pt();try{Ai(e)}finally{vt(),a()}}}const mr={get(e,t){return qe(e,"get",""),e[t]}};function br(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,mr),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nl(Qa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const _r=/(?:^|[-_])\w/g,xr=e=>e.replace(_r,t=>t.toUpperCase()).replace(/[-_]/g,"");function Io(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e,t,s=!1){let l=Io(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?xr(l):s?"App":"Anonymous"}function wr(e){return ge(e)&&"__vccOpts"in e}const q=(e,t)=>ei(e,t,cs);function ds(e,t,s){try{Zs(-1);const l=arguments.length;return l===2?Pe(t)&&!ve(t)?rs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&rs(s)&&(s=[s]),me(e,t,s))}finally{Zs(1)}}const $r="3.5.29";let el;const No=typeof window<"u"&&window.trustedTypes;if(No)try{el=No.createPolicy("vue",{createHTML:e=>e})}catch{}const jo=el?e=>el.createHTML(e):e=>e,kr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,Ho=Tt&&Tt.createElement("template"),Cr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const a=t==="svg"?Tt.createElementNS(kr,e):t==="mathml"?Tt.createElementNS(Sr,e):s?Tt.createElement(e,{is:s}):Tt.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const i=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{Ho.innerHTML=jo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ho.content;if(l==="svg"||l==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Tr=Symbol("_vtc");function Er(e,t,s){const l=e[Tr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const qo=Symbol("_vod"),Pr=Symbol("_vsh"),Rr=Symbol(""),Ar=/(?:^|;)\s*display\s*:/;function Mr(e,t,s){const l=e.style,a=Oe(s);let o=!1;if(s&&!a){if(t)if(Oe(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&sn(l,r,"")}else for(const i in t)s[i]==null&&sn(l,i,"");for(const i in s)i==="display"&&(o=!0),sn(l,i,s[i])}else if(a){if(t!==s){const i=l[Rr];i&&(s+=";"+i),l.cssText=s,o=Ar.test(s)}}else t&&e.removeAttribute("style");qo in e&&(e[qo]=o?l.display:"",e[Pr]&&(l.display="none"))}const Uo=/\s*!important$/;function sn(e,t,s){if(ve(s))s.forEach(l=>sn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Lr(e,t);Uo.test(s)?e.setProperty(Pt(l),s.replace(Uo,""),"important"):e[l]=s}}const Ko=["Webkit","Moz","ms"],tl={};function Lr(e,t){const s=tl[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return tl[t]=l;l=Fs(l);for(let a=0;a<Ko.length;a++){const o=Ko[a]+l;if(o in e)return tl[t]=o}return t}const Vo="http://www.w3.org/1999/xlink";function zo(e,t,s,l,a,o=Ca(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,s):s==null||o&&!ml(s)?e.removeAttribute(t):e.setAttribute(t,o?"":at(s)?String(s):s)}function Wo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?jo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(r!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=ml(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(a||t)}function Or(e,t,s,l){e.addEventListener(t,s,l)}function Fr(e,t,s,l){e.removeEventListener(t,s,l)}const Jo=Symbol("_vei");function Dr(e,t,s,l,a=null){const o=e[Jo]||(e[Jo]={}),i=o[t];if(l&&i)i.value=l;else{const[r,u]=Ir(t);if(l){const g=o[t]=jr(l,a);Or(e,r,g,u)}else i&&(Fr(e,r,i,u),o[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Ir(e){let t;if(Qo.test(e)){t={};let l;for(;l=e.match(Qo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let sl=0;const Br=Promise.resolve(),Nr=()=>sl||(Br.then(()=>sl=0),sl=Date.now());function jr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Hr(l,s.value),t,5,[l])};return s.value=e,s.attached=Nr(),s}function Hr(e,t){if(ve(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qr=(e,t,s,l,a,o)=>{const i=a==="svg";t==="class"?Er(e,l,i):t==="style"?Mr(e,s,l):Ls(t)?hn(t)||Dr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ur(e,t,l,i))?(Wo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zo(e,t,l,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(l))?Wo(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),zo(e,t,l,i))};function Ur(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&ge(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Go(t)&&Oe(s)?!1:t in e}const Kr=["ctrl","shift","alt","meta"],Vr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Kr.some(s=>e[`${s}Key`]&&!t.includes(s))},nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let i=0;i<t.length;i++){const r=Vr[t[i]];if(r&&r(a,t))return}return e(a,...o)}))},zr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Pt(a.key);if(t.some(i=>i===o||zr[i]===o))return e(a)}))},Wr=Ne({patchProp:qr},Cr);let Yo;function Jr(){return Yo||(Yo=Yi(Wr))}const Qr=((...e)=>{const t=Jr().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=Yr(l);if(!a)return;const o=t._component;!ge(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=s(a,!1,Gr(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t});function Gr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yr(e){return Oe(e)?document.querySelector(e):e}async function Xr(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function Zr(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const i=await Xr();if(!i)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new i({baseUrl:e.baseUrl||window.location.origin,...e.authToken?{beforeSubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}},beforeUnsubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}}}:{}}),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(i){e.onError&&e.onError(i)}},unsubscribe:async()=>{l=!0;try{s&&(await s.delete(),s=null),t&&(t=null)}catch{}}}}function eu(e){let t=!1;const s=Zr({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class nn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class tu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class nl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new nn(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new tu(o.status,i)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ln="ss-dash-theme",ll="ss-theme-change";function As(){if(typeof window>"u")return"light";const e=localStorage.getItem(ln);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function su(e){typeof window>"u"||(localStorage.setItem(ln,e),window.dispatchEvent(new CustomEvent(ll,{detail:e})))}function nu(){const t=As()==="dark"?"light":"dark";return su(t),t}function Xo(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===ln){const i=o.newValue;e(i==="dark"||i==="light"?i:As())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(ln)||e(o.matches?"dark":"light")};return window.addEventListener(ll,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(ll,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const lu={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function ou(e){return{...lu,...e}}let au=0;function iu(){return`ss-grad-${au++}`}function ru(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function uu(e,t){if(e.length<2)return null;const s=ou(t),l=ru(e),a=l.max-l.min||1,o=s.width-s.padding*2,i=s.height-s.padding*2,r=s.padding,u=e.length,g=Array.from({length:u});for(let x=0;x<u;x++){const P=r+x/(u-1)*o,L=r+i-(e[x]-l.min)/a*i;g[x]=`${P.toFixed(1)},${L.toFixed(1)}`}const p=g.join(" "),m=(r+o).toFixed(1),v=(r+i).toFixed(1),b=r.toFixed(1),C=`M${g[0]} `+g.slice(1).map(x=>`L${x}`).join(" ")+` L${m},${v} L${b},${v} Z`;return{points:p,areaPath:C,gradientId:iu(),options:s,stats:l}}const cu=5e3,Zo=1e4,ea=100,du=500;function fu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}m ${t%60}s`:`${t}s`}function Dt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function ta(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function ol(e){return e>du?"very-slow":e>ea?"slow":"normal"}function on(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const l="["+e.slice(0,3).map(a=>on(a,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return l.length>t?"["+e.length+" items]":l}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const l=[];for(let o=0;o<Math.min(s.length,4);o++)l.push(s[o]+": "+on(e[s[o]],30));const a="{ "+l.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return a.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":a}return String(e)}function hu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function pu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function vu(e){const t=new URLSearchParams;if(e.page!==null&&e.page!==void 0&&t.set("page",String(e.page)),e.perPage!==null&&e.perPage!==void 0&&t.set("perPage",String(e.perPage)),e.search&&t.set("search",e.search),e.sort&&t.set("sort",e.sort),e.sortDir&&t.set("direction",e.sortDir),e.timeRange&&t.set("range",e.timeRange),e.filters)for(const[s,l]of Object.entries(e.filters))l&&t.set(s,l);return t.toString()}function gu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let i=a;i<=o;i++)l.push(i);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const sa="/admin/api/debug",na={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function yu(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function mu(e,t=sa){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function bu(e){const{baseUrl:t="",debugEndpoint:s=sa,authToken:l}=e,a=new nl({baseUrl:t,authToken:l});try{const o=await mu(a,s);return yu(o)}catch{return na}}const _u={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function xu(e){return _u[e]||`/${e}`}class la{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=xu(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}class wu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new nl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new la(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(t&&this.explicitFetchPending)return;this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId,a=this.section;if(!a)return;const o=this.filters,i=this.sort?this.sort.replace(/[A-Z]/g,u=>"_"+u.toLowerCase()):void 0,r=vu({page:this.page,perPage:this.perPage,search:this.search,sort:i,sortDir:this.sort?this.sortDir:void 0,filters:o&&Object.keys(o).length>0?o:void 0,timeRange:a.startsWith("overview")?this.timeRange:void 0});t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0);try{const u=await this.api.fetchSection(a,r||void 0,{signal:s.signal});if(l!==this.fetchId||this.stopped)return;if(u&&typeof u=="object"&&u.data!==void 0&&u.meta!==void 0){const g=u;this.callbacks.onData(g.data),this.callbacks.onPagination(g.meta)}else this.callbacks.onData(u),this.callbacks.onPagination(null);this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}catch(u){if(u instanceof DOMException&&u.name==="AbortError"||s.signal.aborted||l!==this.fetchId||this.stopped)return;if(u instanceof nn){this.callbacks.onError(u),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}t||(this.callbacks.onError(u instanceof Error?u:new Error(String(u))),this.callbacks.onLoading(!1))}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?cu:Zo;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Le={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},$u="ss-col-resize",oa="ss-resizing";function ku(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let i=function(u){u.preventDefault(),u.stopPropagation(),a();const g=u.clientX,p=o.offsetWidth;r.classList.add(oa),r.setPointerCapture(u.pointerId);function m(b){const C=b.clientX-g,x=Math.max(30,p+C);o.style.width=x+"px"}function v(){r.classList.remove(oa),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=$u,o.appendChild(r),r.addEventListener("pointerdown",i),s.push(()=>{r.removeEventListener("pointerdown",i),r.remove()})}return()=>{for(const o of s)o()}}const Su=["all","error","warn","info","debug"];function an(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function aa(e){return e.msg||e.message||JSON.stringify(e)}function Bt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Nt(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function ia(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const ra=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const l={};for(const[a,o]of Object.entries(s))ra.has(a)||(l[a]=o);if(Object.keys(l).length>0)return l}}const t={};for(const[s,l]of Object.entries(e))ra.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Cu=["all","active","waiting","delayed","completed","failed"];function Tu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function Eu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Pu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function Ru(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function Au(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function al(e,t,s,l=0){return e[t]??e[s]??l}function Mu(e){return{method:e.method||"",url:e.url||"",statusCode:al(e,"status_code","statusCode"),totalDuration:al(e,"total_duration","totalDuration")||e.duration||0,spanCount:al(e,"span_count","spanCount"),spans:Ru(e.spans),warnings:Au(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const Lu=["password","secret","token","key","credential","auth"];function Ou(e){const t=e.toLowerCase();return Lu.some(s=>t.includes(s))}function Fu(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Du={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Iu(e){return Du[e]||e}const Bu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Nu(e){return Bu[e]||e}function ju(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Hu(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function qu(e){return Object.entries(e).map(([t,s])=>({key:t,value:Fu(s),secret:Ou(t)}))}function Uu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Ku=["healthy","active","connected","available","ready"],Vu=["errored","unavailable"];function zu(e){return Ku.includes(e)?"ok":Vu.includes(e)?"err":""}function De(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function rn(e,t=""){if(typeof e!="object"||e===null||e===void 0)return[{path:t,value:e}];if(Array.isArray(e)||De(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];typeof o=="object"&&o!==null&&!Array.isArray(o)&&!De(o)?s.push(...rn(o,a)):s.push({path:a,value:o})}return s}function Wu(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function ua(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return 1;let t=0;for(const s of Object.keys(e))t+=ua(e[s]);return t}function Ju(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return[];const t=[];for(const s of Object.keys(e)){const l=e[s];l!==null&&typeof l=="object"&&!Array.isArray(l)&&!De(l)&&t.push(s)}return t}function Qu(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Gu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=W({...na}),o=W(!0);return Ot(async()=>{a.value=await bu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ca(){const e=W(As());let t=null;function s(a){e.value=a}function l(){const a=nu();return e.value=a,a}return Ot(()=>{e.value=As(),t=Xo(s)}),St(()=>{t?.()}),{theme:e,toggleTheme:l}}function lt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:i}=t,r=W(null),u=W(!1),g=W(null),p=W(!1),m=W("1h"),v=Gt({page:1,perPage:o,total:0,totalPages:1}),b=Gt({search:""}),C=Gt({column:"",direction:"desc"}),x=new wu({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:{onData:S=>{P=S},onPagination:S=>{S?(v.total=S.total,v.totalPages=S.lastPage??(Math.ceil(S.total/v.perPage)||1),r.value={data:P,meta:S}):r.value=P},onLoading:S=>{u.value=S},onError:S=>{g.value=S},onUnauthorized:()=>{p.value=!0}}});let P=null;const L=x.getApi();async function A(S){try{return await L.fetchChart(S)}catch(H){return H instanceof nn&&(p.value=!0),null}}async function y(){try{return await L.fetchGroupedQueries()}catch{return null}}async function $(S){try{return await L.explainQuery(S)}catch{return null}}async function T(S){try{return await L.retryJob(S),!0}catch{return!1}}async function z(S){try{return await L.deleteCacheKey(S),!0}catch{return!1}}async function te(S){try{return(await L.fetchEmailPreview(S))?.html||null}catch{return null}}function se(S){v.page=S,E()}function Z(S){b.search=S,v.page=1,E()}function fe(S,H){b[S]=H,v.page=1,E()}function Se(S,H){C.column===S&&!H?C.direction=C.direction==="asc"?"desc":"asc":(C.column=S,C.direction=H||"desc"),E()}function be(S){m.value=S,E()}async function Ce(S,H="post",oe){return x.mutate(S,H,oe)}function $e(){k(),x.fetch(!0)}function xe(){x.start()}function V(){x.stop()}function j(){const S={};for(const[H,oe]of Object.entries(b))H!=="search"&&oe!==""&&oe!==void 0&&oe!==null&&(S[H]=String(oe));return S}function k(){const S=e(),H=j();x.configure({page:v.page,perPage:v.perPage,search:b.search||void 0,sort:C.column||void 0,sortDir:C.column?C.direction:void 0,filters:Object.keys(H).length>0?H:void 0,timeRange:S.startsWith("overview")?m.value:void 0})}function E(){k(),x.fetch(!1)}return ut(e,()=>{v.page=1;for(const S of Object.keys(b))S==="search"?b.search="":delete b[S];C.column="",r.value=null,x.setSection(e()),k()}),i&&ut(i,()=>{k(),x.handleRefreshSignal()}),Ot(()=>{k(),x.start()}),St(()=>{x.stop()}),{data:r,loading:u,error:g,isUnauthorized:p,pagination:v,filter:b,sort:C,timeRange:m,goToPage:se,setSearch:Z,setFilter:fe,setSort:Se,setTimeRange:be,refresh:$e,startRefresh:xe,stopRefresh:V,mutate:Ce,fetchChart:A,fetchGroupedQueries:y,explainQuery:$,retryJob:T,deleteCacheKey:z,fetchEmailPreview:te}}const Yu=["title","aria-label"],Xu=["viewBox","innerHTML"],Zu=["viewBox","innerHTML"],ec=Fe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ca(),a=q(()=>s.value==="dark"),o=q(()=>a.value?"Switch to light theme":"Switch to dark theme"),i=q(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,u)=>(c(),d("button",{type:"button",class:M(i.value),title:o.value,"aria-label":o.value,onClick:u[0]||(u[0]=(...g)=>w(l)&&w(l)(...g))},[a.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Le).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).sun.elements.join("")},null,8,Xu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Le).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).moon.elements.join("")},null,8,Zu))],10,Yu))}}),tc=["data-theme"],sc={class:"ss-dash-header"},nc={class:"ss-dash-header-center"},lc={class:"ss-dash-header-right"},oc=["href"],ac={class:"ss-dash-body"},ic={class:"ss-dash-nav"},rc=["data-ss-section","onClick","title"],uc={class:"ss-dash-nav-icon"},cc=["viewBox","innerHTML"],dc={class:"ss-dash-nav-label"},fc={key:0,class:"ss-dash-nav-sep"},hc=["onClick","title"],pc={class:"ss-dash-nav-icon"},vc=["viewBox","innerHTML"],gc={class:"ss-dash-nav-label"},yc=["title"],mc=["viewBox","innerHTML"],bc=["viewBox","innerHTML"],_c={class:"ss-dash-main"},xc=["id"],wc={class:"ss-dash-pane-inner"},$c={key:1,class:"ss-dash-empty"},kc=Fe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ct(()=>Promise.resolve().then(()=>Mf)),s=ct(()=>Promise.resolve().then(()=>Eh)),l=ct(()=>Promise.resolve().then(()=>up)),a=ct(()=>Promise.resolve().then(()=>gp)),o=ct(()=>Promise.resolve().then(()=>Sp)),i=ct(()=>Promise.resolve().then(()=>Jp)),r=ct(()=>Promise.resolve().then(()=>dv)),u=ct(()=>Promise.resolve().then(()=>Mv)),g=ct(()=>Promise.resolve().then(()=>sg)),p=ct(()=>Promise.resolve().then(()=>Ag)),m=ct(()=>Promise.resolve().then(()=>f1)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],b=e,{theme:C}=ca(),{features:x}=Gu({baseUrl:b.baseUrl,debugEndpoint:b.debugEndpoint,authToken:b.authToken}),P=W("overview"),L=W(!1),A=W(!1),y=W(0);ns("ss-refresh-key",y),ns("ss-base-url",b.baseUrl),ns("ss-dashboard-endpoint",b.dashboardEndpoint),ns("ss-debug-endpoint",b.debugEndpoint),ns("ss-auth-token",b.authToken),typeof window<"u"&&(L.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let $=null;function T(){if($&&($(),$=null),!b.channelName)return;$=eu({baseUrl:b.baseUrl,channelName:b.channelName,authToken:b.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{A.value=!0},onDisconnect:()=>{A.value=!1},onError:()=>{A.value=!1}}).unsubscribe}Ot(()=>{T()}),St(()=>{$&&($(),$=null)});const z=q(()=>x.value.customPanes||[]);function te(k){const E=k.replace("#","").split("?")[0];return E&&[...v,...z.value.map(H=>H.id)].includes(E)?E:"overview"}function se(){const k=te(window.location.hash);k!==P.value&&(P.value=k)}Ot(()=>{if(typeof window>"u")return;const k=te(window.location.hash);(k!=="overview"||window.location.hash)&&(P.value=k),window.addEventListener("hashchange",se)}),St(()=>{window.removeEventListener("hashchange",se)}),ut(P,k=>{typeof window<"u"&&(window.location.hash=k)});function Z(){L.value=!L.value,localStorage.setItem("ss-dash-sidebar",L.value?"collapsed":"expanded")}function fe(k){k!==P.value&&(P.value=k)}const Se=q(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:x.value.cache},{id:"jobs",label:"Jobs",visible:x.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),be=q(()=>Se.value.filter(k=>k.visible)),{data:Ce}=lt(()=>"overview",{baseUrl:b.baseUrl,dashboardEndpoint:b.dashboardEndpoint,authToken:b.authToken,refreshKey:y}),$e=q(()=>Ce.value),xe=q(()=>{const k={};if(!$e.value)return k;if($e.value.totalRequests>0&&(k.requests={count:$e.value.totalRequests}),$e.value.queryStats?.total>0&&(k.queries={count:$e.value.queryStats.total}),$e.value.logLevelBreakdown){const E=$e.value.logLevelBreakdown,S=E.error+E.warn+E.info+E.debug;S>0&&(k.logs={count:S})}return k}),V={overview:t,requests:s,queries:l,events:a,routes:o,logs:i,emails:r,cache:u,jobs:g,config:p,internals:m},j=q(()=>V[P.value]||null);return(k,E)=>(c(),d("div",{class:"ss-dash","data-theme":w(C),id:"ss-dash"},[n("div",sc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",nc,[n("span",{class:M(["ss-dash-live-dot",{"ss-dash-connected":A.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:M(["ss-dash-live-label",{"ss-dash-connected":A.value}]),id:"ss-dash-live-label"},h(A.value?"Live":"Polling"),3)]),n("div",lc,[me(ec,{"class-prefix":"ss-dash"}),e.backUrl?(c(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,oc)):X("",!0)])]),n("div",ac,[n("div",{class:M(["ss-dash-sidebar",{"ss-dash-collapsed":L.value}]),id:"ss-dash-sidebar"},[n("nav",ic,[(c(!0),d(K,null,ye(be.value,S=>(c(),d("button",{key:S.id,type:"button",class:M(["ss-dash-nav-item",{"ss-dash-active":P.value===S.id}]),"data-ss-section":S.id,onClick:H=>fe(S.id),title:L.value?S.label:void 0},[n("span",uc,[(c(),d("svg",{width:"20",height:"20",viewBox:(w(Le)[S.id]||w(Le).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(Le)[S.id]||w(Le).config).elements.join("")},null,8,cc))]),n("span",dc,h(S.label),1),xe.value[S.id]&&xe.value[S.id].count>0?(c(),d("span",{key:0,class:M(["ss-dash-nav-badge",xe.value[S.id].variant||""])},h(xe.value[S.id].count),3)):X("",!0)],10,rc))),128)),z.value.length>0?(c(),d("div",fc)):X("",!0),(c(!0),d(K,null,ye(z.value,S=>(c(),d("button",{key:S.id,type:"button",class:M(["ss-dash-nav-item",{"ss-dash-active":P.value===S.id}]),onClick:H=>fe(S.id),title:L.value?S.label:void 0},[n("span",pc,[(c(),d("svg",{width:"20",height:"20",viewBox:w(Le)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le)["custom-pane"].elements.join("")},null,8,vc))]),n("span",gc,h(S.label),1)],10,hc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:Z,title:L.value?"Expand sidebar":"Collapse sidebar"},[L.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Le)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Le)["chevron-right"].elements.join("")},null,8,mc)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Le)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Le)["chevron-left"].elements.join("")},null,8,bc))],8,yc)],2),n("div",_c,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${P.value}`},[n("div",wc,[(c(),Xe(tr,null,{fallback:ss(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:ss(()=>[j.value?(c(),Xe(Ti(j.value),{key:0})):(c(),d("div",$c,"Unknown section"))]),_:1}))])],8,xc)])])],8,tc))}});function Sc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Cc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(As()),Xo(e)}const fs=Sc("ss-dash-config");Cc();const da=document.getElementById("ss-dash");da&&Qr(kc,{baseUrl:fs.baseUrl,dashboardEndpoint:fs.dashboardEndpoint,debugEndpoint:fs.debugEndpoint,authToken:fs.authToken,backUrl:fs.backUrl,channelName:fs.channelName}).mount(da);const Tc=["width","height","viewBox"],Ec=["id"],Pc=["stop-color"],Rc=["stop-color"],Ac=["d","fill"],Mc=["d","stroke"],Lc=["x","y"],un=Fe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=q(()=>uu(t.data,{width:t.width,height:t.height,color:t.color})),l=q(()=>s.value!==null),a=q(()=>`sg-${t.color.replace("#","")}`);return(o,i)=>(c(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(c(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(c(),d(K,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Pc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Rc)],8,Ec)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,Ac),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Mc)],64)):(c(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,Lc))],8,Tc))],4))}}),Oc={class:"ss-dash-btn-group"},Fc=["onClick"],Dc=Fe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(a,o)=>(c(),d("div",Oc,[(c(),d(K,null,ye(l,i=>n("button",{key:i.value,type:"button",class:M(`ss-dash-btn ${e.modelValue===i.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",i.value)},h(i.label),11,Fc)),64))]))}}),Ic={class:"ss-dash-overview"},Bc={key:0,class:"ss-dash-empty"},Nc={class:"ss-dash-cards"},jc={class:"ss-dash-card"},Hc={class:"ss-dash-sparkline"},qc={class:"ss-dash-card"},Uc={class:"ss-dash-sparkline"},Kc={class:"ss-dash-card"},Vc={class:"ss-dash-sparkline"},zc={class:"ss-dash-card"},Wc={class:"ss-dash-sparkline"},Jc={class:"ss-dash-chart-container"},Qc={class:"ss-dash-chart-header"},Gc={class:"ss-dash-chart",id:"ss-dash-chart-area"},Yc={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Xc=["viewBox"],Zc=["id"],ed=["id"],td=["x1","y1","x2","y2"],sd=["x","y"],nd=["d","fill"],ld=["d"],od=["d","fill"],ad=["d"],id=["x","y","width","height","data-idx","onMouseenter"],rd=["cx","cy","r","data-idx","opacity"],ud=["cx","cy","r","data-idx","opacity"],cd=["x","y"],dd={key:0,style:{color:"var(--ss-red-fg)"}},fd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},hd={key:0,class:"ss-dash-chart-legend-item"},pd={class:"ss-dash-secondary-cards"},vd={class:"ss-dash-secondary-card"},gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},yd={key:1,class:"ss-dash-secondary-list"},md=["href"],bd=["title"],_d={class:"ss-dash-secondary-card"},xd={class:"ss-dash-secondary-list"},wd={class:"ss-dash-secondary-list-value"},$d={class:"ss-dash-secondary-list-value"},kd={class:"ss-dash-secondary-list-value"},Sd={class:"ss-dash-secondary-card"},Cd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Td={key:1,class:"ss-dash-secondary-list"},Ed=["href"],Pd=["title"],Rd=["title"],Ad={class:"ss-dash-secondary-card"},Md={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Ld={key:1,class:"ss-dash-secondary-list"},Od=["href"],Fd={class:"ss-dash-secondary-list-value"},Dd={class:"ss-dash-secondary-card"},Id={class:"ss-dash-secondary-list"},Bd={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Nd={class:"ss-dash-secondary-list-value"},jd={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Hd={class:"ss-dash-secondary-list-value"},qd={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Ud={class:"ss-dash-secondary-card"},Kd={class:"ss-dash-secondary-list"},Vd={href:"#logs?level=error",class:"ss-dash-widget-row-link"},zd={class:"ss-dash-secondary-list-value"},Wd={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Jd={class:"ss-dash-secondary-list-value"},Qd={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Gd={class:"ss-dash-secondary-list-value"},Yd={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Xd={class:"ss-dash-secondary-list-value"},Zd={key:0,class:"ss-dash-secondary-card"},ef={class:"ss-dash-secondary-list"},tf={href:"#cache",class:"ss-dash-widget-row-link"},sf={class:"ss-dash-secondary-list-value"},nf={href:"#cache",class:"ss-dash-widget-row-link"},lf={class:"ss-dash-secondary-list-value"},of={href:"#cache",class:"ss-dash-widget-row-link"},af={class:"ss-dash-secondary-list-value"},rf={key:1,class:"ss-dash-secondary-card"},uf={class:"ss-dash-secondary-list"},cf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},hf={class:"ss-dash-secondary-list-value"},pf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},vf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},gf={class:"ss-dash-secondary-list-value"},yf={class:"ss-dash-secondary-card"},mf={class:"ss-dash-secondary-list"},bf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Cf={class:"ss-dash-secondary-list-value"},Tf={class:"ss-dash-secondary-card"},Ef={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Pf={key:1,class:"ss-dash-secondary-list"},Rf=["href"],Af=["title"],il=220,fa=120,Mf=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(Fe({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),a=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),i=W("1h"),{data:r,loading:u}=lt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),{data:g,setTimeRange:p}=lt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});ut(i,Y=>{p(Y)});const m=q(()=>r.value),v=q(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),b=q(()=>v.value),C=q(()=>v.value.avgResponseTime||Number(b.value.avg_response_time)||0),x=q(()=>v.value.p95ResponseTime||Number(b.value.p95_response_time)||0),P=q(()=>v.value.requestsPerMinute||Number(b.value.requests_per_minute)||0),L=q(()=>v.value.errorRate||Number(b.value.error_rate)||0),A=q(()=>v.value.totalRequests||Number(b.value.total_requests)||0),y=q(()=>A.value>0),$=q(()=>g.value?.buckets||[]),T=q(()=>v.value.sparklines?.avgResponseTime??$.value.map(Y=>Y.avgDuration??0)),z=q(()=>v.value.sparklines?.p95ResponseTime??$.value.map(Y=>Y.p95Duration??0)),te=q(()=>v.value.sparklines?.requestsPerMinute??$.value.map(Y=>Y.requestCount??0)),se=q(()=>v.value.sparklines?.errorRate??$.value.map(Y=>Y.errorCount??0)),Z=q(()=>`ss-cg-total-${o}`),fe=q(()=>`ss-cg-error-${o}`);function Se(Y,O){if(Y<=0)return[0];const ne=Y/O,he=Math.pow(10,Math.floor(Math.log10(ne))),ot=ne/he;let et;ot<=1?et=he:ot<=2?et=2*he:ot<=5?et=5*he:et=10*he;const dn=[];for(let ul=et;ul<=Y+et*.5;ul+=et)dn.push(Math.round(ul));return dn.length===0&&dn.push(Math.ceil(Y)),dn}function be(Y){try{return new Date(Y).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Ce(Y){if(Y.length===0)return"";if(Y.length===1)return`M${Y[0].x},${Y[0].y}`;let O=`M${Y[0].x.toFixed(1)},${Y[0].y.toFixed(1)}`;for(let ne=0;ne<Y.length-1;ne++){const he=Y[ne],ot=Y[ne+1],et=(he.x+ot.x)/2;O+=` C${et.toFixed(1)},${he.y.toFixed(1)} ${et.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return O}function $e(Y){const O=ol(Y);return O==="very-slow"?"ss-dash-very-slow":O==="slow"?"ss-dash-slow":""}const xe=W(null),V=W(0);let j=null;ut(xe,Y=>{j?.disconnect(),j=null,Y&&(V.value=Y.clientWidth,j=new ResizeObserver(O=>{for(const ne of O)V.value=ne.contentRect.width}),j.observe(Y))}),St(()=>{j?.disconnect()});const k={top:12,right:12,bottom:28,left:38},E=q(()=>V.value||600),S=q(()=>E.value-k.left-k.right),H=q(()=>il-k.top-k.bottom),oe=q(()=>k.top+H.value),le=q(()=>$.value.map(Y=>{const O=Y;return(Y.requestCount??0)+(Number(O.request_count)||0)||Y.total||0})),U=q(()=>$.value.map(Y=>{const O=Y;return(Y.errorCount??0)+(Number(O.error_count)||0)})),ae=q(()=>Math.max(...le.value,1)),J=q(()=>Math.ceil(ae.value*1.1)),ie=q(()=>U.value.some(Y=>Y>0)),Ie=q(()=>Se(J.value,4)),cn=q(()=>Ie.value.length>0?Ie.value[Ie.value.length-1]:J.value);function Et(Y){return k.left+Y/Math.max($.value.length-1,1)*S.value}function ps(Y){return k.top+H.value-Y/(cn.value||1)*H.value}const f=q(()=>$.value.map((Y,O)=>({x:Et(O),y:ps(le.value[O])}))),_=q(()=>$.value.map((Y,O)=>({x:Et(O),y:ps(U.value[O])}))),R=q(()=>Ce(f.value)),N=q(()=>ie.value?Ce(_.value):""),F=q(()=>f.value.length>1?`${R.value} L${f.value[f.value.length-1].x.toFixed(1)},${oe.value} L${f.value[0].x.toFixed(1)},${oe.value} Z`:""),D=q(()=>ie.value&&_.value.length>1?`${N.value} L${_.value[_.value.length-1].x.toFixed(1)},${oe.value} L${_.value[0].x.toFixed(1)},${oe.value} Z`:""),G=q(()=>Math.min(10,$.value.length)),Q=q(()=>Math.max(1,Math.ceil($.value.length/G.value))),I=W({visible:!1,x:0,idx:-1});function B(Y){const O=f.value[Y].x;I.value={visible:!0,x:O,idx:Y}}function ce(){I.value={visible:!1,x:0,idx:-1}}const ee=q(()=>I.value.visible?Math.max(fa/2,Math.min(I.value.x,E.value-fa/2)):0),re=q(()=>S.value/($.value.length||1));function pe(Y){return Y%Q.value===0||Y===$.value.length-1}function we(){return y.value?C.value>500?"ss-dash-red":C.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Re(){return y.value?x.value>500?"ss-dash-red":x.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Te(){return y.value?"ss-dash-accent":"ss-dash-dim"}function Ue(){return y.value?L.value>5?"ss-dash-red":L.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(Y){return Y.url||Y.pattern||"-"}function Ze(Y){return Y.name||Y.eventName||Y.event_name||Y.event||""}function Ye(Y){return Y.sqlNormalized||Y.normalizedSql||Y.sql_normalized||Y.sql||"-"}return(Y,O)=>(c(),d("div",Ic,[w(u)&&!m.value?(c(),d("div",Bc,"Loading overview...")):(c(),d(K,{key:1},[n("div",Nc,[n("div",jc,[O[1]||(O[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:M(["ss-dash-card-value",we()])},h(y.value?w(Dt)(C.value):"-"),3),n("div",Hc,[me(un,{data:T.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",qc,[O[2]||(O[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:M(["ss-dash-card-value",Re()])},h(y.value?w(Dt)(x.value):"-"),3),n("div",Uc,[me(un,{data:z.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Kc,[O[3]||(O[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:M(["ss-dash-card-value",Te()])},h(y.value?P.value.toFixed(1):"-"),3),n("div",Vc,[me(un,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",zc,[O[4]||(O[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:M(["ss-dash-card-value",Ue()])},h(y.value?`${L.value.toFixed(1)}%`:"-"),3),n("div",Wc,[me(un,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Jc,[n("div",Qc,[O[5]||(O[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(Dc,{"model-value":i.value,"onUpdate:modelValue":O[0]||(O[0]=ne=>i.value=ne)},null,8,["model-value"])]),n("div",Gc,[$.value.length===0?(c(),d("div",Yc," No data for this range ")):(c(),d("div",{key:1,ref_key:"chartContainerRef",ref:xe,style:{position:"relative"}},[(c(),d("svg",{viewBox:`0 0 ${E.value} ${il}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Z.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[6]||(O[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Zc),n("linearGradient",{id:fe.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[7]||(O[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,ed)]),(c(!0),d(K,null,ye(Ie.value,ne=>(c(),d("g",{key:`ytick-${ne}`},[n("line",{x1:k.left,y1:ps(ne),x2:E.value-k.right,y2:ps(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,td),n("text",{x:k.left-6,y:ps(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,sd)]))),128)),F.value?(c(),d("path",{key:0,d:F.value,fill:`url(#${Z.value})`},null,8,nd)):X("",!0),R.value?(c(),d("path",{key:1,d:R.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,ld)):X("",!0),D.value?(c(),d("path",{key:2,d:D.value,fill:`url(#${fe.value})`},null,8,od)):X("",!0),N.value?(c(),d("path",{key:3,d:N.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,ad)):X("",!0),(c(!0),d(K,null,ye($.value,(ne,he)=>(c(),d("g",{key:he},[n("rect",{x:f.value[he].x-re.value/2,y:k.top,width:re.value,height:H.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":he,onMouseenter:ot=>B(he),onMouseleave:ce},null,40,id),le.value[he]>0?(c(),d("circle",{key:0,cx:f.value[he].x,cy:f.value[he].y,r:I.value.visible&&I.value.idx===he?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":he,opacity:I.value.visible&&I.value.idx!==he?.3:1},null,8,rd)):X("",!0),U.value[he]>0?(c(),d("circle",{key:1,cx:f.value[he].x,cy:_.value[he].y,r:I.value.visible&&I.value.idx===he?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":he,opacity:I.value.visible&&I.value.idx!==he?.3:1},null,8,ud)):X("",!0)]))),128)),(c(!0),d(K,null,ye($.value,(ne,he)=>(c(),d(K,{key:`xlabel-${he}`},[pe(he)&&be(ne.bucket)?(c(),d("text",{key:0,x:Et(he),y:il-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(be(ne.bucket)),9,cd)):X("",!0)],64))),128))],8,Xc)),I.value.visible&&I.value.idx>=0?(c(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:ee.value+"px",top:k.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(be($.value[I.value.idx].bucket)),1),n("div",null,"Requests: "+h(le.value[I.value.idx]),1),U.value[I.value.idx]>0?(c(),d("div",dd," Errors: "+h(U.value[I.value.idx]),1)):X("",!0)],4)):X("",!0)],512))]),n("div",fd,[O[9]||(O[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),_e(" Requests ")],-1)),$.value.some(ne=>(ne.errorCount??0)>0)?(c(),d("span",hd,[...O[8]||(O[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),_e(" Errors ",-1)])])):X("",!0)])]),n("div",pd,[n("div",vd,[O[10]||(O[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(c(),d("div",gd," No data yet ")):(c(),d("ul",yd,[(c(!0),d(K,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#requests?url=${encodeURIComponent(Be(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(ne)},h(Be(ne)),9,bd),n("span",{class:M(["ss-dash-secondary-list-value","ss-dash-duration",$e(ne.avgDuration)])},h(w(Dt)(ne.avgDuration)),3)],8,md)]))),128))]))]),n("div",_d,[O[14]||(O[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",xd,[n("li",null,[O[11]||(O[11]=n("span",null,"Total Queries",-1)),n("span",wd,h(v.value.queryStats.total),1)]),n("li",null,[O[12]||(O[12]=n("span",null,"Avg Duration",-1)),n("span",$d,h(w(Dt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[O[13]||(O[13]=n("span",null,"Queries / Request",-1)),n("span",kd,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Sd,[O[15]||(O[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(c(),d("div",Cd," No recent errors ")):(c(),d("ul",Td,[(c(!0),d(K,null,ye(v.value.recentErrors,(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,Pd),ne.timestamp?(c(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(It)(ne.timestamp)},h(w(bt)(ne.timestamp)),9,Rd)):X("",!0)],8,Ed)]))),128))]))]),n("div",Ad,[O[16]||(O[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(c(),d("div",Md," No events yet ")):(c(),d("ul",Ld,[(c(!0),d(K,null,ye(v.value.topEvents.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#events?event_name=${encodeURIComponent(Ze(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Ze(ne)),1),n("span",Fd,h(ne.count),1)],8,Od)]))),128))]))]),n("div",Dd,[O[20]||(O[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",Id,[n("li",null,[n("a",Bd,[O[17]||(O[17]=n("span",null,"Sent",-1)),n("span",Nd,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",jd,[O[18]||(O[18]=n("span",null,"Queued",-1)),n("span",Hd,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",qd,[O[19]||(O[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",Ud,[O[25]||(O[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Kd,[n("li",null,[n("a",Vd,[O[21]||(O[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",zd,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Wd,[O[22]||(O[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Jd,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Qd,[O[23]||(O[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Gd,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Yd,[O[24]||(O[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Xd,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(c(),d("div",Zd,[O[29]||(O[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",ef,[n("li",null,[n("a",tf,[O[26]||(O[26]=n("span",null,"Keys",-1)),n("span",sf,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",nf,[O[27]||(O[27]=n("span",null,"Hit Rate",-1)),n("span",lf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",of,[O[28]||(O[28]=n("span",null,"Memory",-1)),n("span",af,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):X("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(c(),d("div",rf,[O[34]||(O[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",uf,[n("li",null,[n("a",cf,[O[30]||(O[30]=n("span",null,"Active",-1)),n("span",df,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",ff,[O[31]||(O[31]=n("span",null,"Waiting",-1)),n("span",hf,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",pf,[O[32]||(O[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",vf,[O[33]||(O[33]=n("span",null,"Completed",-1)),n("span",gf,h(v.value.jobQueueStatus.completed),1)])])])])):X("",!0),n("div",yf,[O[39]||(O[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",mf,[n("li",null,[n("a",bf,[O[35]||(O[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",_f,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",xf,[O[36]||(O[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",wf,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",$f,[O[37]||(O[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",kf,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Sf,[O[38]||(O[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Cf,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",Tf,[O[40]||(O[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(c(),d("div",Ef," No query data yet ")):(c(),d("ul",Pf,[(c(!0),d(K,null,ye(v.value.slowestQueries.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ne)},h(Ye(ne)),9,Af),n("span",{class:M(["ss-dash-secondary-list-value","ss-dash-duration",$e(ne.avgDuration)])},h(w(Dt)(ne.avgDuration)),3)],8,Rf)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-1e96b18b"]])},Symbol.toStringTag,{value:"Module"}));function rl(e="",t){let s=null;return function(){return s||(s=new nl({baseUrl:e,authToken:t})),s}}function zt(e){const t=W(null);let s=null;function l(){s&&s(),s=null,On(()=>{t.value&&(s=ku(t.value))})}return e&&ut(e,l),Ot(l),Zl(()=>{s&&s(),s=null}),{tableRef:t}}const Lf={class:"ss-dash-filter-bar"},Of={key:0,class:"ss-dash-summary"},Ff={class:"ss-dash-search-wrapper"},Df=["viewBox","innerHTML"],If=["value","placeholder"],Bf={key:1,class:"ss-dash-filter-controls"},jt=Fe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function a(){s("update:modelValue",""),s("clear")}return(o,i)=>(c(),d("div",Lf,[e.summary?(c(),d("span",Of,h(e.summary),1)):X("",!0),n("div",Ff,[(c(),d("svg",{class:"ss-dash-search-icon",viewBox:w(Le).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).search.elements.join("")},null,8,Df)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,If),e.modelValue?(c(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):X("",!0)]),o.$slots.default?(c(),d("div",Bf,[Pi(o.$slots,"default")])):X("",!0)]))}}),Nf={key:0,class:"ss-dash-pagination"},jf={class:"ss-dash-page-info"},Hf={class:"ss-dash-pagination-controls"},qf=["disabled"],Uf={key:0,class:"ss-dash-page-ellipsis"},Kf=["onClick"],Vf=["disabled"],hs=Fe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=q(()=>gu(s.page,s.lastPage));return(o,i)=>e.lastPage>1?(c(),d("div",Nf,[n("span",jf," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",Hf,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:i[0]||(i[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,qf),(c(!0),d(K,null,ye(a.value,(r,u)=>(c(),d(K,{key:r==="..."?`ellipsis-${u}`:r},[r==="..."?(c(),d("span",Uf,"...")):(c(),d("button",{key:1,type:"button",class:M(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,Kf))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:i[1]||(i[1]=r=>l("pageChange",e.page+1))}," Next » ",8,Vf)])])):X("",!0)}}),zf={key:0,class:"ss-dash-empty"},Wf={class:"ss-dash-tl-legend"},Jf=["title"],Qf={class:"ss-dash-tl-track"},Gf=["title"],Yf={class:"ss-dash-tl-dur"},Xf={key:0,class:"ss-dash-tl-warnings"},Zf={class:"ss-dash-tl-warnings-title"},ha=Fe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},a=q(()=>t.spans||[]),o=q(()=>[...a.value].sort((b,C)=>b.startOffset-C.startOffset)),i=q(()=>{const b={};for(const C of o.value)b[C.id]=C.parentId?(b[C.parentId]||0)+1:0;return b});function r(b){const C=t.totalDuration||1;return`${b.startOffset/C*100}%`}function u(b){const C=t.totalDuration||1;return`${Math.max(b.duration/C*100,.5)}%`}function g(b){return b.length>50?b.slice(0,50)+"...":b}function p(b){return b==="db"?"DB":b}function m(b){return b==="db"?"purple":b==="mail"?"green":b==="event"?"amber":b==="view"?"blue":"muted"}function v(b){const C=b.metadata?Object.entries(b.metadata).filter(([,x])=>x!=null).map(([x,P])=>`${x}=${P}`).join(", "):"";return C?`${b.label} (${b.duration.toFixed(2)}ms)
5
- ${C}`:`${b.label} (${b.duration.toFixed(2)}ms)`}return(b,C)=>a.value.length===0?(c(),d("div",zf,"No spans recorded")):(c(),d("div",{key:1,class:M(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Wf,[(c(),d(K,null,ye(l,(x,P)=>n("div",{key:P,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[P]||s.custom})},null,4),n("span",null,h(x),1)])),64))]),(c(!0),d(K,null,ye(o.value,x=>(c(),d("div",{key:x.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v(x),style:Ke({paddingLeft:8+(i.value[x.id]||0)*16+"px"})},[n("span",{class:M(`ss-dash-badge ss-dash-badge-${m(x.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(x.category)),3),_e(" "+h(g(x.label)),1)],12,Jf),n("div",Qf,[n("div",{class:M(`ss-dash-tl-bar ss-dash-tl-bar-${x.category||"custom"}`),style:Ke({left:r(x),width:u(x)}),title:v(x)},null,14,Gf)]),n("span",Yf,h(x.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(c(),d("div",Xf,[n("div",Zf,"Warnings ("+h(e.warnings.length)+")",1),(c(!0),d(K,null,ye(e.warnings,(x,P)=>(c(),d("div",{key:P,class:"ss-dash-tl-warning"},h(x),1))),128))])):X("",!0)],2))}}),Ms=Fe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=W(t.defaultExpanded),l=q(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return on(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return on(t.value,t.maxLen||100)}),a=q(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function i(){navigator.clipboard?.writeText(a.value)}return(r,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:M(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:M(`${t.classPrefix}-data-cell`)},[s.value?X("",!0):(c(),d("span",{key:0,class:M(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:u[0]||(u[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(c(),d("div",{key:1,class:M(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:M(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:nt(i,["stop"])}," Copy ",2),n("pre",null,h(a.value),1)],2)):X("",!0)],2))}}),eh={key:0},th={style:{overflow:"auto"}},sh=["onClick"],nh=["title"],lh=["title"],oh={key:3,style:{width:"14px"}},ah=Fe({__name:"RelatedLogs",props:{logs:{},classPrefix:{default:"ss-dash"}},setup(e){const t=W(null);function s(l,a){a&&(t.value=t.value===l?null:l)}return(l,a)=>e.logs.length>0?(c(),d("div",eh,[n("div",{class:M(`${e.classPrefix}-related-logs-title`)},[a[0]||(a[0]=_e(" Related Logs ",-1)),n("span",{class:M(`${e.classPrefix}-related-logs-count`)},"("+h(e.logs.length)+")",3)],2),n("div",th,[(c(!0),d(K,null,ye(e.logs,(o,i)=>(c(),d(K,{key:o.id||i},[n("div",{class:M([`${e.classPrefix}-log-entry`,w(_t)(o)?`${e.classPrefix}-log-entry-expandable`:""]),onClick:r=>s(i,!!w(_t)(o))},[n("span",{class:M([`${e.classPrefix}-log-level`,w(ia)(w(an)(o),`${e.classPrefix}-log-level`)])},h(w(an)(o).toUpperCase()),3),n("span",{class:M(`${e.classPrefix}-log-time`),title:w(Bt)(o)?w(It)(w(Bt)(o)):""},h(w(Bt)(o)?w(bt)(w(Bt)(o)):"-"),11,nh),w(Nt)(o)?(c(),d("span",{key:0,class:M(`${e.classPrefix}-log-reqid`),title:w(Nt)(o)},h(w(Nt)(o).slice(0,8)),11,lh)):(c(),d("span",{key:1,class:M(`${e.classPrefix}-log-reqid-empty`)},"--",2)),w(_t)(o)?(c(),d("span",{key:2,class:M([`${e.classPrefix}-log-expand-icon`,t.value===i?`${e.classPrefix}-log-expand-icon-open`:""])},"▶",2)):(c(),d("span",oh)),n("span",{class:M(`${e.classPrefix}-log-msg`)},h(w(aa)(o)),3)],10,sh),t.value===i&&w(_t)(o)?(c(),d("div",{key:0,class:M(`${e.classPrefix}-log-detail`)},[me(Ms,{value:w(_t)(o),"class-prefix":e.classPrefix,"default-expanded":!0},null,8,["value","class-prefix"])],2)):X("",!0)],64))),128))])])):X("",!0)}});function ih(e){const{container:t,handle:s,topPane:l,bottomPane:a,storageKey:o,minHeight:i=60}=e;if(o){const u=localStorage.getItem(o);if(u){const g=parseFloat(u);g>0&&g<1&&(l.style.flex=`${g}`,a.style.flex=`${1-g}`)}}function r(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const p=t.getBoundingClientRect().height,m=u.clientY,v=l.getBoundingClientRect().height;function b(x){const P=x.clientY-m;let L=v+P;const A=p-i-s.offsetHeight;L=Math.max(i,Math.min(L,A));const y=L/(p-s.offsetHeight);l.style.flex=`${y}`,a.style.flex=`${1-y}`}function C(){if(s.removeEventListener("pointermove",b),s.removeEventListener("pointerup",C),o){const x=t.getBoundingClientRect().height-s.offsetHeight;if(x>0){const P=l.getBoundingClientRect().height/x;localStorage.setItem(o,String(P))}}}s.addEventListener("pointermove",b),s.addEventListener("pointerup",C)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}const rh={class:"ss-dash-tl-detail-header"},uh={style:{color:"var(--ss-text)"}},ch={class:"ss-dash-tl-meta"},dh={class:"ss-dash-tl-detail-header"},fh={key:0,class:"ss-dash-empty"},hh={key:1,class:"ss-dash-empty"},ph={class:"ss-dash-table-wrap"},vh={key:0,class:"ss-dash-sort-arrow"},gh={key:0,class:"ss-dash-sort-arrow"},yh={key:0,class:"ss-dash-sort-arrow"},mh={key:0,class:"ss-dash-sort-arrow"},bh={key:0,class:"ss-dash-sort-arrow"},_h=["onClick"],xh={style:{color:"var(--ss-dim)"}},wh=["title"],$h={style:{color:"var(--ss-muted)","text-align":"center"}},kh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},Sh={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Ch=["title"],Th={key:1,class:"ss-dash-empty"},Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,sort:g,goToPage:p,setSearch:m,setSort:v}=lt(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),b=W(""),C=W(null),x=W(!1),P=W(null),L=q(()=>{if(!o.value)return[];const xe=o.value;return xe.data||xe.requests||o.value||[]}),A=rl(a,l);async function y(xe){const V=xe.id;x.value=!0;try{const j=s||"/__stats/api",E=await A().fetch(`${j}/requests/${V}`),S=E.trace,H=S?{...E,...S,logs:E.logs}:E;P.value=Mu(H),C.value=xe}catch{}finally{x.value=!1}}function $(){C.value=null,P.value=null}function T(xe){b.value=xe,m(xe)}function z(xe){v(xe)}function te(xe){const V=ol(xe);return V==="very-slow"?"ss-dash-very-slow":V==="slow"?"ss-dash-slow":""}const{tableRef:se}=zt(()=>L.value),Z=W(null),fe=W(null),Se=W(null),be=W(null);let Ce=null;const $e=q(()=>P.value?P.value.logs||[]:[]);return ut([()=>C.value,()=>P.value],async()=>{Ce?.(),Ce=null,P.value&&$e.value.length>0&&(await On(),Z.value&&fe.value&&Se.value&&be.value&&(Ce=ih({container:Z.value,handle:fe.value,topPane:Se.value,bottomPane:be.value,storageKey:"ss-requests-split"})))}),St(()=>{Ce?.()}),(xe,V)=>(c(),d("div",null,[P.value&&C.value?(c(),d(K,{key:0},[n("div",rh,[n("button",{type:"button",class:"ss-dash-btn",onClick:$}," ← Back to Requests "),n("span",{class:M(`ss-dash-method ss-dash-method-${(P.value.method||"").toLowerCase()}`)},h(P.value.method),3),n("span",uh,h(P.value.url),1),n("span",{class:M(`ss-dash-status ss-dash-status-${Math.floor((P.value.statusCode||200)/100)}xx`)},h(P.value.statusCode),3),n("span",ch,h(P.value.totalDuration.toFixed(1))+"ms · "+h(P.value.spanCount)+" spans ",1)]),$e.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:Z,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Se,class:"ss-dash-split-top"},[me(ha,{spans:P.value.spans,"total-duration":P.value.totalDuration,warnings:P.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:fe,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:be,class:"ss-dash-split-bottom"},[me(ah,{logs:$e.value,"class-prefix":"ss-dash"},null,8,["logs"])],512)],512)):(c(),Xe(ha,{key:1,spans:P.value.spans,"total-duration":P.value.totalDuration,warnings:P.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):x.value?(c(),d(K,{key:1},[n("div",dh,[n("button",{type:"button",class:"ss-dash-btn",onClick:V[0]||(V[0]=j=>x.value=!1)}," ← Back to Requests ")]),V[6]||(V[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(c(),d(K,{key:2},[me(jt,{"model-value":b.value,placeholder:"Filter requests...",summary:`${w(u).total??0} requests`,"onUpdate:modelValue":T},null,8,["model-value","summary"]),w(r)?(c(),d("div",fh,"Failed to load requests")):X("",!0),w(i)&&!w(o)?(c(),d("div",hh,"Loading requests...")):(c(),d(K,{key:2},[n("div",ph,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[V[15]||(V[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[V[12]||(V[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:V[1]||(V[1]=j=>z("method"))},[V[7]||(V[7]=_e(" Method ",-1)),w(g).column==="method"?(c(),d("span",vh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[2]||(V[2]=j=>z("url"))},[V[8]||(V[8]=_e(" URL ",-1)),w(g).column==="url"?(c(),d("span",gh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[3]||(V[3]=j=>z("statusCode"))},[V[9]||(V[9]=_e(" Status ",-1)),w(g).column==="statusCode"?(c(),d("span",yh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[4]||(V[4]=j=>z("duration"))},[V[10]||(V[10]=_e(" Duration ",-1)),w(g).column==="duration"?(c(),d("span",mh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),V[13]||(V[13]=n("th",null,"Spans",-1)),V[14]||(V[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:V[5]||(V[5]=j=>z("createdAt"))},[V[11]||(V[11]=_e(" Time ",-1)),w(g).column==="createdAt"?(c(),d("span",bh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)])])]),n("tbody",null,[(c(!0),d(K,null,ye(L.value,j=>(c(),d("tr",{key:j.id,class:"ss-dash-clickable",onClick:k=>y(j)},[n("td",null,[n("span",xh,h(j.id),1)]),n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(j.method||"").toLowerCase()}`)},h(j.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:j.url},h(j.url),9,wh)]),n("td",null,[n("span",{class:M(`ss-dash-status ss-dash-status-${Math.floor((j.status_code||j.statusCode||200)/100)}xx`)},h(j.status_code||j.statusCode),3)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${te(j.total_duration||j.totalDuration||j.duration||0)}`)},h((j.total_duration||j.totalDuration||j.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",$h,h(j.span_count||j.spanCount||0),1)]),n("td",null,[(j.warning_count||j.warningCount||0)>0?(c(),d("span",kh,h(j.warning_count||j.warningCount||0),1)):(c(),d("span",Sh,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(j.createdAt||j.created_at||j.timestamp||"")},h(w(bt)(j.createdAt||j.created_at||j.timestamp||"")),9,Ch)])],8,_h))),128))])],512)):(c(),d("div",Th,"No requests recorded yet"))]),w(u).totalPages>1?(c(),Xe(hs,{key:0,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Ph={class:"ss-dash-btn-group"},Rh={key:0,class:"ss-dash-empty"},Ah={key:1,class:"ss-dash-table-wrap"},Mh={key:0,class:"ss-dash-sort-arrow"},Lh={key:0,class:"ss-dash-sort-arrow"},Oh={key:0,class:"ss-dash-sort-arrow"},Fh=["onClick","onKeydown"],Dh={key:0,class:"ss-dash-dup"},Ih={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Bh={class:"ss-dash-duration"},Nh={class:"ss-dash-duration"},jh={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Hh={key:1,class:"ss-dash-empty"},qh={class:"ss-dash-table-wrap"},Uh={key:0,class:"ss-dash-sort-arrow"},Kh={key:0,class:"ss-dash-sort-arrow"},Vh={style:{color:"var(--ss-dim)"}},zh=["onClick","onKeydown"],Wh={key:0,class:"ss-dash-dup"},Jh=["title"],Qh={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Gh=["title"],Yh=["disabled","onClick"],Xh={key:0,class:"ss-dash-explain-row"},Zh={colspan:"8",class:"ss-dash-explain"},ep={style:{display:"flex","justify-content":"space-between","align-items":"start"}},tp={style:{flex:"1"}},sp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},np={key:0},lp={key:1,class:"ss-dash-explain-result"},op={key:2,class:"ss-dash-explain-result"},ap={key:3,class:"ss-dash-explain-result"},ip={key:1,class:"ss-dash-empty"};function pa(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",a=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",i=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const u=e.Plans||[];return ds("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[ds("div",{class:"ss-dash-explain-node-header"},[ds("span",{class:"ss-dash-explain-node-type"},l),a?[" on ",ds("strong",null,a)]:null,o||null,i?[" using ",ds("em",null,i)]:null]),r.length>0?ds("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...u.map((g,p)=>pa(g,t+1))])}const va=Fe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>pa(e.node,e.depth)}}),rp=Fe({...{components:{ExplainPlanNode:va}},__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),o=W("list"),i=W(null),r=W(null),u=W(null),g=q(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:p,loading:m,pagination:v,sort:b,goToPage:C,setSearch:x,setSort:P,explainQuery:L}=lt(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),A=W(""),y=q(()=>p.value?o.value==="grouped"?p.value.groups||[]:p.value.data||p.value||[]:[]),$=q(()=>o.value!=="grouped"?y.value:y.value.map(k=>{const E={...k};return(E.sqlNormalized===null||E.sqlNormalized===void 0&&(k.sql_normalized||k.pattern))&&(E.sqlNormalized=k.sql_normalized||k.pattern||""),(E.count===null||E.count===void 0)&&k.total_count!==null&&k.total_count!==void 0&&(E.count=k.total_count),(E.avgDuration===null||E.avgDuration===void 0)&&k.avg_duration!==null&&k.avg_duration!==void 0&&(E.avgDuration=k.avg_duration),(E.maxDuration===null||E.maxDuration===void 0)&&k.max_duration!==null&&k.max_duration!==void 0&&(E.maxDuration=k.max_duration),(E.minDuration===null||E.minDuration===void 0)&&k.min_duration!==null&&k.min_duration!==void 0&&(E.minDuration=k.min_duration),(E.totalDuration===null||E.totalDuration===void 0)&&k.total_duration!==null&&k.total_duration!==void 0&&(E.totalDuration=k.total_duration),(E.percentOfTotal===null||E.percentOfTotal===void 0)&&k.pct_time!==null&&k.pct_time!==void 0&&(E.percentOfTotal=k.pct_time),E})),T=q(()=>{const k=new Map;for(const E of $.value){const S=E.sqlNormalized||E.sql||E.sql_text||"";k.set(S,(k.get(S)||0)+1)}return k}),z=q(()=>{const k=v.total??$.value.length;let E=0,S=0,H=0,oe=0;for(const le of $.value){const U=le.duration||0;H+=U,oe++,U>ea&&E++}for(const le of T.value.values())le>1&&(S+=le);return{total:k,slow:E,duplicates:S,avgDuration:oe>0?H/oe:0}}),te=q(()=>{if(o.value==="grouped")return`${$.value.length} query patterns`;const k=[`${z.value.total} queries`];return z.value.slow>0&&k.push(`${z.value.slow} slow`),z.value.duplicates>0&&k.push(`${z.value.duplicates} dup`),k.push(`avg ${(z.value.avgDuration||0).toFixed(1)}ms`),k.join(", ")});function se(k){A.value=k,x(k)}function Z(k){k!==o.value&&(o.value=k,i.value=null,r.value=null,u.value=null)}function fe(k){P(k)}async function Se(k){if(r.value&&r.value.queryId===k){r.value=null;return}u.value=k;try{const E=await L(k);E&&E.error?r.value={queryId:k,plan:[],error:E.error,message:E.message}:r.value={queryId:k,plan:E?.plan||E?.rows||[]}}catch(E){r.value={queryId:k,plan:[],error:E instanceof Error?E.message:String(E)}}finally{u.value=null}}function be(k){const E=ol(k);return E==="very-slow"?"ss-dash-very-slow":E==="slow"?"ss-dash-slow":""}function Ce(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?[]:Object.keys(k[0])}function $e(k,E){if(!k||typeof k!="object")return"-";const S=k[E];return S!=null?String(S):"-"}function xe(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?!1:"Plan"in k[0]}function V(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?{}:k[0].Plan}const{tableRef:j}=zt(()=>$.value);return(k,E)=>(c(),d("div",null,[me(jt,{"model-value":A.value,placeholder:"Filter queries...",summary:te.value,"onUpdate:modelValue":se},{default:ss(()=>[n("div",Ph,[n("button",{type:"button",class:M(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:E[0]||(E[0]=S=>Z("list"))}," List ",2),n("button",{type:"button",class:M(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:E[1]||(E[1]=S=>Z("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(m)&&!w(p)?(c(),d("div",Rh,"Loading queries...")):o.value==="grouped"?(c(),d("div",Ah,[$.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[E[11]||(E[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:E[2]||(E[2]=S=>fe("count"))},[E[8]||(E[8]=_e(" Count ",-1)),w(b).column==="count"?(c(),d("span",Mh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:E[3]||(E[3]=S=>fe("avgDuration"))},[E[9]||(E[9]=_e(" Avg ",-1)),w(b).column==="avgDuration"?(c(),d("span",Lh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[12]||(E[12]=n("th",null,"Min",-1)),E[13]||(E[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:E[4]||(E[4]=S=>fe("totalDuration"))},[E[10]||(E[10]=_e(" Total ",-1)),w(b).column==="totalDuration"?(c(),d("span",Oh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[14]||(E[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(c(!0),d(K,null,ye($.value,(S,H)=>(c(),d("tr",{key:H},[n("td",null,[n("span",{class:M(`ss-dash-sql ${i.value===S.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(oe=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["stop"]),onKeydown:Rs(oe=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["enter"])},h(S.sqlNormalized),43,Fh),(S.count||0)>=3?(c(),d("span",Dh,"DUP")):X("",!0)]),n("td",null,[n("span",Ih,h(S.count||0),1)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.avgDuration||0)}`)},h((S.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Bh,h((S.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.maxDuration||0)}`)},h((S.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Nh,h((S.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",jh,h((S.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(c(),d("div",Hh,"No queries recorded"))])):(c(),d(K,{key:2},[n("div",qh,[$.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[E[24]||(E[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[E[17]||(E[17]=n("th",null,"#",-1)),E[18]||(E[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:E[5]||(E[5]=S=>fe("duration"))},[E[15]||(E[15]=_e(" Duration ",-1)),w(b).column==="duration"?(c(),d("span",Uh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[19]||(E[19]=n("th",null,"Method",-1)),E[20]||(E[20]=n("th",null,"Model",-1)),E[21]||(E[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:E[6]||(E[6]=S=>fe("createdAt"))},[E[16]||(E[16]=_e(" Time ",-1)),w(b).column==="createdAt"?(c(),d("span",Kh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[22]||(E[22]=n("th",null,null,-1))])]),n("tbody",null,[(c(!0),d(K,null,ye($.value,S=>(c(),d(K,{key:S.id},[n("tr",null,[n("td",null,[n("span",Vh,h(S.id),1)]),n("td",null,[n("div",null,[n("span",{class:M(`ss-dash-sql ${i.value===S.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(H=>i.value=i.value===S.id?null:S.id,["stop"]),onKeydown:Rs(H=>i.value=i.value===S.id?null:S.id,["enter"])},h(S.sql||S.sql_text||""),43,zh),(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")??0)>1?(c(),d("span",Wh," ×"+h(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")),1)):X("",!0)])]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.duration||0)}`)},h((S.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(S.method||S.sql_method||"").toLowerCase()}`)},h(S.method||S.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:S.model},h(S.model||"-"),9,Jh)]),n("td",null,[n("span",Qh,h(S.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(S.createdAt||S.created_at||S.timestamp||"")},h(w(bt)(S.createdAt||S.created_at||S.timestamp||"")),9,Gh)]),n("td",null,[(S.method||S.sql_method||"")==="select"?(c(),d("button",{key:0,type:"button",class:M(`ss-dash-explain-btn${r.value?.queryId===S.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:u.value===S.id,onClick:nt(H=>Se(S.id),["stop"])},h(u.value===S.id?"...":"EXPLAIN"),11,Yh)):X("",!0)])]),r.value&&r.value.queryId===S.id?(c(),d("tr",Xh,[n("td",Zh,[n("div",ep,[n("div",tp,[r.value.error?(c(),d("div",sp,[E[23]||(E[23]=n("strong",null,"Error:",-1)),_e(" "+h(r.value.error)+" ",1),r.value.message?(c(),d("br",np)):X("",!0),_e(" "+h(r.value.message),1)])):xe()?(c(),d("div",lp,[me(w(va),{node:V(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(c(),d("div",op,[n("table",null,[n("thead",null,[n("tr",null,[(c(!0),d(K,null,ye(Ce(),H=>(c(),d("th",{key:H},h(H),1))),128))])]),n("tbody",null,[(c(!0),d(K,null,ye(r.value.plan,(H,oe)=>(c(),d("tr",{key:oe},[(c(!0),d(K,null,ye(Ce(),le=>(c(),d("td",{key:le},h($e(H,le)),1))),128))]))),128))])])])):(c(),d("div",ap,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:E[7]||(E[7]=H=>r.value=null)}," Close ")])])])):X("",!0)],64))),128))])],512)):(c(),d("div",ip,"No queries recorded"))]),w(v).totalPages>1?(c(),Xe(hs,{key:0,page:w(v).page,"last-page":w(v).totalPages,total:w(v).total,onPageChange:w(C)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}}),up=Object.freeze(Object.defineProperty({__proto__:null,default:rp},Symbol.toStringTag,{value:"Module"})),cp={key:0,class:"ss-dash-empty"},dp={class:"ss-dash-table-wrap"},fp={style:{color:"var(--ss-dim)"}},hp=["title"],pp=["title"],vp={key:1,class:"ss-dash-empty"},gp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:u,setSearch:g}=lt(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=W(""),m=q(()=>{if(!o.value)return[];const C=o.value;return C.data||C.events||o.value||[]});function v(C){p.value=C,g(C)}const{tableRef:b}=zt(()=>m.value);return(C,x)=>(c(),d("div",null,[me(jt,{"model-value":p.value,placeholder:"Filter events...",summary:`${w(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",cp,"Loading events...")):(c(),d(K,{key:1},[n("div",dp,[m.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:b,class:"ss-dash-table"},[x[0]||(x[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),x[1]||(x[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(m.value,P=>(c(),d("tr",{key:P.id},[n("td",null,[n("span",fp,h(P.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:P.event_name||P.eventName||P.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(P.event_name||P.eventName||P.event||""),9,hp)]),n("td",null,[me(Ms,{value:P.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(P.createdAt||P.created_at||P.timestamp)},h(w(bt)(P.createdAt||P.created_at||P.timestamp)),9,pp)])]))),128))])],512)):(c(),d("div",vp,"No events recorded yet"))]),w(r).totalPages>1?(c(),Xe(hs,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(u)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),yp={key:0,class:"ss-dash-empty"},mp={key:1,class:"ss-dash-empty"},bp={key:2,class:"ss-dash-table-wrap"},_p=["title"],xp=["title"],wp=["title"],$p=["title"],kp={key:1,class:"ss-dash-empty"},Sp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,setSearch:u}=lt(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=W(""),p=q(()=>{if(!o.value)return[];const b=o.value;return Array.isArray(b)?b:Array.isArray(b.routes)?b.routes:Array.isArray(b.data)?b.data:[]});function m(b){g.value=b,u(b)}const{tableRef:v}=zt(()=>p.value);return(b,C)=>(c(),d("div",null,[me(jt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),w(r)?(c(),d("div",yp,"Failed to load routes")):w(i)&&!w(o)?(c(),d("div",mp,"Loading routes...")):(c(),d("div",bp,[p.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[C[0]||(C[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),C[1]||(C[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(p.value,(x,P)=>(c(),d("tr",{key:x.pattern||P},[n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(x.method||"").toLowerCase()}`)},h(x.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.pattern},h(x.pattern),9,_p)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.name||"-"},h(x.name||"-"),9,xp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.handler},h(x.handler),9,wp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.middleware?.length?x.middleware.join(", "):"-"},h(x.middleware?.length?x.middleware.join(", "):"-"),9,$p)])]))),128))])],512)):(c(),d("div",kp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),Cp={class:"ss-dash-log-filters"},Tp=["onClick"],Ep=["value"],Pp={class:"ss-dash-structured-search"},Rp=["value"],Ap=["value"],Mp=["value"],Lp={key:0,class:"ss-dash-filter-chips"},Op={key:0,class:"ss-dash-filter-chip"},Fp={key:1,class:"ss-dash-filter-chip"},Dp=["onClick"],Ip={key:1,class:"ss-dash-empty"},Bp={key:2,class:"ss-dash-empty"},Np={key:3,class:"ss-dash-empty"},jp={key:4,class:"ss-dash-log-entries"},Hp=["onClick"],qp=["title"],Up=["title","onClick","onKeydown"],Kp={key:1,class:"ss-dash-log-reqid-empty"},Vp={key:3,style:{width:"14px"}},zp={class:"ss-dash-log-msg"},Wp={key:0,class:"ss-dash-log-detail"},Jp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,filter:g,goToPage:p,setSearch:m,setFilter:v,refresh:b}=lt(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=W(""),x=W("all"),P=W(""),L=W(""),A=W(null),y=W([]),$=W("level"),T=W("equals"),z=W(""),te=q(()=>{if(!o.value)return[];const H=o.value;return H.data||H.logs||o.value||[]}),se=q(()=>x.value!=="all"||P.value!==""||y.value.length>0);function Z(H,oe){oe&&(A.value=A.value===H?null:H)}function fe(H){C.value=H,m(H)}function Se(H){x.value=H,H==="all"?v("level",""):v("level",H)}function be(H){P.value=H,L.value=H,v("request_id",H)}function Ce(){const H=L.value.trim();P.value=H,v("request_id",H)}function $e(){P.value="",L.value="",v("request_id","")}function xe(){x.value="all",v("level","")}function V(){const H=g;for(const oe of Object.keys(H))(oe.startsWith("filter_field_")||oe.startsWith("filter_op_")||oe.startsWith("filter_value_"))&&delete H[oe];y.value.forEach((oe,le)=>{H[`filter_field_${le}`]=oe.field,H[`filter_op_${le}`]=oe.operator,H[`filter_value_${le}`]=oe.value}),u.page=1,b()}function j(){const H=z.value.trim();H&&(y.value.push({field:$.value,operator:T.value,value:H}),z.value="",V())}function k(H){y.value.splice(H,1),V()}function E(H){return H.target.value}function S(H){return H.target.value}return(H,oe)=>(c(),d("div",null,[me(jt,{"model-value":C.value,placeholder:"Search logs...",summary:`${w(u).total??0} logs`,"onUpdate:modelValue":fe},{default:ss(()=>[n("div",Cp,[(c(!0),d(K,null,ye(w(Su),le=>(c(),d("button",{key:le,type:"button",class:M(`ss-dash-log-filter ${x.value===le?"ss-dash-active":""}`),onClick:U=>Se(le)},h(le),11,Tp))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:L.value,onInput:oe[0]||(oe[0]=le=>L.value=E(le)),onKeydown:Rs(Ce,["enter"])},null,40,Ep),L.value||P.value?(c(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:$e}," Clear ")):X("",!0)])]),_:1},8,["model-value","summary"]),n("div",Pp,[n("select",{class:"ss-dash-filter-select",value:$.value,onChange:oe[1]||(oe[1]=le=>$.value=S(le))},[...oe[4]||(oe[4]=[cr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,Rp),n("select",{class:"ss-dash-filter-select",value:T.value,onChange:oe[2]||(oe[2]=le=>T.value=S(le))},[...oe[5]||(oe[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,Ap),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:z.value,onInput:oe[3]||(oe[3]=le=>z.value=E(le)),onKeydown:Rs(j,["enter"])},null,40,Mp),n("button",{type:"button",class:"ss-dash-btn",onClick:j},"Add")]),se.value?(c(),d("div",Lp,[x.value!=="all"?(c(),d("span",Op,[_e(" level: "+h(x.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:xe}," × ")])):X("",!0),P.value?(c(),d("span",Fp,[_e(" requestId: "+h(P.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:$e}," × ")])):X("",!0),(c(!0),d(K,null,ye(y.value,(le,U)=>(c(),d("span",{key:U,class:"ss-dash-filter-chip"},[_e(h(le.field)+" "+h(le.operator)+' "'+h(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ae=>k(U)}," × ",8,Dp)]))),128))])):X("",!0),w(r)?(c(),d("div",Ip,"Failed to load logs")):w(i)&&!w(o)?(c(),d("div",Bp,"Loading logs...")):te.value.length===0?(c(),d("div",Np," No log entries"+h(P.value?` matching request ${P.value}`:x.value!=="all"?` for ${x.value}`:""),1)):(c(),d("div",jp,[(c(!0),d(K,null,ye(te.value,(le,U)=>(c(),d(K,{key:String(le.id||U)},[n("div",{class:M(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(_t)(le)}]),onClick:ae=>Z(U,!!w(_t)(le))},[n("span",{class:M(`ss-dash-log-level ${w(ia)(w(an)(le),"ss-dash-log-level")}`)},h(w(an)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(Bt)(le)?w(It)(w(Bt)(le)):""},h(w(Bt)(le)?w(bt)(w(Bt)(le)):"-"),9,qp),w(Nt)(le)?(c(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Nt)(le),role:"button",tabindex:"0",onClick:nt(ae=>be(w(Nt)(le)),["stop"]),onKeydown:Rs(nt(ae=>be(w(Nt)(le)),["stop"]),["enter"])},h(w(Nt)(le).slice(0,8)),41,Up)):(c(),d("span",Kp,"--")),w(_t)(le)?(c(),d("span",{key:2,class:M(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":A.value===U}])},"▶",2)):(c(),d("span",Vp)),n("span",zp,h(w(aa)(le)),1)],10,Hp),A.value===U&&w(_t)(le)?(c(),d("div",Wp,[me(Ms,{value:w(_t)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):X("",!0)],64))),128))])),w(u).totalPages>1?(c(),Xe(hs,{key:5,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):X("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Qp={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Gp={class:"ss-dash-email-preview-header"},Yp={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Xp=["srcdoc"],Zp={key:0,class:"ss-dash-empty"},ev={class:"ss-dash-table-wrap"},tv=["onClick"],sv={style:{color:"var(--ss-dim)"}},nv=["title"],lv=["title"],ov=["title"],av={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},iv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},rv=["title"],uv=["title"],cv={key:1,class:"ss-dash-empty"},dv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:u,setSearch:g,fetchEmailPreview:p}=lt(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=W(""),v=W(null),b=W(null),C=q(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function x(y){m.value=y,g(y)}async function P(y){if(y.html){v.value=y.id,b.value=y.html;return}const $=await p(y.id);v.value=y.id,b.value=$}function L(){v.value=null,b.value=null}const{tableRef:A}=zt(()=>C.value);return(y,$)=>(c(),d("div",null,[v.value&&b.value?(c(),d("div",Qp,[n("div",Gp,[n("div",Yp,[C.value.find(T=>T.id===v.value)?(c(),d(K,{key:0},[$[4]||($[4]=n("strong",null,"Subject:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.subject)+"   |  ",1),$[5]||($[5]=n("strong",null,"From:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.from_addr||C.value.find(T=>T.id===v.value)?.from)+"   |  ",1),$[6]||($[6]=n("strong",null,"To:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.to_addr||C.value.find(T=>T.id===v.value)?.to)+" ",1),C.value.find(T=>T.id===v.value)?.cc||C.value.find(T=>T.id===v.value)?.cc_addr?(c(),d(K,{key:0},[$[0]||($[0]=_e("   |  ",-1)),$[1]||($[1]=n("strong",null,"CC:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.cc||C.value.find(T=>T.id===v.value)?.cc_addr),1)],64)):X("",!0),$[7]||($[7]=_e("   |  ",-1)),$[8]||($[8]=n("strong",null,"Status:",-1)),n("span",{class:M(`ss-dash-badge ss-dash-email-status-${C.value.find(T=>T.id===v.value)?.status}`)},h(C.value.find(T=>T.id===v.value)?.status),3),C.value.find(T=>T.id===v.value)?.mailer?(c(),d(K,{key:1},[$[2]||($[2]=_e("   |  ",-1)),$[3]||($[3]=n("strong",null,"Mailer:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.mailer),1)],64)):X("",!0)],64)):X("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:L}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:b.value,title:"Email preview",sandbox:""},null,8,Xp)])):(c(),d(K,{key:1},[me(jt,{"model-value":m.value,placeholder:"Filter emails...",summary:`${w(r).total??0} emails`,"onUpdate:modelValue":x},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",Zp,"Loading emails...")):(c(),d(K,{key:1},[n("div",ev,[C.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:A,class:"ss-dash-table"},[$[9]||($[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),$[10]||($[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(C.value,T=>(c(),d("tr",{key:T.id,class:"ss-dash-clickable ss-dash-email-row",onClick:z=>P(T)},[n("td",null,[n("span",sv,h(T.id),1)]),n("td",null,[n("span",{title:T.from_addr||T.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.from_addr||T.from||""),9,nv)]),n("td",null,[n("span",{title:T.to_addr||T.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.to_addr||T.to||""),9,lv)]),n("td",null,[n("span",{title:T.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.subject||""),9,ov)]),n("td",null,[n("span",{class:M(`ss-dash-badge ss-dash-email-status-${T.status||""}`)},h(T.status),3)]),n("td",null,[(T.attachment_count||T.attachmentCount||0)>0?(c(),d("span",av,h(T.attachment_count||T.attachmentCount||0),1)):(c(),d("span",iv,"-"))]),n("td",null,[n("span",{title:T.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.mailer||""),9,rv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(T.createdAt||T.created_at||T.timestamp)},h(w(bt)(T.createdAt||T.created_at||T.timestamp)),9,uv)])],8,tv))),128))])],512)):(c(),d("div",cv,"No emails captured yet"))]),w(r).totalPages>1?(c(),Xe(hs,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(u)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),fv={key:0,class:"ss-dash-cache-stats"},hv={class:"ss-dash-cache-stat"},pv={class:"ss-dash-cache-stat-value"},vv={class:"ss-dash-cache-stat"},gv={class:"ss-dash-cache-stat-value"},yv={class:"ss-dash-cache-stat"},mv={class:"ss-dash-cache-stat-value"},bv={class:"ss-dash-cache-stat"},_v={class:"ss-dash-cache-stat-value"},xv={key:1,class:"ss-dash-empty"},wv={key:2,class:"ss-dash-empty"},$v={key:3,class:"ss-dash-table-wrap"},kv=["onClick"],Sv=["title"],Cv={style:{color:"var(--ss-muted)"}},Tv=["onClick"],Ev={key:1,class:"ss-dash-empty"},Pv={key:4,class:"ss-dash-cache-detail"},Rv={key:0,class:"ss-dash-empty"},Av={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},Mv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,setSearch:r,mutate:u}=lt(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=rl(a||"",l),p=new la(g(),s||"/__stats/api"),m=W(""),v=W(null),b=W(null),C=W(!1),x=W(null),P=q(()=>o.value),L=q(()=>P.value?.keys||P.value?.data||[]);function A(z){m.value=z,r(z)}async function y(z){if(confirm(`Delete cache key "${z}"?`))try{await u(`cache/${encodeURIComponent(z)}`,"delete"),v.value===z&&(v.value=null,b.value=null,x.value=null)}catch{}}const{tableRef:$}=zt(()=>L.value);async function T(z){if(v.value===z){v.value=null,b.value=null,x.value=null;return}v.value=z,b.value=null,x.value=null,C.value=!0;try{const te=await p.fetchCacheKey(z);b.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,x.value=null}catch{b.value=null,x.value="Failed to fetch key value"}finally{C.value=!1}}return(z,te)=>(c(),d("div",null,[P.value?.available&&P.value?.stats?(c(),d("div",fv,[n("div",hv,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",pv,h((P.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",vv,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",gv,h(P.value.stats.hits??0),1)]),n("div",yv,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",mv,h(P.value.stats.misses??0),1)]),n("div",bv,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",_v,h(P.value.stats.totalKeys||P.value.stats.keyCount||L.value.length||0),1)])])):X("",!0),me(jt,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${L.value.length} keys`,"onUpdate:modelValue":A},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",xv,"Loading cache...")):!P.value||!P.value.available?(c(),d("div",wv," Cache inspector not available ")):(c(),d("div",$v,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:$,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,se=>(c(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:Z=>T(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,Sv)]),n("td",null,[n("span",Cv,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?w(pu)(se.size):"-"),1),n("td",null,h(se.ttl>0?w(hu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:nt(Z=>y(se.key),["stop"])}," Delete ",8,Tv)])],8,kv))),128))])],512)):(c(),d("div",Ev,"No cache keys found"))])),v.value?(c(),d("div",Pv,[n("h4",null,"Key: "+h(v.value),1),C.value?(c(),d("div",Rv,"Loading value...")):x.value?(c(),d("div",Av,h(x.value),1)):(c(),Xe(Ms,{key:2,value:b.value},null,8,["value"]))])):X("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Lv={key:0,class:"ss-dash-job-stats"},Ov={class:"ss-dash-job-stat"},Fv={class:"ss-dash-job-stat-value"},Dv={class:"ss-dash-job-stat"},Iv={class:"ss-dash-job-stat-value"},Bv={class:"ss-dash-job-stat"},Nv={class:"ss-dash-job-stat-value"},jv={class:"ss-dash-job-stat"},Hv={class:"ss-dash-job-stat-value"},qv={class:"ss-dash-job-stat"},Uv={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Kv={class:"ss-dash-btn-group"},Vv=["onClick"],zv={key:1,class:"ss-dash-empty"},Wv={key:2,class:"ss-dash-empty"},Jv={class:"ss-dash-table-wrap"},Qv={style:{color:"var(--ss-dim)"}},Gv=["title"],Yv={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Xv={class:"ss-dash-duration"},Zv=["title"],eg=["disabled","onClick"],tg={key:1,class:"ss-dash-empty"},sg=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,goToPage:g,setSearch:p,setFilter:m,refresh:v,mutate:b}=lt(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=W(""),x=W("all"),P=W({}),L=q(()=>Eu(o.value)),A=q(()=>Pu(o.value));function y(te){C.value=te,p(te)}function $(te){x.value=te,te==="all"?m("status",""):m("status",te)}const{tableRef:T}=zt(()=>L.value);async function z(te){P.value[te]="pending";try{await b(`jobs/${te}/retry`),P.value[te]="success",setTimeout(()=>{delete P.value[te],v()},1e3)}catch{delete P.value[te]}}return(te,se)=>(c(),d("div",null,[A.value?(c(),d("div",Lv,[n("div",Ov,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Fv,h(A.value.active??0),1)]),n("div",Dv,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Iv,h(A.value.waiting??0),1)]),n("div",Bv,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Nv,h(A.value.delayed??0),1)]),n("div",jv,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Hv,h(A.value.completed??0),1)]),n("div",qv,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Uv,h(A.value.failed??0),1)])])):X("",!0),me(jt,{"model-value":C.value,placeholder:"Filter jobs...",summary:`${w(u).total||L.value.length} jobs`,"onUpdate:modelValue":y},{default:ss(()=>[n("div",Kv,[(c(!0),d(K,null,ye(w(Cu),Z=>(c(),d("button",{key:Z,type:"button",class:M(`ss-dash-btn ${x.value===Z?"ss-dash-active":""}`),onClick:fe=>$(Z)},h(Z.charAt(0).toUpperCase()+Z.slice(1)),11,Vv))),128))])]),_:1},8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",zv,"Loading jobs...")):w(r)?(c(),d("div",Wv,"Jobs/Queue not available")):(c(),d(K,{key:3},[n("div",Jv,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:T,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,Z=>(c(),d("tr",{key:Z.id},[n("td",null,[n("span",Qv,h(Z.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:Z.name},h(Z.name),9,Gv)]),n("td",null,[n("span",{class:M(`ss-dash-badge ss-dash-badge-${w(Tu)(Z.status)}`)},h(Z.status),3)]),n("td",null,[me(Ms,{value:Z.payload||Z.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Yv,h(Z.attempts||Z.attemptsMade||0),1)]),n("td",null,[n("span",Xv,h(Z.duration!==null&&Z.duration!==void 0?w(Dt)(Z.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)},h(w(bt)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)),9,Zv)]),n("td",null,[Z.status==="failed"?(c(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:P.value[Z.id]==="pending"||P.value[Z.id]==="success",onClick:nt(fe=>z(Z.id),["stop"])},h(P.value[Z.id]==="pending"?"...":P.value[Z.id]==="success"?"OK":"Retry"),9,eg)):X("",!0)])]))),128))])],512)):(c(),d("div",tg,"No jobs found"))]),w(u).totalPages>1?(c(),Xe(hs,{key:0,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(g)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ng={style:{position:"relative",flex:1}},lg=["value"],og=["title","onClick"],ag=["viewBox","innerHTML"],ig=["viewBox","innerHTML"],rg=["onClick"],ug={key:0},cg=["title","onClick"],dg=["viewBox","innerHTML"],fg=["viewBox","innerHTML"],hg=["onClick"],pg={key:0},vg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},gg=["onClick"],yg=["title"],mg=["title"],bg=["title","onClick"],_g=["viewBox","innerHTML"],xg=["viewBox","innerHTML"],wg=["onClick"],$g=["title","onClick"],kg=["viewBox","innerHTML"],Sg=["viewBox","innerHTML"],Cg={key:1,style:{color:"var(--ss-dim)"}},Tg={key:3,style:{color:"var(--ss-amber-fg)"}},Eg={key:4,style:{color:"var(--ss-purple-fg)"}},Pg={key:5},Rg=["onClick"],ue="ss-dash",Ag=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),a=de("ss-auth-token",void 0),{data:o,loading:i}=lt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),r=W(""),u=W(""),g=W("app"),p=W(new Set),m=W("Copy JSON"),v=W(new Set),b=W(new Map);let C=null;function x(U){r.value=U,C&&clearTimeout(C),C=setTimeout(()=>{u.value=U},200)}function P(U){return U.target.value}const L=q(()=>o.value??null),A=q(()=>{const U=L.value?.env??{},ae=u.value.toLowerCase();return Object.entries(U).filter(([J,ie])=>{if(!ae)return!0;const Ie=De(ie)?ie.display:ie==null?"":String(ie);return J.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),y=q(()=>{const U=L.value?.app??{},ae=u.value.toLowerCase();return rn(U,"").filter(ie=>{const Ie=De(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),$=q(()=>{const U=L.value?.app??{};return rn(U,"").length}),T=q(()=>{const U=L.value?.app;return!U||typeof U!="object"||Array.isArray(U)||De(U)?[]:Object.keys(U)});function z(U){const ae=new Set(p.value);ae.has(U)?ae.delete(U):ae.add(U),p.value=ae}function te(){if(!L.value)return;const U=g.value==="app"?L.value.app:L.value.env;if(!U)return;const ae=Ju(U);p.value=new Set(ae)}function se(){p.value=new Set}function Z(){if(!L.value)return;const U=g.value==="app"?L.value.app:L.value.env;navigator.clipboard?.writeText(JSON.stringify(U,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function fe(U){const ae=new Set(v.value);ae.has(U)?ae.delete(U):ae.add(U),v.value=ae}function Se(U,ae){b.value.set(U,ae)}function be(U,ae,J){J.stopPropagation(),Qu(U,b.value.get(ae)??null,ue)}function Ce(U){return U!==null&&typeof U=="object"&&!Array.isArray(U)&&!De(U)}function $e(U,ae){return rn(U,ae)}function xe(U,ae){return U.indexOf(ae+".")===0?U.slice(ae.length+1):U}function V(U){return Wu(U)}function j(U){return De(U)?U.display:U==null?"null":String(U)}function k(U){const ae=L.value?.app;return!ae||typeof ae!="object"?null:ae[U]??null}function E(U,ae){return De(U)?ae?U.value:U.display:""}function S(){r.value="",u.value=""}function H(U){return De(U)?U.display:""}const oe=q(()=>Le.eye.elements.join("")),le=q(()=>Le["eye-off"].elements.join(""));return(U,ae)=>(c(),d("div",null,[n("div",{class:M(`${ue}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:M(`${ue}-config-tab${g.value==="app"?` ${ue}-active`:""}`),onClick:ae[0]||(ae[0]=J=>g.value="app")}," App Config ",2),n("button",{type:"button",class:M(`${ue}-config-tab${g.value==="env"?` ${ue}-active`:""}`),onClick:ae[1]||(ae[1]=J=>g.value="env")}," Env ",2),n("div",ng,[n("input",{type:"text",class:M(`${ue}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:ae[2]||(ae[2]=J=>x(P(J)))},null,42,lg),r.value?(c(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:S}," × ")):X("",!0)]),g.value==="app"&&!u.value?(c(),d(K,{key:0},[n("button",{type:"button",class:M(`${ue}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:M(`${ue}-btn`),onClick:se},"Collapse All",2)],64)):X("",!0),n("button",{type:"button",class:M(`${ue}-btn`),onClick:Z},h(m.value),3)],2),w(i)&&!w(o)?(c(),d("div",{key:0,class:M(`${ue}-empty`)},"Loading config...",2)):L.value?g.value==="env"?(c(),d("div",{key:2,class:M(`${ue}-config-table-wrap`)},[n("table",{class:M(`${ue}-table ${ue}-config-env-table`)},[ae[4]||(ae[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(A.value,([J,ie])=>(c(),d("tr",{key:J},[n("td",{class:M(`${ue}-env-key`)},[n("span",{class:M(`${ue}-config-key`)},h(J),3)],2),n("td",{class:M(`${ue}-env-val`)},[w(De)(ie)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie,v.value.has(J))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(Ie=>fe(J),["stop"])},[v.value.has(J)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,ag)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,ig))],10,og)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`)},h(j(ie)),3))],2),n("td",null,[w(De)(ie)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>Se(`env-${J}`,Ie),onClick:Ie=>be(`${J}=${j(ie)}`,`env-${J}`,Ie)}," ⎘ ",10,rg))])]))),128)),A.value.length===0?(c(),d("tr",ug,[...ae[3]||(ae[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):X("",!0)])],2)],2)):u.value?(c(),d("div",{key:3,class:M(`${ue}-config-table-wrap`)},[n("table",{class:M(`${ue}-table`)},[ae[6]||(ae[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(y.value,J=>(c(),d("tr",{key:J.path},[n("td",null,[n("span",{class:M(`${ue}-config-key`),style:{whiteSpace:"nowrap"}},h(J.path),3)]),n("td",null,[w(De)(J.value)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(J.value,v.value.has(J.path))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>fe(J.path),["stop"])},[v.value.has(J.path)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,dg)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,fg))],10,cg)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`),style:Ke({wordBreak:"break-all",color:V(J.value).color})},h(V(J.value).text),7))]),n("td",null,[w(De)(J.value)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>Se(`search-${J.path}`,ie),onClick:ie=>be(`${J.path}: ${w(De)(J.value)?H(J.value):V(J.value).text}`,`search-${J.path}`,ie)}," ⎘ ",10,hg))])]))),128)),y.value.length===0?(c(),d("tr",pg,[...ae[5]||(ae[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):X("",!0)])],2),n("div",vg,h(y.value.length)+" of "+h($.value)+" entries ",1)],2)):(c(),d("div",{key:4,class:M(`${ue}-config-table-wrap`)},[n("div",{class:M(`${ue}-config-sections`)},[(c(!0),d(K,null,ye(T.value,J=>(c(),d("div",{key:J,class:M(`${ue}-config-section`)},[Ce(k(J))?(c(),d(K,{key:0},[n("div",{class:M(`${ue}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>z(J)},[n("span",{class:M(`${ue}-config-toggle`)},h(p.value.has(J)?"▼":"▶"),3),n("span",{class:M(`${ue}-config-key`)},h(J),3),n("span",{class:M(`${ue}-config-count`)},h(w(ua)(k(J)))+" entries ",3)],10,gg),p.value.has(J)?(c(),d("div",{key:0,class:M(`${ue}-config-section-body`)},[n("table",{class:M(`${ue}-table ${ue}-config-inner-table`)},[ae[7]||(ae[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye($e(k(J),J),ie=>(c(),d("tr",{key:ie.path},[n("td",{title:xe(ie.path,J)},[n("span",{class:M(`${ue}-config-key`)},h(xe(ie.path,J)),3)],8,yg),n("td",{title:w(De)(ie.value)?H(ie.value):V(ie.value).text},[w(De)(ie.value)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie.value,v.value.has(ie.path))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(Ie=>fe(ie.path),["stop"])},[v.value.has(ie.path)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,_g)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,xg))],10,bg)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`),style:Ke({color:V(ie.value).color})},h(V(ie.value).text),7))],8,mg),n("td",null,[w(De)(ie.value)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>Se(`inner-${ie.path}`,Ie),onClick:Ie=>be(`${ie.path}: ${V(ie.value).text}`,`inner-${ie.path}`,Ie)}," ⎘ ",10,wg))])]))),128))])],2)],2)):X("",!0)],64)):(c(),d("div",{key:1,class:M(`${ue}-config-section-header ${ue}-config-leaf`),style:{cursor:"default"}},[n("span",{class:M(`${ue}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:M(`${ue}-config-key`)},h(J),3),n("span",{class:M(`${ue}-config-val`),style:{marginLeft:"8px"}},[w(De)(k(J))?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(k(J),v.value.has(J))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>fe(J),["stop"])},[v.value.has(J)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,kg)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,Sg))],10,$g)],2)):k(J)===null||k(J)===void 0?(c(),d("span",Cg,"null")):typeof k(J)=="boolean"?(c(),d("span",{key:2,style:Ke({color:k(J)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(k(J))),5)):typeof k(J)=="number"?(c(),d("span",Tg,h(String(k(J))),1)):Array.isArray(k(J))?(c(),d("span",Eg,h(V(k(J)).text),1)):(c(),d("span",Pg,h(String(k(J))),1))],2),w(De)(k(J))?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>Se(`leaf-${J}`,ie),onClick:ie=>be(`${J}: ${V(k(J)).text}`,`leaf-${J}`,ie)}," ⎘ ",10,Rg))],2))],2))),128))],2)],2)):(c(),d("div",{key:1,class:M(`${ue}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),Mg={key:0,class:"ss-dash-empty"},Lg={key:1,class:"ss-dash-empty"},Og={key:2,class:"ss-dash-empty"},Fg={class:"ss-dash-info-cards"},Dg={class:"ss-dash-info-card-label"},Ig={class:"ss-dash-info-card-value"},Bg={key:0,class:"ss-dash-empty"},Ng={key:1,class:"ss-dash-table"},jg={style:{"font-family":"monospace","font-size":"11px"}},Hg={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},qg={style:{color:"var(--ss-dim)","margin-left":"4px"}},Ug={style:{"font-size":"11px"}},Kg=["onClick"],Vg=["onClick"],zg={key:2,class:"ss-dash-empty"},Wg={key:3,class:"ss-dash-table"},Jg={class:"ss-dash-bar"},Qg={class:"ss-dash-bar-track",style:{"max-width":"120px"}},Gg={key:4,class:"ss-dash-empty"},Yg={key:5,class:"ss-dash-table"},Xg={style:{color:"var(--ss-dim)"}},Zg={key:6,class:"ss-dash-empty"},e1={key:7,class:"ss-dash-table"},t1={style:{color:"var(--ss-dim)","font-size":"11px"}},s1={class:"ss-dash-table"},n1={style:{"font-family":"monospace","font-size":"11px"}},l1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},o1={style:{"font-family":"monospace","font-size":"11px"}},a1={class:"ss-dash-table"},i1={class:"ss-dash-table"},r1={style:{"font-family":"monospace","font-size":"11px"}},u1={style:{"font-family":"monospace","font-size":"11px"}},c1={style:{"font-family":"monospace","font-size":"11px"}},d1={style:{"font-size":"11px"}},f1=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),a=de("ss-auth-token",void 0),o=W(null),i=W(!0),r=W(null),u=W(new Set),g=rl(s,a);let p=null;async function m(){try{const A=await g().fetch(`${l}/diagnostics`);o.value=A,r.value=null,i.value=!1}catch(A){if(A instanceof nn){r.value=A,i.value=!1,p&&(clearInterval(p),p=null);return}r.value=A instanceof Error?A:new Error(String(A)),i.value=!1}}Ot(()=>{i.value=!0,r.value=null,m(),p=setInterval(m,Zo)}),St(()=>{p&&clearInterval(p)}),ut(t,()=>{m()});function v(A){u.value.has(A)?u.value.delete(A):u.value.add(A)}function b(A){const y=zu(A);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function C(A){return A.debounceMs!==void 0?`${Dt(A.debounceMs)} (debounce)`:A.intervalMs!==void 0?Dt(A.intervalMs):"-"}const x=q(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([A,y])=>({name:A.charAt(0).toUpperCase()+A.slice(1),...y,percent:Uu(y.current,y.max)})):[]),P=q(()=>o.value?.timers?Object.entries(o.value.timers).map(([A,y])=>({key:A,label:Iu(A),...y,interval:C(y)})):[]),L=q(()=>{if(!o.value)return[];const A=[];if(o.value.transmit&&A.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,$]of Object.entries(o.value.integrations))A.push({key:y,label:Nu(y),status:ju($),details:Hu(y,$)});return A});return(A,y)=>(c(),d("div",null,[i.value&&!o.value?(c(),d("div",Mg,"Loading diagnostics...")):r.value&&!o.value?(c(),d("div",Lg,"Error: "+h(r.value.message),1)):o.value?(c(),d(K,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",Fg,[(c(!0),d(K,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(fu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],$=>(c(),d("div",{key:$.label,class:"ss-dash-info-card"},[n("span",Dg,h($.label),1),n("span",Ig,h($.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(c(),d("table",Ng,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(o.value.collectors,$=>(c(),d("tr",{key:$.name},[n("td",null,[n("span",jg,h($.name),1),$.label&&$.label!==$.name?(c(),d("span",Hg,h($.label),1)):X("",!0)]),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.status)])},null,2),_e(" "+h($.status),1)]),n("td",{style:Ke($.lastError?{color:"var(--ss-red-fg)"}:{})},[$.lastError?(c(),d(K,{key:0},[_e(h($.lastError)+" ",1),n("span",qg,h(w(bt)($.lastErrorAt??0)),1)],64)):(c(),d(K,{key:1},[_e("-")],64))],4),n("td",Ug,[Object.keys($.config||{}).length?(c(!0),d(K,{key:0},ye(w(qu)($.config),T=>(c(),d("span",{key:T.key,style:{"margin-right":"8px"}},[_e(h(T.key)+"=",1),T.secret&&!u.value.has(`collector-${$.name}-${T.key}`)?(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:z=>v(`collector-${$.name}-${T.key}`)},"••••••••",8,Kg)):(c(),d(K,{key:1},[n("span",null,h(T.value),1),T.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:z=>v(`collector-${$.name}-${T.key}`)}," Hide ",8,Vg)):X("",!0)],64))]))),128)):(c(),d(K,{key:1},[_e("-")],64))])]))),128))])])):(c(),d("div",Bg,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),x.value.length?(c(),d("table",Wg,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(x.value,$=>(c(),d("tr",{key:$.name},[n("td",null,h($.name),1),n("td",null,h($.current.toLocaleString())+" / "+h($.max.toLocaleString()),1),n("td",null,[n("div",Jg,[n("div",Qg,[n("div",{class:M(["ss-dash-bar-fill",$.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:$.percent+"%"})},null,6)]),n("span",{class:M(["ss-dash-bar-pct",$.percent>=100?"ss-dash-bar-pct-warn":""])},h($.percent)+"%",3)])])]))),128))])])):(c(),d("div",zg,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),P.value.length?(c(),d("table",Yg,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(P.value,$=>(c(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.active?"active":"inactive")])},null,2),_e(" "+h($.active?"active":"inactive"),1)]),n("td",Xg,h($.interval),1)]))),128))])])):(c(),d("div",Gg,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),L.value.length?(c(),d("table",e1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,$=>(c(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.status)])},null,2),_e(" "+h($.status),1)]),n("td",t1,h($.details),1)]))),128))])])):(c(),d("div",Zg,"No integration data")),o.value.storage?(c(),d(K,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",s1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:M(["ss-dash-dot",b(o.value.storage.ready?"ready":"unavailable")])},null,2),_e(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",n1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,h(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(c(),d("table",l1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(o.value.storage.tables,$=>(c(),d("tr",{key:$.name},[n("td",o1,h($.name),1),n("td",null,h($.rowCount.toLocaleString()),1)]))),128))])])):X("",!0)],64)):X("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",a1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",i1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",r1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",u1,[u.value.has("cfg-debugEndpoint")?(c(),d(K,{key:1},[_e(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=$=>v("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=$=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",c1,[u.value.has("cfg-dbPath")?(c(),d(K,{key:1},[_e(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=$=>v("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=$=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",d1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",Og,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
1
+ (function(){"use strict";function pn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Me={},Wt=[],ht=()=>{},hl=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,gn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},bi=Object.prototype.hasOwnProperty,Ce=(e,t)=>bi.call(e,t),pe=Array.isArray,Jt=e=>vs(e)==="[object Map]",pl=e=>vs(e)==="[object Set]",vl=e=>vs(e)==="[object Date]",ve=e=>typeof e=="function",Fe=e=>typeof e=="string",it=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",gl=e=>(Ee(e)||ve(e))&&ve(e.then)&&ve(e.catch),yl=Object.prototype.toString,vs=e=>yl.call(e),_i=e=>vs(e).slice(8,-1),ml=e=>vs(e)==="[object Object]",yn=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gs=pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},xi=/-\w/g,tt=Os(e=>e.replace(xi,t=>t.slice(1).toUpperCase())),wi=/\B([A-Z])/g,Pt=Os(e=>e.replace(wi,"-$1").toLowerCase()),Ds=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),mn=Os(e=>e?`on${Ds(e)}`:""),Rt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},bl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},$i=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ki=e=>{const t=Fe(e)?Number(e):NaN;return isNaN(t)?e:t};let _l;const Is=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],i=Fe(l)?Ei(l):Ke(l);if(i)for(const o in i)t[o]=i[o]}return t}else if(Fe(e)||Ee(e))return e}const Si=/;(?![^(]*\))/g,Ci=/:([^]+)/,Ti=/\/\*[^]*?\*\//g;function Ei(e){const t={};return e.replace(Ti,"").split(Si).forEach(s=>{if(s){const l=s.split(Ci);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function L(e){let t="";if(Fe(e))t=e;else if(pe(e))for(let s=0;s<e.length;s++){const l=L(e[s]);l&&(t+=l+" ")}else if(Ee(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Pi=pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xl(e){return!!e||e===""}function Ri(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=_n(e[l],t[l]);return s}function _n(e,t){if(e===t)return!0;let s=vl(e),l=vl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=it(e),l=it(t),s||l)return e===t;if(s=pe(e),l=pe(t),s||l)return s&&l?Ri(e,t):!1;if(s=Ee(e),l=Ee(t),s||l){if(!s||!l)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const r=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(r&&!c||!r&&c||!_n(e[a],t[a]))return!1}}return String(e)===String(t)}const wl=e=>!!(e&&e.__v_isRef===!0),h=e=>Fe(e)?e:e==null?"":pe(e)||Ee(e)&&(e.toString===yl||!ve(e.toString))?wl(e)?h(e.value):JSON.stringify(e,$l,2):String(e),$l=(e,t)=>wl(t)?$l(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,i],o)=>(s[xn(l,o)+" =>"]=i,s),{})}:pl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>xn(s))}:it(t)?xn(t):Ee(t)&&!pe(t)&&!ml(t)?String(t):t,xn=(e,t="")=>{var s;return it(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Qe;try{return Qe=this,t()}finally{Qe=s}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ai(){return Qe}let Ae;const wn=new WeakSet;class kl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,wn.has(this)&&(wn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Cl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),Tl(this);const t=Ae,s=at;Ae=this,at=!0;try{return this.fn()}finally{El(this),Ae=t,at=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Cn(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sn(this)&&this.run()}get dirty(){return Sn(this)}}let Sl=0,ys,ms;function Cl(e,t=!1){if(e.flags|=8,t){e.next=ms,ms=e;return}e.next=ys,ys=e}function $n(){Sl++}function kn(){if(--Sl>0)return;if(ms){let t=ms;for(ms=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ys;){let t=ys;for(ys=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function Tl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function El(e){let t,s=e.depsTail,l=s;for(;l;){const i=l.prevDep;l.version===-1?(l===s&&(s=i),Cn(l),Li(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=s}function Sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Pl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Pl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sn(e))))return;e.flags|=2;const t=e.dep,s=Ae,l=at;Ae=e,at=!0;try{Tl(e);const i=e.fn(e._value);(t.version===0||Rt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ae=s,at=l,El(e),e.flags&=-3}}function Cn(e,t=!1){const{dep:s,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Cn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let at=!0;const Rl=[];function pt(){Rl.push(at),at=!1}function vt(){const e=Rl.pop();at=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ae;Ae=void 0;try{t()}finally{Ae=s}}}let bs=0;class Fi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ae||!at||Ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ae)s=this.activeLink=new Fi(Ae,this),Ae.deps?(s.prevDep=Ae.depsTail,Ae.depsTail.nextDep=s,Ae.depsTail=s):Ae.deps=Ae.depsTail=s,Al(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Ae.depsTail,s.nextDep=void 0,Ae.depsTail.nextDep=s,Ae.depsTail=s,Ae.deps===s&&(Ae.deps=l)}return s}trigger(t){this.version++,bs++,this.notify(t)}notify(t){$n();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{kn()}}}function Al(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Al(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const En=new WeakMap,Ht=Symbol(""),Pn=Symbol(""),_s=Symbol("");function Ue(e,t,s){if(at&&Ae){let l=En.get(e);l||En.set(e,l=new Map);let i=l.get(s);i||(l.set(s,i=new Tn),i.map=l,i.key=s),i.track()}}function xt(e,t,s,l,i,o){const a=En.get(e);if(!a){bs++;return}const r=c=>{c&&c.trigger()};if($n(),t==="clear")a.forEach(r);else{const c=pe(e),g=c&&yn(s);if(c&&s==="length"){const p=Number(l);a.forEach((m,v)=>{(v==="length"||v===_s||!it(v)&&v>=p)&&r(m)})}else switch((s!==void 0||a.has(void 0))&&r(a.get(s)),g&&r(a.get(_s)),t){case"add":c?g&&r(a.get("length")):(r(a.get(Ht)),Jt(e)&&r(a.get(Pn)));break;case"delete":c||(r(a.get(Ht)),Jt(e)&&r(a.get(Pn)));break;case"set":Jt(e)&&r(a.get(Ht));break}}kn()}function Qt(e){const t=$e(e);return t===e?t:(Ue(t,"iterate",_s),st(e)?t:t.map(rt))}function Bs(e){return Ue(e=$e(e),"iterate",_s),e}function Mt(e,t){return $t(e)?Yt(Ut(e)?rt(t):t):rt(t)}const Oi={__proto__:null,[Symbol.iterator](){return Rn(this,Symbol.iterator,e=>Mt(this,e))},concat(...e){return Qt(this).concat(...e.map(t=>pe(t)?Qt(t):t))},entries(){return Rn(this,"entries",e=>(e[1]=Mt(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,s=>s.map(l=>Mt(this,l)),arguments)},find(e,t){return wt(this,"find",e,t,s=>Mt(this,s),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,s=>Mt(this,s),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return Qt(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return Qt(this).toReversed()},toSorted(e){return Qt(this).toSorted(e)},toSpliced(...e){return Qt(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return Rn(this,"values",e=>Mt(this,e))}};function Rn(e,t,s){const l=Bs(e),i=l[t]();return l!==e&&!st(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Di=Array.prototype;function wt(e,t,s,l,i,o){const a=Bs(e),r=a!==e&&!st(e),c=a[t];if(c!==Di[t]){const m=c.apply(e,o);return r?rt(m):m}let g=s;a!==e&&(r?g=function(m,v){return s.call(this,Mt(e,m),v,e)}:s.length>2&&(g=function(m,v){return s.call(this,m,v,e)}));const p=c.call(a,g,l);return r&&i?i(p):p}function Ll(e,t,s,l){const i=Bs(e);let o=s;return i!==e&&(st(e)?s.length>3&&(o=function(a,r,c){return s.call(this,a,r,c,e)}):o=function(a,r,c){return s.call(this,a,Mt(e,r),c,e)}),i[t](o,...l)}function Mn(e,t,s){const l=$e(e);Ue(l,"iterate",_s);const i=l[t](...s);return(i===-1||i===!1)&&Fn(s[0])?(s[0]=$e(s[0]),l[t](...s)):i}function xs(e,t,s=[]){pt(),$n();const l=$e(e)[t].apply(e,s);return kn(),vt(),l}const Ii=pn("__proto__,__v_isRef,__isVue"),Fl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Bi(e){it(e)||(e=String(e));const t=$e(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Ol{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(i?o?Hl:jl:o?Nl:Bl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const a=pe(t);if(!i){let c;if(a&&(c=Oi[s]))return c;if(s==="hasOwnProperty")return Bi}const r=Reflect.get(t,s,je(t)?t:l);if((it(s)?Fl.has(s):Ii(s))||(i||Ue(t,"get",s),o))return r;if(je(r)){const c=a&&yn(s)?r:r.value;return i&&Ee(c)?Ln(c):c}return Ee(r)?i?Ln(r):Gt(r):r}}class Dl extends Ol{constructor(t=!1){super(!1,t)}set(t,s,l,i){let o=t[s];const a=pe(t)&&yn(s);if(!this._isShallow){const g=$t(o);if(!st(l)&&!$t(l)&&(o=$e(o),l=$e(l)),!a&&je(o)&&!je(l))return g||(o.value=l),!0}const r=a?Number(s)<t.length:Ce(t,s),c=Reflect.set(t,s,l,je(t)?t:i);return t===$e(i)&&(r?Rt(l,o)&&xt(t,"set",s,l):xt(t,"add",s,l)),c}deleteProperty(t,s){const l=Ce(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&l&&xt(t,"delete",s,void 0),i}has(t,s){const l=Reflect.has(t,s);return(!it(s)||!Fl.has(s))&&Ue(t,"has",s),l}ownKeys(t){return Ue(t,"iterate",pe(t)?"length":Ht),Reflect.ownKeys(t)}}class Il extends Ol{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ni=new Dl,ji=new Il,Hi=new Dl(!0),Ui=new Il(!0),An=e=>e,Ns=e=>Reflect.getPrototypeOf(e);function qi(e,t,s){return function(...l){const i=this.__v_raw,o=$e(i),a=Jt(o),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,g=i[e](...l),p=s?An:t?Yt:rt;return!t&&Ue(o,"iterate",c?Pn:Ht),Ne(Object.create(g),{next(){const{value:m,done:v}=g.next();return v?{value:m,done:v}:{value:r?[p(m[0]),p(m[1])]:p(m),done:v}}})}}function js(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ki(e,t){const s={get(i){const o=this.__v_raw,a=$e(o),r=$e(i);e||(Rt(i,r)&&Ue(a,"get",i),Ue(a,"get",r));const{has:c}=Ns(a),g=t?An:e?Yt:rt;if(c.call(a,i))return g(o.get(i));if(c.call(a,r))return g(o.get(r));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Ue($e(i),"iterate",Ht),i.size},has(i){const o=this.__v_raw,a=$e(o),r=$e(i);return e||(Rt(i,r)&&Ue(a,"has",i),Ue(a,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const a=this,r=a.__v_raw,c=$e(r),g=t?An:e?Yt:rt;return!e&&Ue(c,"iterate",Ht),r.forEach((p,m)=>i.call(o,g(p),g(m),a))}};return Ne(s,e?{add:js("add"),set:js("set"),delete:js("delete"),clear:js("clear")}:{add(i){!t&&!st(i)&&!$t(i)&&(i=$e(i));const o=$e(this);return Ns(o).has.call(o,i)||(o.add(i),xt(o,"add",i,i)),this},set(i,o){!t&&!st(o)&&!$t(o)&&(o=$e(o));const a=$e(this),{has:r,get:c}=Ns(a);let g=r.call(a,i);g||(i=$e(i),g=r.call(a,i));const p=c.call(a,i);return a.set(i,o),g?Rt(o,p)&&xt(a,"set",i,o):xt(a,"add",i,o),this},delete(i){const o=$e(this),{has:a,get:r}=Ns(o);let c=a.call(o,i);c||(i=$e(i),c=a.call(o,i)),r&&r.call(o,i);const g=o.delete(i);return c&&xt(o,"delete",i,void 0),g},clear(){const i=$e(this),o=i.size!==0,a=i.clear();return o&&xt(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=qi(i,e,t)}),s}function Hs(e,t){const s=Ki(e,t);return(l,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Ce(s,i)&&i in l?s:l,i,o)}const Vi={get:Hs(!1,!1)},zi={get:Hs(!1,!0)},Wi={get:Hs(!0,!1)},Ji={get:Hs(!0,!0)},Bl=new WeakMap,Nl=new WeakMap,jl=new WeakMap,Hl=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(_i(e))}function Gt(e){return $t(e)?e:Us(e,!1,Ni,Vi,Bl)}function Yi(e){return Us(e,!1,Hi,zi,Nl)}function Ln(e){return Us(e,!0,ji,Wi,jl)}function q1(e){return Us(e,!0,Ui,Ji,Hl)}function Us(e,t,s,l,i){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Gi(e);if(o===0)return e;const a=i.get(e);if(a)return a;const r=new Proxy(e,o===2?l:s);return i.set(e,r),r}function Ut(e){return $t(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Fn(e){return e?!!e.__v_raw:!1}function $e(e){const t=e&&e.__v_raw;return t?$e(t):e}function Xi(e){return!Ce(e,"__v_skip")&&Object.isExtensible(e)&&bl(e,"__v_skip",!0),e}const rt=e=>Ee(e)?Gt(e):e,Yt=e=>Ee(e)?Ln(e):e;function je(e){return e?e.__v_isRef===!0:!1}function K(e){return Zi(e,!1)}function Zi(e,t){return je(e)?e:new ea(e,t)}class ea{constructor(t,s){this.dep=new Tn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$e(t),this._value=s?t:rt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||$t(t);t=l?t:$e(t),Rt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function x(e){return je(e)?e.value:e}const ta={get:(e,t,s)=>t==="__v_raw"?e:x(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const i=e[t];return je(i)&&!je(s)?(i.value=s,!0):Reflect.set(e,t,s,l)}};function Ul(e){return Ut(e)?e:new Proxy(e,ta)}class sa{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Tn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Cl(this,!0),!0}get value(){const t=this.dep.track();return Pl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function na(e,t,s=!1){let l,i;return ve(e)?l=e:(l=e.get,i=e.set),new sa(l,i,s)}const qs={},Ks=new WeakMap;let qt;function la(e,t=!1,s=qt){if(s){let l=Ks.get(s);l||Ks.set(s,l=[]),l.push(e)}}function oa(e,t,s=Me){const{immediate:l,deep:i,once:o,scheduler:a,augmentJob:r,call:c}=s,g=w=>i?w:st(w)||i===!1||i===0?At(w,1):At(w);let p,m,v,_,C=!1,$=!1;if(je(e)?(m=()=>e.value,C=st(e)):Ut(e)?(m=()=>g(e),C=!0):pe(e)?($=!0,C=e.some(w=>Ut(w)||st(w)),m=()=>e.map(w=>{if(je(w))return w.value;if(Ut(w))return g(w);if(ve(w))return c?c(w,2):w()})):ve(e)?t?m=c?()=>c(e,2):e:m=()=>{if(v){pt();try{v()}finally{vt()}}const w=qt;qt=p;try{return c?c(e,3,[_]):e(_)}finally{qt=w}}:m=ht,t&&i){const w=m,S=i===!0?1/0:i;m=()=>At(w(),S)}const T=Ai(),F=()=>{p.stop(),T&&T.active&&gn(T.effects,p)};if(o&&t){const w=t;t=(...S)=>{w(...S),F()}}let R=$?new Array(e.length).fill(qs):qs;const y=w=>{if(!(!(p.flags&1)||!p.dirty&&!w))if(t){const S=p.run();if(i||C||($?S.some((W,te)=>Rt(W,R[te])):Rt(S,R))){v&&v();const W=qt;qt=p;try{const te=[S,R===qs?void 0:$&&R[0]===qs?[]:R,_];R=S,c?c(t,3,te):t(...te)}finally{qt=W}}}else p.run()};return r&&r(y),p=new kl(m),p.scheduler=a?()=>a(y,!1):y,_=w=>la(w,!1,p),v=p.onStop=()=>{const w=Ks.get(p);if(w){if(c)c(w,4);else for(const S of w)S();Ks.delete(p)}},t?l?y(!0):R=p.run():a?a(y.bind(null,!0),!0):p.run(),F.pause=p.pause.bind(p),F.resume=p.resume.bind(p),F.stop=F,F}function At(e,t=1/0,s){if(t<=0||!Ee(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))At(e.value,t,s);else if(pe(e))for(let l=0;l<e.length;l++)At(e[l],t,s);else if(pl(e)||Jt(e))e.forEach(l=>{At(l,t,s)});else if(ml(e)){for(const l in e)At(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&At(e[l],t,s)}return e}const ws=[];let On=!1;function K1(e,...t){if(On)return;On=!0,pt();const s=ws.length?ws[ws.length-1].component:null,l=s&&s.appContext.config.warnHandler,i=ia();if(l)Xt(l,s,11,[e+t.map(o=>{var a,r;return(r=(a=o.toString)==null?void 0:a.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
2
+ `),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
3
+ `,...aa(i)),console.warn(...o)}vt(),On=!1}function ia(){let e=ws[ws.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const l=e.component&&e.component.parent;e=l&&l.vnode}return t}function aa(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
4
+ `],...ra(s))}),t}function ra({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,i=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[i,...ua(e.props),o]:[i+o]}function ua(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...ql(l,e[l]))}),s.length>3&&t.push(" ..."),t}function ql(e,t,s){return Fe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=ql(e,$e(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$e(t),s?t:[`${e}=`,t])}function Xt(e,t,s,l){try{return l?e(...l):e()}catch(i){Zt(i,t,s)}}function gt(e,t,s,l){if(ve(e)){const i=Xt(e,t,s,l);return i&&gl(i)&&i.catch(o=>{Zt(o,t,s)}),i}if(pe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(gt(e[o],t,s,l));return i}}function Zt(e,t,s,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Me;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,c,g)===!1)return}r=r.parent}if(o){pt(),Xt(o,null,10,[e,c,g]),vt();return}}ca(e,s,i,l,a)}function ca(e,t,s,l=!0,i=!1){if(i)throw e;console.error(e)}const Ve=[];let yt=-1;const es=[];let Lt=null,ts=0;const Kl=Promise.resolve();let Vs=null;function Dn(e){const t=Vs||Kl;return e?t.then(this?e.bind(this):e):t}function da(e){let t=yt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,i=Ve[l],o=$s(i);o<e||o===e&&i.flags&2?t=l+1:s=l}return t}function In(e){if(!(e.flags&1)){const t=$s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=$s(s)?Ve.push(e):Ve.splice(da(t),0,e),e.flags|=1,Vl()}}function Vl(){Vs||(Vs=Kl.then(Jl))}function Bn(e){pe(e)?es.push(...e):Lt&&e.id===-1?Lt.splice(ts+1,0,e):e.flags&1||(es.push(e),e.flags|=1),Vl()}function zl(e,t,s=yt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Wl(e){if(es.length){const t=[...new Set(es)].sort((s,l)=>$s(s)-$s(l));if(es.length=0,Lt){Lt.push(...t);return}for(Lt=t,ts=0;ts<Lt.length;ts++){const s=Lt[ts];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Lt=null,ts=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(yt=0;yt<Ve.length;yt++){const t=Ve[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Ve.length;yt++){const t=Ve[yt];t&&(t.flags&=-2)}yt=-1,Ve.length=0,Wl(),Vs=null,(Ve.length||es.length)&&Jl()}}let ze=null,Ql=null;function zs(e){const t=ze;return ze=e,Ql=e&&e.type.__scopeId||null,t}function ss(e,t=ze,s){if(!t||e._n)return e;const l=(...i)=>{l._d&&en(-1);const o=zs(t);let a;try{a=e(...i)}finally{zs(o),l._d&&en(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Kt(e,t,s,l){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const r=i[a];o&&(r.oldValue=o[a].value);let c=r.dir[l];c&&(pt(),gt(c,s,8,[e.el,r,e,t]),vt())}}function ns(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=mr();if(l||os){let i=os?os._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&ve(t)?t.call(l&&l.proxy):t}}const fa=Symbol.for("v-scx"),ha=()=>de(fa);function ut(e,t,s){return Gl(e,t,s)}function Gl(e,t,s=Me){const{immediate:l,deep:i,flush:o,once:a}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(cs){if(o==="sync"){const _=ha();g=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=ht,_.resume=ht,_.pause=ht,_}}const p=He;r.call=(_,C,$)=>gt(_,p,C,$);let m=!1;o==="post"?r.scheduler=_=>{Je(_,p&&p.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(_,C)=>{C?_():In(_)}),r.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,p&&(_.id=p.uid,_.i=p))};const v=oa(e,t,r);return cs&&(g?g.push(v):c&&v()),v}function pa(e,t,s){const l=this.proxy,i=Fe(e)?e.includes(".")?Yl(l,e):()=>l[e]:e.bind(l,l);let o;ve(t)?o=t:(o=t.handler,s=t);const a=Ps(this),r=Gl(i,o.bind(l),s);return a(),r}function Yl(e,t){const s=t.split(".");return()=>{let l=e;for(let i=0;i<s.length&&l;i++)l=l[s[i]];return l}}const va=Symbol("_vte"),ga=e=>e.__isTeleport,ya=Symbol("_leaveCb");function Nn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t){return ve(e)?Ne({name:e.name},t,{setup:e}):e}function jn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ws=new WeakMap;function ks(e,t,s,l,i=!1){if(pe(e)){e.forEach(($,T)=>ks($,t&&(pe(t)?t[T]:t),s,l,i));return}if(ls(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ks(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?tl(l.component):l.el,a=i?null:o,{i:r,r:c}=e,g=t&&t.r,p=r.refs===Me?r.refs={}:r.refs,m=r.setupState,v=$e(m),_=m===Me?hl:$=>Xl(p,$)?!1:Ce(v,$),C=($,T)=>!(T&&Xl(p,T));if(g!=null&&g!==c){if(Zl(t),Fe(g))p[g]=null,_(g)&&(m[g]=null);else if(je(g)){const $=t;C(g,$.k)&&(g.value=null),$.k&&(p[$.k]=null)}}if(ve(c))Xt(c,r,12,[a,p]);else{const $=Fe(c),T=je(c);if($||T){const F=()=>{if(e.f){const R=$?_(c)?m[c]:p[c]:C()||!e.k?c.value:p[e.k];if(i)pe(R)&&gn(R,o);else if(pe(R))R.includes(o)||R.push(o);else if($)p[c]=[o],_(c)&&(m[c]=p[c]);else{const y=[o];C(c,e.k)&&(c.value=y),e.k&&(p[e.k]=y)}}else $?(p[c]=a,_(c)&&(m[c]=a)):T&&(C(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const R=()=>{F(),Ws.delete(e)};R.id=-1,Ws.set(e,R),Je(R,s)}else Zl(e),F()}}}function Zl(e){const t=Ws.get(e);t&&(t.flags|=8,Ws.delete(e))}const eo=e=>e.nodeType===8;Is().requestIdleCallback,Is().cancelIdleCallback;function ma(e,t){if(eo(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(eo(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ls=e=>!!e.type.__asyncLoader;function ct(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:i=200,hydrate:o,timeout:a,suspensible:r=!0,onError:c}=e;let g=null,p,m=0;const v=()=>(m++,g=null,_()),_=()=>{let C;return g||(C=g=t().catch($=>{if($=$ instanceof Error?$:new Error(String($)),c)return new Promise((T,F)=>{c($,()=>T(v()),()=>F($),m+1)});throw $}).then($=>C!==g&&g?g:($&&($.__esModule||$[Symbol.toStringTag]==="Module")&&($=$.default),p=$,$)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:_,__asyncHydrate(C,$,T){let F=!1;($.bu||($.bu=[])).push(()=>F=!0);const R=()=>{F||T()},y=o?()=>{const w=o(R,S=>ma(C,S));w&&($.bum||($.bum=[])).push(w)}:R;p?y():_().then(()=>!$.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const C=He;if(jn(C),p)return()=>Js(p,C);const $=y=>{g=null,Zt(y,C,13,!l)};if(r&&C.suspense||cs)return _().then(y=>()=>Js(y,C)).catch(y=>($(y),()=>l?me(l,{error:y}):null));const T=K(!1),F=K(),R=K(!!i);return i&&setTimeout(()=>{R.value=!1},i),a!=null&&setTimeout(()=>{if(!T.value&&!F.value){const y=new Error(`Async component timed out after ${a}ms.`);$(y),F.value=y}},a),_().then(()=>{T.value=!0,C.parent&&Hn(C.parent.vnode)&&C.parent.update()}).catch(y=>{$(y),F.value=y}),()=>{if(T.value&&p)return Js(p,C);if(F.value&&l)return me(l,{error:F.value});if(s&&!R.value)return Js(s,C)}}})}function Js(e,t){const{ref:s,props:l,children:i,ce:o}=t.vnode,a=me(e,l,i);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const Hn=e=>e.type.__isKeepAlive;function ba(e,t){to(e,"a",t)}function _a(e,t){to(e,"da",t)}function to(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qs(t,l,s),s){let i=s.parent;for(;i&&i.parent;)Hn(i.parent.vnode)&&xa(l,t,s,i),i=i.parent}}function xa(e,t,s,l){const i=Qs(t,e,l,!0);St(()=>{gn(l[t],i)},s)}function Qs(e,t,s=He,l=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{pt();const r=Ps(s),c=gt(t,s,e,a);return r(),vt(),c});return l?i.unshift(o):i.push(o),o}}const kt=e=>(t,s=He)=>{(!cs||e==="sp")&&Qs(e,(...l)=>t(...l),s)},wa=kt("bm"),Ft=kt("m"),$a=kt("bu"),ka=kt("u"),so=kt("bum"),St=kt("um"),Sa=kt("sp"),Ca=kt("rtg"),Ta=kt("rtc");function Ea(e,t=He){Qs("ec",e,t)}const Pa="components",no=Symbol.for("v-ndc");function Ra(e){return Fe(e)?Ma(Pa,e,!1)||e:e||no}function Ma(e,t,s=!0,l=!1){const i=ze||He;if(i){const o=i.type;{const r=jo(o,!1);if(r&&(r===t||r===tt(t)||r===Ds(tt(t))))return o}const a=lo(i[e]||o[e],t)||lo(i.appContext[e],t);return!a&&l?o:a}}function lo(e,t){return e&&(e[t]||e[tt(t)]||e[Ds(tt(t))])}function ye(e,t,s,l){let i;const o=s,a=pe(e);if(a||Fe(e)){const r=a&&Ut(e);let c=!1,g=!1;r&&(c=!st(e),g=$t(e),e=Bs(e)),i=new Array(e.length);for(let p=0,m=e.length;p<m;p++)i[p]=t(c?g?Yt(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if(Ee(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const p=r[c];i[c]=t(e[p],p,c,o)}}else i=[];return i}function Aa(e,t,s={},l,i){if(ze.ce||ze.parent&&ls(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(q,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&oo(o(s)),r=s.key||a&&a.key,c=Xe(q,{key:(r&&!it(r)?r:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function oo(e){return e.some(t=>rs(t)?!(t.type===dt||t.type===q&&!oo(t.children)):!0)?e:null}const Un=e=>e?Bo(e)?tl(e):Un(e.parent):null,Ss=Ne(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uo(e),$forceUpdate:e=>e.f||(e.f=()=>{In(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>pa.bind(e)}),qn=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ce(e,t),La={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:o,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(qn(l,t))return a[t]=1,l[t];if(i!==Me&&Ce(i,t))return a[t]=2,i[t];if(Ce(o,t))return a[t]=3,o[t];if(s!==Me&&Ce(s,t))return a[t]=4,s[t];Kn&&(a[t]=0)}}const g=Ss[t];let p,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Me&&Ce(s,t))return a[t]=4,s[t];if(m=c.config.globalProperties,Ce(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:i,ctx:o}=e;return qn(i,t)?(i[t]=s,!0):l!==Me&&Ce(l,t)?(l[t]=s,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:i,props:o,type:a}},r){let c;return!!(s[r]||e!==Me&&r[0]!=="$"&&Ce(e,r)||qn(t,r)||Ce(o,r)||Ce(l,r)||Ce(Ss,r)||Ce(i.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ce(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function io(e){return pe(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Kn=!0;function Fa(e){const t=uo(e),s=e.proxy,l=e.ctx;Kn=!1,t.beforeCreate&&ao(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:r,provide:c,inject:g,created:p,beforeMount:m,mounted:v,beforeUpdate:_,updated:C,activated:$,deactivated:T,beforeDestroy:F,beforeUnmount:R,destroyed:y,unmounted:w,render:S,renderTracked:W,renderTriggered:te,errorCaptured:se,serverPrefetch:ee,expose:ge,inheritAttrs:Te,components:_e,directives:Pe,filters:ke}=t;if(g&&Oa(g,l,null),a)for(const j in a){const k=a[j];ve(k)&&(l[j]=k.bind(s))}if(i){const j=i.call(s,s);Ee(j)&&(e.data=Gt(j))}if(Kn=!0,o)for(const j in o){const k=o[j],E=ve(k)?k.bind(s,s):ve(k.get)?k.get.bind(s,s):ht,M=!ve(k)&&ve(k.set)?k.set.bind(s):ht,X=H({get:E,set:M});Object.defineProperty(l,j,{enumerable:!0,configurable:!0,get:()=>X.value,set:ue=>X.value=ue})}if(r)for(const j in r)ro(r[j],l,s,j);if(c){const j=ve(c)?c.call(s):c;Reflect.ownKeys(j).forEach(k=>{ns(k,j[k])})}p&&ao(p,e,"c");function J(j,k){pe(k)?k.forEach(E=>j(E.bind(s))):k&&j(k.bind(s))}if(J(wa,m),J(Ft,v),J($a,_),J(ka,C),J(ba,$),J(_a,T),J(Ea,se),J(Ta,W),J(Ca,te),J(so,R),J(St,w),J(Sa,ee),pe(ge))if(ge.length){const j=e.exposed||(e.exposed={});ge.forEach(k=>{Object.defineProperty(j,k,{get:()=>s[k],set:E=>s[k]=E,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ht&&(e.render=S),Te!=null&&(e.inheritAttrs=Te),_e&&(e.components=_e),Pe&&(e.directives=Pe),ee&&jn(e)}function Oa(e,t,s=ht){pe(e)&&(e=Vn(e));for(const l in e){const i=e[l];let o;Ee(i)?"default"in i?o=de(i.from||l,i.default,!0):o=de(i.from||l):o=de(i),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function ao(e,t,s){gt(pe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ro(e,t,s,l){let i=l.includes(".")?Yl(s,l):()=>s[l];if(Fe(e)){const o=t[e];ve(o)&&ut(i,o)}else if(ve(e))ut(i,e.bind(s));else if(Ee(e))if(pe(e))e.forEach(o=>ro(o,t,s,l));else{const o=ve(e.handler)?e.handler.bind(s):t[e.handler];ve(o)&&ut(i,o,e)}}function uo(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,r=o.get(t);let c;return r?c=r:!i.length&&!s&&!l?c=t:(c={},i.length&&i.forEach(g=>Gs(c,g,a,!0)),Gs(c,t,a)),Ee(t)&&o.set(t,c),c}function Gs(e,t,s,l=!1){const{mixins:i,extends:o}=t;o&&Gs(e,o,s,!0),i&&i.forEach(a=>Gs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const r=Da[a]||s&&s[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Da={data:co,props:fo,emits:fo,methods:Cs,computed:Cs,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:Cs,directives:Cs,watch:Ba,provide:co,inject:Ia};function co(e,t){return t?e?function(){return Ne(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Ia(e,t){return Cs(Vn(e),Vn(t))}function Vn(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ne(Object.create(null),e,t):t}function fo(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:Ne(Object.create(null),io(e),io(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function ho(){return{app:null,config:{isNativeTag:hl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Na=0;function ja(e,t){return function(l,i=null){ve(l)||(l=Ne({},l)),i!=null&&!Ee(i)&&(i=null);const o=ho(),a=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Na++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Cr,get config(){return o.config},set config(p){},use(p,...m){return a.has(p)||(p&&ve(p.install)?(a.add(p),p.install(g,...m)):ve(p)&&(a.add(p),p(g,...m))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,m){return m?(o.components[p]=m,g):o.components[p]},directive(p,m){return m?(o.directives[p]=m,g):o.directives[p]},mount(p,m,v){if(!c){const _=g._ceVNode||me(l,i);return _.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(_,p,v),c=!0,g._container=p,p.__vue_app__=g,tl(_.component)}},onUnmount(p){r.push(p)},unmount(){c&&(gt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return o.provides[p]=m,g},runWithContext(p){const m=os;os=g;try{return p()}finally{os=m}}};return g}}let os=null;const Ha=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Ua(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Me;let i=s;const o=t.startsWith("update:"),a=o&&Ha(l,t.slice(7));a&&(a.trim&&(i=s.map(p=>Fe(p)?p.trim():p)),a.number&&(i=s.map($i)));let r,c=l[r=mn(t)]||l[r=mn(tt(t))];!c&&o&&(c=l[r=mn(Pt(t))]),c&&gt(c,e,6,i);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,gt(g,e,6,i)}}const qa=new WeakMap;function po(e,t,s=!1){const l=s?qa:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let a={},r=!1;if(!ve(e)){const c=g=>{const p=po(g,t,!0);p&&(r=!0,Ne(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ee(e)&&l.set(e,null),null):(pe(o)?o.forEach(c=>a[c]=null):Ne(a,o),Ee(e)&&l.set(e,a),a)}function Ys(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,Pt(t))||Ce(e,t))}function V1(){}function vo(e){const{type:t,vnode:s,proxy:l,withProxy:i,propsOptions:[o],slots:a,attrs:r,emit:c,render:g,renderCache:p,props:m,data:v,setupState:_,ctx:C,inheritAttrs:$}=e,T=zs(e);let F,R;try{if(s.shapeFlag&4){const w=i||l,S=w;F=ft(g.call(S,w,p,m,_,v,C)),R=r}else{const w=t;F=ft(w.length>1?w(m,{attrs:r,slots:a,emit:c}):w(m,null)),R=t.props?r:Va(r)}}catch(w){Es.length=0,Zt(w,e,1),F=me(dt)}let y=F;if(R&&$!==!1){const w=Object.keys(R),{shapeFlag:S}=y;w.length&&S&7&&(o&&w.some(vn)&&(R=za(R,o)),y=us(y,R,!1,!0))}return s.dirs&&(y=us(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&Nn(y,s.transition),F=y,zs(T),F}function Ka(e,t=!0){let s;for(let l=0;l<e.length;l++){const i=e[l];if(rs(i)){if(i.type!==dt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Va=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},za=(e,t)=>{const s={};for(const l in e)(!vn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Wa(e,t,s){const{props:l,children:i,component:o}=e,{props:a,children:r,patchFlag:c}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?go(l,a,g):!!a;if(c&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const v=p[m];if(yo(a,l,v)&&!Ys(g,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===a?!1:l?a?go(l,a,g):!0:!!a;return!1}function go(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(yo(t,e,o)&&!Ys(s,o))return!0}return!1}function yo(e,t,s){const l=e[s],i=t[s];return s==="style"&&Ee(l)&&Ee(i)?!_n(l,i):l!==i}function zn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const mo={},bo=()=>Object.create(mo),_o=e=>Object.getPrototypeOf(e)===mo;function Ja(e,t,s,l=!1){const i={},o=bo();e.propsDefaults=Object.create(null),xo(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);s?e.props=l?i:Yi(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qa(e,t,s,l){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,r=$e(i),[c]=e.propsOptions;let g=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let v=p[m];if(Ys(e.emitsOptions,v))continue;const _=t[v];if(c)if(Ce(o,v))_!==o[v]&&(o[v]=_,g=!0);else{const C=tt(v);i[C]=Wn(c,r,C,_,e,!1)}else _!==o[v]&&(o[v]=_,g=!0)}}}else{xo(e,t,i,o)&&(g=!0);let p;for(const m in r)(!t||!Ce(t,m)&&((p=Pt(m))===m||!Ce(t,p)))&&(c?s&&(s[m]!==void 0||s[p]!==void 0)&&(i[m]=Wn(c,r,m,void 0,e,!0)):delete i[m]);if(o!==r)for(const m in o)(!t||!Ce(t,m))&&(delete o[m],g=!0)}g&&xt(e.attrs,"set","")}function xo(e,t,s,l){const[i,o]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(gs(c))continue;const g=t[c];let p;i&&Ce(i,p=tt(c))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Ys(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,a=!0)}if(o){const c=$e(s),g=r||Me;for(let p=0;p<o.length;p++){const m=o[p];s[m]=Wn(i,c,m,g[m],e,!Ce(g,m))}}return a}function Wn(e,t,s,l,i,o){const a=e[s];if(a!=null){const r=Ce(a,"default");if(r&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&ve(c)){const{propsDefaults:g}=i;if(s in g)l=g[s];else{const p=Ps(i);l=g[s]=c.call(null,t),p()}}else l=c;i.ce&&i.ce._setProp(s,l)}a[0]&&(o&&!r?l=!1:a[1]&&(l===""||l===Pt(s))&&(l=!0))}return l}const Ga=new WeakMap;function wo(e,t,s=!1){const l=s?Ga:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,a={},r=[];let c=!1;if(!ve(e)){const p=m=>{c=!0;const[v,_]=wo(m,t,!0);Ne(a,v),_&&r.push(..._)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Ee(e)&&l.set(e,Wt),Wt;if(pe(o))for(let p=0;p<o.length;p++){const m=tt(o[p]);$o(m)&&(a[m]=Me)}else if(o)for(const p in o){const m=tt(p);if($o(m)){const v=o[p],_=a[m]=pe(v)||ve(v)?{type:v}:Ne({},v),C=_.type;let $=!1,T=!0;if(pe(C))for(let F=0;F<C.length;++F){const R=C[F],y=ve(R)&&R.name;if(y==="Boolean"){$=!0;break}else y==="String"&&(T=!1)}else $=ve(C)&&C.name==="Boolean";_[0]=$,_[1]=T,($||Ce(_,"default"))&&r.push(m)}}const g=[a,r];return Ee(e)&&l.set(e,g),g}function $o(e){return e[0]!=="$"&&!gs(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Qn=e=>pe(e)?e.map(ft):[ft(e)],Ya=(e,t,s)=>{if(t._n)return t;const l=ss((...i)=>Qn(t(...i)),s);return l._c=!1,l},ko=(e,t,s)=>{const l=e._ctx;for(const i in e){if(Jn(i))continue;const o=e[i];if(ve(o))t[i]=Ya(i,o,l);else if(o!=null){const a=Qn(o);t[i]=()=>a}}},So=(e,t)=>{const s=Qn(t);e.slots.default=()=>s},Co=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},Xa=(e,t,s)=>{const l=e.slots=bo();if(e.vnode.shapeFlag&32){const i=t._;i?(Co(l,t,s),s&&bl(l,"_",i,!0)):ko(t,l)}else t&&So(e,t)},Za=(e,t,s)=>{const{vnode:l,slots:i}=e;let o=!0,a=Me;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Co(i,t,s):(o=!t.$stable,ko(t,i)),a=t}else t&&(So(e,t),a={default:1});if(o)for(const r in i)!Jn(r)&&a[r]==null&&delete i[r]},Je=ur;function er(e){return tr(e)}function tr(e,t){const s=Is();s.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:a,createText:r,createComment:c,setText:g,setElementText:p,parentNode:m,nextSibling:v,setScopeId:_=ht,insertStaticContent:C}=e,$=(f,b,P,N=null,O=null,D=null,Q=void 0,z=null,I=!!b.dynamicChildren)=>{if(f===b)return;f&&!Ot(f,b)&&(N=ie(f),ue(f,O,D,!0),f=null),b.patchFlag===-2&&(I=!1,b.dynamicChildren=null);const{type:B,ref:ce,shapeFlag:Z}=b;switch(B){case Xs:T(f,b,P,N);break;case dt:F(f,b,P,N);break;case Zs:f==null&&R(b,P,N,Q);break;case q:_e(f,b,P,N,O,D,Q,z,I);break;default:Z&1?S(f,b,P,N,O,D,Q,z,I):Z&6?Pe(f,b,P,N,O,D,Q,z,I):(Z&64||Z&128)&&B.process(f,b,P,N,O,D,Q,z,I,Et)}ce!=null&&O?ks(ce,f&&f.ref,D,b||f,!b):ce==null&&f&&f.ref!=null&&ks(f.ref,null,D,f,!0)},T=(f,b,P,N)=>{if(f==null)l(b.el=r(b.children),P,N);else{const O=b.el=f.el;b.children!==f.children&&g(O,b.children)}},F=(f,b,P,N)=>{f==null?l(b.el=c(b.children||""),P,N):b.el=f.el},R=(f,b,P,N)=>{[f.el,f.anchor]=C(f.children,b,P,N,f.el,f.anchor)},y=({el:f,anchor:b},P,N)=>{let O;for(;f&&f!==b;)O=v(f),l(f,P,N),f=O;l(b,P,N)},w=({el:f,anchor:b})=>{let P;for(;f&&f!==b;)P=v(f),i(f),f=P;i(b)},S=(f,b,P,N,O,D,Q,z,I)=>{if(b.type==="svg"?Q="svg":b.type==="math"&&(Q="mathml"),f==null)W(b,P,N,O,D,Q,z,I);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),ee(f,b,O,D,Q,z,I)}finally{B&&B._endPatch()}}},W=(f,b,P,N,O,D,Q,z)=>{let I,B;const{props:ce,shapeFlag:Z,transition:ae,dirs:he}=f;if(I=f.el=a(f.type,D,ce&&ce.is,ce),Z&8?p(I,f.children):Z&16&&se(f.children,I,null,N,O,Gn(f,D),Q,z),he&&Kt(f,null,N,"created"),te(I,f,f.scopeId,Q,N),ce){for(const Re in ce)Re!=="value"&&!gs(Re)&&o(I,Re,null,ce[Re],D,N);"value"in ce&&o(I,"value",null,ce.value,D),(B=ce.onVnodeBeforeMount)&&mt(B,N,f)}he&&Kt(f,null,N,"beforeMount");const xe=sr(O,ae);xe&&ae.beforeEnter(I),l(I,b,P),((B=ce&&ce.onVnodeMounted)||xe||he)&&Je(()=>{B&&mt(B,N,f),xe&&ae.enter(I),he&&Kt(f,null,N,"mounted")},O)},te=(f,b,P,N,O)=>{if(P&&_(f,P),N)for(let D=0;D<N.length;D++)_(f,N[D]);if(O){let D=O.subTree;if(b===D||Mo(D.type)&&(D.ssContent===b||D.ssFallback===b)){const Q=O.vnode;te(f,Q,Q.scopeId,Q.slotScopeIds,O.parent)}}},se=(f,b,P,N,O,D,Q,z,I=0)=>{for(let B=I;B<f.length;B++){const ce=f[B]=z?Ct(f[B]):ft(f[B]);$(null,ce,b,P,N,O,D,Q,z)}},ee=(f,b,P,N,O,D,Q)=>{const z=b.el=f.el;let{patchFlag:I,dynamicChildren:B,dirs:ce}=b;I|=f.patchFlag&16;const Z=f.props||Me,ae=b.props||Me;let he;if(P&&Vt(P,!1),(he=ae.onVnodeBeforeUpdate)&&mt(he,P,b,f),ce&&Kt(b,f,P,"beforeUpdate"),P&&Vt(P,!0),(Z.innerHTML&&ae.innerHTML==null||Z.textContent&&ae.textContent==null)&&p(z,""),B?ge(f.dynamicChildren,B,z,P,N,Gn(b,O),D):Q||k(f,b,z,null,P,N,Gn(b,O),D,!1),I>0){if(I&16)Te(z,Z,ae,P,O);else if(I&2&&Z.class!==ae.class&&o(z,"class",null,ae.class,O),I&4&&o(z,"style",Z.style,ae.style,O),I&8){const xe=b.dynamicProps;for(let Re=0;Re<xe.length;Re++){const Se=xe[Re],qe=Z[Se],Be=ae[Se];(Be!==qe||Se==="value")&&o(z,Se,qe,Be,O,P)}}I&1&&f.children!==b.children&&p(z,b.children)}else!Q&&B==null&&Te(z,Z,ae,P,O);((he=ae.onVnodeUpdated)||ce)&&Je(()=>{he&&mt(he,P,b,f),ce&&Kt(b,f,P,"updated")},N)},ge=(f,b,P,N,O,D,Q)=>{for(let z=0;z<b.length;z++){const I=f[z],B=b[z],ce=I.el&&(I.type===q||!Ot(I,B)||I.shapeFlag&198)?m(I.el):P;$(I,B,ce,null,N,O,D,Q,!0)}},Te=(f,b,P,N,O)=>{if(b!==P){if(b!==Me)for(const D in b)!gs(D)&&!(D in P)&&o(f,D,b[D],null,O,N);for(const D in P){if(gs(D))continue;const Q=P[D],z=b[D];Q!==z&&D!=="value"&&o(f,D,z,Q,O,N)}"value"in P&&o(f,"value",b.value,P.value,O)}},_e=(f,b,P,N,O,D,Q,z,I)=>{const B=b.el=f?f.el:r(""),ce=b.anchor=f?f.anchor:r("");let{patchFlag:Z,dynamicChildren:ae,slotScopeIds:he}=b;he&&(z=z?z.concat(he):he),f==null?(l(B,P,N),l(ce,P,N),se(b.children||[],P,ce,O,D,Q,z,I)):Z>0&&Z&64&&ae&&f.dynamicChildren&&f.dynamicChildren.length===ae.length?(ge(f.dynamicChildren,ae,P,O,D,Q,z),(b.key!=null||O&&b===O.subTree)&&To(f,b,!0)):k(f,b,P,ce,O,D,Q,z,I)},Pe=(f,b,P,N,O,D,Q,z,I)=>{b.slotScopeIds=z,f==null?b.shapeFlag&512?O.ctx.activate(b,P,N,Q,I):ke(b,P,N,O,D,Q,I):we(f,b,I)},ke=(f,b,P,N,O,D,Q)=>{const z=f.component=yr(f,N,O);if(Hn(f)&&(z.ctx.renderer=Et),br(z,!1,Q),z.asyncDep){if(O&&O.registerDep(z,J,Q),!f.el){const I=z.subTree=me(dt);F(null,I,b,P),f.placeholder=I.el}}else J(z,f,b,P,O,D,Q)},we=(f,b,P)=>{const N=b.component=f.component;if(Wa(f,b,P))if(N.asyncDep&&!N.asyncResolved){j(N,b,P);return}else N.next=b,N.update();else b.el=f.el,N.vnode=b},J=(f,b,P,N,O,D,Q)=>{const z=()=>{if(f.isMounted){let{next:Z,bu:ae,u:he,parent:xe,vnode:Re}=f;{const Ye=Eo(f);if(Ye){Z&&(Z.el=Re.el,j(f,Z,Q)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},O)});return}}let Se=Z,qe;Vt(f,!1),Z?(Z.el=Re.el,j(f,Z,Q)):Z=Re,ae&&bn(ae),(qe=Z.props&&Z.props.onVnodeBeforeUpdate)&&mt(qe,xe,Z,Re),Vt(f,!0);const Be=vo(f),Ze=f.subTree;f.subTree=Be,$(Ze,Be,m(Ze.el),ie(Ze),f,O,D),Z.el=Be.el,Se===null&&zn(f,Be.el),he&&Je(he,O),(qe=Z.props&&Z.props.onVnodeUpdated)&&Je(()=>mt(qe,xe,Z,Re),O)}else{let Z;const{el:ae,props:he}=b,{bm:xe,m:Re,parent:Se,root:qe,type:Be}=f,Ze=ls(b);Vt(f,!1),xe&&bn(xe),!Ze&&(Z=he&&he.onVnodeBeforeMount)&&mt(Z,Se,b),Vt(f,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=f.subTree=vo(f);$(null,Ye,P,N,f,O,D),b.el=Ye.el}if(Re&&Je(Re,O),!Ze&&(Z=he&&he.onVnodeMounted)){const Ye=b;Je(()=>mt(Z,Se,Ye),O)}(b.shapeFlag&256||Se&&ls(Se.vnode)&&Se.vnode.shapeFlag&256)&&f.a&&Je(f.a,O),f.isMounted=!0,b=P=N=null}};f.scope.on();const I=f.effect=new kl(z);f.scope.off();const B=f.update=I.run.bind(I),ce=f.job=I.runIfDirty.bind(I);ce.i=f,ce.id=f.uid,I.scheduler=()=>In(ce),Vt(f,!0),B()},j=(f,b,P)=>{b.component=f;const N=f.vnode.props;f.vnode=b,f.next=null,Qa(f,b.props,N,P),Za(f,b.children,P),pt(),zl(f),vt()},k=(f,b,P,N,O,D,Q,z,I=!1)=>{const B=f&&f.children,ce=f?f.shapeFlag:0,Z=b.children,{patchFlag:ae,shapeFlag:he}=b;if(ae>0){if(ae&128){M(B,Z,P,N,O,D,Q,z,I);return}else if(ae&256){E(B,Z,P,N,O,D,Q,z,I);return}}he&8?(ce&16&&V(B,O,D),Z!==B&&p(P,Z)):ce&16?he&16?M(B,Z,P,N,O,D,Q,z,I):V(B,O,D,!0):(ce&8&&p(P,""),he&16&&se(Z,P,N,O,D,Q,z,I))},E=(f,b,P,N,O,D,Q,z,I)=>{f=f||Wt,b=b||Wt;const B=f.length,ce=b.length,Z=Math.min(B,ce);let ae;for(ae=0;ae<Z;ae++){const he=b[ae]=I?Ct(b[ae]):ft(b[ae]);$(f[ae],he,P,null,O,D,Q,z,I)}B>ce?V(f,O,D,!0,!1,Z):se(b,P,N,O,D,Q,z,I,Z)},M=(f,b,P,N,O,D,Q,z,I)=>{let B=0;const ce=b.length;let Z=f.length-1,ae=ce-1;for(;B<=Z&&B<=ae;){const he=f[B],xe=b[B]=I?Ct(b[B]):ft(b[B]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;B++}for(;B<=Z&&B<=ae;){const he=f[Z],xe=b[ae]=I?Ct(b[ae]):ft(b[ae]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;Z--,ae--}if(B>Z){if(B<=ae){const he=ae+1,xe=he<ce?b[he].el:N;for(;B<=ae;)$(null,b[B]=I?Ct(b[B]):ft(b[B]),P,xe,O,D,Q,z,I),B++}}else if(B>ae)for(;B<=Z;)ue(f[B],O,D,!0),B++;else{const he=B,xe=B,Re=new Map;for(B=xe;B<=ae;B++){const ne=b[B]=I?Ct(b[B]):ft(b[B]);ne.key!=null&&Re.set(ne.key,B)}let Se,qe=0;const Be=ae-xe+1;let Ze=!1,Ye=0;const G=new Array(Be);for(B=0;B<Be;B++)G[B]=0;for(B=he;B<=Z;B++){const ne=f[B];if(qe>=Be){ue(ne,O,D,!0);continue}let fe;if(ne.key!=null)fe=Re.get(ne.key);else for(Se=xe;Se<=ae;Se++)if(G[Se-xe]===0&&Ot(ne,b[Se])){fe=Se;break}fe===void 0?ue(ne,O,D,!0):(G[fe-xe]=B+1,fe>=Ye?Ye=fe:Ze=!0,$(ne,b[fe],P,null,O,D,Q,z,I),qe++)}const A=Ze?nr(G):Wt;for(Se=A.length-1,B=Be-1;B>=0;B--){const ne=xe+B,fe=b[ne],ot=b[ne+1],et=ne+1<ce?ot.el||Ro(ot):N;G[B]===0?$(null,fe,P,et,O,D,Q,z,I):Ze&&(Se<0||B!==A[Se]?X(fe,P,et,2):Se--)}}},X=(f,b,P,N,O=null)=>{const{el:D,type:Q,transition:z,children:I,shapeFlag:B}=f;if(B&6){X(f.component.subTree,b,P,N);return}if(B&128){f.suspense.move(b,P,N);return}if(B&64){Q.move(f,b,P,Et);return}if(Q===q){l(D,b,P);for(let Z=0;Z<I.length;Z++)X(I[Z],b,P,N);l(f.anchor,b,P);return}if(Q===Zs){y(f,b,P);return}if(N!==2&&B&1&&z)if(N===0)z.beforeEnter(D),l(D,b,P),Je(()=>z.enter(D),O);else{const{leave:Z,delayLeave:ae,afterLeave:he}=z,xe=()=>{f.ctx.isUnmounted?i(D):l(D,b,P)},Re=()=>{D._isLeaving&&D[ya](!0),Z(D,()=>{xe(),he&&he()})};ae?ae(D,xe,Re):Re()}else l(D,b,P)},ue=(f,b,P,N=!1,O=!1)=>{const{type:D,props:Q,ref:z,children:I,dynamicChildren:B,shapeFlag:ce,patchFlag:Z,dirs:ae,cacheIndex:he}=f;if(Z===-2&&(O=!1),z!=null&&(pt(),ks(z,null,P,f,!0),vt()),he!=null&&(b.renderCache[he]=void 0),ce&256){b.ctx.deactivate(f);return}const xe=ce&1&&ae,Re=!ls(f);let Se;if(Re&&(Se=Q&&Q.onVnodeBeforeUnmount)&&mt(Se,b,f),ce&6)oe(f.component,P,N);else{if(ce&128){f.suspense.unmount(P,N);return}xe&&Kt(f,null,b,"beforeUnmount"),ce&64?f.type.remove(f,b,P,Et,N):B&&!B.hasOnce&&(D!==q||Z>0&&Z&64)?V(B,b,P,!1,!0):(D===q&&Z&384||!O&&ce&16)&&V(I,b,P),N&&le(f)}(Re&&(Se=Q&&Q.onVnodeUnmounted)||xe)&&Je(()=>{Se&&mt(Se,b,f),xe&&Kt(f,null,b,"unmounted")},P)},le=f=>{const{type:b,el:P,anchor:N,transition:O}=f;if(b===q){U(P,N);return}if(b===Zs){w(f);return}const D=()=>{i(P),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:Q,delayLeave:z}=O,I=()=>Q(P,D);z?z(f.el,D,I):I()}else D()},U=(f,b)=>{let P;for(;f!==b;)P=v(f),i(f),f=P;i(b)},oe=(f,b,P)=>{const{bum:N,scope:O,job:D,subTree:Q,um:z,m:I,a:B}=f;Po(I),Po(B),N&&bn(N),O.stop(),D&&(D.flags|=8,ue(Q,f,b,P)),z&&Je(z,b),Je(()=>{f.isUnmounted=!0},b)},V=(f,b,P,N=!1,O=!1,D=0)=>{for(let Q=D;Q<f.length;Q++)ue(f[Q],b,P,N,O)},ie=f=>{if(f.shapeFlag&6)return ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const b=v(f.anchor||f.el),P=b&&b[va];return P?v(P):b};let De=!1;const fn=(f,b,P)=>{let N;f==null?b._vnode&&(ue(b._vnode,null,null,!0),N=b._vnode.component):$(b._vnode||null,f,b,null,null,null,P),b._vnode=f,De||(De=!0,zl(N),Wl(),De=!1)},Et={p:$,um:ue,m:X,r:le,mt:ke,mc:se,pc:k,pbc:ge,n:ie,o:e};return{render:fn,hydrate:void 0,createApp:ja(fn)}}function Gn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function sr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function To(e,t,s=!1){const l=e.children,i=t.children;if(pe(l)&&pe(i))for(let o=0;o<l.length;o++){const a=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Ct(i[o]),r.el=a.el),!s&&r.patchFlag!==-2&&To(a,r)),r.type===Xs&&(r.patchFlag===-1&&(r=i[o]=Ct(r)),r.el=a.el),r.type===dt&&!r.el&&(r.el=a.el)}}function nr(e){const t=e.slice(),s=[0];let l,i,o,a,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(i=s[s.length-1],e[i]<g){t[l]=i,s.push(l);continue}for(o=0,a=s.length-1;o<a;)r=o+a>>1,e[s[r]]<g?o=r+1:a=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function Eo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Eo(t)}function Po(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ro(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ro(t.subTree):null}const Mo=e=>e.__isSuspense;let Yn=0;const lr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,i,o,a,r,c,g){if(e==null)or(t,s,l,i,o,a,r,c,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ir(e,t,s,l,i,a,r,c,g)}},hydrate:ar,normalize:rr};function Ts(e,t){const s=e.props&&e.props[t];ve(s)&&s()}function or(e,t,s,l,i,o,a,r,c){const{p:g,o:{createElement:p}}=c,m=p("div"),v=e.suspense=Ao(e,i,l,t,m,s,o,a,r,c);g(null,v.pendingBranch=e.ssContent,m,null,l,v,o,a),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,a),is(v,e.ssFallback)):v.resolve(!1,!0)}function ir(e,t,s,l,i,o,a,r,{p:c,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,_=t.ssFallback,{activeBranch:C,pendingBranch:$,isInFallback:T,isHydrating:F}=m;if($)m.pendingBranch=v,Ot($,v)?(c($,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():T&&(F||(c(C,_,s,l,i,null,o,a,r),is(m,_)))):(m.pendingId=Yn++,F?(m.isHydrating=!1,m.activeBranch=$):g($,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),T?(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():(c(C,_,s,l,i,null,o,a,r),is(m,_))):C&&Ot(C,v)?(c(C,v,s,l,i,m,o,a,r),m.resolve(!0)):(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0&&m.resolve()));else if(C&&Ot(C,v))c(C,v,s,l,i,m,o,a,r),is(m,v);else if(Ts(t,"onPending"),m.pendingBranch=v,v.shapeFlag&512?m.pendingId=v.component.suspenseId:m.pendingId=Yn++,c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:y}=m;R>0?setTimeout(()=>{m.pendingId===y&&m.fallback(_)},R):R===0&&m.fallback(_)}}function Ao(e,t,s,l,i,o,a,r,c,g,p=!1){const{p:m,m:v,um:_,n:C,o:{parentNode:$,remove:T}}=g;let F;const R=cr(e);R&&t&&t.pendingBranch&&(F=t.pendingId,t.deps++);const y=e.props?ki(e.props.timeout):void 0,w=o,S={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:i,deps:0,pendingId:Yn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(W=!1,te=!1){const{vnode:se,activeBranch:ee,pendingBranch:ge,pendingId:Te,effects:_e,parentComponent:Pe,container:ke,isInFallback:we}=S;let J=!1;S.isHydrating?S.isHydrating=!1:W||(J=ee&&ge.transition&&ge.transition.mode==="out-in",J&&(ee.transition.afterLeave=()=>{Te===S.pendingId&&(v(ge,ke,o===w?C(ee):o,0),Bn(_e),we&&se.ssFallback&&(se.ssFallback.el=null))}),ee&&($(ee.el)===ke&&(o=C(ee)),_(ee,Pe,S,!0),!J&&we&&se.ssFallback&&Je(()=>se.ssFallback.el=null,S)),J||v(ge,ke,o,0)),is(S,ge),S.pendingBranch=null,S.isInFallback=!1;let j=S.parent,k=!1;for(;j;){if(j.pendingBranch){j.effects.push(..._e),k=!0;break}j=j.parent}!k&&!J&&Bn(_e),S.effects=[],R&&t&&t.pendingBranch&&F===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(W){if(!S.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:ee,container:ge,namespace:Te}=S;Ts(te,"onFallback");const _e=C(se),Pe=()=>{S.isInFallback&&(m(null,W,ge,_e,ee,null,Te,r,c),is(S,W))},ke=W.transition&&W.transition.mode==="out-in";ke&&(se.transition.afterLeave=Pe),S.isInFallback=!0,_(se,ee,null,!0),ke||Pe()},move(W,te,se){S.activeBranch&&v(S.activeBranch,W,te,se),S.container=W},next(){return S.activeBranch&&C(S.activeBranch)},registerDep(W,te,se){const ee=!!S.pendingBranch;ee&&S.deps++;const ge=W.vnode.el;W.asyncDep.catch(Te=>{Zt(Te,W,0)}).then(Te=>{if(W.isUnmounted||S.isUnmounted||S.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:_e}=W;el(W,Te),ge&&(_e.el=ge);const Pe=!ge&&W.subTree.el;te(W,_e,$(ge||W.subTree.el),ge?null:C(W.subTree),S,a,se),Pe&&(_e.placeholder=null,T(Pe)),zn(W,_e.el),ee&&--S.deps===0&&S.resolve()})},unmount(W,te){S.isUnmounted=!0,S.activeBranch&&_(S.activeBranch,s,W,te),S.pendingBranch&&_(S.pendingBranch,s,W,te)}};return S}function ar(e,t,s,l,i,o,a,r,c){const g=t.suspense=Ao(t,l,s,e.parentNode,document.createElement("div"),null,i,o,a,r,!0),p=c(e,g.pendingBranch=t.ssContent,s,g,o,a);return g.deps===0&&g.resolve(!1,!0),p}function rr(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Lo(l?s.default:s),e.ssFallback=l?Lo(s.fallback):me(dt)}function Lo(e){let t;if(ve(e)){const s=as&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Fo())}return pe(e)&&(e=Ka(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ur(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):Bn(e)}function is(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,l&&l.subTree===s&&(l.vnode.el=i,zn(l,i))}function cr(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const q=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Zs=Symbol.for("v-stc"),Es=[];let Ge=null;function u(e=!1){Es.push(Ge=e?null:[])}function Fo(){Es.pop(),Ge=Es[Es.length-1]||null}let as=1;function en(e,t=!1){as+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Oo(e){return e.dynamicChildren=as>0?Ge||Wt:null,Fo(),as>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,i,o){return Oo(n(e,t,s,l,i,o,!0))}function Xe(e,t,s,l,i){return Oo(me(e,t,s,l,i,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const Do=({key:e})=>e??null,tn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||je(e)||ve(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,i=null,o=e===q?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Do(t),ref:t&&tn(t),scopeId:Ql,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return r?(Xn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Fe(s)?8:16),as>0&&!a&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const me=dr;function dr(e,t=null,s=null,l=0,i=null,o=!1){if((!e||e===no)&&(e=dt),rs(e)){const r=us(e,t,!0);return s&&Xn(r,s),as>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(Sr(e)&&(e=e.__vccOpts),t){t=fr(t);let{class:r,style:c}=t;r&&!Fe(r)&&(t.class=L(r)),Ee(c)&&(Fn(c)&&!pe(c)&&(c=Ne({},c)),t.style=Ke(c))}const a=Fe(e)?1:Mo(e)?128:ga(e)?64:Ee(e)?4:ve(e)?2:0;return n(e,t,s,l,i,a,o,!0)}function fr(e){return e?Fn(e)||_o(e)?Ne({},e):e:null}function us(e,t,s=!1,l=!1){const{props:i,ref:o,patchFlag:a,children:r,transition:c}=e,g=t?pr(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Do(g),ref:t&&t.ref?s&&o?pe(o)?o.concat(tn(t)):[o,tn(t)]:tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Nn(p,c.clone(p)),p}function be(e=" ",t=0){return me(Xs,null,e,t)}function hr(e,t){const s=me(Zs,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(u(),Xe(dt,null,e)):me(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?me(dt):pe(e)?me(q,null,e.slice()):rs(e)?Ct(e):me(Xs,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function Xn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(pe(t))s=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Xn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!_o(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[be(t)]):s=8);e.children=t,e.shapeFlag|=s}function pr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=L([t.class,l.class]));else if(i==="style")t.style=Ke([t.style,l.style]);else if(Fs(i)){const o=t[i],a=l[i];a&&o!==a&&!(pe(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=l[i])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const vr=ho();let gr=0;function yr(e,t,s){const l=e.type,i=(t?t.appContext:e.appContext)||vr,o={uid:gr++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wo(l,i),emitsOptions:po(l,i),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:l.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ua.bind(null,o),e.ce&&e.ce(o),o}let He=null;const mr=()=>He||ze;let sn,Zn;{const e=Is(),t=(s,l)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(l),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};sn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Zn=t("__VUE_SSR_SETTERS__",s=>cs=s)}const Ps=e=>{const t=He;return sn(e),e.scope.on(),()=>{e.scope.off(),sn(t)}},Io=()=>{He&&He.scope.off(),sn(null)};function Bo(e){return e.vnode.shapeFlag&4}let cs=!1;function br(e,t=!1,s=!1){t&&Zn(t);const{props:l,children:i}=e.vnode,o=Bo(e);Ja(e,l,o,t),Xa(e,i,s||t);const a=o?_r(e,t):void 0;return t&&Zn(!1),a}function _r(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,La);const{setup:l}=s;if(l){pt();const i=e.setupContext=l.length>1?wr(e):null,o=Ps(e),a=Xt(l,e,0,[e.props,i]),r=gl(a);if(vt(),o(),(r||e.sp)&&!ls(e)&&jn(e),r){if(a.then(Io,Io),t)return a.then(c=>{el(e,c)}).catch(c=>{Zt(c,e,0)});e.asyncDep=a}else el(e,a)}else No(e)}function el(e,t,s){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Ul(t)),No(e)}function No(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const i=Ps(e);pt();try{Fa(e)}finally{vt(),i()}}}const xr={get(e,t){return Ue(e,"get",""),e[t]}};function wr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xr),slots:e.slots,emit:e.emit,expose:t}}function tl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ul(Xi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const $r=/(?:^|[-_])\w/g,kr=e=>e.replace($r,t=>t.toUpperCase()).replace(/[-_]/g,"");function jo(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=jo(t);if(!l&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(l=i[1])}if(!l&&e){const i=o=>{for(const a in o)if(o[a]===t)return a};l=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return l?kr(l):s?"App":"Anonymous"}function Sr(e){return ve(e)&&"__vccOpts"in e}const H=(e,t)=>na(e,t,cs);function ds(e,t,s){try{en(-1);const l=arguments.length;return l===2?Ee(t)&&!pe(t)?rs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&rs(s)&&(s=[s]),me(e,t,s))}finally{en(1)}}const Cr="3.5.29";let sl;const Uo=typeof window<"u"&&window.trustedTypes;if(Uo)try{sl=Uo.createPolicy("vue",{createHTML:e=>e})}catch{}const qo=sl?e=>sl.createHTML(e):e=>e,Tr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,Ko=Tt&&Tt.createElement("template"),Pr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const i=t==="svg"?Tt.createElementNS(Tr,e):t==="mathml"?Tt.createElementNS(Er,e):s?Tt.createElement(e,{is:s}):Tt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,i,o){const a=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ko.innerHTML=qo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ko.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Rr=Symbol("_vtc");function Mr(e,t,s){const l=e[Rr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),Ar=Symbol("_vsh"),Lr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function Or(e,t,s){const l=e.style,i=Fe(s);let o=!1;if(s&&!i){if(t)if(Fe(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();s[r]==null&&nn(l,r,"")}else for(const a in t)s[a]==null&&nn(l,a,"");for(const a in s)a==="display"&&(o=!0),nn(l,a,s[a])}else if(i){if(t!==s){const a=l[Lr];a&&(s+=";"+a),l.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=o?l.display:"",e[Ar]&&(l.display="none"))}const zo=/\s*!important$/;function nn(e,t,s){if(pe(s))s.forEach(l=>nn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Dr(e,t);zo.test(s)?e.setProperty(Pt(l),s.replace(zo,""),"important"):e[l]=s}}const Wo=["Webkit","Moz","ms"],nl={};function Dr(e,t){const s=nl[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return nl[t]=l;l=Ds(l);for(let i=0;i<Wo.length;i++){const o=Wo[i]+l;if(o in e)return nl[t]=o}return t}const Jo="http://www.w3.org/1999/xlink";function Qo(e,t,s,l,i,o=Pi(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,s):s==null||o&&!xl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Go(e,t,s,l,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(r!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=xl(s):s==null&&r==="string"?(s="",a=!0):r==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(i||t)}function Ir(e,t,s,l){e.addEventListener(t,s,l)}function Br(e,t,s,l){e.removeEventListener(t,s,l)}const Yo=Symbol("_vei");function Nr(e,t,s,l,i=null){const o=e[Yo]||(e[Yo]={}),a=o[t];if(l&&a)a.value=l;else{const[r,c]=jr(t);if(l){const g=o[t]=qr(l,i);Ir(e,r,g,c)}else a&&(Br(e,r,a,c),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function jr(e){let t;if(Xo.test(e)){t={};let l;for(;l=e.match(Xo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ll=0;const Hr=Promise.resolve(),Ur=()=>ll||(Hr.then(()=>ll=0),ll=Date.now());function qr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Kr(l,s.value),t,5,[l])};return s.value=e,s.attached=Ur(),s}function Kr(e,t){if(pe(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vr=(e,t,s,l,i,o)=>{const a=i==="svg";t==="class"?Mr(e,l,a):t==="style"?Or(e,s,l):Fs(t)?vn(t)||Nr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zr(e,t,l,a))?(Go(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Fe(l))?Go(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Qo(e,t,l,a))};function zr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zo(t)&&ve(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zo(t)&&Fe(s)?!1:t in e}const Wr=["ctrl","shift","alt","meta"],Jr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wr.some(s=>e[`${s}Key`]&&!t.includes(s))},nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((i,...o)=>{for(let a=0;a<t.length;a++){const r=Jr[t[a]];if(r&&r(i,t))return}return e(i,...o)}))},Qr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(i=>{if(!("key"in i))return;const o=Pt(i.key);if(t.some(a=>a===o||Qr[a]===o))return e(i)}))},Gr=Ne({patchProp:Vr},Pr);let ei;function Yr(){return ei||(ei=er(Gr))}const Xr=((...e)=>{const t=Yr().createApp(...e),{mount:s}=t;return t.mount=l=>{const i=eu(l);if(!i)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=s(i,!1,Zr(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t});function Zr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return Fe(e)?document.querySelector(e):e}function tu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(i){return l},beforeUnsubscribe(i){return l}}}async function su(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function nu(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await su();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(tu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function lu(e){let t=!1;const s=nu({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class ln extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ou extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class ol{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const i={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:i,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new ln(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new ou(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const on="ss-dash-theme",il="ss-theme-change";function Ms(){if(typeof window>"u")return"light";const e=localStorage.getItem(on);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function iu(e){typeof window>"u"||(localStorage.setItem(on,e),window.dispatchEvent(new CustomEvent(il,{detail:e})))}function au(){const t=Ms()==="dark"?"light":"dark";return iu(t),t}function ti(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===on){const a=o.newValue;e(a==="dark"||a==="light"?a:Ms())}},l=window.matchMedia("(prefers-color-scheme: dark)"),i=o=>{localStorage.getItem(on)||e(o.matches?"dark":"light")};return window.addEventListener(il,t),window.addEventListener("storage",s),l.addEventListener("change",i),()=>{window.removeEventListener(il,t),window.removeEventListener("storage",s),l.removeEventListener("change",i)}}const ru={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function uu(e){return{...ru,...e}}let cu=0;function du(){return`ss-grad-${cu++}`}function fu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let i=1;i<e.length;i++){const o=e[i];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function hu(e,t){if(e.length<2)return null;const s=uu(t),l=fu(e),i=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let $=0;$<c;$++){const T=r+$/(c-1)*o,F=r+a-(e[$]-l.min)/i*a;g[$]=`${T.toFixed(1)},${F.toFixed(1)}`}const p=g.join(" "),m=(r+o).toFixed(1),v=(r+a).toFixed(1),_=r.toFixed(1),C=`M${g[0]} `+g.slice(1).map($=>`L${$}`).join(" ")+` L${m},${v} L${_},${v} Z`;return{points:p,areaPath:C,gradientId:du(),options:s,stats:l}}const pu=5e3,si=1e4,ni=100,vu=500;function gu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function yu(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),i=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+i+"]";return o.length>t?"["+e.length+" items]":o}function mu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const i=[];for(let c=0;c<Math.min(l.length,4);c++)i.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+i.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function bu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${i}m`:i>0?`${i}m ${t%60}s`:`${t}s`}function Dt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function li(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function _u(e){return e>vu?"very-slow":e>ni?"slow":"normal"}function al(e,t="ss-dash"){const s=_u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function an(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?gu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?yu(e,t,an):typeof e=="object"?mu(e,t,an):String(e)}function xu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function wu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const $u=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function ku(e){const t=new URLSearchParams,s=e;for(const{key:l,param:i,isNumeric:o}of $u){const a=s[l];(o?a!=null:a)&&t.set(i,String(a))}if(e.filters)for(const[l,i]of Object.entries(e.filters))i&&t.set(l,i);return t.toString()}function Su(e,t,s=2){if(t<=1)return[1];const l=[],i=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),i>2&&l.push("...");for(let a=i;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Cu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],oi="/admin/api/debug",ii={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Tu(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Cu)t[l]=s?.[l]??!1;return t}async function Eu(e,t=oi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Pu(e){const{baseUrl:t="",debugEndpoint:s=oi,authToken:l}=e,i=new ol({baseUrl:t,authToken:l});try{const o=await Eu(i,s);return Tu(o)}catch{return ii}}const Ru={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Mu(e){return Ru[e]||`/${e}`}class ai{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const i=Mu(t),o=s?`${this.basePath}${i}?${s}`:`${this.basePath}${i}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}function Au(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Lu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Fu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new ol({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ai(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const i=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(i)}catch(i){if(this.shouldIgnoreError(i,s.signal,l))return;this.handleFetchError(i,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const i=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(i,l):await this.client.delete(i);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Lu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return ku({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Au(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof ln){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?pu:si;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Le={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Ou="ss-col-resize",ri="ss-resizing";function Du(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function i(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),i();const g=c.clientX,p=o.offsetWidth;r.classList.add(ri),r.setPointerCapture(c.pointerId);function m(_){const C=_.clientX-g,$=Math.max(30,p+C);o.style.width=$+"px"}function v(){r.classList.remove(ri),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=Ou,o.appendChild(r),r.addEventListener("pointerdown",a),s.push(()=>{r.removeEventListener("pointerdown",a),r.remove()})}return()=>{for(const o of s)o()}}function Iu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function ui(e){const t={};for(const[s,l]of Object.entries(e))Nu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Bu=["all","error","warn","info","debug"];function rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function ci(e){return e.msg||e.message||JSON.stringify(e)}function Bt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Nt(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function di(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Nu=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){const t=Iu(e.data);if(t){const s=ui(t);if(s)return s}}return ui(e)}const ju=["all","active","waiting","delayed","completed","failed"];function Hu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function Uu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function qu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function Ku(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function Vu(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function rl(e,t,s,l=0){return e[t]??e[s]??l}function zu(e){return{method:e.method||"",url:e.url||"",statusCode:rl(e,"status_code","statusCode"),totalDuration:rl(e,"total_duration","totalDuration")||e.duration||0,spanCount:rl(e,"span_count","spanCount"),spans:Ku(e.spans),warnings:Vu(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const Wu=["password","secret","token","key","credential","auth"];function Ju(e){const t=e.toLowerCase();return Wu.some(s=>t.includes(s))}function Qu(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Gu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Yu(e){return Gu[e]||e}const Xu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Zu(e){return Xu[e]||e}function ec(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function tc(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function sc(e){return Object.entries(e).map(([t,s])=>({key:t,value:Qu(s),secret:Ju(t)}))}function nc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const lc=["healthy","active","connected","available","ready"],oc=["errored","unavailable"];function ic(e){return lc.includes(e)?"ok":oc.includes(e)?"err":""}function Ie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function un(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!Ie(e)}function cn(e,t=""){if(!un(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const i=t?`${t}.${l}`:l,o=e[l];un(o)?s.push(...cn(o,i)):s.push({path:i,value:o})}return s}function ac(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function fi(e){if(e==null||typeof e!="object"||Array.isArray(e)||Ie(e))return 1;let t=0;for(const s of Object.keys(e))t+=fi(e[s]);return t}function rc(e){if(!un(e))return[];const t=[];for(const s of Object.keys(e))un(e[s])&&t.push(s);return t}function uc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function cc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,i=K({...ii}),o=K(!0);return Ft(async()=>{i.value=await Pu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:i,loading:o}}function hi(){const e=K(Ms());let t=null;function s(i){e.value=i}function l(){const i=au();return e.value=i,i}return Ft(()=>{e.value=Ms(),t=ti(s)}),St(()=>{t?.()}),{theme:e,toggleTheme:l}}function dc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function fc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function ul(e){try{return await e()}catch{return null}}function hc(e){return{fetchGroupedQueries:()=>ul(()=>e.fetchGroupedQueries()),explainQuery:t=>ul(()=>e.explainQuery(t)),fetchEmailPreview:async t=>(await ul(()=>e.fetchEmailPreview(t)))?.html||null}}function pc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function vc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof ln&&(t.value=!0),null}}}}function As(e,t,s){const l=t(),i=fc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(i).length>0?i:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function gc(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function yc(e,t,s){return{async mutate(l,i="post",o){return e.mutate(l,i,o)},refresh(){As(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function mc(e,t,s,l){ut(t,()=>{s.pagination.page=1;for(const i of Object.keys(s.filter))i==="search"?s.filter.search="":delete s.filter[i];s.sort.column="",s.data.value=null,e.setSection(t()),As(e,t,s)}),l&&ut(l,()=>{As(e,t,s),e.handleRefreshSignal()})}function bc(e){return{data:K(null),loading:K(!1),error:K(null),isUnauthorized:K(!1),timeRange:K("1h"),pagination:Gt({page:1,perPage:e,total:0,totalPages:1}),filter:Gt({search:""}),sort:Gt({column:"",direction:"desc"})}}function _c(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function lt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:i,perPage:o=50,refreshKey:a}=t,r=bc(o),c=new Fu({baseUrl:s,endpoint:l,authToken:i,section:e(),perPage:o,callbacks:dc(r)}),g=c.getApi(),m=gc(r,()=>{As(c,e,r),c.fetch(!1)}),v=yc(c,e,r),_={...vc(g,r.isUnauthorized),...hc(g),...pc(g)};return mc(c,e,r,a),Ft(()=>{As(c,e,r),c.start()}),St(()=>{c.stop()}),_c(r,m,v,_)}const xc=["title","aria-label"],wc=["viewBox","innerHTML"],$c=["viewBox","innerHTML"],kc=Oe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=hi(),i=H(()=>s.value==="dark"),o=H(()=>i.value?"Switch to light theme":"Switch to dark theme"),a=H(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:L(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>x(l)&&x(l)(...g))},[i.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).sun.elements.join("")},null,8,wc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).moon.elements.join("")},null,8,$c))],10,xc))}}),Sc=["data-theme"],Cc={class:"ss-dash-header"},Tc={class:"ss-dash-header-center"},Ec={class:"ss-dash-header-right"},Pc=["href"],Rc={class:"ss-dash-body"},Mc={class:"ss-dash-nav"},Ac=["data-ss-section","onClick","title"],Lc={class:"ss-dash-nav-icon"},Fc=["viewBox","innerHTML"],Oc={class:"ss-dash-nav-label"},Dc={key:0,class:"ss-dash-nav-sep"},Ic=["onClick","title"],Bc={class:"ss-dash-nav-icon"},Nc=["viewBox","innerHTML"],jc={class:"ss-dash-nav-label"},Hc=["title"],Uc=["viewBox","innerHTML"],qc=["viewBox","innerHTML"],Kc={class:"ss-dash-main"},Vc=["id"],zc={class:"ss-dash-pane-inner"},Wc={key:1,class:"ss-dash-empty"},Jc=Oe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ct(()=>Promise.resolve().then(()=>sh)),s=ct(()=>Promise.resolve().then(()=>np)),l=ct(()=>Promise.resolve().then(()=>Bp)),i=ct(()=>Promise.resolve().then(()=>Vp)),o=ct(()=>Promise.resolve().then(()=>ev)),a=ct(()=>Promise.resolve().then(()=>$v)),r=ct(()=>Promise.resolve().then(()=>jv)),c=ct(()=>Promise.resolve().then(()=>ag)),g=ct(()=>Promise.resolve().then(()=>Mg)),p=ct(()=>Promise.resolve().then(()=>i1)),m=ct(()=>Promise.resolve().then(()=>H1)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],_=e,{theme:C}=hi(),{features:$}=cc({baseUrl:_.baseUrl,debugEndpoint:_.debugEndpoint,authToken:_.authToken}),T=K("overview"),F=K(!1),R=K(!1),y=K(0);ns("ss-refresh-key",y),ns("ss-base-url",_.baseUrl),ns("ss-dashboard-endpoint",_.dashboardEndpoint),ns("ss-debug-endpoint",_.debugEndpoint),ns("ss-auth-token",_.authToken),typeof window<"u"&&(F.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let w=null;function S(){if(w&&(w(),w=null),!_.channelName)return;w=lu({baseUrl:_.baseUrl,channelName:_.channelName,authToken:_.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{R.value=!0},onDisconnect:()=>{R.value=!1},onError:()=>{R.value=!1}}).unsubscribe}Ft(()=>{S()}),St(()=>{w&&(w(),w=null)});const W=H(()=>$.value.customPanes||[]);function te(k){const E=k.replace("#","").split("?")[0];return E&&[...v,...W.value.map(X=>X.id)].includes(E)?E:"overview"}function se(){const k=te(window.location.hash);k!==T.value&&(T.value=k)}Ft(()=>{if(typeof window>"u")return;const k=te(window.location.hash);(k!=="overview"||window.location.hash)&&(T.value=k),window.addEventListener("hashchange",se)}),St(()=>{window.removeEventListener("hashchange",se)}),ut(T,k=>{typeof window<"u"&&(window.location.hash=k)});function ee(){F.value=!F.value,localStorage.setItem("ss-dash-sidebar",F.value?"collapsed":"expanded")}function ge(k){k!==T.value&&(T.value=k)}const Te=H(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:$.value.cache},{id:"jobs",label:"Jobs",visible:$.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),_e=H(()=>Te.value.filter(k=>k.visible)),{data:Pe}=lt(()=>"overview",{baseUrl:_.baseUrl,dashboardEndpoint:_.dashboardEndpoint,authToken:_.authToken,refreshKey:y}),ke=H(()=>Pe.value),we=H(()=>{const k={};if(!ke.value)return k;if(ke.value.totalRequests>0&&(k.requests={count:ke.value.totalRequests}),ke.value.queryStats?.total>0&&(k.queries={count:ke.value.queryStats.total}),ke.value.logLevelBreakdown){const E=ke.value.logLevelBreakdown,M=E.error+E.warn+E.info+E.debug;M>0&&(k.logs={count:M})}return k}),J={overview:t,requests:s,queries:l,events:i,routes:o,logs:a,emails:r,cache:c,jobs:g,config:p,internals:m},j=H(()=>J[T.value]||null);return(k,E)=>(u(),d("div",{class:"ss-dash","data-theme":x(C),id:"ss-dash"},[n("div",Cc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",Tc,[n("span",{class:L(["ss-dash-live-dot",{"ss-dash-connected":R.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:L(["ss-dash-live-label",{"ss-dash-connected":R.value}]),id:"ss-dash-live-label"},h(R.value?"Live":"Polling"),3)]),n("div",Ec,[me(kc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Pc)):Y("",!0)])]),n("div",Rc,[n("div",{class:L(["ss-dash-sidebar",{"ss-dash-collapsed":F.value}]),id:"ss-dash-sidebar"},[n("nav",Mc,[(u(!0),d(q,null,ye(_e.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),"data-ss-section":M.id,onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Lc,[(u(),d("svg",{width:"20",height:"20",viewBox:(x(Le)[M.id]||x(Le).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(x(Le)[M.id]||x(Le).config).elements.join("")},null,8,Fc))]),n("span",Oc,h(M.label),1),we.value[M.id]&&we.value[M.id].count>0?(u(),d("span",{key:0,class:L(["ss-dash-nav-badge",we.value[M.id].variant||""])},h(we.value[M.id].count),3)):Y("",!0)],10,Ac))),128)),W.value.length>0?(u(),d("div",Dc)):Y("",!0),(u(!0),d(q,null,ye(W.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Bc,[(u(),d("svg",{width:"20",height:"20",viewBox:x(Le)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le)["custom-pane"].elements.join("")},null,8,Nc))]),n("span",jc,h(M.label),1)],10,Ic))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:ee,title:F.value?"Expand sidebar":"Collapse sidebar"},[F.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-right"].elements.join("")},null,8,Uc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-left"].elements.join("")},null,8,qc))],8,Hc)],2),n("div",Kc,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${T.value}`},[n("div",zc,[(u(),Xe(lr,null,{fallback:ss(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:ss(()=>[j.value?(u(),Xe(Ra(j.value),{key:0})):(u(),d("div",Wc,"Unknown section"))]),_:1}))])],8,Vc)])])],8,Sc))}});function Qc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Gc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ms()),ti(e)}const fs=Qc("ss-dash-config");Gc();const pi=document.getElementById("ss-dash");pi&&Xr(Jc,{baseUrl:fs.baseUrl,dashboardEndpoint:fs.dashboardEndpoint,debugEndpoint:fs.debugEndpoint,authToken:fs.authToken,backUrl:fs.backUrl,channelName:fs.channelName}).mount(pi);const Yc=["width","height","viewBox"],Xc=["id"],Zc=["stop-color"],ed=["stop-color"],td=["d","fill"],sd=["d","stroke"],nd=["x","y"],dn=Oe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=H(()=>hu(t.data,{width:t.width,height:t.height,color:t.color})),l=H(()=>s.value!==null),i=H(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(q,{key:0},[n("defs",null,[n("linearGradient",{id:i.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Zc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,ed)],8,Xc)]),n("path",{d:s.value.areaPath,fill:`url(#${i.value})`},null,8,td),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,sd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,nd))],8,Yc))],4))}}),ld={class:"ss-dash-btn-group"},od=["onClick"],id=Oe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(i,o)=>(u(),d("div",ld,[(u(),d(q,null,ye(l,a=>n("button",{key:a.value,type:"button",class:L(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",a.value)},h(a.label),11,od)),64))]))}}),ad={class:"ss-dash-overview"},rd={key:0,class:"ss-dash-empty"},ud={class:"ss-dash-cards"},cd={class:"ss-dash-card"},dd={class:"ss-dash-sparkline"},fd={class:"ss-dash-card"},hd={class:"ss-dash-sparkline"},pd={class:"ss-dash-card"},vd={class:"ss-dash-sparkline"},gd={class:"ss-dash-card"},yd={class:"ss-dash-sparkline"},md={class:"ss-dash-chart-container"},bd={class:"ss-dash-chart-header"},_d={class:"ss-dash-chart",id:"ss-dash-chart-area"},xd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},wd=["viewBox"],$d=["id"],kd=["id"],Sd=["x1","y1","x2","y2"],Cd=["x","y"],Td=["d","fill"],Ed=["d"],Pd=["d","fill"],Rd=["d"],Md=["x","y","width","height","data-idx","onMouseenter"],Ad=["cx","cy","r","data-idx","opacity"],Ld=["cx","cy","r","data-idx","opacity"],Fd=["x","y"],Od={key:0,style:{color:"var(--ss-red-fg)"}},Dd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Id={key:0,class:"ss-dash-chart-legend-item"},Bd={class:"ss-dash-secondary-cards"},Nd={class:"ss-dash-secondary-card"},jd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Hd={key:1,class:"ss-dash-secondary-list"},Ud=["href"],qd=["title"],Kd={class:"ss-dash-secondary-card"},Vd={class:"ss-dash-secondary-list"},zd={class:"ss-dash-secondary-list-value"},Wd={class:"ss-dash-secondary-list-value"},Jd={class:"ss-dash-secondary-list-value"},Qd={class:"ss-dash-secondary-card"},Gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Yd={key:1,class:"ss-dash-secondary-list"},Xd=["href"],Zd=["title"],ef=["title"],tf={class:"ss-dash-secondary-card"},sf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},nf={key:1,class:"ss-dash-secondary-list"},lf=["href"],of={class:"ss-dash-secondary-list-value"},af={class:"ss-dash-secondary-card"},rf={class:"ss-dash-secondary-list"},uf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},cf={class:"ss-dash-secondary-list-value"},df={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},ff={class:"ss-dash-secondary-list-value"},hf={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},pf={class:"ss-dash-secondary-card"},vf={class:"ss-dash-secondary-list"},gf={href:"#logs?level=error",class:"ss-dash-widget-row-link"},yf={class:"ss-dash-secondary-list-value"},mf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},bf={class:"ss-dash-secondary-list-value"},_f={href:"#logs?level=info",class:"ss-dash-widget-row-link"},xf={class:"ss-dash-secondary-list-value"},wf={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},$f={class:"ss-dash-secondary-list-value"},kf={key:0,class:"ss-dash-secondary-card"},Sf={class:"ss-dash-secondary-list"},Cf={href:"#cache",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-list-value"},Ef={href:"#cache",class:"ss-dash-widget-row-link"},Pf={class:"ss-dash-secondary-list-value"},Rf={href:"#cache",class:"ss-dash-widget-row-link"},Mf={class:"ss-dash-secondary-list-value"},Af={key:1,class:"ss-dash-secondary-card"},Lf={class:"ss-dash-secondary-list"},Ff={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Of={class:"ss-dash-secondary-list-value"},Df={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},If={class:"ss-dash-secondary-list-value"},Bf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},Nf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},jf={class:"ss-dash-secondary-list-value"},Hf={class:"ss-dash-secondary-card"},Uf={class:"ss-dash-secondary-list"},qf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},zf={class:"ss-dash-secondary-list-value"},Wf={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},Jf={class:"ss-dash-secondary-list-value"},Qf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={class:"ss-dash-secondary-card"},Xf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Zf={key:1,class:"ss-dash-secondary-list"},eh=["href"],th=["title"],cl=220,vi=120,sh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,i]of t)s[l]=i;return s})(Oe({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=K("1h"),{data:r,loading:c}=lt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),{data:g,setTimeRange:p}=lt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t});ut(a,G=>{p(G)});const m=H(()=>r.value),v=H(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),_=H(()=>v.value),C=H(()=>v.value.avgResponseTime||Number(_.value.avg_response_time)||0),$=H(()=>v.value.p95ResponseTime||Number(_.value.p95_response_time)||0),T=H(()=>v.value.requestsPerMinute||Number(_.value.requests_per_minute)||0),F=H(()=>v.value.errorRate||Number(_.value.error_rate)||0),R=H(()=>v.value.totalRequests||Number(_.value.total_requests)||0),y=H(()=>R.value>0),w=H(()=>g.value?.buckets||[]),S=H(()=>v.value.sparklines?.avgResponseTime??w.value.map(G=>G.avgDuration??0)),W=H(()=>v.value.sparklines?.p95ResponseTime??w.value.map(G=>G.p95Duration??0)),te=H(()=>v.value.sparklines?.requestsPerMinute??w.value.map(G=>G.requestCount??0)),se=H(()=>v.value.sparklines?.errorRate??w.value.map(G=>G.errorCount??0)),ee=H(()=>`ss-cg-total-${o}`),ge=H(()=>`ss-cg-error-${o}`);function Te(G,A){if(G<=0)return[0];const ne=G/A,fe=Math.pow(10,Math.floor(Math.log10(ne))),ot=ne/fe;let et;ot<=1?et=fe:ot<=2?et=2*fe:ot<=5?et=5*fe:et=10*fe;const hn=[];for(let fl=et;fl<=G+et*.5;fl+=et)hn.push(Math.round(fl));return hn.length===0&&hn.push(Math.ceil(G)),hn}function _e(G){try{return new Date(G).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Pe(G){if(G.length===0)return"";if(G.length===1)return`M${G[0].x},${G[0].y}`;let A=`M${G[0].x.toFixed(1)},${G[0].y.toFixed(1)}`;for(let ne=0;ne<G.length-1;ne++){const fe=G[ne],ot=G[ne+1],et=(fe.x+ot.x)/2;A+=` C${et.toFixed(1)},${fe.y.toFixed(1)} ${et.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return A}function ke(G){return al(G,"ss-dash")}const we=K(null),J=K(0);let j=null;ut(we,G=>{j?.disconnect(),j=null,G&&(J.value=G.clientWidth,j=new ResizeObserver(A=>{for(const ne of A)J.value=ne.contentRect.width}),j.observe(G))}),St(()=>{j?.disconnect()});const k={top:12,right:12,bottom:28,left:38},E=H(()=>J.value||600),M=H(()=>E.value-k.left-k.right),X=H(()=>cl-k.top-k.bottom),ue=H(()=>k.top+X.value),le=H(()=>w.value.map(G=>{const A=G;return(G.requestCount??0)+(Number(A.request_count)||0)||G.total||0})),U=H(()=>w.value.map(G=>{const A=G;return(G.errorCount??0)+(Number(A.error_count)||0)})),oe=H(()=>Math.max(...le.value,1)),V=H(()=>Math.ceil(oe.value*1.1)),ie=H(()=>U.value.some(G=>G>0)),De=H(()=>Te(V.value,4)),fn=H(()=>De.value.length>0?De.value[De.value.length-1]:V.value);function Et(G){return k.left+G/Math.max(w.value.length-1,1)*M.value}function ps(G){return k.top+X.value-G/(fn.value||1)*X.value}const f=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(le.value[A])}))),b=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(U.value[A])}))),P=H(()=>Pe(f.value)),N=H(()=>ie.value?Pe(b.value):""),O=H(()=>f.value.length>1?`${P.value} L${f.value[f.value.length-1].x.toFixed(1)},${ue.value} L${f.value[0].x.toFixed(1)},${ue.value} Z`:""),D=H(()=>ie.value&&b.value.length>1?`${N.value} L${b.value[b.value.length-1].x.toFixed(1)},${ue.value} L${b.value[0].x.toFixed(1)},${ue.value} Z`:""),Q=H(()=>Math.min(10,w.value.length)),z=H(()=>Math.max(1,Math.ceil(w.value.length/Q.value))),I=K({visible:!1,x:0,idx:-1});function B(G){const A=f.value[G].x;I.value={visible:!0,x:A,idx:G}}function ce(){I.value={visible:!1,x:0,idx:-1}}const Z=H(()=>I.value.visible?Math.max(vi/2,Math.min(I.value.x,E.value-vi/2)):0),ae=H(()=>M.value/(w.value.length||1));function he(G){return G%z.value===0||G===w.value.length-1}function xe(){return y.value?C.value>500?"ss-dash-red":C.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Re(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Se(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?F.value>5?"ss-dash-red":F.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(G){return G.url||G.pattern||"-"}function Ze(G){return G.name||G.eventName||G.event_name||G.event||""}function Ye(G){return G.sqlNormalized||G.normalizedSql||G.sql_normalized||G.sql||"-"}return(G,A)=>(u(),d("div",ad,[x(c)&&!m.value?(u(),d("div",rd,"Loading overview...")):(u(),d(q,{key:1},[n("div",ud,[n("div",cd,[A[1]||(A[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:L(["ss-dash-card-value",xe()])},h(y.value?x(Dt)(C.value):"-"),3),n("div",dd,[me(dn,{data:S.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",fd,[A[2]||(A[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:L(["ss-dash-card-value",Re()])},h(y.value?x(Dt)($.value):"-"),3),n("div",hd,[me(dn,{data:W.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",pd,[A[3]||(A[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:L(["ss-dash-card-value",Se()])},h(y.value?T.value.toFixed(1):"-"),3),n("div",vd,[me(dn,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",gd,[A[4]||(A[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:L(["ss-dash-card-value",qe()])},h(y.value?`${F.value.toFixed(1)}%`:"-"),3),n("div",yd,[me(dn,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",md,[n("div",bd,[A[5]||(A[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(id,{"model-value":a.value,"onUpdate:modelValue":A[0]||(A[0]=ne=>a.value=ne)},null,8,["model-value"])]),n("div",_d,[w.value.length===0?(u(),d("div",xd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:we,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${E.value} ${cl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[6]||(A[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,$d),n("linearGradient",{id:ge.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[7]||(A[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,kd)]),(u(!0),d(q,null,ye(De.value,ne=>(u(),d("g",{key:`ytick-${ne}`},[n("line",{x1:k.left,y1:ps(ne),x2:E.value-k.right,y2:ps(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Sd),n("text",{x:k.left-6,y:ps(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,Cd)]))),128)),O.value?(u(),d("path",{key:0,d:O.value,fill:`url(#${ee.value})`},null,8,Td)):Y("",!0),P.value?(u(),d("path",{key:1,d:P.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ed)):Y("",!0),D.value?(u(),d("path",{key:2,d:D.value,fill:`url(#${ge.value})`},null,8,Pd)):Y("",!0),N.value?(u(),d("path",{key:3,d:N.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Rd)):Y("",!0),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d("g",{key:fe},[n("rect",{x:f.value[fe].x-ae.value/2,y:k.top,width:ae.value,height:X.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":fe,onMouseenter:ot=>B(fe),onMouseleave:ce},null,40,Md),le.value[fe]>0?(u(),d("circle",{key:0,cx:f.value[fe].x,cy:f.value[fe].y,r:I.value.visible&&I.value.idx===fe?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Ad)):Y("",!0),U.value[fe]>0?(u(),d("circle",{key:1,cx:f.value[fe].x,cy:b.value[fe].y,r:I.value.visible&&I.value.idx===fe?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Ld)):Y("",!0)]))),128)),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d(q,{key:`xlabel-${fe}`},[he(fe)&&_e(ne.bucket)?(u(),d("text",{key:0,x:Et(fe),y:cl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(_e(ne.bucket)),9,Fd)):Y("",!0)],64))),128))],8,wd)),I.value.visible&&I.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:Z.value+"px",top:k.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(_e(w.value[I.value.idx].bucket)),1),n("div",null,"Requests: "+h(le.value[I.value.idx]),1),U.value[I.value.idx]>0?(u(),d("div",Od," Errors: "+h(U.value[I.value.idx]),1)):Y("",!0)],4)):Y("",!0)],512))]),n("div",Dd,[A[9]||(A[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),be(" Requests ")],-1)),w.value.some(ne=>(ne.errorCount??0)>0)?(u(),d("span",Id,[...A[8]||(A[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),be(" Errors ",-1)])])):Y("",!0)])]),n("div",Bd,[n("div",Nd,[A[10]||(A[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(u(),d("div",jd," No data yet ")):(u(),d("ul",Hd,[(u(!0),d(q,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#requests?url=${encodeURIComponent(Be(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(ne)},h(Be(ne)),9,qd),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,Ud)]))),128))]))]),n("div",Kd,[A[14]||(A[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",Vd,[n("li",null,[A[11]||(A[11]=n("span",null,"Total Queries",-1)),n("span",zd,h(v.value.queryStats.total),1)]),n("li",null,[A[12]||(A[12]=n("span",null,"Avg Duration",-1)),n("span",Wd,h(x(Dt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[A[13]||(A[13]=n("span",null,"Queries / Request",-1)),n("span",Jd,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Qd,[A[15]||(A[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(u(),d("div",Gd," No recent errors ")):(u(),d("ul",Yd,[(u(!0),d(q,null,ye(v.value.recentErrors,(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,Zd),ne.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:x(It)(ne.timestamp)},h(x(bt)(ne.timestamp)),9,ef)):Y("",!0)],8,Xd)]))),128))]))]),n("div",tf,[A[16]||(A[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(u(),d("div",sf," No events yet ")):(u(),d("ul",nf,[(u(!0),d(q,null,ye(v.value.topEvents.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#events?event_name=${encodeURIComponent(Ze(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Ze(ne)),1),n("span",of,h(ne.count),1)],8,lf)]))),128))]))]),n("div",af,[A[20]||(A[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",rf,[n("li",null,[n("a",uf,[A[17]||(A[17]=n("span",null,"Sent",-1)),n("span",cf,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",df,[A[18]||(A[18]=n("span",null,"Queued",-1)),n("span",ff,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",hf,[A[19]||(A[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",pf,[A[25]||(A[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",vf,[n("li",null,[n("a",gf,[A[21]||(A[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",yf,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",mf,[A[22]||(A[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",bf,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",_f,[A[23]||(A[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",xf,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",wf,[A[24]||(A[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",$f,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(u(),d("div",kf,[A[29]||(A[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Sf,[n("li",null,[n("a",Cf,[A[26]||(A[26]=n("span",null,"Keys",-1)),n("span",Tf,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Ef,[A[27]||(A[27]=n("span",null,"Hit Rate",-1)),n("span",Pf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Rf,[A[28]||(A[28]=n("span",null,"Memory",-1)),n("span",Mf,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):Y("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(u(),d("div",Af,[A[34]||(A[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Lf,[n("li",null,[n("a",Ff,[A[30]||(A[30]=n("span",null,"Active",-1)),n("span",Of,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Df,[A[31]||(A[31]=n("span",null,"Waiting",-1)),n("span",If,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Bf,[A[32]||(A[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",Nf,[A[33]||(A[33]=n("span",null,"Completed",-1)),n("span",jf,h(v.value.jobQueueStatus.completed),1)])])])])):Y("",!0),n("div",Hf,[A[39]||(A[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",Uf,[n("li",null,[n("a",qf,[A[35]||(A[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",Kf,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",Vf,[A[36]||(A[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",zf,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",Wf,[A[37]||(A[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",Jf,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Qf,[A[38]||(A[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Gf,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",Yf,[A[40]||(A[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(u(),d("div",Xf," No query data yet ")):(u(),d("ul",Zf,[(u(!0),d(q,null,ye(v.value.slowestQueries.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ne)},h(Ye(ne)),9,th),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,eh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-6c6eb892"]])},Symbol.toStringTag,{value:"Module"}));function dl(e="",t){let s=null;return function(){return s||(s=new ol({baseUrl:e,authToken:t})),s}}function zt(e){const t=K(null);let s=null;function l(){s&&s(),s=null,Dn(()=>{t.value&&(s=Du(t.value))})}return e&&ut(e,l),Ft(l),so(()=>{s&&s(),s=null}),{tableRef:t}}const nh={class:"ss-dash-filter-bar"},lh={key:0,class:"ss-dash-summary"},oh={class:"ss-dash-search-wrapper"},ih=["viewBox","innerHTML"],ah=["value","placeholder"],rh={key:1,class:"ss-dash-filter-controls"},jt=Oe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function i(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",nh,[e.summary?(u(),d("span",lh,h(e.summary),1)):Y("",!0),n("div",oh,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:x(Le).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).search.elements.join("")},null,8,ih)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,ah),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:i}," × ")):Y("",!0)]),o.$slots.default?(u(),d("div",rh,[Aa(o.$slots,"default")])):Y("",!0)]))}}),uh={key:0,class:"ss-dash-pagination"},ch={class:"ss-dash-page-info"},dh={class:"ss-dash-pagination-controls"},fh=["disabled"],hh={key:0,class:"ss-dash-page-ellipsis"},ph=["onClick"],vh=["disabled"],hs=Oe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,i=H(()=>Su(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",uh,[n("span",ch," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",dh,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,fh),(u(!0),d(q,null,ye(i.value,(r,c)=>(u(),d(q,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",hh,"...")):(u(),d("button",{key:1,type:"button",class:L(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,ph))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=r=>l("pageChange",e.page+1))}," Next » ",8,vh)])])):Y("",!0)}}),gh={key:0,class:"ss-dash-empty"},yh={class:"ss-dash-tl-legend"},mh=["title"],bh={class:"ss-dash-tl-track"},_h=["title"],xh={class:"ss-dash-tl-dur"},wh={key:0,class:"ss-dash-tl-warnings"},$h={class:"ss-dash-tl-warnings-title"},gi=Oe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},i=H(()=>t.spans||[]),o=H(()=>[...i.value].sort((_,C)=>_.startOffset-C.startOffset)),a=H(()=>{const _={};for(const C of o.value)_[C.id]=C.parentId?(_[C.parentId]||0)+1:0;return _});function r(_){const C=t.totalDuration||1;return`${_.startOffset/C*100}%`}function c(_){const C=t.totalDuration||1;return`${Math.max(_.duration/C*100,.5)}%`}function g(_){return _.length>50?_.slice(0,50)+"...":_}function p(_){return _==="db"?"DB":_}function m(_){return _==="db"?"purple":_==="mail"?"green":_==="event"?"amber":_==="view"?"blue":"muted"}function v(_){const C=_.metadata?Object.entries(_.metadata).filter(([,$])=>$!=null).map(([$,T])=>`${$}=${T}`).join(", "):"";return C?`${_.label} (${_.duration.toFixed(2)}ms)
5
+ ${C}`:`${_.label} (${_.duration.toFixed(2)}ms)`}return(_,C)=>i.value.length===0?(u(),d("div",gh,"No spans recorded")):(u(),d("div",{key:1,class:L(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",yh,[(u(),d(q,null,ye(l,($,T)=>n("div",{key:T,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[T]||s.custom})},null,4),n("span",null,h($),1)])),64))]),(u(!0),d(q,null,ye(o.value,$=>(u(),d("div",{key:$.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v($),style:Ke({paddingLeft:8+(a.value[$.id]||0)*16+"px"})},[n("span",{class:L(`ss-dash-badge ss-dash-badge-${m($.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p($.category)),3),be(" "+h(g($.label)),1)],12,mh),n("div",bh,[n("div",{class:L(`ss-dash-tl-bar ss-dash-tl-bar-${$.category||"custom"}`),style:Ke({left:r($),width:c($)}),title:v($)},null,14,_h)]),n("span",xh,h($.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",wh,[n("div",$h,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(q,null,ye(e.warnings,($,T)=>(u(),d("div",{key:T,class:"ss-dash-tl-warning"},h($),1))),128))])):Y("",!0)],2))}}),Ls=Oe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=K(t.defaultExpanded),l=H(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return an(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return an(t.value,t.maxLen||100)}),i=H(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(i.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:L(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-cell`)},[s.value?Y("",!0):(u(),d("span",{key:0,class:L(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:L(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:nt(a,["stop"])}," Copy ",2),n("pre",null,h(i.value),1)],2)):Y("",!0)],2))}}),kh={key:0},Sh={class:"ss-related-logs-title"},Ch={class:"ss-related-logs-count"},Th={style:{overflow:"auto"}},Eh=["onClick"],Ph=["title"],Rh=["title"],Mh={key:1,class:"ss-log-reqid-empty"},Ah={key:3,style:{width:"14px"}},Lh={class:"ss-log-msg"},Fh={key:0,class:"ss-log-detail"},Oh=Oe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=K(null);function s(l,i){i&&(t.value=t.value===l?null:l)}return(l,i)=>e.logs.length>0?(u(),d("div",kh,[n("div",Sh,[i[0]||(i[0]=be(" Related Logs ",-1)),n("span",Ch,"("+h(e.logs.length)+")",1)]),n("div",Th,[(u(!0),d(q,null,ye(e.logs,(o,a)=>(u(),d(q,{key:o.id||a},[n("div",{class:L(["ss-log-entry",x(_t)(o)?"ss-log-entry-expandable":""]),onClick:r=>s(a,!!x(_t)(o))},[n("span",{class:L(["ss-log-level",x(di)(x(rn)(o),"ss-log-level")])},h(x(rn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:x(Bt)(o)?x(It)(x(Bt)(o)):""},h(x(Bt)(o)?x(bt)(x(Bt)(o)):"-"),9,Ph),x(Nt)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:x(Nt)(o)},h(x(Nt)(o).slice(0,8)),9,Rh)):(u(),d("span",Mh,"--")),x(_t)(o)?(u(),d("span",{key:2,class:L(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Ah)),n("span",Lh,h(x(ci)(o)),1)],10,Eh),t.value===a&&x(_t)(o)?(u(),d("div",Fh,[me(Ls,{value:x(_t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):Y("",!0)],64))),128))])])):Y("",!0)}});function Dh(e){const{container:t,handle:s,topPane:l,bottomPane:i,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const g=parseFloat(c);g>0&&g<1&&(l.style.flex=`${g}`,i.style.flex=`${1-g}`)}}function r(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,m=c.clientY,v=l.getBoundingClientRect().height;function _($){const T=$.clientY-m;let F=v+T;const R=p-a-s.offsetHeight;F=Math.max(a,Math.min(F,R));const y=F/(p-s.offsetHeight);l.style.flex=`${y}`,i.style.flex=`${1-y}`}function C(){if(s.removeEventListener("pointermove",_),s.removeEventListener("pointerup",C),o){const $=t.getBoundingClientRect().height-s.offsetHeight;if($>0){const T=l.getBoundingClientRect().height/$;localStorage.setItem(o,String(T))}}}s.addEventListener("pointermove",_),s.addEventListener("pointerup",C)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}const Ih={class:"ss-dash-tl-detail-header"},Bh={style:{color:"var(--ss-text)"}},Nh={class:"ss-dash-tl-meta"},jh={class:"ss-dash-tl-detail-header"},Hh={key:0,class:"ss-dash-empty"},Uh={key:1,class:"ss-dash-empty"},qh={class:"ss-dash-table-wrap"},Kh={key:0,class:"ss-dash-sort-arrow"},Vh={key:0,class:"ss-dash-sort-arrow"},zh={key:0,class:"ss-dash-sort-arrow"},Wh={key:0,class:"ss-dash-sort-arrow"},Jh={key:0,class:"ss-dash-sort-arrow"},Qh=["onClick"],Gh={style:{color:"var(--ss-dim)"}},Yh=["title"],Xh={style:{color:"var(--ss-muted)","text-align":"center"}},Zh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},ep={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},tp=["title"],sp={key:1,class:"ss-dash-empty"},np=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,sort:g,goToPage:p,setSearch:m,setSort:v}=lt(()=>"requests",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=K(""),C=K(null),$=K(!1),T=K(null),F=H(()=>{if(!o.value)return[];const we=o.value;return we.data||we.requests||o.value||[]}),R=dl(i,l);async function y(we){const J=we.id;$.value=!0;try{const j=s||"/__stats/api",E=await R().fetch(`${j}/requests/${J}`),M=E.trace,X=M?{...E,...M,logs:E.logs}:E;T.value=zu(X),C.value=we}catch{}finally{$.value=!1}}function w(){C.value=null,T.value=null}function S(we){_.value=we,m(we)}function W(we){v(we)}function te(we){return al(we,"ss-dash")}const{tableRef:se}=zt(()=>F.value),ee=K(null),ge=K(null),Te=K(null),_e=K(null);let Pe=null;const ke=H(()=>T.value?T.value.logs||[]:[]);return ut([()=>C.value,()=>T.value],async()=>{Pe?.(),Pe=null,T.value&&ke.value.length>0&&(await Dn(),ee.value&&ge.value&&Te.value&&_e.value&&(Pe=Dh({container:ee.value,handle:ge.value,topPane:Te.value,bottomPane:_e.value,storageKey:"ss-requests-split"})))}),St(()=>{Pe?.()}),(we,J)=>(u(),d("div",null,[T.value&&C.value?(u(),d(q,{key:0},[n("div",Ih,[n("button",{type:"button",class:"ss-dash-btn",onClick:w}," ← Back to Requests "),n("span",{class:L(`ss-dash-method ss-dash-method-${(T.value.method||"").toLowerCase()}`)},h(T.value.method),3),n("span",Bh,h(T.value.url),1),n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((T.value.statusCode||200)/100)}xx`)},h(T.value.statusCode),3),n("span",Nh,h(T.value.totalDuration.toFixed(1))+"ms · "+h(T.value.spanCount)+" spans ",1)]),ke.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ee,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Te,class:"ss-dash-split-top"},[me(gi,{spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:ge,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:_e,class:"ss-dash-split-bottom"},[me(Oh,{logs:ke.value},null,8,["logs"])],512)],512)):(u(),Xe(gi,{key:1,spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):$.value?(u(),d(q,{key:1},[n("div",jh,[n("button",{type:"button",class:"ss-dash-btn",onClick:J[0]||(J[0]=j=>$.value=!1)}," ← Back to Requests ")]),J[6]||(J[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(q,{key:2},[me(jt,{"model-value":_.value,placeholder:"Filter requests...",summary:`${x(c).total??0} requests`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),x(r)?(u(),d("div",Hh,"Failed to load requests")):Y("",!0),x(a)&&!x(o)?(u(),d("div",Uh,"Loading requests...")):(u(),d(q,{key:2},[n("div",qh,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[J[15]||(J[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[J[12]||(J[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:J[1]||(J[1]=j=>W("method"))},[J[7]||(J[7]=be(" Method ",-1)),x(g).column==="method"?(u(),d("span",Kh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[2]||(J[2]=j=>W("url"))},[J[8]||(J[8]=be(" URL ",-1)),x(g).column==="url"?(u(),d("span",Vh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[3]||(J[3]=j=>W("statusCode"))},[J[9]||(J[9]=be(" Status ",-1)),x(g).column==="statusCode"?(u(),d("span",zh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[4]||(J[4]=j=>W("duration"))},[J[10]||(J[10]=be(" Duration ",-1)),x(g).column==="duration"?(u(),d("span",Wh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),J[13]||(J[13]=n("th",null,"Spans",-1)),J[14]||(J[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:J[5]||(J[5]=j=>W("createdAt"))},[J[11]||(J[11]=be(" Time ",-1)),x(g).column==="createdAt"?(u(),d("span",Jh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)])])]),n("tbody",null,[(u(!0),d(q,null,ye(F.value,j=>(u(),d("tr",{key:j.id,class:"ss-dash-clickable",onClick:k=>y(j)},[n("td",null,[n("span",Gh,h(j.id),1)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(j.method||"").toLowerCase()}`)},h(j.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:j.url},h(j.url),9,Yh)]),n("td",null,[n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((j.status_code||j.statusCode||200)/100)}xx`)},h(j.status_code||j.statusCode),3)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${te(j.total_duration||j.totalDuration||j.duration||0)}`)},h((j.total_duration||j.totalDuration||j.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",Xh,h(j.span_count||j.spanCount||0),1)]),n("td",null,[(j.warning_count||j.warningCount||0)>0?(u(),d("span",Zh,h(j.warning_count||j.warningCount||0),1)):(u(),d("span",ep,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(j.createdAt||j.created_at||j.timestamp||"")},h(x(bt)(j.createdAt||j.created_at||j.timestamp||"")),9,tp)])],8,Qh))),128))])],512)):(u(),d("div",sp,"No requests recorded yet"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lp={class:"ss-dash-btn-group"},op={key:0,class:"ss-dash-empty"},ip={key:1,class:"ss-dash-table-wrap"},ap={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},up={key:0,class:"ss-dash-sort-arrow"},cp=["onClick","onKeydown"],dp={key:0,class:"ss-dash-dup"},fp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},hp={class:"ss-dash-duration"},pp={class:"ss-dash-duration"},vp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},gp={key:1,class:"ss-dash-empty"},yp={class:"ss-dash-table-wrap"},mp={key:0,class:"ss-dash-sort-arrow"},bp={key:0,class:"ss-dash-sort-arrow"},_p={style:{color:"var(--ss-dim)"}},xp=["onClick","onKeydown"],wp={key:0,class:"ss-dash-dup"},$p=["title"],kp={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Sp=["title"],Cp=["disabled","onClick"],Tp={key:0,class:"ss-dash-explain-row"},Ep={colspan:"8",class:"ss-dash-explain"},Pp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Rp={style:{flex:"1"}},Mp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Ap={key:0},Lp={key:1,class:"ss-dash-explain-result"},Fp={key:2,class:"ss-dash-explain-result"},Op={key:3,class:"ss-dash-explain-result"},Dp={key:1,class:"ss-dash-empty"};function yi(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",i=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",a=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const c=e.Plans||[];return ds("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[ds("div",{class:"ss-dash-explain-node-header"},[ds("span",{class:"ss-dash-explain-node-type"},l),i?[" on ",ds("strong",null,i)]:null,o||null,a?[" using ",ds("em",null,a)]:null]),r.length>0?ds("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,p)=>yi(g,t+1))])}const mi=Oe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>yi(e.node,e.depth)}}),Ip=Oe({...{components:{ExplainPlanNode:mi}},__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),o=K("list"),a=K(null),r=K(null),c=K(null),g=H(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:p,loading:m,pagination:v,sort:_,goToPage:C,setSearch:$,setSort:T,explainQuery:F}=lt(()=>g.value,{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),R=K(""),y=H(()=>p.value?o.value==="grouped"?p.value.groups||[]:p.value.data||p.value||[]:[]),w=H(()=>o.value!=="grouped"?y.value:y.value.map(k=>{const E={...k};return(E.sqlNormalized===null||E.sqlNormalized===void 0&&(k.sql_normalized||k.pattern))&&(E.sqlNormalized=k.sql_normalized||k.pattern||""),(E.count===null||E.count===void 0)&&k.total_count!==null&&k.total_count!==void 0&&(E.count=k.total_count),(E.avgDuration===null||E.avgDuration===void 0)&&k.avg_duration!==null&&k.avg_duration!==void 0&&(E.avgDuration=k.avg_duration),(E.maxDuration===null||E.maxDuration===void 0)&&k.max_duration!==null&&k.max_duration!==void 0&&(E.maxDuration=k.max_duration),(E.minDuration===null||E.minDuration===void 0)&&k.min_duration!==null&&k.min_duration!==void 0&&(E.minDuration=k.min_duration),(E.totalDuration===null||E.totalDuration===void 0)&&k.total_duration!==null&&k.total_duration!==void 0&&(E.totalDuration=k.total_duration),(E.percentOfTotal===null||E.percentOfTotal===void 0)&&k.pct_time!==null&&k.pct_time!==void 0&&(E.percentOfTotal=k.pct_time),E})),S=H(()=>{const k=new Map;for(const E of w.value){const M=E.sqlNormalized||E.sql||E.sql_text||"";k.set(M,(k.get(M)||0)+1)}return k}),W=H(()=>{const k=v.total??w.value.length;let E=0,M=0,X=0,ue=0;for(const le of w.value){const U=le.duration||0;X+=U,ue++,U>ni&&E++}for(const le of S.value.values())le>1&&(M+=le);return{total:k,slow:E,duplicates:M,avgDuration:ue>0?X/ue:0}}),te=H(()=>{if(o.value==="grouped")return`${w.value.length} query patterns`;const k=[`${W.value.total} queries`];return W.value.slow>0&&k.push(`${W.value.slow} slow`),W.value.duplicates>0&&k.push(`${W.value.duplicates} dup`),k.push(`avg ${(W.value.avgDuration||0).toFixed(1)}ms`),k.join(", ")});function se(k){R.value=k,$(k)}function ee(k){k!==o.value&&(o.value=k,a.value=null,r.value=null,c.value=null)}function ge(k){T(k)}async function Te(k){if(r.value&&r.value.queryId===k){r.value=null;return}c.value=k;try{const E=await F(k);E&&E.error?r.value={queryId:k,plan:[],error:E.error,message:E.message}:r.value={queryId:k,plan:E?.plan||E?.rows||[]}}catch(E){r.value={queryId:k,plan:[],error:E instanceof Error?E.message:String(E)}}finally{c.value=null}}function _e(k){return al(k,"ss-dash")}function Pe(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?[]:Object.keys(k[0])}function ke(k,E){if(!k||typeof k!="object")return"-";const M=k[E];return M!=null?String(M):"-"}function we(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?!1:"Plan"in k[0]}function J(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?{}:k[0].Plan}const{tableRef:j}=zt(()=>w.value);return(k,E)=>(u(),d("div",null,[me(jt,{"model-value":R.value,placeholder:"Filter queries...",summary:te.value,"onUpdate:modelValue":se},{default:ss(()=>[n("div",lp,[n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:E[0]||(E[0]=M=>ee("list"))}," List ",2),n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:E[1]||(E[1]=M=>ee("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),x(m)&&!x(p)?(u(),d("div",op,"Loading queries...")):o.value==="grouped"?(u(),d("div",ip,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[E[11]||(E[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:E[2]||(E[2]=M=>ge("count"))},[E[8]||(E[8]=be(" Count ",-1)),x(_).column==="count"?(u(),d("span",ap,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:E[3]||(E[3]=M=>ge("avgDuration"))},[E[9]||(E[9]=be(" Avg ",-1)),x(_).column==="avgDuration"?(u(),d("span",rp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[12]||(E[12]=n("th",null,"Min",-1)),E[13]||(E[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:E[4]||(E[4]=M=>ge("totalDuration"))},[E[10]||(E[10]=be(" Total ",-1)),x(_).column==="totalDuration"?(u(),d("span",up,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[14]||(E[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,(M,X)=>(u(),d("tr",{key:X},[n("td",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["stop"]),onKeydown:Rs(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["enter"])},h(M.sqlNormalized),43,cp),(M.count||0)>=3?(u(),d("span",dp,"DUP")):Y("",!0)]),n("td",null,[n("span",fp,h(M.count||0),1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.avgDuration||0)}`)},h((M.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",hp,h((M.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.maxDuration||0)}`)},h((M.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",pp,h((M.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",vp,h((M.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",gp,"No queries recorded"))])):(u(),d(q,{key:2},[n("div",yp,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[E[24]||(E[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[E[17]||(E[17]=n("th",null,"#",-1)),E[18]||(E[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:E[5]||(E[5]=M=>ge("duration"))},[E[15]||(E[15]=be(" Duration ",-1)),x(_).column==="duration"?(u(),d("span",mp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[19]||(E[19]=n("th",null,"Method",-1)),E[20]||(E[20]=n("th",null,"Model",-1)),E[21]||(E[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:E[6]||(E[6]=M=>ge("createdAt"))},[E[16]||(E[16]=be(" Time ",-1)),x(_).column==="createdAt"?(u(),d("span",bp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[22]||(E[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,M=>(u(),d(q,{key:M.id},[n("tr",null,[n("td",null,[n("span",_p,h(M.id),1)]),n("td",null,[n("div",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(X=>a.value=a.value===M.id?null:M.id,["stop"]),onKeydown:Rs(X=>a.value=a.value===M.id?null:M.id,["enter"])},h(M.sql||M.sql_text||""),43,xp),(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")??0)>1?(u(),d("span",wp," ×"+h(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")),1)):Y("",!0)])]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.duration||0)}`)},h((M.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(M.method||M.sql_method||"").toLowerCase()}`)},h(M.method||M.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:M.model},h(M.model||"-"),9,$p)]),n("td",null,[n("span",kp,h(M.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(M.createdAt||M.created_at||M.timestamp||"")},h(x(bt)(M.createdAt||M.created_at||M.timestamp||"")),9,Sp)]),n("td",null,[(M.method||M.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:L(`ss-dash-explain-btn${r.value?.queryId===M.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===M.id,onClick:nt(X=>Te(M.id),["stop"])},h(c.value===M.id?"...":"EXPLAIN"),11,Cp)):Y("",!0)])]),r.value&&r.value.queryId===M.id?(u(),d("tr",Tp,[n("td",Ep,[n("div",Pp,[n("div",Rp,[r.value.error?(u(),d("div",Mp,[E[23]||(E[23]=n("strong",null,"Error:",-1)),be(" "+h(r.value.error)+" ",1),r.value.message?(u(),d("br",Ap)):Y("",!0),be(" "+h(r.value.message),1)])):we()?(u(),d("div",Lp,[me(x(mi),{node:J(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Fp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(q,null,ye(Pe(),X=>(u(),d("th",{key:X},h(X),1))),128))])]),n("tbody",null,[(u(!0),d(q,null,ye(r.value.plan,(X,ue)=>(u(),d("tr",{key:ue},[(u(!0),d(q,null,ye(Pe(),le=>(u(),d("td",{key:le},h(ke(X,le)),1))),128))]))),128))])])])):(u(),d("div",Op,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:E[7]||(E[7]=X=>r.value=null)}," Close ")])])])):Y("",!0)],64))),128))])],512)):(u(),d("div",Dp,"No queries recorded"))]),x(v).totalPages>1?(u(),Xe(hs,{key:0,page:x(v).page,"last-page":x(v).totalPages,total:x(v).total,onPageChange:x(C)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}}),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:Ip},Symbol.toStringTag,{value:"Module"})),Np={key:0,class:"ss-dash-empty"},jp={class:"ss-dash-table-wrap"},Hp={style:{color:"var(--ss-dim)"}},Up=["title"],qp=["title"],Kp={key:1,class:"ss-dash-empty"},Vp=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g}=lt(()=>"events",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=K(""),m=H(()=>{if(!o.value)return[];const C=o.value;return C.data||C.events||o.value||[]});function v(C){p.value=C,g(C)}const{tableRef:_}=zt(()=>m.value);return(C,$)=>(u(),d("div",null,[me(jt,{"model-value":p.value,placeholder:"Filter events...",summary:`${x(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Np,"Loading events...")):(u(),d(q,{key:1},[n("div",jp,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:_,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),$[1]||($[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(m.value,T=>(u(),d("tr",{key:T.id},[n("td",null,[n("span",Hp,h(T.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:T.event_name||T.eventName||T.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.event_name||T.eventName||T.event||""),9,Up)]),n("td",null,[me(Ls,{value:T.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(T.createdAt||T.created_at||T.timestamp)},h(x(bt)(T.createdAt||T.created_at||T.timestamp)),9,qp)])]))),128))])],512)):(u(),d("div",Kp,"No events recorded yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),zp={key:0,class:"ss-dash-empty"},Wp={key:1,class:"ss-dash-empty"},Jp={key:2,class:"ss-dash-table-wrap"},Qp=["title"],Gp=["title"],Yp=["title"],Xp=["title"],Zp={key:1,class:"ss-dash-empty"},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,setSearch:c}=lt(()=>"routes",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=K(""),p=H(()=>{if(!o.value)return[];const _=o.value;return Array.isArray(_)?_:Array.isArray(_.routes)?_.routes:Array.isArray(_.data)?_.data:[]});function m(_){g.value=_,c(_)}const{tableRef:v}=zt(()=>p.value);return(_,C)=>(u(),d("div",null,[me(jt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),x(r)?(u(),d("div",zp,"Failed to load routes")):x(a)&&!x(o)?(u(),d("div",Wp,"Loading routes...")):(u(),d("div",Jp,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[C[0]||(C[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),C[1]||(C[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(p.value,($,T)=>(u(),d("tr",{key:$.pattern||T},[n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${($.method||"").toLowerCase()}`)},h($.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.pattern},h($.pattern),9,Qp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.name||"-"},h($.name||"-"),9,Gp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.handler},h($.handler),9,Yp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.middleware?.length?$.middleware.join(", "):"-"},h($.middleware?.length?$.middleware.join(", "):"-"),9,Xp)])]))),128))])],512)):(u(),d("div",Zp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),tv={class:"ss-dash-log-filters"},sv=["onClick"],nv=["value"],lv={class:"ss-dash-structured-search"},ov=["value"],iv=["value"],av=["value"],rv={key:0,class:"ss-dash-filter-chips"},uv={key:0,class:"ss-dash-filter-chip"},cv={key:1,class:"ss-dash-filter-chip"},dv=["onClick"],fv={key:1,class:"ss-dash-empty"},hv={key:2,class:"ss-dash-empty"},pv={key:3,class:"ss-dash-empty"},vv={key:4,class:"ss-dash-log-entries"},gv=["onClick"],yv=["title"],mv=["title","onClick","onKeydown"],bv={key:1,class:"ss-dash-log-reqid-empty"},_v={key:3,style:{width:"14px"}},xv={class:"ss-dash-log-msg"},wv={key:0,class:"ss-dash-log-detail"},$v=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,filter:g,goToPage:p,setSearch:m,setFilter:v,refresh:_}=lt(()=>"logs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K(""),F=K(""),R=K(null),y=K([]),w=K("level"),S=K("equals"),W=K(""),te=H(()=>{if(!o.value)return[];const X=o.value;return X.data||X.logs||o.value||[]}),se=H(()=>$.value!=="all"||T.value!==""||y.value.length>0);function ee(X,ue){ue&&(R.value=R.value===X?null:X)}function ge(X){C.value=X,m(X)}function Te(X){$.value=X,X==="all"?v("level",""):v("level",X)}function _e(X){T.value=X,F.value=X,v("request_id",X)}function Pe(){const X=F.value.trim();T.value=X,v("request_id",X)}function ke(){T.value="",F.value="",v("request_id","")}function we(){$.value="all",v("level","")}function J(){const X=g;for(const ue of Object.keys(X))(ue.startsWith("filter_field_")||ue.startsWith("filter_op_")||ue.startsWith("filter_value_"))&&delete X[ue];y.value.forEach((ue,le)=>{X[`filter_field_${le}`]=ue.field,X[`filter_op_${le}`]=ue.operator,X[`filter_value_${le}`]=ue.value}),c.page=1,_()}function j(){const X=W.value.trim();X&&(y.value.push({field:w.value,operator:S.value,value:X}),W.value="",J())}function k(X){y.value.splice(X,1),J()}function E(X){return X.target.value}function M(X){return X.target.value}return(X,ue)=>(u(),d("div",null,[me(jt,{"model-value":C.value,placeholder:"Search logs...",summary:`${x(c).total??0} logs`,"onUpdate:modelValue":ge},{default:ss(()=>[n("div",tv,[(u(!0),d(q,null,ye(x(Bu),le=>(u(),d("button",{key:le,type:"button",class:L(`ss-dash-log-filter ${$.value===le?"ss-dash-active":""}`),onClick:U=>Te(le)},h(le),11,sv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:F.value,onInput:ue[0]||(ue[0]=le=>F.value=E(le)),onKeydown:Rs(Pe,["enter"])},null,40,nv),F.value||T.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:ke}," Clear ")):Y("",!0)])]),_:1},8,["model-value","summary"]),n("div",lv,[n("select",{class:"ss-dash-filter-select",value:w.value,onChange:ue[1]||(ue[1]=le=>w.value=M(le))},[...ue[4]||(ue[4]=[hr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,ov),n("select",{class:"ss-dash-filter-select",value:S.value,onChange:ue[2]||(ue[2]=le=>S.value=M(le))},[...ue[5]||(ue[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,iv),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:W.value,onInput:ue[3]||(ue[3]=le=>W.value=E(le)),onKeydown:Rs(j,["enter"])},null,40,av),n("button",{type:"button",class:"ss-dash-btn",onClick:j},"Add")]),se.value?(u(),d("div",rv,[$.value!=="all"?(u(),d("span",uv,[be(" level: "+h($.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):Y("",!0),T.value?(u(),d("span",cv,[be(" requestId: "+h(T.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ke}," × ")])):Y("",!0),(u(!0),d(q,null,ye(y.value,(le,U)=>(u(),d("span",{key:U,class:"ss-dash-filter-chip"},[be(h(le.field)+" "+h(le.operator)+' "'+h(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:oe=>k(U)}," × ",8,dv)]))),128))])):Y("",!0),x(r)?(u(),d("div",fv,"Failed to load logs")):x(a)&&!x(o)?(u(),d("div",hv,"Loading logs...")):te.value.length===0?(u(),d("div",pv," No log entries"+h(T.value?` matching request ${T.value}`:$.value!=="all"?` for ${$.value}`:""),1)):(u(),d("div",vv,[(u(!0),d(q,null,ye(te.value,(le,U)=>(u(),d(q,{key:String(le.id||U)},[n("div",{class:L(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!x(_t)(le)}]),onClick:oe=>ee(U,!!x(_t)(le))},[n("span",{class:L(`ss-dash-log-level ${x(di)(x(rn)(le),"ss-dash-log-level")}`)},h(x(rn)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:x(Bt)(le)?x(It)(x(Bt)(le)):""},h(x(Bt)(le)?x(bt)(x(Bt)(le)):"-"),9,yv),x(Nt)(le)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:x(Nt)(le),role:"button",tabindex:"0",onClick:nt(oe=>_e(x(Nt)(le)),["stop"]),onKeydown:Rs(nt(oe=>_e(x(Nt)(le)),["stop"]),["enter"])},h(x(Nt)(le).slice(0,8)),41,mv)):(u(),d("span",bv,"--")),x(_t)(le)?(u(),d("span",{key:2,class:L(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":R.value===U}])},"▶",2)):(u(),d("span",_v)),n("span",xv,h(x(ci)(le)),1)],10,gv),R.value===U&&x(_t)(le)?(u(),d("div",wv,[me(Ls,{value:x(_t)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):Y("",!0)],64))),128))])),x(c).totalPages>1?(u(),Xe(hs,{key:5,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),kv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Sv={class:"ss-dash-email-preview-header"},Cv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Tv=["srcdoc"],Ev={key:0,class:"ss-dash-empty"},Pv={class:"ss-dash-table-wrap"},Rv=["onClick"],Mv={style:{color:"var(--ss-dim)"}},Av=["title"],Lv=["title"],Fv=["title"],Ov={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Dv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Iv=["title"],Bv=["title"],Nv={key:1,class:"ss-dash-empty"},jv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:p}=lt(()=>"emails",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=K(""),v=K(null),_=K(null),C=H(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function $(y){m.value=y,g(y)}async function T(y){if(y.html){v.value=y.id,_.value=y.html;return}const w=await p(y.id);v.value=y.id,_.value=w}function F(){v.value=null,_.value=null}const{tableRef:R}=zt(()=>C.value);return(y,w)=>(u(),d("div",null,[v.value&&_.value?(u(),d("div",kv,[n("div",Sv,[n("div",Cv,[C.value.find(S=>S.id===v.value)?(u(),d(q,{key:0},[w[4]||(w[4]=n("strong",null,"Subject:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.subject)+"   |  ",1),w[5]||(w[5]=n("strong",null,"From:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.from_addr||C.value.find(S=>S.id===v.value)?.from)+"   |  ",1),w[6]||(w[6]=n("strong",null,"To:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.to_addr||C.value.find(S=>S.id===v.value)?.to)+" ",1),C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr?(u(),d(q,{key:0},[w[0]||(w[0]=be("   |  ",-1)),w[1]||(w[1]=n("strong",null,"CC:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr),1)],64)):Y("",!0),w[7]||(w[7]=be("   |  ",-1)),w[8]||(w[8]=n("strong",null,"Status:",-1)),n("span",{class:L(`ss-dash-badge ss-dash-email-status-${C.value.find(S=>S.id===v.value)?.status}`)},h(C.value.find(S=>S.id===v.value)?.status),3),C.value.find(S=>S.id===v.value)?.mailer?(u(),d(q,{key:1},[w[2]||(w[2]=be("   |  ",-1)),w[3]||(w[3]=n("strong",null,"Mailer:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.mailer),1)],64)):Y("",!0)],64)):Y("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:F}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:_.value,title:"Email preview",sandbox:""},null,8,Tv)])):(u(),d(q,{key:1},[me(jt,{"model-value":m.value,placeholder:"Filter emails...",summary:`${x(r).total??0} emails`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Ev,"Loading emails...")):(u(),d(q,{key:1},[n("div",Pv,[C.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:R,class:"ss-dash-table"},[w[9]||(w[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),w[10]||(w[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(C.value,S=>(u(),d("tr",{key:S.id,class:"ss-dash-clickable ss-dash-email-row",onClick:W=>T(S)},[n("td",null,[n("span",Mv,h(S.id),1)]),n("td",null,[n("span",{title:S.from_addr||S.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.from_addr||S.from||""),9,Av)]),n("td",null,[n("span",{title:S.to_addr||S.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.to_addr||S.to||""),9,Lv)]),n("td",null,[n("span",{title:S.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.subject||""),9,Fv)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-email-status-${S.status||""}`)},h(S.status),3)]),n("td",null,[(S.attachment_count||S.attachmentCount||0)>0?(u(),d("span",Ov,h(S.attachment_count||S.attachmentCount||0),1)):(u(),d("span",Dv,"-"))]),n("td",null,[n("span",{title:S.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.mailer||""),9,Iv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(S.createdAt||S.created_at||S.timestamp)},h(x(bt)(S.createdAt||S.created_at||S.timestamp)),9,Bv)])],8,Rv))),128))])],512)):(u(),d("div",Nv,"No emails captured yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Hv={key:0,class:"ss-dash-cache-stats"},Uv={class:"ss-dash-cache-stat"},qv={class:"ss-dash-cache-stat-value"},Kv={class:"ss-dash-cache-stat"},Vv={class:"ss-dash-cache-stat-value"},zv={class:"ss-dash-cache-stat"},Wv={class:"ss-dash-cache-stat-value"},Jv={class:"ss-dash-cache-stat"},Qv={class:"ss-dash-cache-stat-value"},Gv={key:1,class:"ss-dash-empty"},Yv={key:2,class:"ss-dash-empty"},Xv={key:3,class:"ss-dash-table-wrap"},Zv=["onClick"],eg=["title"],tg={style:{color:"var(--ss-muted)"}},sg=["onClick"],ng={key:1,class:"ss-dash-empty"},lg={key:4,class:"ss-dash-cache-detail"},og={key:0,class:"ss-dash-empty"},ig={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},ag=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,setSearch:r,mutate:c}=lt(()=>"cache",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=dl(i||"",l),p=new ai(g(),s||"/__stats/api"),m=K(""),v=K(null),_=K(null),C=K(!1),$=K(null),T=H(()=>o.value),F=H(()=>T.value?.keys||T.value?.data||[]);function R(W){m.value=W,r(W)}async function y(W){if(confirm(`Delete cache key "${W}"?`))try{await c(`cache/${encodeURIComponent(W)}`,"delete"),v.value===W&&(v.value=null,_.value=null,$.value=null)}catch{}}const{tableRef:w}=zt(()=>F.value);async function S(W){if(v.value===W){v.value=null,_.value=null,$.value=null;return}v.value=W,_.value=null,$.value=null,C.value=!0;try{const te=await p.fetchCacheKey(W);_.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,$.value=null}catch{_.value=null,$.value="Failed to fetch key value"}finally{C.value=!1}}return(W,te)=>(u(),d("div",null,[T.value?.available&&T.value?.stats?(u(),d("div",Hv,[n("div",Uv,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",qv,h((T.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",Kv,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",Vv,h(T.value.stats.hits??0),1)]),n("div",zv,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",Wv,h(T.value.stats.misses??0),1)]),n("div",Jv,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",Qv,h(T.value.stats.totalKeys||T.value.stats.keyCount||F.value.length||0),1)])])):Y("",!0),me(jt,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${F.value.length} keys`,"onUpdate:modelValue":R},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Gv,"Loading cache...")):!T.value||!T.value.available?(u(),d("div",Yv," Cache inspector not available ")):(u(),d("div",Xv,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:w,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,se=>(u(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:ee=>S(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,eg)]),n("td",null,[n("span",tg,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?x(wu)(se.size):"-"),1),n("td",null,h(se.ttl>0?x(xu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:nt(ee=>y(se.key),["stop"])}," Delete ",8,sg)])],8,Zv))),128))])],512)):(u(),d("div",ng,"No cache keys found"))])),v.value?(u(),d("div",lg,[n("h4",null,"Key: "+h(v.value),1),C.value?(u(),d("div",og,"Loading value...")):$.value?(u(),d("div",ig,h($.value),1)):(u(),Xe(Ls,{key:2,value:_.value},null,8,["value"]))])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),rg={key:0,class:"ss-dash-job-stats"},ug={class:"ss-dash-job-stat"},cg={class:"ss-dash-job-stat-value"},dg={class:"ss-dash-job-stat"},fg={class:"ss-dash-job-stat-value"},hg={class:"ss-dash-job-stat"},pg={class:"ss-dash-job-stat-value"},vg={class:"ss-dash-job-stat"},gg={class:"ss-dash-job-stat-value"},yg={class:"ss-dash-job-stat"},mg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},bg={class:"ss-dash-btn-group"},_g=["onClick"],xg={key:1,class:"ss-dash-empty"},wg={key:2,class:"ss-dash-empty"},$g={class:"ss-dash-table-wrap"},kg={style:{color:"var(--ss-dim)"}},Sg=["title"],Cg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Tg={class:"ss-dash-duration"},Eg=["title"],Pg=["disabled","onClick"],Rg={key:1,class:"ss-dash-empty"},Mg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,goToPage:g,setSearch:p,setFilter:m,refresh:v,mutate:_}=lt(()=>"jobs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K({}),F=H(()=>Uu(o.value)),R=H(()=>qu(o.value));function y(te){C.value=te,p(te)}function w(te){$.value=te,te==="all"?m("status",""):m("status",te)}const{tableRef:S}=zt(()=>F.value);async function W(te){T.value[te]="pending";try{await _(`jobs/${te}/retry`),T.value[te]="success",setTimeout(()=>{delete T.value[te],v()},1e3)}catch{delete T.value[te]}}return(te,se)=>(u(),d("div",null,[R.value?(u(),d("div",rg,[n("div",ug,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",cg,h(R.value.active??0),1)]),n("div",dg,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",fg,h(R.value.waiting??0),1)]),n("div",hg,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",pg,h(R.value.delayed??0),1)]),n("div",vg,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",gg,h(R.value.completed??0),1)]),n("div",yg,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",mg,h(R.value.failed??0),1)])])):Y("",!0),me(jt,{"model-value":C.value,placeholder:"Filter jobs...",summary:`${x(c).total||F.value.length} jobs`,"onUpdate:modelValue":y},{default:ss(()=>[n("div",bg,[(u(!0),d(q,null,ye(x(ju),ee=>(u(),d("button",{key:ee,type:"button",class:L(`ss-dash-btn ${$.value===ee?"ss-dash-active":""}`),onClick:ge=>w(ee)},h(ee.charAt(0).toUpperCase()+ee.slice(1)),11,_g))),128))])]),_:1},8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",xg,"Loading jobs...")):x(r)?(u(),d("div",wg,"Jobs/Queue not available")):(u(),d(q,{key:3},[n("div",$g,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:S,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,ee=>(u(),d("tr",{key:ee.id},[n("td",null,[n("span",kg,h(ee.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:ee.name},h(ee.name),9,Sg)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-badge-${x(Hu)(ee.status)}`)},h(ee.status),3)]),n("td",null,[me(Ls,{value:ee.payload||ee.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Cg,h(ee.attempts||ee.attemptsMade||0),1)]),n("td",null,[n("span",Tg,h(ee.duration!==null&&ee.duration!==void 0?x(Dt)(ee.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)},h(x(bt)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)),9,Eg)]),n("td",null,[ee.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:T.value[ee.id]==="pending"||T.value[ee.id]==="success",onClick:nt(ge=>W(ee.id),["stop"])},h(T.value[ee.id]==="pending"?"...":T.value[ee.id]==="success"?"OK":"Retry"),9,Pg)):Y("",!0)])]))),128))])],512)):(u(),d("div",Rg,"No jobs found"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(g)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Ag={style:{position:"relative",flex:1}},Lg=["value"],Fg=["title","onClick"],Og=["viewBox","innerHTML"],Dg=["viewBox","innerHTML"],Ig=["onClick"],Bg={key:0},Ng=["title","onClick"],jg=["viewBox","innerHTML"],Hg=["viewBox","innerHTML"],Ug=["onClick"],qg={key:0},Kg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},Vg=["onClick"],zg=["title"],Wg=["title"],Jg=["title","onClick"],Qg=["viewBox","innerHTML"],Gg=["viewBox","innerHTML"],Yg=["onClick"],Xg=["title","onClick"],Zg=["viewBox","innerHTML"],e1=["viewBox","innerHTML"],t1={key:1,style:{color:"var(--ss-dim)"}},s1={key:3,style:{color:"var(--ss-amber-fg)"}},n1={key:4,style:{color:"var(--ss-purple-fg)"}},l1={key:5},o1=["onClick"],re="ss-dash",i1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),{data:o,loading:a}=lt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),r=K(""),c=K(""),g=K("app"),p=K(new Set),m=K("Copy JSON"),v=K(new Set),_=K(new Map);let C=null;function $(U){r.value=U,C&&clearTimeout(C),C=setTimeout(()=>{c.value=U},200)}function T(U){return U.target.value}const F=H(()=>o.value??null),R=H(()=>{const U=F.value?.env??{},oe=c.value.toLowerCase();return Object.entries(U).filter(([V,ie])=>{if(!oe)return!0;const De=Ie(ie)?ie.display:ie==null?"":String(ie);return V.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),y=H(()=>{const U=F.value?.app??{},oe=c.value.toLowerCase();return cn(U,"").filter(ie=>{const De=Ie(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),w=H(()=>{const U=F.value?.app??{};return cn(U,"").length}),S=H(()=>{const U=F.value?.app;return!U||typeof U!="object"||Array.isArray(U)||Ie(U)?[]:Object.keys(U)});function W(U){const oe=new Set(p.value);oe.has(U)?oe.delete(U):oe.add(U),p.value=oe}function te(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;if(!U)return;const oe=rc(U);p.value=new Set(oe)}function se(){p.value=new Set}function ee(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;navigator.clipboard?.writeText(JSON.stringify(U,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function ge(U){const oe=new Set(v.value);oe.has(U)?oe.delete(U):oe.add(U),v.value=oe}function Te(U,oe){_.value.set(U,oe)}function _e(U,oe,V){V.stopPropagation(),uc(U,_.value.get(oe)??null,re)}function Pe(U){return U!==null&&typeof U=="object"&&!Array.isArray(U)&&!Ie(U)}function ke(U,oe){return cn(U,oe)}function we(U,oe){return U.indexOf(oe+".")===0?U.slice(oe.length+1):U}function J(U){return ac(U)}function j(U){return Ie(U)?U.display:U==null?"null":String(U)}function k(U){const oe=F.value?.app;return!oe||typeof oe!="object"?null:oe[U]??null}function E(U,oe){return Ie(U)?oe?U.value:U.display:""}function M(){r.value="",c.value=""}function X(U){return Ie(U)?U.display:""}const ue=H(()=>Le.eye.elements.join("")),le=H(()=>Le["eye-off"].elements.join(""));return(U,oe)=>(u(),d("div",null,[n("div",{class:L(`${re}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:L(`${re}-config-tab${g.value==="app"?` ${re}-active`:""}`),onClick:oe[0]||(oe[0]=V=>g.value="app")}," App Config ",2),n("button",{type:"button",class:L(`${re}-config-tab${g.value==="env"?` ${re}-active`:""}`),onClick:oe[1]||(oe[1]=V=>g.value="env")}," Env ",2),n("div",Ag,[n("input",{type:"text",class:L(`${re}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:oe[2]||(oe[2]=V=>$(T(V)))},null,42,Lg),r.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:M}," × ")):Y("",!0)]),g.value==="app"&&!c.value?(u(),d(q,{key:0},[n("button",{type:"button",class:L(`${re}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:L(`${re}-btn`),onClick:se},"Collapse All",2)],64)):Y("",!0),n("button",{type:"button",class:L(`${re}-btn`),onClick:ee},h(m.value),3)],2),x(a)&&!x(o)?(u(),d("div",{key:0,class:L(`${re}-empty`)},"Loading config...",2)):F.value?g.value==="env"?(u(),d("div",{key:2,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table ${re}-config-env-table`)},[oe[4]||(oe[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(R.value,([V,ie])=>(u(),d("tr",{key:V},[n("td",{class:L(`${re}-env-key`)},[n("span",{class:L(`${re}-config-key`)},h(V),3)],2),n("td",{class:L(`${re}-env-val`)},[x(Ie)(ie)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie,v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Og)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Dg))],10,Fg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`)},h(j(ie)),3))],2),n("td",null,[x(Ie)(ie)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`env-${V}`,De),onClick:De=>_e(`${V}=${j(ie)}`,`env-${V}`,De)}," ⎘ ",10,Ig))])]))),128)),R.value.length===0?(u(),d("tr",Bg,[...oe[3]||(oe[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):Y("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table`)},[oe[6]||(oe[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(y.value,V=>(u(),d("tr",{key:V.path},[n("td",null,[n("span",{class:L(`${re}-config-key`),style:{whiteSpace:"nowrap"}},h(V.path),3)]),n("td",null,[x(Ie)(V.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(V.value,v.value.has(V.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V.path),["stop"])},[v.value.has(V.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,jg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Hg))],10,Ng)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({wordBreak:"break-all",color:J(V.value).color})},h(J(V.value).text),7))]),n("td",null,[x(Ie)(V.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>Te(`search-${V.path}`,ie),onClick:ie=>_e(`${V.path}: ${x(Ie)(V.value)?X(V.value):J(V.value).text}`,`search-${V.path}`,ie)}," ⎘ ",10,Ug))])]))),128)),y.value.length===0?(u(),d("tr",qg,[...oe[5]||(oe[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):Y("",!0)])],2),n("div",Kg,h(y.value.length)+" of "+h(w.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:L(`${re}-config-table-wrap`)},[n("div",{class:L(`${re}-config-sections`)},[(u(!0),d(q,null,ye(S.value,V=>(u(),d("div",{key:V,class:L(`${re}-config-section`)},[Pe(k(V))?(u(),d(q,{key:0},[n("div",{class:L(`${re}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>W(V)},[n("span",{class:L(`${re}-config-toggle`)},h(p.value.has(V)?"▼":"▶"),3),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-count`)},h(x(fi)(k(V)))+" entries ",3)],10,Vg),p.value.has(V)?(u(),d("div",{key:0,class:L(`${re}-config-section-body`)},[n("table",{class:L(`${re}-table ${re}-config-inner-table`)},[oe[7]||(oe[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(ke(k(V),V),ie=>(u(),d("tr",{key:ie.path},[n("td",{title:we(ie.path,V)},[n("span",{class:L(`${re}-config-key`)},h(we(ie.path,V)),3)],8,zg),n("td",{title:x(Ie)(ie.value)?X(ie.value):J(ie.value).text},[x(Ie)(ie.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie.value,v.value.has(ie.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(ie.path),["stop"])},[v.value.has(ie.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Qg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Gg))],10,Jg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({color:J(ie.value).color})},h(J(ie.value).text),7))],8,Wg),n("td",null,[x(Ie)(ie.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`inner-${ie.path}`,De),onClick:De=>_e(`${ie.path}: ${J(ie.value).text}`,`inner-${ie.path}`,De)}," ⎘ ",10,Yg))])]))),128))])],2)],2)):Y("",!0)],64)):(u(),d("div",{key:1,class:L(`${re}-config-section-header ${re}-config-leaf`),style:{cursor:"default"}},[n("span",{class:L(`${re}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-val`),style:{marginLeft:"8px"}},[x(Ie)(k(V))?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(k(V),v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Zg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,e1))],10,Xg)],2)):k(V)===null||k(V)===void 0?(u(),d("span",t1,"null")):typeof k(V)=="boolean"?(u(),d("span",{key:2,style:Ke({color:k(V)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(k(V))),5)):typeof k(V)=="number"?(u(),d("span",s1,h(String(k(V))),1)):Array.isArray(k(V))?(u(),d("span",n1,h(J(k(V)).text),1)):(u(),d("span",l1,h(String(k(V))),1))],2),x(Ie)(k(V))?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>Te(`leaf-${V}`,ie),onClick:ie=>_e(`${V}: ${J(k(V)).text}`,`leaf-${V}`,ie)}," ⎘ ",10,o1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:L(`${re}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),a1={key:0,class:"ss-dash-empty"},r1={key:1,class:"ss-dash-empty"},u1={key:2,class:"ss-dash-empty"},c1={class:"ss-dash-info-cards"},d1={class:"ss-dash-info-card-label"},f1={class:"ss-dash-info-card-value"},h1={key:0,class:"ss-dash-empty"},p1={key:1,class:"ss-dash-table"},v1={style:{"font-family":"monospace","font-size":"11px"}},g1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},y1={style:{color:"var(--ss-dim)","margin-left":"4px"}},m1={style:{"font-size":"11px"}},b1=["onClick"],_1=["onClick"],x1={key:2,class:"ss-dash-empty"},w1={key:3,class:"ss-dash-table"},$1={class:"ss-dash-bar"},k1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},S1={key:4,class:"ss-dash-empty"},C1={key:5,class:"ss-dash-table"},T1={style:{color:"var(--ss-dim)"}},E1={key:6,class:"ss-dash-empty"},P1={key:7,class:"ss-dash-table"},R1={style:{color:"var(--ss-dim)","font-size":"11px"}},M1={class:"ss-dash-table"},A1={style:{"font-family":"monospace","font-size":"11px"}},L1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},F1={style:{"font-family":"monospace","font-size":"11px"}},O1={class:"ss-dash-table"},D1={class:"ss-dash-table"},I1={style:{"font-family":"monospace","font-size":"11px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={style:{"font-size":"11px"}},H1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),i=de("ss-auth-token",void 0),o=K(null),a=K(!0),r=K(null),c=K(new Set),g=dl(s,i);let p=null;async function m(){try{const R=await g().fetch(`${l}/diagnostics`);o.value=R,r.value=null,a.value=!1}catch(R){if(R instanceof ln){r.value=R,a.value=!1,p&&(clearInterval(p),p=null);return}r.value=R instanceof Error?R:new Error(String(R)),a.value=!1}}Ft(()=>{a.value=!0,r.value=null,m(),p=setInterval(m,si)}),St(()=>{p&&clearInterval(p)}),ut(t,()=>{m()});function v(R){c.value.has(R)?c.value.delete(R):c.value.add(R)}function _(R){const y=ic(R);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function C(R){return R.debounceMs!==void 0?`${Dt(R.debounceMs)} (debounce)`:R.intervalMs!==void 0?Dt(R.intervalMs):"-"}const $=H(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([R,y])=>({name:R.charAt(0).toUpperCase()+R.slice(1),...y,percent:nc(y.current,y.max)})):[]),T=H(()=>o.value?.timers?Object.entries(o.value.timers).map(([R,y])=>({key:R,label:Yu(R),...y,interval:C(y)})):[]),F=H(()=>{if(!o.value)return[];const R=[];if(o.value.transmit&&R.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,w]of Object.entries(o.value.integrations))R.push({key:y,label:Zu(y),status:ec(w),details:tc(y,w)});return R});return(R,y)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",a1,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",r1,"Error: "+h(r.value.message),1)):o.value?(u(),d(q,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",c1,[(u(!0),d(q,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:x(bu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],w=>(u(),d("div",{key:w.label,class:"ss-dash-info-card"},[n("span",d1,h(w.label),1),n("span",f1,h(w.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",p1,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.collectors,w=>(u(),d("tr",{key:w.name},[n("td",null,[n("span",v1,h(w.name),1),w.label&&w.label!==w.name?(u(),d("span",g1,h(w.label),1)):Y("",!0)]),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",{style:Ke(w.lastError?{color:"var(--ss-red-fg)"}:{})},[w.lastError?(u(),d(q,{key:0},[be(h(w.lastError)+" ",1),n("span",y1,h(x(bt)(w.lastErrorAt??0)),1)],64)):(u(),d(q,{key:1},[be("-")],64))],4),n("td",m1,[Object.keys(w.config||{}).length?(u(!0),d(q,{key:0},ye(x(sc)(w.config),S=>(u(),d("span",{key:S.key,style:{"margin-right":"8px"}},[be(h(S.key)+"=",1),S.secret&&!c.value.has(`collector-${w.name}-${S.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:W=>v(`collector-${w.name}-${S.key}`)},"••••••••",8,b1)):(u(),d(q,{key:1},[n("span",null,h(S.value),1),S.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:W=>v(`collector-${w.name}-${S.key}`)}," Hide ",8,_1)):Y("",!0)],64))]))),128)):(u(),d(q,{key:1},[be("-")],64))])]))),128))])])):(u(),d("div",h1,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),$.value.length?(u(),d("table",w1,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye($.value,w=>(u(),d("tr",{key:w.name},[n("td",null,h(w.name),1),n("td",null,h(w.current.toLocaleString())+" / "+h(w.max.toLocaleString()),1),n("td",null,[n("div",$1,[n("div",k1,[n("div",{class:L(["ss-dash-bar-fill",w.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:w.percent+"%"})},null,6)]),n("span",{class:L(["ss-dash-bar-pct",w.percent>=100?"ss-dash-bar-pct-warn":""])},h(w.percent)+"%",3)])])]))),128))])])):(u(),d("div",x1,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),T.value.length?(u(),d("table",C1,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(T.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.active?"active":"inactive")])},null,2),be(" "+h(w.active?"active":"inactive"),1)]),n("td",T1,h(w.interval),1)]))),128))])])):(u(),d("div",S1,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),F.value.length?(u(),d("table",P1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",R1,h(w.details),1)]))),128))])])):(u(),d("div",E1,"No integration data")),o.value.storage?(u(),d(q,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",M1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:L(["ss-dash-dot",_(o.value.storage.ready?"ready":"unavailable")])},null,2),be(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",A1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,h(x(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",L1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.storage.tables,w=>(u(),d("tr",{key:w.name},[n("td",F1,h(w.name),1),n("td",null,h(w.rowCount.toLocaleString()),1)]))),128))])])):Y("",!0)],64)):Y("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",O1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",D1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",I1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",B1,[c.value.has("cfg-debugEndpoint")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=w=>v("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=w=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",N1,[c.value.has("cfg-dbPath")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=w=>v("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=w=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",j1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",u1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();