wurk 1.23.0 → 1.24.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/wurk/api/roll_up.rb +5 -1
- data/lib/wurk/heartbeat.rb +20 -1
- data/lib/wurk/version.rb +1 -1
- data/lib/wurk/web/dashboard/serializers.rb +2 -0
- data/vendor/assets/dashboard/assets/{ArgsValue-Czdd-DW3.js → ArgsValue-BstD9qh1.js} +1 -1
- data/vendor/assets/dashboard/assets/ArgsValue-BstD9qh1.js.br +0 -0
- data/vendor/assets/dashboard/assets/ArgsValue-BstD9qh1.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{BatchDetail-DIQKEmCn.js → BatchDetail-CxYdu4Qj.js} +1 -1
- data/vendor/assets/dashboard/assets/BatchDetail-CxYdu4Qj.js.br +0 -0
- data/vendor/assets/dashboard/assets/BatchDetail-CxYdu4Qj.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Batches-zMkOqVNO.js → Batches-DP1OXNgO.js} +1 -1
- data/vendor/assets/dashboard/assets/Batches-DP1OXNgO.js.br +0 -0
- data/vendor/assets/dashboard/assets/Batches-DP1OXNgO.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Busy-DaHWj-5n.js +1 -0
- data/vendor/assets/dashboard/assets/Busy-DaHWj-5n.js.br +0 -0
- data/vendor/assets/dashboard/assets/Busy-DaHWj-5n.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Cron-0PCJu95E.js → Cron-DpWbjmMY.js} +1 -1
- data/vendor/assets/dashboard/assets/Cron-DpWbjmMY.js.br +0 -0
- data/vendor/assets/dashboard/assets/Cron-DpWbjmMY.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Dashboard-BUizVnvZ.js → Dashboard-CC6yGLo5.js} +1 -1
- data/vendor/assets/dashboard/assets/Dashboard-CC6yGLo5.js.br +0 -0
- data/vendor/assets/dashboard/assets/Dashboard-CC6yGLo5.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Dead-D9PKoXF6.js → Dead-C_2lSQ7Y.js} +1 -1
- data/vendor/assets/dashboard/assets/Dead-C_2lSQ7Y.js.br +0 -0
- data/vendor/assets/dashboard/assets/Dead-C_2lSQ7Y.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Extension-BHON03_z.js → Extension-CNHv0pog.js} +1 -1
- data/vendor/assets/dashboard/assets/Extension-CNHv0pog.js.br +0 -0
- data/vendor/assets/dashboard/assets/Extension-CNHv0pog.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{FilterBox-BUMxY2_f.js → FilterBox-WrsvwzxC.js} +1 -1
- data/vendor/assets/dashboard/assets/FilterBox-WrsvwzxC.js.br +0 -0
- data/vendor/assets/dashboard/assets/FilterBox-WrsvwzxC.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{FlowDetail-C4rrs2vY.js → FlowDetail-Bo1BOsbe.js} +1 -1
- data/vendor/assets/dashboard/assets/FlowDetail-Bo1BOsbe.js.br +0 -0
- data/vendor/assets/dashboard/assets/FlowDetail-Bo1BOsbe.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{FlowState-Cxzb6sm0.js → FlowState-DxkXTIXY.js} +1 -1
- data/vendor/assets/dashboard/assets/FlowState-DxkXTIXY.js.br +0 -0
- data/vendor/assets/dashboard/assets/FlowState-DxkXTIXY.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Flows-BDo6Wsk7.js → Flows-BZd88wZe.js} +1 -1
- data/vendor/assets/dashboard/assets/Flows-BZd88wZe.js.br +0 -0
- data/vendor/assets/dashboard/assets/Flows-BZd88wZe.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{JobDetailModal-DgW-vXxf.js → JobDetailModal-ChX3e-8n.js} +1 -1
- data/vendor/assets/dashboard/assets/JobDetailModal-ChX3e-8n.js.br +0 -0
- data/vendor/assets/dashboard/assets/JobDetailModal-ChX3e-8n.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Limiters-DiXbbEYi.js → Limiters-Dlr_jmFX.js} +1 -1
- data/vendor/assets/dashboard/assets/Limiters-Dlr_jmFX.js.br +0 -0
- data/vendor/assets/dashboard/assets/Limiters-Dlr_jmFX.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Metrics-CcaBjp2g.js → Metrics-a1CqpvLq.js} +1 -1
- data/vendor/assets/dashboard/assets/Metrics-a1CqpvLq.js.br +0 -0
- data/vendor/assets/dashboard/assets/Metrics-a1CqpvLq.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{NotFound-Cz_G1E7y.js → NotFound-DlOAf8pL.js} +1 -1
- data/vendor/assets/dashboard/assets/NotFound-DlOAf8pL.js.br +0 -0
- data/vendor/assets/dashboard/assets/NotFound-DlOAf8pL.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{PageHeader-DcIHJUm5.js → PageHeader-CoJn3Od4.js} +1 -1
- data/vendor/assets/dashboard/assets/PageHeader-CoJn3Od4.js.br +4 -0
- data/vendor/assets/dashboard/assets/PageHeader-CoJn3Od4.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Profiles-cWq9BV8X.js → Profiles-CAVocaoT.js} +1 -1
- data/vendor/assets/dashboard/assets/Profiles-CAVocaoT.js.br +0 -0
- data/vendor/assets/dashboard/assets/Profiles-CAVocaoT.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Queues-CVBrscP3.js → Queues-Ceed0Sus.js} +1 -1
- data/vendor/assets/dashboard/assets/Queues-Ceed0Sus.js.br +0 -0
- data/vendor/assets/dashboard/assets/Queues-Ceed0Sus.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{RefreshError-XtBPb4P9.js → RefreshError-CgLq_Mv7.js} +1 -1
- data/vendor/assets/dashboard/assets/RefreshError-CgLq_Mv7.js.br +3 -0
- data/vendor/assets/dashboard/assets/RefreshError-CgLq_Mv7.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Retries-CWFV_bBC.js → Retries-kfg3Ql9-.js} +1 -1
- data/vendor/assets/dashboard/assets/Retries-kfg3Ql9-.js.br +0 -0
- data/vendor/assets/dashboard/assets/Retries-kfg3Ql9-.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Scheduled-DIx0LgMk.js → Scheduled-CS6VZbIM.js} +1 -1
- data/vendor/assets/dashboard/assets/Scheduled-CS6VZbIM.js.br +0 -0
- data/vendor/assets/dashboard/assets/Scheduled-CS6VZbIM.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{Search-CZps_dzS.js → Search-DMtKQkLa.js} +1 -1
- data/vendor/assets/dashboard/assets/Search-DMtKQkLa.js.br +0 -0
- data/vendor/assets/dashboard/assets/Search-DMtKQkLa.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{ar-3787SQUG.js → ar-DgS_1ARD.js} +1 -1
- data/vendor/assets/dashboard/assets/ar-DgS_1ARD.js.br +0 -0
- data/vendor/assets/dashboard/assets/ar-DgS_1ARD.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{charts-BWK6jrVq.js → charts-BKeDkf2K.js} +1 -1
- data/vendor/assets/dashboard/assets/charts-BKeDkf2K.js.br +0 -0
- data/vendor/assets/dashboard/assets/charts-BKeDkf2K.js.gz +0 -0
- data/vendor/assets/dashboard/assets/de-CjBT1Afs.js +1 -0
- data/vendor/assets/dashboard/assets/de-CjBT1Afs.js.br +0 -0
- data/vendor/assets/dashboard/assets/de-CjBT1Afs.js.gz +0 -0
- data/vendor/assets/dashboard/assets/es-CbLokZ0E.js +1 -0
- data/vendor/assets/dashboard/assets/es-CbLokZ0E.js.br +0 -0
- data/vendor/assets/dashboard/assets/es-CbLokZ0E.js.gz +0 -0
- data/vendor/assets/dashboard/assets/fr-BJ0GQwux.js +1 -0
- data/vendor/assets/dashboard/assets/fr-BJ0GQwux.js.br +0 -0
- data/vendor/assets/dashboard/assets/fr-BJ0GQwux.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{i18n-CKuXCfga.js → i18n-D0tt51I0.js} +1 -1
- data/vendor/assets/dashboard/assets/i18n-D0tt51I0.js.br +0 -0
- data/vendor/assets/dashboard/assets/i18n-D0tt51I0.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{index-EgRjW1AB.css → index-Drixhl7G.css} +1 -1
- data/vendor/assets/dashboard/assets/index-Drixhl7G.css.br +0 -0
- data/vendor/assets/dashboard/assets/{index-EgRjW1AB.css.gz → index-Drixhl7G.css.gz} +0 -0
- data/vendor/assets/dashboard/assets/{index-DSl1sG4e.js → index-IOGNPRkD.js} +3 -3
- data/vendor/assets/dashboard/assets/index-IOGNPRkD.js.br +0 -0
- data/vendor/assets/dashboard/assets/index-IOGNPRkD.js.gz +0 -0
- data/vendor/assets/dashboard/assets/ja-BQDBZ1F7.js +1 -0
- data/vendor/assets/dashboard/assets/ja-BQDBZ1F7.js.br +0 -0
- data/vendor/assets/dashboard/assets/ja-BQDBZ1F7.js.gz +0 -0
- data/vendor/assets/dashboard/assets/pt-BR-buE4_ILX.js +1 -0
- data/vendor/assets/dashboard/assets/pt-BR-buE4_ILX.js.br +0 -0
- data/vendor/assets/dashboard/assets/pt-BR-buE4_ILX.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{useJobSetList-DWfrLU9m.js → useJobSetList-DJu9UjV_.js} +1 -1
- data/vendor/assets/dashboard/assets/useJobSetList-DJu9UjV_.js.br +0 -0
- data/vendor/assets/dashboard/assets/useJobSetList-DJu9UjV_.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{useResetPageOnEmpty-DmMgZ1pk.js → useResetPageOnEmpty-BXhFhL3b.js} +1 -1
- data/vendor/assets/dashboard/assets/useResetPageOnEmpty-BXhFhL3b.js.br +0 -0
- data/vendor/assets/dashboard/assets/useResetPageOnEmpty-BXhFhL3b.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{useSort-BkliMBby.js → useSort-DTZk8211.js} +1 -1
- data/vendor/assets/dashboard/assets/useSort-DTZk8211.js.br +0 -0
- data/vendor/assets/dashboard/assets/useSort-DTZk8211.js.gz +0 -0
- data/vendor/assets/dashboard/assets/{utils-E11O6MRm.js → utils-CCVhZ0hw.js} +1 -1
- data/vendor/assets/dashboard/assets/utils-CCVhZ0hw.js.br +0 -0
- data/vendor/assets/dashboard/assets/utils-CCVhZ0hw.js.gz +0 -0
- data/vendor/assets/dashboard/assets/zh-CN-B8churX0.js +1 -0
- data/vendor/assets/dashboard/assets/zh-CN-B8churX0.js.br +0 -0
- data/vendor/assets/dashboard/assets/zh-CN-B8churX0.js.gz +0 -0
- data/vendor/assets/dashboard/index.html +3 -3
- data/vendor/assets/dashboard/wurk-manifest.json +2 -2
- metadata +115 -115
- data/vendor/assets/dashboard/assets/ArgsValue-Czdd-DW3.js.br +0 -0
- data/vendor/assets/dashboard/assets/ArgsValue-Czdd-DW3.js.gz +0 -0
- data/vendor/assets/dashboard/assets/BatchDetail-DIQKEmCn.js.br +0 -0
- data/vendor/assets/dashboard/assets/BatchDetail-DIQKEmCn.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Batches-zMkOqVNO.js.br +0 -0
- data/vendor/assets/dashboard/assets/Batches-zMkOqVNO.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Busy-DhNO2G1e.js +0 -1
- data/vendor/assets/dashboard/assets/Busy-DhNO2G1e.js.br +0 -0
- data/vendor/assets/dashboard/assets/Busy-DhNO2G1e.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Cron-0PCJu95E.js.br +0 -0
- data/vendor/assets/dashboard/assets/Cron-0PCJu95E.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Dashboard-BUizVnvZ.js.br +0 -0
- data/vendor/assets/dashboard/assets/Dashboard-BUizVnvZ.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Dead-D9PKoXF6.js.br +0 -0
- data/vendor/assets/dashboard/assets/Dead-D9PKoXF6.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Extension-BHON03_z.js.br +0 -0
- data/vendor/assets/dashboard/assets/Extension-BHON03_z.js.gz +0 -0
- data/vendor/assets/dashboard/assets/FilterBox-BUMxY2_f.js.br +0 -0
- data/vendor/assets/dashboard/assets/FilterBox-BUMxY2_f.js.gz +0 -0
- data/vendor/assets/dashboard/assets/FlowDetail-C4rrs2vY.js.br +0 -0
- data/vendor/assets/dashboard/assets/FlowDetail-C4rrs2vY.js.gz +0 -0
- data/vendor/assets/dashboard/assets/FlowState-Cxzb6sm0.js.br +0 -0
- data/vendor/assets/dashboard/assets/FlowState-Cxzb6sm0.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Flows-BDo6Wsk7.js.br +0 -0
- data/vendor/assets/dashboard/assets/Flows-BDo6Wsk7.js.gz +0 -0
- data/vendor/assets/dashboard/assets/JobDetailModal-DgW-vXxf.js.br +0 -0
- data/vendor/assets/dashboard/assets/JobDetailModal-DgW-vXxf.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Limiters-DiXbbEYi.js.br +0 -0
- data/vendor/assets/dashboard/assets/Limiters-DiXbbEYi.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Metrics-CcaBjp2g.js.br +0 -0
- data/vendor/assets/dashboard/assets/Metrics-CcaBjp2g.js.gz +0 -0
- data/vendor/assets/dashboard/assets/NotFound-Cz_G1E7y.js.br +0 -0
- data/vendor/assets/dashboard/assets/NotFound-Cz_G1E7y.js.gz +0 -0
- data/vendor/assets/dashboard/assets/PageHeader-DcIHJUm5.js.br +0 -0
- data/vendor/assets/dashboard/assets/PageHeader-DcIHJUm5.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Profiles-cWq9BV8X.js.br +0 -0
- data/vendor/assets/dashboard/assets/Profiles-cWq9BV8X.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Queues-CVBrscP3.js.br +0 -0
- data/vendor/assets/dashboard/assets/Queues-CVBrscP3.js.gz +0 -0
- data/vendor/assets/dashboard/assets/RefreshError-XtBPb4P9.js.br +0 -2
- data/vendor/assets/dashboard/assets/RefreshError-XtBPb4P9.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Retries-CWFV_bBC.js.br +0 -0
- data/vendor/assets/dashboard/assets/Retries-CWFV_bBC.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Scheduled-DIx0LgMk.js.br +0 -0
- data/vendor/assets/dashboard/assets/Scheduled-DIx0LgMk.js.gz +0 -0
- data/vendor/assets/dashboard/assets/Search-CZps_dzS.js.br +0 -0
- data/vendor/assets/dashboard/assets/Search-CZps_dzS.js.gz +0 -0
- data/vendor/assets/dashboard/assets/ar-3787SQUG.js.br +0 -0
- data/vendor/assets/dashboard/assets/ar-3787SQUG.js.gz +0 -0
- data/vendor/assets/dashboard/assets/charts-BWK6jrVq.js.br +0 -0
- data/vendor/assets/dashboard/assets/charts-BWK6jrVq.js.gz +0 -0
- data/vendor/assets/dashboard/assets/de-CBZHXI2c.js +0 -1
- data/vendor/assets/dashboard/assets/de-CBZHXI2c.js.br +0 -0
- data/vendor/assets/dashboard/assets/de-CBZHXI2c.js.gz +0 -0
- data/vendor/assets/dashboard/assets/es-7R-FBjEM.js +0 -1
- data/vendor/assets/dashboard/assets/es-7R-FBjEM.js.br +0 -0
- data/vendor/assets/dashboard/assets/es-7R-FBjEM.js.gz +0 -0
- data/vendor/assets/dashboard/assets/fr-BWtNzFDs.js +0 -1
- data/vendor/assets/dashboard/assets/fr-BWtNzFDs.js.br +0 -0
- data/vendor/assets/dashboard/assets/fr-BWtNzFDs.js.gz +0 -0
- data/vendor/assets/dashboard/assets/i18n-CKuXCfga.js.br +0 -0
- data/vendor/assets/dashboard/assets/i18n-CKuXCfga.js.gz +0 -0
- data/vendor/assets/dashboard/assets/index-DSl1sG4e.js.br +0 -0
- data/vendor/assets/dashboard/assets/index-DSl1sG4e.js.gz +0 -0
- data/vendor/assets/dashboard/assets/index-EgRjW1AB.css.br +0 -0
- data/vendor/assets/dashboard/assets/ja-BxFx7uC9.js +0 -1
- data/vendor/assets/dashboard/assets/ja-BxFx7uC9.js.br +0 -0
- data/vendor/assets/dashboard/assets/ja-BxFx7uC9.js.gz +0 -0
- data/vendor/assets/dashboard/assets/pt-BR-D4UE9nc6.js +0 -1
- data/vendor/assets/dashboard/assets/pt-BR-D4UE9nc6.js.br +0 -0
- data/vendor/assets/dashboard/assets/pt-BR-D4UE9nc6.js.gz +0 -0
- data/vendor/assets/dashboard/assets/useJobSetList-DWfrLU9m.js.br +0 -0
- data/vendor/assets/dashboard/assets/useJobSetList-DWfrLU9m.js.gz +0 -0
- data/vendor/assets/dashboard/assets/useResetPageOnEmpty-DmMgZ1pk.js.br +0 -0
- data/vendor/assets/dashboard/assets/useResetPageOnEmpty-DmMgZ1pk.js.gz +0 -0
- data/vendor/assets/dashboard/assets/useSort-BkliMBby.js.br +0 -0
- data/vendor/assets/dashboard/assets/useSort-BkliMBby.js.gz +0 -0
- data/vendor/assets/dashboard/assets/utils-E11O6MRm.js.br +0 -0
- data/vendor/assets/dashboard/assets/utils-E11O6MRm.js.gz +0 -0
- data/vendor/assets/dashboard/assets/zh-CN-D1new-Xl.js +0 -1
- data/vendor/assets/dashboard/assets/zh-CN-D1new-Xl.js.br +0 -0
- data/vendor/assets/dashboard/assets/zh-CN-D1new-Xl.js.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-
|
|
2
|
-
import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,I as c,J as l,K as u,L as d,M as f,N as p,P as m,Q as h,R as g,T as _,U as v,V as y,W as b,X as ee,Y as x,Z as te,_ as S,a as C,b as w,c as T,d as ne,et as re,f as E,g as D,h as ie,i as ae,k as O,l as oe,m as se,n as ce,nt as k,o as le,p as A,q as j,r as ue,s as M,t as de,tt as fe,v as pe,w as me,x as N,y as he,z as P}from"./i18n-CKuXCfga.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function ge(){let e=new Set;function t(t){return e.add(t),()=>e.delete(t)}let n=!1;function r(t,r){if(n)return!(n=!1);let i={to:t,options:r,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(let a of e)a.listener({to:t,options:r,get defaultPrevented(){return i.defaultPrevented},preventDefault:i.preventDefault,from:a.location,retry:e=>{e&&(n=!0),a.navigate(t,{...r,resolve:!1})}});return!i.defaultPrevented}return{subscribe:t,confirm:r}}var F;function _e(){let e=window.history,t=e.state&&e.state._depth;t??(t=F==null?e.length-1:F+1,e.replaceState({...e.state,_depth:t},``)),F=(e.state&&e.state._depth)??t}_e();function ve(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function ye(e){let t=(window.history.state&&window.history.state._depth)??F;return{...e,_depth:(t??window.history.length-1)+1}}function be(e,t){let n=!1;return()=>{let r=F;_e();let i=r==null?null:F-r;n?n=!1:i&&t(i)?(n=!0,window.history.go(-i)):e()}}var xe=/^(?:[a-z0-9]+:)?\/\//i,Se=/^\/+|(\/)\/+$/g,Ce=`http://sr`;function I(e,t=!1){let n=e.replace(Se,`$1`);return n?t||/^[?#]/.test(n)?n:`/`+n:``}function we(e,t,n){if(xe.test(t))return;let r=I(e),i=n&&I(n),a=``;return a=!i||t.startsWith(`/`)?r:i.toLowerCase().indexOf(r.toLowerCase())===0?i:r+i,(a||`/`)+I(t,!a)}function Te(e,t){if(e==null)throw Error(t);return e}function Ee(e,t){return I(e).replace(/\/*(\*.*)?$/g,``)+I(t)}function De(e){let t={};return e.searchParams.forEach((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e}),t}function Oe(e,t,n){let[r,i]=e.split(`/*`,2),a=r.split(`/`).filter(Boolean),o=a.length;return e=>{let r=e.split(`/`);if(r[0]===``&&r.shift(),r.length&&r[r.length-1]===``&&r.pop(),r.includes(``))return null;let s=r.length-o;if(s<0||s>0&&i===void 0&&!t)return null;let c={path:o?``:`/`,params:{}},l=e=>n===void 0?void 0:n[e];for(let e=0;e<o;e++){let t=a[e],n=t[0]===`:`,i=n?r[e]:r[e].toLowerCase(),o=n?t.slice(1):t.toLowerCase();if(n&&ke(i,l(o)))c.params[o]=i;else if(n||!ke(i,o))return null;c.path+=`/${i}`}if(i){let e=s?r.slice(-s).join(`/`):``;if(ke(e,l(i)))c.params[i]=e;else return null}return c}}function ke(e,t){let n=t=>t===e;return t===void 0?!0:typeof t==`string`?n(t):typeof t==`function`?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e)}function Ae(e){let[t,n]=e.pattern.split(`/*`,2),r=t.split(`/`).filter(Boolean);return r.reduce((e,t)=>e+(t.startsWith(`:`)?2:3),r.length-(n===void 0?0:1))}function je(e){let t=new Map,n=b();return new Proxy({},{get(r,i){return t.has(i)||te(n,()=>t.set(i,g(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(t,n){return n in e()}})}function Me(e,t){let n=new URLSearchParams(e);Object.entries(t).forEach(([e,t])=>{t==null||t===``||t instanceof Array&&!t.length?n.delete(e):t instanceof Array?(n.delete(e),t.forEach(t=>{n.append(e,String(t))})):n.set(e,String(t))});let r=n.toString();return r?`?${r}`:``}function Ne(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length),i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return Ne(r).reduce((e,t)=>[...e,...i.map(e=>e+t)],[])}var Pe=100,Fe=c(),Ie=c(),L=()=>Te(k(Fe),`<A> and 'use' router primitives can be only used inside a Route.`),Le=()=>k(Ie)||L().base,Re=e=>{let t=Le();return g(()=>t.resolvePath(e()))},ze=e=>{let t=L();return g(()=>{let n=e();return n===void 0?n:t.renderPath(n)})},Be=()=>L().navigatorFactory(),Ve=()=>L().location,He=()=>L().isRouting,Ue=()=>L().params,We=()=>{let e=L(),t=e.location,n=Be();return[t.query,(r,i)=>{let a=fe(()=>{let n=e.pendingTarget&&new URL(e.pendingTarget.value,`http://sr`),i=n?n.pathname:t.pathname,a=n?n.search:t.search,o=n?n.hash:t.hash;return i+Me(a,r)+o});n(a,{scroll:!1,resolve:!1,...i})}]},Ge=e=>encodeURIComponent(e).replace(/%(2B|40|3A|24|26|2C|3B|3D)/g,e=>decodeURIComponent(e));function Ke(e,t=``){let{component:n,preload:r,load:i,children:a,info:o}=e,s=!a||Array.isArray(a)&&!a.length,c={key:e,component:n,preload:r||i,info:o};return Je(e.path).reduce((n,r)=>{for(let i of Ne(r)){let a=Ee(t,i),o=s?a:a.split(`/*`,1)[0];o=o.split(`/`).map(e=>e.startsWith(`:`)||e.startsWith(`*`)?e:Ge(e)).join(`/`),n.push({...c,originalPath:r,pattern:o,matcher:Oe(o,!s,e.matchFilters)})}return n},[])}function qe(e,t=0){return{routes:e,score:Ae(e[e.length-1])*1e4-t,matcher(t){let n=[];for(let r=e.length-1;r>=0;r--){let i=e[r],a=i.matcher(t);if(!a)return null;n.unshift({...a,route:i})}return n}}}function Je(e){return Array.isArray(e)?e:[e]}function Ye(e,t=``,n=[],r=[]){let i=Je(e);for(let e=0,a=i.length;e<a;e++){let a=i[e];if(a&&typeof a==`object`){a.hasOwnProperty(`path`)||(a.path=``);let e=Ke(a,t);for(let t of e){n.push(t);let e=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!e)Ye(a.children,t.pattern,n,r);else{let e=qe([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function Xe(e,t){for(let n=0,r=e.length;n<r;n++){let r=e[n].matcher(t);if(r)return r}return[]}function Ze(e,t,n){let r=new URL(Ce),i=g(t=>{let n=e();try{return new URL(n[0]===`/`?Ce+n:n,r)}catch{return console.error(`Invalid path ${n}`),t}},r,{equals:(e,t)=>e.href===t.href}),a=g(()=>i().pathname),o=g(()=>i().search,!0),s=g(()=>i().hash),c=()=>``,l=j(o,()=>De(i()));return{get pathname(){return a()},get search(){return o()},get hash(){return s()},get state(){return t()},get key(){return c()},query:n?n(l):je(l)}}var R;function Qe(){return R}function $e(e,t,n,r={}){let{signal:[i,a],utils:o={}}=e,s=o.parsePath||(e=>e),c=o.renderPath||(e=>e),l=o.beforeLeave||ge(),u=we(``,r.base||``);if(u===void 0)throw Error(`${u} is not a valid base path`);u&&!i().value&&a({value:u,replace:!0,scroll:!1});let[d,p]=y(!1),m,h=(e,t)=>{let n=m||{value:_(),state:b()};(t.value!==n.value||t.state!==n.state)&&(m===void 0&&p(!0),R=e,m=t,re(()=>{m===t&&(v(m.value),x(m.state),ee(),w[1](e=>e.filter(e=>e.pending)))}).finally(()=>{m===t&&f(()=>{R=void 0,e===`navigate`&&O(m),p(!1),m=void 0})}))},[_,v]=y(i().value),[b,x]=y(i().state),S=Ze(_,b,o.queryWrapper),C=[],w=y([]),T=g(()=>typeof r.transformUrl==`function`?Xe(t(),r.transformUrl(S.pathname)):Xe(t(),S.pathname)),ne=()=>{let e=T(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},E=o.paramsWrapper?o.paramsWrapper(ne,t):je(ne),D={pattern:u,path:()=>u,outlet:()=>null,resolvePath(e){return we(u,e)}};return P(j(i,e=>h(`native`,e),{defer:!0})),{base:D,location:S,params:E,isRouting:d,get pendingTarget(){return m},renderPath:c,parsePath:s,navigatorFactory:ae,matches:T,beforeLeave:l,preloadRoute:oe,singleFlight:r.singleFlight===void 0||r.singleFlight,submissions:w};function ie(e,t,n){fe(()=>{if(typeof t==`number`){t&&(o.go?o.go(t):console.warn(`Router integration does not support relative routing`));return}let r=!t||t[0]===`?`,{replace:i,resolve:a,scroll:s,state:c}={replace:!1,resolve:!r,scroll:!0,...n},u=a?e.resolvePath(t):we(r&&S.pathname||``,t);if(u===void 0)throw Error(`Path '${t}' is not a routable path`);if(C.length>=Pe)throw Error(`Too many redirects`);let d=_(),f=m||{value:d,state:b()};(u!==f.value||c!==f.state)&&l.confirm(u,n)&&(C.push({value:d,replace:i,scroll:s,state:b()}),h(`navigate`,{value:u,state:c}))})}function ae(e){return e=e||k(Ie)||D,(t,n)=>ie(e,t,n)}function O(e){let t=C[0];t&&(e.value!==t.value||e.state!==t.state)&&a({...e,replace:t.replace,scroll:t.scroll}),C.length=0}function oe(e,r){let i=Xe(t(),e.pathname),a=R;R=`preload`;for(let t in i){let{route:a,params:o}=i[t];a.component&&a.component.preload&&a.component.preload();let{preload:s}=a;r&&s&&te(n(),()=>s({params:o,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:De(e),state:null,key:``},intent:`preload`}))}R=a}}function et(e,t,n,r){let{base:i,location:a,params:o}=e,{pattern:s,component:c,preload:l}=r().route,u=g(()=>r().path);c&&c.preload&&c.preload();let d=l?l({params:o,location:a,intent:R||`initial`}):void 0;return{parent:t,pattern:s,path:u,outlet:()=>c?m(c,{params:o,location:a,data:d,get children(){return n()}}):n(),resolvePath(e){return we(i.path(),e,u())}}}var tt=e=>t=>{let{base:n}=t,r=p(()=>t.children),i=g(()=>Ye(r(),t.base||``)),a,o=$e(e,i,()=>a,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(o),m(Fe.Provider,{value:o,get children(){return m(nt,{routerState:o,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[se(()=>(a=b())&&null),m(rt,{routerState:o,get branches(){return i()}})]}})}})};function nt(e){let t=e.routerState.location,n=e.routerState.params,r=g(()=>e.preload&&fe(()=>{e.preload({params:n,location:t,intent:Qe()||`initial`})}));return m(O,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>m(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function rt(e){let t=[],r;l(()=>t.forEach(e=>e()));let i=g(j(e.routerState.matches,(a,o,s)=>{let c=o&&a.length===o.length,l=[];for(let r=0,u=a.length;r<u;r++){let u=o&&o[r],d=a[r];s&&u&&d.route.key===u.route.key?l[r]=s[r]:(c=!1,t[r]&&t[r](),n(n=>{t[r]=n,l[r]=et(e.routerState,l[r-1]||e.routerState.base,it(()=>i()[r+1]),()=>{let t=e.routerState.matches();return t[r]??t[0]})}))}return t.splice(a.length).forEach(e=>e()),s&&c?s:(r=l[0],l)}));return it(()=>i()&&r)()}var it=e=>()=>m(O,{get when(){return e()},keyed:!0,children:e=>m(Ie.Provider,{value:e,get children(){return e.outlet()}})}),z=e=>{let t=p(()=>e.children);return u(e,{get children(){return t()}})};function at([e,t],n,r){return[n?()=>n(e()):e,r?e=>t(r(e)):t]}function ot(e){let t=!1,n=e=>typeof e==`string`?{value:e}:e,r=at(y(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),void 0,n=>(!t&&e.set(n),h.registry&&!h.done&&(h.done=!0),n));return e.init&&l(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),tt({signal:r,create:e.create,utils:e.utils})}function st(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function ct(e,t){let n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}var lt=new Map;function ut({preload:e=!0,explicitLinks:t=!1,actionBase:n=`/_server`,transformUrl:r}={}){return i=>{let a=i.base.path(),o=i.navigatorFactory(i.base),s,c;function u(e){return e.namespaceURI===`http://www.w3.org/2000/svg`}function d(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;let n=e.composedPath().find(e=>e instanceof Node&&e.nodeName.toUpperCase()===`A`);if(!n||t&&!n.hasAttribute(`link`))return;let r=u(n),i=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!i&&!n.hasAttribute(`state`))return;let o=(n.getAttribute(`rel`)||``).split(/\s+/);if(n.hasAttribute(`download`)||o&&o.includes(`external`))return;let s=r?new URL(i,document.baseURI):new URL(i);if((s.protocol===`https:`||s.protocol===`http:`)&&!(s.origin!==window.location.origin||a&&s.pathname&&!s.pathname.toLowerCase().startsWith(a.toLowerCase())))return[n,s]}function f(e){let t=d(e);if(!t)return;let[n,r]=t,a=i.parsePath(r.pathname+r.search+r.hash),s=n.getAttribute(`state`);e.preventDefault(),o(a,{resolve:!1,replace:n.hasAttribute(`replace`),scroll:!n.hasAttribute(`noscroll`),state:s?JSON.parse(s):void 0})}function p(e){let t=d(e);if(!t)return;let[n,a]=t;r&&(a.pathname=r(a.pathname)),i.preloadRoute(a,n.getAttribute(`preload`)!==`false`)}function m(e){clearTimeout(s);let t=d(e);if(!t)return c=null;let[n,a]=t;c!==n&&(r&&(a.pathname=r(a.pathname)),s=setTimeout(()=>{i.preloadRoute(a,n.getAttribute(`preload`)!==`false`),c=n},20))}function h(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute(`formaction`)?e.submitter.getAttribute(`formaction`):e.target.getAttribute(`action`);if(!t)return;if(!t.startsWith(`https://action/`)){let e=new URL(t,Ce);if(t=i.parsePath(e.pathname+e.search),!t.startsWith(n))return}if(e.target.method.toUpperCase()!==`POST`)throw Error(`Only POST forms are supported for Actions`);let r=lt.get(t);if(r){e.preventDefault();let t=new FormData(e.target,e.submitter);r.call({r:i,f:e.target},e.target.enctype===`multipart/form-data`?t:new URLSearchParams(t))}}E([`click`,`submit`]),document.addEventListener(`click`,f),e&&(document.addEventListener(`mousemove`,m,{passive:!0}),document.addEventListener(`focusin`,p,{passive:!0}),document.addEventListener(`touchstart`,p,{passive:!0})),document.addEventListener(`submit`,h),l(()=>{document.removeEventListener(`click`,f),e&&(document.removeEventListener(`mousemove`,m),document.removeEventListener(`focusin`,p),document.removeEventListener(`touchstart`,p)),document.removeEventListener(`submit`,h)})}}var dt=`solid-router:scroll`;function ft(){window.history.scrollRestoration=`manual`,_e();let e={};try{e=JSON.parse(sessionStorage.getItem(dt))||{}}catch{}let t=()=>window.history.state&&window.history.state._depth,n=!1,r,i=[st(window,`scroll`,()=>{let i=t();i!=null&&(e[i]=window.scrollY),n||(r=void 0)}),st(window,`pagehide`,()=>{try{sessionStorage.setItem(dt,JSON.stringify(e))}catch{}})],a=()=>{if(r==null)return;let t=e[r];r=void 0,t!=null&&(n=!0,window.scrollTo(0,t),n=!1)};return{onPop(){r=t()},onPush(){let n=t();if(n!=null)for(let t in e)+t>=n&&delete e[t]},create(e){d(j(e.isRouting,e=>e||a(),{defer:!0})),l(()=>i.forEach(e=>e()));let[n]=performance.getEntriesByType&&performance.getEntriesByType(`navigation`);n&&n.type!==`navigate`&&(r=t(),a())}}}function pt(e){let t=e.scrollRestoration?ft():void 0,n=()=>{let e=window.location.pathname+window.location.search,t=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:e+window.location.hash,state:t}},r=ge();return ot({get:n,set({value:e,replace:n,scroll:r,state:i}){n?window.history.replaceState(ve(i),``,e):window.history.pushState(ye(i),``,e),ct(decodeURIComponent(window.location.hash.slice(1)),r),_e(),t&&!n&&t.onPush()},init:e=>{let i=be(e,e=>{if(e)return!r.confirm(e);{let e=n();return!r.confirm(e.value,{state:e.state})}});return st(window,`popstate`,t?()=>{t.onPop(),i()}:i)},create:n=>{ut({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl})(n),t&&t.create(n)},utils:{go:e=>window.history.go(e),beforeLeave:r}})(e)}var mt=w(`<a>`),ht=e=>{let t=new URLSearchParams(e);return t.sort(),t.toString()},gt,_t;function vt(e){return e!==gt&&(_t=decodeURI(I(e).toLowerCase().replace(/\/$/,``)),gt=e),_t}var yt=[`href`,`state`,`class`,`activeClass`,`inactiveClass`,`end`];[...yt];function bt(t){let n=Re(()=>t.href),r=ze(n),i=Ve(),a=g(()=>{let e=n();if(e===void 0)return[!1,!1];let r=I(e.split(/[?#]/,1)[0]).toLowerCase().replace(/\/$/,``),a=vt(i.pathname);if(r!==a)return[!t.end&&a.startsWith(r+`/`),!1];let o=e.split(`#`,1)[0],s=o.indexOf(`?`);return[!0,ht(i.search)===ht(s<0?``:o.slice(s))]}),o=()=>{let e=t.state;return e===void 0?void 0:JSON.stringify(e)},[,s]=e(t,[...yt]);return(()=>{var e=mt();return pe(e,u(s,{get href(){return r()||t.href},get state(){return o()},get classList(){return{...t.class&&{[t.class]:!0},[t.inactiveClass??`inactive`]:!a()[0],[t.activeClass??`active`]:a()[0],...s.classList}},link:``,get"aria-current"(){return a()[1]?`page`:void 0}}),!1,!1),e})()}var xt=Symbol(`store-raw`),B=Symbol(`store-node`),V=Symbol(`store-has`),St=Symbol(`store-self`);function Ct(e){let t=e[r];if(!t&&(Object.defineProperty(e,r,{value:t=new Proxy(e,jt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function wt(e){let t;return typeof e==`object`&&!!e&&(e[r]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Tt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[xt])return n;if(!wt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Tt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],o[a].get||(i=e[a],(r=Tt(i,t))!==i&&(e[a]=r))}return e}function Et(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Dt(e,t,n){if(e[t])return e[t];let[r,i]=y(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Ot(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===r||t===B||(delete n.value,delete n.writable,n.get=()=>e[r][t]),n}function kt(e){v()&&Dt(Et(e,B),St)()}function At(e){return kt(e),Reflect.ownKeys(e)}var jt={get(e,t,n){if(t===xt)return e;if(t===r)return n;if(t===me)return kt(e),n;let i=Et(e,B),a=i[t],o=a?a():e[t];if(t===B||t===V||t===`__proto__`)return o;if(!a){let n=Object.getOwnPropertyDescriptor(e,t);v()&&(typeof o!=`function`||Object.prototype.hasOwnProperty.call(e,t))&&!(n&&n.get)&&(o=Dt(i,t,o)())}return wt(o)?Ct(o):o},has(e,t){return t===xt||t===r||t===me||t===B||t===V||t===`__proto__`||(v()&&Dt(Et(e,V),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:At,getOwnPropertyDescriptor:Ot};function Mt(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[V]&&e[V][t]&&i!==void 0&&e[V][t].$()):(e[t]=n,e[V]&&e[V][t]&&i===void 0&&e[V][t].$());let o=Et(e,B),s;if((s=Dt(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Dt(o,`length`,a))&&s.$(e.length)}(s=o[St])&&s.$()}function Nt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Pt(i)||Mt(e,i,t[i])}}function Pt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Ft(e,t){if(typeof t==`function`&&(t=t(e)),t=Tt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Mt(e,n,r)}Mt(e,`length`,r)}else Nt(e,t)}function It(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Pt(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)It(e,[r[i]].concat(t),n);return}if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&It(e,[i].concat(t),n);return}if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)It(e,[r].concat(t),n);return}if(t.length>1){It(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||(r!==void 0||a!=null)&&(a=Tt(a),r===void 0||wt(i)&&wt(a)&&!Array.isArray(a)?Nt(i,a):Mt(e,r,a))}function Lt(...[e,t]){let n=Tt(e||{}),r=Array.isArray(n),i=Ct(n);function a(...e){f(()=>{r&&e.length===1?Ft(n,e[0]):It(n,e)})}return[i,a]}var Rt={},zt=[];function Bt(e,t=[]){Rt=e,zt=[...Object.values(e),...t]}function Vt(e){let t=e.startsWith(`/ext/`)?Rt[`/ext/`]:Rt[e];t&&t.preload()}function Ht(){let e=()=>zt.forEach(e=>void e.preload());typeof window<`u`&&(`requestIdleCallback`in window?window.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,1500))}var Ut=w(`<div class=route-progress role=progressbar aria-busy=true>`);function Wt(){let e=He();return m(O,{get when(){return e()},get children(){var e=Ut();return P(()=>D(e,`aria-label`,M(`common.loading`))),e}})}var Gt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},H=new class{#e=Gt;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Kt(e){setTimeout(e,0)}var qt=typeof window>`u`||`Deno`in globalThis;function U(){}function Jt(e,t){return typeof e==`function`?e(t):e}function Yt(e){return typeof e==`number`&&e>=0&&e!==1/0}function Xt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function W(e,t){return typeof e==`function`?e(t):e}function Zt(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==$t(o,t.options))return!1}else if(!K(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Qt(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(G(t.options.mutationKey)!==G(a))return!1}else if(!K(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function $t(e,t){return(t?.queryKeyHashFn||G)(e)}function G(e){return JSON.stringify(e,(e,t)=>an(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function K(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!K(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!K(e[r],t[r]))return!1;return!0}return!1}var en=Object.prototype.hasOwnProperty;function tn(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=rn(e)&&rn(t);if(!r&&!(an(e)&&an(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:en.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=tn(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function nn(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n of Object.keys(e))if(!en.call(t,n)||e[n]!==t[n])return!1;return!0}function rn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function an(e){if(!on(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!on(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function on(e){return Object.prototype.toString.call(e)===`[object Object]`}function sn(e){return new Promise(t=>{H.setTimeout(t,e)})}function cn(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:tn(e,t)}function ln(e){return e}function un(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(-n):r}function dn(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,n):r}var fn=Symbol();function pn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fn?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function mn(e,t){return typeof e==`function`?e(...t):!!e}var hn=Symbol();function gn(e,t,n,r){let i=!1,a;return Object.defineProperties(e,{[hn]:{value:r},signal:{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?n():a.addEventListener(`abort`,n,{once:!0})),a)}}),e}var _n=()=>qt,vn=()=>_n(),q=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yn=new class extends q{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},bn=Kt;function xn(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=bn,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var J=xn(),Sn=new class extends q{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Cn(e){return Math.min(1e3*2**e,3e4)}function wn(e){return(e??`online`)!==`online`||Sn.isOnline()}var Tn=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function En(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(U);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Tn(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>yn.isFocused()&&(e.networkMode===`always`||Sn.isOnline())&&e.canRun(),p=()=>wn(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(vn()?0:3),a=e.retryDelay??Cn,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),sn(o).then(()=>c()||f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var Dn=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yt(this.gcTime)&&(this.#e=H.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vn()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(H.clearTimeout(this.#e),this.#e=void 0)}};function On(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=t,u=e=>{gn(e,()=>t.signal,()=>n=!0,l[hn])},d=pn(t.options,t.fetchOptions),f=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return u(e),e})(),o=await d(a),{maxPages:s}=t.options,c=i?dn:un;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?An:kn,n={pages:a,pageParams:o};s=await f(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:kn(r,s);if(c>0&&e==null)break;s=await f(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function kn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function An(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var jn=class extends Dn{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e){super(),this.#c=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Pn(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Pn(this.options);e.data!==void 0&&(this.setState(Nn(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=cn(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>W(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.state.data!==void 0&&this.getObserversCount()>0&&this.observers.some(e=>W(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Xt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#c||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a&&this.#o)return this.#a.continueRetry(),this.#o}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperties(e,{[hn]:{value:n.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#c=!0,n.signal)}})},i=()=>{let e=pn(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#c=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?On(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=En({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Tn&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),s=(async()=>{try{let e=await o.promise;if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Tn){if(e.silent){if(this.#a!==o&&this.#o)return this.#o;throw e}if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0,this.#o=void 0),this.scheduleGc()}})();return this.#o=s,o.start(),s}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Mn(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Nn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),J.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Mn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wn(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Nn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Pn(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Fn=class extends q{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ln(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rn(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rn(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof W(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!nn(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&zn(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||W(this.options.staleTime,this.#t)!==W(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return nn(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch(t).then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(U)),t}#h(e){return!vn()&&W(this.options.enabled,this.#t)!==!1&&Yt(e)}#g(){this.#b();let e=W(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Xt(this.#r.dataUpdatedAt,e)+1;this.#u=H.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return W(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=H.setInterval(()=>{(this.options.refetchIntervalInBackground||yn.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(H.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(H.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ln(e,t),o=i&&zn(e,n,t,r);(a||o)&&(l={...l,...Mn(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=cn(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=cn(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=i?.error===f?i.errorUpdatedAt:Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Bn(e,t),refetch:this.refetch,isEnabled:W(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),nn(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size||this.options.throwOnError&&this.#r.error!==e.error)return!0;for(let t of n??this.#p)if(this.#r[t]!==e[t])return!0;return!1})();J.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function In(e,t){return W(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||W(t.retryOnMount,e)!==!1)}function Ln(e,t){return In(e,t)||e.state.data!==void 0&&Rn(e,t,t.refetchOnMount)}function Rn(e,t,n){if(W(t.enabled,e)!==!1&&W(t.staleTime,e)!==`static`){let r=W(n,e);return r===`always`||r!==!1&&Bn(e,t)}return!1}function zn(e,t,n,r){return(e!==t||W(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Bn(e,n)}function Bn(e,t){return W(t.enabled,e)!==!1&&e.isStaleByTime(W(t.staleTime,e))}var Vn=class extends Dn{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Hn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=En({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}this.state.isPaused&&r.canStart()&&t();let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Hn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Un=class extends q{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Vn({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Wn(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Qt(t,e))}findAll(e={}){return this.getAll().filter(t=>Qt(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(U))))}};function Wn(e){return e.options.scope?.id}var Gn=class extends q{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),nn(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&G(t.mutationKey)!==G(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Hn();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){J.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Kn=class extends q{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??$t(r,t),a=this.get(i);return a||(a=new jn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Zt(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Zt(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Kn,this.#t=e.mutationCache||new Un,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=yn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Sn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(W(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Jt(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(U).catch(U)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(U)),r?Promise.resolve():t}));return Promise.all(r).then(U)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(W(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(W(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(U).catch(U)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(U).catch(U)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Sn.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(G(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{K(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(G(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{K(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=$t(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===fn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Jn=c(void 0),Yn=`No QueryClient set, use QueryClientProvider to set one`,Xn=e=>{if(e)return e;let t=k(Jn);if(!t)throw Error(Yn);return t()},Zn=e=>{let t=k(Jn);return()=>{let n=e?.();if(n)return n;if(!t)throw Error(Yn);return t()}},Qn=e=>(P(t=>(t?.(),e.client.mount(),e.client.unmount.bind(e.client))),l(()=>e.client.unmount()),m(Jn.Provider,{value:()=>e.client,get children(){return e.children}}));c(()=>!1).Provider;function $n(e,t){let n=Zn(t),r=new Gn(g(()=>n())(),e()),i=(...e)=>{r.mutate(e[0],e[1]).catch(U)},[a,s]=Lt({...r.getCurrentResult(),mutate:i,mutateAsync:r.getCurrentResult().mutate});o(()=>{r.setOptions(e())}),o(j(()=>a.status,()=>{if(a.isError&&mn(r.options.throwOnError,[a.error]))throw a.error}));let c=r.subscribe(e=>{s({...e,mutate:i,mutateAsync:e.mutate})});return l(c),a}var er=class extends qn{constructor(e={}){super(e)}},Y=new Map,[tr,nr]=y(0),rr=0,ir=()=>nr(e=>e+1),ar=e=>JSON.stringify(e);function or(e,t){return t.every((t,n)=>JSON.stringify(t)===JSON.stringify(e[n]))}function sr(e,t){tr();let n=ar(e),r=t;for(let t of Y.values())if(!t.fresh.has(n))for(let n of t.patches)!n.oneShot&&r!==void 0&&or(e,n.queryKey)&&(r=n.update(r));return r}function cr(){return tr()}function lr(e,t,n){let r=e.getQueryCache();return{onMutate:async n=>{let r=t(n);await Promise.all(r.map(t=>e.cancelQueries({queryKey:t.queryKey})));let i=r.filter(e=>e.oneShot),a=i.flatMap(t=>e.getQueriesData({queryKey:t.queryKey})),o=[];for(let t of i)for(let[n,r]of e.getQueriesData({queryKey:t.queryKey}))r!==void 0&&(e.setQueryData(n,t.update(r)),o.push([n,e.getQueryState(n)?.dataUpdateCount??-1]));let s=rr+=1;return Y.set(s,{patches:r,fresh:new Set}),ir(),{id:s,snapshot:a,written:o}},rollback:t=>{if(t){Y.delete(t.id),ir();for(let[n,r]of t.snapshot){let i=t.written.find(([e])=>ar(e)===ar(n))?.[1];e.getQueryState(n)?.dataUpdateCount===i&&e.setQueryData(n,r)}}},onSettled:(t,i,a,o)=>{let s=o&&!i?Y.get(o.id):void 0;if(o&&s){let e=new Set,t=r.subscribe(n=>{if(!Y.has(o.id))return t();let i=n.query;s.patches.some(e=>or(i.queryKey,e.queryKey))&&(n.type===`updated`&&n.action.type===`fetch`&&e.add(i.queryHash),n.type===`updated`&&n.action.type===`success`&&!n.action.manual&&e.has(i.queryHash)&&(s.fresh.add(ar(i.queryKey)),ir()),s.patches.some(e=>r.findAll({queryKey:e.queryKey}).some(e=>!s.fresh.has(ar(e.queryKey))))||(t(),Y.delete(o.id),ir()))})}for(let t of n)e.invalidateQueries({queryKey:t})}}}function ur(e){return{queryKey:[`stats`],oneShot:!0,update:t=>{let n={...t};for(let[t,r]of Object.entries(e))typeof n[t]==`number`&&(n[t]=Math.max(0,n[t]+r));return n}}}function dr(e){let t=Xn(),n=g(()=>{cr();let n=t.defaultQueryOptions(e());n._optimisticResults=`optimistic`;let r=n.select,i=n.queryKey;return n.select=e=>sr(i,r?r(e):e),n}),r=new Fn(t,n()),i=r.getOptimisticResult(n()),[a,s]=Lt({...i,data:void 0}),[c,u]=y(i.data),d=e=>{let{data:t,...n}=e;f(()=>{s(n),u(()=>t)})},p=r.subscribe(d);return l(p),o(j(n,e=>{r.setOptions(e),d(r.getOptimisticResult(e))},{defer:!0})),new Proxy(a,{get:(e,t)=>t===`data`?c():Reflect.get(e,t)})}function fr(e,t,n,r=3e4){e.prefetchQuery({queryKey:t,queryFn:n,staleTime:r})}function X(){return((typeof window<`u`?window.__WURK_BASE__:void 0)??`/wurk`).replace(/\/+$/,``)}var pr=class extends Error{status;body;constructor(e,t){super(`Request failed (${e})`),this.name=`RequestError`,this.status=e,this.body=t}};function mr(e){if(!(e instanceof pr)||e.status!==422)return null;let t=e.body;return t&&Array.isArray(t.failed)&&typeof t.count==`number`?t:null}async function hr(e,t){let n=await fetch(e,{method:`POST`,headers:t===void 0?{}:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)});if(!n.ok)throw new pr(n.status,await n.json().catch(()=>void 0));return n}async function gr(e){let t=await fetch(e);if(!t.ok)throw new pr(t.status);return t.json()}async function _r(e,t){let n=await fetch(e,t);return{ok:n.ok,status:n.status,text:await n.text()}}function vr(){return dr(()=>({queryKey:[`meta`],queryFn:()=>gr(`${X()}/api/meta`),staleTime:1/0}))}var yr=1e3,[br,xr]=y(0),Sr=null,Cr=0;function wr(){return br()}function Tr(){Sr!==null&&clearInterval(Sr),Sr=null}function Er(){x(()=>{Cr===0&&(Sr=setInterval(()=>xr(e=>e+1),yr)),Cr+=1,l(()=>{--Cr,Cr===0&&Tr()})})}var Dr=Object.freeze([{to:`/`,labelKey:`nav.dashboard`,icon:`gauge-high`,end:!0},{to:`/queues`,labelKey:`nav.queues`,icon:`layer-group`,end:!1},{to:`/retries`,labelKey:`nav.retries`,icon:`rotate-right`,end:!1},{to:`/scheduled`,labelKey:`nav.scheduled`,icon:`clock`,end:!1},{to:`/dead`,labelKey:`nav.dead`,icon:`skull`,end:!1},{to:`/busy`,labelKey:`nav.busy`,icon:`gears`,end:!1},{to:`/batches`,labelKey:`nav.batches`,icon:`table-cells-large`,end:!1},{to:`/flows`,labelKey:`nav.flows`,icon:`diagram-project`,end:!1},{to:`/limiters`,labelKey:`nav.limiters`,icon:`gauge`,end:!1},{to:`/cron`,labelKey:`nav.cron`,icon:`stopwatch`,end:!1},{to:`/metrics`,labelKey:`nav.metrics`,icon:`chart-line`,end:!1},{to:`/profiles`,labelKey:`nav.profiles`,icon:`fire`,end:!1},{to:`/search`,labelKey:`nav.search`,icon:`magnifying-glass`,end:!1}]);function Or(e){return M(e.labelKey)}var[kr,Ar]=y(null),[jr,Mr]=y(0),[Nr,Pr]=y(!1),Z=null,Fr=0,Ir=2,Lr=3e3,Rr=3e4,zr=5e3,Br=0,Vr,Q;function Hr(){clearTimeout(Vr),clearTimeout(Q),Vr=void 0,Q=void 0,Br=0}function Ur(){let e=new EventSource(`${X()}/api/stream`);Z=e,e.addEventListener(`stats`,e=>{try{Ar(JSON.parse(e.data)),Mr(Date.now())}catch{}}),e.onopen=()=>{Br=0,clearTimeout(Q),Q=void 0,Pr(!0)},e.onerror=()=>{if(Z!==e)return;if(e.readyState!==Ir){Q??=setTimeout(()=>{Q=void 0,Pr(!1)},zr);return}clearTimeout(Q),Q=void 0,Pr(!1),e.close(),Z=null;let t=Math.min(Rr,Lr*2**Br);Br+=1,Vr=setTimeout(()=>{Vr=void 0,Fr>0&&!Z&&Ur()},t)}}function Wr(){Hr(),Z?.close(),Z=null,Pr(!1),Ar(null)}function Gr(e=!0){return x(()=>{e&&(Fr===0&&Ur(),Fr+=1,l(()=>{--Fr,Fr===0&&Wr()}))}),{stats:kr,statsAt:jr,connected:Nr}}var Kr={"angles-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256 406.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/></svg>`,"angles-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M439.1 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L371.2 256 233.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L179.2 256 41.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/></svg>`,"arrow-down-wide-short":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"/></svg>`,"arrow-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"/></svg>`,"arrow-up-right-from-square":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z"/></svg>`,"arrow-up-short-wide":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0zM150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"/></svg>`,ban:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,bars:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/></svg>`,bolt:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M384 512L96 512c-53 0-96-43-96-96L0 96C0 43 43 0 96 0L400 0c26.5 0 48 21.5 48 48l0 288c0 20.9-13.4 38.7-32 45.3l0 66.7c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zM96 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0 0-64-256 0zm32-232c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24 72c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"/></svg>`,calendar:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M120 0c13.3 0 24 10.7 24 24l0 40 160 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-40c0-13.3 10.7-24 24-24zm0 112l-56 0c-8.8 0-16 7.2-16 16l0 48 352 0 0-48c0-8.8-7.2-16-16-16l-264 0zM48 224l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192-352 0z"/></svg>`,"chart-line":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"circle-check":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"/></svg>`,"circle-exclamation":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"/></svg>`,"circle-half-stroke":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,"circle-info":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"/></svg>`,clock:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>`,compass:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,crown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M313 87.2c9.2-7.3 15-18.6 15-31.2 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 12.6 5.9 23.9 15 31.2L194.6 194.8c-10 15.7-31.3 19.6-46.2 8.4L88.9 158.7c4.5-6.4 7.1-14.3 7.1-22.7 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 21.8 17.5 39.6 39.2 40L87.8 393.5c4.7 31.3 31.6 54.5 63.3 54.5l273.8 0c31.7 0 58.6-23.2 63.3-54.5L520.8 176c21.7-.4 39.2-18.2 39.2-40 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 8.4 2.6 16.3 7.1 22.7l-59.4 44.6c-14.9 11.2-36.2 7.3-46.2-8.4L313 87.2z"/></svg>`,"diagram-project":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"/></svg>`,download:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg>`,fire:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"/></svg>`,gauge:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,"gauge-high":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,gears:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M415.9 210.5c12.2-3.3 25 2.5 30.5 13.8L465 261.9c10.3 1.4 20.4 4.2 29.9 8.1l35-23.3c10.5-7 24.4-5.6 33.3 3.3l19.2 19.2c8.9 8.9 10.3 22.9 3.3 33.3l-23.3 34.9c1.9 4.7 3.6 9.6 5 14.7 1.4 5.1 2.3 10.1 3 15.2l37.7 18.6c11.3 5.6 17.1 18.4 13.8 30.5l-7 26.2c-3.3 12.1-14.6 20.3-27.2 19.5l-42-2.7c-6.3 8.1-13.6 15.6-21.9 22l2.7 41.9c.8 12.6-7.4 24-19.5 27.2l-26.2 7c-12.2 3.3-24.9-2.5-30.5-13.8l-18.6-37.6c-10.3-1.4-20.4-4.2-29.9-8.1l-35 23.3c-10.5 7-24.4 5.6-33.3-3.3l-19.2-19.2c-8.9-8.9-10.3-22.8-3.3-33.3l23.3-35c-1.9-4.7-3.6-9.6-5-14.7s-2.3-10.2-3-15.2l-37.7-18.6c-11.3-5.6-17-18.4-13.8-30.5l7-26.2c3.3-12.1 14.6-20.3 27.2-19.5l41.9 2.7c6.3-8.1 13.6-15.6 21.9-22l-2.7-41.8c-.8-12.6 7.4-24 19.5-27.2l26.2-7zM448.4 340a44 44 0 1 0 .1 88 44 44 0 1 0 -.1-88zM224.9-45.5l26.2 7c12.1 3.3 20.3 14.7 19.5 27.2l-2.7 41.8c8.3 6.4 15.6 13.8 21.9 22l42-2.7c12.5-.8 23.9 7.4 27.2 19.5l7 26.2c3.2 12.1-2.5 24.9-13.8 30.5l-37.7 18.6c-.7 5.1-1.7 10.2-3 15.2s-3.1 10-5 14.7l23.3 35c7 10.5 5.6 24.4-3.3 33.3L307.3 262c-8.9 8.9-22.8 10.3-33.3 3.3L239 242c-9.5 3.9-19.6 6.7-29.9 8.1l-18.6 37.6c-5.6 11.3-18.4 17-30.5 13.8l-26.2-7c-12.2-3.3-20.3-14.7-19.5-27.2l2.7-41.9c-8.3-6.4-15.6-13.8-21.9-22l-42 2.7c-12.5 .8-23.9-7.4-27.2-19.5l-7-26.2c-3.2-12.1 2.5-24.9 13.8-30.5l37.7-18.6c.7-5.1 1.7-10.1 3-15.2 1.4-5.1 3-10 5-14.7L55.1 46.5c-7-10.5-5.6-24.4 3.3-33.3L77.6-6c8.9-8.9 22.8-10.3 33.3-3.3l35 23.3c9.5-3.9 19.6-6.7 29.9-8.1l18.6-37.6c5.6-11.3 18.3-17 30.5-13.8zM192.4 84a44 44 0 1 0 0 88 44 44 0 1 0 0-88z"/></svg>`,github:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M216.5 362.5c-66-8-112.5-55.5-112.5-117 0-25 9-52 24-70-6.5-16.5-5.5-51.5 2-66 20-2.5 47 8 63 22.5 19-6 39-9 63.5-9s44.5 3 62.5 8.5c15.5-14 43-24.5 63-22 7 13.5 8 48.5 1.5 65.5 16 19 24.5 44.5 24.5 70.5 0 61.5-46.5 108-113.5 116.5 17 11 28.5 35 28.5 62.5l0 52C323 491.5 335.5 500 350.5 494 441 459.5 512 369 512 257 512 115.5 397 0 255.5 0S0 115.5 0 257c0 111 70.5 203 165.5 237.5 13.5 5 26.5-4 26.5-17.5l0-40c-7 3-16 5-24 5-33 0-52.5-18-66.5-51.5-5.5-13.5-11.5-21.5-23-23-6-.5-8-3-8-6 0-6 10-10.5 20-10.5 14.5 0 27 9 40 27.5 10 14.5 20.5 21 33 21s20.5-4.5 32-16c8.5-8.5 15-16 21-21z"/></svg>`,globe:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"/></svg>`,language:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4 62.2-140c5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2l39.8-89.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L81.6 224.7c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l10.2 12.2c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32zM416 270.8L365.7 384 466.3 384 416 270.8z"/></svg>`,"layer-group":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"/></svg>`,"magnifying-glass":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>`,memory:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 64C28.7 64 0 92.7 0 128l0 7.4C0 142.2 4.4 148 10.1 151.7 23.3 160.3 32 175.1 32 192s-8.7 31.7-21.9 40.3C4.4 236 0 241.8 0 248.6l0 55.4 512 0 0-55.4c0-6.8-4.4-12.6-10.1-16.3-13.2-8.6-21.9-23.4-21.9-40.3s8.7-31.7 21.9-40.3c5.7-3.7 10.1-9.5 10.1-16.3l0-7.4c0-35.3-28.7-64-64-64L64 64zM512 416l0-64-512 0 0 64c0 17.7 14.3 32 32 32l64 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 88 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 88 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 64 0c17.7 0 32-14.3 32-32zM160 160l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32z"/></svg>`,microchip:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40c-35.3 0-64 28.7-64 64l-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0c0 35.3 28.7 64 64 64l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c35.3 0 64-28.7 64-64l40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0c0-35.3-28.7-64-64-64l0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40zM160 128l192 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32l0-192c0-17.7 14.3-32 32-32zm16 48l0 160 160 0 0-160-160 0z"/></svg>`,moon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/></svg>`,"puzzle-piece":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M224 0c35.3 0 64 21.5 64 48 0 10.4-4.4 20-12 27.9-6.6 6.9-12 15.3-12 24.9 0 15 12.2 27.2 27.2 27.2l44.8 0c26.5 0 48 21.5 48 48l0 44.8c0 15 12.2 27.2 27.2 27.2 9.5 0 18-5.4 24.9-12 7.9-7.5 17.5-12 27.9-12 26.5 0 48 28.7 48 64s-21.5 64-48 64c-10.4 0-20.1-4.4-27.9-12-6.9-6.6-15.3-12-24.9-12-15 0-27.2 12.2-27.2 27.2L384 464c0 26.5-21.5 48-48 48l-56.8 0c-12.8 0-23.2-10.4-23.2-23.2 0-9.2 5.8-17.3 13.2-22.8 11.6-8.7 18.8-20.7 18.8-34 0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34 7.4 5.5 13.2 13.5 13.2 22.8 0 12.8-10.4 23.2-23.2 23.2L48 512c-26.5 0-48-21.5-48-48L0 343.2c0-12.8 10.4-23.2 23.2-23.2 9.2 0 17.3 5.8 22.8 13.2 8.7 11.6 20.7 18.8 34 18.8 26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8-5.5 7.4-13.5 13.2-22.8 13.2-12.8 0-23.2-10.4-23.2-23.2L0 176c0-26.5 21.5-48 48-48l108.8 0c15 0 27.2-12.2 27.2-27.2 0-9.5-5.4-18-12-24.9-7.5-7.9-12-17.5-12-27.9 0-26.5 28.7-48 64-48z"/></svg>`,"rotate-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M488 192l-144 0c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l46.7-46.7c-75.3-58.6-184.3-53.3-253.5 15.9-75 75-75 196.5 0 271.5s196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c94.3-94.3 243.7-99.6 344.3-16.2L471 7c6.9-6.9 17.2-8.9 26.2-5.2S512 14.3 512 24l0 144c0 13.3-10.7 24-24 24z"/></svg>`,server:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"/></svg>`,skull:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M416 427.4c58.5-44 96-111.6 96-187.4 0-132.5-114.6-240-256-240S0 107.5 0 240c0 75.8 37.5 143.4 96 187.4L96 464c0 26.5 21.5 48 48 48l32 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 64 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c26.5 0 48-21.5 48-48l0-36.6zM96 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-64a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>`,sort:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M2.4 204.2c5 12 16.6 19.8 29.6 19.8l320 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-9.2 9.2-11.9 22.9-6.9 34.9zm0 103.5c-5 12-2.2 25.7 6.9 34.9l160 160c12.5 12.5 32.8 12.5 45.3 0l160-160c9.2-9.2 11.9-22.9 6.9-34.9S364.9 288 352 288L32 288c-12.9 0-24.6 7.8-29.6 19.8z"/></svg>`,spinner:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"/></svg>`,stopwatch:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M168.5 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l32 0 0 25.3c-108 11.9-192 103.5-192 214.7 0 119.3 96.7 216 216 216s216-96.7 216-216c0-39.8-10.8-77.1-29.6-109.2l28.2-28.2c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-23.4 23.4c-32.9-30.2-75.2-50.3-122-55.5l0-25.3 32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-112 0zm80 184l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"/></svg>`,sun:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M288-32c8.4 0 16.3 4.4 20.6 11.7L364.1 72.3 468.9 46c8.2-2 16.9 .4 22.8 6.3S500 67 498 75.1l-26.3 104.7 92.7 55.5c7.2 4.3 11.7 12.2 11.7 20.6s-4.4 16.3-11.7 20.6L471.7 332.1 498 436.8c2 8.2-.4 16.9-6.3 22.8S477 468 468.9 466l-104.7-26.3-55.5 92.7c-4.3 7.2-12.2 11.7-20.6 11.7s-16.3-4.4-20.6-11.7L211.9 439.7 107.2 466c-8.2 2-16.8-.4-22.8-6.3S76 445 78 436.8l26.2-104.7-92.6-55.5C4.4 272.2 0 264.4 0 256s4.4-16.3 11.7-20.6L104.3 179.9 78 75.1c-2-8.2 .3-16.8 6.3-22.8S99 44 107.2 46l104.7 26.2 55.5-92.6 1.8-2.6c4.5-5.7 11.4-9.1 18.8-9.1zm0 144a144 144 0 1 0 0 288 144 144 0 1 0 0-288zm0 240a96 96 0 1 1 0-192 96 96 0 1 1 0 192z"/></svg>`,"table-cells-large":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M384 96l-128 0 0 128 128 0 0-128zm64 128l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 128zM64 288l0 128 128 0 0-128-128 0zm128-64l0-128-128 0 0 128 128 0zm64 64l0 128 128 0 0-128-128 0z"/></svg>`,"triangle-exclamation":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"/></svg>`,"up-right-from-square":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`};function qr(e,t){let n=/viewBox="([^"]+)"/.exec(t)?.[1],r=/<path[^>]* d="([^"]+)"/.exec(t)?.[1];if(!n||!r)throw Error(`icons: ${e}.svg is not a single-path Font Awesome glyph`);return{viewBox:n,path:r}}var Jr=Object.freeze(Object.fromEntries(Object.entries(Kr).map(([e,t])=>[e,qr(e,t)]))),Yr=w(`<i aria-hidden=true><svg><path>`);function $(e){return(()=>{var t=Yr(),n=t.firstChild,r=n.firstChild;return P(i=>{var a=e.class?`wurk-icon ${e.class}`:`wurk-icon`,o=e.style,s=Jr[e.name].viewBox,c=Jr[e.name].path;return a!==i.e&&ne(t,i.e=a),i.t=he(t,o,i.t),s!==i.a&&D(n,`viewBox`,i.a=s),c!==i.o&&D(r,`d`,i.o=c),i},{e:void 0,t:void 0,a:void 0,o:void 0}),t})()}var Xr=w(`<button type=button class="wurk-navlink locale-picker__trigger"aria-haspopup=menu><span class=nav-label><bdi>`),Zr=w(`<div role=menu class=locale-menu>`),Qr=w(`<button type=button role=menuitemradio class=locale-menu__item><bdi>`),$r={en:`English`,es:`Español`,fr:`Français`,de:`Deutsch`,"pt-BR":`Português (Brasil)`,ja:`日本語`,"zh-CN":`简体中文`,ar:`العربية`},ei=8,ti=160;function ni(){let e=ue(ae),t=$r[e??``]??ae,n,r,i=[],[o,s]=y(null),c=()=>o()!==null,u=()=>Math.max(0,ce.indexOf(e??``)),f=()=>{let e=n.getBoundingClientRect(),t=document.documentElement.dir===`rtl`,r=e.top-16,a=window.innerHeight-e.bottom-16,o=r>=ti||r>=a;s({start:t?window.innerWidth-e.right:e.left,up:o,offset:o?window.innerHeight-e.top+ei:e.bottom+ei,maxHeight:Math.max(o?r:a,0)}),i[u()]?.focus()},p=e=>{s(null),e&&n.focus()},h=e=>{p(!1),le(e)},g=e=>i[e]?.focus(),_=e=>{let t=ce.length-1,n=i.findIndex(e=>e===document.activeElement);switch(e.key){case`ArrowDown`:g(n>=t?0:n+1);break;case`ArrowUp`:g(n<=0?t:n-1);break;case`Home`:g(0);break;case`End`:g(t);break;case`Escape`:case`Tab`:p(!0);break;default:return}e.preventDefault()},v=e=>{c()||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.preventDefault(),f())};return d(()=>{if(!c())return;let e=e=>{let t=e.target;!r?.contains(t)&&!n.contains(t)&&p(!1)},t=()=>p(!1);document.addEventListener(`pointerdown`,e,!0),window.addEventListener(`scroll`,t,!0),window.addEventListener(`resize`,t),l(()=>{document.removeEventListener(`pointerdown`,e,!0),window.removeEventListener(`scroll`,t,!0),window.removeEventListener(`resize`,t)})}),[(()=>{var e=Xr(),r=e.firstChild,i=r.firstChild;e.$$keydown=v,e.$$click=()=>c()?p(!1):f();var a=n;return typeof a==`function`?N(a,e):n=e,A(e,m($,{name:`language`,class:`wurk-navlink__icon`}),r),A(i,t),P(n=>{var r=c(),i=M(`nav.language_current`,{name:t}),a=M(`nav.language`);return r!==n.e&&D(e,`aria-expanded`,n.e=r),i!==n.t&&D(e,`aria-label`,n.t=i),a!==n.a&&D(e,`title`,n.a=a),n},{e:void 0,t:void 0,a:void 0}),e})(),m(O,{get when(){return o()},children:t=>m(oe,{get children(){var n=Zr();n.$$keydown=_;var o=r;return typeof o==`function`?N(o,n):r=n,A(n,m(a,{each:ce,children:(t,n)=>(()=>{var r=Qr(),a=r.firstChild;return r.$$click=()=>h(t),N(e=>i[n()]=e,r),D(r,`aria-checked`,t===e),D(r,`lang`,t),A(a,()=>$r[t]??t),A(r,m(O,{when:t===e,get children(){return m($,{name:`check`})}}),null),r})()})),P(e=>{var r=M(`nav.language`),i={"inset-inline-start":`${t().start}px`,...t().up?{bottom:`${t().offset}px`}:{top:`${t().offset}px`},"max-height":`${t().maxHeight}px`};return r!==e.e&&D(n,`aria-label`,e.e=r),e.t=he(n,i,e.t),e},{e:void 0,t:void 0}),n}})})]}E([`click`,`keydown`]);var ri=`wurk.theme`;function ii(e){return e===`light`||e===`dark`||e===`system`?e:void 0}var ai;function oi(){try{return ii(localStorage.getItem(ri))}catch{return}}function si(){return ii(window.__WURK_THEME__)}function ci(){return ai??oi()??si()??`system`}function li(){return window.matchMedia?.(`(prefers-color-scheme: light)`).matches?`light`:`dark`}function ui(e){return e===`system`?li():e}function di(e){document.documentElement.dataset.theme=e;let t=document.querySelector(`meta[name="theme-color"]`),n=getComputedStyle(document.documentElement).getPropertyValue(`--bg`).trim();t&&n&&t.setAttribute(`content`,n)}function fi(e=ci()){let t=ui(e);return di(t),t}function pi(e){ai=e;try{localStorage.setItem(ri,e)}catch{}fi(e)}var mi,hi=()=>{fi()};function gi(){fi(),mi||(mi=window.matchMedia?.(`(prefers-color-scheme: light)`),mi?.addEventListener(`change`,hi))}var _i=w(`<button type=button class="wurk-navlink theme-toggle__trigger"><span class=nav-label>`),vi=[{preference:`system`,icon:`circle-half-stroke`},{preference:`light`,icon:`sun`},{preference:`dark`,icon:`moon`}];function yi(){let[e,t]=y(ci()),n=()=>vi.findIndex(t=>t.preference===e()),r=()=>vi[n()].icon,i=()=>vi[(n()+1)%vi.length].preference,a=e=>M(`theme.${e}`),o=()=>{let e=i();t(e),pi(e)};return(()=>{var t=_i(),n=t.firstChild;return t.$$click=o,A(t,m($,{get name(){return r()},class:`wurk-navlink__icon`}),n),A(n,()=>a(e())),P(n=>{var r=M(`nav.theme_current`,{name:a(e())}),o=M(`nav.theme_next`,{name:a(i())});return r!==n.e&&D(t,`aria-label`,n.e=r),o!==n.t&&D(t,`title`,n.t=o),n},{e:void 0,t:void 0}),t})()}E([`click`]);var bi=`wurk.tz`;function xi(e){if(e)try{return Intl.DateTimeFormat(void 0,{timeZone:e}).resolvedOptions().timeZone}catch{return}}function Si(){return xi(Intl.DateTimeFormat().resolvedOptions().timeZone)??`UTC`}function Ci(){try{return xi(localStorage.getItem(bi))}catch{return}}function wi(){return Ci()??Si()}var Ti=wi();function Ei(e){let t=e===null?null:xi(e);if(t!==void 0){try{t===null?localStorage.removeItem(bi):localStorage.setItem(bi,t)}catch{return}window.location.reload()}}var Di;function Oi(){if(!Di){let e=typeof Intl.supportedValuesOf==`function`?Intl.supportedValuesOf(`timeZone`):[Si()];Di=Object.freeze([`UTC`,...e.filter(e=>e!==`UTC`)])}return Di}var ki=w(`<div class=modal-footer>`),Ai=w(`<dialog class=modal><div class=modal-panel><div class=modal-header><h2 class=modal-title></h2><button class=modal-close></button></div><div class=modal-body>`),ji=240;function Mi(e){let t,n=`modal-title-${Math.random().toString(36).slice(2)}`,r=p(()=>e.children),[i,a]=y({title:e.title,children:r()});d(()=>{if(e.open)a({title:e.title,children:r()});else{let e=setTimeout(()=>a(null),ji);l(()=>clearTimeout(e))}});let o=()=>e.open?{title:e.title,children:r()}:i();return d(()=>{e.open&&!t.open?t.showModal():!e.open&&t.open&&t.close()}),x(()=>{let n=t=>{t.preventDefault(),e.onClose()};t.addEventListener(`cancel`,n),l(()=>t.removeEventListener(`cancel`,n))}),(()=>{var r=Ai(),i=r.firstChild,a=i.firstChild,s=a.firstChild,c=s.nextSibling,l=a.nextSibling;r.$$click=n=>{n.target===t&&e.onClose()};var u=t;return typeof u==`function`?N(u,r):t=r,D(r,`aria-labelledby`,n),D(s,`id`,n),A(s,()=>o()?.title),c.$$click=()=>e.onClose(),A(c,m($,{name:`xmark`})),A(l,()=>o()?.children),A(i,m(O,{get when(){return e.footer},get children(){var t=ki();return A(t,()=>e.footer),t}}),null),P(t=>{var n=`${e.width??640}px`,r=M(`common.close`);return n!==t.e&&S(i,`max-width`,t.e=n),r!==t.t&&D(c,`aria-label`,t.t=r),t},{e:void 0,t:void 0}),r})()}E([`click`]);var Ni=w(`<button type=button class="wurk-navlink timezone-picker__trigger"aria-haspopup=dialog><span class=nav-label><bdi>`),Pi=w(`<p class=timezone-picker__hint>`),Fi=w(`<input class="input timezone-picker__filter"type=search aria-controls=timezone-picker-list>`),Ii=w(`<div id=timezone-picker-list role=listbox class=timezone-picker__list>`),Li=w(`<p class=timezone-picker__empty>`),Ri=w(`<button type=button role=option class=timezone-picker__option><bdi>`);function zi(e){return e.toLowerCase().replace(/[_/]/g,` `)}function Bi(e){return e.slice(e.lastIndexOf(`/`)+1).replace(/_/g,` `)}function Vi(){let e=Ci(),t=Si(),[n,r]=y(!1),[i,o]=y(``),s,c,l=()=>Array.from(c?.querySelectorAll(`[role="option"]`)??[]),u=g(()=>{let n=[{zone:null,label:M(`timezone.automatic`,{name:t}),selected:e===void 0},...Oi().map(t=>({zone:t,label:t,selected:t===e}))],r=zi(i().trim());return r?n.filter(e=>zi(e.label).includes(r)):n}),f=()=>{r(!1),o(``)},p=e=>{f(),Ei(e)};d(()=>{n()&&s?.focus()});let h=e=>{if(e.key===`ArrowDown`)l()[0]?.focus();else if(e.key===`Enter`&&i().trim()){let e=u()[0];if(!e)return;p(e.zone)}else return;e.preventDefault()},_=e=>{let t=l(),n=t.findIndex(e=>e===document.activeElement);switch(e.key){case`ArrowDown`:t[Math.min(n+1,t.length-1)]?.focus();break;case`ArrowUp`:n<=0?s?.focus():t[n-1].focus();break;case`Home`:t[0]?.focus();break;case`End`:t[t.length-1]?.focus();break;default:return}e.preventDefault()};return[(()=>{var e=Ni(),t=e.firstChild,i=t.firstChild;return e.$$click=()=>r(!0),A(e,m($,{name:`globe`,class:`wurk-navlink__icon`}),t),A(i,()=>Bi(Ti)),P(t=>{var r=n(),i=M(`nav.timezone_current`,{name:Ti}),a=M(`timezone.shown_in`,{name:Ti});return r!==t.e&&D(e,`aria-expanded`,t.e=r),i!==t.t&&D(e,`aria-label`,t.t=i),a!==t.a&&D(e,`title`,t.a=a),t},{e:void 0,t:void 0,a:void 0}),e})(),m(Mi,{get open(){return n()},onClose:f,get title(){return M(`timezone.title`)},width:420,get children(){return m(O,{get when(){return n()},get children(){return[(()=>{var e=Pi();return A(e,()=>M(`timezone.shown_in`,{name:Ti})),e})(),(()=>{var e=Fi();e.$$keydown=h,e.$$input=e=>o(e.currentTarget.value);var t=s;return typeof t==`function`?N(t,e):s=e,P(t=>{var n=M(`timezone.filter`),r=M(`timezone.filter`);return n!==t.e&&D(e,`placeholder`,t.e=n),r!==t.t&&D(e,`aria-label`,t.t=r),t},{e:void 0,t:void 0}),P(()=>e.value=i()),e})(),(()=>{var e=Ii();e.$$keydown=_;var t=c;return typeof t==`function`?N(t,e):c=e,A(e,m(a,{get each(){return u()},children:e=>(()=>{var t=Ri(),n=t.firstChild;return t.$$click=()=>p(e.zone),A(n,()=>e.label),A(t,m(O,{get when(){return e.selected},get children(){return m($,{name:`check`})}}),null),P(()=>D(t,`aria-selected`,e.selected)),t})()})),P(()=>D(e,`aria-label`,M(`timezone.title`))),e})(),m(O,{get when(){return u().length===0},get children(){var e=Li();return A(e,()=>M(`timezone.empty`,{query:i().trim()})),e}})]}})}})]}E([`click`,`input`,`keydown`]);var Hi=new URL(`wurk-logo-ydeSB9B8.png`,import.meta.url).href;function Ui(e,t,n){return{queryKey:[e,t,n],queryFn:()=>gr(`${X()}/api/${e}?page=${t-1}&count=25&substr=${encodeURIComponent(n)}`)}}var Wi=()=>({queryKey:[`processes`],queryFn:()=>gr(`${X()}/api/processes`)}),Gi=()=>({queryKey:[`queues`],queryFn:()=>gr(`${X()}/api/queues`)}),Ki={"/retries":()=>Ui(`retries`,1,``),"/scheduled":()=>Ui(`scheduled`,1,``),"/dead":()=>Ui(`dead`,1,``),"/busy":Wi,"/queues":Gi};function qi(e,t){let n=Ki[t];n&&e.prefetchQuery({...n(),staleTime:5e3})}var Ji=w(`<div class=nav-overlay style=position:fixed;inset:0;background:var(--scrim);z-index:99;display:none>`),Yi=w(`<img alt=Wurk style="height:36px;width:auto;display:block;flex:none;filter:drop-shadow(0 2px 6px var(--shadow-color))">`),Xi=w(`<span style="font-family:var(--font-mono);font-size:10px;font-weight:500;letter-spacing:0.02em;color:var(--text-muted);background:var(--surface-strong);border:1px solid var(--border);border-radius:5px;padding:0.05rem 0.3rem">v`),Zi=w(`<span class=nav-label style=display:flex;flex-direction:column;line-height:1.15><span style=display:inline-flex;align-items:baseline;gap:0.4rem><span style=font-size:18px;font-weight:700;letter-spacing:-0.02em;color:var(--text-bright)>Wurk</span></span><span style=font-family:var(--font-mono);font-size:9px;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted);margin-top:2px;display:inline-flex;align-items:center;gap:5px><span class=live-dot style=width:6px;height:6px>`),Qi=w(`<li aria-hidden=true style="padding:0.5rem 0.95rem 0.2rem;margin-top:0.4rem"><div style=height:1px;background:var(--border);margin-bottom:0.45rem></div><span class=nav-label style=font-size:10px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-muted)>`),$i=w(`<nav class=wurk-nav style="position:fixed;top:0;inset-inline-start:0;bottom:0;background:var(--surface);border-inline-end:1px solid var(--border);display:flex;flex-direction:column;z-index:100;overflow-y:auto;overflow-x:hidden"><div class=nav-brand-wrap style="padding:1.25rem 1rem 0.75rem"></div><div style="height:1px;background:var(--border);margin:0 1rem 0.5rem"></div><ul style=list-style:none;flex:1></ul><div style="height:1px;background:var(--border);margin:0.5rem 1rem 0"></div><button type=button class=nav-collapse-toggle style="display:flex;align-items:center;gap:0.625rem;width:calc(100% - 16px);padding:0.5rem 0.85rem;margin:4px 8px;border-radius:8px;border:none;background:transparent;color:var(--text-muted);font-size:13px;cursor:pointer;font:inherit"><span class=nav-label></span></button><div style="height:1px;background:var(--border);margin:0.5rem 1rem"></div><a href=https://github.com/developerz-ai/wurk target=_blank rel="noopener noreferrer"class=wurk-navlink style="display:flex;align-items:center;gap:0.625rem;padding:0.5rem 0.85rem;margin:2px 8px 0.85rem;border-radius:8px;color:var(--text-muted);font-size:13px;text-decoration:none;transition:background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard)"><span class=nav-label>GitHub`),ea=w(`<style>
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-CC6yGLo5.js","./i18n-D0tt51I0.js","./charts-BKeDkf2K.js","./utils-CCVhZ0hw.js","./PageHeader-CoJn3Od4.js","./Queues-Ceed0Sus.js","./useResetPageOnEmpty-BXhFhL3b.js","./ArgsValue-BstD9qh1.js","./activatable-CjwuwYIK.js","./useSort-DTZk8211.js","./RefreshError-CgLq_Mv7.js","./JobDetailModal-ChX3e-8n.js","./Retries-kfg3Ql9-.js","./useJobSetList-DJu9UjV_.js","./FilterBox-WrsvwzxC.js","./Scheduled-CS6VZbIM.js","./Dead-C_2lSQ7Y.js","./Busy-DaHWj-5n.js","./Batches-DP1OXNgO.js","./BatchDetail-CxYdu4Qj.js","./Flows-BZd88wZe.js","./FlowState-DxkXTIXY.js","./FlowDetail-Bo1BOsbe.js","./Limiters-Dlr_jmFX.js","./Cron-DpWbjmMY.js","./Metrics-a1CqpvLq.js","./Profiles-CAVocaoT.js","./Search-DMtKQkLa.js","./Extension-CNHv0pog.js","./NotFound-DlOAf8pL.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,I as c,J as l,K as u,L as d,M as f,N as p,P as m,Q as h,R as g,T as _,U as v,V as y,W as b,X as ee,Y as x,Z as te,_ as S,a as C,b as w,c as T,d as ne,et as re,f as E,g as D,h as ie,i as ae,k as O,l as oe,m as se,n as ce,nt as k,o as le,p as A,q as j,r as ue,s as M,t as de,tt as fe,v as pe,w as me,x as N,y as he,z as P}from"./i18n-D0tt51I0.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function ge(){let e=new Set;function t(t){return e.add(t),()=>e.delete(t)}let n=!1;function r(t,r){if(n)return!(n=!1);let i={to:t,options:r,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(let a of e)a.listener({to:t,options:r,get defaultPrevented(){return i.defaultPrevented},preventDefault:i.preventDefault,from:a.location,retry:e=>{e&&(n=!0),a.navigate(t,{...r,resolve:!1})}});return!i.defaultPrevented}return{subscribe:t,confirm:r}}var F;function _e(){let e=window.history,t=e.state&&e.state._depth;t??(t=F==null?e.length-1:F+1,e.replaceState({...e.state,_depth:t},``)),F=(e.state&&e.state._depth)??t}_e();function ve(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function ye(e){let t=(window.history.state&&window.history.state._depth)??F;return{...e,_depth:(t??window.history.length-1)+1}}function be(e,t){let n=!1;return()=>{let r=F;_e();let i=r==null?null:F-r;n?n=!1:i&&t(i)?(n=!0,window.history.go(-i)):e()}}var xe=/^(?:[a-z0-9]+:)?\/\//i,Se=/^\/+|(\/)\/+$/g,Ce=`http://sr`;function I(e,t=!1){let n=e.replace(Se,`$1`);return n?t||/^[?#]/.test(n)?n:`/`+n:``}function we(e,t,n){if(xe.test(t))return;let r=I(e),i=n&&I(n),a=``;return a=!i||t.startsWith(`/`)?r:i.toLowerCase().indexOf(r.toLowerCase())===0?i:r+i,(a||`/`)+I(t,!a)}function Te(e,t){if(e==null)throw Error(t);return e}function Ee(e,t){return I(e).replace(/\/*(\*.*)?$/g,``)+I(t)}function De(e){let t={};return e.searchParams.forEach((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e}),t}function Oe(e,t,n){let[r,i]=e.split(`/*`,2),a=r.split(`/`).filter(Boolean),o=a.length;return e=>{let r=e.split(`/`);if(r[0]===``&&r.shift(),r.length&&r[r.length-1]===``&&r.pop(),r.includes(``))return null;let s=r.length-o;if(s<0||s>0&&i===void 0&&!t)return null;let c={path:o?``:`/`,params:{}},l=e=>n===void 0?void 0:n[e];for(let e=0;e<o;e++){let t=a[e],n=t[0]===`:`,i=n?r[e]:r[e].toLowerCase(),o=n?t.slice(1):t.toLowerCase();if(n&&ke(i,l(o)))c.params[o]=i;else if(n||!ke(i,o))return null;c.path+=`/${i}`}if(i){let e=s?r.slice(-s).join(`/`):``;if(ke(e,l(i)))c.params[i]=e;else return null}return c}}function ke(e,t){let n=t=>t===e;return t===void 0?!0:typeof t==`string`?n(t):typeof t==`function`?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e)}function Ae(e){let[t,n]=e.pattern.split(`/*`,2),r=t.split(`/`).filter(Boolean);return r.reduce((e,t)=>e+(t.startsWith(`:`)?2:3),r.length-(n===void 0?0:1))}function je(e){let t=new Map,n=b();return new Proxy({},{get(r,i){return t.has(i)||te(n,()=>t.set(i,g(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(t,n){return n in e()}})}function Me(e,t){let n=new URLSearchParams(e);Object.entries(t).forEach(([e,t])=>{t==null||t===``||t instanceof Array&&!t.length?n.delete(e):t instanceof Array?(n.delete(e),t.forEach(t=>{n.append(e,String(t))})):n.set(e,String(t))});let r=n.toString();return r?`?${r}`:``}function Ne(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length),i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return Ne(r).reduce((e,t)=>[...e,...i.map(e=>e+t)],[])}var Pe=100,Fe=c(),Ie=c(),L=()=>Te(k(Fe),`<A> and 'use' router primitives can be only used inside a Route.`),Le=()=>k(Ie)||L().base,Re=e=>{let t=Le();return g(()=>t.resolvePath(e()))},ze=e=>{let t=L();return g(()=>{let n=e();return n===void 0?n:t.renderPath(n)})},Be=()=>L().navigatorFactory(),Ve=()=>L().location,He=()=>L().isRouting,Ue=()=>L().params,We=()=>{let e=L(),t=e.location,n=Be();return[t.query,(r,i)=>{let a=fe(()=>{let n=e.pendingTarget&&new URL(e.pendingTarget.value,`http://sr`),i=n?n.pathname:t.pathname,a=n?n.search:t.search,o=n?n.hash:t.hash;return i+Me(a,r)+o});n(a,{scroll:!1,resolve:!1,...i})}]},Ge=e=>encodeURIComponent(e).replace(/%(2B|40|3A|24|26|2C|3B|3D)/g,e=>decodeURIComponent(e));function Ke(e,t=``){let{component:n,preload:r,load:i,children:a,info:o}=e,s=!a||Array.isArray(a)&&!a.length,c={key:e,component:n,preload:r||i,info:o};return Je(e.path).reduce((n,r)=>{for(let i of Ne(r)){let a=Ee(t,i),o=s?a:a.split(`/*`,1)[0];o=o.split(`/`).map(e=>e.startsWith(`:`)||e.startsWith(`*`)?e:Ge(e)).join(`/`),n.push({...c,originalPath:r,pattern:o,matcher:Oe(o,!s,e.matchFilters)})}return n},[])}function qe(e,t=0){return{routes:e,score:Ae(e[e.length-1])*1e4-t,matcher(t){let n=[];for(let r=e.length-1;r>=0;r--){let i=e[r],a=i.matcher(t);if(!a)return null;n.unshift({...a,route:i})}return n}}}function Je(e){return Array.isArray(e)?e:[e]}function Ye(e,t=``,n=[],r=[]){let i=Je(e);for(let e=0,a=i.length;e<a;e++){let a=i[e];if(a&&typeof a==`object`){a.hasOwnProperty(`path`)||(a.path=``);let e=Ke(a,t);for(let t of e){n.push(t);let e=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!e)Ye(a.children,t.pattern,n,r);else{let e=qe([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function Xe(e,t){for(let n=0,r=e.length;n<r;n++){let r=e[n].matcher(t);if(r)return r}return[]}function Ze(e,t,n){let r=new URL(Ce),i=g(t=>{let n=e();try{return new URL(n[0]===`/`?Ce+n:n,r)}catch{return console.error(`Invalid path ${n}`),t}},r,{equals:(e,t)=>e.href===t.href}),a=g(()=>i().pathname),o=g(()=>i().search,!0),s=g(()=>i().hash),c=()=>``,l=j(o,()=>De(i()));return{get pathname(){return a()},get search(){return o()},get hash(){return s()},get state(){return t()},get key(){return c()},query:n?n(l):je(l)}}var R;function Qe(){return R}function $e(e,t,n,r={}){let{signal:[i,a],utils:o={}}=e,s=o.parsePath||(e=>e),c=o.renderPath||(e=>e),l=o.beforeLeave||ge(),u=we(``,r.base||``);if(u===void 0)throw Error(`${u} is not a valid base path`);u&&!i().value&&a({value:u,replace:!0,scroll:!1});let[d,p]=y(!1),m,h=(e,t)=>{let n=m||{value:_(),state:b()};(t.value!==n.value||t.state!==n.state)&&(m===void 0&&p(!0),R=e,m=t,re(()=>{m===t&&(v(m.value),x(m.state),ee(),w[1](e=>e.filter(e=>e.pending)))}).finally(()=>{m===t&&f(()=>{R=void 0,e===`navigate`&&O(m),p(!1),m=void 0})}))},[_,v]=y(i().value),[b,x]=y(i().state),S=Ze(_,b,o.queryWrapper),C=[],w=y([]),T=g(()=>typeof r.transformUrl==`function`?Xe(t(),r.transformUrl(S.pathname)):Xe(t(),S.pathname)),ne=()=>{let e=T(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},E=o.paramsWrapper?o.paramsWrapper(ne,t):je(ne),D={pattern:u,path:()=>u,outlet:()=>null,resolvePath(e){return we(u,e)}};return P(j(i,e=>h(`native`,e),{defer:!0})),{base:D,location:S,params:E,isRouting:d,get pendingTarget(){return m},renderPath:c,parsePath:s,navigatorFactory:ae,matches:T,beforeLeave:l,preloadRoute:oe,singleFlight:r.singleFlight===void 0||r.singleFlight,submissions:w};function ie(e,t,n){fe(()=>{if(typeof t==`number`){t&&(o.go?o.go(t):console.warn(`Router integration does not support relative routing`));return}let r=!t||t[0]===`?`,{replace:i,resolve:a,scroll:s,state:c}={replace:!1,resolve:!r,scroll:!0,...n},u=a?e.resolvePath(t):we(r&&S.pathname||``,t);if(u===void 0)throw Error(`Path '${t}' is not a routable path`);if(C.length>=Pe)throw Error(`Too many redirects`);let d=_(),f=m||{value:d,state:b()};(u!==f.value||c!==f.state)&&l.confirm(u,n)&&(C.push({value:d,replace:i,scroll:s,state:b()}),h(`navigate`,{value:u,state:c}))})}function ae(e){return e=e||k(Ie)||D,(t,n)=>ie(e,t,n)}function O(e){let t=C[0];t&&(e.value!==t.value||e.state!==t.state)&&a({...e,replace:t.replace,scroll:t.scroll}),C.length=0}function oe(e,r){let i=Xe(t(),e.pathname),a=R;R=`preload`;for(let t in i){let{route:a,params:o}=i[t];a.component&&a.component.preload&&a.component.preload();let{preload:s}=a;r&&s&&te(n(),()=>s({params:o,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:De(e),state:null,key:``},intent:`preload`}))}R=a}}function et(e,t,n,r){let{base:i,location:a,params:o}=e,{pattern:s,component:c,preload:l}=r().route,u=g(()=>r().path);c&&c.preload&&c.preload();let d=l?l({params:o,location:a,intent:R||`initial`}):void 0;return{parent:t,pattern:s,path:u,outlet:()=>c?m(c,{params:o,location:a,data:d,get children(){return n()}}):n(),resolvePath(e){return we(i.path(),e,u())}}}var tt=e=>t=>{let{base:n}=t,r=p(()=>t.children),i=g(()=>Ye(r(),t.base||``)),a,o=$e(e,i,()=>a,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(o),m(Fe.Provider,{value:o,get children(){return m(nt,{routerState:o,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[se(()=>(a=b())&&null),m(rt,{routerState:o,get branches(){return i()}})]}})}})};function nt(e){let t=e.routerState.location,n=e.routerState.params,r=g(()=>e.preload&&fe(()=>{e.preload({params:n,location:t,intent:Qe()||`initial`})}));return m(O,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>m(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function rt(e){let t=[],r;l(()=>t.forEach(e=>e()));let i=g(j(e.routerState.matches,(a,o,s)=>{let c=o&&a.length===o.length,l=[];for(let r=0,u=a.length;r<u;r++){let u=o&&o[r],d=a[r];s&&u&&d.route.key===u.route.key?l[r]=s[r]:(c=!1,t[r]&&t[r](),n(n=>{t[r]=n,l[r]=et(e.routerState,l[r-1]||e.routerState.base,it(()=>i()[r+1]),()=>{let t=e.routerState.matches();return t[r]??t[0]})}))}return t.splice(a.length).forEach(e=>e()),s&&c?s:(r=l[0],l)}));return it(()=>i()&&r)()}var it=e=>()=>m(O,{get when(){return e()},keyed:!0,children:e=>m(Ie.Provider,{value:e,get children(){return e.outlet()}})}),z=e=>{let t=p(()=>e.children);return u(e,{get children(){return t()}})};function at([e,t],n,r){return[n?()=>n(e()):e,r?e=>t(r(e)):t]}function ot(e){let t=!1,n=e=>typeof e==`string`?{value:e}:e,r=at(y(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),void 0,n=>(!t&&e.set(n),h.registry&&!h.done&&(h.done=!0),n));return e.init&&l(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),tt({signal:r,create:e.create,utils:e.utils})}function st(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function ct(e,t){let n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}var lt=new Map;function ut({preload:e=!0,explicitLinks:t=!1,actionBase:n=`/_server`,transformUrl:r}={}){return i=>{let a=i.base.path(),o=i.navigatorFactory(i.base),s,c;function u(e){return e.namespaceURI===`http://www.w3.org/2000/svg`}function d(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;let n=e.composedPath().find(e=>e instanceof Node&&e.nodeName.toUpperCase()===`A`);if(!n||t&&!n.hasAttribute(`link`))return;let r=u(n),i=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!i&&!n.hasAttribute(`state`))return;let o=(n.getAttribute(`rel`)||``).split(/\s+/);if(n.hasAttribute(`download`)||o&&o.includes(`external`))return;let s=r?new URL(i,document.baseURI):new URL(i);if((s.protocol===`https:`||s.protocol===`http:`)&&!(s.origin!==window.location.origin||a&&s.pathname&&!s.pathname.toLowerCase().startsWith(a.toLowerCase())))return[n,s]}function f(e){let t=d(e);if(!t)return;let[n,r]=t,a=i.parsePath(r.pathname+r.search+r.hash),s=n.getAttribute(`state`);e.preventDefault(),o(a,{resolve:!1,replace:n.hasAttribute(`replace`),scroll:!n.hasAttribute(`noscroll`),state:s?JSON.parse(s):void 0})}function p(e){let t=d(e);if(!t)return;let[n,a]=t;r&&(a.pathname=r(a.pathname)),i.preloadRoute(a,n.getAttribute(`preload`)!==`false`)}function m(e){clearTimeout(s);let t=d(e);if(!t)return c=null;let[n,a]=t;c!==n&&(r&&(a.pathname=r(a.pathname)),s=setTimeout(()=>{i.preloadRoute(a,n.getAttribute(`preload`)!==`false`),c=n},20))}function h(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute(`formaction`)?e.submitter.getAttribute(`formaction`):e.target.getAttribute(`action`);if(!t)return;if(!t.startsWith(`https://action/`)){let e=new URL(t,Ce);if(t=i.parsePath(e.pathname+e.search),!t.startsWith(n))return}if(e.target.method.toUpperCase()!==`POST`)throw Error(`Only POST forms are supported for Actions`);let r=lt.get(t);if(r){e.preventDefault();let t=new FormData(e.target,e.submitter);r.call({r:i,f:e.target},e.target.enctype===`multipart/form-data`?t:new URLSearchParams(t))}}E([`click`,`submit`]),document.addEventListener(`click`,f),e&&(document.addEventListener(`mousemove`,m,{passive:!0}),document.addEventListener(`focusin`,p,{passive:!0}),document.addEventListener(`touchstart`,p,{passive:!0})),document.addEventListener(`submit`,h),l(()=>{document.removeEventListener(`click`,f),e&&(document.removeEventListener(`mousemove`,m),document.removeEventListener(`focusin`,p),document.removeEventListener(`touchstart`,p)),document.removeEventListener(`submit`,h)})}}var dt=`solid-router:scroll`;function ft(){window.history.scrollRestoration=`manual`,_e();let e={};try{e=JSON.parse(sessionStorage.getItem(dt))||{}}catch{}let t=()=>window.history.state&&window.history.state._depth,n=!1,r,i=[st(window,`scroll`,()=>{let i=t();i!=null&&(e[i]=window.scrollY),n||(r=void 0)}),st(window,`pagehide`,()=>{try{sessionStorage.setItem(dt,JSON.stringify(e))}catch{}})],a=()=>{if(r==null)return;let t=e[r];r=void 0,t!=null&&(n=!0,window.scrollTo(0,t),n=!1)};return{onPop(){r=t()},onPush(){let n=t();if(n!=null)for(let t in e)+t>=n&&delete e[t]},create(e){d(j(e.isRouting,e=>e||a(),{defer:!0})),l(()=>i.forEach(e=>e()));let[n]=performance.getEntriesByType&&performance.getEntriesByType(`navigation`);n&&n.type!==`navigate`&&(r=t(),a())}}}function pt(e){let t=e.scrollRestoration?ft():void 0,n=()=>{let e=window.location.pathname+window.location.search,t=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:e+window.location.hash,state:t}},r=ge();return ot({get:n,set({value:e,replace:n,scroll:r,state:i}){n?window.history.replaceState(ve(i),``,e):window.history.pushState(ye(i),``,e),ct(decodeURIComponent(window.location.hash.slice(1)),r),_e(),t&&!n&&t.onPush()},init:e=>{let i=be(e,e=>{if(e)return!r.confirm(e);{let e=n();return!r.confirm(e.value,{state:e.state})}});return st(window,`popstate`,t?()=>{t.onPop(),i()}:i)},create:n=>{ut({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl})(n),t&&t.create(n)},utils:{go:e=>window.history.go(e),beforeLeave:r}})(e)}var mt=w(`<a>`),ht=e=>{let t=new URLSearchParams(e);return t.sort(),t.toString()},gt,_t;function vt(e){return e!==gt&&(_t=decodeURI(I(e).toLowerCase().replace(/\/$/,``)),gt=e),_t}var yt=[`href`,`state`,`class`,`activeClass`,`inactiveClass`,`end`];[...yt];function bt(t){let n=Re(()=>t.href),r=ze(n),i=Ve(),a=g(()=>{let e=n();if(e===void 0)return[!1,!1];let r=I(e.split(/[?#]/,1)[0]).toLowerCase().replace(/\/$/,``),a=vt(i.pathname);if(r!==a)return[!t.end&&a.startsWith(r+`/`),!1];let o=e.split(`#`,1)[0],s=o.indexOf(`?`);return[!0,ht(i.search)===ht(s<0?``:o.slice(s))]}),o=()=>{let e=t.state;return e===void 0?void 0:JSON.stringify(e)},[,s]=e(t,[...yt]);return(()=>{var e=mt();return pe(e,u(s,{get href(){return r()||t.href},get state(){return o()},get classList(){return{...t.class&&{[t.class]:!0},[t.inactiveClass??`inactive`]:!a()[0],[t.activeClass??`active`]:a()[0],...s.classList}},link:``,get"aria-current"(){return a()[1]?`page`:void 0}}),!1,!1),e})()}var xt=Symbol(`store-raw`),B=Symbol(`store-node`),V=Symbol(`store-has`),St=Symbol(`store-self`);function Ct(e){let t=e[r];if(!t&&(Object.defineProperty(e,r,{value:t=new Proxy(e,jt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function wt(e){let t;return typeof e==`object`&&!!e&&(e[r]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Tt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[xt])return n;if(!wt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Tt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],o[a].get||(i=e[a],(r=Tt(i,t))!==i&&(e[a]=r))}return e}function Et(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Dt(e,t,n){if(e[t])return e[t];let[r,i]=y(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Ot(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===r||t===B||(delete n.value,delete n.writable,n.get=()=>e[r][t]),n}function kt(e){v()&&Dt(Et(e,B),St)()}function At(e){return kt(e),Reflect.ownKeys(e)}var jt={get(e,t,n){if(t===xt)return e;if(t===r)return n;if(t===me)return kt(e),n;let i=Et(e,B),a=i[t],o=a?a():e[t];if(t===B||t===V||t===`__proto__`)return o;if(!a){let n=Object.getOwnPropertyDescriptor(e,t);v()&&(typeof o!=`function`||Object.prototype.hasOwnProperty.call(e,t))&&!(n&&n.get)&&(o=Dt(i,t,o)())}return wt(o)?Ct(o):o},has(e,t){return t===xt||t===r||t===me||t===B||t===V||t===`__proto__`||(v()&&Dt(Et(e,V),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:At,getOwnPropertyDescriptor:Ot};function Mt(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[V]&&e[V][t]&&i!==void 0&&e[V][t].$()):(e[t]=n,e[V]&&e[V][t]&&i===void 0&&e[V][t].$());let o=Et(e,B),s;if((s=Dt(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Dt(o,`length`,a))&&s.$(e.length)}(s=o[St])&&s.$()}function Nt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Pt(i)||Mt(e,i,t[i])}}function Pt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Ft(e,t){if(typeof t==`function`&&(t=t(e)),t=Tt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Mt(e,n,r)}Mt(e,`length`,r)}else Nt(e,t)}function It(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Pt(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)It(e,[r[i]].concat(t),n);return}if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&It(e,[i].concat(t),n);return}if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)It(e,[r].concat(t),n);return}if(t.length>1){It(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||(r!==void 0||a!=null)&&(a=Tt(a),r===void 0||wt(i)&&wt(a)&&!Array.isArray(a)?Nt(i,a):Mt(e,r,a))}function Lt(...[e,t]){let n=Tt(e||{}),r=Array.isArray(n),i=Ct(n);function a(...e){f(()=>{r&&e.length===1?Ft(n,e[0]):It(n,e)})}return[i,a]}var Rt={},zt=[];function Bt(e,t=[]){Rt=e,zt=[...Object.values(e),...t]}function Vt(e){let t=e.startsWith(`/ext/`)?Rt[`/ext/`]:Rt[e];t&&t.preload()}function Ht(){let e=()=>zt.forEach(e=>void e.preload());typeof window<`u`&&(`requestIdleCallback`in window?window.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,1500))}var Ut=w(`<div class=route-progress role=progressbar aria-busy=true>`);function Wt(){let e=He();return m(O,{get when(){return e()},get children(){var e=Ut();return P(()=>D(e,`aria-label`,M(`common.loading`))),e}})}var Gt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},H=new class{#e=Gt;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Kt(e){setTimeout(e,0)}var qt=typeof window>`u`||`Deno`in globalThis;function U(){}function Jt(e,t){return typeof e==`function`?e(t):e}function Yt(e){return typeof e==`number`&&e>=0&&e!==1/0}function Xt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function W(e,t){return typeof e==`function`?e(t):e}function Zt(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==$t(o,t.options))return!1}else if(!K(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Qt(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(G(t.options.mutationKey)!==G(a))return!1}else if(!K(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function $t(e,t){return(t?.queryKeyHashFn||G)(e)}function G(e){return JSON.stringify(e,(e,t)=>an(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function K(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!K(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!K(e[r],t[r]))return!1;return!0}return!1}var en=Object.prototype.hasOwnProperty;function tn(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=rn(e)&&rn(t);if(!r&&!(an(e)&&an(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:en.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=tn(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function nn(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n of Object.keys(e))if(!en.call(t,n)||e[n]!==t[n])return!1;return!0}function rn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function an(e){if(!on(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!on(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function on(e){return Object.prototype.toString.call(e)===`[object Object]`}function sn(e){return new Promise(t=>{H.setTimeout(t,e)})}function cn(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:tn(e,t)}function ln(e){return e}function un(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(-n):r}function dn(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,n):r}var fn=Symbol();function pn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fn?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function mn(e,t){return typeof e==`function`?e(...t):!!e}var hn=Symbol();function gn(e,t,n,r){let i=!1,a;return Object.defineProperties(e,{[hn]:{value:r},signal:{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?n():a.addEventListener(`abort`,n,{once:!0})),a)}}),e}var _n=()=>qt,vn=()=>_n(),q=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yn=new class extends q{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},bn=Kt;function xn(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=bn,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var J=xn(),Sn=new class extends q{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Cn(e){return Math.min(1e3*2**e,3e4)}function wn(e){return(e??`online`)!==`online`||Sn.isOnline()}var Tn=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function En(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(U);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Tn(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>yn.isFocused()&&(e.networkMode===`always`||Sn.isOnline())&&e.canRun(),p=()=>wn(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(vn()?0:3),a=e.retryDelay??Cn,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),sn(o).then(()=>c()||f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var Dn=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yt(this.gcTime)&&(this.#e=H.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vn()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(H.clearTimeout(this.#e),this.#e=void 0)}};function On(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=t,u=e=>{gn(e,()=>t.signal,()=>n=!0,l[hn])},d=pn(t.options,t.fetchOptions),f=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return u(e),e})(),o=await d(a),{maxPages:s}=t.options,c=i?dn:un;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?An:kn,n={pages:a,pageParams:o};s=await f(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:kn(r,s);if(c>0&&e==null)break;s=await f(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function kn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function An(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var jn=class extends Dn{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e){super(),this.#c=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Pn(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Pn(this.options);e.data!==void 0&&(this.setState(Nn(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=cn(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>W(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.state.data!==void 0&&this.getObserversCount()>0&&this.observers.some(e=>W(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Xt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#c||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a&&this.#o)return this.#a.continueRetry(),this.#o}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperties(e,{[hn]:{value:n.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#c=!0,n.signal)}})},i=()=>{let e=pn(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#c=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?On(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=En({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Tn&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),s=(async()=>{try{let e=await o.promise;if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Tn){if(e.silent){if(this.#a!==o&&this.#o)return this.#o;throw e}if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0,this.#o=void 0),this.scheduleGc()}})();return this.#o=s,o.start(),s}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Mn(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Nn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),J.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Mn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wn(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Nn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Pn(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Fn=class extends q{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ln(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rn(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rn(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof W(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!nn(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&zn(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||W(this.options.staleTime,this.#t)!==W(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return nn(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch(t).then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(U)),t}#h(e){return!vn()&&W(this.options.enabled,this.#t)!==!1&&Yt(e)}#g(){this.#b();let e=W(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Xt(this.#r.dataUpdatedAt,e)+1;this.#u=H.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return W(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=H.setInterval(()=>{(this.options.refetchIntervalInBackground||yn.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(H.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(H.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ln(e,t),o=i&&zn(e,n,t,r);(a||o)&&(l={...l,...Mn(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=cn(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=cn(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=i?.error===f?i.errorUpdatedAt:Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Bn(e,t),refetch:this.refetch,isEnabled:W(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),nn(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size||this.options.throwOnError&&this.#r.error!==e.error)return!0;for(let t of n??this.#p)if(this.#r[t]!==e[t])return!0;return!1})();J.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function In(e,t){return W(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||W(t.retryOnMount,e)!==!1)}function Ln(e,t){return In(e,t)||e.state.data!==void 0&&Rn(e,t,t.refetchOnMount)}function Rn(e,t,n){if(W(t.enabled,e)!==!1&&W(t.staleTime,e)!==`static`){let r=W(n,e);return r===`always`||r!==!1&&Bn(e,t)}return!1}function zn(e,t,n,r){return(e!==t||W(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Bn(e,n)}function Bn(e,t){return W(t.enabled,e)!==!1&&e.isStaleByTime(W(t.staleTime,e))}var Vn=class extends Dn{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Hn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=En({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}this.state.isPaused&&r.canStart()&&t();let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Hn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Un=class extends q{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Vn({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Wn(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Wn(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Qt(t,e))}findAll(e={}){return this.getAll().filter(t=>Qt(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(U))))}};function Wn(e){return e.options.scope?.id}var Gn=class extends q{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),nn(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&G(t.mutationKey)!==G(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Hn();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){J.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Kn=class extends q{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??$t(r,t),a=this.get(i);return a||(a=new jn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Zt(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Zt(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Kn,this.#t=e.mutationCache||new Un,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=yn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Sn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(W(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Jt(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(U).catch(U)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(U)),r?Promise.resolve():t}));return Promise.all(r).then(U)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(W(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(W(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(U).catch(U)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(U).catch(U)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Sn.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(G(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{K(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(G(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{K(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=$t(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===fn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Jn=c(void 0),Yn=`No QueryClient set, use QueryClientProvider to set one`,Xn=e=>{if(e)return e;let t=k(Jn);if(!t)throw Error(Yn);return t()},Zn=e=>{let t=k(Jn);return()=>{let n=e?.();if(n)return n;if(!t)throw Error(Yn);return t()}},Qn=e=>(P(t=>(t?.(),e.client.mount(),e.client.unmount.bind(e.client))),l(()=>e.client.unmount()),m(Jn.Provider,{value:()=>e.client,get children(){return e.children}}));c(()=>!1).Provider;function $n(e,t){let n=Zn(t),r=new Gn(g(()=>n())(),e()),i=(...e)=>{r.mutate(e[0],e[1]).catch(U)},[a,s]=Lt({...r.getCurrentResult(),mutate:i,mutateAsync:r.getCurrentResult().mutate});o(()=>{r.setOptions(e())}),o(j(()=>a.status,()=>{if(a.isError&&mn(r.options.throwOnError,[a.error]))throw a.error}));let c=r.subscribe(e=>{s({...e,mutate:i,mutateAsync:e.mutate})});return l(c),a}var er=class extends qn{constructor(e={}){super(e)}},Y=new Map,[tr,nr]=y(0),rr=0,ir=()=>nr(e=>e+1),ar=e=>JSON.stringify(e);function or(e,t){return t.every((t,n)=>JSON.stringify(t)===JSON.stringify(e[n]))}function sr(e,t){tr();let n=ar(e),r=t;for(let t of Y.values())if(!t.fresh.has(n))for(let n of t.patches)!n.oneShot&&r!==void 0&&or(e,n.queryKey)&&(r=n.update(r));return r}function cr(){return tr()}function lr(e,t,n){let r=e.getQueryCache();return{onMutate:async n=>{let r=t(n);await Promise.all(r.map(t=>e.cancelQueries({queryKey:t.queryKey})));let i=r.filter(e=>e.oneShot),a=i.flatMap(t=>e.getQueriesData({queryKey:t.queryKey})),o=[];for(let t of i)for(let[n,r]of e.getQueriesData({queryKey:t.queryKey}))r!==void 0&&(e.setQueryData(n,t.update(r)),o.push([n,e.getQueryState(n)?.dataUpdateCount??-1]));let s=rr+=1;return Y.set(s,{patches:r,fresh:new Set}),ir(),{id:s,snapshot:a,written:o}},rollback:t=>{if(t){Y.delete(t.id),ir();for(let[n,r]of t.snapshot){let i=t.written.find(([e])=>ar(e)===ar(n))?.[1];e.getQueryState(n)?.dataUpdateCount===i&&e.setQueryData(n,r)}}},onSettled:(t,i,a,o)=>{let s=o&&!i?Y.get(o.id):void 0;if(o&&s){let e=new Set,t=r.subscribe(n=>{if(!Y.has(o.id))return t();let i=n.query;s.patches.some(e=>or(i.queryKey,e.queryKey))&&(n.type===`updated`&&n.action.type===`fetch`&&e.add(i.queryHash),n.type===`updated`&&n.action.type===`success`&&!n.action.manual&&e.has(i.queryHash)&&(s.fresh.add(ar(i.queryKey)),ir()),s.patches.some(e=>r.findAll({queryKey:e.queryKey}).some(e=>!s.fresh.has(ar(e.queryKey))))||(t(),Y.delete(o.id),ir()))})}for(let t of n)e.invalidateQueries({queryKey:t})}}}function ur(e){return{queryKey:[`stats`],oneShot:!0,update:t=>{let n={...t};for(let[t,r]of Object.entries(e))typeof n[t]==`number`&&(n[t]=Math.max(0,n[t]+r));return n}}}function dr(e){let t=Xn(),n=g(()=>{cr();let n=t.defaultQueryOptions(e());n._optimisticResults=`optimistic`;let r=n.select,i=n.queryKey;return n.select=e=>sr(i,r?r(e):e),n}),r=new Fn(t,n()),i=r.getOptimisticResult(n()),[a,s]=Lt({...i,data:void 0}),[c,u]=y(i.data),d=e=>{let{data:t,...n}=e;f(()=>{s(n),u(()=>t)})},p=r.subscribe(d);return l(p),o(j(n,e=>{r.setOptions(e),d(r.getOptimisticResult(e))},{defer:!0})),new Proxy(a,{get:(e,t)=>t===`data`?c():Reflect.get(e,t)})}function fr(e,t,n,r=3e4){e.prefetchQuery({queryKey:t,queryFn:n,staleTime:r})}function X(){return((typeof window<`u`?window.__WURK_BASE__:void 0)??`/wurk`).replace(/\/+$/,``)}var pr=class extends Error{status;body;constructor(e,t){super(`Request failed (${e})`),this.name=`RequestError`,this.status=e,this.body=t}};function mr(e){if(!(e instanceof pr)||e.status!==422)return null;let t=e.body;return t&&Array.isArray(t.failed)&&typeof t.count==`number`?t:null}async function hr(e,t){let n=await fetch(e,{method:`POST`,headers:t===void 0?{}:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)});if(!n.ok)throw new pr(n.status,await n.json().catch(()=>void 0));return n}async function gr(e){let t=await fetch(e);if(!t.ok)throw new pr(t.status);return t.json()}async function _r(e,t){let n=await fetch(e,t);return{ok:n.ok,status:n.status,text:await n.text()}}function vr(){return dr(()=>({queryKey:[`meta`],queryFn:()=>gr(`${X()}/api/meta`),staleTime:1/0}))}var yr=1e3,[br,xr]=y(0),Sr=null,Cr=0;function wr(){return br()}function Tr(){Sr!==null&&clearInterval(Sr),Sr=null}function Er(){x(()=>{Cr===0&&(Sr=setInterval(()=>xr(e=>e+1),yr)),Cr+=1,l(()=>{--Cr,Cr===0&&Tr()})})}var Dr=Object.freeze([{to:`/`,labelKey:`nav.dashboard`,icon:`gauge-high`,end:!0},{to:`/queues`,labelKey:`nav.queues`,icon:`layer-group`,end:!1},{to:`/retries`,labelKey:`nav.retries`,icon:`rotate-right`,end:!1},{to:`/scheduled`,labelKey:`nav.scheduled`,icon:`clock`,end:!1},{to:`/dead`,labelKey:`nav.dead`,icon:`skull`,end:!1},{to:`/busy`,labelKey:`nav.busy`,icon:`gears`,end:!1},{to:`/batches`,labelKey:`nav.batches`,icon:`table-cells-large`,end:!1},{to:`/flows`,labelKey:`nav.flows`,icon:`diagram-project`,end:!1},{to:`/limiters`,labelKey:`nav.limiters`,icon:`gauge`,end:!1},{to:`/cron`,labelKey:`nav.cron`,icon:`stopwatch`,end:!1},{to:`/metrics`,labelKey:`nav.metrics`,icon:`chart-line`,end:!1},{to:`/profiles`,labelKey:`nav.profiles`,icon:`fire`,end:!1},{to:`/search`,labelKey:`nav.search`,icon:`magnifying-glass`,end:!1}]);function Or(e){return M(e.labelKey)}var[kr,Ar]=y(null),[jr,Mr]=y(0),[Nr,Pr]=y(!1),Z=null,Fr=0,Ir=2,Lr=3e3,Rr=3e4,zr=5e3,Br=0,Vr,Q;function Hr(){clearTimeout(Vr),clearTimeout(Q),Vr=void 0,Q=void 0,Br=0}function Ur(){let e=new EventSource(`${X()}/api/stream`);Z=e,e.addEventListener(`stats`,e=>{try{Ar(JSON.parse(e.data)),Mr(Date.now())}catch{}}),e.onopen=()=>{Br=0,clearTimeout(Q),Q=void 0,Pr(!0)},e.onerror=()=>{if(Z!==e)return;if(e.readyState!==Ir){Q??=setTimeout(()=>{Q=void 0,Pr(!1)},zr);return}clearTimeout(Q),Q=void 0,Pr(!1),e.close(),Z=null;let t=Math.min(Rr,Lr*2**Br);Br+=1,Vr=setTimeout(()=>{Vr=void 0,Fr>0&&!Z&&Ur()},t)}}function Wr(){Hr(),Z?.close(),Z=null,Pr(!1),Ar(null)}function Gr(e=!0){return x(()=>{e&&(Fr===0&&Ur(),Fr+=1,l(()=>{--Fr,Fr===0&&Wr()}))}),{stats:kr,statsAt:jr,connected:Nr}}var Kr={"angles-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256 406.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/></svg>`,"angles-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M439.1 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L371.2 256 233.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L179.2 256 41.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/></svg>`,"arrow-down-wide-short":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"/></svg>`,"arrow-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"/></svg>`,"arrow-up-right-from-square":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z"/></svg>`,"arrow-up-short-wide":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0zM150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"/></svg>`,ban:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,bars:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/></svg>`,bolt:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M384 512L96 512c-53 0-96-43-96-96L0 96C0 43 43 0 96 0L400 0c26.5 0 48 21.5 48 48l0 288c0 20.9-13.4 38.7-32 45.3l0 66.7c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zM96 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0 0-64-256 0zm32-232c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24 72c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"/></svg>`,calendar:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M120 0c13.3 0 24 10.7 24 24l0 40 160 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-40c0-13.3 10.7-24 24-24zm0 112l-56 0c-8.8 0-16 7.2-16 16l0 48 352 0 0-48c0-8.8-7.2-16-16-16l-264 0zM48 224l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192-352 0z"/></svg>`,"chart-line":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"circle-check":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"/></svg>`,"circle-exclamation":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"/></svg>`,"circle-half-stroke":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,"circle-info":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"/></svg>`,clock:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>`,compass:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,crown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M313 87.2c9.2-7.3 15-18.6 15-31.2 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 12.6 5.9 23.9 15 31.2L194.6 194.8c-10 15.7-31.3 19.6-46.2 8.4L88.9 158.7c4.5-6.4 7.1-14.3 7.1-22.7 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 21.8 17.5 39.6 39.2 40L87.8 393.5c4.7 31.3 31.6 54.5 63.3 54.5l273.8 0c31.7 0 58.6-23.2 63.3-54.5L520.8 176c21.7-.4 39.2-18.2 39.2-40 0-22.1-17.9-40-40-40s-40 17.9-40 40c0 8.4 2.6 16.3 7.1 22.7l-59.4 44.6c-14.9 11.2-36.2 7.3-46.2-8.4L313 87.2z"/></svg>`,"diagram-project":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"/></svg>`,download:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg>`,fire:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"/></svg>`,gauge:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,"gauge-high":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,gears:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M415.9 210.5c12.2-3.3 25 2.5 30.5 13.8L465 261.9c10.3 1.4 20.4 4.2 29.9 8.1l35-23.3c10.5-7 24.4-5.6 33.3 3.3l19.2 19.2c8.9 8.9 10.3 22.9 3.3 33.3l-23.3 34.9c1.9 4.7 3.6 9.6 5 14.7 1.4 5.1 2.3 10.1 3 15.2l37.7 18.6c11.3 5.6 17.1 18.4 13.8 30.5l-7 26.2c-3.3 12.1-14.6 20.3-27.2 19.5l-42-2.7c-6.3 8.1-13.6 15.6-21.9 22l2.7 41.9c.8 12.6-7.4 24-19.5 27.2l-26.2 7c-12.2 3.3-24.9-2.5-30.5-13.8l-18.6-37.6c-10.3-1.4-20.4-4.2-29.9-8.1l-35 23.3c-10.5 7-24.4 5.6-33.3-3.3l-19.2-19.2c-8.9-8.9-10.3-22.8-3.3-33.3l23.3-35c-1.9-4.7-3.6-9.6-5-14.7s-2.3-10.2-3-15.2l-37.7-18.6c-11.3-5.6-17-18.4-13.8-30.5l7-26.2c3.3-12.1 14.6-20.3 27.2-19.5l41.9 2.7c6.3-8.1 13.6-15.6 21.9-22l-2.7-41.8c-.8-12.6 7.4-24 19.5-27.2l26.2-7zM448.4 340a44 44 0 1 0 .1 88 44 44 0 1 0 -.1-88zM224.9-45.5l26.2 7c12.1 3.3 20.3 14.7 19.5 27.2l-2.7 41.8c8.3 6.4 15.6 13.8 21.9 22l42-2.7c12.5-.8 23.9 7.4 27.2 19.5l7 26.2c3.2 12.1-2.5 24.9-13.8 30.5l-37.7 18.6c-.7 5.1-1.7 10.2-3 15.2s-3.1 10-5 14.7l23.3 35c7 10.5 5.6 24.4-3.3 33.3L307.3 262c-8.9 8.9-22.8 10.3-33.3 3.3L239 242c-9.5 3.9-19.6 6.7-29.9 8.1l-18.6 37.6c-5.6 11.3-18.4 17-30.5 13.8l-26.2-7c-12.2-3.3-20.3-14.7-19.5-27.2l2.7-41.9c-8.3-6.4-15.6-13.8-21.9-22l-42 2.7c-12.5 .8-23.9-7.4-27.2-19.5l-7-26.2c-3.2-12.1 2.5-24.9 13.8-30.5l37.7-18.6c.7-5.1 1.7-10.1 3-15.2 1.4-5.1 3-10 5-14.7L55.1 46.5c-7-10.5-5.6-24.4 3.3-33.3L77.6-6c8.9-8.9 22.8-10.3 33.3-3.3l35 23.3c9.5-3.9 19.6-6.7 29.9-8.1l18.6-37.6c5.6-11.3 18.3-17 30.5-13.8zM192.4 84a44 44 0 1 0 0 88 44 44 0 1 0 0-88z"/></svg>`,github:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M216.5 362.5c-66-8-112.5-55.5-112.5-117 0-25 9-52 24-70-6.5-16.5-5.5-51.5 2-66 20-2.5 47 8 63 22.5 19-6 39-9 63.5-9s44.5 3 62.5 8.5c15.5-14 43-24.5 63-22 7 13.5 8 48.5 1.5 65.5 16 19 24.5 44.5 24.5 70.5 0 61.5-46.5 108-113.5 116.5 17 11 28.5 35 28.5 62.5l0 52C323 491.5 335.5 500 350.5 494 441 459.5 512 369 512 257 512 115.5 397 0 255.5 0S0 115.5 0 257c0 111 70.5 203 165.5 237.5 13.5 5 26.5-4 26.5-17.5l0-40c-7 3-16 5-24 5-33 0-52.5-18-66.5-51.5-5.5-13.5-11.5-21.5-23-23-6-.5-8-3-8-6 0-6 10-10.5 20-10.5 14.5 0 27 9 40 27.5 10 14.5 20.5 21 33 21s20.5-4.5 32-16c8.5-8.5 15-16 21-21z"/></svg>`,globe:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"/></svg>`,language:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4 62.2-140c5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2l39.8-89.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L81.6 224.7c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l10.2 12.2c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32zM416 270.8L365.7 384 466.3 384 416 270.8z"/></svg>`,"layer-group":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"/></svg>`,"magnifying-glass":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>`,memory:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 64C28.7 64 0 92.7 0 128l0 7.4C0 142.2 4.4 148 10.1 151.7 23.3 160.3 32 175.1 32 192s-8.7 31.7-21.9 40.3C4.4 236 0 241.8 0 248.6l0 55.4 512 0 0-55.4c0-6.8-4.4-12.6-10.1-16.3-13.2-8.6-21.9-23.4-21.9-40.3s8.7-31.7 21.9-40.3c5.7-3.7 10.1-9.5 10.1-16.3l0-7.4c0-35.3-28.7-64-64-64L64 64zM512 416l0-64-512 0 0 64c0 17.7 14.3 32 32 32l64 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 88 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 88 0 0-24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 24 64 0c17.7 0 32-14.3 32-32zM160 160l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32z"/></svg>`,microchip:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40c-35.3 0-64 28.7-64 64l-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0c0 35.3 28.7 64 64 64l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c35.3 0 64-28.7 64-64l40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0c0-35.3-28.7-64-64-64l0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40zM160 128l192 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32l0-192c0-17.7 14.3-32 32-32zm16 48l0 160 160 0 0-160-160 0z"/></svg>`,moon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"/></svg>`,"puzzle-piece":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M224 0c35.3 0 64 21.5 64 48 0 10.4-4.4 20-12 27.9-6.6 6.9-12 15.3-12 24.9 0 15 12.2 27.2 27.2 27.2l44.8 0c26.5 0 48 21.5 48 48l0 44.8c0 15 12.2 27.2 27.2 27.2 9.5 0 18-5.4 24.9-12 7.9-7.5 17.5-12 27.9-12 26.5 0 48 28.7 48 64s-21.5 64-48 64c-10.4 0-20.1-4.4-27.9-12-6.9-6.6-15.3-12-24.9-12-15 0-27.2 12.2-27.2 27.2L384 464c0 26.5-21.5 48-48 48l-56.8 0c-12.8 0-23.2-10.4-23.2-23.2 0-9.2 5.8-17.3 13.2-22.8 11.6-8.7 18.8-20.7 18.8-34 0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34 7.4 5.5 13.2 13.5 13.2 22.8 0 12.8-10.4 23.2-23.2 23.2L48 512c-26.5 0-48-21.5-48-48L0 343.2c0-12.8 10.4-23.2 23.2-23.2 9.2 0 17.3 5.8 22.8 13.2 8.7 11.6 20.7 18.8 34 18.8 26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8-5.5 7.4-13.5 13.2-22.8 13.2-12.8 0-23.2-10.4-23.2-23.2L0 176c0-26.5 21.5-48 48-48l108.8 0c15 0 27.2-12.2 27.2-27.2 0-9.5-5.4-18-12-24.9-7.5-7.9-12-17.5-12-27.9 0-26.5 28.7-48 64-48z"/></svg>`,"rotate-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M488 192l-144 0c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l46.7-46.7c-75.3-58.6-184.3-53.3-253.5 15.9-75 75-75 196.5 0 271.5s196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c94.3-94.3 243.7-99.6 344.3-16.2L471 7c6.9-6.9 17.2-8.9 26.2-5.2S512 14.3 512 24l0 144c0 13.3-10.7 24-24 24z"/></svg>`,server:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"/></svg>`,skull:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M416 427.4c58.5-44 96-111.6 96-187.4 0-132.5-114.6-240-256-240S0 107.5 0 240c0 75.8 37.5 143.4 96 187.4L96 464c0 26.5 21.5 48 48 48l32 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 64 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c26.5 0 48-21.5 48-48l0-36.6zM96 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-64a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>`,sort:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M2.4 204.2c5 12 16.6 19.8 29.6 19.8l320 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-9.2 9.2-11.9 22.9-6.9 34.9zm0 103.5c-5 12-2.2 25.7 6.9 34.9l160 160c12.5 12.5 32.8 12.5 45.3 0l160-160c9.2-9.2 11.9-22.9 6.9-34.9S364.9 288 352 288L32 288c-12.9 0-24.6 7.8-29.6 19.8z"/></svg>`,spinner:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M208 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm0 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM48 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm368 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zM75 75A48 48 0 1 1 142.9 142.9 48 48 0 1 1 75 75zM437 369.1A48 48 0 1 1 369.1 437 48 48 0 1 1 437 369.1z"/></svg>`,stopwatch:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M168.5 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l32 0 0 25.3c-108 11.9-192 103.5-192 214.7 0 119.3 96.7 216 216 216s216-96.7 216-216c0-39.8-10.8-77.1-29.6-109.2l28.2-28.2c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-23.4 23.4c-32.9-30.2-75.2-50.3-122-55.5l0-25.3 32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-112 0zm80 184l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"/></svg>`,sun:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M288-32c8.4 0 16.3 4.4 20.6 11.7L364.1 72.3 468.9 46c8.2-2 16.9 .4 22.8 6.3S500 67 498 75.1l-26.3 104.7 92.7 55.5c7.2 4.3 11.7 12.2 11.7 20.6s-4.4 16.3-11.7 20.6L471.7 332.1 498 436.8c2 8.2-.4 16.9-6.3 22.8S477 468 468.9 466l-104.7-26.3-55.5 92.7c-4.3 7.2-12.2 11.7-20.6 11.7s-16.3-4.4-20.6-11.7L211.9 439.7 107.2 466c-8.2 2-16.8-.4-22.8-6.3S76 445 78 436.8l26.2-104.7-92.6-55.5C4.4 272.2 0 264.4 0 256s4.4-16.3 11.7-20.6L104.3 179.9 78 75.1c-2-8.2 .3-16.8 6.3-22.8S99 44 107.2 46l104.7 26.2 55.5-92.6 1.8-2.6c4.5-5.7 11.4-9.1 18.8-9.1zm0 144a144 144 0 1 0 0 288 144 144 0 1 0 0-288zm0 240a96 96 0 1 1 0-192 96 96 0 1 1 0 192z"/></svg>`,"table-cells-large":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M384 96l-128 0 0 128 128 0 0-128zm64 128l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 128zM64 288l0 128 128 0 0-128-128 0zm128-64l0-128-128 0 0 128 128 0zm64 64l0 128 128 0 0-128-128 0z"/></svg>`,"triangle-exclamation":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"/></svg>`,"up-right-from-square":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`};function qr(e,t){let n=/viewBox="([^"]+)"/.exec(t)?.[1],r=/<path[^>]* d="([^"]+)"/.exec(t)?.[1];if(!n||!r)throw Error(`icons: ${e}.svg is not a single-path Font Awesome glyph`);return{viewBox:n,path:r}}var Jr=Object.freeze(Object.fromEntries(Object.entries(Kr).map(([e,t])=>[e,qr(e,t)]))),Yr=w(`<i aria-hidden=true><svg><path>`);function $(e){return(()=>{var t=Yr(),n=t.firstChild,r=n.firstChild;return P(i=>{var a=e.class?`wurk-icon ${e.class}`:`wurk-icon`,o=e.style,s=Jr[e.name].viewBox,c=Jr[e.name].path;return a!==i.e&&ne(t,i.e=a),i.t=he(t,o,i.t),s!==i.a&&D(n,`viewBox`,i.a=s),c!==i.o&&D(r,`d`,i.o=c),i},{e:void 0,t:void 0,a:void 0,o:void 0}),t})()}var Xr=w(`<button type=button class="wurk-navlink locale-picker__trigger"aria-haspopup=menu><span class=nav-label><bdi>`),Zr=w(`<div role=menu class=locale-menu>`),Qr=w(`<button type=button role=menuitemradio class=locale-menu__item><bdi>`),$r={en:`English`,es:`Español`,fr:`Français`,de:`Deutsch`,"pt-BR":`Português (Brasil)`,ja:`日本語`,"zh-CN":`简体中文`,ar:`العربية`},ei=8,ti=160;function ni(){let e=ue(ae),t=$r[e??``]??ae,n,r,i=[],[o,s]=y(null),c=()=>o()!==null,u=()=>Math.max(0,ce.indexOf(e??``)),f=()=>{let e=n.getBoundingClientRect(),t=document.documentElement.dir===`rtl`,r=e.top-16,a=window.innerHeight-e.bottom-16,o=r>=ti||r>=a;s({start:t?window.innerWidth-e.right:e.left,up:o,offset:o?window.innerHeight-e.top+ei:e.bottom+ei,maxHeight:Math.max(o?r:a,0)}),i[u()]?.focus()},p=e=>{s(null),e&&n.focus()},h=e=>{p(!1),le(e)},g=e=>i[e]?.focus(),_=e=>{let t=ce.length-1,n=i.findIndex(e=>e===document.activeElement);switch(e.key){case`ArrowDown`:g(n>=t?0:n+1);break;case`ArrowUp`:g(n<=0?t:n-1);break;case`Home`:g(0);break;case`End`:g(t);break;case`Escape`:case`Tab`:p(!0);break;default:return}e.preventDefault()},v=e=>{c()||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.preventDefault(),f())};return d(()=>{if(!c())return;let e=e=>{let t=e.target;!r?.contains(t)&&!n.contains(t)&&p(!1)},t=()=>p(!1);document.addEventListener(`pointerdown`,e,!0),window.addEventListener(`scroll`,t,!0),window.addEventListener(`resize`,t),l(()=>{document.removeEventListener(`pointerdown`,e,!0),window.removeEventListener(`scroll`,t,!0),window.removeEventListener(`resize`,t)})}),[(()=>{var e=Xr(),r=e.firstChild,i=r.firstChild;e.$$keydown=v,e.$$click=()=>c()?p(!1):f();var a=n;return typeof a==`function`?N(a,e):n=e,A(e,m($,{name:`language`,class:`wurk-navlink__icon`}),r),A(i,t),P(n=>{var r=c(),i=M(`nav.language_current`,{name:t}),a=M(`nav.language`);return r!==n.e&&D(e,`aria-expanded`,n.e=r),i!==n.t&&D(e,`aria-label`,n.t=i),a!==n.a&&D(e,`title`,n.a=a),n},{e:void 0,t:void 0,a:void 0}),e})(),m(O,{get when(){return o()},children:t=>m(oe,{get children(){var n=Zr();n.$$keydown=_;var o=r;return typeof o==`function`?N(o,n):r=n,A(n,m(a,{each:ce,children:(t,n)=>(()=>{var r=Qr(),a=r.firstChild;return r.$$click=()=>h(t),N(e=>i[n()]=e,r),D(r,`aria-checked`,t===e),D(r,`lang`,t),A(a,()=>$r[t]??t),A(r,m(O,{when:t===e,get children(){return m($,{name:`check`})}}),null),r})()})),P(e=>{var r=M(`nav.language`),i={"inset-inline-start":`${t().start}px`,...t().up?{bottom:`${t().offset}px`}:{top:`${t().offset}px`},"max-height":`${t().maxHeight}px`};return r!==e.e&&D(n,`aria-label`,e.e=r),e.t=he(n,i,e.t),e},{e:void 0,t:void 0}),n}})})]}E([`click`,`keydown`]);var ri=`wurk.theme`;function ii(e){return e===`light`||e===`dark`||e===`system`?e:void 0}var ai;function oi(){try{return ii(localStorage.getItem(ri))}catch{return}}function si(){return ii(window.__WURK_THEME__)}function ci(){return ai??oi()??si()??`system`}function li(){return window.matchMedia?.(`(prefers-color-scheme: light)`).matches?`light`:`dark`}function ui(e){return e===`system`?li():e}function di(e){document.documentElement.dataset.theme=e;let t=document.querySelector(`meta[name="theme-color"]`),n=getComputedStyle(document.documentElement).getPropertyValue(`--bg`).trim();t&&n&&t.setAttribute(`content`,n)}function fi(e=ci()){let t=ui(e);return di(t),t}function pi(e){ai=e;try{localStorage.setItem(ri,e)}catch{}fi(e)}var mi,hi=()=>{fi()};function gi(){fi(),mi||(mi=window.matchMedia?.(`(prefers-color-scheme: light)`),mi?.addEventListener(`change`,hi))}var _i=w(`<button type=button class="wurk-navlink theme-toggle__trigger"><span class=nav-label>`),vi=[{preference:`system`,icon:`circle-half-stroke`},{preference:`light`,icon:`sun`},{preference:`dark`,icon:`moon`}];function yi(){let[e,t]=y(ci()),n=()=>vi.findIndex(t=>t.preference===e()),r=()=>vi[n()].icon,i=()=>vi[(n()+1)%vi.length].preference,a=e=>M(`theme.${e}`),o=()=>{let e=i();t(e),pi(e)};return(()=>{var t=_i(),n=t.firstChild;return t.$$click=o,A(t,m($,{get name(){return r()},class:`wurk-navlink__icon`}),n),A(n,()=>a(e())),P(n=>{var r=M(`nav.theme_current`,{name:a(e())}),o=M(`nav.theme_next`,{name:a(i())});return r!==n.e&&D(t,`aria-label`,n.e=r),o!==n.t&&D(t,`title`,n.t=o),n},{e:void 0,t:void 0}),t})()}E([`click`]);var bi=`wurk.tz`;function xi(e){if(e)try{return Intl.DateTimeFormat(void 0,{timeZone:e}).resolvedOptions().timeZone}catch{return}}function Si(){return xi(Intl.DateTimeFormat().resolvedOptions().timeZone)??`UTC`}function Ci(){try{return xi(localStorage.getItem(bi))}catch{return}}function wi(){return Ci()??Si()}var Ti=wi();function Ei(e){let t=e===null?null:xi(e);if(t!==void 0){try{t===null?localStorage.removeItem(bi):localStorage.setItem(bi,t)}catch{return}window.location.reload()}}var Di;function Oi(){if(!Di){let e=typeof Intl.supportedValuesOf==`function`?Intl.supportedValuesOf(`timeZone`):[Si()];Di=Object.freeze([`UTC`,...e.filter(e=>e!==`UTC`)])}return Di}var ki=w(`<div class=modal-footer>`),Ai=w(`<dialog class=modal><div class=modal-panel><div class=modal-header><h2 class=modal-title></h2><button class=modal-close></button></div><div class=modal-body>`),ji=240;function Mi(e){let t,n=`modal-title-${Math.random().toString(36).slice(2)}`,r=p(()=>e.children),[i,a]=y({title:e.title,children:r()});d(()=>{if(e.open)a({title:e.title,children:r()});else{let e=setTimeout(()=>a(null),ji);l(()=>clearTimeout(e))}});let o=()=>e.open?{title:e.title,children:r()}:i();return d(()=>{e.open&&!t.open?t.showModal():!e.open&&t.open&&t.close()}),x(()=>{let n=t=>{t.preventDefault(),e.onClose()};t.addEventListener(`cancel`,n),l(()=>t.removeEventListener(`cancel`,n))}),(()=>{var r=Ai(),i=r.firstChild,a=i.firstChild,s=a.firstChild,c=s.nextSibling,l=a.nextSibling;r.$$click=n=>{n.target===t&&e.onClose()};var u=t;return typeof u==`function`?N(u,r):t=r,D(r,`aria-labelledby`,n),D(s,`id`,n),A(s,()=>o()?.title),c.$$click=()=>e.onClose(),A(c,m($,{name:`xmark`})),A(l,()=>o()?.children),A(i,m(O,{get when(){return e.footer},get children(){var t=ki();return A(t,()=>e.footer),t}}),null),P(t=>{var n=`${e.width??640}px`,r=M(`common.close`);return n!==t.e&&S(i,`max-width`,t.e=n),r!==t.t&&D(c,`aria-label`,t.t=r),t},{e:void 0,t:void 0}),r})()}E([`click`]);var Ni=w(`<button type=button class="wurk-navlink timezone-picker__trigger"aria-haspopup=dialog><span class=nav-label><bdi>`),Pi=w(`<p class=timezone-picker__hint>`),Fi=w(`<input class="input timezone-picker__filter"type=search aria-controls=timezone-picker-list>`),Ii=w(`<div id=timezone-picker-list role=listbox class=timezone-picker__list>`),Li=w(`<p class=timezone-picker__empty>`),Ri=w(`<button type=button role=option class=timezone-picker__option><bdi>`);function zi(e){return e.toLowerCase().replace(/[_/]/g,` `)}function Bi(e){return e.slice(e.lastIndexOf(`/`)+1).replace(/_/g,` `)}function Vi(){let e=Ci(),t=Si(),[n,r]=y(!1),[i,o]=y(``),s,c,l=()=>Array.from(c?.querySelectorAll(`[role="option"]`)??[]),u=g(()=>{let n=[{zone:null,label:M(`timezone.automatic`,{name:t}),selected:e===void 0},...Oi().map(t=>({zone:t,label:t,selected:t===e}))],r=zi(i().trim());return r?n.filter(e=>zi(e.label).includes(r)):n}),f=()=>{r(!1),o(``)},p=e=>{f(),Ei(e)};d(()=>{n()&&s?.focus()});let h=e=>{if(e.key===`ArrowDown`)l()[0]?.focus();else if(e.key===`Enter`&&i().trim()){let e=u()[0];if(!e)return;p(e.zone)}else return;e.preventDefault()},_=e=>{let t=l(),n=t.findIndex(e=>e===document.activeElement);switch(e.key){case`ArrowDown`:t[Math.min(n+1,t.length-1)]?.focus();break;case`ArrowUp`:n<=0?s?.focus():t[n-1].focus();break;case`Home`:t[0]?.focus();break;case`End`:t[t.length-1]?.focus();break;default:return}e.preventDefault()};return[(()=>{var e=Ni(),t=e.firstChild,i=t.firstChild;return e.$$click=()=>r(!0),A(e,m($,{name:`globe`,class:`wurk-navlink__icon`}),t),A(i,()=>Bi(Ti)),P(t=>{var r=n(),i=M(`nav.timezone_current`,{name:Ti}),a=M(`timezone.shown_in`,{name:Ti});return r!==t.e&&D(e,`aria-expanded`,t.e=r),i!==t.t&&D(e,`aria-label`,t.t=i),a!==t.a&&D(e,`title`,t.a=a),t},{e:void 0,t:void 0,a:void 0}),e})(),m(Mi,{get open(){return n()},onClose:f,get title(){return M(`timezone.title`)},width:420,get children(){return m(O,{get when(){return n()},get children(){return[(()=>{var e=Pi();return A(e,()=>M(`timezone.shown_in`,{name:Ti})),e})(),(()=>{var e=Fi();e.$$keydown=h,e.$$input=e=>o(e.currentTarget.value);var t=s;return typeof t==`function`?N(t,e):s=e,P(t=>{var n=M(`timezone.filter`),r=M(`timezone.filter`);return n!==t.e&&D(e,`placeholder`,t.e=n),r!==t.t&&D(e,`aria-label`,t.t=r),t},{e:void 0,t:void 0}),P(()=>e.value=i()),e})(),(()=>{var e=Ii();e.$$keydown=_;var t=c;return typeof t==`function`?N(t,e):c=e,A(e,m(a,{get each(){return u()},children:e=>(()=>{var t=Ri(),n=t.firstChild;return t.$$click=()=>p(e.zone),A(n,()=>e.label),A(t,m(O,{get when(){return e.selected},get children(){return m($,{name:`check`})}}),null),P(()=>D(t,`aria-selected`,e.selected)),t})()})),P(()=>D(e,`aria-label`,M(`timezone.title`))),e})(),m(O,{get when(){return u().length===0},get children(){var e=Li();return A(e,()=>M(`timezone.empty`,{query:i().trim()})),e}})]}})}})]}E([`click`,`input`,`keydown`]);var Hi=new URL(`wurk-logo-ydeSB9B8.png`,import.meta.url).href;function Ui(e,t,n){return{queryKey:[e,t,n],queryFn:()=>gr(`${X()}/api/${e}?page=${t-1}&count=25&substr=${encodeURIComponent(n)}`)}}var Wi=()=>({queryKey:[`processes`],queryFn:()=>gr(`${X()}/api/processes`)}),Gi=()=>({queryKey:[`queues`],queryFn:()=>gr(`${X()}/api/queues`)}),Ki={"/retries":()=>Ui(`retries`,1,``),"/scheduled":()=>Ui(`scheduled`,1,``),"/dead":()=>Ui(`dead`,1,``),"/busy":Wi,"/queues":Gi};function qi(e,t){let n=Ki[t];n&&e.prefetchQuery({...n(),staleTime:5e3})}var Ji=w(`<div class=nav-overlay style=position:fixed;inset:0;background:var(--scrim);z-index:99;display:none>`),Yi=w(`<img alt=Wurk style="height:36px;width:auto;display:block;flex:none;filter:drop-shadow(0 2px 6px var(--shadow-color))">`),Xi=w(`<span style="font-family:var(--font-mono);font-size:10px;font-weight:500;letter-spacing:0.02em;color:var(--text-muted);background:var(--surface-strong);border:1px solid var(--border);border-radius:5px;padding:0.05rem 0.3rem">v`),Zi=w(`<span class=nav-label style=display:flex;flex-direction:column;line-height:1.15><span style=display:inline-flex;align-items:baseline;gap:0.4rem><span style=font-size:18px;font-weight:700;letter-spacing:-0.02em;color:var(--text-bright)>Wurk</span></span><span style=font-family:var(--font-mono);font-size:9px;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted);margin-top:2px;display:inline-flex;align-items:center;gap:5px><span class=live-dot style=width:6px;height:6px>`),Qi=w(`<li aria-hidden=true style="padding:0.5rem 0.95rem 0.2rem;margin-top:0.4rem"><div style=height:1px;background:var(--border);margin-bottom:0.45rem></div><span class=nav-label style=font-size:10px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-muted)>`),$i=w(`<nav class=wurk-nav style="position:fixed;top:0;inset-inline-start:0;bottom:0;background:var(--surface);border-inline-end:1px solid var(--border);display:flex;flex-direction:column;z-index:100;overflow-y:auto;overflow-x:hidden"><div class=nav-brand-wrap style="padding:1.25rem 1rem 0.75rem"></div><div style="height:1px;background:var(--border);margin:0 1rem 0.5rem"></div><ul style=list-style:none;flex:1></ul><div style="height:1px;background:var(--border);margin:0.5rem 1rem 0"></div><button type=button class=nav-collapse-toggle style="display:flex;align-items:center;gap:0.625rem;width:calc(100% - 16px);padding:0.5rem 0.85rem;margin:4px 8px;border-radius:8px;border:none;background:transparent;color:var(--text-muted);font-size:13px;cursor:pointer;font:inherit"><span class=nav-label></span></button><div style="height:1px;background:var(--border);margin:0.5rem 1rem"></div><a href=https://github.com/developerz-ai/wurk target=_blank rel="noopener noreferrer"class=wurk-navlink style="display:flex;align-items:center;gap:0.625rem;padding:0.5rem 0.85rem;margin:2px 8px 0.85rem;border-radius:8px;color:var(--text-muted);font-size:13px;text-decoration:none;transition:background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard)"><span class=nav-label>GitHub`),ea=w(`<style>
|
|
3
3
|
.wurk-nav { width: var(--nav-width); transition: width var(--dur-page) var(--ease-emphasized); }
|
|
4
4
|
/* Base nav-item chrome (was an inline style function under React; Solid's
|
|
5
5
|
<A> toggles the .active class, so the active look lives in CSS now). */
|
|
@@ -138,4 +138,4 @@ import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,I as c,J as l,K a
|
|
|
138
138
|
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
|
|
139
139
|
.wurk-nav { transition: none; }
|
|
140
140
|
}
|
|
141
|
-
`),ta=w(`<span class=nav-label>`),na=w(`<li>`);function ra(e){let t=Xn(),n=e=>{Vt(e),qi(t,e)},r=vr(),i=()=>r.data?.custom_tabs??[],{connected:o}=Gr(),s=()=>e.onClose();return[m(O,{get when(){return e.open},get children(){var e=Ji();return e.$$click=s,e}}),(()=>{var t=$i(),c=t.firstChild,l=c.nextSibling.nextSibling,u=l.nextSibling.nextSibling,d=u.firstChild,f=u.nextSibling,p=f.nextSibling,h=p.firstChild;return A(c,m(bt,{href:`/`,end:!0,onClick:s,get"aria-label"(){return M(`nav.home_label`)},style:{color:`var(--text)`,"text-decoration":`none`,display:`flex`,"align-items":`center`,gap:`0.6rem`},get children(){return[(()=>{var e=Yi();return D(e,`src`,Hi),e})(),(()=>{var e=Zi(),t=e.firstChild;t.firstChild;var n=t.nextSibling,i=n.firstChild;return A(t,m(O,{get when(){return r.data?.version},get children(){var e=Xi();return e.firstChild,A(e,()=>r.data?.version,null),e}}),null),A(n,(()=>{var e=se(()=>!!o());return()=>e()?M(`nav.status_active`):M(`nav.status_inactive`)})(),null),P(e=>S(i,`background`,o()?void 0:`var(--text-muted)`)),e})()]}})),A(l,m(a,{each:Dr,children:e=>(()=>{var t=na();return A(t,m(bt,{get href(){return e.to},get end(){return e.end},onClick:s,onPointerEnter:()=>n(e.to),onFocus:()=>n(e.to),get title(){return Or(e)},class:`wurk-navlink`,activeClass:`active`,get children(){return[m($,{get name(){return e.icon},class:`wurk-navlink__icon`}),(()=>{var t=ta();return A(t,()=>Or(e)),t})()]}})),t})()}),null),A(l,m(O,{get when(){return i().length>0},get children(){var e=Qi(),t=e.firstChild.nextSibling;return A(t,()=>M(`nav.extensions`)),e}}),null),A(l,m(a,{get each(){return i()},children:e=>(()=>{var t=na();return A(t,m(bt,{get href(){return`/ext/${e.path.replace(/\/+$/,``)}`},onClick:s,get title(){return e.name},class:`wurk-navlink`,activeClass:`active`,get children(){return[m($,{name:`puzzle-piece`,class:`wurk-navlink__icon`}),(()=>{var t=ta();return A(t,()=>e.name),t})()]}})),t})()}),null),u.$$click=()=>e.onToggleCollapse(),A(u,m($,{get name(){return e.collapsed?`angles-right`:`angles-left`},class:`wurk-navlink__icon`}),d),A(d,()=>M(`nav.collapse`)),A(t,m(ni,{}),f),A(t,m(Vi,{}),f),A(t,m(yi,{}),f),A(p,m($,{name:`github`,style:{"font-size":`16px`,width:`20px`,"text-align":`center`,flex:`none`}}),h),P(n=>{var r=!!e.open,i=!!e.collapsed,a=e.collapsed?M(`nav.expand`):M(`nav.collapse`),o=!e.collapsed,s=e.collapsed?M(`nav.expand`):M(`nav.collapse`);return r!==n.e&&t.classList.toggle(`wurk-nav--open`,n.e=r),i!==n.t&&t.classList.toggle(`wurk-nav--collapsed`,n.t=i),a!==n.a&&D(u,`aria-label`,n.a=a),o!==n.o&&D(u,`aria-expanded`,n.o=o),s!==n.i&&D(u,`title`,n.i=s),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})(),ea()]}E([`click`]);var ia=w(`<span aria-hidden=true>`),aa=w(`<span aria-hidden=true class="skeleton skeleton--text">`),oa=w(`<div class=skeleton-table role=status aria-busy=true>`),sa=w(`<div class=skeleton-table__row>`),ca=w(`<span class="skeleton skeleton-table__cell"aria-hidden=true>`),la=w(`<div class=skeleton-cards role=status aria-busy=true>`),ua=w(`<div class=skeleton-card>`),da=w(`<div role=status aria-busy=true><div class=page-header><div class=skeleton-stack style=flex:1;max-width:18rem>`),fa=e=>typeof e==`number`?`${e}px`:e;function pa(e){return(()=>{var t=ia();return P(n=>{var r=`skeleton${e.circle?` skeleton--circle`:``}${e.class?` ${e.class}`:``}`,i={width:fa(e.width),height:fa(e.height),"border-radius":fa(e.radius),...e.style};return r!==n.e&&ne(t,n.e=r),n.t=he(t,i,n.t),n},{e:void 0,t:void 0}),t})()}function ma(e){return(()=>{var t=aa();return P(n=>he(t,{width:fa(e.width??`100%`),...e.style},n)),t})()}function ha(e){return(()=>{var t=oa();return A(t,m(i,{get each(){return Array.from({length:e.rows??6})},children:()=>(()=>{var t=sa();return A(t,m(i,{get each(){return Array.from({length:e.cols??4})},children:()=>ca()})),t})()})),P(()=>D(t,`aria-label`,M(`common.loading`))),t})()}function ga(e){return(()=>{var t=la();return A(t,m(i,{get each(){return Array.from({length:e.count??4})},children:()=>(()=>{var e=ua();return A(e,m(ma,{width:`45%`}),null),A(e,m(pa,{height:`1.6rem`,width:`60%`}),null),e})()})),P(()=>D(t,`aria-label`,M(`common.loading`))),t})()}function _a(){return(()=>{var e=da(),t=e.firstChild,n=t.firstChild;return A(t,m(pa,{width:`2.75rem`,height:`2.75rem`,radius:`var(--radius)`}),n),A(n,m(pa,{height:`1.4rem`,width:`45%`}),null),A(n,m(ma,{width:`70%`}),null),A(e,m(ha,{rows:8,cols:4}),null),P(()=>D(e,`aria-label`,M(`common.loading`))),e})()}var va=w(`<div class=empty-state role=alert><div style=font-size:15px;font-weight:600;color:var(--text);margin-bottom:0.4rem></div><p style="max-width:26rem;margin:0 auto 1.1rem;font-size:13px"></p><button class="btn btn-accent">`);function ya(e){return m(_,{fallback:e=>(console.error(`Dashboard route error:`,e),(()=>{var e=va(),t=e.firstChild,n=t.nextSibling,r=n.nextSibling;return A(t,()=>M(`common.load_failed`)),A(n,()=>M(`common.load_failed_hint`)),r.$$click=()=>window.location.reload(),A(r,()=>M(`common.reload`)),e})()),get children(){return e.children}})}E([`click`]);var ba=w(`<div class=toasts role=region aria-live=polite>`),xa=w(`<div role=alert><span class=toast__msg></span><button type=button class=toast__close>`),[Sa,Ca]=y([]),wa=6e3,Ta=5,Ea=0;function Da(e,t=`error`){let n=Ea+=1,r=typeof window<`u`?window.setTimeout(()=>Oa(n),wa):void 0;return Ca(i=>{let a=[...i,{id:n,kind:t,message:e,timer:r}];if(a.length<=Ta)return a;let o=a.slice(0,a.length-Ta);for(let e of o)e.timer!==void 0&&window.clearTimeout(e.timer);return a.slice(a.length-Ta)}),n}function Oa(e){Ca(t=>{let n=t.find(t=>t.id===e);return n?.timer!==void 0&&window.clearTimeout(n.timer),t.filter(t=>t.id!==e)})}function ka(e){let t=e instanceof pr?e.status:0,n=e instanceof pr?e.body:void 0,r=t===403&&n?.error===`cross_origin`?`toast.crossOrigin`:t===403?`toast.readonly`:t===404?`toast.gone`:t===503?`toast.unavailable`:`toast.failed`;Da(M(r),`error`)}var Aa={error:`circle-exclamation`,success:`circle-check`};function ja(){return(()=>{var e=ba();return A(e,m(a,{get each(){return Sa()},children:e=>(()=>{var t=xa(),n=t.firstChild,r=n.nextSibling;return A(t,m($,{get name(){return Aa[e.kind]},class:`toast__icon`}),n),A(n,()=>e.message),r.$$click=()=>Oa(e.id),A(r,m($,{name:`xmark`})),P(n=>{var i=`toast toast--${e.kind}`,a=M(`toast.dismiss`);return i!==n.e&&ne(t,n.e=i),a!==n.t&&D(r,`aria-label`,n.t=a),n},{e:void 0,t:void 0}),t})()})),P(()=>D(e,`aria-label`,M(`toast.region`))),e})()}E([`click`]);var Ma=w(`<div role=status style="background:var(--warning);color:var(--color-warning-content);text-align:center;padding:0.5rem 1rem;font-weight:600;font-size:13px;letter-spacing:0.01em;border-radius:8px;margin-bottom:1.75rem">`),Na=w(`<div style=display:flex;min-height:100vh><button class=hamburger style=position:fixed;top:12px;inset-inline-start:12px;z-index:200></button><main class=main-content style=flex:1;padding:1.5rem>`),Pa=s(()=>T(()=>import(`./Dashboard-BUizVnvZ.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),Fa=s(()=>T(()=>import(`./Queues-CVBrscP3.js`),__vite__mapDeps([5,1,6,7,3,8,9,10,4,11]),import.meta.url)),Ia=s(()=>T(()=>import(`./Retries-CWFV_bBC.js`),__vite__mapDeps([12,1,6,8,7,3,4,11,13,9,14,10]),import.meta.url)),La=s(()=>T(()=>import(`./Scheduled-DIx0LgMk.js`),__vite__mapDeps([15,1,6,8,7,3,9,4,11,13,14,10]),import.meta.url)),Ra=s(()=>T(()=>import(`./Dead-D9PKoXF6.js`),__vite__mapDeps([16,1,6,8,7,3,9,4,11,13,14,10]),import.meta.url)),za=s(()=>T(()=>import(`./Busy-DhNO2G1e.js`),__vite__mapDeps([17,1,10,4,8,7,3]),import.meta.url)),Ba=s(()=>T(()=>import(`./Batches-zMkOqVNO.js`),__vite__mapDeps([18,1,6,9,10,4,3,14]),import.meta.url)),Va=s(()=>T(()=>import(`./BatchDetail-DIQKEmCn.js`),__vite__mapDeps([19,1,3]),import.meta.url)),Ha=s(()=>T(()=>import(`./Flows-BDo6Wsk7.js`),__vite__mapDeps([20,1,6,9,10,4,3,21]),import.meta.url)),Ua=s(()=>T(()=>import(`./FlowDetail-C4rrs2vY.js`),__vite__mapDeps([22,1,3,21]),import.meta.url)),Wa=s(()=>T(()=>import(`./Limiters-DiXbbEYi.js`),__vite__mapDeps([23,1,6,9,10,4,3]),import.meta.url)),Ga=s(()=>T(()=>import(`./Cron-0PCJu95E.js`),__vite__mapDeps([24,1,10,4,8,3,9]),import.meta.url)),Ka=s(()=>T(()=>import(`./Metrics-CcaBjp2g.js`),__vite__mapDeps([25,1,2,3,4]),import.meta.url)),qa=s(()=>T(()=>import(`./Profiles-cWq9BV8X.js`),__vite__mapDeps([26,1,10,3]),import.meta.url)),Ja=s(()=>T(()=>import(`./Search-CZps_dzS.js`),__vite__mapDeps([27,1,4,7,3]),import.meta.url)),Ya=s(()=>T(()=>import(`./Extension-BHON03_z.js`),__vite__mapDeps([28,1,4]),import.meta.url)),Xa=s(()=>T(()=>import(`./NotFound-Cz_G1E7y.js`),__vite__mapDeps([29,1,4]),import.meta.url));Bt({"/":Pa,"/queues":Fa,"/retries":Ia,"/scheduled":La,"/dead":Ra,"/busy":za,"/batches":Ba,"/flows":Ha,"/limiters":Wa,"/cron":Ga,"/metrics":Ka,"/profiles":qa,"/search":Ja,"/ext/":Ya},[Va,Ua,Xa]);var Za=new er({defaultOptions:{queries:{staleTime:5e3,retry:1}}});function Qa(){let e=vr();return m(O,{get when(){return e.data?.read_only},get children(){var t=Ma();return A(t,()=>e.data?.read_only_message||M(`readonly.banner`)),t}})}var $a=`wurk-nav-collapsed`;function eo(e){Er(),x(Ht);let[n,r]=y(!1),[i,a]=y((()=>{try{return typeof localStorage<`u`&&localStorage.getItem($a)===`1`}catch{return!1}})()),[o,s]=y(typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches===!0);d(()=>{if(typeof window>`u`)return;let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`);if(!e)return;let t=()=>s(e.matches);e.addEventListener(`change`,t),l(()=>e.removeEventListener(`change`,t))});let c=()=>a(e=>{let t=!e;try{localStorage.setItem($a,t?`1`:`0`)}catch{}return t});return m(Qn,{client:Za,get children(){var a=Na(),s=a.firstChild,l=s.nextSibling;return s.$$click=()=>r(e=>!e),A(s,m($,{name:`bars`})),A(l,m(Wt,{}),null),A(l,m(Qa,{}),null),A(l,m(ya,{get children(){return m(t,{get fallback(){return m(_a,{})},get children(){return e.children}})}}),null),A(a,m(ra,{get open(){return n()},onClose:()=>r(!1),get collapsed(){return i()},onToggleCollapse:c}),null),A(a,m(ja,{}),null),P(e=>{var t=M(`nav.toggle`),n=i()?`var(--nav-rail)`:`var(--nav-width)`,r=o()?`none`:`margin var(--dur-page) var(--ease-emphasized)`;return t!==e.e&&D(s,`aria-label`,e.e=t),n!==e.t&&S(l,`margin-inline-start`,e.t=n),r!==e.a&&S(l,`transition`,e.a=r),e},{e:void 0,t:void 0,a:void 0}),a}})}function to(){return[m(z,{path:`/`,component:Pa}),m(z,{path:`/queues`,component:Fa}),m(z,{path:`/queues/:name`,component:Fa}),m(z,{path:`/retries`,component:Ia}),m(z,{path:`/retries/:key`,component:Ia}),m(z,{path:`/scheduled`,component:La}),m(z,{path:`/scheduled/:key`,component:La}),m(z,{path:`/dead`,component:Ra}),m(z,{path:`/dead/:key`,component:Ra}),m(z,{path:`/morgue`,component:Ra}),m(z,{path:`/morgue/:key`,component:Ra}),m(z,{path:`/busy`,component:za}),m(z,{path:`/batches`,component:Ba}),m(z,{path:`/batches/:bid`,component:Va}),m(z,{path:`/flows`,component:Ha}),m(z,{path:`/flows/:fid`,component:Ua}),m(z,{path:`/limiters`,component:Wa}),m(z,{path:`/cron`,component:Ga}),m(z,{path:`/metrics`,component:Ka}),m(z,{path:`/metrics/:klass`,component:Ka}),m(z,{path:`/profiles`,component:qa}),m(z,{path:`/search`,component:Ja}),m(z,{path:`/ext/:tab`,component:Ya}),m(z,{path:`*`,component:Xa})]}function no(){return m(pt,{root:eo,get base(){return X()},get children(){return m(to,{})}})}E([`click`]);var ro=w(`<div style=padding:2rem;text-align:center;color:var(--text-muted);font-size:14px;line-height:1.6>`);de(ae),gi();var io=window.self!==window.top&&new URLSearchParams(window.location.search).has(`wurk_ext_embed`),ao=document.getElementById(`wurk-root`);ao&&Promise.race([C,new Promise(e=>setTimeout(e,3e3))]).then(()=>ie(()=>io?(()=>{var e=ro();return A(e,()=>M(`extension.notRendered`)),e})():m(no,{}),ao));export{We as A,ur as C,bt as D,ln as E,Be as O,lr as S,$n as T,mr as _,ha as a,fr as b,Gi as c,$ as d,Gr as f,gr as g,_r as h,ga as i,Ue as k,Mi as l,vr as m,Da as n,Ui as o,wr as p,pa as r,Wi as s,ka as t,Ti as u,hr as v,Xn as w,dr as x,X as y};
|
|
141
|
+
`),ta=w(`<span class=nav-label>`),na=w(`<li>`);function ra(e){let t=Xn(),n=e=>{Vt(e),qi(t,e)},r=vr(),i=()=>r.data?.custom_tabs??[],{connected:o}=Gr(),s=()=>e.onClose();return[m(O,{get when(){return e.open},get children(){var e=Ji();return e.$$click=s,e}}),(()=>{var t=$i(),c=t.firstChild,l=c.nextSibling.nextSibling,u=l.nextSibling.nextSibling,d=u.firstChild,f=u.nextSibling,p=f.nextSibling,h=p.firstChild;return A(c,m(bt,{href:`/`,end:!0,onClick:s,get"aria-label"(){return M(`nav.home_label`)},style:{color:`var(--text)`,"text-decoration":`none`,display:`flex`,"align-items":`center`,gap:`0.6rem`},get children(){return[(()=>{var e=Yi();return D(e,`src`,Hi),e})(),(()=>{var e=Zi(),t=e.firstChild;t.firstChild;var n=t.nextSibling,i=n.firstChild;return A(t,m(O,{get when(){return r.data?.version},get children(){var e=Xi();return e.firstChild,A(e,()=>r.data?.version,null),e}}),null),A(n,(()=>{var e=se(()=>!!o());return()=>e()?M(`nav.status_active`):M(`nav.status_inactive`)})(),null),P(e=>S(i,`background`,o()?void 0:`var(--text-muted)`)),e})()]}})),A(l,m(a,{each:Dr,children:e=>(()=>{var t=na();return A(t,m(bt,{get href(){return e.to},get end(){return e.end},onClick:s,onPointerEnter:()=>n(e.to),onFocus:()=>n(e.to),get title(){return Or(e)},class:`wurk-navlink`,activeClass:`active`,get children(){return[m($,{get name(){return e.icon},class:`wurk-navlink__icon`}),(()=>{var t=ta();return A(t,()=>Or(e)),t})()]}})),t})()}),null),A(l,m(O,{get when(){return i().length>0},get children(){var e=Qi(),t=e.firstChild.nextSibling;return A(t,()=>M(`nav.extensions`)),e}}),null),A(l,m(a,{get each(){return i()},children:e=>(()=>{var t=na();return A(t,m(bt,{get href(){return`/ext/${e.path.replace(/\/+$/,``)}`},onClick:s,get title(){return e.name},class:`wurk-navlink`,activeClass:`active`,get children(){return[m($,{name:`puzzle-piece`,class:`wurk-navlink__icon`}),(()=>{var t=ta();return A(t,()=>e.name),t})()]}})),t})()}),null),u.$$click=()=>e.onToggleCollapse(),A(u,m($,{get name(){return e.collapsed?`angles-right`:`angles-left`},class:`wurk-navlink__icon`}),d),A(d,()=>M(`nav.collapse`)),A(t,m(ni,{}),f),A(t,m(Vi,{}),f),A(t,m(yi,{}),f),A(p,m($,{name:`github`,style:{"font-size":`16px`,width:`20px`,"text-align":`center`,flex:`none`}}),h),P(n=>{var r=!!e.open,i=!!e.collapsed,a=e.collapsed?M(`nav.expand`):M(`nav.collapse`),o=!e.collapsed,s=e.collapsed?M(`nav.expand`):M(`nav.collapse`);return r!==n.e&&t.classList.toggle(`wurk-nav--open`,n.e=r),i!==n.t&&t.classList.toggle(`wurk-nav--collapsed`,n.t=i),a!==n.a&&D(u,`aria-label`,n.a=a),o!==n.o&&D(u,`aria-expanded`,n.o=o),s!==n.i&&D(u,`title`,n.i=s),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})(),ea()]}E([`click`]);var ia=w(`<span aria-hidden=true>`),aa=w(`<span aria-hidden=true class="skeleton skeleton--text">`),oa=w(`<div class=skeleton-table role=status aria-busy=true>`),sa=w(`<div class=skeleton-table__row>`),ca=w(`<span class="skeleton skeleton-table__cell"aria-hidden=true>`),la=w(`<div class=skeleton-cards role=status aria-busy=true>`),ua=w(`<div class=skeleton-card>`),da=w(`<div role=status aria-busy=true><div class=page-header><div class=skeleton-stack style=flex:1;max-width:18rem>`),fa=e=>typeof e==`number`?`${e}px`:e;function pa(e){return(()=>{var t=ia();return P(n=>{var r=`skeleton${e.circle?` skeleton--circle`:``}${e.class?` ${e.class}`:``}`,i={width:fa(e.width),height:fa(e.height),"border-radius":fa(e.radius),...e.style};return r!==n.e&&ne(t,n.e=r),n.t=he(t,i,n.t),n},{e:void 0,t:void 0}),t})()}function ma(e){return(()=>{var t=aa();return P(n=>he(t,{width:fa(e.width??`100%`),...e.style},n)),t})()}function ha(e){return(()=>{var t=oa();return A(t,m(i,{get each(){return Array.from({length:e.rows??6})},children:()=>(()=>{var t=sa();return A(t,m(i,{get each(){return Array.from({length:e.cols??4})},children:()=>ca()})),t})()})),P(()=>D(t,`aria-label`,M(`common.loading`))),t})()}function ga(e){return(()=>{var t=la();return A(t,m(i,{get each(){return Array.from({length:e.count??4})},children:()=>(()=>{var e=ua();return A(e,m(ma,{width:`45%`}),null),A(e,m(pa,{height:`1.6rem`,width:`60%`}),null),e})()})),P(()=>D(t,`aria-label`,M(`common.loading`))),t})()}function _a(){return(()=>{var e=da(),t=e.firstChild,n=t.firstChild;return A(t,m(pa,{width:`2.75rem`,height:`2.75rem`,radius:`var(--radius)`}),n),A(n,m(pa,{height:`1.4rem`,width:`45%`}),null),A(n,m(ma,{width:`70%`}),null),A(e,m(ha,{rows:8,cols:4}),null),P(()=>D(e,`aria-label`,M(`common.loading`))),e})()}var va=w(`<div class=empty-state role=alert><div style=font-size:15px;font-weight:600;color:var(--text);margin-bottom:0.4rem></div><p style="max-width:26rem;margin:0 auto 1.1rem;font-size:13px"></p><button class="btn btn-accent">`);function ya(e){return m(_,{fallback:e=>(console.error(`Dashboard route error:`,e),(()=>{var e=va(),t=e.firstChild,n=t.nextSibling,r=n.nextSibling;return A(t,()=>M(`common.load_failed`)),A(n,()=>M(`common.load_failed_hint`)),r.$$click=()=>window.location.reload(),A(r,()=>M(`common.reload`)),e})()),get children(){return e.children}})}E([`click`]);var ba=w(`<div class=toasts role=region aria-live=polite>`),xa=w(`<div role=alert><span class=toast__msg></span><button type=button class=toast__close>`),[Sa,Ca]=y([]),wa=6e3,Ta=5,Ea=0;function Da(e,t=`error`){let n=Ea+=1,r=typeof window<`u`?window.setTimeout(()=>Oa(n),wa):void 0;return Ca(i=>{let a=[...i,{id:n,kind:t,message:e,timer:r}];if(a.length<=Ta)return a;let o=a.slice(0,a.length-Ta);for(let e of o)e.timer!==void 0&&window.clearTimeout(e.timer);return a.slice(a.length-Ta)}),n}function Oa(e){Ca(t=>{let n=t.find(t=>t.id===e);return n?.timer!==void 0&&window.clearTimeout(n.timer),t.filter(t=>t.id!==e)})}function ka(e){let t=e instanceof pr?e.status:0,n=e instanceof pr?e.body:void 0,r=t===403&&n?.error===`cross_origin`?`toast.crossOrigin`:t===403?`toast.readonly`:t===404?`toast.gone`:t===503?`toast.unavailable`:`toast.failed`;Da(M(r),`error`)}var Aa={error:`circle-exclamation`,success:`circle-check`};function ja(){return(()=>{var e=ba();return A(e,m(a,{get each(){return Sa()},children:e=>(()=>{var t=xa(),n=t.firstChild,r=n.nextSibling;return A(t,m($,{get name(){return Aa[e.kind]},class:`toast__icon`}),n),A(n,()=>e.message),r.$$click=()=>Oa(e.id),A(r,m($,{name:`xmark`})),P(n=>{var i=`toast toast--${e.kind}`,a=M(`toast.dismiss`);return i!==n.e&&ne(t,n.e=i),a!==n.t&&D(r,`aria-label`,n.t=a),n},{e:void 0,t:void 0}),t})()})),P(()=>D(e,`aria-label`,M(`toast.region`))),e})()}E([`click`]);var Ma=w(`<div role=status style="background:var(--warning);color:var(--color-warning-content);text-align:center;padding:0.5rem 1rem;font-weight:600;font-size:13px;letter-spacing:0.01em;border-radius:8px;margin-bottom:1.75rem">`),Na=w(`<div style=display:flex;min-height:100vh><button class=hamburger style=position:fixed;top:12px;inset-inline-start:12px;z-index:200></button><main class=main-content style=flex:1;padding:1.5rem>`),Pa=s(()=>T(()=>import(`./Dashboard-CC6yGLo5.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),Fa=s(()=>T(()=>import(`./Queues-Ceed0Sus.js`),__vite__mapDeps([5,1,6,7,3,8,9,10,4,11]),import.meta.url)),Ia=s(()=>T(()=>import(`./Retries-kfg3Ql9-.js`),__vite__mapDeps([12,1,6,8,7,3,4,11,13,9,14,10]),import.meta.url)),La=s(()=>T(()=>import(`./Scheduled-CS6VZbIM.js`),__vite__mapDeps([15,1,6,8,7,3,9,4,11,13,14,10]),import.meta.url)),Ra=s(()=>T(()=>import(`./Dead-C_2lSQ7Y.js`),__vite__mapDeps([16,1,6,8,7,3,9,4,11,13,14,10]),import.meta.url)),za=s(()=>T(()=>import(`./Busy-DaHWj-5n.js`),__vite__mapDeps([17,1,10,4,8,7,3]),import.meta.url)),Ba=s(()=>T(()=>import(`./Batches-DP1OXNgO.js`),__vite__mapDeps([18,1,6,9,10,4,3,14]),import.meta.url)),Va=s(()=>T(()=>import(`./BatchDetail-CxYdu4Qj.js`),__vite__mapDeps([19,1,3]),import.meta.url)),Ha=s(()=>T(()=>import(`./Flows-BZd88wZe.js`),__vite__mapDeps([20,1,6,9,10,4,3,21]),import.meta.url)),Ua=s(()=>T(()=>import(`./FlowDetail-Bo1BOsbe.js`),__vite__mapDeps([22,1,3,21]),import.meta.url)),Wa=s(()=>T(()=>import(`./Limiters-Dlr_jmFX.js`),__vite__mapDeps([23,1,6,9,10,4,3]),import.meta.url)),Ga=s(()=>T(()=>import(`./Cron-DpWbjmMY.js`),__vite__mapDeps([24,1,10,4,8,3,9]),import.meta.url)),Ka=s(()=>T(()=>import(`./Metrics-a1CqpvLq.js`),__vite__mapDeps([25,1,2,3,4]),import.meta.url)),qa=s(()=>T(()=>import(`./Profiles-CAVocaoT.js`),__vite__mapDeps([26,1,10,3]),import.meta.url)),Ja=s(()=>T(()=>import(`./Search-DMtKQkLa.js`),__vite__mapDeps([27,1,4,7,3]),import.meta.url)),Ya=s(()=>T(()=>import(`./Extension-CNHv0pog.js`),__vite__mapDeps([28,1,4]),import.meta.url)),Xa=s(()=>T(()=>import(`./NotFound-DlOAf8pL.js`),__vite__mapDeps([29,1,4]),import.meta.url));Bt({"/":Pa,"/queues":Fa,"/retries":Ia,"/scheduled":La,"/dead":Ra,"/busy":za,"/batches":Ba,"/flows":Ha,"/limiters":Wa,"/cron":Ga,"/metrics":Ka,"/profiles":qa,"/search":Ja,"/ext/":Ya},[Va,Ua,Xa]);var Za=new er({defaultOptions:{queries:{staleTime:5e3,retry:1}}});function Qa(){let e=vr();return m(O,{get when(){return e.data?.read_only},get children(){var t=Ma();return A(t,()=>e.data?.read_only_message||M(`readonly.banner`)),t}})}var $a=`wurk-nav-collapsed`;function eo(e){Er(),x(Ht);let[n,r]=y(!1),[i,a]=y((()=>{try{return typeof localStorage<`u`&&localStorage.getItem($a)===`1`}catch{return!1}})()),[o,s]=y(typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches===!0);d(()=>{if(typeof window>`u`)return;let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`);if(!e)return;let t=()=>s(e.matches);e.addEventListener(`change`,t),l(()=>e.removeEventListener(`change`,t))});let c=()=>a(e=>{let t=!e;try{localStorage.setItem($a,t?`1`:`0`)}catch{}return t});return m(Qn,{client:Za,get children(){var a=Na(),s=a.firstChild,l=s.nextSibling;return s.$$click=()=>r(e=>!e),A(s,m($,{name:`bars`})),A(l,m(Wt,{}),null),A(l,m(Qa,{}),null),A(l,m(ya,{get children(){return m(t,{get fallback(){return m(_a,{})},get children(){return e.children}})}}),null),A(a,m(ra,{get open(){return n()},onClose:()=>r(!1),get collapsed(){return i()},onToggleCollapse:c}),null),A(a,m(ja,{}),null),P(e=>{var t=M(`nav.toggle`),n=i()?`var(--nav-rail)`:`var(--nav-width)`,r=o()?`none`:`margin var(--dur-page) var(--ease-emphasized)`;return t!==e.e&&D(s,`aria-label`,e.e=t),n!==e.t&&S(l,`margin-inline-start`,e.t=n),r!==e.a&&S(l,`transition`,e.a=r),e},{e:void 0,t:void 0,a:void 0}),a}})}function to(){return[m(z,{path:`/`,component:Pa}),m(z,{path:`/queues`,component:Fa}),m(z,{path:`/queues/:name`,component:Fa}),m(z,{path:`/retries`,component:Ia}),m(z,{path:`/retries/:key`,component:Ia}),m(z,{path:`/scheduled`,component:La}),m(z,{path:`/scheduled/:key`,component:La}),m(z,{path:`/dead`,component:Ra}),m(z,{path:`/dead/:key`,component:Ra}),m(z,{path:`/morgue`,component:Ra}),m(z,{path:`/morgue/:key`,component:Ra}),m(z,{path:`/busy`,component:za}),m(z,{path:`/batches`,component:Ba}),m(z,{path:`/batches/:bid`,component:Va}),m(z,{path:`/flows`,component:Ha}),m(z,{path:`/flows/:fid`,component:Ua}),m(z,{path:`/limiters`,component:Wa}),m(z,{path:`/cron`,component:Ga}),m(z,{path:`/metrics`,component:Ka}),m(z,{path:`/metrics/:klass`,component:Ka}),m(z,{path:`/profiles`,component:qa}),m(z,{path:`/search`,component:Ja}),m(z,{path:`/ext/:tab`,component:Ya}),m(z,{path:`*`,component:Xa})]}function no(){return m(pt,{root:eo,get base(){return X()},get children(){return m(to,{})}})}E([`click`]);var ro=w(`<div style=padding:2rem;text-align:center;color:var(--text-muted);font-size:14px;line-height:1.6>`);de(ae),gi();var io=window.self!==window.top&&new URLSearchParams(window.location.search).has(`wurk_ext_embed`),ao=document.getElementById(`wurk-root`);ao&&Promise.race([C,new Promise(e=>setTimeout(e,3e3))]).then(()=>ie(()=>io?(()=>{var e=ro();return A(e,()=>M(`extension.notRendered`)),e})():m(no,{}),ao));export{We as A,ur as C,bt as D,ln as E,Be as O,lr as S,$n as T,mr as _,ha as a,fr as b,Gi as c,$ as d,Gr as f,gr as g,_r as h,ga as i,Ue as k,Mi as l,vr as m,Da as n,Ui as o,wr as p,pa as r,Wi as s,ka as t,Ti as u,hr as v,Xn as w,dr as x,X as y};
|