corequery 0.25.3 → 0.26.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.
- package/package.json +1 -1
- package/web/dist/assets/{About-DxAX4fbq.js → About-BjgaGj8I.js} +1 -1
- package/web/dist/assets/AdminControls-C-tiL7FK.js +1 -0
- package/web/dist/assets/{Alert-DJxpAxGW.js → Alert-DNsGljjU.js} +1 -1
- package/web/dist/assets/{Debug-C3aem-Y_.js → Debug-DzOqpe2a.js} +1 -1
- package/web/dist/assets/Divider-D0u5ZQZn.js +1 -0
- package/web/dist/assets/Home-oh0OwBNV.js +1 -0
- package/web/dist/assets/{Line-BAgtALS7.js → Line-yMikhkZV.js} +1 -1
- package/web/dist/assets/{LinkText-CiPvp0mL.js → LinkText-Z0HboJZn.js} +1 -1
- package/web/dist/assets/{Markdown-D2wC6jdy.js → Markdown-BAkMkc9t.js} +1 -1
- package/web/dist/assets/Nearby-ClJ1usaG.js +1 -0
- package/web/dist/assets/NotFound-DCZ-vmQJ.js +1 -0
- package/web/dist/assets/{NotFoundPage-CkldArMP.js → NotFoundPage-BoolK0ik.js} +1 -1
- package/web/dist/assets/Page-CE6Z4Bpi.js +1 -0
- package/web/dist/assets/{Picker-BUr-habm.js → Picker-CHvnHGY8.js} +1 -1
- package/web/dist/assets/{Placeholder-BkXn0vQ2.js → Placeholder-B8iCvFNV.js} +1 -1
- package/web/dist/assets/{Service-DwfMOmR2.js → Service-BgzHz-B5.js} +1 -1
- package/web/dist/assets/{Settings-CcOwENSo.js → Settings-dGkAThRO.js} +1 -1
- package/web/dist/assets/SimpleMobileHeaderContent-mA6Motds.js +1 -0
- package/web/dist/assets/Status-DmRnFnWV.js +1 -0
- package/web/dist/assets/Stop-9J6m32wx.js +1 -0
- package/web/dist/assets/Strong-DviAEPO-.js +1 -0
- package/web/dist/assets/ZenMode-BVDNMDa6.js +1 -0
- package/web/dist/assets/index-CVEoHKKb.js +2 -0
- package/web/dist/assets/index-D20TpGy-.css +2 -0
- package/web/dist/assets/{use-foundational-data-CyGObFfu.js → use-foundational-data-zcQwBHIX.js} +1 -1
- package/web/dist/assets/{use-nav-exemptions-pWDQIkAs.js → use-nav-exemptions-BVau2uMd.js} +1 -1
- package/web/dist/assets/{use-query-DDd1mja8.js → use-query-DHdSzQ5j.js} +1 -1
- package/web/dist/assets/use-simple-headers-D6PQjBB3.js +1 -0
- package/web/dist/index.html +6 -6
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/AdminControls-CkepqAqA.js +0 -1
- package/web/dist/assets/Divider-DxcVAB__.js +0 -1
- package/web/dist/assets/Home-BWy3tAlX.js +0 -1
- package/web/dist/assets/Nearby-GgSNwYjV.js +0 -1
- package/web/dist/assets/NotFound-785phBIT.js +0 -1
- package/web/dist/assets/Page-BMpuMskU.js +0 -1
- package/web/dist/assets/Status-Cqm0zGEP.js +0 -1
- package/web/dist/assets/Stop-1gh0-Vtz.js +0 -1
- package/web/dist/assets/Strong-BeqxJ43O.js +0 -1
- package/web/dist/assets/ZenMode-Dy3GUHqN.js +0 -1
- package/web/dist/assets/index-CpWS5La_.css +0 -2
- package/web/dist/assets/index-Ddvtj_a8.js +0 -2
- package/web/dist/assets/use-simple-headers-vqWwqqRo.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{d as r,t as i}from"./use-query-DHdSzQ5j.js";import{n as a}from"./use-foundational-data-zcQwBHIX.js";import{v as o}from"./index-CVEoHKKb.js";import{t as s}from"./Placeholder-B8iCvFNV.js";import{n as c,t as l}from"./Markdown-BAkMkc9t.js";import{t as u}from"./Page-CE6Z4Bpi.js";import{t as d}from"./use-simple-headers-D6PQjBB3.js";import{t as f}from"./Divider-D0u5ZQZn.js";import{t as p}from"./Alert-DNsGljjU.js";function m(){let{appName:m}=o(),{foda:h}=a(),{data:g,loading:_,error:v}=i(r,{}),y=d({title:`About ${m}`});return _?e(u,{...y,children:e(n,{class:`px-4 py-8`,children:[e(s,{class:`w-[30%] text-xl`}),e(`div`,{class:`h-8`}),e(s,{class:`w-full text-md`}),e(`div`,{class:`h-3`}),e(s,{class:`w-full text-md`}),e(`div`,{class:`h-3`}),e(s,{class:`w-[60%] text-md`}),e(`div`,{class:`h-12`}),e(s,{class:`w-[40%] text-lg`}),e(`div`,{class:`h-8`}),e(s,{class:`w-full text-md`}),e(`div`,{class:`h-3`}),e(s,{class:`w-full text-md`}),e(`div`,{class:`h-3`}),e(s,{class:`w-[20%] text-md`}),e(`div`,{class:`h-12`}),e(s,{class:`w-[50%] text-lg`}),e(`div`,{class:`h-8`}),e(s,{class:`w-full text-md`}),e(`div`,{class:`h-3`}),e(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?e(u,{...y,children:e(n,{class:`px-4 py-8`,children:e(p,{type:`error`,children:e(t,{children:`Unable to load the about page.`})})})}):e(u,{...y,children:e(n,{class:`px-4 py-8 gap-12`,children:[e(l,{markdown:g.primaryMarkdown}),e(n,{class:`gap-8`,children:[e(f,{}),e(t,{as:`p`,style:`small-weak`,children:e(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{t as r}from"./Page-CE6Z4Bpi.js";import{t as i}from"./use-simple-headers-D6PQjBB3.js";function a(){return e(r,{...i({title:`Admin controls`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,o as n,s as r}from"./use-nav-exemptions-
|
|
1
|
+
import{a as e,c as t,o as n,s as r}from"./use-nav-exemptions-BVau2uMd.js";import{c as i,n as a,o}from"./index-CVEoHKKb.js";function s(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 4.898L4.232 18.352h15.536zM12 15a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1`})]})})}function c(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,fillRule:`evenodd`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function l(l){let u={info:o,error:i,warning:s,success:c}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(n,{class:r(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(a,{heightRem:e(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{s as n,l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,o as r,r as i,s as a,x as o,y as s}from"./use-nav-exemptions-
|
|
1
|
+
import{a as e,c as t,i as n,o as r,r as i,s as a,x as o,y as s}from"./use-nav-exemptions-BVau2uMd.js";import{i as c,t as l}from"./use-query-DHdSzQ5j.js";import{n as u}from"./use-foundational-data-zcQwBHIX.js";import{a as d,d as f,g as p,h as m,n as h,p as g,t as _,v}from"./index-CVEoHKKb.js";import{t as y}from"./Placeholder-B8iCvFNV.js";import{t as b}from"./Page-CE6Z4Bpi.js";import{t as x}from"./use-simple-headers-D6PQjBB3.js";import{t as S}from"./Divider-D0u5ZQZn.js";import{t as C}from"./Alert-DNsGljjU.js";var w=o(null);function T(){let e=s(w);if(e==null)throw Error(`Foundational data unavailable outside provider.`);return e}function E(e){let i={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[e.type],o={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[e.type];return t(r,{class:a(e.class,i,o,`px-2 py-1.5 rounded-full`),children:t(n,{style:`small`,children:e.text})})}function D(r){return t(g,{class:a(r.class,`gap-x-2 gap-y-3`),wrap:!0,children:[t(n,{style:`strong`,children:r.header}),r.loading&&t(y,{class:`w-[20%] text-md`}),!r.loading&&r.pillContent!=null&&t(h,{heightRem:e(`text-md`),children:t(E,{type:r.pillContent.type,text:r.pillContent.text})})]})}function O(e){return t(D,{class:e.class,header:e.header,pillContent:k(e.currentValue,e.latestValue),loading:e.loading})}function k(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function A(e){return e.loading?t(r,{class:e.class,children:t(y,{class:`w-[40%] text-md`})}):e.value==null?null:t(n,{class:e.class,children:[e.prefix,`: `,e.value]})}function j(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function M(r){let{isUpdateAvailable:i,update:o}=d();return i?t(f,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:m,onClick:()=>void o()}):t(g,{class:a(r.class,`gap-2`),children:[t(h,{heightRem:e(`text-md`),children:t(p,{})}),t(n,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function N(e){let{isHotReloadingEnabled:n}=_();return t(n?P:F,{...e})}function P(e){let{data:r,loading:o}=T();return t(i,{class:a(e.class,`gap-6`),children:[t(D,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),t(n,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),t(I,{}),t(A,{prefix:`Latest version`,value:r?.frontendVersion.slice(0,8)??null,loading:o})]})}function F(e){let{frontendVersion:n}=v(),{data:r,loading:o}=T(),s=!o&&r!=null&&r?.frontendVersion!==n;return t(i,{class:a(e.class,`gap-8`),children:t(i,{class:`gap-6`,children:[t(O,{header:`App version`,currentValue:n,latestValue:r?.frontendVersion??null,loading:o}),t(I,{}),t(A,{prefix:`Latest version`,value:j(r?.frontendVersion),loading:o}),s&&t(M,{})]})})}function I(){let{frontendVersion:e,versionsOnLastUpdate:r}=v();return t(i,{class:`gap-4`,children:[t(n,{children:[`Current version: `,j(e)]}),t(i,{class:`gap-3`,children:[t(n,{style:`small-weak`,children:[`Server version: `,j(r.serverVersion)]}),t(n,{style:`small-weak`,children:[`CoreQuery version: `,r.corequeryPackageVersion]})]})]})}function L(e){let n=l(c,{});return t(w.Provider,{value:n,children:e.children})}function R(e){let{data:r,loading:o}=T(),{foda:s}=u();return t(i,{class:a(e.class,`gap-6`),children:[t(O,{header:`Foundational data`,currentValue:s.hash,latestValue:r?.foundationalDataHash??null,loading:o}),t(i,{class:`gap-4`,children:[t(n,{children:[`Current version: `,j(s.hash)]}),t(n,{style:`small-weak`,children:[`Server version: `,j(s.serverVersion)]})]}),t(A,{prefix:`Latest version`,value:j(r?.foundationalDataHash),loading:o})]})}function z(e){let{data:r,loading:o}=T();return t(i,{class:a(e.class,`gap-8`),children:t(i,{class:`gap-6`,children:[t(n,{style:`strong`,children:`Server`}),t(B,{}),t(i,{class:`gap-4`,children:[t(A,{prefix:`Server version`,value:j(r?.serverVersion),loading:o}),t(A,{prefix:`CoreQuery version`,value:r?.corequeryPackageVersion??null,loading:o})]})]})})}function B(){let{error:e}=T();return e==null?null:t(C,{type:`error`,children:t(n,{children:`Unable to fetch the latest version info from the server.`})})}function V(){return t(b,{...x({title:`Developer info`}),children:t(L,{children:t(i,{class:`px-4 py-8 gap-8`,children:[t(H,{}),t(N,{}),t(S,{}),t(R,{}),t(S,{}),t(z,{}),t(S,{})]})})})}function H(){let{error:e}=T();return e==null?null:t(C,{type:`error`,children:t(n,{children:`Unable to fetch the latest version info from the server.`})})}export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,s as t}from"./use-nav-exemptions-BVau2uMd.js";function n(n){return e(`div`,{class:t(n.class,`border-b border-soft-border`)})}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,r as t}from"./use-nav-exemptions-BVau2uMd.js";import{n}from"./use-foundational-data-zcQwBHIX.js";import{t as r}from"./Markdown-BAkMkc9t.js";import{t as i}from"./Page-CE6Z4Bpi.js";import{t as a}from"./use-simple-headers-D6PQjBB3.js";function o(){let{foda:o}=n();return e(i,{...a({title:`Home`}),children:e(t,{class:`px-4 py-8 gap-12`,children:e(r,{markdown:o.landingPage.primaryMarkdown})})})}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,g as n,h as r,i,m as a,o,p as s,r as c,s as l,v as u}from"./use-nav-exemptions-pWDQIkAs.js";import{l as d}from"./use-query-DDd1mja8.js";import{n as f}from"./use-foundational-data-CyGObFfu.js";import{t as p}from"./scope-B-e4l8Dr.js";import{n as m}from"./integers-BYp6YHG5.js";import{t as h}from"./LinkText-CiPvp0mL.js";import{i as ee,u as g,v as _}from"./index-Ddvtj_a8.js";import{t as v}from"./Page-BMpuMskU.js";import{t as y}from"./use-simple-headers-vqWwqqRo.js";import{n as te,t as b}from"./Alert-DJxpAxGW.js";import{t as x}from"./NotFoundPage-CkldArMP.js";import{t as S}from"./Picker-BUr-habm.js";function C(e){throw Error(`Unexpected value: ${String(e)}`)}function w(e){let{foda:r}=f(),{appName:a}=_(),o=n(()=>e.fallbackStopList.map(e=>r.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[r.stops,e.fallbackStopList]);return t(c,{class:l(e.class,`gap-6`),children:[t(i,{style:`subtitle`,children:`Stops`}),t(b,{type:`info`,children:t(c,{class:`gap-6`,children:[t(i,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,a,` to be able to view.`,` `]}),t(i,{style:`strong`,children:t(h,{href:`/debug`,children:`Help me update`})})]})}),t(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:o.map(e=>t(i,{children:t(`li`,{children:t(h,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}var T=class{_canvasContainer;_canvas;ctx;_resizeListener;_resizeObserver;_data;_width;_height;_dpiRatio;_dirty;_running;constructor(e,t){this._canvasContainer=e,this._canvas=t;let n=this._canvas.getContext(`2d`);if(n==null)throw Error(`Failed to get 2D rendering context.`);this.ctx=n,this._resizeListener=this._onResize.bind(this),this._resizeObserver=new ResizeObserver(this._resizeListener),this._data=null,this._width=1,this._height=1,this._dpiRatio=1,this._dirty=!0,this._running=!1}get data(){if(this._data==null)throw Error(`Data not set.`);return this._data}get width(){return this._width}get height(){return this._height}setData(e){this._data=e,this.onDataUpdated(),this._dirty=!0,this._running||this._start()}_start(){this._fitCanvas(),this._running=!0,this._render(),window.addEventListener(`resize`,this._resizeListener),this._resizeObserver.observe(this._canvasContainer),this.onStart()}destroy(){this._running=!1,window.removeEventListener(`resize`,this._resizeListener),this._resizeObserver.unobserve(this._canvasContainer),this.onDestroy()}_render(){this._running&&(requestAnimationFrame(()=>{this._render()}),this._dirty&&(this._dirty=!1,this.ctx.save(),this.ctx.clearRect(0,0,this._width*this._dpiRatio,this._height*this._dpiRatio),this.ctx.scale(this._dpiRatio,this._dpiRatio),this.onRender(),this.ctx.restore()))}onStart(){}onDestroy(){}onDataUpdated(){}_onResize(){this._fitCanvas()}_fitCanvas(){let e=this._canvasContainer.getBoundingClientRect();this._width=e.width,this._height=e.height;let t=window.devicePixelRatio??1,n=this.ctx.backingStorePixelRatio??1;this._dpiRatio=t/n,this._canvas.style.width=`${this._width}px`,this._canvas.style.height=`${this._height}px`,this._canvas.width=this._width*this._dpiRatio,this._canvas.height=this._height*this._dpiRatio,this._dirty=!0}markDirty(){this._dirty=!0}};function E(n){let{data:i,createController:o}=n,s=r(null),c=r(null),[u,d]=e(null),f=n.interceptTouches??!1?{touchAction:`none`}:void 0;return a(()=>{if(s.current==null||c.current==null)return;let e=o(s.current,c.current);return d(e),()=>{e?.destroy()}},[o]),a(()=>{u?.setData(i)},[u,i]),t(`div`,{ref:s,className:l(n.class,`relative overflow-hidden`),children:t(`canvas`,{className:`absolute top-0 left-0`,ref:c,style:f})})}function D(){let e=window.getComputedStyle(document.body);return{bg:e.getPropertyValue(`--color-bg`),fg:e.getPropertyValue(`--color-fg`),"fg-strong":e.getPropertyValue(`--color-fg-strong`),"fg-weak":e.getPropertyValue(`--color-fg-weak`)}}var ne=6,O=6,k=1,A=class extends T{_css;_prefersDark;constructor(e,t){super(e,t),this._css=D(),this._prefersDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches}onRender(){this.ctx.strokeStyle=`#000000`,this._onRenderStructure(),this.ctx.globalCompositeOperation=`source-in`,this.ctx.fillStyle=this._getDiagramColor(),this.ctx.fillRect(0,0,this.width,this.height)}_renderSection({stops:e,x:t,yLevels:n,terminatesAtTop:r,terminatesAtBottom:i,notchSide:a}){if(e.length<1)throw Error(`Expecting at least one stop.`);if(e.length!==n.length)throw Error(`Bad length.`);let o=p(n[0]),s=p(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-k),e.lineTo(t,s+k)}),e.forEach((o,s)=>{let c=p(n[s]),l=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,l,a)})}_drawLine(e){this.ctx.lineWidth=O,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=ne,this.ctx.beginPath(),this.ctx.moveTo(n?e-8*i:e,t),this.ctx.lineTo(e+8*i,t),this.ctx.stroke()}_extractYLevels(e,t){let n=this._extractChildElements(t);if(e.length!==n.length)throw Error(`Bad length.`);return e.map((e,t)=>{let r=p(n[t]);return e.getOverriddenMarkYPosition==null?this._getDefaultMarkYPosition(r):e.getOverriddenMarkYPosition(r)})}_extractChildElements(e){let t=this._canvasContainer.parentElement?.querySelector(`.${e}`);if(t==null)throw Error(`Couldn't find "${e}".`);return Array.from(t.childNodes.values()).filter(e=>e instanceof HTMLElement)}_getDefaultMarkYPosition(e){let t=this._canvasContainer.getBoundingClientRect(),n=e.getBoundingClientRect();return n.top-t.top+n.height/2}_getDiagramColor(){let e={dark:`darkThemeColorHexCode`,light:`lightThemeColorHexCode`,auto:this._prefersDark?`darkThemeColorHexCode`:`lightThemeColorHexCode`}[this.data.colorTheme];return this.data[e]??this._css.fg}},j=class extends A{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,N),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function M(e){return t(c,{class:l(e.class,`gap-2`),xAlign:`center`,children:[t(te,{class:`text-icon-xl text-fg`}),t(i,{align:`center`,children:`An error occurred rendering this diagram.`})]})}var N=`_diagram-stops`;function re(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new j(e,t),[]);return i.structure.stops.length<2?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_1fr] gap-4`),children:[t(E,{class:`w-4`,createController:a,data:i}),t(c,{class:l(`gap-6`,N),children:e.structure.stops.map(e=>t(o,{children:e.content}))})]})}function P(e,n){return n.map(n=>{let r=e.stops.require(n.stopId),a=`/stop/${r.urlPath}`;if(n.type===`regular`)return{content:t(i,{style:`strong`,children:t(h,{href:a,style:`subtle`,children:r.name})})};if(n.type===`always-express`)return{content:t(i,{style:`small-weak`,children:t(h,{href:a,style:`subtle`,children:[`Skips `,r.name]})}),drawMark:!1};C(n.type)})}function F(e){let{foda:r}=f(),i=n(()=>({type:`linear`,stops:P(r,e.diagram.stops)}),[r,e.diagram.stops]);return t(re,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var I=10,L=15,R=class extends A{_onRenderStructure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,{x:r,y:i}=this._measure();this._renderSection({stops:e,x:r.common,yLevels:i.common.all,terminatesAtTop:!0,terminatesAtBottom:!1,notchSide:`right`}),this._renderSection({stops:t,x:r.branchA,yLevels:i.branchA.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`left`}),this._renderSection({stops:n,x:r.branchB,yLevels:i.branchB.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(e=>{e.moveTo(r.common,i.common.bottom),e.lineTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchA,i.branches.top-L,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchB,i.branches.top-L,r.branchB,i.branches.top),e.lineTo(r.branchB,i.branchA.top)})}_measure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,r=this._extractYLevels(e,z),i=p(r[0]),a=p(r[r.length-1]),o=this._extractYLevels(t,B),s=p(o[0]),c=p(o[o.length-1]),l=this._extractYLevels(n,V),u=p(l[0]),d=p(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:d},branches:{top:Math.min(s,u),bottom:Math.max(c,d)}}}}},z=`_diagram-common-stops`,B=`_diagram-branch-a-stops`,V=`_diagram-branch-b-stops`;function H(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new R(e,t),[]);return i.structure.commonStops.length<1||i.structure.branchAStops.length<1||i.structure.branchBStops.length<1?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[t(E,{class:`w-12 col-2 row-span-full`,createController:a,data:i}),t(c,{class:l(`gap-6 col-3 row-1 -ml-4`,z),xAlign:`left`,children:e.structure.commonStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-1 row-2`,B),xAlign:`right`,children:e.structure.branchAStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-2`,V),xAlign:`left`,children:e.structure.branchBStops.map(e=>t(o,{children:e.content}))})]})}function U(e){let{foda:r}=f(),i=n(()=>({type:`branch`,commonStops:P(r,e.diagram.commonStops),branchAStops:P(r,e.diagram.branchAStops),branchBStops:P(r,e.diagram.branchBStops)}),[r,e.diagram]);return t(H,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var W=10,G=15,K=24,q=1,J=class extends A{_onRenderStructure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,{x:r,y:i}=this._measure();if(e.length>0?this._renderSection({stops:e,x:r.loopLeft,yLevels:i.loopLeft.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`left`}):this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top-q),e.lineTo(r.loopLeft,i.loopLeft.bottom+q)}),t.length>0?this._renderSection({stops:t,x:r.loopRight,yLevels:i.loopRight.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`right`}):this._drawLine(e=>{e.moveTo(r.loopRight,i.loopRight.top-q),e.lineTo(r.loopRight,i.loopRight.bottom+q)}),n.length>0){let e=p(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopLeft,i.loop.bottom+G,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopRight,i.loop.bottom+G,r.loopRight,i.loop.bottom),t.lineTo(r.loopRight,i.loopRight.bottom)}),this.ctx.stroke()}else this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.bottom),e.lineTo(r.loopLeft,i.loop.bottom),e.bezierCurveTo(r.loopLeft,i.loop.bottom+K,r.loopRight,i.loop.bottom+K,r.loopRight,i.loop.bottom),e.lineTo(r.loopRight,i.loopRight.bottom)});this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top),e.lineTo(r.loopLeft,i.loop.top),e.bezierCurveTo(r.loopLeft,i.loop.top-K,r.loopRight,i.loop.top-K,r.loopRight,i.loop.top),e.lineTo(r.loopRight,i.loopRight.top)})}_measure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,r=this._extractYLevels(e,X),i=this._extractYLevels(t,Z),a=this._extractYLevels(n,Y),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=p(o??s),d=p(s??o),f=p(c??l),m=p(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:f},loopRight:{all:i,top:d,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,d),bottom:Math.max(f,m)}}}}},Y=`_diagram-main-stops`,X=`_diagram-loop-left-stops`,Z=`_diagram-loop-right-stops`;function Q(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new J(e,t),[]),{loopLeftStops:s,loopRightStops:d}=i.structure;return s.length+d.length<1?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[t(E,{class:`w-12 col-2 row-span-full`,createController:a,data:i}),t(c,{class:l(`gap-6 col-1 row-1 py-4`,X),xAlign:`right`,yAlign:`center`,children:e.structure.loopLeftStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-1 py-4`,Z),xAlign:`left`,yAlign:`center`,children:e.structure.loopRightStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-2 -ml-4`,Y,{"pt-4":e.structure.mainStops.length>0}),xAlign:`left`,children:e.structure.mainStops.map(e=>t(o,{children:e.content}))})]})}function ie(e){let{foda:r}=f(),i=n(()=>({type:`loop`,loopLeftStops:P(r,e.diagram.loopLeftStops),loopRightStops:P(r,e.diagram.loopRightStops),mainStops:P(r,e.diagram.mainStops)}),[r,e.diagram]);return t(Q,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}function $(e){return t(o,{class:l(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:t(ae,{diagram:e.diagram})})}function ae(e){if(e.diagram.type===`linear`)return t(F,{diagram:e.diagram});if(e.diagram.type===`branch`)return t(U,{diagram:e.diagram});if(e.diagram.type===`loop`)return t(ie,{diagram:e.diagram});C(e.diagram)}function oe(e){let n=e.diagram.entries.filter(e=>d(e.type));return n.length<e.diagram.entries.length?t(w,{fallbackStopList:e.diagram.fallbackStopList}):t(c,{class:l(e.class,`gap-6`),children:[t(i,{style:`subtitle`,children:`Diagram`}),n.length===1?t($,{diagram:p(n[0])}):t(se,{entries:n},n.length)]})}function se(r){let[i,a]=e(0),o=n(()=>r.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[r.entries]);return t(c,{class:`gap-4`,children:[t(S,{class:`self-start`,value:i.toFixed(),options:o,onChange:e=>{a(m(e))}}),t($,{diagram:p(r.entries[i])})]})}function ce(){let{params:{id:e}}=s(),{foda:r}=f(),i=n(()=>r.lines.getByUrlPath(e??``),[r.lines,e]);return i==null?t(x,{afterConfirming:`foundational-data-version`}):t(le,{line:i},i.id)}function le(e){let{formatLine:n}=ee();return t(v,{...y({title:n(e.line.name)}),children:t(c,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&t(oe,{diagram:e.line.diagram})})})}export{ce as default};
|
|
1
|
+
import{_ as e,c as t,g as n,h as r,i,m as a,o,p as s,r as c,s as l,v as u}from"./use-nav-exemptions-BVau2uMd.js";import{l as d}from"./use-query-DHdSzQ5j.js";import{n as f}from"./use-foundational-data-zcQwBHIX.js";import{t as p}from"./scope-B-e4l8Dr.js";import{n as m}from"./integers-BYp6YHG5.js";import{t as h}from"./LinkText-Z0HboJZn.js";import{i as ee,u as g,v as _}from"./index-CVEoHKKb.js";import{t as v}from"./Page-CE6Z4Bpi.js";import{t as y}from"./use-simple-headers-D6PQjBB3.js";import{n as te,t as b}from"./Alert-DNsGljjU.js";import{t as x}from"./NotFoundPage-BoolK0ik.js";import{t as S}from"./Picker-CHvnHGY8.js";function C(e){throw Error(`Unexpected value: ${String(e)}`)}function w(e){let{foda:r}=f(),{appName:a}=_(),o=n(()=>e.fallbackStopList.map(e=>r.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[r.stops,e.fallbackStopList]);return t(c,{class:l(e.class,`gap-6`),children:[t(i,{style:`subtitle`,children:`Stops`}),t(b,{type:`info`,children:t(c,{class:`gap-6`,children:[t(i,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,a,` to be able to view.`,` `]}),t(i,{style:`strong`,children:t(h,{href:`/debug`,children:`Help me update`})})]})}),t(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:o.map(e=>t(i,{children:t(`li`,{children:t(h,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}var T=class{_canvasContainer;_canvas;ctx;_resizeListener;_resizeObserver;_data;_width;_height;_dpiRatio;_dirty;_running;constructor(e,t){this._canvasContainer=e,this._canvas=t;let n=this._canvas.getContext(`2d`);if(n==null)throw Error(`Failed to get 2D rendering context.`);this.ctx=n,this._resizeListener=this._onResize.bind(this),this._resizeObserver=new ResizeObserver(this._resizeListener),this._data=null,this._width=1,this._height=1,this._dpiRatio=1,this._dirty=!0,this._running=!1}get data(){if(this._data==null)throw Error(`Data not set.`);return this._data}get width(){return this._width}get height(){return this._height}setData(e){this._data=e,this.onDataUpdated(),this._dirty=!0,this._running||this._start()}_start(){this._fitCanvas(),this._running=!0,this._render(),window.addEventListener(`resize`,this._resizeListener),this._resizeObserver.observe(this._canvasContainer),this.onStart()}destroy(){this._running=!1,window.removeEventListener(`resize`,this._resizeListener),this._resizeObserver.unobserve(this._canvasContainer),this.onDestroy()}_render(){this._running&&(requestAnimationFrame(()=>{this._render()}),this._dirty&&(this._dirty=!1,this.ctx.save(),this.ctx.clearRect(0,0,this._width*this._dpiRatio,this._height*this._dpiRatio),this.ctx.scale(this._dpiRatio,this._dpiRatio),this.onRender(),this.ctx.restore()))}onStart(){}onDestroy(){}onDataUpdated(){}_onResize(){this._fitCanvas()}_fitCanvas(){let e=this._canvasContainer.getBoundingClientRect();this._width=e.width,this._height=e.height;let t=window.devicePixelRatio??1,n=this.ctx.backingStorePixelRatio??1;this._dpiRatio=t/n,this._canvas.style.width=`${this._width}px`,this._canvas.style.height=`${this._height}px`,this._canvas.width=this._width*this._dpiRatio,this._canvas.height=this._height*this._dpiRatio,this._dirty=!0}markDirty(){this._dirty=!0}};function E(n){let{data:i,createController:o}=n,s=r(null),c=r(null),[u,d]=e(null),f=n.interceptTouches??!1?{touchAction:`none`}:void 0;return a(()=>{if(s.current==null||c.current==null)return;let e=o(s.current,c.current);return d(e),()=>{e?.destroy()}},[o]),a(()=>{u?.setData(i)},[u,i]),t(`div`,{ref:s,className:l(n.class,`relative overflow-hidden`),children:t(`canvas`,{className:`absolute top-0 left-0`,ref:c,style:f})})}function D(){let e=window.getComputedStyle(document.body);return{bg:e.getPropertyValue(`--color-bg`),fg:e.getPropertyValue(`--color-fg`),"fg-strong":e.getPropertyValue(`--color-fg-strong`),"fg-weak":e.getPropertyValue(`--color-fg-weak`)}}var ne=6,O=6,k=1,A=class extends T{_css;_prefersDark;constructor(e,t){super(e,t),this._css=D(),this._prefersDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches}onRender(){this.ctx.strokeStyle=`#000000`,this._onRenderStructure(),this.ctx.globalCompositeOperation=`source-in`,this.ctx.fillStyle=this._getDiagramColor(),this.ctx.fillRect(0,0,this.width,this.height)}_renderSection({stops:e,x:t,yLevels:n,terminatesAtTop:r,terminatesAtBottom:i,notchSide:a}){if(e.length<1)throw Error(`Expecting at least one stop.`);if(e.length!==n.length)throw Error(`Bad length.`);let o=p(n[0]),s=p(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-k),e.lineTo(t,s+k)}),e.forEach((o,s)=>{let c=p(n[s]),l=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,l,a)})}_drawLine(e){this.ctx.lineWidth=O,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=ne,this.ctx.beginPath(),this.ctx.moveTo(n?e-8*i:e,t),this.ctx.lineTo(e+8*i,t),this.ctx.stroke()}_extractYLevels(e,t){let n=this._extractChildElements(t);if(e.length!==n.length)throw Error(`Bad length.`);return e.map((e,t)=>{let r=p(n[t]);return e.getOverriddenMarkYPosition==null?this._getDefaultMarkYPosition(r):e.getOverriddenMarkYPosition(r)})}_extractChildElements(e){let t=this._canvasContainer.parentElement?.querySelector(`.${e}`);if(t==null)throw Error(`Couldn't find "${e}".`);return Array.from(t.childNodes.values()).filter(e=>e instanceof HTMLElement)}_getDefaultMarkYPosition(e){let t=this._canvasContainer.getBoundingClientRect(),n=e.getBoundingClientRect();return n.top-t.top+n.height/2}_getDiagramColor(){let e={dark:`darkThemeColorHexCode`,light:`lightThemeColorHexCode`,auto:this._prefersDark?`darkThemeColorHexCode`:`lightThemeColorHexCode`}[this.data.colorTheme];return this.data[e]??this._css.fg}},j=class extends A{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,N),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function M(e){return t(c,{class:l(e.class,`gap-2`),xAlign:`center`,children:[t(te,{class:`text-icon-xl text-fg`}),t(i,{align:`center`,children:`An error occurred rendering this diagram.`})]})}var N=`_diagram-stops`;function re(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new j(e,t),[]);return i.structure.stops.length<2?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_1fr] gap-4`),children:[t(E,{class:`w-4`,createController:a,data:i}),t(c,{class:l(`gap-6`,N),children:e.structure.stops.map(e=>t(o,{children:e.content}))})]})}function P(e,n){return n.map(n=>{let r=e.stops.require(n.stopId),a=`/stop/${r.urlPath}`;if(n.type===`regular`)return{content:t(i,{style:`strong`,children:t(h,{href:a,style:`subtle`,children:r.name})})};if(n.type===`always-express`)return{content:t(i,{style:`small-weak`,children:t(h,{href:a,style:`subtle`,children:[`Skips `,r.name]})}),drawMark:!1};C(n.type)})}function F(e){let{foda:r}=f(),i=n(()=>({type:`linear`,stops:P(r,e.diagram.stops)}),[r,e.diagram.stops]);return t(re,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var I=10,L=15,R=class extends A{_onRenderStructure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,{x:r,y:i}=this._measure();this._renderSection({stops:e,x:r.common,yLevels:i.common.all,terminatesAtTop:!0,terminatesAtBottom:!1,notchSide:`right`}),this._renderSection({stops:t,x:r.branchA,yLevels:i.branchA.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`left`}),this._renderSection({stops:n,x:r.branchB,yLevels:i.branchB.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(e=>{e.moveTo(r.common,i.common.bottom),e.lineTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchA,i.branches.top-L,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchB,i.branches.top-L,r.branchB,i.branches.top),e.lineTo(r.branchB,i.branchA.top)})}_measure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,r=this._extractYLevels(e,z),i=p(r[0]),a=p(r[r.length-1]),o=this._extractYLevels(t,B),s=p(o[0]),c=p(o[o.length-1]),l=this._extractYLevels(n,V),u=p(l[0]),d=p(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:d},branches:{top:Math.min(s,u),bottom:Math.max(c,d)}}}}},z=`_diagram-common-stops`,B=`_diagram-branch-a-stops`,V=`_diagram-branch-b-stops`;function H(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new R(e,t),[]);return i.structure.commonStops.length<1||i.structure.branchAStops.length<1||i.structure.branchBStops.length<1?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[t(E,{class:`w-12 col-2 row-span-full`,createController:a,data:i}),t(c,{class:l(`gap-6 col-3 row-1 -ml-4`,z),xAlign:`left`,children:e.structure.commonStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-1 row-2`,B),xAlign:`right`,children:e.structure.branchAStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-2`,V),xAlign:`left`,children:e.structure.branchBStops.map(e=>t(o,{children:e.content}))})]})}function U(e){let{foda:r}=f(),i=n(()=>({type:`branch`,commonStops:P(r,e.diagram.commonStops),branchAStops:P(r,e.diagram.branchAStops),branchBStops:P(r,e.diagram.branchBStops)}),[r,e.diagram]);return t(H,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var W=10,G=15,K=24,q=1,J=class extends A{_onRenderStructure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,{x:r,y:i}=this._measure();if(e.length>0?this._renderSection({stops:e,x:r.loopLeft,yLevels:i.loopLeft.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`left`}):this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top-q),e.lineTo(r.loopLeft,i.loopLeft.bottom+q)}),t.length>0?this._renderSection({stops:t,x:r.loopRight,yLevels:i.loopRight.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`right`}):this._drawLine(e=>{e.moveTo(r.loopRight,i.loopRight.top-q),e.lineTo(r.loopRight,i.loopRight.bottom+q)}),n.length>0){let e=p(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopLeft,i.loop.bottom+G,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopRight,i.loop.bottom+G,r.loopRight,i.loop.bottom),t.lineTo(r.loopRight,i.loopRight.bottom)}),this.ctx.stroke()}else this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.bottom),e.lineTo(r.loopLeft,i.loop.bottom),e.bezierCurveTo(r.loopLeft,i.loop.bottom+K,r.loopRight,i.loop.bottom+K,r.loopRight,i.loop.bottom),e.lineTo(r.loopRight,i.loopRight.bottom)});this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top),e.lineTo(r.loopLeft,i.loop.top),e.bezierCurveTo(r.loopLeft,i.loop.top-K,r.loopRight,i.loop.top-K,r.loopRight,i.loop.top),e.lineTo(r.loopRight,i.loopRight.top)})}_measure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,r=this._extractYLevels(e,X),i=this._extractYLevels(t,Z),a=this._extractYLevels(n,Y),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=p(o??s),d=p(s??o),f=p(c??l),m=p(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:f},loopRight:{all:i,top:d,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,d),bottom:Math.max(f,m)}}}}},Y=`_diagram-main-stops`,X=`_diagram-loop-left-stops`,Z=`_diagram-loop-right-stops`;function Q(e){let{settings:r}=g(),i=n(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:r.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,r.theme]),a=u((e,t)=>new J(e,t),[]),{loopLeftStops:s,loopRightStops:d}=i.structure;return s.length+d.length<1?t(M,{}):t(o,{class:l(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[t(E,{class:`w-12 col-2 row-span-full`,createController:a,data:i}),t(c,{class:l(`gap-6 col-1 row-1 py-4`,X),xAlign:`right`,yAlign:`center`,children:e.structure.loopLeftStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-1 py-4`,Z),xAlign:`left`,yAlign:`center`,children:e.structure.loopRightStops.map(e=>t(o,{children:e.content}))}),t(c,{class:l(`gap-6 col-3 row-2 -ml-4`,Y,{"pt-4":e.structure.mainStops.length>0}),xAlign:`left`,children:e.structure.mainStops.map(e=>t(o,{children:e.content}))})]})}function ie(e){let{foda:r}=f(),i=n(()=>({type:`loop`,loopLeftStops:P(r,e.diagram.loopLeftStops),loopRightStops:P(r,e.diagram.loopRightStops),mainStops:P(r,e.diagram.mainStops)}),[r,e.diagram]);return t(Q,{class:e.class,structure:i,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}function $(e){return t(o,{class:l(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:t(ae,{diagram:e.diagram})})}function ae(e){if(e.diagram.type===`linear`)return t(F,{diagram:e.diagram});if(e.diagram.type===`branch`)return t(U,{diagram:e.diagram});if(e.diagram.type===`loop`)return t(ie,{diagram:e.diagram});C(e.diagram)}function oe(e){let n=e.diagram.entries.filter(e=>d(e.type));return n.length<e.diagram.entries.length?t(w,{fallbackStopList:e.diagram.fallbackStopList}):t(c,{class:l(e.class,`gap-6`),children:[t(i,{style:`subtitle`,children:`Diagram`}),n.length===1?t($,{diagram:p(n[0])}):t(se,{entries:n},n.length)]})}function se(r){let[i,a]=e(0),o=n(()=>r.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[r.entries]);return t(c,{class:`gap-4`,children:[t(S,{class:`self-start`,value:i.toFixed(),options:o,onChange:e=>{a(m(e))}}),t($,{diagram:p(r.entries[i])})]})}function ce(){let{params:{id:e}}=s(),{foda:r}=f(),i=n(()=>r.lines.getByUrlPath(e??``),[r.lines,e]);return i==null?t(x,{afterConfirming:`foundational-data-version`}):t(le,{line:i},i.id)}function le(e){let{formatLine:n}=ee();return t(v,{...y({title:n(e.line.name),back:{href:`/`,text:`Home`}}),children:t(c,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&t(oe,{diagram:e.line.diagram})})})}export{ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,s as t}from"./use-nav-exemptions-
|
|
1
|
+
import{c as e,s as t}from"./use-nav-exemptions-BVau2uMd.js";var n={default:`text-accent-text underline`,subtle:`hover:underline`,"strong-subtle":`font-bold text-fg-strong hover:underline`};function r(r){let i=n[r.style??`default`],a=t(i,`inline`,r.class),o=r.colorOverride==null?void 0:{color:`light-dark(${r.colorOverride.lightModeHexCode}, ${r.colorOverride.darkModeHexCode})`};return r.onClick==null?r.href==null?e(`span`,{class:a,style:o,children:r.children}):e(`a`,{class:a,style:o,href:r.href,children:r.children}):e(`span`,{class:a,style:o,onClick:r.onClick,children:r.children})}export{r as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as e,c as t,g as n,i as r,r as i,s as a}from"./use-nav-exemptions-
|
|
1
|
+
import{S as e,c as t,g as n,i as r,r as i,s as a}from"./use-nav-exemptions-BVau2uMd.js";import{t as o}from"./LinkText-Z0HboJZn.js";import{t as s}from"./Strong-DviAEPO-.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(n,r){let i=[],a=n;for(;a.length>0;){let n=p(a);if(n==null){i.push(a);break}n.index>0&&i.push(a.slice(0,n.index));let o=f(n.innerContent,r);i.push(n.wrap(t(e,{children:o}),r)),a=a.slice(n.index+n.fullMatch.length)}return i}function p(e){let t=[m(e),h(e),g(e,u),g(e,d)],n=null;for(let e of t)e!=null&&(n==null||e.index<n.index)&&(n=e);return n}function m(e){let t=e.match(c);if(t==null||t.index==null||t[1]==null||t[2]==null)return null;let n=t[2];return!n.startsWith(`https://`)&&!n.startsWith(`/`)?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.link(e,n)}}function h(e){let t=e.match(l);return t==null||t.index==null||t[1]==null?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.bold(e)}}function g(e,t){let n=e.match(t);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,t)=>t.italic(e)}}function _(e){return t(`em`,{class:a(e.class),children:e.children})}var v={bold:e=>t(s,{children:e}),italic:e=>t(_,{children:e}),link:(e,n)=>t(o,{href:n,children:e})},y={h1:{render:(e,n)=>t(r,{as:`h1`,style:`title`,children:e},n),marginTop:`mt-12`},h2:{render:(e,n)=>t(r,{as:`h2`,style:`subtitle`,children:e},n),marginTop:`mt-12`},h3:{render:(e,n)=>t(r,{as:`h3`,style:`strong`,children:e},n),marginTop:`mt-12`},p:{render:(e,n)=>t(r,{as:`p`,children:e},n),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(r){let i=r.style??v,a=n(()=>f(r.markdown,i),[r.markdown,i]);return t(e,{children:a})}function x(e){return e.split(`
|
|
2
2
|
`).map(e=>e.replace(/[\r\t]/g,``).trim()).filter(e=>e.length>0).map(e=>{let t=e.match(/^### (.+)$/);if(t!=null&&t[1]!=null)return{kind:`h3`,content:t[1]};let n=e.match(/^## (.+)$/);if(n!=null&&n[1]!=null)return{kind:`h2`,content:n[1]};let r=e.match(/^# (.+)$/);return r!=null&&r[1]!=null?{kind:`h1`,content:r[1]}:{kind:`p`,content:e}})}function S(e){let r=e.style??y,o=n(()=>x(e.markdown).map((e,n)=>{let i=r[e.kind],a=n===0?``:i.marginTop;return t(`div`,{class:a,children:i.render(t(b,{style:r,markdown:e.content}),n)},n)}),[e.markdown,r]);return t(i,{class:a(e.class),children:o})}export{b as n,S as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{t as r}from"./Page-CE6Z4Bpi.js";function i(){return e(r,{mobileHeader:null,desktopHeader:null,children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Idk`})})})}export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./use-nav-exemptions-BVau2uMd.js";import{t}from"./NotFoundPage-BoolK0ik.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,m as r,r as i}from"./use-nav-exemptions-
|
|
1
|
+
import{_ as e,c as t,i as n,m as r,r as i}from"./use-nav-exemptions-BVau2uMd.js";import{i as a,r as o,s,t as c}from"./use-query-DHdSzQ5j.js";import{n as l}from"./use-foundational-data-zcQwBHIX.js";import{_ as u,a as d,d as f,g as p,s as m,t as h,v as g}from"./index-CVEoHKKb.js";import{t as _}from"./Page-CE6Z4Bpi.js";function v({afterConfirming:v}){let{isHotReloadingEnabled:y}=h(),{frontendVersion:b}=g(),{unregister:x}=d(),{foda:S,updateFoda:C}=l(),{callApi:w}=o(),{data:T,loading:E,error:D}=c(a,{}),[O,k]=e(!1),A=v===`frontend-version`&&!y&&!E&&D==null&&T!=null&&T.frontendVersion!==b,j=v===`foundational-data-version`&&!E&&D==null&&T!=null&&T.foundationalDataHash!==S.hash;return r(()=>{if(!A)return;async function e(){await x(),window.location.reload()}e()},[A,x]),r(()=>{if(!j)return;async function e(){k(!0);try{let e=await w(s,{hash:S.hash});e.result===`outdated`&&C(new u(e.foundationalData))}catch{}finally{k(!1)}}e()},[j,w,S.hash,C]),E||A||O?t(_,{mobileHeader:null,desktopHeader:null,children:t(i,{xAlign:`center`,yAlign:`center`,children:t(p,{})})}):t(_,{mobileHeader:null,desktopHeader:null,children:t(i,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[t(n,{style:`title`,align:`center`,children:`Page not found`}),t(n,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),t(f,{href:`/`,text:`Go home`,icon:m})]})})}export{v as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,c as t,m as n,n as r,o as i,r as a,s as o,t as s}from"./use-nav-exemptions-BVau2uMd.js";function c(e){return t(i,{class:o(e.class,`not-desktop:hidden`),children:e.children})}var l=32;function u(r){let[a,s]=e(!0);return n(()=>{function e(){s(window.scrollY<l)}return document.addEventListener(`scroll`,e),e(),()=>{document.removeEventListener(`scroll`,e)}},[]),t(i,{class:o(r.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden transition-opacity duration-200`,{"invisible opacity-0":r.hideWhenScrolledToTop&&a}),children:r.children})}function d(e){let{showMobileNav:n}=s(),l=e.centered??!0,d=e.hideMobileHeaderWhenScrolledToTop??!1;return t(a,{class:o(`bg-bg min-h-svh relative`,{"pt-14":e.mobileHeader!=null&&!d,"not-desktop:pb-18":n,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},`desktop:pt-12`),children:[e.desktopHeader!=null&&t(c,{children:e.desktopHeader}),e.mobileHeader!=null&&t(u,{class:`h-14 z-1`,hideWhenScrolledToTop:d,children:e.mobileHeader}),e.agnosticHeader!=null&&e.agnosticHeader,t(i,{class:`z-0`,children:l?t(r,{children:e.children}):e.children})]})}export{d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,s as n}from"./use-nav-exemptions-
|
|
1
|
+
import{c as e,i as t,s as n}from"./use-nav-exemptions-BVau2uMd.js";import{m as r,p as i}from"./index-CVEoHKKb.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=n(a),l=n(o),u=n(s);function d(t){return e(i,{class:n(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((n,r)=>e(f,{class:`shrink`,label:n.label,active:n.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(n.value)},n.value))})}function f(a){return e(r,{class:n(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[e(`div`,{class:n(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),e(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:e(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,s as t}from"./use-nav-exemptions-
|
|
1
|
+
import{c as e,s as t}from"./use-nav-exemptions-BVau2uMd.js";function n(n){return e(`div`,{class:t(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return e(n,{...r,class:t(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,c as t,i as n,p as r,r as i}from"./use-nav-exemptions-
|
|
1
|
+
import{S as e,c as t,i as n,p as r,r as i}from"./use-nav-exemptions-BVau2uMd.js";import{o as a,t as o}from"./use-query-DHdSzQ5j.js";import{n as s}from"./use-foundational-data-zcQwBHIX.js";import{t as c}from"./integers-BYp6YHG5.js";import{d as l,g as u,s as d}from"./index-CVEoHKKb.js";import{t as f}from"./Strong-DviAEPO-.js";import{t as p}from"./Page-CE6Z4Bpi.js";import{t as m}from"./use-simple-headers-D6PQjBB3.js";function h(){let{params:{sourceId:e,intrasourceId:i},query:{from:s}}=r(),{data:l,loading:d,error:f}=o(a,{sourceId:e??``,intrasourceId:i??``}),p=c(s??``);return d?t(u,{}):f!=null||l==null||p==null||p<0||l.service!=null&&p>l.service.movements.length-1?t(n,{children:`Failed to load service.`}):l.service==null?t(_,{}):t(g,{service:l.service,movementIndex:p},`${e}/${i}`)}function g(r){let{foda:a}=s();return t(p,{...m({title:`${r.service.primaryDestinationText} service`}),children:t(i,{class:`px-4 py-8 gap-8`,children:t(i,{class:`gap-6`,children:r.service.movements.map((r,i)=>{let o=r.arrivalTime==null?null:new Date(Date.parse(r.arrivalTime)).toLocaleString(),s=r.departureTime==null?null:new Date(Date.parse(r.departureTime)).toLocaleString();if(o==null&&s==null)return t(n,{style:`small`,children:[`Skips `,a.stops.require(r.stopId).name]},i);let c=s??o,l=r.formerArrivalTime==null?null:new Date(Date.parse(r.formerArrivalTime)).toLocaleString(),u=r.formerDepartureTime==null?null:new Date(Date.parse(r.formerDepartureTime)).toLocaleString(),d=s==null?o==null?null:l:u,p=d==null?``:t(e,{children:[t(`span`,{class:`line-through text-fg-weak`,children:d}),` `]});return t(n,{children:[t(f,{children:a.stops.require(r.stopId).name}),` • `,p,c]},i)})})})})}function _(){return t(p,{mobileHeader:null,desktopHeader:null,children:t(i,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[t(n,{style:`title`,align:`center`,children:`Service not found`}),t(n,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),t(l,{href:`/`,text:`Go home`,icon:d})]})})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{l as r,u as i}from"./index-CVEoHKKb.js";import{t as a}from"./Page-CE6Z4Bpi.js";import{t as o}from"./use-simple-headers-D6PQjBB3.js";import{t as s}from"./Divider-D0u5ZQZn.js";import{t as c}from"./Picker-CHvnHGY8.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=r.map(e=>({value:e,label:l[e]}));function d(t){let{settings:n,updateSettings:r}=i();return e(c,{class:t.class,value:n.theme,options:u,onChange:e=>{r(t=>t.with({theme:e}))}})}function f(){return e(a,{...o({title:`Settings`}),children:e(n,{class:`px-4 py-8 gap-8`,children:[e(n,{class:`gap-6`,children:[e(t,{style:`strong`,children:`Theme`}),e(t,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),e(d,{class:`self-start`})]}),e(s,{}),e(t,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,s as n}from"./use-nav-exemptions-BVau2uMd.js";import{d as r,p as i}from"./index-CVEoHKKb.js";function a(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return e(i,{class:n(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&e(r,{href:o.backHref,icon:a,theme:`hover`}),e(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{t as r}from"./Page-CE6Z4Bpi.js";import{t as i}from"./use-simple-headers-D6PQjBB3.js";function a(){return e(r,{...i({title:`Status`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`LGTM`})})})}export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,g as t,i as n,n as r,o as i,p as a,r as o,s}from"./use-nav-exemptions-BVau2uMd.js";import{t as c,u as l}from"./use-query-DHdSzQ5j.js";import{n as u}from"./use-foundational-data-zcQwBHIX.js";import{d,f,g as p,r as m}from"./index-CVEoHKKb.js";import{t as h}from"./Strong-DviAEPO-.js";import{t as g}from"./Page-CE6Z4Bpi.js";import{n as _,t as v}from"./SimpleMobileHeaderContent-mA6Motds.js";import{t as y}from"./NotFoundPage-BoolK0ik.js";function b(t){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:e(v,{title:t.title,backHref:t.back?.href??null}),agnosticHeader:e(i,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:e(r,{children:e(i,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:e(o,{class:s(`gap-8`,{"pt-4 pb-6 desktop:pt-6":t.back!=null,"py-6 desktop:pt-8":t.back==null,"desktop:pb-4":t.additionalContent==null}),children:[t.back!=null&&e(d,{text:t.back.text,href:t.back.href,icon:_,class:`self-start`,layout:`narrow-icon`}),e(o,{class:`gap-4`,children:[e(n,{style:`megatitle`,children:t.title}),t.additionalContent]})]})})})})}}function x(){let{params:{id:n}}=a(),{foda:r}=u(),i=t(()=>r.stops.getByUrlPath(n??``),[r.stops,n]);return i==null?e(y,{afterConfirming:`foundational-data-version`}):e(S,{stop:i},i.id)}function S(t){let{data:r,loading:i,error:a}=c(l,{stopId:t.stop.id,count:10});return e(g,{...b({title:t.stop.name,back:{href:`/`,text:`Home`},additionalContent:e(m,{lineIds:t.stop.canonicalLinesServingStop,withLinks:!0})}),children:e(o,{class:`px-4 py-8 gap-8`,children:[i&&e(p,{}),!i&&(a!=null||r==null)&&e(n,{children:`Error loading departures.`}),!i&&r!=null&&r.departures.length===0&&e(n,{children:`No departures found.`}),!i&&r!=null&&r.departures.length>0&&e(o,{class:`gap-4`,children:r.departures.map(t=>e(C,{departure:t},`${t.sourceId}/${t.intrasourceId}`))})]})})}function C({departure:t}){let r=t.secondaryDestinationText==null?``:` ${t.secondaryDestinationText}`,i=t.isCancelled?` (Cancelled)`:``,a=`/service/${encodeURIComponent(t.sourceId)}/${encodeURIComponent(t.intrasourceId)}?from=${encodeURIComponent(t.movement.index.toString())}`;return e(f,{href:a,class:`p-4`,children:e(o,{class:`gap-4`,children:[e(o,{class:`gap-3`,children:[e(n,{children:[e(h,{children:t.primaryDestinationText}),r,i]}),e(n,{children:new Date(Date.parse(t.movement.time)).toLocaleString()}),t.movement.formerTime!=null&&e(n,{style:`weak-struckout`,children:new Date(Date.parse(t.movement.formerTime)).toLocaleString()})]}),e(n,{style:`small-weak`,children:[`Source: `,t.sourceId,` • ID:`,` `,t.intrasourceId]})]})})}export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,s as t}from"./use-nav-exemptions-BVau2uMd.js";function n(n){return e(`strong`,{class:t(n.class,`text-fg-strong`),children:n.children})}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-BVau2uMd.js";import{t as r}from"./Strong-DviAEPO-.js";import{t as i}from"./Page-CE6Z4Bpi.js";import{t as a}from"./use-simple-headers-D6PQjBB3.js";function o(){return e(i,{...a({title:`Zen mode`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:[e(r,{children:`✨`}),` Zen! `,e(r,{children:`✨`})]})})})}export{o as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-BjgaGj8I.js","assets/use-nav-exemptions-BVau2uMd.js","assets/use-query-DHdSzQ5j.js","assets/use-foundational-data-zcQwBHIX.js","assets/Placeholder-B8iCvFNV.js","assets/Markdown-BAkMkc9t.js","assets/LinkText-Z0HboJZn.js","assets/Strong-DviAEPO-.js","assets/Page-CE6Z4Bpi.js","assets/use-simple-headers-D6PQjBB3.js","assets/SimpleMobileHeaderContent-mA6Motds.js","assets/Divider-D0u5ZQZn.js","assets/Alert-DNsGljjU.js","assets/AdminControls-C-tiL7FK.js","assets/Debug-DzOqpe2a.js","assets/Home-oh0OwBNV.js","assets/Nearby-ClJ1usaG.js","assets/Service-BgzHz-B5.js","assets/integers-BYp6YHG5.js","assets/Settings-dGkAThRO.js","assets/Picker-CHvnHGY8.js","assets/Status-DmRnFnWV.js","assets/ZenMode-BVDNMDa6.js","assets/Stop-9J6m32wx.js","assets/NotFoundPage-BoolK0ik.js","assets/Line-yMikhkZV.js","assets/scope-B-e4l8Dr.js","assets/NotFound-DCZ-vmQJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,r as h,s as g,t as _,u as v,v as y,w as b,x,y as S}from"./use-nav-exemptions-BVau2uMd.js";import{a as ee,c as te,f as ne,m as re,n as ie,p as ae,r as oe,s as C,t as se}from"./use-query-DHdSzQ5j.js";import{n as w,t as ce}from"./use-foundational-data-zcQwBHIX.js";import{n as T,t as E}from"./scope-B-e4l8Dr.js";import{t as le}from"./LinkText-Z0HboJZn.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)}})();var ue=b.__b;b.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),ue&&ue(e)};function D(t){let r,i,a=()=>t().then(e=>i=e&&e.default||e),o=t=>{let[,o]=n(0),s=l(i);if(r||=a(),i!==void 0)return e(i,t);throw s.current||=r.then(()=>o(1)),r};return o.preload=()=>(r||=a(),r),o._forwarded=!0,o}var de=b.__e;b.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}de&&de(e,t,n)};function fe(e){return this.__c=pe,this.componentDidCatch=e.onError,e.children}function pe(e){e.then(()=>this.forceUpdate())}var me=`modulepreload`,he=function(e){return`/`+e},ge={},_e=function(e){return e.pathname.endsWith(`.css`)},ve=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=he(t,n);let r=s(t),i=_e(r);return ve(ge,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:me,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k=x(null);function A(){let e=S(k);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function ye(e){let{Provider:t}=k,n=c(()=>be(document),[]);return a(t,{value:n,children:e.children})}function be(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}var j=class{_array;_map;constructor(e){this._array=e,this._map=new Map(e.map(e=>[this._getID(e),e]))}all(){return this._array}get(e){return this._map.get(e)??null}require(e){let t=this.get(e);if(t==null)throw this._getRequireFailError(e);return t}has(e){return this._map.has(e)}map(e){return this._array.map(e)}filter(e){return this._array.filter(e)}first(e){return this._array.find(e)??null}requireFirst(e){let t=this.first(e);if(t==null)throw this._getPredicateFailError();return t}},xe=class extends j{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},Se=class extends j{_getID(e){return e.id}_getRequireFailError(e){return Error(`No line with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching line.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},M=class e{_raw;stops;lines;constructor(e){this._raw=e,this.stops=new xe(e.stops),this.lines=new Se(e.lines)}get hash(){return this._raw.metadata.hash}get serverVersion(){return this._raw.metadata.serverVersion}get footerPrimaryMarkdown(){return this._raw.footer.primaryMarkdown}get terminology(){return this._raw.terminology}get landingPage(){return this._raw.landingPage}static json=te.transform(t=>new e(t));toJson(){return this._raw}};function N(e,t){let n=y(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),r=y(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return c(()=>({get:n,set:r}),[n,r])}var Ce={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function P(e){return a(`svg`,{className:g(`_loading-spinner`,Ce[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[a(`title`,{children:`Loading spinner`}),a(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function F(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function I(e){let t=g(`grid not-disabled:cursor-pointer select-none`,e.class);return e.onClick==null&&e.href!=null&&!(e.disabled??!1)?a(`a`,{class:t,href:e.href,onClick:e.onHrefClick,children:e.children}):a(`button`,{class:t,onClick:e.onClick,disabled:e.disabled,children:e.children})}var we={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Te={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function L(e){let t=e.as??`div`,n=we[e.xAlign??`left`],r=Te[e.yAlign??`stretch`];return a(t,{class:g(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function R(e){return a(m,{class:g(`relative`,e.class),children:[a(m,{class:g({invisible:e.loading}),children:e.children}),e.loading&&a(L,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:a(P,{})})]})}var Ee=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-accent)]`,`not-disabled:[--color-fg-strong:var(--color-on-accent)]`,`not-disabled:[--color-fg-weak:var(--color-on-accent)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),De=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-accent`,`group-not-disabled:group-hover:bg-accent-hover`,`group-not-disabled:group-active:bg-accent-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function z(e){let t=e.rounded??!0;return a(I,{class:g(e.class,Ee),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:g(De,{"rounded-sm":t})}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Oe(e){return a(L,{class:g(e.class,`gap-2 h-8`,{"px-4":e.text!=null,"min-w-8":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&a(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&a(u,{children:e.text})]})}var ke=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ae=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-soft`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function je(e){return a(I,{class:g(e.class,ke),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ae}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Me=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ne=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-soft-border`,`group-disabled:border-soft-border-disabled`]);function B(e){return a(I,{class:g(e.class,Me),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ne}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Pe=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Fe=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function V(e){return a(I,{class:g(e.class,Pe),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Fe}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ie=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Le=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function H(e){return a(I,{class:g(e.class,Ie),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Le}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function U(e){let t=e.outerPadding??!1;return a(L,{class:g(e.class,`gap-2 min-w-0 py-2`,{"px-4":e.text!=null,"min-w-8":e.text==null,"min-h-10":!t,"min-h-12":t}),yAlign:`center`,children:[e.icon!=null&&a(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&a(u,{class:`shrink min-w-0`,children:e.text})]})}var Re=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-error)]`,`not-disabled:[--color-fg-strong:var(--color-on-error)]`,`not-disabled:[--color-fg-weak:var(--color-on-error)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),ze=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-error`,`group-not-disabled:group-hover:bg-error-hover`,`group-not-disabled:group-active:bg-error-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Be(e){return a(I,{class:g(e.class,Re),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:ze}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ve=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-warning)]`,`not-disabled:[--color-fg-strong:var(--color-on-warning)]`,`not-disabled:[--color-fg-weak:var(--color-on-warning)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),He=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-warning`,`group-not-disabled:group-hover:bg-warning-hover`,`group-not-disabled:group-active:bg-warning-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ue(e){return a(I,{class:g(e.class,Ve),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:He}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var We=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-success)]`,`not-disabled:[--color-fg-strong:var(--color-on-success)]`,`not-disabled:[--color-fg-weak:var(--color-on-success)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ge=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-success`,`group-not-disabled:group-hover:bg-success-hover`,`group-not-disabled:group-active:bg-success-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ke(e){return a(I,{class:g(e.class,We),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ge}),a(R,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function qe(e){return a(L,{class:g(e.class,`gap-2 h-8 pl-2 pr-3`),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&a(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&a(u,{children:e.text})]})}var Je={default:je,accent:z,outlined:B,hover:V,"hover-square":H,error:Be,warning:Ue,success:Ke},Ye={simple:Oe,"menu-item":U,"narrow-icon":qe};function W(e){let t=Je[e.theme??`default`],n=Ye[e.layout??`simple`];return a(t,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:a(n,{icon:e.icon,text:e.text})})}function Xe(e){let{appName:t}=A();return a(m,{class:`w-svw h-svh items-center justify-center`,children:a(h,{class:`gap-12`,xAlign:`center`,children:[a(h,{class:`gap-6`,xAlign:`center`,children:[a(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),a(u,{style:`title`,children:t})]}),e.error?a(h,{class:`gap-4`,xAlign:`center`,children:[a(u,{children:`Failed to load data :(`}),a(W,{text:`Retry`,icon:F,onClick:e.onRetry})]}):a(P,{style:`large`})]})})}var G=x(null);function K(){let e=S(G);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var Ze=`corequery-foundational-data`,Qe=2e3;function $e(e){let{Provider:t}=ce,{revalidateSettings:r}=K(),{callApi:i}=oe(),o=N(Ze,M.json),[s]=n(()=>o.get()),[l,u]=n(null),[d,p]=n(!1),m=y(e=>{u(e),r(e),o.set(e.toJson())},[o,r]),h=y(()=>{p(!1),et({callApi:i,cachedData:s,onDataReady:(e,t)=>{m(e),t&&o.set(e.toJson())},onFailure:()=>{p(!0)}})},[o,s,i,m]);f(()=>{h()},[h]);let g=c(()=>l==null?null:{foda:l,updateFoda:m},[l,m]);return g==null?a(Xe,{error:d,onRetry:h}):a(t,{value:g,children:e.children})}async function et({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(C,{hash:t.hash},{timeout:Qe});r.result===`up-to-date`?n(t,!1):n(new M(r.foundationalData),!0)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(t,!1)}else try{let t=await e(C,{hash:null});if(t.result===`up-to-date`)throw Error(`Huh?`);n(new M(t.foundationalData),!0)}catch{r()}}var q=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=re({version:ae(1),theme:ne([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return ie(this.toJson(),e.toJson())}},tt=[`auto`,`light`,`dark`];function nt(){window.applyTheme?.()}function rt(e){let{Provider:t}=G,r=N(`corequery-settings`,q.json),[i,o]=n(()=>r.get()??(console.warn(`Failed to load settings, using defaults.`),q.default)),s=y((e,t)=>{o(n=>{let i=e(n);return(t?.persist??!0)&&r.set(i.toJson()),i}),nt()},[r]),l=y(e=>{s(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[s]),u=c(()=>({settings:i,updateSettings:s,revalidateSettings:l}),[i,s,l]);return a(t,{value:u,children:e.children})}function it(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function J(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function at(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function Y(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M10.8 2.65a2 2 0 0 1 2.4 0l7 5.25a2 2 0 0 1 .8 1.6V19a2 2 0 0 1-2 2h-4.9a1.1 1.1 0 0 1-1.1-1.1V14a1 1 0 1 0-2 0v5.9A1.1 1.1 0 0 1 9.9 21H5a2 2 0 0 1-2-2V9.5a2 2 0 0 1 .8-1.6zm1.2 1.6L5 9.5V19h4v-5a3 3 0 1 1 6 0v5h4V9.5z`})]})})}function ot(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function st(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function ct(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function lt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function ut(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function dt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function ft(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}function pt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function mt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function ht(){return[{name:`Home`,href:`/`,regularIcon:Y,activeIcon:at,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:J,activeIcon:it,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:st,activeIcon:ot,isActive:e=>e===`/nearby`},{name:`Search`,icon:lt,opensSearchDrawer:!0},{name:`More`,icon:ct,opensMoreDrawer:!0}]}function gt(){let{appName:e}=A();return[{name:`About ${e}`,href:`/about`,icon:ft},{name:`Settings`,href:`/settings`,icon:dt},{name:`Developer info`,href:`/debug`,icon:ut},{name:`Admin controls`,href:`/admin`,icon:pt},{name:`Zen mode`,href:`/zen`,icon:mt}]}var _t=x(null);function X(){let e=S(_t);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function vt(e){let{isUpdateAvailable:t,update:r}=X(),[i,o]=n(!1);return f(()=>{e.menuFullyClosed&&o(t)},[t,e.menuFullyClosed]),i?a(z,{rounded:!1,onClick:()=>void r(),children:a(p,{children:a(U,{icon:F,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Z(e,t){let[r,i]=n(!1);return f(()=>{if(!e){i(!1);return}let n=setTimeout(()=>{i(!0)},t);return()=>{clearTimeout(n)}},[e,t]),r}function yt(e){let t=gt(),n=Z(!e.open,300);return a(`div`,{class:g(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[a(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),a(h,{class:`relative z-1 desktop:flex-col-reverse`,children:[a(p,{children:a(h,{class:`py-2`,children:t.map(t=>a(W,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),a(vt,{menuFullyClosed:n})]})]})}function bt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function xt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}var St={stop:e=>e,station:e=>`${e} Station`},Ct={line:e=>`${e} Line`,route:e=>`Route ${e}`},wt={stop:`stops`,station:`stations`},Tt={line:`lines`,route:`routes`};function Et(){let{foda:e}=w();return c(()=>({formatStop:St[e.terminology.stop],formatLine:Ct[e.terminology.line],pluralStopsTerm:wt[e.terminology.stop],pluralLinesTerm:Tt[e.terminology.line]}),[e.terminology])}function Dt(e){let t=e.withLinks??!1;return a(u,{class:g(e.class),style:e.style,children:a(Ot,{lineIds:e.lineIds,withLinks:t})})}function Ot({lineIds:e,withLinks:n}){let{foda:r}=w();if(e.length===0)return{line:`No lines`,route:`No routes`}[r.terminology.line];let i=a(kt,{lineIds:e,withLinks:n});return{line:a(t,{children:[i,` `,e.length===1?`Line`:`lines`]}),route:a(t,{children:[e.length===1?`Route`:`Routes`,` `,i]})}[r.terminology.line]}function kt({lineIds:e,withLinks:n}){let{foda:r}=w(),i=c(()=>e.map(e=>At(e,r)).sort((e,t)=>e.name.localeCompare(t.name)),[e,r]);return i.length===1?a(Q,{data:E(i[0]),withLink:n}):i.length===2?a(t,{children:[a(Q,{data:E(i[0]),withLink:n}),` and`,` `,a(Q,{data:E(i[1]),withLink:n})]}):a(t,{children:[i.slice(0,-1).map((e,r)=>a(t,{children:[a(Q,{data:E(e),withLink:n},r),`,`,` `]})),` and `,a(Q,{data:E(i[i.length-1]),withLink:n})]})}function Q({data:e,withLink:n}){return n?a(le,{href:e.href,style:`strong-subtle`,colorOverride:e.color,children:e.name}):a(t,{children:e.name})}function At(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function jt(){let{foda:e}=w(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=Et();return{candidates:c(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:a(Dt,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:bt}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:xt}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:c(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var Mt={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function Nt(e){let t=Mt[e.style??`regular`],n={class:g(e.class,t),value:e.value,onInput:t=>{t.target!=null&&`value`in t.target&&typeof t.target.value==`string`&&e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`};return a(Pt,{onSubmit:e.onSubmit,children:e.search??!1?a(`input`,{type:`search`,...n}):a(`input`,{type:`text`,...n})})}function Pt(e){return e.onSubmit==null?e.children:a(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Ft=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function It(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Lt(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Rt(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function zt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(T).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Bt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(T).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Vt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Ft(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(It,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Lt),i.appendResults(Rt),i.appendResults(zt),i.appendResults(Bt),i.getResults()}function Ht(e){return a(`div`,{class:g(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Ut(e){return a(H,{href:e.href,onHrefClick:e.onHrefClick,class:g(e.class),children:a(L,{class:g(e.class,`gap-3 desktop:gap-2 min-w-0 py-3 px-4 min-h-10`),yAlign:`center`,children:[a(Ht,{heightRem:r(`text-md`),children:a(e.icon,{class:`text-fg text-icon-lg`})}),a(h,{class:`gap-3 shrink`,children:[a(u,{style:`strong`,children:e.title}),e.description]})]})})}function Wt(e){let[t,r]=n(``),{candidates:i,placeholder:o}=jt(),{route:d}=s(),_=c(()=>Vt(t,i,{maxResults:5}),[t,i]),v=Z(!e.open,300);f(()=>{v&&r(``)},[v]);let y=l(null),b=Z(e.open,100);f(()=>{b&&y.current?.focus()},[b]);function x(){_.length>0&&(d(E(_[0]).url),e.onClose())}return a(`div`,{class:g(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[a(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),a(p,{class:`relative z-1`,children:a(h,{children:[a(m,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[a(Nt,{style:`search`,value:t,onChange:r,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:o,inputRef:y,onSubmit:x,search:!0}),a(lt,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),a(h,{class:`max-h-[calc(100vh-12rem)] py-3 overflow-y-scroll`,children:[_.length===0&&a(m,{class:`h-32 items-center`,children:a(u,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),_.map(t=>a(Ut,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function Gt(e){let t=e.active??!1;return a(I,{class:g(e.class,`group`),onClick:e.onClick,href:e.href,children:a(h,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[a(m,{class:g(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&a(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?a(e.activeIcon,{class:`text-accent-text text-icon-xl`}):a(e.regularIcon,{class:`text-fg text-icon-xl`})]}),a(u,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Kt(e){let{url:t}=s(),n=ht(),{isUpdateAvailable:r}=X();return a(m,{class:g(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>a(Gt,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function qt(e){let t=e.active??!1;return a(m,{class:g(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:a(V,{class:e.class,onClick:e.onClick,href:e.href,children:a(L,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[a(m,{class:`relative`,children:[(e.showBadge??!1)&&a(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?a(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):a(e.regularIcon,{class:`text-fg text-icon-lg`})]}),a(m,{class:`relative`,children:[a(u,{class:g(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),a(u,{class:g({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function Jt(e){return a(`img`,{class:g(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function Yt(e){let{appName:t}=A(),{url:n}=s(),r=ht(),{isUpdateAvailable:i}=X();return a(p,{class:g(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:a(L,{class:`gap-2`,children:[a(V,{class:`self-center`,href:`/`,children:a(L,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[a(Jt,{class:`text-icon-md`}),a(u,{style:`wordmark`,children:t})]})}),a(L,{children:r.map(t=>a(qt,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function Xt(e){let{showMobileNav:t,showDesktopNav:r}=_(),{url:i}=s(),[o,c]=n(!1),[l,u]=n(!1);function d(){u(!1),c(e=>!e)}function p(){c(!1),u(e=>!e)}function h(){c(!1),u(!1)}return f(()=>{c(!1),u(!1)},[i]),a(m,{class:g(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!o&&!l}),children:[a(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&a(Kt,{onOpenMoreDrawerRequest:d,onOpenSearchDrawerRequest:p})}),a(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:r&&a(Yt,{onOpenMoreDrawerRequest:d,onOpenSearchDrawerRequest:p})}),a(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[a(`div`,{class:g(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:a(yt,{open:o,onClose:h})}),a(`div`,{class:g(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!l}),children:a(Wt,{open:l,onClose:h})}),a(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:h})]})]})}function Zt(e){return a(`div`,{class:e.class,children:[a(`div`,{class:`relative z-0`,children:e.children}),a(`div`,{class:`relative z-1`,children:a(Xt,{})})]})}var Qt=`false`,$t=`false`,en=Qt===`true`,tn=$t===`true`;function nn(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,en||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await O(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!tn){if(en)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function rn(e){let{Provider:t}=_t,[r,i]=n(!1),[o,s]=n(!1),l=c(()=>nn({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>i(!0),onOfflineReady:()=>s(!0)}),[]),u=y(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),d=c(()=>({isUpdateAvailable:r,isOfflineReady:o,update:l,unregister:u}),[r,o,l,u]);return a(t,{value:d,children:e.children})}function $(){return{isHotReloadingEnabled:c(()=>!1,[])}}function an(e){let{isHotReloadingEnabled:t}=$(),{frontendVersion:n,versionsOnLastUpdate:r}=A(),{unregister:i}=X(),{data:a,loading:o,error:s}=se(ee,{frontendVersion:n,corequeryPackageVersion:r.corequeryPackageVersion}),c=!t&&!o&&s==null&&a!=null&&a.isForceUpdateOfServiceWorkerRequired;return f(()=>{async function e(){c&&(await i(),window.location.reload())}e()},[c,i]),e.children}var on=D(()=>O(()=>import(`./About-BjgaGj8I.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),sn=D(()=>O(()=>import(`./AdminControls-C-tiL7FK.js`),__vite__mapDeps([13,1,8,9,10]))),cn=D(()=>O(()=>import(`./Debug-DzOqpe2a.js`),__vite__mapDeps([14,1,2,3,4,8,9,10,11,12]))),ln=D(()=>O(()=>import(`./Home-oh0OwBNV.js`),__vite__mapDeps([15,1,3,5,6,7,8,9,10]))),un=D(()=>O(()=>import(`./Nearby-ClJ1usaG.js`),__vite__mapDeps([16,1,8]))),dn=D(()=>O(()=>import(`./Service-BgzHz-B5.js`),__vite__mapDeps([17,1,2,3,18,7,8,9,10]))),fn=D(()=>O(()=>import(`./Settings-dGkAThRO.js`),__vite__mapDeps([19,1,8,9,10,11,20]))),pn=D(()=>O(()=>import(`./Status-DmRnFnWV.js`),__vite__mapDeps([21,1,8,9,10]))),mn=D(()=>O(()=>import(`./ZenMode-BVDNMDa6.js`),__vite__mapDeps([22,1,7,8,9,10]))),hn=D(()=>O(()=>import(`./Stop-9J6m32wx.js`),__vite__mapDeps([23,1,2,3,7,8,10,24]))),gn=D(()=>O(()=>import(`./Line-yMikhkZV.js`),__vite__mapDeps([25,1,2,3,26,18,6,8,9,10,12,24,20]))),_n=D(()=>O(()=>import(`./NotFound-DCZ-vmQJ.js`),__vite__mapDeps([27,1,24,2,3,8])));function vn(){return a(rn,{children:a(ye,{children:a(an,{children:a(rt,{children:a($e,{children:a(d,{children:a(Zt,{children:a(fe,{children:a(o,{children:[a(v,{path:`/`,component:ln}),a(v,{path:`/about`,component:on}),a(v,{path:`/admin`,component:sn}),a(v,{path:`/debug`,component:cn}),a(v,{path:`/line/:id`,component:gn}),a(v,{path:`/nearby`,component:un}),a(v,{path:`/service/:sourceId/:intrasourceId`,component:dn}),a(v,{path:`/settings`,component:fn}),a(v,{path:`/status`,component:pn}),a(v,{path:`/stop/:id`,component:hn}),a(v,{path:`/zen`,component:mn}),a(v,{default:!0,component:_n})]})})})})})})})})})}i(a(vn,{}),document.body);export{M as _,X as a,J as c,W as d,B as f,P as g,F as h,Et as i,tt as l,I as m,Ht as n,ft as o,L as p,Dt as r,Y as s,$ as t,K as u,A as v};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-2xl:1.75rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#001b5233;--color-soft-border-disabled:#001e5a1f;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.-mt-\[0\.38em\]{margin-top:-.38em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.-mb-\[0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl)}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.not-desktop\:border-soft-border{border-color:var(--color-soft-border)}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:mx-4{margin-inline:calc(var(--spacing) * 4)}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:gap-2{gap:calc(var(--spacing) * 2)}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:border-soft-border{border-color:var(--color-soft-border)}.desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.desktop\:pt-8{padding-top:calc(var(--spacing) * 8)}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
package/web/dist/assets/{use-foundational-data-CyGObFfu.js → use-foundational-data-zcQwBHIX.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as e,y as t}from"./use-nav-exemptions-
|
|
1
|
+
import{x as e,y as t}from"./use-nav-exemptions-BVau2uMd.js";var n=e(null);function r(){let e=t(n);if(e==null)throw Error(`Foundational data unavailable outside provider.`);return e}export{r as n,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t,n,r,i,a,o,s,c,l,u,d={},f=[],p=/^m(i|n|o|s|text|space)$/,m=Array.isArray,h=f.slice,g=Object.assign;function _(e){e&&e.parentNode&&e.remove()}function v(e,t,n){var r,i,a,o={},s=arguments.length;for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return s>2&&(o.children=s>3?h.call(arguments,2):n),b(e,o,r,i,null)}function y(e,t,n){var r,i,a,o=g({},e.props),s=arguments.length;for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e.type!=`function`?i=t[a]:o[a]=t[a];return s>2&&(o.children=s>3?h.call(arguments,2):n),b(e.type,o,r===void 0?e.key:r,i===void 0?e.ref:i,null)}function b(n,r,i,a,o){var s={type:n,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o||++t,__i:-1,__u:0};return!o&&e.vnode&&e.vnode(s),s}function x(e){return e.children}function S(e,t){this.props=e,this.context=t,this.__g=0}function C(e,t){if(t==null)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])&&n.__e)return n.__e;return typeof e.type!=`function`||e.props.__P?null:C(e)}function w(e){if((e=e.__)&&e.__c&&!e.props.__P)return e.__e=null,e.__k.some(function(t){return t&&(e.__e=t.__e)}),w(e)}function T(t){(8&t.__g||!(t.__g|=8)||!n.push(t)||i++)&&r==e.debounceRendering||((r=e.debounceRendering)||queueMicrotask)(E)}function E(){var t,r,o,s,c,l,u,d,f;try{for(r=1;n.length;)n.length>r&&n.sort(a),t=n.shift(),r=n.length,8&t.__g&&(s=void 0,c=void 0,l=(c=(o=t).__v).__e,u=[],d=[],(f=o.__P)&&((s=g({constructor:void 0},c)).__v=c.__v+1,e.vnode&&e.vnode(s),P(f,s,c,o.__n,f.namespaceURI,32&c.__u?[l]:null,u,l||C(c),32&c.__u,d),s.__v=c.__v,s.__.__k[s.__i]=s,F(u,s,d),c.__=c.__e=null,s.__e!=l&&w(s)))}finally{n.length=i=0}}function ee(e,t,n,r,i,a,o,s,c,l,u){var p,m,h,g,_,v,y=r.__k||f,b=t.length;for(c=D(n,t,y,c,b),p=0;p<b;p++)(h=n.__k[p])!=null&&(m=~h.__i&&y[h.__i]||d,h.__i=p,v=P(e,h,m,i,a,o,s,c,l,u),g=h.__e,(m.ref!=h.ref||8&m.__u)&&(m.ref&&I(m.ref,null,h,m),h.ref&&u.push(h.ref,h.__c||g,h)),_||=g,4&h.__u?(c=O(h,c,e,!m.__v),m.__e&&(m.__e=null)):typeof h.type==`function`&&v!==void 0?c=v:g&&(c=g.nextSibling),h.__u&=-7);return n.__e=_,c}function D(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,h,g=n.length,_=g,v=0,y=!1,S=e.__k=Array(i);for(a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o!=`object`||o.constructor==String?o=S[a]=b(null,o):m(o)?o=S[a]=b(x,{children:o}):o.constructor===void 0&&o.__b?o=S[a]=b(o.type,o.props,o.key,o.ref,o.__v):S[a]=o,c=a+v,o.__=e,o.__b=e.__b+1,s=null,~(l=o.__i=A(o,n,c,_))&&(_--,(s=n[l])&&(s.__u|=2)),s&&s.__v?(o.__u|=2,l==c-1?v--:l==c+1?v++:l!=c&&(l>c?v--:v++,y=!0)):(~l||(i>g?v--:i<g&&v++),typeof o.type!=`function`&&(o.__u|=4))):S[a]=null;if(y){for(u=[],d=[],a=0;a<i;a++)if((o=S[a])&&2&o.__u){for(f=0,p=u.length;f<p;)u[h=f+p>>1]<o.__i?f=h+1:p=h;u[f]=o.__i,d[a]=f+1}for(v=u.length;a--;)d[a]&&(d[a]==v?v--:S[a].__u|=4)}if(_)for(a=0;a<g;a++)!(s=n[a])||2&s.__u||(s.__e==r&&(r=C(s)),re(s,s));return r}function O(e,t,n,r){var i,a,o;if(typeof e.type==`function`){if(e.props.__P)return t;if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&(i[a].__=e,t=O(i[a],t,n,!1));return t}for(t&&!t.parentNode&&(t=C(e))&&!t.parentNode&&(t=null),o=t;o&&o.nodeType==8;)o=o.nextSibling;for(e.__e!=o&&(!r&&n.moveBefore&&e.__e.parentNode?n.moveBefore(e.__e,t):n.insertBefore(e.__e,t||null)),t=e.__e;(t&&=t.nextSibling)&&t.nodeType==8;);return t}function k(e,t){return t||=[],e!=null&&typeof e!=`boolean`&&(m(e)?e.some(function(e){k(e,t)}):t.push(e)),t}function A(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function j(e,t,n){n??=``,t[0]==`-`?e.setProperty(t,n):e[t]=n}function M(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||j(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||j(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)(e.__e||={})[t]=n,n&&r||(o=l[t]||(l[t]=N(t)),(e.__a||={})[t]=c,a=t!=(t=t.replace(s,`$1`)),(t=t.slice(2))[0]<`a`&&(t=t.toLowerCase()),n?e.addEventListener(t,o,a):e.removeEventListener(t,o,a));else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function N(t){return function(n){if(this.__e){var r=this.__e[t];if(n[o]==null)n[o]=c++;else if(n[o]<this.__a[t])return;return r(e.event?e.event(n):n)}}}function P(t,n,r,i,a,o,s,c,l,u){var d,p,h,v,y,b,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R=n.type;if(n.constructor!==void 0)return null;if(128&r.__u&&(l=32&r.__u,d=r.__c.__z)){if(n.__u|=l,p=o=[],d.nodeType==8)for(h=1,v=d.nextSibling;v;v=v.nextSibling){if(v.nodeType==8){if(v.data.startsWith(`$s`))h++;else if(v.data.startsWith(`/$s`)&&!--h)break}o.push(v)}else o.push(d);c=o[0]}(d=e.__b)&&d(n);n:if(typeof R==`function`){y=s.length;try{if(D=n.props,O=(d=R.prototype)&&d.render,k=(d=R.contextType)&&i[d.__c],A=d?k?k.props.value:d.__:i,r.__c?2&(b=n.__c=r.__c).__g&&(b.__g|=1):(O?n.__c=b=new R(D,A):(n.__c=b=new S(D,A),b.constructor=R,b.render=ie),k&&k.sub(b),b.state||(b.state={}),b.__n=i,b.__g|=8,b.__h=[],b.__k=[]),O&&(b.__s||(b.__s=b.state),R.getDerivedStateFromProps&&(b.__s==b.state&&(b.__s=g({},b.__s)),g(b.__s,R.getDerivedStateFromProps(D,b.__s)))),w=b.props,T=b.state,b.__v=n,r.__c){if(O&&!R.getDerivedStateFromProps&&D!==w&&b.componentWillReceiveProps&&b.componentWillReceiveProps(D,A),n.__v==r.__v&&!(8&b.__g)||!(4&b.__g)&&b.shouldComponentUpdate&&!1===b.shouldComponentUpdate(D,b.__s,A)){n.__v!=r.__v&&(b.props=D,b.state=b.__s,b.__g&=-9),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),f.push.apply(b.__h,b.__k),b.__k=[],b.__h.length&&s.push(b),c=C(r);break n}b.componentWillUpdate&&b.componentWillUpdate(D,b.__s,A),O&&b.componentDidUpdate&&b.__h.push(function(){b.componentDidUpdate(w,T,E)})}else O&&!R.getDerivedStateFromProps&&b.componentWillMount&&b.componentWillMount(),O&&b.componentDidMount&&b.__h.push(b.componentDidMount);if(b.context=A,b.props=D,b.__P=t,b.__g&=-5,j=e.__r,M=0,O)b.state=b.__s,b.__g&=-9,j&&j(n),d=b.render(b.props,b.state,b.context),f.push.apply(b.__h,b.__k),b.__k=[];else do b.__g&=-9,j&&j(n),d=b.render(b.props,b.state,b.context),b.state=b.__s;while(8&b.__g&&++M<25);b.state=b.__s,b.getChildContext&&(i=g({},i,b.getChildContext())),O&&r.__c&&b.getSnapshotBeforeUpdate&&(E=b.getSnapshotBeforeUpdate(w,T)),N=d&&d.type===x&&d.key==null?d.props.children:d,D.__P&&(d=c,a=(t=D.__P).namespaceURI,l=o=null,r.props&&r.props.__P!=t&&(r.__k.some(function(e){e&&re(e,e)}),r.__k=null),c=r.__k?C(r,0):null),c=ee(t,m(N)?N:[N],n,r,i,a,o,s,c,l,u),D.__P&&(n.__e=null,c=d),n.__u&=-161,128&r.__u&&(b.__z=null),p&&p.some(_),b.__h.length&&s.push(b),1&b.__g&&(b.__g&=-4)}catch(t){if(s.length=y,n.__v=null,l||o){if(t.then){if(P=0,n.__u|=l?160:128,o){for(~(I=o.indexOf(c||void 0))||(I=o.length);(L=o[I-1])&&L.nodeType==8;)I--;for(;I<o.length;I++)if(L=o[I]){if(o[I]=null,L.nodeType==8){if(L.data.startsWith(`$s`))P++||(F=L);else if(P&&L.data.startsWith(`/$s`)&&!--P){c=L;break}}else if(!P)break}}if(!F){for(;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;F=c}n.__c.__z||(n.__c.__z=F),n.__e=c}else o&&o.some(_)}else n.__e=r.__e;n.__k||=r.__k||[],t.then||te(n),e.__e(t,n,r)}}else c=n.__e=ne(r.__e,n,r,i,a,o,s,l,u,t);return(d=e.diffed)&&d(n),128&n.__u?void 0:c}function te(e){e&&(e.__c&&(e.__c.__g|=4),e.__k&&e.__k.some(te))}function F(t,n,r){for(var i=0;i<r.length;)I(r[i++],r[i++],r[i++]);e.__c&&e.__c(n,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(e){e.call(n)})}catch(t){e.__e(t,n.__v)}})}function ne(t,n,r,i,a,o,s,c,l,u){var f,g,v,y,b,x,S,w,T,E=r.props||d,D=n.props,O=n.type;if(O==`svg`?a=`http://www.w3.org/2000/svg`:O==`math`?a=`http://www.w3.org/1998/Math/MathML`:a||=`http://www.w3.org/1999/xhtml`,o){for(f=0;f<o.length;f++)if((b=o[f])&&(O?b.localName==O:b.nodeType==3)){t=b,o[f]=null;break}}if(!t){if(w=u.ownerDocument||document,!O)return w.createTextNode(D);t=w.createElementNS(a,O,D.is&&D),c&&=(e.__m&&e.__m(n,o),!1),o=null}if(O){if(u=O==`template`?t.content:t,o=O==`textarea`&&D.defaultValue!=null?null:o&&h.call(u.childNodes),!c&&o)for(E={},f=0;f<t.attributes.length;f++)E[(b=t.attributes[f]).name]=b.value;for(f in E)b=E[f],f==`dangerouslySetInnerHTML`?v=b:f==`children`||f in D||f==`value`&&`defaultValue`in D||f==`checked`&&`defaultChecked`in D||M(t,f,null,b,a);for(f in T=1&r.__u,D)b=D[f],f==`children`?y=b:f==`dangerouslySetInnerHTML`?g=b:f==`value`?x=b:f==`checked`?S=b:c&&typeof b!=`function`||!(E[f]!==b||T&&b!=null)||M(t,f,b,E[f],a);g?(c||v&&(g.__html==v.__html||g.__html==t.innerHTML)||(t.innerHTML=g.__html),n.__k=[]):(v&&(t.textContent=``),(O==`foreignObject`||a==`http://www.w3.org/1998/Math/MathML`&&p.test(O))&&(a=`http://www.w3.org/1999/xhtml`),ee(u,m(y)?y:[y],n,r,i,a,o,s,o?o[0]:r.__k&&C(r,0),c,l),o&&o.some(_)),c&&O!=`textarea`||(f=`value`,O==`progress`&&x==null?t.removeAttribute(f):x==null||x===t[f]&&(O!=`progress`||x)||M(t,f,x,E[f],a),f=`checked`,S!=null&&S!=t[f]&&M(t,f,S,E[f],a))}else E===D||c&&t.data==D||(t.data=D);return t}function I(t,n,r,i){try{typeof t==`function`?n?n.__x=t(n)||1:(i&&=i.__c||i.__e)&&(n=i.__x)&&(i.__x=null,typeof n==`function`?n():t(null)):t.current=n}catch(t){e.__e(t,r)}}function re(t,n,r){var i,a;if(e.unmount&&e.unmount(t),!(i=t.ref)||i.current&&i.current!=t.__e||I(i,null,n,t),i=t.__c){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){e.__e(t,n)}i.__P=i.__n=null}if(i=t.__k)for(a=0;a<i.length;a++)i[a]&&re(i[a],n,typeof t.type!=`function`||r&&!t.props.__P);(i=t.__e)&&(r||_(i),i.__e&&(i.__e=null)),t.__e=t.__c=t.__=null}function ie(e,t,n){return this.constructor(e,n)}function L(t,n){var r,i,a,o;e.__&&e.__(t,n),n.nodeType==9&&(n=n.documentElement),i=(r=t&&32&t.__u)?null:n.__k,n.__k=b(x,{children:[t]}),a=[],o=[],P(n,n.__k,i||d,d,n.namespaceURI,i?null:n.firstChild?h.call(n.childNodes):null,a,i?i.__e:n.firstChild,r,o),F(a,n.__k,o),n.__k.props.children=null}function R(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__g|=4,T(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+u++,t.__=e,t.Provider=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e={__e:function(e,t,n,r){for(var a,o,s;t=t.__;)if((a=t.__c)&&!(1&a.__g)){a.__g|=4;try{if((o=a.constructor)&&o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),s=8&a.__g),a.componentDidCatch&&(a.componentDidCatch(e,r||{}),s=8&a.__g),s)return void(a.__g|=2)}catch(t){e=t,s=0}}throw i=0,e}},t=0,S.prototype.setState=function(e,t){var n=this.__s;n&&n!=this.state||(n=this.__s=g({},this.state)),typeof e==`function`&&(e=e(g({},n),this.props)),e&&(g(n,e),this.__v&&(t&&this.__k.push(t),T(this)))},S.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),T(this))},S.prototype.render=x,n=[],i=0,a=function(e,t){return e.__v.__b-t.__v.__b},o=Symbol(),s=/(PointerCapture)$|Capture$/i,c=0,l={},u=0;var z,B,ae,oe,se=Object.is,V=0,ce=[],le=[],H=e,ue=H.__b,de=H.__r,fe=H.diffed,pe=H.__c,me=H.unmount,he=H.__;function U(e,t){H.__h&&H.__h(B,e,V||t),V=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ge(e){return V=1,_e(De,e)}function _e(e,t,n){var r=U(z++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):De(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);se(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.__f)){B.__f=!0;var i=B.shouldComponentUpdate;B.shouldComponentUpdate=function(e,t,n){var r=this.__H;if(!r)return!0;var a=!1,o=this.props!=e;if(r.__.some(function(e){e.__N&&(a=!0,se(e.__[0],e.__N[0])||(o=!0))}),i){var s=i.call(this,e,t,n);return a?s||o:s}return!a||o}}return r.__}function ve(e,t){var n=U(z++,3);!H.__s&&Ee(n.__H,t)&&(n.__P=!0,n.__=e,n.u=t,B.__H.__h.push(n))}function ye(e,t){var n=U(z++,4);!H.__s&&Ee(n.__H,t)&&(n.__P=!1,n.__=e,n.u=t,B.__h.push(n))}function W(e){return V=5,G(function(){return{current:e}},[])}function G(e,t){var n=U(z++,7);return Ee(n.__H,t)&&(n.__=e(),n.__H=t),n.__}function be(e,t){return V=8,G(function(){return e},t)}function K(e){var t=B.context[e.__c],n=U(z++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(B)),t.props.value):e.__}function xe(){var e;do{for(;e=le.shift();)try{q(e)}catch(t){H.__e(t,{__:(e=e.__P)&&e.__v})}for(;e=ce.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(q),t.__h.some(Te),t.__h=[]}catch(n){t.__h=[],H.__e(n,e.__v)}}}while(le.length)}H.__b=function(e){B=null,ue&&ue(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),he&&he(e,t)},H.__r=function(e){de&&de(e),z=0;var t=(B=e.__c).__H;t&&(ae==B?B.__h=[]:(t.__h.some(q),t.__h.some(Te),z=0),t.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})),ae=B},H.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&we(ce.push(t)),t.__H.__.some(function(e){e.u&&(e.__H=e.u)})),ae=B=null},H.__c=function(e,t){t.some(function(e){try{e.__h.some(q),e.__h=e.__h.filter(function(e){return!e.__||Te(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],H.__e(n,e.__v)}}),pe&&pe(e,t)},H.unmount=function(e){me&&me(e);var t,n,r=e.__c;r&&r.__H&&(r.__H.__.some(function(r){try{if(r.__P&&r.__c){if(n===void 0){for(n=e.__;n&&(!n.__c||!n.__c.__P);)n=n.__;n&&=n.__c}r.__P=n,we(le.push(r))}else q(r)}catch(e){t=e}}),r.__H=void 0,t&&H.__e(t,r.__v))};var Se=typeof requestAnimationFrame==`function`;function Ce(e){var t,n=function(){clearTimeout(r),Se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Se&&(t=requestAnimationFrame(n))}function we(e){e!=1&&oe==H.requestAnimationFrame||((oe=H.requestAnimationFrame)||Ce)(xe)}function q(e){var t=B,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),B=t}function Te(e){var t=B;e.__c=e.__(),B=t}function Ee(e,t){return!e||e.length!=t.length||t.some(function(t,n){return!se(t,e[n])})}function De(e,t){return typeof t==`function`?t(e):t}var J,Y;function Oe(e){return!Y||(typeof Y==`string`?e.startsWith(Y):Y.test(e))}function ke(e,t){let n=``;if(J=void 0,t&&t.type===`click`){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0)return e;let r=t.composedPath().find(e=>e.nodeName==`A`&&e.href),i=r&&r.getAttribute(`href`);if(!r||r.origin!=location.origin||/^#/.test(i)||!/^(_?self)?$/i.test(r.target)||!Oe(i)||r.download)return e;J=!0,t.preventDefault(),n=r.href.replace(location.origin,``)}else t&&t.url?(J=!t.replace,n=t.url):n=location.pathname+location.search;return J===!0?history.pushState(null,``,n):J===!1&&history.replaceState(null,``,n),n}var Ae=(e,t,n={})=>{e=e.split(`/`).filter(Boolean),t=(t||``).split(`/`).filter(Boolean),n.params||={};for(let r=0,i,a;r<Math.max(e.length,t.length);r++){let[,o,s,c]=(t[r]||``).match(/^(:?)(.*?)([+*?]?)$/);if(i=e[r],o||s!=i){if(!o&&i&&c==`*`){n.rest=`/`+e.slice(r).join(`/`);break}if(!o||!i&&c!=`?`&&c!=`*`)return;if(a=c==`+`||c==`*`,a?i=e.slice(r).map(decodeURIComponent).join(`/`)||void 0:i&&=decodeURIComponent(i),n.params[s]=i,s in n||(n[s]=i),a)break}}return n};function X(e){let[t,n]=_e(ke,e.url||location.pathname+location.search);e.scope&&(Y=e.scope);let r=J===!0,i=G(()=>{let e=new URL(t,location.origin),i=e.pathname.replace(/\/+$/g,``)||`/`;return{url:t,path:i,query:Object.fromEntries(e.searchParams),route:(e,t)=>n({url:e,replace:t}),back:()=>{history.back()},forward:()=>{history.forward()},wasPush:r}},[t]);return ye(()=>(addEventListener(`click`,n),addEventListener(`popstate`,n),()=>{removeEventListener(`click`,n),removeEventListener(`popstate`,n)}),[]),v(X.ctx.Provider,{value:i},e.children)}var je=Promise.resolve();function Me(e){let[t,n]=_e(e=>e+1,0),{url:r,query:i,wasPush:a,path:o}=Le();if(!r)throw Error(`preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider`);let{rest:s=o,params:c={}}=K(Fe),l=W(!1),u=W(o),d=W(1),f=W(),p=W(),m=W(),h=W(!1),g=W();g.current=!1;let _,b,x;k(e.children).some(e=>{if(Ae(s,e.props.path,x={...e.props,path:s,query:i,params:Object.assign({},c),rest:``}))return _=y(e,x);e.props.default&&(b=y(e,x))});let S=_||b,C=f.current&&f.current.__u&Z&&f.current.__u&Ne,w=f.current&&f.current.__h,T=G(()=>{p.current=f.current,f.current=v(Fe.Provider,{value:x},S);let e=p.current&&p.current.props.children;return!e||!S||S.type!==e.type||S.props.component!==e.props.component?(d.current++,!0):!1},[r,JSON.stringify(x)]);C?(f.current.__u|=Z,f.current.__u|=Ne):w&&(f.current.__h=!0);let E=p.current;return p.current=null,this.__c=(t,i)=>{g.current=!0,p.current=E,e.onLoadStart&&e.onLoadStart(r),l.current=!0;let a=d.current;t.then(()=>{a===d.current&&(p.current=null,f.current&&(i.__h&&(f.current.__h=i.__h),i.__u&Ne&&(f.current.__u|=Ne),i.__u&Z&&(f.current.__u|=Z)),je.then(n))})},ye(()=>{let t=this.__v&&this.__v.__e;g.current?!h.current&&!m.current&&(m.current=t):(!h.current&&m.current&&(m.current!==t&&m.current.remove(),m.current=null),h.current=!0,u.current!==o&&(a&&scrollTo(0,0),e.onRouteChange&&e.onRouteChange(r),u.current=o),e.onLoadEnd&&l.current&&e.onLoadEnd(r),l.current=!1)},[o,a,t]),T?[v(Pe,{r:f,key:d.current}),v(Pe,{r:p,key:d.current-1})]:v(Pe,{r:f,key:d.current})}var Z=32,Ne=128,Pe=({r:e})=>e.current;Me.Provider=X,X.ctx=R({});var Fe=R({}),Ie=e=>v(e.component,e),Le=()=>K(X.ctx),Re=()=>K(Fe),ze=0;Array.isArray;function Q(t,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l&&typeof t!=`function`)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ze,__i:-1,__u:0};return(a||o)&&(u.__source=a,u.__self=o),e.vnode&&e.vnode(u),u}function Be(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Be(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function $(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Be(e))&&(r&&(r+=` `),r+=t);return r}function Ve(e){return Q(e.as??`div`,{class:$(`grid`,e.class),children:e.children})}function He(e){return Q(`span`,{class:`block -mt-[0.38em] -mb-[0.38em]`,children:e.children})}var Ue={"text-sm":.75,"text-md":.9,"text-mdlg":1,"text-lg":1.1,"text-xl":1.25};function We(e){let t=typeof e==`number`?e:Ue[e];return t*1.5-.76*t}var Ge={small:`text-sm text-fg`,"small-weak":`text-sm text-fg-weak`,"small-strong-accent":`text-sm text-accent-text font-bold`,regular:`text-md text-fg`,weak:`text-md text-fg-weak`,strong:`text-md font-bold text-fg-strong`,"strong-accent":`text-md font-bold text-accent-text`,wordmark:`text-mdlg font-bold text-fg-strong`,subtitle:`text-lg font-bold text-fg-strong`,title:`text-xl font-bold text-fg-strong`,"weak-struckout":`text-md text-fg-weak line-through`},Ke={left:`text-left`,center:`text-center`,right:`text-right`,justify:`text-justify`};function qe(e){let t=e.as??`span`,n=Ke[e.align??`left`],r=Ge[e.style??`regular`],i=e.oneLine??!1?Q(`span`,{class:`whitespace-nowrap overflow-hidden block text-ellipsis`,children:e.children}):e.children;return Q(t,{class:$(e.class,r,n),children:Q(He,{children:i})})}var Je={left:`items-start`,center:`items-center`,right:`items-end`,stretch:`items-stretch`},Ye={top:`justify-start`,center:`justify-center`,bottom:`justify-end`,"space-between":`justify-between`};function Xe(e){let t=e.as??`div`,n=Je[e.xAlign??`stretch`],r=Ye[e.yAlign??`top`];return Q(t,{class:$(`flex flex-col`,r,n,{"flex-wrap":e.wrap},e.class),children:e.children})}function Ze(e){return Q(Ve,{class:$(e.class,`grid-cols-[0px_1fr_0px] widescreen:grid-cols-[1fr_64rem_1fr]`),children:Q(Ve,{class:`col-start-2`,children:e.children})})}function Qe(){let{url:e}=Le();return G(()=>({showMobileNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`,showDesktopNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`}),[e])}export{v as C,x as S,ge as _,We as a,L as b,Q as c,Me as d,Le as f,G as g,W as h,qe as i,X as l,ve as m,Ze as n,Ve as o,Re as p,Xe as r,$ as s,Qe as t,Ie as u,be as v,e as w,R as x,K as y};
|
|
1
|
+
var e,t,n,r,i,a,o,s,c,l,u,d={},f=[],p=/^m(i|n|o|s|text|space)$/,m=Array.isArray,h=f.slice,g=Object.assign;function _(e){e&&e.parentNode&&e.remove()}function v(e,t,n){var r,i,a,o={},s=arguments.length;for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return s>2&&(o.children=s>3?h.call(arguments,2):n),b(e,o,r,i,null)}function y(e,t,n){var r,i,a,o=g({},e.props),s=arguments.length;for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e.type!=`function`?i=t[a]:o[a]=t[a];return s>2&&(o.children=s>3?h.call(arguments,2):n),b(e.type,o,r===void 0?e.key:r,i===void 0?e.ref:i,null)}function b(n,r,i,a,o){var s={type:n,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o||++t,__i:-1,__u:0};return!o&&e.vnode&&e.vnode(s),s}function x(e){return e.children}function S(e,t){this.props=e,this.context=t,this.__g=0}function C(e,t){if(t==null)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])&&n.__e)return n.__e;return typeof e.type!=`function`||e.props.__P?null:C(e)}function w(e){if((e=e.__)&&e.__c&&!e.props.__P)return e.__e=null,e.__k.some(function(t){return t&&(e.__e=t.__e)}),w(e)}function T(t){(8&t.__g||!(t.__g|=8)||!n.push(t)||i++)&&r==e.debounceRendering||((r=e.debounceRendering)||queueMicrotask)(E)}function E(){var t,r,o,s,c,l,u,d,f;try{for(r=1;n.length;)n.length>r&&n.sort(a),t=n.shift(),r=n.length,8&t.__g&&(s=void 0,c=void 0,l=(c=(o=t).__v).__e,u=[],d=[],(f=o.__P)&&((s=g({constructor:void 0},c)).__v=c.__v+1,e.vnode&&e.vnode(s),P(f,s,c,o.__n,f.namespaceURI,32&c.__u?[l]:null,u,l||C(c),32&c.__u,d),s.__v=c.__v,s.__.__k[s.__i]=s,F(u,s,d),c.__=c.__e=null,s.__e!=l&&w(s)))}finally{n.length=i=0}}function ee(e,t,n,r,i,a,o,s,c,l,u){var p,m,h,g,_,v,y=r.__k||f,b=t.length;for(c=D(n,t,y,c,b),p=0;p<b;p++)(h=n.__k[p])!=null&&(m=~h.__i&&y[h.__i]||d,h.__i=p,v=P(e,h,m,i,a,o,s,c,l,u),g=h.__e,(m.ref!=h.ref||8&m.__u)&&(m.ref&&I(m.ref,null,h,m),h.ref&&u.push(h.ref,h.__c||g,h)),_||=g,4&h.__u?(c=O(h,c,e,!m.__v),m.__e&&(m.__e=null)):typeof h.type==`function`&&v!==void 0?c=v:g&&(c=g.nextSibling),h.__u&=-7);return n.__e=_,c}function D(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,h,g=n.length,_=g,v=0,y=!1,S=e.__k=Array(i);for(a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o!=`object`||o.constructor==String?o=S[a]=b(null,o):m(o)?o=S[a]=b(x,{children:o}):o.constructor===void 0&&o.__b?o=S[a]=b(o.type,o.props,o.key,o.ref,o.__v):S[a]=o,c=a+v,o.__=e,o.__b=e.__b+1,s=null,~(l=o.__i=A(o,n,c,_))&&(_--,(s=n[l])&&(s.__u|=2)),s&&s.__v?(o.__u|=2,l==c-1?v--:l==c+1?v++:l!=c&&(l>c?v--:v++,y=!0)):(~l||(i>g?v--:i<g&&v++),typeof o.type!=`function`&&(o.__u|=4))):S[a]=null;if(y){for(u=[],d=[],a=0;a<i;a++)if((o=S[a])&&2&o.__u){for(f=0,p=u.length;f<p;)u[h=f+p>>1]<o.__i?f=h+1:p=h;u[f]=o.__i,d[a]=f+1}for(v=u.length;a--;)d[a]&&(d[a]==v?v--:S[a].__u|=4)}if(_)for(a=0;a<g;a++)!(s=n[a])||2&s.__u||(s.__e==r&&(r=C(s)),re(s,s));return r}function O(e,t,n,r){var i,a,o;if(typeof e.type==`function`){if(e.props.__P)return t;if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&(i[a].__=e,t=O(i[a],t,n,!1));return t}for(t&&!t.parentNode&&(t=C(e))&&!t.parentNode&&(t=null),o=t;o&&o.nodeType==8;)o=o.nextSibling;for(e.__e!=o&&(!r&&n.moveBefore&&e.__e.parentNode?n.moveBefore(e.__e,t):n.insertBefore(e.__e,t||null)),t=e.__e;(t&&=t.nextSibling)&&t.nodeType==8;);return t}function k(e,t){return t||=[],e!=null&&typeof e!=`boolean`&&(m(e)?e.some(function(e){k(e,t)}):t.push(e)),t}function A(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function j(e,t,n){n??=``,t[0]==`-`?e.setProperty(t,n):e[t]=n}function M(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||j(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||j(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)(e.__e||={})[t]=n,n&&r||(o=l[t]||(l[t]=N(t)),(e.__a||={})[t]=c,a=t!=(t=t.replace(s,`$1`)),(t=t.slice(2))[0]<`a`&&(t=t.toLowerCase()),n?e.addEventListener(t,o,a):e.removeEventListener(t,o,a));else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function N(t){return function(n){if(this.__e){var r=this.__e[t];if(n[o]==null)n[o]=c++;else if(n[o]<this.__a[t])return;return r(e.event?e.event(n):n)}}}function P(t,n,r,i,a,o,s,c,l,u){var d,p,h,v,y,b,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R=n.type;if(n.constructor!==void 0)return null;if(128&r.__u&&(l=32&r.__u,d=r.__c.__z)){if(n.__u|=l,p=o=[],d.nodeType==8)for(h=1,v=d.nextSibling;v;v=v.nextSibling){if(v.nodeType==8){if(v.data.startsWith(`$s`))h++;else if(v.data.startsWith(`/$s`)&&!--h)break}o.push(v)}else o.push(d);c=o[0]}(d=e.__b)&&d(n);n:if(typeof R==`function`){y=s.length;try{if(D=n.props,O=(d=R.prototype)&&d.render,k=(d=R.contextType)&&i[d.__c],A=d?k?k.props.value:d.__:i,r.__c?2&(b=n.__c=r.__c).__g&&(b.__g|=1):(O?n.__c=b=new R(D,A):(n.__c=b=new S(D,A),b.constructor=R,b.render=ie),k&&k.sub(b),b.state||(b.state={}),b.__n=i,b.__g|=8,b.__h=[],b.__k=[]),O&&(b.__s||(b.__s=b.state),R.getDerivedStateFromProps&&(b.__s==b.state&&(b.__s=g({},b.__s)),g(b.__s,R.getDerivedStateFromProps(D,b.__s)))),w=b.props,T=b.state,b.__v=n,r.__c){if(O&&!R.getDerivedStateFromProps&&D!==w&&b.componentWillReceiveProps&&b.componentWillReceiveProps(D,A),n.__v==r.__v&&!(8&b.__g)||!(4&b.__g)&&b.shouldComponentUpdate&&!1===b.shouldComponentUpdate(D,b.__s,A)){n.__v!=r.__v&&(b.props=D,b.state=b.__s,b.__g&=-9),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),f.push.apply(b.__h,b.__k),b.__k=[],b.__h.length&&s.push(b),c=C(r);break n}b.componentWillUpdate&&b.componentWillUpdate(D,b.__s,A),O&&b.componentDidUpdate&&b.__h.push(function(){b.componentDidUpdate(w,T,E)})}else O&&!R.getDerivedStateFromProps&&b.componentWillMount&&b.componentWillMount(),O&&b.componentDidMount&&b.__h.push(b.componentDidMount);if(b.context=A,b.props=D,b.__P=t,b.__g&=-5,j=e.__r,M=0,O)b.state=b.__s,b.__g&=-9,j&&j(n),d=b.render(b.props,b.state,b.context),f.push.apply(b.__h,b.__k),b.__k=[];else do b.__g&=-9,j&&j(n),d=b.render(b.props,b.state,b.context),b.state=b.__s;while(8&b.__g&&++M<25);b.state=b.__s,b.getChildContext&&(i=g({},i,b.getChildContext())),O&&r.__c&&b.getSnapshotBeforeUpdate&&(E=b.getSnapshotBeforeUpdate(w,T)),N=d&&d.type===x&&d.key==null?d.props.children:d,D.__P&&(d=c,a=(t=D.__P).namespaceURI,l=o=null,r.props&&r.props.__P!=t&&(r.__k.some(function(e){e&&re(e,e)}),r.__k=null),c=r.__k?C(r,0):null),c=ee(t,m(N)?N:[N],n,r,i,a,o,s,c,l,u),D.__P&&(n.__e=null,c=d),n.__u&=-161,128&r.__u&&(b.__z=null),p&&p.some(_),b.__h.length&&s.push(b),1&b.__g&&(b.__g&=-4)}catch(t){if(s.length=y,n.__v=null,l||o){if(t.then){if(P=0,n.__u|=l?160:128,o){for(~(I=o.indexOf(c||void 0))||(I=o.length);(L=o[I-1])&&L.nodeType==8;)I--;for(;I<o.length;I++)if(L=o[I]){if(o[I]=null,L.nodeType==8){if(L.data.startsWith(`$s`))P++||(F=L);else if(P&&L.data.startsWith(`/$s`)&&!--P){c=L;break}}else if(!P)break}}if(!F){for(;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;F=c}n.__c.__z||(n.__c.__z=F),n.__e=c}else o&&o.some(_)}else n.__e=r.__e;n.__k||=r.__k||[],t.then||te(n),e.__e(t,n,r)}}else c=n.__e=ne(r.__e,n,r,i,a,o,s,l,u,t);return(d=e.diffed)&&d(n),128&n.__u?void 0:c}function te(e){e&&(e.__c&&(e.__c.__g|=4),e.__k&&e.__k.some(te))}function F(t,n,r){for(var i=0;i<r.length;)I(r[i++],r[i++],r[i++]);e.__c&&e.__c(n,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(e){e.call(n)})}catch(t){e.__e(t,n.__v)}})}function ne(t,n,r,i,a,o,s,c,l,u){var f,g,v,y,b,x,S,w,T,E=r.props||d,D=n.props,O=n.type;if(O==`svg`?a=`http://www.w3.org/2000/svg`:O==`math`?a=`http://www.w3.org/1998/Math/MathML`:a||=`http://www.w3.org/1999/xhtml`,o){for(f=0;f<o.length;f++)if((b=o[f])&&(O?b.localName==O:b.nodeType==3)){t=b,o[f]=null;break}}if(!t){if(w=u.ownerDocument||document,!O)return w.createTextNode(D);t=w.createElementNS(a,O,D.is&&D),c&&=(e.__m&&e.__m(n,o),!1),o=null}if(O){if(u=O==`template`?t.content:t,o=O==`textarea`&&D.defaultValue!=null?null:o&&h.call(u.childNodes),!c&&o)for(E={},f=0;f<t.attributes.length;f++)E[(b=t.attributes[f]).name]=b.value;for(f in E)b=E[f],f==`dangerouslySetInnerHTML`?v=b:f==`children`||f in D||f==`value`&&`defaultValue`in D||f==`checked`&&`defaultChecked`in D||M(t,f,null,b,a);for(f in T=1&r.__u,D)b=D[f],f==`children`?y=b:f==`dangerouslySetInnerHTML`?g=b:f==`value`?x=b:f==`checked`?S=b:c&&typeof b!=`function`||!(E[f]!==b||T&&b!=null)||M(t,f,b,E[f],a);g?(c||v&&(g.__html==v.__html||g.__html==t.innerHTML)||(t.innerHTML=g.__html),n.__k=[]):(v&&(t.textContent=``),(O==`foreignObject`||a==`http://www.w3.org/1998/Math/MathML`&&p.test(O))&&(a=`http://www.w3.org/1999/xhtml`),ee(u,m(y)?y:[y],n,r,i,a,o,s,o?o[0]:r.__k&&C(r,0),c,l),o&&o.some(_)),c&&O!=`textarea`||(f=`value`,O==`progress`&&x==null?t.removeAttribute(f):x==null||x===t[f]&&(O!=`progress`||x)||M(t,f,x,E[f],a),f=`checked`,S!=null&&S!=t[f]&&M(t,f,S,E[f],a))}else E===D||c&&t.data==D||(t.data=D);return t}function I(t,n,r,i){try{typeof t==`function`?n?n.__x=t(n)||1:(i&&=i.__c||i.__e)&&(n=i.__x)&&(i.__x=null,typeof n==`function`?n():t(null)):t.current=n}catch(t){e.__e(t,r)}}function re(t,n,r){var i,a;if(e.unmount&&e.unmount(t),!(i=t.ref)||i.current&&i.current!=t.__e||I(i,null,n,t),i=t.__c){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){e.__e(t,n)}i.__P=i.__n=null}if(i=t.__k)for(a=0;a<i.length;a++)i[a]&&re(i[a],n,typeof t.type!=`function`||r&&!t.props.__P);(i=t.__e)&&(r||_(i),i.__e&&(i.__e=null)),t.__e=t.__c=t.__=null}function ie(e,t,n){return this.constructor(e,n)}function L(t,n){var r,i,a,o;e.__&&e.__(t,n),n.nodeType==9&&(n=n.documentElement),i=(r=t&&32&t.__u)?null:n.__k,n.__k=b(x,{children:[t]}),a=[],o=[],P(n,n.__k,i||d,d,n.namespaceURI,i?null:n.firstChild?h.call(n.childNodes):null,a,i?i.__e:n.firstChild,r,o),F(a,n.__k,o),n.__k.props.children=null}function R(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__g|=4,T(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+u++,t.__=e,t.Provider=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e={__e:function(e,t,n,r){for(var a,o,s;t=t.__;)if((a=t.__c)&&!(1&a.__g)){a.__g|=4;try{if((o=a.constructor)&&o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),s=8&a.__g),a.componentDidCatch&&(a.componentDidCatch(e,r||{}),s=8&a.__g),s)return void(a.__g|=2)}catch(t){e=t,s=0}}throw i=0,e}},t=0,S.prototype.setState=function(e,t){var n=this.__s;n&&n!=this.state||(n=this.__s=g({},this.state)),typeof e==`function`&&(e=e(g({},n),this.props)),e&&(g(n,e),this.__v&&(t&&this.__k.push(t),T(this)))},S.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),T(this))},S.prototype.render=x,n=[],i=0,a=function(e,t){return e.__v.__b-t.__v.__b},o=Symbol(),s=/(PointerCapture)$|Capture$/i,c=0,l={},u=0;var z,B,ae,oe,se=Object.is,V=0,ce=[],le=[],H=e,ue=H.__b,de=H.__r,fe=H.diffed,pe=H.__c,me=H.unmount,he=H.__;function U(e,t){H.__h&&H.__h(B,e,V||t),V=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ge(e){return V=1,_e(De,e)}function _e(e,t,n){var r=U(z++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):De(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);se(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.__f)){B.__f=!0;var i=B.shouldComponentUpdate;B.shouldComponentUpdate=function(e,t,n){var r=this.__H;if(!r)return!0;var a=!1,o=this.props!=e;if(r.__.some(function(e){e.__N&&(a=!0,se(e.__[0],e.__N[0])||(o=!0))}),i){var s=i.call(this,e,t,n);return a?s||o:s}return!a||o}}return r.__}function ve(e,t){var n=U(z++,3);!H.__s&&Ee(n.__H,t)&&(n.__P=!0,n.__=e,n.u=t,B.__H.__h.push(n))}function ye(e,t){var n=U(z++,4);!H.__s&&Ee(n.__H,t)&&(n.__P=!1,n.__=e,n.u=t,B.__h.push(n))}function W(e){return V=5,G(function(){return{current:e}},[])}function G(e,t){var n=U(z++,7);return Ee(n.__H,t)&&(n.__=e(),n.__H=t),n.__}function be(e,t){return V=8,G(function(){return e},t)}function K(e){var t=B.context[e.__c],n=U(z++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(B)),t.props.value):e.__}function xe(){var e;do{for(;e=le.shift();)try{q(e)}catch(t){H.__e(t,{__:(e=e.__P)&&e.__v})}for(;e=ce.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(q),t.__h.some(Te),t.__h=[]}catch(n){t.__h=[],H.__e(n,e.__v)}}}while(le.length)}H.__b=function(e){B=null,ue&&ue(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),he&&he(e,t)},H.__r=function(e){de&&de(e),z=0;var t=(B=e.__c).__H;t&&(ae==B?B.__h=[]:(t.__h.some(q),t.__h.some(Te),z=0),t.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})),ae=B},H.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&we(ce.push(t)),t.__H.__.some(function(e){e.u&&(e.__H=e.u)})),ae=B=null},H.__c=function(e,t){t.some(function(e){try{e.__h.some(q),e.__h=e.__h.filter(function(e){return!e.__||Te(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],H.__e(n,e.__v)}}),pe&&pe(e,t)},H.unmount=function(e){me&&me(e);var t,n,r=e.__c;r&&r.__H&&(r.__H.__.some(function(r){try{if(r.__P&&r.__c){if(n===void 0){for(n=e.__;n&&(!n.__c||!n.__c.__P);)n=n.__;n&&=n.__c}r.__P=n,we(le.push(r))}else q(r)}catch(e){t=e}}),r.__H=void 0,t&&H.__e(t,r.__v))};var Se=typeof requestAnimationFrame==`function`;function Ce(e){var t,n=function(){clearTimeout(r),Se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Se&&(t=requestAnimationFrame(n))}function we(e){e!=1&&oe==H.requestAnimationFrame||((oe=H.requestAnimationFrame)||Ce)(xe)}function q(e){var t=B,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),B=t}function Te(e){var t=B;e.__c=e.__(),B=t}function Ee(e,t){return!e||e.length!=t.length||t.some(function(t,n){return!se(t,e[n])})}function De(e,t){return typeof t==`function`?t(e):t}var J,Y;function Oe(e){return!Y||(typeof Y==`string`?e.startsWith(Y):Y.test(e))}function ke(e,t){let n=``;if(J=void 0,t&&t.type===`click`){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0)return e;let r=t.composedPath().find(e=>e.nodeName==`A`&&e.href),i=r&&r.getAttribute(`href`);if(!r||r.origin!=location.origin||/^#/.test(i)||!/^(_?self)?$/i.test(r.target)||!Oe(i)||r.download)return e;J=!0,t.preventDefault(),n=r.href.replace(location.origin,``)}else t&&t.url?(J=!t.replace,n=t.url):n=location.pathname+location.search;return J===!0?history.pushState(null,``,n):J===!1&&history.replaceState(null,``,n),n}var Ae=(e,t,n={})=>{e=e.split(`/`).filter(Boolean),t=(t||``).split(`/`).filter(Boolean),n.params||={};for(let r=0,i,a;r<Math.max(e.length,t.length);r++){let[,o,s,c]=(t[r]||``).match(/^(:?)(.*?)([+*?]?)$/);if(i=e[r],o||s!=i){if(!o&&i&&c==`*`){n.rest=`/`+e.slice(r).join(`/`);break}if(!o||!i&&c!=`?`&&c!=`*`)return;if(a=c==`+`||c==`*`,a?i=e.slice(r).map(decodeURIComponent).join(`/`)||void 0:i&&=decodeURIComponent(i),n.params[s]=i,s in n||(n[s]=i),a)break}}return n};function X(e){let[t,n]=_e(ke,e.url||location.pathname+location.search);e.scope&&(Y=e.scope);let r=J===!0,i=G(()=>{let e=new URL(t,location.origin),i=e.pathname.replace(/\/+$/g,``)||`/`;return{url:t,path:i,query:Object.fromEntries(e.searchParams),route:(e,t)=>n({url:e,replace:t}),back:()=>{history.back()},forward:()=>{history.forward()},wasPush:r}},[t]);return ye(()=>(addEventListener(`click`,n),addEventListener(`popstate`,n),()=>{removeEventListener(`click`,n),removeEventListener(`popstate`,n)}),[]),v(X.ctx.Provider,{value:i},e.children)}var je=Promise.resolve();function Me(e){let[t,n]=_e(e=>e+1,0),{url:r,query:i,wasPush:a,path:o}=Le();if(!r)throw Error(`preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider`);let{rest:s=o,params:c={}}=K(Fe),l=W(!1),u=W(o),d=W(1),f=W(),p=W(),m=W(),h=W(!1),g=W();g.current=!1;let _,b,x;k(e.children).some(e=>{if(Ae(s,e.props.path,x={...e.props,path:s,query:i,params:Object.assign({},c),rest:``}))return _=y(e,x);e.props.default&&(b=y(e,x))});let S=_||b,C=f.current&&f.current.__u&Z&&f.current.__u&Ne,w=f.current&&f.current.__h,T=G(()=>{p.current=f.current,f.current=v(Fe.Provider,{value:x},S);let e=p.current&&p.current.props.children;return!e||!S||S.type!==e.type||S.props.component!==e.props.component?(d.current++,!0):!1},[r,JSON.stringify(x)]);C?(f.current.__u|=Z,f.current.__u|=Ne):w&&(f.current.__h=!0);let E=p.current;return p.current=null,this.__c=(t,i)=>{g.current=!0,p.current=E,e.onLoadStart&&e.onLoadStart(r),l.current=!0;let a=d.current;t.then(()=>{a===d.current&&(p.current=null,f.current&&(i.__h&&(f.current.__h=i.__h),i.__u&Ne&&(f.current.__u|=Ne),i.__u&Z&&(f.current.__u|=Z)),je.then(n))})},ye(()=>{let t=this.__v&&this.__v.__e;g.current?!h.current&&!m.current&&(m.current=t):(!h.current&&m.current&&(m.current!==t&&m.current.remove(),m.current=null),h.current=!0,u.current!==o&&(a&&scrollTo(0,0),e.onRouteChange&&e.onRouteChange(r),u.current=o),e.onLoadEnd&&l.current&&e.onLoadEnd(r),l.current=!1)},[o,a,t]),T?[v(Pe,{r:f,key:d.current}),v(Pe,{r:p,key:d.current-1})]:v(Pe,{r:f,key:d.current})}var Z=32,Ne=128,Pe=({r:e})=>e.current;Me.Provider=X,X.ctx=R({});var Fe=R({}),Ie=e=>v(e.component,e),Le=()=>K(X.ctx),Re=()=>K(Fe),ze=0;Array.isArray;function Q(t,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l&&typeof t!=`function`)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ze,__i:-1,__u:0};return(a||o)&&(u.__source=a,u.__self=o),e.vnode&&e.vnode(u),u}function Be(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Be(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function $(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Be(e))&&(r&&(r+=` `),r+=t);return r}function Ve(e){return Q(e.as??`div`,{class:$(`grid`,e.class),children:e.children})}function He(e){return Q(`span`,{class:`block -mt-[0.38em] -mb-[0.38em]`,children:e.children})}var Ue={"text-sm":.75,"text-md":.9,"text-mdlg":1,"text-lg":1.1,"text-xl":1.25};function We(e){let t=typeof e==`number`?e:Ue[e];return t*1.5-.76*t}var Ge={small:`text-sm text-fg`,"small-weak":`text-sm text-fg-weak`,"small-strong-accent":`text-sm text-accent-text font-bold`,regular:`text-md text-fg`,weak:`text-md text-fg-weak`,strong:`text-md font-bold text-fg-strong`,"strong-accent":`text-md font-bold text-accent-text`,wordmark:`text-mdlg font-bold text-fg-strong`,subtitle:`text-lg font-bold text-fg-strong`,title:`text-xl font-bold text-fg-strong`,megatitle:`text-2xl font-bold text-fg-strong`,"weak-struckout":`text-md text-fg-weak line-through`},Ke={left:`text-left`,center:`text-center`,right:`text-right`,justify:`text-justify`};function qe(e){let t=e.as??`span`,n=Ke[e.align??`left`],r=Ge[e.style??`regular`],i=e.oneLine??!1?Q(`span`,{class:`whitespace-nowrap overflow-hidden block text-ellipsis`,children:e.children}):e.children;return Q(t,{class:$(e.class,r,n),children:Q(He,{children:i})})}var Je={left:`items-start`,center:`items-center`,right:`items-end`,stretch:`items-stretch`},Ye={top:`justify-start`,center:`justify-center`,bottom:`justify-end`,"space-between":`justify-between`};function Xe(e){let t=e.as??`div`,n=Je[e.xAlign??`stretch`],r=Ye[e.yAlign??`top`];return Q(t,{class:$(`flex flex-col`,r,n,{"flex-wrap":e.wrap},e.class),children:e.children})}function Ze(e){return Q(Ve,{class:$(e.class,`grid-cols-[0px_1fr_0px] widescreen:grid-cols-[1fr_64rem_1fr]`),children:Q(Ve,{class:`col-start-2`,children:e.children})})}function Qe(){let{url:e}=Le();return G(()=>({showMobileNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`,showDesktopNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`}),[e])}export{v as C,x as S,ge as _,We as a,L as b,Q as c,Me as d,Le as f,G as g,W as h,qe as i,X as l,ve as m,Ze as n,Ve as o,Re as p,Xe as r,$ as s,Qe as t,Ie as u,be as v,e as w,R as x,K as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,h as t,m as n}from"./use-nav-exemptions-pWDQIkAs.js";function r(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function i(e,t=`|`){return e.map(e=>ce(e)).join(t)}function a(e,t){return typeof t==`bigint`?t.toString():t}var o=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function s(e){return new o(e)}function c(e){return e==null}function l(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function u(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function d(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function f(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function p(e){return f(e._zod.def)??e._zod.def.shape}function m(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return d(this,t,e),e},enumerable:!0,configurable:!0})}function h(e,t,n){t in e?d(e,t,n):e[t]=n}function g(e,t,n,r){let i=p(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?m(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):h(e,a,r?r(n.value,a):n.value))}}function ee(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?m(e,n,()=>t[n]):h(e,n,r.value))}}function _(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function te(e){return JSON.stringify(e)}function ne(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var re=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ie(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ae=s(()=>{if(j.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function v(e){if(ie(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ie(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function oe(e){return v(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var se=new Set([`string`,`number`,`symbol`]);function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function b(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function x(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ce(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function le(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var ue={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},de={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return g(i,e,pe(e,t)),b(e,_(n,{shape:i,checks:[]}))}function pe(e,t){let n=p(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function me(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(pe(e,t)),a={};return g(a,e,Reflect.ownKeys(p(e)).filter(e=>!i.has(e))),b(e,_(n,{shape:a,checks:[]}))}function he(e,t){if(!v(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=p(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return b(e,_(e._zod.def,{shape:ge(e,t)}))}function ge(e,t){let n={};return g(n,e,Reflect.ownKeys(p(e))),ee(n,t),n}function _e(e,t){if(!v(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return b(e,_(e._zod.def,{shape:ge(e,t)}))}function ve(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return g(n,e,Reflect.ownKeys(p(e))),g(n,t,Reflect.ownKeys(p(t))),b(e,_(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ye(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(pe(t,n)):void 0,o={};return g(o,t,Reflect.ownKeys(p(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),b(t,_(t._zod.def,{shape:o,checks:[]}))}function be(e,t,n){let r=n?new Set(pe(t,n)):void 0,i={};return g(i,t,Reflect.ownKeys(p(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),b(t,_(t._zod.def,{shape:i}))}function S(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Se(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function C(e){return typeof e==`string`?e:e?.message}function Ce(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function we(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function w(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:C(e.inst?._zod.def?.error?.(e))??C(a?.(e))??C(t?.error?.(e))??C(n.customError?.(e))??C(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Te=/[\uD800-\uDBFF]/;function Ee(e){let t=e.length;if(!Te.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function De(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Oe(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function T(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function ke(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Me(e,n,r.value)}}function E(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ae(e,t,n){return E(e,t,n,!1)}function je(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return E(this,n,r(this))},set(e){E(this,n,e)}})}return t}function Me(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:E(this,t,n.bind(this))},set(e){E(this,t,e)}})}function Ne(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Pe,D=!1,Fe={configurable:!0,get(){D=!0}};function O(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Pe!==e._zod?Pe=void 0:(Pe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Fe);let e=D;D=!1;try{let r=n(this);return D?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),D||=e,r}catch(n){throw delete this[t],D||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Ie(e,t,n,r){let i=Ne(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Le=`~constantCatch`;function Re(e){let t=()=>e;return t[Le]=!0,t}var ze,Be={value:void 0,enumerable:!1},Ve=`captureStackTrace`in Error?Error:null;function He(e){let t=Ve;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Ve=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function k(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Be.value=new a(r);try{Object.defineProperty(n,"_zod",Be)}finally{Be.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),ke(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?He(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var A=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ue=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(ze=globalThis).__zod_globalConfig??(ze.__zod_globalConfig={});var j=globalThis.__zod_globalConfig;function M(e){return e&&Object.assign(j,e),j}function We(){let e=this._zod;return e.message??=JSON.stringify(e.def,a,2),e.message}function Ge(e){this._zod.message=e}var Ke={get:We,set:Ge,enumerable:!0,configurable:!0},qe={value:void 0,enumerable:!1},Je=new WeakSet([Object.prototype,Error.prototype]),Ye=k(`$ZodError`,(e,t)=>{e.name=`$ZodError`,qe.value=t,Object.defineProperty(e,"issues",qe),qe.value=void 0,Object.defineProperty(e,"message",Ke);let n=Object.getPrototypeOf(e);Je.has(n)||(Je.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function Xe(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Ze(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Xe(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Qe(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function $e(e,t){return{callee:t?.callee??e,Err:t?.Err}}var et=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new A;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>w(e,o,M())));throw re(n,a?.callee??t),n}return s.value};return t},tt=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>w(e,o,M())));throw re(n,a?.callee??t),n}return s.value};return t},nt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new A;return a.issues.length?rt(e,a.issues,i):{success:!0,data:a.value}};function rt(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>w(e,n,M()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var it=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?rt(e,a.issues,i):{success:!0,data:a.value}},at=Symbol.for(`zod.compile.invalid`),ot=Symbol.for(`zod.compile.fallback`),st=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==at)return!0;if(r.definite===!0&&n===void 0)return!1}return ct(e,t,n)});function ct(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[ot]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new A;return a.issues.length===0}var lt=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},ut=e=>{let t=et(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,$e(n,a))};return n},dt=e=>{let t=et(e),n=(e,r,i,a)=>t(e,r,i,$e(n,a));return n},ft=e=>{let t=tt(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,$e(n,a))};return n},pt=e=>{let t=tt(e),n=async(e,r,i,a)=>await t(e,r,i,$e(n,a));return n},mt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return nt(e)(t,n,i)},ht=e=>(t,n,r)=>nt(e)(t,n,r),gt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return it(e)(t,n,i)},_t=e=>async(t,n,r)=>it(e)(t,n,r),vt=/^[cC][0-9a-z]{6,}$/,yt=/^[0-9a-z]+$/,bt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,xt=/^[0-9a-vA-V]{20}$/,St=/^[A-Za-z0-9]{27}$/,Ct=/^[a-zA-Z0-9_-]{21}$/;function wt(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Tt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Et=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ot=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kt=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function At(){return new RegExp(kt,`u`)}var jt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ft=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,It=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Lt=/^https?$/,Rt=/^\+[1-9]\d{6,14}$/,zt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Bt(e){return RegExp(`^${e}$`)}var Vt=Bt(zt);function Ht(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ut(e){return RegExp(`^${Ht(e)}$`)}function Wt(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Ht({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Ht({precision:e.precision})}`:n;return RegExp(`^${zt}T(?:${r})$`)}var Gt=/^[\s\S]{0,}$/,Kt=/^-?\d+(?:\.\d+)?$/,qt=/^(?:true|false)$/i,Jt=/^[^A-Z]*$/,Yt=/^[^a-z]*$/,N=k(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xt=e=>{let t=e.value;return!c(t)&&t.length!==void 0},Zt={number:`number`,bigint:`bigint`,object:`date`},Qt=k(`$ZodCheckLessThan`,(e,t)=>{N.init(e,t);let n=Zt[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Zt[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$t=k(`$ZodCheckGreaterThan`,(e,t)=>{N.init(e,t);let n=Zt[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Zt[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),en=k(`$ZodCheckMultipleOf`,(e,t)=>{N.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):u(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tn=k(`$ZodCheckNumberFormat`,(e,t)=>{N.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ue[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nn=k(`$ZodCheckMaxLength`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Ee(r):i)<=t.maximum)return;let a=De(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),rn=k(`$ZodCheckMinLength`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Ee(r):i)>=t.minimum)return;let a=De(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),an=k(`$ZodCheckLengthEquals`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Ee(r):i;if(a===t.length)return;let o=De(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),on=k(`$ZodCheckStringFormat`,(e,t)=>{var n,r;N.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),sn=k(`$ZodCheckRegex`,(e,t)=>{on.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),cn=k(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Jt,on.init(e,t)}),ln=k(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Yt,on.init(e,t)}),un=k(`$ZodCheckIncludes`,(e,t)=>{N.init(e,t);let n=y(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),dn=k(`$ZodCheckStartsWith`,(e,t)=>{N.init(e,t);let n=RegExp(`^${y(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),fn=k(`$ZodCheckEndsWith`,(e,t)=>{N.init(e,t);let n=RegExp(`.*${y(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),pn=k(`$ZodCheckOverwrite`,(e,t)=>{N.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),mn=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
1
|
+
import{_ as e,h as t,m as n}from"./use-nav-exemptions-BVau2uMd.js";function r(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function i(e,t=`|`){return e.map(e=>ce(e)).join(t)}function a(e,t){return typeof t==`bigint`?t.toString():t}var o=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function s(e){return new o(e)}function c(e){return e==null}function l(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function u(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function d(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function f(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function p(e){return f(e._zod.def)??e._zod.def.shape}function m(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return d(this,t,e),e},enumerable:!0,configurable:!0})}function h(e,t,n){t in e?d(e,t,n):e[t]=n}function g(e,t,n,r){let i=p(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?m(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):h(e,a,r?r(n.value,a):n.value))}}function ee(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?m(e,n,()=>t[n]):h(e,n,r.value))}}function _(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function te(e){return JSON.stringify(e)}function ne(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var re=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ie(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ae=s(()=>{if(j.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function v(e){if(ie(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ie(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function oe(e){return v(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var se=new Set([`string`,`number`,`symbol`]);function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function b(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function x(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ce(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function le(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var ue={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},de={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return g(i,e,pe(e,t)),b(e,_(n,{shape:i,checks:[]}))}function pe(e,t){let n=p(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function me(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(pe(e,t)),a={};return g(a,e,Reflect.ownKeys(p(e)).filter(e=>!i.has(e))),b(e,_(n,{shape:a,checks:[]}))}function he(e,t){if(!v(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=p(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return b(e,_(e._zod.def,{shape:ge(e,t)}))}function ge(e,t){let n={};return g(n,e,Reflect.ownKeys(p(e))),ee(n,t),n}function _e(e,t){if(!v(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return b(e,_(e._zod.def,{shape:ge(e,t)}))}function ve(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return g(n,e,Reflect.ownKeys(p(e))),g(n,t,Reflect.ownKeys(p(t))),b(e,_(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ye(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(pe(t,n)):void 0,o={};return g(o,t,Reflect.ownKeys(p(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),b(t,_(t._zod.def,{shape:o,checks:[]}))}function be(e,t,n){let r=n?new Set(pe(t,n)):void 0,i={};return g(i,t,Reflect.ownKeys(p(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),b(t,_(t._zod.def,{shape:i}))}function S(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Se(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function C(e){return typeof e==`string`?e:e?.message}function Ce(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function we(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function w(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:C(e.inst?._zod.def?.error?.(e))??C(a?.(e))??C(t?.error?.(e))??C(n.customError?.(e))??C(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Te=/[\uD800-\uDBFF]/;function Ee(e){let t=e.length;if(!Te.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function De(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Oe(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function T(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function ke(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Me(e,n,r.value)}}function E(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ae(e,t,n){return E(e,t,n,!1)}function je(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return E(this,n,r(this))},set(e){E(this,n,e)}})}return t}function Me(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:E(this,t,n.bind(this))},set(e){E(this,t,e)}})}function Ne(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Pe,D=!1,Fe={configurable:!0,get(){D=!0}};function O(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Pe!==e._zod?Pe=void 0:(Pe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Fe);let e=D;D=!1;try{let r=n(this);return D?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),D||=e,r}catch(n){throw delete this[t],D||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Ie(e,t,n,r){let i=Ne(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Le=`~constantCatch`;function Re(e){let t=()=>e;return t[Le]=!0,t}var ze,Be={value:void 0,enumerable:!1},Ve=`captureStackTrace`in Error?Error:null;function He(e){let t=Ve;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Ve=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function k(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Be.value=new a(r);try{Object.defineProperty(n,"_zod",Be)}finally{Be.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),ke(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?He(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var A=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ue=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(ze=globalThis).__zod_globalConfig??(ze.__zod_globalConfig={});var j=globalThis.__zod_globalConfig;function M(e){return e&&Object.assign(j,e),j}function We(){let e=this._zod;return e.message??=JSON.stringify(e.def,a,2),e.message}function Ge(e){this._zod.message=e}var Ke={get:We,set:Ge,enumerable:!0,configurable:!0},qe={value:void 0,enumerable:!1},Je=new WeakSet([Object.prototype,Error.prototype]),Ye=k(`$ZodError`,(e,t)=>{e.name=`$ZodError`,qe.value=t,Object.defineProperty(e,"issues",qe),qe.value=void 0,Object.defineProperty(e,"message",Ke);let n=Object.getPrototypeOf(e);Je.has(n)||(Je.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function Xe(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Ze(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Xe(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Qe(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function $e(e,t){return{callee:t?.callee??e,Err:t?.Err}}var et=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new A;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>w(e,o,M())));throw re(n,a?.callee??t),n}return s.value};return t},tt=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>w(e,o,M())));throw re(n,a?.callee??t),n}return s.value};return t},nt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new A;return a.issues.length?rt(e,a.issues,i):{success:!0,data:a.value}};function rt(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>w(e,n,M()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var it=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?rt(e,a.issues,i):{success:!0,data:a.value}},at=Symbol.for(`zod.compile.invalid`),ot=Symbol.for(`zod.compile.fallback`),st=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==at)return!0;if(r.definite===!0&&n===void 0)return!1}return ct(e,t,n)});function ct(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[ot]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new A;return a.issues.length===0}var lt=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},ut=e=>{let t=et(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,$e(n,a))};return n},dt=e=>{let t=et(e),n=(e,r,i,a)=>t(e,r,i,$e(n,a));return n},ft=e=>{let t=tt(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,$e(n,a))};return n},pt=e=>{let t=tt(e),n=async(e,r,i,a)=>await t(e,r,i,$e(n,a));return n},mt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return nt(e)(t,n,i)},ht=e=>(t,n,r)=>nt(e)(t,n,r),gt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return it(e)(t,n,i)},_t=e=>async(t,n,r)=>it(e)(t,n,r),vt=/^[cC][0-9a-z]{6,}$/,yt=/^[0-9a-z]+$/,bt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,xt=/^[0-9a-vA-V]{20}$/,St=/^[A-Za-z0-9]{27}$/,Ct=/^[a-zA-Z0-9_-]{21}$/;function wt(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Tt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Et=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ot=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kt=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function At(){return new RegExp(kt,`u`)}var jt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ft=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,It=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Lt=/^https?$/,Rt=/^\+[1-9]\d{6,14}$/,zt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Bt(e){return RegExp(`^${e}$`)}var Vt=Bt(zt);function Ht(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ut(e){return RegExp(`^${Ht(e)}$`)}function Wt(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Ht({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Ht({precision:e.precision})}`:n;return RegExp(`^${zt}T(?:${r})$`)}var Gt=/^[\s\S]{0,}$/,Kt=/^-?\d+(?:\.\d+)?$/,qt=/^(?:true|false)$/i,Jt=/^[^A-Z]*$/,Yt=/^[^a-z]*$/,N=k(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xt=e=>{let t=e.value;return!c(t)&&t.length!==void 0},Zt={number:`number`,bigint:`bigint`,object:`date`},Qt=k(`$ZodCheckLessThan`,(e,t)=>{N.init(e,t);let n=Zt[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Zt[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$t=k(`$ZodCheckGreaterThan`,(e,t)=>{N.init(e,t);let n=Zt[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Zt[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),en=k(`$ZodCheckMultipleOf`,(e,t)=>{N.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):u(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tn=k(`$ZodCheckNumberFormat`,(e,t)=>{N.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ue[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nn=k(`$ZodCheckMaxLength`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Ee(r):i)<=t.maximum)return;let a=De(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),rn=k(`$ZodCheckMinLength`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Ee(r):i)>=t.minimum)return;let a=De(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),an=k(`$ZodCheckLengthEquals`,(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=Xt),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Ee(r):i;if(a===t.length)return;let o=De(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),on=k(`$ZodCheckStringFormat`,(e,t)=>{var n,r;N.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),sn=k(`$ZodCheckRegex`,(e,t)=>{on.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),cn=k(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Jt,on.init(e,t)}),ln=k(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Yt,on.init(e,t)}),un=k(`$ZodCheckIncludes`,(e,t)=>{N.init(e,t);let n=y(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),dn=k(`$ZodCheckStartsWith`,(e,t)=>{N.init(e,t);let n=RegExp(`^${y(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),fn=k(`$ZodCheckEndsWith`,(e,t)=>{N.init(e,t);let n=RegExp(`.*${y(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),pn=k(`$ZodCheckOverwrite`,(e,t)=>{N.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),mn=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2
2
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
3
3
|
`)}\n};`)(...Object.values(this.closed))}},hn={major:4,minor:6,patch:7},P=k(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hn;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=S(t),a;for(let o of n){if(o._zod.def.when){if(xe(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new A;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(we(t.issues,n,e),i||=S(t,n))});else{if(t.issues.length===n)continue;we(t.issues,n,e),i||=S(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(S(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new A;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new A;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ae(this,`~standard`,vn(this))},set"~standard"(e){E(this,`~standard`,e)}}),gn=(e,t)=>e.issues.length?{issues:e.issues.map(e=>w(e,t,M()))}:{value:e.value};async function _n(e,t){let n={async:!0};return gn(await e._zod.run({value:t,issues:[]},n),n)}function vn(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return gn(r,n)}catch{}return _n(e,t)},vendor:`zod`,version:1}}var yn=k(`$ZodString`,(e,t)=>{P.init(e,t),e._zod.pattern=t.pattern??Gt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),F=k(`$ZodStringFormat`,(e,t)=>{on.init(e,t),yn.init(e,t)}),bn=k(`$ZodGUID`,(e,t)=>{t.pattern??=Et,F.init(e,t)}),xn=k(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Dt(e)}else t.pattern??=Dt();F.init(e,t)}),Sn=k(`$ZodEmail`,(e,t)=>{t.pattern??=Ot,F.init(e,t)});function Cn(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function wn(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Cn(e)||2:Tn(e,t)}function Tn(e,t){if(!t.normalize&&t.protocol?.source===Lt.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var En=/[\t\n\r]/g;function Dn(e){return e.replace(En,``)}function On(e,t){return t.lastIndex=0,t.test(e.hostname)}function kn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var An=k(`$ZodURL`,(e,t)=>{F.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=wn(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Dn(r);return}t.hostname&&!On(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!kn(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Dn(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),jn=k(`$ZodEmoji`,(e,t)=>{t.pattern??=At(),F.init(e,t)}),Mn=k(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Ct:wt(t.length),F.init(e,t)}),Nn=k(`$ZodCUID`,(e,t)=>{t.pattern??=vt,F.init(e,t)}),Pn=k(`$ZodCUID2`,(e,t)=>{t.pattern??=yt,F.init(e,t)}),Fn=k(`$ZodULID`,(e,t)=>{t.pattern??=bt,F.init(e,t)}),In=k(`$ZodXID`,(e,t)=>{t.pattern??=xt,F.init(e,t)}),Ln=k(`$ZodKSUID`,(e,t)=>{t.pattern??=St,F.init(e,t)}),Rn=k(`$ZodISODateTime`,(e,t)=>{t.pattern??=Wt(t),F.init(e,t)}),zn=k(`$ZodISODate`,(e,t)=>{t.pattern??=Vt,F.init(e,t)}),Bn=k(`$ZodISOTime`,(e,t)=>{t.pattern??=Ut(t),F.init(e,t)}),Vn=k(`$ZodISODuration`,(e,t)=>{t.pattern??=Tt,F.init(e,t)}),Hn=k(`$ZodIPv4`,(e,t)=>{t.pattern??=jt,F.init(e,t)}),Un=/^[0-9a-fA-F:.]+$/;function Wn(e){return Un.test(e)?Cn(`http://[${e}]`):!1}var Gn=k(`$ZodIPv6`,(e,t)=>{t.pattern??=Mt,F.init(e,t),e._zod.check=n=>{Wn(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Kn=k(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Nt,F.init(e,t)});function qn(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Wn(n)}var Jn=k(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Pt,F.init(e,t),e._zod.check=n=>{qn(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function Yn(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Xn=/^[0-9a-zA-Z+/]*={0,2}$/,Zn=k(`$ZodBase64`,(e,t)=>{t.pattern??=Xn,F.init(e,t),e._zod.check=n=>{Yn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Qn=/^[A-Za-z0-9_-]*$/;function $n(e){if(!Qn.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Yn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var er=k(`$ZodBase64URL`,(e,t)=>{t.pattern??=Qn,F.init(e,t),e._zod.check=n=>{$n(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),tr=k(`$ZodE164`,(e,t)=>{t.pattern??=Rt,F.init(e,t)});function nr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var rr=k(`$ZodJWT`,(e,t)=>{F.init(e,t),e._zod.check=n=>{nr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),ir=k(`$ZodNumber`,(e,t)=>{P.init(e,t),e._zod.pattern=Kt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),ar=k(`$ZodNumberFormat`,(e,t)=>{tn.init(e,t),ir.init(e,t)}),or=k(`$ZodBoolean`,(e,t)=>{P.init(e,t),e._zod.pattern=qt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),sr=k(`$ZodUnknown`,(e,t)=>{P.init(e,t),e._zod.parse=e=>e}),cr=k(`$ZodNever`,(e,t)=>{P.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function lr(e,t){let n=Ce(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of Ce(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,we(n.issues,t,e),n}}return i(n,a)}}var ur=e=>Array.isArray(e)?e.length:-1;function dr(e,t,n){e.issues.length&&t.issues.push(...Se(n,e.issues)),t.value[n]=e.value}var fr=k(`$ZodArray`,(e,t)=>{P.init(e,t);let n=j.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>dr(t,r,e)));else if(dr(c,r,e),s&&c.issues.length!==0&&S(c))break}return o.length?Promise.all(o).then(()=>r):r},lr(e,ur)});function pr(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...Se(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var mr=[];function hr(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:mr,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=le(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function gr(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(S(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>pr(e,n,i,t,d,f))):pr(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var _r=k(`$ZodObject`,(e,t)=>{P.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=s(()=>hr(t));O(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||d(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=ie,o=t.catchall,c,l=j.memoizer;l?.attach(e),e._zod.parse=(t,n)=>{c??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=l?l.alloc(e,t,{},n):{};let s=[],u=c.shape,d=n?.abortEarly,f=t.issues.length;for(let e of c.allKeys){if(d&&t.issues.length!==f){if(S(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,c=i._zod.run({value:r[e],issues:[]},n);c instanceof Promise?s.push(c.then(n=>pr(n,t,e,r,a,o))):pr(c,t,e,r,a,o)}return o?gr(s,r,t,n,i.value,e,d===!0):s.length?Promise.all(s).then(()=>t):t}}),vr=k(`$ZodObjectJIT`,(e,t)=>{_r.init(e,t);let n=e._zod.parse,r=s(()=>hr(t)),i=j.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new mn([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
4
4
|
let ${e}_ab = false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,n,r,s as i}from"./use-nav-exemptions-BVau2uMd.js";import{d as a}from"./index-CVEoHKKb.js";import{n as o,t as s}from"./SimpleMobileHeaderContent-mA6Motds.js";function c(c){return{mobileHeader:e(s,{title:c.title,backHref:c.back?.href??null}),desktopHeader:e(n,{children:e(r,{class:i(`mx-4 py-4 gap-8 border-b border-soft-border`,{"pt-8":c.back==null,"pt-6":c.back!=null}),children:[c.back!=null&&e(a,{text:c.back.text,href:c.back.href,icon:o,class:`self-start`,layout:`narrow-icon`}),e(t,{style:`megatitle`,children:c.title})]})})}}export{c as t};
|
package/web/dist/index.html
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
|
|
16
16
|
<meta name="theme-color" content="#242933" />
|
|
17
17
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/use-nav-exemptions-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/use-query-
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/use-foundational-data-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-CVEoHKKb.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/use-nav-exemptions-BVau2uMd.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/use-query-DHdSzQ5j.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/use-foundational-data-zcQwBHIX.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/scope-B-e4l8Dr.js">
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/LinkText-
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/LinkText-Z0HboJZn.js">
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D20TpGy-.css">
|
|
25
25
|
<link rel="manifest" href="/manifest.webmanifest"></head>
|
|
26
26
|
<body>
|
|
27
27
|
<script>
|
package/web/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"8b3ed377dc98ffdea9a5c3ef3fea7cfd"},{url:"favicon.svg",revision:"570c2a249bbd511b386a843cd96545e7"},{url:"apple-touch-icon.png",revision:"d5d6ea39bc40ffd5b045b9593da0c890"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/use-simple-headers-D6PQjBB3.js",revision:null},{url:"assets/use-query-DHdSzQ5j.js",revision:null},{url:"assets/use-nav-exemptions-BVau2uMd.js",revision:null},{url:"assets/use-foundational-data-zcQwBHIX.js",revision:null},{url:"assets/scope-B-e4l8Dr.js",revision:null},{url:"assets/integers-BYp6YHG5.js",revision:null},{url:"assets/index-D20TpGy-.css",revision:null},{url:"assets/index-CVEoHKKb.js",revision:null},{url:"assets/ZenMode-BVDNMDa6.js",revision:null},{url:"assets/Strong-DviAEPO-.js",revision:null},{url:"assets/Stop-9J6m32wx.js",revision:null},{url:"assets/Status-DmRnFnWV.js",revision:null},{url:"assets/SimpleMobileHeaderContent-mA6Motds.js",revision:null},{url:"assets/Settings-dGkAThRO.js",revision:null},{url:"assets/Service-BgzHz-B5.js",revision:null},{url:"assets/Placeholder-B8iCvFNV.js",revision:null},{url:"assets/Picker-CHvnHGY8.js",revision:null},{url:"assets/Page-CE6Z4Bpi.js",revision:null},{url:"assets/NotFoundPage-BoolK0ik.js",revision:null},{url:"assets/NotFound-DCZ-vmQJ.js",revision:null},{url:"assets/Nearby-ClJ1usaG.js",revision:null},{url:"assets/Markdown-BAkMkc9t.js",revision:null},{url:"assets/LinkText-Z0HboJZn.js",revision:null},{url:"assets/Line-yMikhkZV.js",revision:null},{url:"assets/Home-oh0OwBNV.js",revision:null},{url:"assets/Divider-D0u5ZQZn.js",revision:null},{url:"assets/Debug-DzOqpe2a.js",revision:null},{url:"assets/Alert-DNsGljjU.js",revision:null},{url:"assets/AdminControls-C-tiL7FK.js",revision:null},{url:"assets/About-BjgaGj8I.js",revision:null},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"manifest.webmanifest",revision:"a39f5f893f233a6eed74e0ab828a668b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/reset\/?$/]}))});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-pWDQIkAs.js";import{t as r}from"./Page-BMpuMskU.js";import{t as i}from"./use-simple-headers-vqWwqqRo.js";function a(){return e(r,{...i({title:`Admin controls`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,s as t}from"./use-nav-exemptions-pWDQIkAs.js";function n(n){return e(`div`,{class:t(n.class,`border-b border-soft-border`)})}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,r as t}from"./use-nav-exemptions-pWDQIkAs.js";import{n}from"./use-foundational-data-CyGObFfu.js";import{t as r}from"./Markdown-D2wC6jdy.js";import{t as i}from"./Page-BMpuMskU.js";import{t as a}from"./use-simple-headers-vqWwqqRo.js";function o(){let{foda:o}=n();return e(i,{...a({title:`Home`}),children:e(t,{class:`px-4 py-8 gap-12`,children:e(r,{markdown:o.landingPage.primaryMarkdown})})})}export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-pWDQIkAs.js";import{t as r}from"./Page-BMpuMskU.js";function i(){return e(r,{mobileHeader:null,desktopHeader:null,children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Idk`})})})}export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./use-nav-exemptions-pWDQIkAs.js";import{t}from"./NotFoundPage-CkldArMP.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,n as t,o as n,s as r,t as i}from"./use-nav-exemptions-pWDQIkAs.js";function a(t){return e(n,{class:r(t.class,`not-desktop:hidden`),children:t.children})}function o(t){return e(n,{class:r(t.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden`),children:t.children})}function s(s){let{showMobileNav:c}=i(),l=s.centered??!0;return e(n,{class:r(`bg-bg min-h-svh relative`,{"pt-14":s.mobileHeader!=null,"not-desktop:pb-18":c,"desktop:grid-rows-[auto_1fr]":s.desktopHeader!=null},`desktop:pt-12`),children:[s.desktopHeader!=null&&e(a,{children:s.desktopHeader}),s.mobileHeader!=null&&e(o,{class:`h-14 z-1`,children:s.mobileHeader}),e(n,{class:`z-0`,children:l?e(t,{children:s.children}):s.children})]})}export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-pWDQIkAs.js";import{t as r}from"./Page-BMpuMskU.js";import{t as i}from"./use-simple-headers-vqWwqqRo.js";function a(){return e(r,{...i({title:`Status`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`LGTM`})})})}export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,g as t,i as n,p as r,r as i}from"./use-nav-exemptions-pWDQIkAs.js";import{t as a,u as o}from"./use-query-DDd1mja8.js";import{n as s}from"./use-foundational-data-CyGObFfu.js";import{f as c,g as l,r as u}from"./index-Ddvtj_a8.js";import{t as d}from"./Strong-BeqxJ43O.js";import{t as f}from"./Page-BMpuMskU.js";import{t as p}from"./use-simple-headers-vqWwqqRo.js";import{t as m}from"./NotFoundPage-CkldArMP.js";function h(){let{params:{id:n}}=r(),{foda:i}=s(),a=t(()=>i.stops.getByUrlPath(n??``),[i.stops,n]);return a==null?e(m,{afterConfirming:`foundational-data-version`}):e(g,{stop:a},a.id)}function g(t){let{data:r,loading:s,error:c}=a(o,{stopId:t.stop.id,count:10});return e(f,{...p({title:t.stop.name}),children:e(i,{class:`px-4 py-8 gap-8`,children:[e(u,{lineIds:t.stop.canonicalLinesServingStop,withLinks:!0}),s&&e(l,{}),!s&&(c!=null||r==null)&&e(n,{children:`Error loading departures.`}),!s&&r!=null&&r.departures.length===0&&e(n,{children:`No departures found.`}),!s&&r!=null&&r.departures.length>0&&e(i,{class:`gap-4`,children:r.departures.map(t=>e(_,{departure:t},`${t.sourceId}/${t.intrasourceId}`))})]})})}function _({departure:t}){let r=t.secondaryDestinationText==null?``:` ${t.secondaryDestinationText}`,a=t.isCancelled?` (Cancelled)`:``,o=`/service/${encodeURIComponent(t.sourceId)}/${encodeURIComponent(t.intrasourceId)}?from=${encodeURIComponent(t.movement.index.toString())}`;return e(c,{href:o,class:`p-4`,children:e(i,{class:`gap-4`,children:[e(i,{class:`gap-3`,children:[e(n,{children:[e(d,{children:t.primaryDestinationText}),r,a]}),e(n,{children:new Date(Date.parse(t.movement.time)).toLocaleString()}),t.movement.formerTime!=null&&e(n,{style:`weak-struckout`,children:new Date(Date.parse(t.movement.formerTime)).toLocaleString()})]}),e(n,{style:`small-weak`,children:[`Source: `,t.sourceId,` • ID:`,` `,t.intrasourceId]})]})})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,s as t}from"./use-nav-exemptions-pWDQIkAs.js";function n(n){return e(`strong`,{class:t(n.class,`text-fg-strong`),children:n.children})}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-pWDQIkAs.js";import{t as r}from"./Strong-BeqxJ43O.js";import{t as i}from"./Page-BMpuMskU.js";import{t as a}from"./use-simple-headers-vqWwqqRo.js";function o(){return e(i,{...a({title:`Zen mode`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:[e(r,{children:`✨`}),` Zen! `,e(r,{children:`✨`})]})})})}export{o as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#001b5233;--color-soft-border-disabled:#001e5a1f;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.-mt-\[0\.38em\]{margin-top:-.38em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.-mb-\[0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-DxAX4fbq.js","assets/use-nav-exemptions-pWDQIkAs.js","assets/use-query-DDd1mja8.js","assets/use-foundational-data-CyGObFfu.js","assets/Placeholder-BkXn0vQ2.js","assets/Markdown-D2wC6jdy.js","assets/LinkText-CiPvp0mL.js","assets/Strong-BeqxJ43O.js","assets/Page-BMpuMskU.js","assets/use-simple-headers-vqWwqqRo.js","assets/Divider-DxcVAB__.js","assets/Alert-DJxpAxGW.js","assets/AdminControls-CkepqAqA.js","assets/Debug-C3aem-Y_.js","assets/Home-BWy3tAlX.js","assets/Nearby-GgSNwYjV.js","assets/Service-DwfMOmR2.js","assets/integers-BYp6YHG5.js","assets/Settings-CcOwENSo.js","assets/Picker-BUr-habm.js","assets/Status-Cqm0zGEP.js","assets/ZenMode-Dy3GUHqN.js","assets/Stop-1gh0-Vtz.js","assets/NotFoundPage-CkldArMP.js","assets/Line-BAgtALS7.js","assets/scope-B-e4l8Dr.js","assets/NotFound-785phBIT.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,r as h,s as g,t as _,u as v,v as y,w as b,x,y as S}from"./use-nav-exemptions-pWDQIkAs.js";import{a as ee,c as te,f as ne,m as re,n as ie,p as ae,r as oe,s as se,t as ce}from"./use-query-DDd1mja8.js";import{n as C,t as le}from"./use-foundational-data-CyGObFfu.js";import{n as w,t as T}from"./scope-B-e4l8Dr.js";import{t as ue}from"./LinkText-CiPvp0mL.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)}})();var de=b.__b;b.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),de&&de(e)};function E(t){let r,i,a=()=>t().then(e=>i=e&&e.default||e),o=t=>{let[,o]=n(0),s=l(i);if(r||=a(),i!==void 0)return e(i,t);throw s.current||=r.then(()=>o(1)),r};return o.preload=()=>(r||=a(),r),o._forwarded=!0,o}var D=b.__e;b.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}D&&D(e,t,n)};function fe(e){return this.__c=pe,this.componentDidCatch=e.onError,e.children}function pe(e){e.then(()=>this.forceUpdate())}var me=`modulepreload`,he=function(e){return`/`+e},ge={},_e=function(e){return e.pathname.endsWith(`.css`)},ve=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=he(t,n);let r=s(t),i=_e(r);return ve(ge,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:me,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k=x(null);function A(){let e=S(k);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function ye(e){let{Provider:t}=k,n=c(()=>be(document),[]);return a(t,{value:n,children:e.children})}function be(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}var xe=class{_array;_map;constructor(e){this._array=e,this._map=new Map(e.map(e=>[this._getID(e),e]))}all(){return this._array}get(e){return this._map.get(e)??null}require(e){let t=this.get(e);if(t==null)throw this._getRequireFailError(e);return t}has(e){return this._map.has(e)}map(e){return this._array.map(e)}filter(e){return this._array.filter(e)}first(e){return this._array.find(e)??null}requireFirst(e){let t=this.first(e);if(t==null)throw this._getPredicateFailError();return t}},Se=class extends xe{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},Ce=class extends xe{_getID(e){return e.id}_getRequireFailError(e){return Error(`No line with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching line.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},j=class e{_raw;stops;lines;constructor(e){this._raw=e,this.stops=new Se(e.stops),this.lines=new Ce(e.lines)}get hash(){return this._raw.metadata.hash}get serverVersion(){return this._raw.metadata.serverVersion}get footerPrimaryMarkdown(){return this._raw.footer.primaryMarkdown}get terminology(){return this._raw.terminology}get landingPage(){return this._raw.landingPage}static json=te.transform(t=>new e(t));toJson(){return this._raw}};function M(e,t){let n=y(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),r=y(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return c(()=>({get:n,set:r}),[n,r])}var we={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function N(e){return a(`svg`,{className:g(`_loading-spinner`,we[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[a(`title`,{children:`Loading spinner`}),a(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),a(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function P(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function F(e){let t=g(`grid not-disabled:cursor-pointer select-none`,e.class);return e.onClick==null&&e.href!=null&&!(e.disabled??!1)?a(`a`,{class:t,href:e.href,onClick:e.onHrefClick,children:e.children}):a(`button`,{class:t,onClick:e.onClick,disabled:e.disabled,children:e.children})}var Te={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Ee={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function I(e){let t=e.as??`div`,n=Te[e.xAlign??`left`],r=Ee[e.yAlign??`stretch`];return a(t,{class:g(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function L(e){return a(m,{class:g(`relative`,e.class),children:[a(m,{class:g({invisible:e.loading}),children:e.children}),e.loading&&a(I,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:a(N,{})})]})}var De=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-accent)]`,`not-disabled:[--color-fg-strong:var(--color-on-accent)]`,`not-disabled:[--color-fg-weak:var(--color-on-accent)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Oe=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-accent`,`group-not-disabled:group-hover:bg-accent-hover`,`group-not-disabled:group-active:bg-accent-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function R(e){let t=e.rounded??!0;return a(F,{class:g(e.class,De),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:g(Oe,{"rounded-sm":t})}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function ke(e){return a(I,{class:g(e.class,`gap-2 h-8`,{"px-4":e.text!=null,"min-w-8":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&a(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&a(u,{children:e.text})]})}var Ae=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),je=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-soft`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Me(e){return a(F,{class:g(e.class,Ae),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:je}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ne=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Pe=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-soft-border`,`group-disabled:border-soft-border-disabled`]);function z(e){return a(F,{class:g(e.class,Ne),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Pe}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Fe=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ie=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function B(e){return a(F,{class:g(e.class,Fe),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ie}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Le=g([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Re=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function V(e){return a(F,{class:g(e.class,Le),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Re}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function H(e){let t=e.outerPadding??!1;return a(I,{class:g(e.class,`gap-2 min-w-0 py-2`,{"px-4":e.text!=null,"min-w-8":e.text==null,"min-h-10":!t,"min-h-12":t}),yAlign:`center`,children:[e.icon!=null&&a(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&a(u,{class:`shrink min-w-0`,children:e.text})]})}var ze=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-error)]`,`not-disabled:[--color-fg-strong:var(--color-on-error)]`,`not-disabled:[--color-fg-weak:var(--color-on-error)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Be=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-error`,`group-not-disabled:group-hover:bg-error-hover`,`group-not-disabled:group-active:bg-error-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ve(e){return a(F,{class:g(e.class,ze),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Be}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var He=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-warning)]`,`not-disabled:[--color-fg-strong:var(--color-on-warning)]`,`not-disabled:[--color-fg-weak:var(--color-on-warning)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ue=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-warning`,`group-not-disabled:group-hover:bg-warning-hover`,`group-not-disabled:group-active:bg-warning-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function We(e){return a(F,{class:g(e.class,He),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ue}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ge=g([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-success)]`,`not-disabled:[--color-fg-strong:var(--color-on-success)]`,`not-disabled:[--color-fg-weak:var(--color-on-success)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ke=g([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-success`,`group-not-disabled:group-hover:bg-success-hover`,`group-not-disabled:group-active:bg-success-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function qe(e){return a(F,{class:g(e.class,Ge),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[a(`div`,{class:Ke}),a(L,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Je={default:Me,accent:R,outlined:z,hover:B,"hover-square":V,error:Ve,warning:We,success:qe},Ye={simple:ke,"menu-item":H};function U(e){let t=Je[e.theme??`default`],n=Ye[e.layout??`simple`];return a(t,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:a(n,{icon:e.icon,text:e.text})})}function Xe(e){let{appName:t}=A();return a(m,{class:`w-svw h-svh items-center justify-center`,children:a(h,{class:`gap-12`,xAlign:`center`,children:[a(h,{class:`gap-6`,xAlign:`center`,children:[a(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),a(u,{style:`title`,children:t})]}),e.error?a(h,{class:`gap-4`,xAlign:`center`,children:[a(u,{children:`Failed to load data :(`}),a(U,{text:`Retry`,icon:P,onClick:e.onRetry})]}):a(N,{style:`large`})]})})}var W=x(null);function G(){let e=S(W);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var Ze=`corequery-foundational-data`,Qe=2e3;function $e(e){let{Provider:t}=le,{revalidateSettings:r}=G(),{callApi:i}=oe(),o=M(Ze,j.json),[s]=n(()=>o.get()),[l,u]=n(null),[d,p]=n(!1),m=y(e=>{u(e),r(e),o.set(e.toJson())},[o,r]),h=y(()=>{p(!1),et({callApi:i,cachedData:s,onDataReady:(e,t)=>{m(e),t&&o.set(e.toJson())},onFailure:()=>{p(!0)}})},[o,s,i,m]);f(()=>{h()},[h]);let g=c(()=>l==null?null:{foda:l,updateFoda:m},[l,m]);return g==null?a(Xe,{error:d,onRetry:h}):a(t,{value:g,children:e.children})}async function et({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(se,{hash:t.hash},{timeout:Qe});r.result===`up-to-date`?n(t,!1):n(new j(r.foundationalData),!0)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(t,!1)}else try{let t=await e(se,{hash:null});if(t.result===`up-to-date`)throw Error(`Huh?`);n(new j(t.foundationalData),!0)}catch{r()}}var K=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=re({version:ae(1),theme:ne([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return ie(this.toJson(),e.toJson())}},tt=[`auto`,`light`,`dark`];function nt(){window.applyTheme?.()}function rt(e){let{Provider:t}=W,r=M(`corequery-settings`,K.json),[i,o]=n(()=>r.get()??(console.warn(`Failed to load settings, using defaults.`),K.default)),s=y((e,t)=>{o(n=>{let i=e(n);return(t?.persist??!0)&&r.set(i.toJson()),i}),nt()},[r]),l=y(e=>{s(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[s]),u=c(()=>({settings:i,updateSettings:s,revalidateSettings:l}),[i,s,l]);return a(t,{value:u,children:e.children})}function it(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function q(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function at(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function J(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M10.8 2.65a2 2 0 0 1 2.4 0l7 5.25a2 2 0 0 1 .8 1.6V19a2 2 0 0 1-2 2h-4.9a1.1 1.1 0 0 1-1.1-1.1V14a1 1 0 1 0-2 0v5.9A1.1 1.1 0 0 1 9.9 21H5a2 2 0 0 1-2-2V9.5a2 2 0 0 1 .8-1.6zm1.2 1.6L5 9.5V19h4v-5a3 3 0 1 1 6 0v5h4V9.5z`})]})})}function ot(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function st(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function ct(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function Y(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function lt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function ut(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function X(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}function dt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function ft(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function pt(){return[{name:`Home`,href:`/`,regularIcon:J,activeIcon:at,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:q,activeIcon:it,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:st,activeIcon:ot,isActive:e=>e===`/nearby`},{name:`Search`,icon:Y,opensSearchDrawer:!0},{name:`More`,icon:ct,opensMoreDrawer:!0}]}function mt(){let{appName:e}=A();return[{name:`About ${e}`,href:`/about`,icon:X},{name:`Settings`,href:`/settings`,icon:ut},{name:`Developer info`,href:`/debug`,icon:lt},{name:`Admin controls`,href:`/admin`,icon:dt},{name:`Zen mode`,href:`/zen`,icon:ft}]}var ht=x(null);function Z(){let e=S(ht);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function gt(e){let{isUpdateAvailable:t,update:r}=Z(),[i,o]=n(!1);return f(()=>{e.menuFullyClosed&&o(t)},[t,e.menuFullyClosed]),i?a(R,{rounded:!1,onClick:()=>void r(),children:a(p,{children:a(H,{icon:P,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Q(e,t){let[r,i]=n(!1);return f(()=>{if(!e){i(!1);return}let n=setTimeout(()=>{i(!0)},t);return()=>{clearTimeout(n)}},[e,t]),r}function _t(e){let t=mt(),n=Q(!e.open,300);return a(`div`,{class:g(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[a(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),a(h,{class:`relative z-1 desktop:flex-col-reverse`,children:[a(p,{children:a(h,{class:`py-2`,children:t.map(t=>a(U,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),a(gt,{menuFullyClosed:n})]})]})}function vt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function yt(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`g`,{fill:`none`,fillRule:`evenodd`,children:[a(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),a(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}var bt={stop:e=>e,station:e=>`${e} Station`},xt={line:e=>`${e} Line`,route:e=>`Route ${e}`},St={stop:`stops`,station:`stations`},Ct={line:`lines`,route:`routes`};function wt(){let{foda:e}=C();return c(()=>({formatStop:bt[e.terminology.stop],formatLine:xt[e.terminology.line],pluralStopsTerm:St[e.terminology.stop],pluralLinesTerm:Ct[e.terminology.line]}),[e.terminology])}function Tt(e){let t=e.withLinks??!1;return a(u,{class:g(e.class),style:e.style,children:a(Et,{lineIds:e.lineIds,withLinks:t})})}function Et({lineIds:e,withLinks:n}){let{foda:r}=C();if(e.length===0)return{line:`No lines`,route:`No routes`}[r.terminology.line];let i=a(Dt,{lineIds:e,withLinks:n});return{line:a(t,{children:[i,` `,e.length===1?`Line`:`lines`]}),route:a(t,{children:[e.length===1?`Route`:`Routes`,` `,i]})}[r.terminology.line]}function Dt({lineIds:e,withLinks:n}){let{foda:r}=C(),i=c(()=>e.map(e=>Ot(e,r)).sort((e,t)=>e.name.localeCompare(t.name)),[e,r]);return i.length===1?a($,{data:T(i[0]),withLink:n}):i.length===2?a(t,{children:[a($,{data:T(i[0]),withLink:n}),` and`,` `,a($,{data:T(i[1]),withLink:n})]}):a(t,{children:[i.slice(0,-1).map((e,r)=>a(t,{children:[a($,{data:T(e),withLink:n},r),`,`,` `]})),` and `,a($,{data:T(i[i.length-1]),withLink:n})]})}function $({data:e,withLink:n}){return n?a(ue,{href:e.href,style:`strong-subtle`,colorOverride:e.color,children:e.name}):a(t,{children:e.name})}function Ot(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function kt(){let{foda:e}=C(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=wt();return{candidates:c(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:a(Tt,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:vt}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:yt}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:c(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var At={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function jt(e){let t=At[e.style??`regular`],n={class:g(e.class,t),value:e.value,onInput:t=>{t.target!=null&&`value`in t.target&&typeof t.target.value==`string`&&e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`};return a(Mt,{onSubmit:e.onSubmit,children:e.search??!1?a(`input`,{type:`search`,...n}):a(`input`,{type:`text`,...n})})}function Mt(e){return e.onSubmit==null?e.children:a(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Nt=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function Pt(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ft(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function It(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Lt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(w).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Rt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(w).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function zt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Nt(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Pt,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ft),i.appendResults(It),i.appendResults(Lt),i.appendResults(Rt),i.getResults()}function Bt(e){return a(`div`,{class:g(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Vt(e){return a(V,{href:e.href,onHrefClick:e.onHrefClick,class:g(e.class),children:a(I,{class:g(e.class,`gap-2 min-w-0 py-3 px-3 min-h-10`),yAlign:`center`,children:[a(Bt,{heightRem:r(`text-md`),children:a(e.icon,{class:`text-fg text-icon-lg`})}),a(h,{class:`gap-2 shrink`,children:[a(u,{style:`strong`,children:e.title}),e.description]})]})})}function Ht(e){let[t,r]=n(``),{candidates:i,placeholder:o}=kt(),{route:d}=s(),_=c(()=>zt(t,i,{maxResults:5}),[t,i]),v=Q(!e.open,300);f(()=>{v&&r(``)},[v]);let y=l(null),b=Q(e.open,100);f(()=>{b&&y.current?.focus()},[b]);function x(){_.length>0&&(d(T(_[0]).url),e.onClose())}return a(`div`,{class:g(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[a(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),a(p,{class:`relative z-1`,children:a(h,{children:[a(m,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[a(jt,{style:`search`,value:t,onChange:r,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:o,inputRef:y,onSubmit:x,search:!0}),a(Y,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),a(h,{class:`max-h-[calc(100vh-12rem)] py-2 overflow-y-scroll`,children:[_.length===0&&a(m,{class:`h-32 items-center`,children:a(u,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),_.map(t=>a(Vt,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function Ut(e){let t=e.active??!1;return a(F,{class:g(e.class,`group`),onClick:e.onClick,href:e.href,children:a(h,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[a(m,{class:g(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&a(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?a(e.activeIcon,{class:`text-accent-text text-icon-xl`}):a(e.regularIcon,{class:`text-fg text-icon-xl`})]}),a(u,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Wt(e){let{url:t}=s(),n=pt(),{isUpdateAvailable:r}=Z();return a(m,{class:g(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>a(Ut,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function Gt(e){let t=e.active??!1;return a(m,{class:g(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:a(B,{class:e.class,onClick:e.onClick,href:e.href,children:a(I,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[a(m,{class:`relative`,children:[(e.showBadge??!1)&&a(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?a(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):a(e.regularIcon,{class:`text-fg text-icon-lg`})]}),a(m,{class:`relative`,children:[a(u,{class:g(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),a(u,{class:g({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function Kt(e){return a(`img`,{class:g(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function qt(e){let{appName:t}=A(),{url:n}=s(),r=pt(),{isUpdateAvailable:i}=Z();return a(p,{class:g(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:a(I,{class:`gap-2`,children:[a(B,{class:`self-center`,href:`/`,children:a(I,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[a(Kt,{class:`text-icon-md`}),a(u,{style:`wordmark`,children:t})]})}),a(I,{children:r.map(t=>a(Gt,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function Jt(e){let{showMobileNav:t,showDesktopNav:r}=_(),{url:i}=s(),[o,c]=n(!1),[l,u]=n(!1);function d(){u(!1),c(e=>!e)}function p(){c(!1),u(e=>!e)}function h(){c(!1),u(!1)}return f(()=>{c(!1),u(!1)},[i]),a(m,{class:g(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!o&&!l}),children:[a(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&a(Wt,{onOpenMoreDrawerRequest:d,onOpenSearchDrawerRequest:p})}),a(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:r&&a(qt,{onOpenMoreDrawerRequest:d,onOpenSearchDrawerRequest:p})}),a(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[a(`div`,{class:g(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:a(_t,{open:o,onClose:h})}),a(`div`,{class:g(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!l}),children:a(Ht,{open:l,onClose:h})}),a(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:h})]})]})}function Yt(e){return a(`div`,{class:e.class,children:[a(`div`,{class:`relative z-0`,children:e.children}),a(`div`,{class:`relative z-1`,children:a(Jt,{})})]})}var Xt=`false`,Zt=`false`,Qt=Xt===`true`,$t=Zt===`true`;function en(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,Qt||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await O(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!$t){if(Qt)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function tn(e){let{Provider:t}=ht,[r,i]=n(!1),[o,s]=n(!1),l=c(()=>en({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>i(!0),onOfflineReady:()=>s(!0)}),[]),u=y(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),d=c(()=>({isUpdateAvailable:r,isOfflineReady:o,update:l,unregister:u}),[r,o,l,u]);return a(t,{value:d,children:e.children})}function nn(){return{isHotReloadingEnabled:c(()=>!1,[])}}function rn(e){let{isHotReloadingEnabled:t}=nn(),{frontendVersion:n,versionsOnLastUpdate:r}=A(),{unregister:i}=Z(),{data:a,loading:o,error:s}=ce(ee,{frontendVersion:n,corequeryPackageVersion:r.corequeryPackageVersion}),c=!t&&!o&&s==null&&a!=null&&a.isForceUpdateOfServiceWorkerRequired;return f(()=>{async function e(){c&&(await i(),window.location.reload())}e()},[c,i]),e.children}var an=E(()=>O(()=>import(`./About-DxAX4fbq.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),on=E(()=>O(()=>import(`./AdminControls-CkepqAqA.js`),__vite__mapDeps([12,1,8,9]))),sn=E(()=>O(()=>import(`./Debug-C3aem-Y_.js`),__vite__mapDeps([13,1,2,3,4,8,9,10,11]))),cn=E(()=>O(()=>import(`./Home-BWy3tAlX.js`),__vite__mapDeps([14,1,3,5,6,7,8,9]))),ln=E(()=>O(()=>import(`./Nearby-GgSNwYjV.js`),__vite__mapDeps([15,1,8]))),un=E(()=>O(()=>import(`./Service-DwfMOmR2.js`),__vite__mapDeps([16,1,2,3,17,7,8,9]))),dn=E(()=>O(()=>import(`./Settings-CcOwENSo.js`),__vite__mapDeps([18,1,8,9,10,19]))),fn=E(()=>O(()=>import(`./Status-Cqm0zGEP.js`),__vite__mapDeps([20,1,8,9]))),pn=E(()=>O(()=>import(`./ZenMode-Dy3GUHqN.js`),__vite__mapDeps([21,1,7,8,9]))),mn=E(()=>O(()=>import(`./Stop-1gh0-Vtz.js`),__vite__mapDeps([22,1,2,3,7,8,9,23]))),hn=E(()=>O(()=>import(`./Line-BAgtALS7.js`),__vite__mapDeps([24,1,2,3,25,17,6,8,9,11,23,19]))),gn=E(()=>O(()=>import(`./NotFound-785phBIT.js`),__vite__mapDeps([26,1,23,2,3,8])));function _n(){return a(tn,{children:a(ye,{children:a(rn,{children:a(rt,{children:a($e,{children:a(d,{children:a(Yt,{children:a(fe,{children:a(o,{children:[a(v,{path:`/`,component:cn}),a(v,{path:`/about`,component:an}),a(v,{path:`/admin`,component:on}),a(v,{path:`/debug`,component:sn}),a(v,{path:`/line/:id`,component:hn}),a(v,{path:`/nearby`,component:ln}),a(v,{path:`/service/:sourceId/:intrasourceId`,component:un}),a(v,{path:`/settings`,component:dn}),a(v,{path:`/status`,component:fn}),a(v,{path:`/stop/:id`,component:mn}),a(v,{path:`/zen`,component:pn}),a(v,{default:!0,component:gn})]})})})})})})})})})}i(a(_n,{}),document.body);export{j as _,Z as a,q as c,U as d,z as f,N as g,P as h,wt as i,tt as l,F as m,Bt as n,X as o,I as p,Tt as r,J as s,nn as t,G as u,A as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,i as t,n}from"./use-nav-exemptions-pWDQIkAs.js";import{p as r}from"./index-Ddvtj_a8.js";function i(i){return{mobileHeader:e(r,{class:`px-4`,yAlign:`center`,children:e(t,{style:`title`,children:i.title})}),desktopHeader:e(n,{children:e(r,{class:`mx-4 py-4 pt-8 border-b border-soft-border`,children:e(t,{style:`title`,children:i.title})})})}}export{i as t};
|